Skip to content

Manual runs: record profile 'manual' and the host-configured model instead of all 'unknown' #80

Closed

Description

@datacas

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: manual when 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 model in the active config (~/.codex/config.toml or -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, write unknown for that token only.
  • effort: the host's configured reasoning effort (Codex model_reasoning_effort, the Claude Code effort setting) when it is exposed, otherwise unknown.
  • 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, and cc-resolve-comments (the duplicated, byte-identical sections: edit all copies, and the validator checks them), plus docs/review-cycle.md and docs/instrumentation.md.
  • scripts/review_contract.py: accept manual as a profile token and unknown per 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-review in Codex publishes · manual · openai/<configured model>→? · <configured effort> ·.
  • A routed run's line is unchanged, with a test for it.
  • review_contract round-trips both forms, and rejects manual inside a runtime-routed context if one is ever supplied with a profile.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions