Ce adr gap analyzer

From Moffran/calibrated_explanations · View interactive version

Ce adr gap analyzer is an AI agent skill from the GitHub repository Moffran/calibrated_explanations. Analyze ADR compliance by interpreting the ADR's intent, verifying that implementation and RTD satisfy every decision, and producing a dated gap report with only unresolved items.

How to use this skill

Skill file

CE ADR Gap Analyzer

You are verifying that the intent and decisions of a given ADR are fully

realized in code and documentation. Your job is not keyword grepping — it is

substantive compliance analysis.


Inputs


Phase 1 — Understand the ADR intent

  1. Read the full ADR text (development/adrs/ADR-XXX-*.md). Extract:

enforcement mechanisms, documentation, tests).

whether an implementation satisfies the spirit, not just the letter.

  1. Build a checklist of required outcomes from the decisions. Each outcome

is a testable statement, e.g.:

Phase 2 — Verify implementation against intent

  1. For each required outcome, search and read the codebase (src/,

tests/, configuration files):

and whether it satisfies the ADR requirement.

the ADR requires them.

specifies them.

  1. For each required outcome, check RTD and documentation (docs/) when

the ADR has documentation requirements:

the implementation.

Phase 3 — Classify and score gaps

  1. For each required outcome that is not fully satisfied, record a gap:

(or expected but missing).

  1. Mark outcomes that are fully satisfied as completed — these will be

purged from the output (see Phase 4).

Phase 4 — Record the gap report in the ADR itself

There is no shared, continuously-updated ADR status appendix in

development/current-work/ (the pre-v1.0.0 build-out appendix is archived at

development/finished-work/RELEASE_PLAN_status_appendix.md as a historical

record and is not updated further). Record gap results as a dated report

directly in the target ADR's own status note, following the pattern already

used by individual ADRs (see the > **Status note (YYYY-MM-DD):** line near

the top of most ADR files, e.g. ADR-003, ADR-009, ADR-029).

Rules:

  1. Purge completed gaps. When updating an ADR's own gap material:

with zeroed-out scores — delete them entirely.

remaining open rows**, ranks renumbered from 1.

separator, data rows) with a single compliance verification line.

  1. Only unresolved gaps appear. Never list completed, resolved, or

zeroed-out rows in the table.

  1. Date stamp — mandatory on every update. Every time gap status is

updated (single ADR or full sweep), stamp today's date:

**Compliance verification (YYYY-MM-DD):** Reviewed code and RTD — no ADR-XXX gaps found; ADR-XXX is fully compliant. No further action required.

the table.

  1. If NO gaps remain the compliance verification line must be

unambiguous — it replaces the entire table and makes clear that no

further action is required.

  1. If the gap changes what is committed for the release currently being

coordinated, propose a row update in the active

development/current-work/vX.Y.Z_plan.md (see ce-adr-author), or

file/link a GitHub issue when no release is currently scoping this work.


Key principles

Read the ADR decisions, understand what they require, and verify that code

and docs deliver. A missing TODO does not mean compliance; present code

does not mean the ADR intent is satisfied.

what the ADR decided — not when a keyword is absent. A gap is closed when

code and docs genuinely satisfy the requirement — not when someone wrote

COMPLETED next to it.

ambiguous.

their absence). Every compliance claim must cite the evidence that satisfies

the ADR requirement.


Files to read

development/adrs/ADR-XXX-*.md              ← the ADR itself (primary source of intent and gap-report target)
development/current-work/vX.Y.Z_plan.md    ← update a row if the gap changes the active release's scope
src/                                        ← implementation evidence
tests/                                      ← test coverage of ADR requirements
docs/                                       ← RTD evidence (when ADR has doc requirements)

Notes and constraints

Impact/scope ratings are suggestions for ADR owner review.

same four phases to every one.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.