docs(anti-debt): ADR-0025 — calibration semantics + CC parser exceptions - #9
Merged
Conversation
- Document why calibration.propose_thresholds() only ever LOWERS thresholds automatically (raising would reintroduce the rubber-stamp drift ADR-0021 guards against). Raising a threshold now requires an explicit human decision. - Acknowledge the 2 sequential-parser CC exceptions (analyze_file, detect_js_cycles) per the CLAUDE.md "parsers" exception, with a `# CC-EXCEPTION: see ADR-0025` marker on each def so the self-scan finding is a tracked decision, not open debt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes two implicit-knowledge gaps left after PR #6/#7.
1. Calibration raise/lower semantics
calibration.propose_thresholds()only ever lowers thresholds automatically; it never raises them. ADR-0025 documents why this asymmetry is intentional: auto-raising would let the Critic self-relax on biased feedback and become a rubber-stamp — exactly the drift ADR-0021 guards against. Raising now requires an explicit human decision.2. CC parser exceptions
Two functions exceed the agent's own CC ≤ 10 gate and are now acked per the CLAUDE.md "sequential parsers" exception:
static_analysis.analyze_file()— single AST walkpolyglot_scan.detect_js_cycles()— single-pass import-graph parserEach
defcarries a# CC-EXCEPTION: see ADR-0025marker so the self-scan finding is a tracked decision, not open debt.Changes
docs/adr/0025-calibration-semantics-cc-exceptions.md(new)# CC-EXCEPTIONmarkers (no logic change;ast.parseOK)