Repository navigation
Refuse unknown code_cycle keys and document calibration (#29) - #38
Conversation
run_cycle's loader now knows every legitimate key under code_cycle and refuses any other by name, with the nearest known key, before a stage is dispatched. A typo such as `profles` no longer runs the built-in profiles while the file declares others. Keys that belong to skills or other modules (provider bootstrap, review, security_review, orchestration, calibration) are recognised and left uninterpreted. `calibration` is consumed by cc-orca-orchestrator's paired review only; it must be a mapping, and it never changes the routing mode. The absence of a calibration.enabled flag is documented as a decision: a calibration is entered only by the explicit --mode calibration argument, and a test asserts that a production run under a calibration block stays in production.
Review summaryReviewed the full accumulated diff from [REV-001] · low · open · blocks:no — Mixed YAML key types bypass the unknown-key diagnosticFile: code_cycle:
1: true
typo: trueObserved: Security triageThis change adds validation for configuration input, so the security audit ran. No security vulnerabilities were found in the changed surface. Verification
CIAll current PR checks pass: Residual risk and verdictThe mixed-key diagnostic edge case remains nonblocking. APPROVED for reviewed head |
Closes #29 — #29
What changed
run_cycle.load_confignow carries an allow-list of keys undercode_cycleand refuses any unknown key by name, suggesting the nearest known key ('profles' (did you mean 'profiles'?)), before anything is dispatched.repository,profiles,routing. It recognises without interpreting the keys owned elsewhere:issue_provider,code_host,issue,verification(provider bootstrap),review(review skills),security_review(security_gate.py),orchestration(cc-orchestrator),calibration(cc-orca-orchestratorpaired review).run_cycledoes not become a consumer of any of them.code_cycle.calibrationis shape-checked as a mapping.Decision: calibration is consumed (by paired review), not refused
The issue allowed either. The block is already read by
cc-orca-orchestratorwithpaired_review=true(skills/cc-orca-orchestrator/SKILL.md, Paired review) and documented incc-provider-bootstrap, so refusing it would break that skill and this repository's own.code-cycle.yml. It is now recognised as a skill-consumed key;run_cycle --mode calibrationstill takes its arms from the ordinary profiles, and this is written down inREADME.mdanddocs/instrumentation.md.The absence of
calibration.enabledis documented as a decision: a calibration is entered only by explicit--mode calibration(or explicitpaired_review=true), never by configuration alone.Tests
New in
tests/test_run_cycle.py:proflestypo raises with a suggestion instead of routing on defaults;.code-cycle.ymlloads;main()with this repository's config (calibration block present) runs inRoutingMode.PRODUCTION; only--mode calibrationyieldsCALIBRATION;calibration: nopeis refused as not a mapping.Existing no-silent-fallback and
PROVEN-readiness calibration tests are unchanged and pass.Verification
python3 scripts/validate-package.py→VALID: 12 skills (6 cycle, 6 supporting), shared sections in sync, cross-agent manifests alignedpython3 -m unittest discover -s tests→Ran 486 tests … OK