Repository navigation
Description
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:
-
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. -
The runner is self-referential.
schema.mutual_exclusion.exclusive(runner classschema_static, evidence classstructural) 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:
- In
polylogue/proof/subjects.py:- Remove
"x-polylogue-mutually-exclusive"fromSELECTED_SCHEMA_ANNOTATIONS. - Remove the corresponding branch in
_annotation_subjects_for_schema().
- Remove
- In
polylogue/proof/catalog.py:- Remove the
Claim(id="schema.mutual_exclusion.exclusive", ...)definition. - Remove the
mutual_exclusion_queryplumbing. - Remove its runner binding (
schema-annotation-static-contractfor the mutual-exclusion claim only — keep the binding forschema.values.value_closureandschema.foreign_key.resolves).
- Remove the
- Run
devtools render-verification-catalogto regeneratedocs/verification-catalog.md.
What we keep:
x-polylogue-valuessubjects (88) — discriminated-union tags and status enums. Real invariants. Runner checksobserved_values ⊆ declared_values, which catches genuine provider drift.x-polylogue-foreign-keyssubjects (7) — small, structurally verifiable from the schema.
What we don't change:
- The
x-polylogue-mutually-exclusiveannotation 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
- feat(proof): add product-surface obligation families #421 — adds claim depth. After this drop, feat(proof): add product-surface obligation families #421's expansion happens against an honest base, not a 9149-obligation backdrop that looks deceptively covered.
- feat(proof): evidence freshness SLA and per-claim coverage report #494 — evidence freshness SLA. Mutual-exclusion obligations would all show "fresh" trivially under any SLA because the runner is structural-static; dropping them removes a metric distortion.
- Held-out inference validation (sibling, filed separately) — the real check on inferred annotations, replacing the tautological proof subjects with a meaningful validation against fresh corpus data.
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
fix(proof): drop x-polylogue-mutually-exclusive from catalog subjects (…
fix(proof): drop x-polylogue-mutually-exclusive from catalog subjects (…