/quoin:spec-criterion-strength-analysisfrom quoin
Judges whether acceptance criteria can actually fail by analyzing spec text with Jev (typesafe.ai System One). Emits a validated SpecReview with weakness_kind per AC and adverse_case_coverage per FR.
Ships in quoin. 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.
Read when SKILL.md points to them.
If this plugin is not initialized or an Agent IX command fails, read the quoin setup guide for its prerequisites and local diagnosis.
Specified by PLAT-837. Use this skill to judge whether an acceptance criterion
can actually fail, as distinct from whether it is backed by a passing test.
A spec can have every criterion tagged by a passing test and mean nothing, because the ACs were
written to be satisfiable by whatever got built — spec-review's Common Issues
already names "Vague Criteria" as something to notice by eye, but nothing in
the pipeline measures it. This lens does.
This lens reads spec text only. No code, no trace tags, no AST, no test
bodies. It has no dependency on the AST symbol-table work landing in
quire-rs/src/symbols/, and it never reads a test to decide whether the AC
it names is well-formed — that is gap-analysis's assertion_vacuous
question (PLAT-839), a different lens judging a different pairing (test vs.
requirement, not AC vs. itself).
Do not run this skill yet. Two things it depends on are being built by other agents in parallel, and this skill must not paper over either:
analysis: criterion-strength schema value, owned by another
agent, not this skill. Per spec-review's own rule: "a selected analysis
absent from the installed SpecReview.analysis schema is an unavailable
dependency, not permission to emit an invalid review document." Check
the installed SpecReview.analysis enum at run time, every run — do not
trust a point-in-time record of whether criterion-strength has landed,
since that fact changes the moment the owning change merges and a stale
note would silently stop being true. If criterion-strength is absent,
stop and say so rather than writing
reviews/YYYY-MM-DD-<slug>-criterion-strength.md
that fails quire validate.What exists today, ready for that later task to consume unchanged:
assets/question-set.json — the five noul
questions, the weakness_kind choice enum (six members), and the
adverse_case_coverage score rubric, transcribed verbatim from PLAT-837
rather than paraphrased, as a serialisable data artifact a Jev client can
hand to the API unchanged. Per the request shape PLAT-837 states: one
request per FR, one question block per AC row, each carrying the FR
statement, the AC row, and the FR's Description/Behaviour/Constraints.assets/fixtures/criterion-strength-fixtures.json
— the labelled adverse-case corpus. See Fixtures below.Same authority rule as every other lens in this family, and stated in
PLAT-837 itself: this lens never edits an AC, never authors a requirement,
never changes a matrix row. Its only write is the SpecReview artifact.
A low-confidence verdict is annotated, not suppressed — the finding still
appears in the table marked "unconfirmed, below the confidence threshold". A
verdict whose top two answers are within the margin is likewise annotated,
not suppressed, and marked "uncertain, top two answers within the margin";
when both apply, the margin annotation is the one shown. This is the opposite of the
ix-board low-confidence rule (which suppresses an edge write); the two are
opposite because one mutates and one reports, per PLAT-837's own note. Do not
copy the ix-board rule across by reflex.
spec-ears-analysis and
spec-correctness: default spec/**/*.md.criterion-strength is in the installed
SpecReview.analysis enum. If not, stop; report the blocker; do not emit.assets/question-set.json.noul questions, the weakness_kind
choice, and — once per FR, over the full AC set — the
adverse_case_coverage score. This step needs the client the later task
adds; nothing here performs it.SpecReview. Fetch the template once with
quoin write . --types SpecReview. Write one document to
reviews/YYYY-MM-DD-<slug>-criterion-strength.md with analysis: criterion-strength in
the frontmatter, a ## Summary, and a validated ## Findings table
(| ID | Severity | Summary | Refs |, FND-NNN ids, Severity ∈
low/medium/high). A below-threshold weakness_kind or
adverse_case_coverage verdict is still a row in this table, marked
unconfirmed, and a verdict whose top two answers are within the margin is
still a row, marked uncertain — neither is ever dropped.quire validate --scope <repo> "spec/**/*.md".
--scopeis the repository root, and must be passed explicitly. The command derives two roots from it and never interchanges them: spec documents come from<repo>/speconly, trace tags from the source tree at<repo>excludingspec/.
PLAT-837 states the enum and the rubric but not a severity table; this skill adopts the mapping every sibling analysis skill in this repository uses — severity reflects how much the weakness degrades what the AC can prove, not how it happens to sort in the enum:
unfalsifiable -> high (the AC cannot fail; the tests tagged with it
prove nothing).implementation_coupled -> medium (the AC over-specifies; it will pass
forever once written and survive a refactor that should have broken it).unmeasurable_threshold -> medium (asserts a quantity it never states).restates_requirement -> low (adds no discriminating power beyond the
FR sentence, but is not itself false).happy_path_only -> low, as its own per-AC finding.sound -> no finding.happy_path_only is both a per-AC weakness_kind finding at low and an
input to the FR-level adverse_case_coverage score — the two are not
alternatives (an earlier draft of this skill treated them as one-or-the-other
and disagreed with the fixture corpus, which already carried a low-shaped
per-AC happy_path_only verdict; fixed to match). A row labelled
happy_path_only files a finding at the row, the same as any other
weakness_kind, and it also contributes to whatever adverse_case_coverage
score the skill computes once per FR over the whole AC set — see
CS-FIX-011/CS-FIX-014 in the fixture corpus for a worked example of the
same underlying gap observed at both granularities, and the entangled_with
note on each explaining why that is one piece of evidence, not two.
A low-confidence verdict in any category is reported at its mapped severity
and marked unconfirmed, never silently dropped to low. The same holds for a
verdict within the margin: reported at its mapped severity, marked uncertain.
assets/fixtures/criterion-strength-fixtures.json holds real acceptance
criteria drawn from specs already in this org's repositories (quoin,
quire-rs, spec-hierarchy), each with a human label and a rationale citing
the criterion's own text — never constructed examples. It carries:
weakness_kind fixtures, covering 5 of the enum's 6 members with a
primary label. unmeasurable_threshold has no clean exemplar in this
corpus — searched across 20 repos in this org and none was found (see the
file's top-level unmeasurable_threshold_exemplar_search note); declared as
a gap rather than filled with a mislabelled placeholder.adverse_case_coverage fixtures (FR-level): a clean 0, a clean 2, a
contested 1 (alternate 2), and a contested 2 (alternate 3) — covering the
rubric's full 0–3 range, including both of its disputed boundaries with an
unambiguous level-2 exemplar sitting between them.confidence: "ambiguous" — cases the lens is
expected to find hard, not clean positives and negatives.Disagreements are recorded, not resolved. A second, independent reader
re-derived every label in this corpus and disputed 9 of the 15 (agreed 6; see
the file's top-level governing_ruling_on_disagreement field). Every fixture
where the two readings differ carries a weakness_kind_contested or
adverse_case_coverage_contested array naming both, plus a confidence_note
identifying the disagreement's source — never a silent pick of one reading
over the other. An answer key with a written-down disagreement is worth more
than one reader's confident labels, because the corpus exists to grade a
classifier, and grading against a label that was contestable but nobody
contested is the failure mode this convention exists to catch.
Keep this count checkable, not just stated (PLAT-933). This same prose
once said "disputed 5 of 14" while the fixtures held 9 of 15 — a mismatch
nobody caught until a live evaluation was already mid-run.
quoin_jev::corpus_check::check_stated_counts derives the actual counts from
the fixture data itself and fails a test if this file's own prose drifts from
them again; check_required_fields does the same for a lens-declared
required input (the FR statement was empty on 10 of 11 fixtures in round one,
also only discovered mid-run). Any lens adding its own fixture corpus
should add one #[test] in its crate's default-gate suite calling both
(see rust/crates/quoin-jev/tests/corpus_adequacy.rs for the pattern against
this corpus) — the functions are generic over serde_json::Value and do not
need to know a lens's Rust types.
This corpus is not the TC-145 ParsedFile/Sync fixture recorded in
PLAT-839's comments. That fixture is a test-vs-requirement divergence case for
PLAT-839's gap-analysis semantic lens; this lens judges an AC's own text in
isolation, never against test code, so it is out of scope here by
construction — not merely left out.
This corpus is data for M2 (accuracy against ground truth) in PLAT-837's MeasurementPlan once the Jev client exists. It has not been run through any classifier — see What is not done yet below.
Stated plainly, so nothing here is read as a working lens:
quire validate --scope <repo>
with the new analysis: value. It cannot be authored — even as a stub —
without a real run to summarise, and the schema value it would declare is
not confirmed landed (see Status above). Emitting one now, before either
dependency lands, is exactly the failure mode spec-review warns against:
an invalid document standing in for permission.MeasurementPlan document (spec/assurance/MP-XXX-*.md) for
this lens, which PLAT-837's "Engineering assurance" section asks to be
authored before implementation. Not written here: the spec/assurance
MeasurementPlan family carries its own reporting-semantics contract
(corpus/spec/evidence/measurements, the reporting-case corpus under
corpus/cases/reporting/) that this change does not touch and should not
guess at. Authoring one correctly is left to whoever picks up the Jev
integration, when there is a real run to define a baseline against.Severity above is this skill's own default mapping, not one PLAT-837
states; it should be revisited once M2/M3 data exists to check it against.Not yet — see Status. Once both dependencies land: on an FR whose ACs are
about to be trusted as a merge gate, the same way spec-ears-analysis and
spec-correctness are used before or alongside gap-analysis.
Not for: authoring or rewording criteria (specify), tagging tests to criteria
(spec-matrix), or judging whether a test that backs a criterion is vacuous
(gap-analysis's assertion_vacuous, PLAT-839 — a different pairing, a
different lens).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub agent-ix/quoin --plugin quoin23 skills in this plugin
/assurance-status-reportProduce an evidence-backed status report for a Quoin/Quire epic, phase, or assurance campaign. Use when asked for progress, percent complete, before/after metrics, completed-ticket inventory, open-work classification, or readiness for the next phase. The workflow is read-only and does not comment on, close, or modify tickets or repositories./design-gatePropose and check a data-flow design, revise bounded denials, and leave acceptance to a person./formalize-requirementDraft and type-check one QSL rule for a requirement.Other plugins' skills for the same job