Skip to content

v0.5.44 — Recalibration report with schema validation (Loop 23) - #142

Merged
cschanhniem merged 1 commit into
mainfrom
loop-23-recalibration-report
Jul 6, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
loop-23-recalibration-report

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Loop 23 — Human-readable recalibration report

Bottleneck

No weight-change report that a human reviewer can inspect with gate-verdict context.

Changes

  • Added schemas/recalibration_report.schema.json (Draft 2020-12)
  • Added reports/recalibration_report.py: build_recalibration_report(), write_recalibration_report_json(), write_recalibration_report_markdown(), validate_recalibration_report()
  • CLI now uses combined report for --out-json and --out-md (proposal + gate verdict)
  • Dry-run diff includes gate summary (rule count, prohibited actions)
  • 9 new tests, 1813 total passing

Verification

1813 passed in 77.89s

Next

Loop 24 — Second-batch selection logic (active_learning/selector.py)

Add standalone recalibration report module + JSON Schema:
- schemas/recalibration_report.schema.json: Draft 2020-12 schema
  enforcing report_type, schema_version, human_review_required=True,
  gate_verdict (may_recalibrate, cohort counts, rule_results,
  prohibited_action_audit, rate_limit_status, summary), proposal
  (gate_passed, L1 totals, deltas with scorer/current/proposed/delta/rationale)
- reports/recalibration_report.py: build_recalibration_report(),
  write_recalibration_report_json(), write_recalibration_report_markdown(),
  validate_recalibration_report()
- CLI uses combined report for --out-json and --out-md output
  (includes gate verdict context alongside weight deltas)
- Dry-run diff now shows gate summary (rule count, prohibited actions)
- 9 new tests: shape, gate context, proposal, delta fields, schema
  validation (valid + missing + human_review_required enforcement),
  JSON write+validate round-trip, markdown sections
- 1813 total tests passing
@cschanhniem
cschanhniem merged commit 24bd6f9 into main Jul 6, 2026
1 check failed
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