Skip to content

feat(proof): docs/plans/assurance-domains.yaml — coverage matrix manifest #508

Closed

Description

@Sinity

Parent

Track B (Coverage map) of the holistic assurance umbrella. Foundational manifest — most other Track B issues depend on this.

Problem

The project has 26+ product confidence domains (per the audit's coverage matrix) but no declarative artifact saying which subject kinds, claim families, oracle types, and evidence gates each domain requires. Without that declaration:

  • New claims don't know which domain they belong to.
  • The catalog can't be grouped by domain (it groups by subject.kind and evidence_class, both of which are mode/family attributes, not confidence dimensions).
  • A proof-pack can't tell the operator "this diff touched docs_media, here's that domain's coverage status."
  • Whole product surfaces (browser extension, distribution, security, docs/media, test-quality) have no native subject family because no manifest has demanded one.

Target

Add docs/plans/assurance-domains.yaml. Schema:

domains:
  data_fidelity:
    description: "Provider parsing, schema packages, content-block semantics."
    required_subject_kinds:
      - provider.parser
      - provider.capability
      - schema.package
      - schema.annotation
      - content_block.kind
    required_claim_families:
      - parses_training_corpus
      - preserves_provider_identity
      - preserves_content_block_kinds
      - quarantines_with_redaction
      - schema_package_validates_corpus
    allowed_oracle_kinds:
      - corpus_replay
      - witness_replay
      - trace_equivalence
      - manual_review
    minimum_proof_count_per_provider: 5

  surface_parity:
    description: "CLI / MCP / facade / sync / async equivalence."
    required_subject_kinds:
      - cli.command
      - mcp.tool
      - facade.method
      - sync.method
      - async.method
    required_claim_families:
      - presence_parity
      - filter_parity
      - output_shape_parity
      - error_shape_parity
      - trace_equivalence
      - destructive_safety_parity
    allowed_oracle_kinds:
      - trace_equivalence
      - corpus_replay
      - benchmark_baseline
    minimum_operations_covered: 0.9   # 90% of declared operations

  docs_media:
    description: "README, generated docs, scenario-backed media, screenshots, VHS."
    required_subject_kinds:
      - readme.example
      - docs.page
      - media.asset
      - scenario.projection
    required_claim_families:
      - command_example_executes
      - prose_claim_has_scenario_or_source
      - media_nonblank_readable
      - visual_review_current
    allowed_oracle_kinds:
      - corpus_replay      # scenario re-execution
      - render_drift       # generator vs committed file
      - visual_manual_review
    visual_review_max_age_days: 90

  # ... + 23 more domains per the audit's coverage map

Per-domain fields

Each domain entry declares:

  • description — operator-facing explanation.
  • required_subject_kinds — every domain needs at least one subject of each kind, or an explicit exemption with reason.
  • required_claim_families — every required subject must be covered by claims from each family.
  • allowed_oracle_kinds — controlled vocabulary; restricts what counts as evidence in this domain.
  • minimum_*_count_per_* — domain-specific coverage thresholds.
  • manual_review_max_age_days — for domains whose strongest evidence is human-reviewed (aesthetics, security, schema inference truth).

New verify-coverage-matrix lint

Reads the manifest + the proof catalog + evidence records:

$ devtools verify-coverage-matrix
domain                    | subjects | claims | proof | drift | smoke | manual | gaps
data_fidelity             | 247       | 12     | 7      | 3      | 8      | 2       | preserves_content_block_kinds: missing for codex
surface_parity            | 38        | 18     | 0      | 12     | 6      | 0       | trace_equivalence: 0/18, no oracle
docs_media                | 19        | 4      | 1      | 2      | 1      | 0       | visual_review_current: missing for all 4 assets
...

Wired into verify --quick as soft mode initially (per #490 escalation manifest), escalating to blocking once each domain has the declared minimum coverage.

Cross-references onto existing structure

Every claim in polylogue/proof/catalog.py gains an assurance_domain field that must match a key in this manifest. Catalog rendering groups by domain instead of by subject.kind. Affected-obligations output adds domain attribution.

Seed source

Per the audit, #421 is the right seed: it already enumerates browser extension, site publication, docs/media, distribution, input workflow, scenario projection adequacy, and maintenance-target coverage. Reframe #421 as "extend assurance-domains.yaml with the listed product-surface domains" instead of "add product-surface obligation families to the catalog."

Why this matters

  • Honest coverage reporting. Today the catalog says "9,149 obligations." This manifest lets the dashboard say "data_fidelity: 4/12 claim families have proof-class evidence; 3/12 have only construction-sanity; 5/12 missing entirely."
  • Routing target for proof-pack. A proof pack groups affected obligations by domain. Without this manifest, the grouping has no anchor.
  • Closes the "where do I add a new claim" question. Every claim gets a domain; every domain gets a manifest entry; the manifest is the source of truth for completeness.
  • Replaces ad hoc subject-kind taxonomy. The current subject.kind field (cli.command, schema.annotation, etc.) describes what a subject is. assurance_domain describes what confidence we get from claims about it. Both are needed.

Acceptance (executable)

test -f docs/plans/assurance-domains.yaml
yamllint docs/plans/assurance-domains.yaml
devtools verify-coverage-matrix --check
# exits 0; manifest has ≥26 domains; every claim in catalog has a domain;
# every required_claim_family lists at least one allowed oracle kind

# After Track A and the ontology issue land:
devtools verify-coverage-matrix
# exits 0 in soft mode initially; reports per-domain status table

Coordination

Out of scope

  • Per-domain claim implementations (each domain owns its own issue).
  • Manual-review evidence machinery (sibling issue).
  • Specific oracle implementations (per-domain issues).

Activity

  1. added
    type:feat
    theme:verifiability
    area:devtools
    on Apr 27, 2026
  2. Sinity commented on Apr 29, 2026

    @Sinity
    OwnerAuthor

    Implemented: #478 test fixes, Oracle primitive, suppressions scaffolding, manifest consistency lint, and Track B coverage manifests.

  3. added a commit that references this issue on Apr 30, 2026
    50cc492
  4. added a commit that references this issue on May 7, 2026
    f59f83a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devtoolstheme:verifiabilitytype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions