evolve_apply
Applies a promoted, unapplied format-evolution suggestion by spawning a child to edit brief rendering, add a golden test, run the full suite, and open a pull request.
Instructions
Implement a PROMOTED + not-yet-applied format-evolution suggestion.
Spawns an evolve_applier child that: edits render_brief() in
threadkeeper/brief.py to make the change; adds/extends a GOLDEN test
asserting the new behavior appears AND the existing brief still renders;
runs the FULL suite (.venv/bin/python -m pytest -q) until green; then
opens a PULL REQUEST on a feature branch via gh — it NEVER pushes or
commits to main. The applier daemon's landing sweep squash-merges the PR
once GitHub reports it up to date with required checks green
(THREADKEEPER_EVOLVE_AUTOLAND=0 leaves the merge to a human).
applied=1 is set ONLY when the child reports a real PR back via evolve_mark_applied — opening the PR is the autonomy gate.
Rejects ids that don't exist or aren't promoted+unapplied. Single-flight: refuses while another applier child is in flight. Returns a status line (spawned … / applier_running … / ERR …). Get ids from evolve_review().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| evolve_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |