Repository navigation
Closed
Description
Problem
When a review or resolution skill runs manually, invoked in a Codex or Claude session rather than dispatched by the runtime, its run line is all unknown:
#### [CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1
#### [CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae174… · schema:1
(PR #74, several manual rounds.) The skills do what they were told: copy the profile, requested model, and effort from the runtime's routing decision (#56), and never fill them from the agent's own belief about itself. A manual run has no routing decision, so nothing is known. The record becomes useless exactly when a person drives the cycle by hand, and cc-stats or a later analysis can't tell those runs apart.
Expected
The contract distinguishes a manual run from a routed one, and records what is knowable in a manual run:
#### [CCR-…] · manual · openai/gpt-6-sol→? · high · schema:1
- profile:
manualwhen no routing decision was supplied. It is a reserved token, never a configured profile name. - provider/model_requested: the model the host session is configured with, read from the host's configuration and not from the model's self-description. For Codex that is
modelin the active config (~/.codex/config.tomlor-c model=…). For Claude Code it is the session's selected model as the host exposes it. This is by definition what was requested for that session. If the host doesn't expose it, writeunknownfor that token only. - effort: the host's configured reasoning effort (Codex
model_reasoning_effort, the Claude Code effort setting) when it is exposed, otherwiseunknown. - model_resolved: unchanged.
?unless the executor's own receipt reports it, and never self-reported. - A routed run keeps copying the runtime's values verbatim. The host's configuration never overrides a routing decision.
Changes
- The run-line sections in
cc-initial-review,cc-rereview, andcc-resolve-comments(the duplicated, byte-identical sections: edit all copies, and the validator checks them), plusdocs/review-cycle.mdanddocs/instrumentation.md. scripts/review_contract.py: acceptmanualas a profile token andunknownper token. Parsing tests for both forms.cc-stats: count manual runs separately. They are not dispatch rows and have no telemetry, but a comment-based analysis can see them.
Acceptance
- A manual
cc-initial-reviewin Codex publishes· manual · openai/<configured model>→? · <configured effort> ·. - A routed run's line is unchanged, with a test for it.
review_contractround-trips both forms, and rejectsmanualinside a runtime-routed context if one is ever supplied with a profile.
Metadata
Metadata
Assignees
Labels
No labels
Activity