Rule Q1-9: sealing means unforgeable admission
External code may hold a syntactically valid ID, digest or opportunity, because Dungeon's Eve payloads deserialize them. What must hold is that the kernel rejects every one it did not issue, proven by rejection tests written from outside the crate. The compile_fail set stays for the genuinely private items, with its limit stated: it pins a path name and cannot see constructibility. The target's first invariant now says that, so the claim matches what the boundary does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
af63b0cd13
commit
7c1d1e96fa
2 changed files with 15 additions and 1 deletions
|
|
@ -123,7 +123,12 @@ Follow-ups outside this migration, from the fix batch:
|
|||
- `require_command_options` searches a fixed 18-line window, so a block
|
||||
that grows past it stops being checked silently.
|
||||
|
||||
Open: **Q1-9 what sealing means.** A: restate invariant 1 as unforgeable
|
||||
**Q1-9 what sealing means (ruled, operator, 2026-09-16): option A.** The
|
||||
invariant is unforgeable admission, not unconstructible types. External
|
||||
code may hold a syntactically valid ID, digest, or opportunity; the kernel
|
||||
must reject any it did not issue, and that is proven by rejection tests
|
||||
written from outside the crate. The compile_fail set stays for the
|
||||
genuinely private items. The question as first posed: A: restate invariant 1 as unforgeable
|
||||
*admission* — external code may hold a syntactically valid ID or opportunity,
|
||||
and the kernel must reject any it did not issue — and prove it with rejection
|
||||
tests from an external crate plus the existing compile_fail set. B: make the
|
||||
|
|
|
|||
|
|
@ -24,6 +24,15 @@ a `pub(crate)` convention.
|
|||
`WorldState`, canonical ID allocator, reducer entry, journal writer, or
|
||||
authenticated-caller constructor. Negative proofs are compile-fail tests
|
||||
from outside the library.
|
||||
|
||||
Sealing means **unforgeable admission**, not unconstructible values
|
||||
(operator ruling Q1-9, 2026-09-16). Public ID types, `ScopeDigest` and
|
||||
`DecisionOpportunity` derive `Deserialize` because Dungeon's own Eve
|
||||
payloads carry them, so any caller can build a syntactically valid one.
|
||||
The kernel must reject every one it did not issue, and rejection tests
|
||||
written from outside the crate are the proof. A compile-fail test pins a
|
||||
path name and cannot see constructibility: adding a `Default` impl that
|
||||
mints an ID left all ten green.
|
||||
2. **No behavior change.** Every existing test passes unchanged in meaning.
|
||||
No schema string, command id namespace, digest preimage, or store layout
|
||||
changes: a `world.cc` and controller work store written before the cut open
|
||||
|
|
|
|||
Loading…
Reference in a new issue