/ai-sdlc:decision-rubricfrom ai-sdlc
Applies a six-step decision rubric for non-trivial design, architectural, or policy choices. Replaces shallow agree/disagree prompts with structured analysis including evidence verification, option enumeration, and domain review.
Ships in ai-sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The rubric was first built to stop one failure: read the open question, restate the author's lean, ask "agree?". The operator picks "yes" because nothing else is on the table, and the author's decision is rubber-stamped. It does that job.
A review of about 37 decisions that were later reversed or amended (DEC records and RFC resolutions, 2026-11-23) found that rubber-stamping caused only 2 of them. Nine of 18 amended RFC resolutions had used the full rubric. The causes the old rubric never checked:
| Cause | Cases | Examples | Step that catches it |
|---|---|---|---|
| The decision relied on a record, data source or emitter nobody defined, or a guard never tried on real traffic | ~11 | RFC-0018 v0.4 → v0.4.1; the DEC-0046 guard refused 100% of real messages; DEC-0222 broke every adopter install | 5 (trace), checked in the step-3 ledger |
| A fact was wrong or never checked against its source | ~10 | WCAG called "superseded"; WCAG 3.0 in an enum; DEC-0284 kept code for envelopes that never existed | 3 (evidence ledger) |
| The right answer wasn't among the options | ~7 | DEC-0286: every option rejected; DEC-0200: a list where a rule was needed | 4 (reject-all question) |
| The requirement shouldn't have existed | ~6 | DEC-0267: a hook with ten false refusals; DEC-0392: a "30 min" limit nobody asked for | 1 (question the requirement) |
| No domain expert was consulted | 2 | RFC-0018: the Design Authority saw it 6 months later | 6 (domain review) |
Counts are approximate; many cases had two causes.
YES when the user is choosing:
NO when:
Every step is required when the rubric applies. Steps 1, 3 and 5 are where past decisions failed; they are the ones not to skim.
Before solving the problem, ask whether it should exist (DEC-0090 five-step algorithm, steps 1-2):
"Delete it" (or "don't add it") is always one of the options in step 4 unless you can state why deletion is impossible. A default, limit or guard with no traceable author is a deletion candidate, not a given.
Restate the decision in two sentences in your own words and name the trade-off axes. Split sub-questions instead of lumping them. If you can't write it in two sentences, you don't understand the question yet.
Every fact, assumption and dependency path the decision rests on is checked at its source before the question is asked or answered (DEC-0442). The author does not check its own claims: a separate research subagent does, and a checker re-verifies what it can, so a check cannot simply be claimed.
Draft the full question: problem, options, recommendation, counter-argument and trace (steps 1-5), as the exact text the operator will see: it becomes the AskUserQuestion question text word for word, because the question gate hashes that text. Write it to .ai-sdlc/artifacts/_evidence/<ref>/draft.md (<ref> is DEC-NNNN, rfc-RFC-NNNN-OQ-N or a slug).
Send the research subagent: one Agent call with subagent_type: general-purpose (it writes the ledger file, which the read-only Explore agent cannot) and model: sonnet, never the author. Run it in the background while you work on step 6 and the AskUserQuestion labels. It gets the exact draft text, not a summary, and this prompt:
You are checking a decision draft before it is asked. The exact draft is between the markers below. Pull out EVERY factual claim and EVERY dependency path in it: records (DEC, RFC, task ids), data sources, emitters, schemas, config fields, hooks, CLIs, and standards with their status and version. Check each one at its source: grep and read the file (quote the line), run the command, or fetch the primary URL (quote it). Do not answer from memory. Write the ledger to
.ai-sdlc/artifacts/_evidence/<ref>/ledger.jsonin the shape below, withdraftSha256fromcli-decisions evidence hash <draft>. Every entry hasstatus: "checked". A claim no source can confirm (a forecast, an operator preference) is anassumptionthat rests on checked facts and names what would falsify it. A claim you could not check that is not an assumption does not go in the ledger: list it under GAPS in your reply. Return the ledger path and the GAPS list.
----- DRAFT -----(the exact draft text)----- END DRAFT -----
The ledger (spec/schemas/decision-evidence-ledger.v1.schema.json):
{
"schemaVersion": 1,
"ref": "rfc:RFC-0019#OQ-1",
"draftSha256": "<cli-decisions evidence hash draft.md>",
"researchedBy": "general-purpose (sonnet)",
"researchedAt": "2026-11-27T10:00:00Z",
"entries": [
{ "id": "f1", "kind": "fact", "claim": "...", "status": "checked",
"source": { "file": "path/in/repo.ts", "line": 42, "quote": "exact text" } },
{ "id": "f2", "kind": "fact", "claim": "...", "status": "checked",
"source": { "command": "ls .ai-sdlc/", "output": "...", "ranAt": "<ISO>" } },
{ "id": "f3", "kind": "fact", "claim": "WCAG 2.2 is a W3C Recommendation", "status": "checked",
"source": { "url": "https://www.w3.org/TR/WCAG22/", "readAt": "<ISO>", "quote": "..." } },
{ "id": "f4", "kind": "fact", "claim": "...", "status": "checked", "source": { "record": "DEC-0442" } },
{ "id": "d1", "kind": "dependency", "claim": "...", "status": "checked",
"what": "GC job", "exists": { "path": "pipeline-cli/src/gc.ts" } },
{ "id": "d2", "kind": "dependency", "claim": "...", "status": "checked",
"what": "audit record emitter", "prerequisite": "AISDLC-NNNN" },
{ "id": "a1", "kind": "assumption", "claim": "corpora stay under 100K vectors", "status": "checked",
"restsOn": ["f2"], "falsifiedBy": "a pilot adopter reports a corpus over 100K" }
]
}
A file quote must sit within 5 lines of line; a record (DEC, RFC or task id) must exist on main; an exists.path must exist; a prerequisite must be a filed task.
Run the checker: node pipeline-cli/bin/cli-decisions.mjs evidence check .ai-sdlc/artifacts/_evidence/<ref>/ledger.json --draft .ai-sdlc/artifacts/_evidence/<ref>/draft.md. It fails on a missing source, any status other than checked, a drifted quote, a record, task or path that does not exist, an assumption without a passing restsOn, an empty ledger, or a draftSha256 that does not match the draft, and lists each failing entry. No question goes out, and no decision is recorded, until the checker passes.
Close every gap first. There is no unchecked or unverifiable final state. Anything the subagent could not check is either an assumption resting on checked facts (shown in the question with what would falsify it) or a gap to close before asking: research it further, or file the prerequisite task and cite it as a dependency entry. Editing the draft after research changes its hash: send the research subagent the new draft.
Rules for the research:
A passing ledger is reused when the decision is filed: it is stored as .ai-sdlc/decisions/evidence/DEC-NNNN.json (see docs/operations/decision-authority.md).
A table with option, pros, cons and verdict (or the axis that matters: cost, complexity, rigor). Each option is genuinely different; two flavors of one answer hide the real decision. Include the author's lean, at least one real alternative, and deletion (step 1) where it applies.
Then answer, in one or two sentences: "What would make us reject all of these?" If the answer is plausible (a rule where the options are lists, a different owner, a different layer), add that option or restate the problem.
dependency entry in the ledger: exists (with its path) or a filed prerequisite task. An undefined dependency is either specified now, as part of the resolution, or named as an implementation task that must land first. A resolution that reads a record nobody writes is not finished.command fact in the ledger. A guard that has never seen real traffic has no evidence.If an authority owns the area (design, accessibility, legal, security, product, a named RFC co-author), the resolution is provisional until they review it. Name the owner and how they will be asked. Don't let a provisional resolution be signed as final, and don't wait silently: record the pending review in the resolution and the hand-off.
Lead with the decision; the rubric is the appendix, not the preamble. Every rubric message opens with at most four short chunks:
The six steps follow below that, kept tight (200-400 words), with every assumption in the ledger listed. Then the AskUserQuestion:
(Recommended) in the label. All options stay clickable; one recommendation in prose never removes the alternatives from the question.description is 1-3 sentences naming what the choice costs or buys on the axes from step 2. Numbers and consequences, not "safer" or "may be slower".header: a 1-3 word chip ("Storage backend", "Deprecation").question carries the Evidence line. The question text is the draft from step 3 exactly as the research subagent saw it, followed by a last line Evidence: <ledger path> (for example Evidence: .ai-sdlc/artifacts/_evidence/rfc-RFC-0019-OQ-1/ledger.json). The AskUserQuestion gate (AISDLC-1452) refuses the call unless that ledger passes cli-decisions evidence check and its draftSha256 matches the question text without the Evidence line, so changing a word after the research means researching again. Only a trivial preference (naming, formatting, ordering) skips the ledger, and only with the header exactly Preference; the gate logs its text.After the answer, close the loop: say what you recorded and where.
OQ-1: Vector storage backend — JSONL vs sqlite?
Pick: A, JSONL append-only, with the
EmbeddingStorageBackendinterface as the escape hatch. It matches every other substrate in the repo. Costs: a linear scan, about 50 ms at 10K vectors. Check this: the assumption that adopter corpora stay under ~100K vectors in v1 (rests on the 10K benchmark; falsified by a pilot adopter reporting a corpus over 100K). Your call: pick a backend below.
- Requirement. Vectors must survive pipeline runs (RFC-0019 §4, set by the RFC author); still holds: the cache depends on it. Deletion means re-embedding every run.
- Problem. Read pattern is textHash lookups, write pattern append-on-embed; trade-off is debuggability and substrate consistency vs lookup speed at scale.
- Evidence (ledger
.ai-sdlc/artifacts/_evidence/rfc-RFC-0019-OQ-1/ledger.json; the checker passed). The research subagent, given the exact draft, checked:_dor/,_deps/,_decisions/all use JSONL append-only (commandls .ai-sdlc/); cosine over 10K 1536-dim vectors ≈ 50 ms in JS (command: local benchmark); LangChain/LlamaIndex default to in-process stores (url: both projects' vector-store docs, read 2026-11-27, quoted); the GC job exists (path). Assumption: adopter corpora stay under ~100K vectors (rests on the benchmark; see Check this).- Options. A JSONL / B sqlite / C Parquet / D no default. Reject-all: a remote vector DB, ruled out because bootstrap must work offline.
- Counter-argument: "use sqlite from day one; nobody reads floats by eye." Survives because the JSONL value is
jq/grepprovenance audits, not reading vectors. Trace: store file (exists), GC job (exists), escalation heuristic config field (prerequisite: the task that defines it, specified in this resolution). Silent failure: p95 read latency creeps past 250 ms unnoticed; the heuristic logs it.- Domain review: none owns this area.
When a decision record on main authorizes class (a) or (b) and no operator is present, run all six steps and replace only the question:
cli-decisions evidence check passes its ledger. Autonomous mode lowers the asking, not the rigor. A step-6 domain owner still gets the review; the resolution is recorded as provisional.CLAUDE.md "Decision authority": reversibility, blast radius, and whether it changes a trust-chain or governance control. Class (c) (legal and licensing, money, accounts and credentials, actions only the operator's identity can perform) is never self-decided: cli-decisions escalate, park only that task, keep working other eligible tasks.cli-decisions add --summary ... --scope ... --option "<id>:<description>" --evidence <ledger> (the decision gate refuses add and answer without a passing ledger; AISDLC-1452) then cli-decisions answer <id> <option> --by <your session> --rationale "<...>" (both flags are required; AISDLC-1405), and apply it at once;cli-decisions add ... --timebox PT10H --autonomous-fallback <option-id> (default 10 hours: timeboxWindowHours and timeboxWindowCount in config; omitting --timebox applies it) and apply it when the timebox lapses without an override. When the decision weakens a control, also pass --governance-change weakening --weakens <option-id>; the fallback must then be a non-weakening option.cli-decisions list); answer or supersede it instead of recording a duplicate. A duplicate left open can be answered later by its own timebox and contradict the operator's ruling on the copy.The operator can override any of these with cli-decisions answer or extend. Guardrails and hooks are never bypassed by a decision made this way.
Write the resolution where the work item's decisions live (RFC body, task, issue, catalog record) with its rationale, never a bare "answer: A". The rationale is 3-5 sentences and always carries:
Check: the weakest assumption from the presentation and what would falsify it, so a later amendment can say which assumption failed (or "all items checked");Evidence: the ledger path (.ai-sdlc/decisions/evidence/DEC-NNNN.json once filed);Provisional: the domain owner, when step 6 applies.For catalog-routed decisions (Decision Catalog enabled, AI_SDLC_DECISION_CATALOG, default on), put this in --rationale on cli-decisions answer, so cli-decisions operator-digest shows it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ai-sdlc-framework/ai-sdlc --plugin ai-sdlc3 skills in this plugin
/ai-sdlc-governanceAI-SDLC project governance rules, workflow expectations, and pre-commit checklist. Loaded automatically at session start./rfc-oq-walkthroughEnd-to-end workflow for resolving open questions in an RFC. Covers the full lifecycle from "operator picked an RFC to walk through" to "PR opened with resolutions + sign-off + implementation tasks." Use whenever the operator asks to walk through an RFC's open questions, re-walk a previously-resolved RFC with higher rigor, or generally make a Draft → Ready for Review lifecycle transition stick. Composes with [[decision-rubric]] for the per-OQ AskUserQuestion mechanics.Other plugins' skills for the same job