Skip to content

fix(proof): drop x-polylogue-mutually-exclusive from catalog subjects #496

Closed

Description

@Sinity

Problem

8802 of 9046 proof catalog subjects (97%) are kind="schema.annotation" rows derived from the inferred x-polylogue-mutually-exclusive annotation. They drown out the rest of the catalog and verify almost nothing.

The expansion path:

provider sample corpus (e.g. chatgpt: 2122 samples)
  → schema inference enumerates pairs of fields never observed together
  → committed schema gains N "mutually-exclusive" annotations
        (chatgpt: 6065, claude-code: 1353, codex: 787, claude-ai: 312, gemini: 285)
  → polylogue/proof/subjects.py mints one proof subject per pair
  → catalog reports 8802 mutual-exclusion obligations (1 claim × 8802 subjects)

Two things make these subjects low-value:

  1. They are dominated by absence-of-evidence. A pair like {fields: ['email', 'title'], parent: '$'} (chatgpt) means "in 2122 samples, email and title never co-occurred." That is not the same as "they are mutually exclusive in the format." Most of the 6065 chatgpt entries are sampling artifacts, not invariants.

  2. The runner is self-referential. schema.mutual_exclusion.exclusive (runner class schema_static, evidence class structural) checks that the synthetic-payload generator does not co-populate exclusive fields. But the generator reads the same annotations to know what to avoid. Both sides of the obligation come from the same inference output. The obligation cannot detect the case that matters — fresh provider data co-populating fields the inference said were exclusive — because nothing on either side looks at fresh provider data.

The result is a catalog that reports 9149 obligations and looks deeply covered, while the actual claim graph behind it is 22 claims, of which one (schema.mutual_exclusion.exclusive) accounts for 96% of obligations and produces no signal external code paths can detect.

Target

Stop generating proof subjects from x-polylogue-mutually-exclusive.

Concretely:

  1. In polylogue/proof/subjects.py:
    • Remove "x-polylogue-mutually-exclusive" from SELECTED_SCHEMA_ANNOTATIONS.
    • Remove the corresponding branch in _annotation_subjects_for_schema().
  2. In polylogue/proof/catalog.py:
    • Remove the Claim(id="schema.mutual_exclusion.exclusive", ...) definition.
    • Remove the mutual_exclusion_query plumbing.
    • Remove its runner binding (schema-annotation-static-contract for the mutual-exclusion claim only — keep the binding for schema.values.value_closure and schema.foreign_key.resolves).
  3. Run devtools render-verification-catalog to regenerate docs/verification-catalog.md.

What we keep:

  • x-polylogue-values subjects (88) — discriminated-union tags and status enums. Real invariants. Runner checks observed_values ⊆ declared_values, which catches genuine provider drift.
  • x-polylogue-foreign-keys subjects (7) — small, structurally verifiable from the schema.

What we don't change:

  • The x-polylogue-mutually-exclusive annotation itself stays in committed schemas. Schema inference (devtools schema-generate) continues to produce it. It remains useful for documentation, generator constraints, and future operator review. It just stops minting proof subjects.

Expected effect

Catalog snapshot:

before: subjects=9046  claims=22  obligations=9149
after:  subjects=~244  claims=21  obligations=~347

The claim density inversion described in #421 collapses. The remaining behavioral and product obligations now dominate the catalog summary, and depth-improvements (#421, #421-comment maintenance targets, #494 freshness) act on a non-inflated base.

Acceptance (executable)

nix develop -c python -c "
from polylogue.proof.subjects import build_catalog_subjects
from collections import Counter
c = Counter(s.kind for s in build_catalog_subjects())
print(c)
"
# expected: schema.annotation count ≈ 95 (88 values + 7 foreign-keys), no longer ~8897
devtools render-verification-catalog
git diff docs/verification-catalog.md   # shows ~9000 obligations removed
devtools verify --quick                 # passes

Related

Cross-reference: holistic assurance umbrella

Filed 2026-04-27. This issue is part of the holistic assurance coverage map (#506) which restructures verifiability work around four tracks (stop lying / coverage map / routing-proof-pack / product confidence) and introduces an Oracle primitive (#507), declarative coverage manifests (#508 assurance-domains, #509 oracle-quality), and operator-facing proof packs (#510).

Read in conjunction with #506 to see how this issue fits into the broader confidence model.

Activity

  1. added
    type:fix
    theme:verifiability
    on Apr 26, 2026
  2. added a commit that references this issue on Apr 27, 2026
    cae8ef7
  3. added a commit that references this issue on May 7, 2026
    cc23a25
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:schematheme:verifiabilitytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions