diff --git a/docs/architecture/ghostlight-library-extraction-cut.md b/docs/architecture/ghostlight-library-extraction-cut.md index c551781..216807a 100644 --- a/docs/architecture/ghostlight-library-extraction-cut.md +++ b/docs/architecture/ghostlight-library-extraction-cut.md @@ -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 diff --git a/docs/architecture/ghostlight-library-extraction.md b/docs/architecture/ghostlight-library-extraction.md index f5afd1a..01c56f4 100644 --- a/docs/architecture/ghostlight-library-extraction.md +++ b/docs/architecture/ghostlight-library-extraction.md @@ -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