Repository navigation
feat(telemetry): record implementation forecast (#87) - #106
Conversation
[CCR-20260928-001] · manual · anthropic/claude-opus-5-5→? · high · schema:1Initial review — PR #106
|
| Command | Result |
|---|---|
python3 -m unittest discover -s tests |
813 tests, OK |
python3 scripts/validate-package.py |
VALID: 14 skills, shared sections in sync, manifests aligned |
git diff --check 8bfcbe1 c8bf60a |
clean |
Scratch probe: real run_cycle driver with a forecast on the implement result, no change_bases |
the forecast is recorded on the implement verdict only; the review dispatch has no change signals, so _forecast_accuracy reports paired_cycles: 0, which is correct: unknown, not zero |
Scratch probe: same driver with change_bases=("main",) and a mocked collect_change_signals (migrations diff) |
the review dispatch row carries the observed ChangeSignals under the same names; _forecast_accuracy(rows, 1) pairs the cycle: has_tests 1/1 agree, touches_database 1/1 agree, a 1-file forecast against 4 observed files falls in over_50_percent |
The probes were runtime-observed through the real driver and recorder, with scripted executors. They confirm the pairing key and the field-name alignment, which the PR's test_stats fixtures only assume, since they write hand-built dispatch rows.
Not verified
- No live model or provider run. Forecast quality from a real implementer cannot be observed until real cycles accumulate.
- The accuracy report was exercised with scripted rows and the probes above, not with a production telemetry database.
CI
gh pr checks 106 exited 0. All checks are on the reviewed head:
| Check | State |
|---|---|
Skills, manifests, and Bash installer (2 runs) |
pass |
PowerShell installer (2 runs) |
pass |
None is pending, failed, cancelled or skipped. No check that recent PRs normally run is missing. The PR is not a draft.
Residual risks
- Accuracy measures stay unknown until at least ten paired cycles exist, by design.
- If an implement stage is retried inside one cycle, the first forecast recorded is paired, not the last one. That is acceptable for a first-attempt estimate, but it is not documented.
- When the observed count is 0 and the forecast is not, the error is undefined and falls into
over_50_percent. - Until REV-003 is addressed, forecast accuracy may overstate how good pre-edit estimates are.
Project review verdict: APPROVED. Head c8bf60a was fully reviewed, all checks pass, and no open finding blocks approval. REV-001 to REV-003 are optional improvements.
Closes #87
Summary
Add a pre-edit, post-routing implementation forecast using the existing change-signal vocabulary. Record its bounded values only on the implement verdict and report forecast accuracy against the first review dispatch in the same cycle.
Diagnosis
Issue #87 is a feature request, so defect reproduction does not apply. The current driver records observed change signals only after implementation; the implement result had no forecast parser, telemetry fields, or accuracy report. This confirms the issue's description.
The invariant is temporal: a forecast is made after implement routing and remains outcome metadata. It must never enter
PRE_ROUTING_SIGNALSor affect the routing that produced it.The basic related-item search confirmed that #81's finding-count support is in merged PR #100 and #82's diagnosis step is in merged PR #101. Those provide the dependency and forecast timing; no matching active work item was found.
The fix adds nine typed, bounded forecast fields to implement verdict rows and compares them with the first review dispatch.
cc-statsreports per-flag agreement and file/line error bands, with each measure unknown below ten observations. Forecasts do not affect routing.Work units
scripts/run_cycle.py,scripts/telemetry.py,scripts/stats.py,skills/cc-implement-issue/SKILL.md,docs/telemetry.md,docs/instrumentation.mdtests/test_run_cycle.py,tests/test_telemetry.py,tests/test_stats.py,tests/test_cycle_outcomes.pyVerification
python3 -m unittest discover -s tests— 813 tests passed.python3 scripts/validate-package.py— valid, 14 skills; manifests and shared sections aligned.git diff --check— passed.scripts/run_cycle.pyCLI boundary — implemented forecast passed through a fake Codex executable and was recorded on the implement verdict; cycle completed withREADY_FOR_MANUAL_MERGE(exit 0). The worktree, origin, credentials, and telemetry database were temporary; no external provider was contacted.scripts/stats.pyCLI boundary — JSON and Markdown output showed 10 paired cycles and the expected forecast agreement/error bands using temporary telemetry.The local unit suite ran on this Linux/Python environment. The boundary fixtures used a fake executor and local bare remote; they did not exercise a live model or external provider.
Checks of pushed head
Head SHA:
c8bf60ac4d7d5e2f233fb0c0aba2dcb97de67a8bSkills, manifests, and Bash installer— pass (2 check runs)PowerShell installer— pass (2 check runs)All 4 check runs completed successfully; failed: 0, pending: 0.