Spec Studio

Each keyed rule shows the examples that exercise it, or that none does

spec:consumers.spec-studio.verification-panels.rule-coverageExample / Scenario · storyready floor ready

Packs: pack:self-hosting-v1, pack:spec-studio-v1

Design: no design entries · no pinned declarations · no decisions

Findings: no errors, no warnings

specs/consumers/spec-studio.verification-panels.rule-coverage.sdp.md

No open questions and no blocking questions; implementation binding none, verifier binding present, and expected-outcome oracle none.

Intent
outcome
Execute rule coverage on a Spec page: an exercised rule lists its example in words, and an unexercised rule says so.
assumptions
  • The world writes a root with one behavior Spec holding the rules keyed paid and refunded and one example child that verifies it, exercising paid, bound by a specTest anchor; it builds the page set and reads the Spec page beside each keyed rule.
Behavior

Examples

Given a Spec whose keyed rule {exercisedKey: "paid"} an enabled example exercises and whose keyed rule {otherKey: "refunded"} no example exercises
When the build renders the Spec's page
Then beside the first rule the panel lists the example as {enabledWords: "enabled"}
Then beside the second rule the panel reads {unexercised: "no example exercises it"}
Verification

Verifier bindings

  • test:protocol.studio-rule-coverage · anchored · test anchor binding present · test/studio-s2.test.ts:220

    External run evidence from test/studio-s2.test.ts

    Test anchors: test:protocol.studio-cited-declaration, test:protocol.studio-panels, test:protocol.studio-rule-coverage. Specs verified by those bindings: spec:consumers.spec-studio.pack-page.maturity-map, spec:consumers.spec-studio.spec-page, spec:consumers.spec-studio.spec-page.cited-declaration, spec:consumers.spec-studio.verification-panels, spec:consumers.spec-studio.verification-panels.rule-coverage.

    Run 1: external run evidence from vitest 4.1.10

    Build: CI 391 · Branch: cursor/media-plan-and-articles-09b1 · Commit: 076cd4f1f85640d8236e5cca1bffffa68ab79a33 · Start: 2026-10-31T15:32:20.471Z · Stop: 2026-10-31T15:34:02.073Z

    NameSuiteResultDuration
    marks every displayed file and line across the Studio page set for source linksnot recordedpassed109.94 ms
    renders citation labels consistently on Spec and declaration pagesnot recordedpassed39.55 ms
    executes the bound example against a fresh worldA pinned declaration shows the test line that cites it (spec:consumers.spec-studio.spec-page.cited-declaration)passed12.75 ms
    executes the bound example against a fresh worldEach keyed rule shows the examples that exercise it, or that none does (spec:consumers.spec-studio.verification-panels.rule-coverage)passed16.15 ms
    renders the five open panels in order, the space, bound values, absent evidence, and empty composing slotsSpec panelspassed14.06 ms
    gives keyed terms address ids, source lines, and citations while hiding termKeys metadataSpec panelspassed15.16 ms
    places resolved Pack members in stated/floor cells in authored orderSpec panelspassed22.35 ms
    keeps the maturity heading and axis explanations inside the embeddable elementSpec panelspassed20.36 ms
    distinguishes test lines from citations by files with unrelated anchorsSpec panelspassed21.31 ms
    renders composing slots beside unkeyed questions using the Spec scopeSpec panelspassed14.33 ms
    keeps the unbound-verifier sentence to graph bindings without run inputSpec panelspassed19.45 ms
    renders source locations, component links, decisions and transitive impact by distanceStructural panels and targetspassed30.62 ms
    states absence on unwritten examples and unset constraint targetsStructural panels and targetspassed22.85 ms
    labels a keyed rule's unbound example as not enabledStructural panels and targetspassed10.05 ms
    renders structure from recipe answers and reader records without exposing raw graph dataStructural panels and targetspassed19.72 ms
    renders verifying examples for a Model without Behavior and keeps short cards to their summarynot recordedpassed10.67 ms
    keeps example steps and composing actions outside a short Spec cardnot recordedpassed18.09 ms
    keeps trace and requirement description and arrow ids distinct for one Spec subjectnot recordedpassed15.14 ms
Design view

Requirement drawing

  • Satisfying or referencing units: no recorded binding.
Requirement drawing for spec:consumers.spec-studio.verification-panels.rule-coverage
The diagram as text
  • spec:consumers.spec-studio.verification-panels.rule-coverage: Each keyed rule shows the examples that exercise it, or that none does · declared Spec
  • spec:consumers.spec-studio.verification-panels: The panels for examples, targets, verifiers and evidence · declared Spec
  • test:protocol.studio-rule-coverage: test:protocol.studio-rule-coverage · anchored test binding · binding present · test/studio-s2.test.ts:220
  • spec:consumers.spec-studio.verification-panels.rule-coverage refines spec:consumers.spec-studio.verification-panels · declared
  • spec:consumers.spec-studio.verification-panels.rule-coverage verifies spec:consumers.spec-studio.verification-panels · declared
  • test:protocol.studio-rule-coverage verifies spec:consumers.spec-studio.verification-panels.rule-coverage · anchored
Mermaid source

Copyable source; the Studio draws static SVG.

Preferred and chosen syntax: requirementDiagram; exact refines, satisfies and verifies, with claim words in nodes and per-edge comments.

Decisions

No decision record named.

Runtime

No implementation neighborhood recorded.

Runtime observation: not tracked.

Evidence

Runtime observation: not tracked.

Build attestations: not tracked.

Deployments: not tracked.

Bills of materials: not tracked.

Impact
Relations of spec:consumers.spec-studio.verification-panels.rule-coverage
  • E2: verifies · declared
The diagram as text
  • spec:consumers.spec-studio.verification-panels: The panels for examples, targets, verifiers and evidence
  • spec:consumers.spec-studio.verification-panels.rule-coverage: Each keyed rule shows the examples that exercise it, or that none does
  • spec:consumers.spec-studio.verification-panels.rule-coverage refines spec:consumers.spec-studio.verification-panels · declared
  • spec:consumers.spec-studio.verification-panels.rule-coverage verifies spec:consumers.spec-studio.verification-panels · declared
Mermaid source

Copyable source; the Studio draws static SVG.

Preferred syntax: flowchart. Chosen syntax: labelled flowchart, preserving exact relations, claims and folds.

Rests on

Rested on by

No Spec rests on this Spec.

Relations

Relation and directionOther endClaimReasonExercised keys
refines · outgoingThe panels for examples, targets, verifiers and evidence
spec:consumers.spec-studio.verification-panels · resolves
declaredNoneNone
verifies · outgoingThe panels for examples, targets, verifiers and evidence
spec:consumers.spec-studio.verification-panels · resolves
declaredNoneruleCoverage

Bindings

Implementation binding: none

Design reference: none

Verifier binding: present

  • test:protocol.studio-rule-coverage · anchored · test/studio-s2.test.ts:220 · test anchor

Expected-outcome oracle: none

Runtime observation: not tracked.

Run results: not recorded in the graph.

Findings

None.

Composing (0)

Composing needs the script.