feat(workflow): experimental self-evolving workflow loop#165
Open
justrach wants to merge 1 commit into
Open
Conversation
Adds the dedicated `workflow` orchestrator agent and a `workflow-evolver` meta-agent that closes a run -> telemetry -> learnings loop, plus scripts. - workflow (built-in): decomposes a goal into independent subtasks, fans them out to parallel `task` sub-agents (sage for read-only, forge for edits), synthesizes. Carries a machine-owned Learnings section and emits a run-telemetry block. - workflow-evolver (built-in): reads accumulated run telemetry and proposes evolved Learnings; a deterministic splice applies them (version bump + changelog), with a constitution guard that refuses self-sabotage (disabling telemetry, suppressing `task`, hiding failures) and an append-only generation archive. - scripts/: run-workflow.sh, evolve-workflow.sh, _evolve_apply.py. EXPERIMENTAL. Telemetry is currently self-reported (gameable, per the Darwin-Goedel-Machine analysis); the sound version sources the same objective signal from the data.codegraff.com trajectory feed every workflow run already flows to. Runtime artifacts are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Action required: PR inactive for 5 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the
workfloworchestrator agent + aworkflow-evolvermeta-agent that closes arun -> telemetry -> learningsloop, plus helper scripts. Experimental.workflow(built-in) — decomposes a goal, fans out paralleltasksub-agents (sageread-only,forgefor edits), synthesizes. Carries a machine-ownedLearningssection + emits a run-telemetry block.workflow-evolver(built-in) — reads accumulated run telemetry and proposes evolved Learnings; a deterministic splice (_evolve_apply.py) applies them between markers (version bump + changelog), with a constitution guard (refuses self-sabotaging learnings: disabling telemetry, suppressingtask, hiding failures) and an append-only generation archive.run-workflow.sh(capture telemetry),evolve-workflow.sh+_evolve_apply.py(read-only evolver -> deterministic splice).Honest caveats (why experimental)
data.codegraff.comtrajectory feed every workflow run already flows to (taggedagent_id); that rewire is the obvious follow-up..forge/agents/workflow.mddrop-in (built-in = frozen baseline, drop-in = evolving instance). Runtime artifacts (telemetry jsonl, evolution log, generations) are gitignored.Verification
cargo check -p forge_repoclean (all 5 agents embed). Theworkfloworchestrator is verified end-to-end on a built binary (fans out sage/forge sub-agents, no hangs); the evolver loop was demonstrated v1->v3 on seeded + real telemetry.🤖 Generated with Claude Code