Skip to content

Tell each stage the routing decision its run line must carry (#56) - #61

Merged
datacas merged 1 commit into
mainfrom
issue-56-routed-run-line
Sep 24, 2026
Merged

datacas merged 1 commit into
mainfrom
issue-56-routed-run-line

Conversation

@datacas

@datacas datacas commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Closes #56 — #56

What changed in behaviour

  • Runtime (scripts/cycle.py): CycleRecorder.stage() now appends the routing decision of each dispatch attempt to the prompt — profile, requested provider/model and effort — and tells the agent to copy them verbatim into any run line and to write the resolved model as ?. It is built per attempt, so a rerouted attempt is told the fallback's target, which is what its telemetry row records.
  • Skills (cc-initial-review, cc-rereview, cc-resolve-comments, shared machine-readable record section, kept byte-identical): when the runtime states the routed profile, requested model and effort, the run line copies them instead of the agent's own configuration. The →? rule is unchanged.

Verification

  • python3 scripts/validate-package.py → VALID: 13 skills (6 cycle, 7 supporting), shared sections in sync, cross-agent manifests aligned
  • python3 -m unittest discover -s tests → 633 tests OK
  • New tests: a review routed to reviewer receives reviewer, openai/gpt-5.6-terra and high in its prompt, matching its telemetry row; each attempt of a reroute is told its own target.

Residual risk

The first acceptance criterion (the published run line matches telemetry in a real runtime-launched cycle) depends on the agent following the prompt; it is not verified end to end here and should be checked on the next sandbox cycle.

- CycleRecorder.stage() appends the routing decision of each attempt to
  the dispatched prompt: profile, requested provider/model and effort,
  with the instruction to copy them verbatim and write the resolved
  model as `?`. A rerouted attempt is told the fallback's target.
- cc-initial-review, cc-rereview and cc-resolve-comments (shared
  machine-readable-record section) require copying runtime-supplied
  routing values instead of the agent's own configuration.
- Tests: a review routed to `reviewer` receives `reviewer`,
  `openai/gpt-5.6-terra` and `high`, matching its telemetry row; each
  attempt of a reroute is told its own target.
@datacas

datacas commented Sep 24, 2026

Copy link
Copy Markdown
Owner Author

Review summary

Reviewed PR 61 at head e6e915935f1f3f6debcebd4818d880346f3274c9, comparing the accumulated diff from the merge base with main. The change passes review with no findings. It supplies each dispatch attempt with its runtime-selected profile, requested model, and effort, and the fallback test confirms the fallback attempt receives its own routing values.

Security triage

Sensitive-change triage applied because this change alters task prompt construction and the instructions given to agents. The security audit reviewed the prompt boundary and mirrored skill changes; it found no security vulnerabilities.

Verification

  • python3 -m unittest discover -s tests -p 'test_cycle.py': 44 tests passed.
  • python3 -m unittest discover -s tests: 633 tests passed.
  • python3 scripts/validate-package.py: passed; 13 skills validated, shared sections synchronized, and cross-agent manifests aligned.
  • GitHub CI: all three “Skills, manifests, and Bash installer” checks passed and all three “PowerShell installer” checks passed.

Unverified behavior and residual risk

A live runtime-launched agent cycle was not run, so the published run line has not been observed matching its telemetry row end to end. The tests verify that each attempt, including a fallback, receives the correct profile, requested model, and effort, and that the prompt directs the agent to retain ? for the unresolved model. As the PR notes, confirm the published line against telemetry on the next sandbox cycle.

Verdict

APPROVED — the reviewed head is e6e915935f1f3f6debcebd4818d880346f3274c9; all required checks passed and there are no blocking findings.

@datacas
datacas merged commit fd36f06 into main Sep 24, 2026
6 checks passed
@datacas
datacas deleted the issue-56-routed-run-line branch September 24, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

La línea de ejecución de la review no refleja el perfil ni el modelo enrutados por el runtime

1 participant