Skip to main content
Glama

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

NameRequiredDescriptionDefault
evolve_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.2

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Far exceeds the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false). It discloses the spawned child, the exact file edited (render_brief() in brief.py), the test requirement, the full-suite gate, the PR-only guarantee ('NEVER pushes or commits to main'), the autoland/squash-merge behavior, the THREADKEEPER_EVOLVE_AUTOLAND=0 escape hatch, and the applied=1 autonomy gate. This is rich, non-obvious behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then the lifecycle and preconditions. Dense and largely waste-free, though the parenthetical asides (autoland, status-line format) add length that could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity tool that spawns a child, edits code, runs tests, and opens a PR, the description covers the full lifecycle, the autonomy gate, preconditions, and failure modes. An output schema exists, so return-value detail needn't be explained, yet the status-line format is still noted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single required evolve_id parameter, so the description must compensate — and it does, explaining the id's provenance (from evolve_review()) and its validity constraints (must exist and be promoted+unapplied). It adds real meaning beyond the bare integer type.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource and scope: 'Implement a PROMOTED + not-yet-applied format-evolution suggestion.' It is clearly distinguishable from siblings like evolve_review (source of ids), evolve_mark_applied (the reporting step), and evolve_decide. An agent can tell exactly what this does without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete preconditions (id must exist and be promoted+unapplied), names the source of ids ('Get ids from evolve_review()'), and states the single-flight constraint. It does not enumerate explicit when-not-to-use alternatives, but the eligibility rules effectively cover the routing decision.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools