Repository navigation
Feed measured first-pass rate into cost model (#28) - #34
Conversation
Initial review — PR #34 · Feed measured first-pass rate into cost model (#28)Verdict: Summary and scopeI reviewed the full diff from merge-base
Two points are design decisions, not defects. Repository conventions came from Findings[REV-001] · low · open · blocks:no — A failure in the informational cost estimate now aborts target selection, under
|
| Command / flow | Result |
|---|---|
python3 -m unittest discover -s tests (checkout at b2bc66e) |
477 tests, OK |
python3 -m unittest tests.test_cycle.MeasuredCostTests |
5/5 OK |
python3 scripts/validate-package.py |
VALID: 12 skills (6 cycle, 6 supporting), shared sections in sync, cross-agent manifests aligned |
route('implement', …, strategy=MEASURED, first_pass_rate=1.5, rate_known=True) |
RouterError: first_pass_rate must be between 0 and 1: 1.5 (REV-001, runtime evidence) |
route('implement', …, strategy=MEASURED, first_pass_rate=0.5) |
rate_source=measured, rate_used=0.5, rate_known=True |
route('security', security_sensitive=True).explain() |
Adds cycle cost estimate: implementation 1.0 + 7.0 expected resolution work + review 6.0 = 14.0 |
Note: running the suite from a linked git worktree gives 1 failure, test_local_only_rejects_the_live_repository. That test assumes ROOT is the primary checkout. The failure is environmental and unrelated to this PR: the same suite passes 477/477 in the primary checkout at the same SHA and in CI.
Unverified items
- I didn't run an end-to-end
run_cycle.py --configwithstrategy: measuredagainst real executors. Coverage comes from the unit tests with scripted adapters.
CI
| Check | State |
|---|---|
| Validate package / Skills, manifests, and Bash installer | ✅ success (×2, push + pull_request) |
| Validate package / PowerShell installer | ✅ success (×2) |
4 passed, 0 failed, 0 pending, 0 skipped. Every gate the repository defines ran. The PR is not a draft.
Residual risks
- Once the selection-policy work starts reading
decision.cost, REV-001 will matter more: the estimate will stop being purely informational. - The rate is a snapshot taken at the start of the cycle, as designed. Stages in the same run don't see observations recorded during that run.
Verdict: APPROVED. All checks passed on the reviewed head. REV-001 to REV-003 are open but don't block approval.
Resolution update — PR #34Functional status: [REV-001] · low · resolved · blocks:no — Informational cost estimate failures no longer stop routing
[REV-002] · low · resolved · blocks:no — Routing telemetry fields use one shared mappingAdded [REV-003] · low · resolved · blocks:no — Changelog records issues 27 and 28Added an Verification
|
Rereview — PR #34 · Feed measured first-pass rate into cost model (#28)Verdict: What changed since the previous reviewOne commit,
I also re-read the full accumulated diff from merge-base Status of previous findings[REV-001] · low · resolved · blocks:no — A failure in the informational cost estimate now aborts target selection, under
|
| Command / flow | Result |
|---|---|
python3 -m unittest discover -s tests |
480 tests, OK |
python3 -m unittest tests.test_router.AvailabilityGateTests tests.test_cycle.FullCycleTests tests.test_cycle.BlockedRoutingTests tests.test_cycle.MeasuredCostTests |
20 tests, OK |
python3 scripts/validate-package.py |
VALID: 12 skills (6 cycle, 6 supporting), shared sections in sync, cross-agent manifests aligned |
git diff --check 3360d6b 41a7893 |
clean |
| Reproduction of REV-001 (rate 1.5 and missing price) | Routes; cost_status=unavailable |
routing_decision_fields + record_stage with rate 1.5 |
Row written with routing_rate_value=1.5, routing_rate_known=True (REV-004) |
Unverified: I didn't run an end-to-end run_cycle.py with strategy: measured against real executors. Coverage comes from unit tests with scripted adapters.
CI (check runs for 41a7893)
| Check | State |
|---|---|
| Validate package / Skills, manifests, and Bash installer | ✅ success (×2, push + pull_request) |
| Validate package / PowerShell installer | ✅ success (×2) |
4 passed, 0 failed, 0 pending, 0 skipped. Every gate the repository defines ran. The PR is not a draft.
Residual risks
- REV-004 matters once selection policy starts reading
decision.costor the persisted rates: an unexplainedunavailable, or a stored rate outside[0, 1], would be hard to diagnose. - The rate is a snapshot taken at the start of the cycle, as designed.
Verdict: APPROVED. All checks passed on the reviewed head. REV-001, REV-002 and REV-003 are resolved; REV-004 is open but doesn't block approval.
Summary
measuredmode, snapshot the repository first-pass rate once when the cycle starts and pass it into the routing cost estimate.Rate.explain()in the decision.fixednever queries the rate, and neither strategy changes target selection.Verification
rtk python3 -m unittest discover -s tests -v— 477 tests passed.rtk python3 scripts/validate-package.py— passed.rtk git diff --check— passed.Closes #28