Skip to content

docs(anti-debt): ADR-0025 — calibration semantics + CC parser exceptions - #9

Merged
Rwanbt merged 1 commit into
mainfrom
docs/adr-0025-calibration
Jun 19, 2026
Merged

docs(anti-debt): ADR-0025 — calibration semantics + CC parser exceptions#9
Rwanbt merged 1 commit into
mainfrom
docs/adr-0025-calibration

Conversation

@Rwanbt

@Rwanbt Rwanbt commented Jun 19, 2026

Copy link
Copy Markdown
Owner

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 walk
  • polyglot_scan.detect_js_cycles() — single-pass import-graph parser

Each def carries a # CC-EXCEPTION: see ADR-0025 marker so the self-scan finding is a tracked decision, not open debt.

Changes

  • docs/adr/0025-calibration-semantics-cc-exceptions.md (new)
  • 2 one-line # CC-EXCEPTION markers (no logic change; ast.parse OK)

- 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.
@Rwanbt
Rwanbt merged commit be2987b into main Jun 19, 2026
25 checks passed
@Rwanbt
Rwanbt deleted the docs/adr-0025-calibration branch June 19, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant