todo2code

Ticket 054: Todo2code-driven repair and skills expansion

Goal and scope

Define a fail-closed, cross-repository delivery plan in which todo2code produces deterministic, provenance-bound diagnostics, repair-agent may turn an approved bounded plan into a pull request, and validator-agent independently validates the exact PR head. Use that chain to restore the skills-agent orchestrator before adding a small set of todo2code-grounded skills.

This ticket owns coordination evidence only. Executable changes must be made through separate governed branches and PRs in the repository that owns each path: subactor/skills-agent, subactor/repair-agent, or subactor/validator-agent. It does not authorize a target repository to self-dispatch its trusted reviewer.

Verified current state

Proposed delivery order

  1. Repair skills-agent 0014_publication-freeze against the current task schema and add a regression proving one invalid package cannot silently disable the entire scheduled fleet.
  2. Align skills-agent’s protected model variables and examples with openrouter/z-ai/glm-5.2.
  3. Add pilot skill 0015_todo2code-governance-health: todo2code runs deterministically and read-only, Doctor emits bounded diagnostics, Repair is disabled, and Validator checks provenance and reproducibility.
  4. After the pilot passes, add 0016_todo2code-dependency-repair: Repair may create only a ticket-owned PR from an approved, grounded plan; Validator checks a clean exact-head checkout and may reject independently.
  5. Add 0017_todo2code-branch-lifecycle-repair only after the same identities, PR-only mutation and exact-head hand-off are proven end to end.
  6. Restore a real Ready-for-repair fixture, resolve the OpenRouter key limit, and record one complete Repair PR → Validator decision without auto-merge.

Acceptance criteria

Participants

Approval gate

The human owner approved continuation after reviewing this plan on 2026-08-08. This records the transition to EDIT; it is not trusted merge authorization.

The rebased coordination-only diff passes governance and is ready for protected exact-head review. Cross-repository implementation remains pending.

Non-goals