Created by: OpenAI Codex
Source: docs/creation/review/18-seed-reduction-against-the-transcript.md
Date: 2026-11-26. Candidate analysis, not a replacement of the accepted implementation or a ratified seed. Scope: preserve the distinctions and outcomes of the addressed semantic transcript in note 16, then identify where the resulting smaller mechanism would fall short of broader STREAM goals.
1 Result
The transcript can use fewer domain fields and avoid general recursive inference, but neither result establishes a universally minimal reader. Remove the one-use counter and separate grant identity in this example. Keep activation, authenticated admission, occurrence identity, atomic guarded updates, and historical interpretation explicit. Compare a finite relational reader with a more restrictive forest reader; do not silently exchange their meanings.
The central candidate transition equation is:
B_next = (B_current minus C) union A
C is a finite set of exact live occurrence IDs consumed by the action. A is a finite set of fresh typed occurrences produced by it. Preconditions, write authority and post-state constraints must hold. H_next appends the accepted event; no historical record is deleted. Derived state is recomputed or maintained from the active base and prefix-effective definitions.
This is a unification of effect representation. It does not by itself supply permission, containment laws, numeric conservation, or admission rules.
2 What can be removed and what that means
| Candidate removal | Replacement | Result for this transcript | Cost or limit |
|---|---|---|---|
| Numeric remaining_uses = 1 | A grant occurrence is live or consumed | Preserves the one-use behavior | Multi-use grants need further structure/arithmetic |
| Separate fresh grant ID G | Use the grant fact occurrence q14 as identity | Preserves exact reference and consumption | A grant that changes while retaining continuing identity may need a separate referent |
| Independent entity ID allocator | Use a tagged birth occurrence address | Preserves occurrence identity | Fresh/local reference reservation still exists |
| Primitive principal concept | Active binding rule produces principal classification | Preserves delayed recognition | Initial steward authentication remains supplied |
| Materialized principal table | Query the admitted rule when needed | Preserves conclusions at each prefix | Rule ID, evidence and activation timing remain necessary |
| Materialized in/within tables | Evaluate containment on demand | Preserves queries | Computation is moved, not eliminated |
| General recursive rule engine | Finite derived definitions plus bounded forest traversal | Can preserve this forest transcript | Restricts admissible rules and adds structural traversal semantics |
| Arbitrary inference through absence | Current versioned parent slot and complete path checks | Can preserve the topology checks | Stronger state representation; not a general solution to unknown facts |
| Separate check command | Admission computes checks and records receipt | Preserves outcomes | Independent review/check evidence can still be useful |
| Distinct domain state mutation primitives | One consume/produce delta | Preserves effects | Typed operation rules and reserved metadata boundary remain |
| Sequential activate command | Make proposal immediately usable | Does not preserve transcript | Erases dormant proposal and independent admission states |
| Exact occurrence addressing | Select any matching fact tuple | Does not preserve transcript | Ambiguous consumption and stale-reference behavior |
| Atomic commit | Emit/retire one at a time | Does not preserve transcript | Partial movement or capability consumption becomes possible |
| Trusted starting admission | Infer authority from cyclic declarations | Does not preserve transcript | No independent premise grounds authority |
3 Simplified one-use capability
Use a base predicate:
one_use_grant(holder, action_definition, scope)
An occurrence q14 contains (P, move_ref, B). Its occurrence identity is the capability token for this example. Liveness means unused; retirement means consumed or otherwise closed according to the named action. The causal event distinguishes use from revocation even though both remove the token from the live projection.
The issue action creates q14. No separate fresh G or integer 1 is necessary. The move request names q14 and the old parent occurrence q9. The reader checks their contents, current liveness, authenticated holder binding, action identity and scope before consuming either.
Two distinct grant occurrences with equal tuples are two independent one-use authorizations. This is a defined policy; if a domain prohibits duplicate authorizations, it needs an issuance constraint. No ordinary action may re-emit a retired occurrence ID. Creating another authorization requires a newly admitted issuance event and new occurrence ID.
Do not claim grants are physically conserved. The governance rule permits issuance; a use transition consumes this particular authorization. Net grant count can change through issuance and revocation.
4 Entity birth without a second allocator
A creation action can emit a designated birth occurrence and use its tagged occurrence address as the entity reference. For example, local binder $0 names the first birth output in the proposed transaction; emit entity($0) and boundary($0) then refer to it.
The reader reserves local output identities before evaluation and exposes them only after commit. Refusal leaves no live entity. Canonical output order and address tags remain part of the reader contract. This removes an independent identity allocation scheme, not the ability to allocate fresh occurrences.
Entity identity must not be conflated with a claim's current liveness: retiring a classification claim does not erase the referent's historical identity. A declared birth marker can be protected from ordinary retirement while its status and classifications change through other occurrences.
5 Guarded occurrence rewriting
For a request r at prefix n:
C = exact occurrence IDs named for consumption
A = fresh occurrence outputs determined by the active action
require every member of C is live and writable by that action
require pre-state guard and authenticated admission
require types and constraints on the staged post-state
commit history event and active-state delta atomically
Failure changes audit/idempotency state only. Matching facts that are merely read are not consumed. A read witness used by a precondition must still be valid at acceptance; choosing a stale witness cannot bypass re-evaluation.
For L:15 after the grant simplification:
inputs consumed: q9 = parent(A,B), q14 = one_use_grant(P,move_ref,B)
output produced: q15 = parent(A,C)
The old records persist in H. A stays inside B transitively, becomes directly inside C, and ceases to be directly parented by B. The grant is consumed. The request depends on the exact move definition effective at its address.
The event has multiple typed effects. In the membership projection it removes and adds a parent edge. In the capability projection it consumes authorization. There is no conservation equation summing these unlike meanings.
6 Two candidate readers
Reader A with finite relational closure
Retain the positive finite rule engine from note 15. It derives containment and other recursive relationships under one generic procedure. Keep exact occurrences for base facts, active-definition references, bounded guards and atomic deltas. Remove redundant fields identified above.
Advantages: arbitrary supported positive recursive relationships can be declared as data; containment is not a special native concept; the existing transcript maps directly. Costs: general fixed-point computation, dependency maintenance after retirement, arity/type rules, work bounds, and complete-scope absence semantics.
Reader B with finite derived expressions and forest traversal
Permit acyclic derived definitions and a bounded fold over explicit finite lists, with a declared single-parent forest representation. Containment follows by walking current parents. The concrete principal rule is acyclic and needs no fixed-point engine.
Store one current parent slot for each structural node, initially root/unattached, and replace it using an exact expected version. For a move, inspect the complete current ancestor chain of the target. Refuse if it reaches the item being moved; require a verified root/unattached terminator. Source and destination scope membership use the same current chains.
This chain is complete only because each node has one authoritative current parent or explicit terminator. Every read is relative to the same accepted prefix. A caller can supply a path witness, but each edge/version must be verified and the chain must end correctly; a shortened path is not proof of no cycle. Check current uniqueness and endpoint types as representation invariants. A finite path length bound and list parsing limit are part of evaluation.
The parent-slot map can be a derived index of emitted/retired edges. If treated as native state, it adds versioned-cell semantics. Either choice has cost. This construction does not remove general absence for every domain; it avoids selected absence queries by using a more constrained representation.
Multiple-parent organizational membership, arbitrary graph reachability, recursive delegation policies and recursive domain inference need additional constructions. A finite fold can encode broad computations; its allowed operations and traversal inputs still require restriction. Describing it as a fold does not automatically make the reader small or safe.
Selection criterion
Reader B can reproduce this transcript's observations, but it cannot necessarily accept the same definitions: recursive in rules would be replaced by a traversal definition. This is a semantic translation for a restricted domain, not byte compatibility or unrestricted language equivalence. Keep A as the reference semantics until the wider STREAM operators establish that B's restrictions suffice.
Compare trusted implementation size, admitted language size, maximum evaluation cost, canonical transcript complexity, incremental repair cost, and ability to express actual domain rules. No measurements or comparative implementation are claimed here.
7 Activation is not ordinary permission
Activation could eventually be represented as a protected action over a reserved definition registry. This unifies the outer event representation, but does not remove its rules: prefix-effective admission, static checks, dependency resolution, post-activation constraints, and effectiveness from the next position.
Keep activation explicit in the reference language for now. Do not give an arbitrary ordinary action the ability to emit an active-definition tuple. Its write set would otherwise bypass the admission checks. Similarly, an administrative policy change must pass the already active governance rule; proposed authority cannot approve itself.
The transcript deliberately separates proposal at L:11, binding evidence at L:12, and activation at L:13. Merging them would change the demonstrated history even if the final principal set matched.
8 Extension pressure from TO
The occurrence rewrite model also represents a paired transfer without a new general state mutation primitive. Let current balance occurrences be b_i = balance(i,u,x) and b_j = balance(j,u,y), with one live balance per account and unit.
For distinct accounts i and j, q > 0, compatible exact unit/scale, available authority and sufficient funds where the domain forbids overdraft:
consume b_i and b_j
produce balance(i,u,x-q) and balance(j,u,y+q)
Conservation follows:
(x-q) + (y+q) = x+y
Other balances are unchanged, so this preserves the unit total under the stated representation. Checked exact arithmetic and range limits are required; overflow refuses the transaction. Self-transfer is handled by an explicit policy rather than attempting to consume the same occurrence twice. If balance occurrences are projections instead of authoritative base facts, use canonical transfer events and derive balances; do not introduce a second source of truth accidentally.
This example shows why removing arithmetic solely because the bootstrap grant needs no counter would be premature. Arithmetic is unnecessary for the one-use grant, but quantity semantics need it or an explicit encoding with equivalent computational cost. General aggregation over large histories can still be deferred if local paired updates and unique balance invariants provide the necessary transition law; authoritative accounting representation remains a later decision.
Reservations, conversions, partial settlement, losses and external flows require typed conventions beyond this example. A declared conservation equation concerns a specified unit/model and boundary, not every possible property of work.
9 Decision proposal
Adopt for continued analysis: occurrence identity for one-use grants; no one-use numeric counter; birth references from the same occurrence-addressing mechanism; consume/produce as a shared delta representation; derived principal and containment views; explicit activation and prefix-effective governance.
Retain in the reference semantics: finite positive closure, typed guards, complete-scope absence checks, registered constraints, exact identity and authentication, atomic commitment, deterministic receipts, and retry behavior. These are candidates for refinement, not approved implementation changes.
Defer the choice of recursive closure versus bounded structural traversal until TO, authority delegation, multiple memberships and the matrix's row-crossing operations have been expressed in both candidates where feasible. A smaller transcript-specific machine is useful evidence but insufficient justification for narrowing STREAM's universal scope.
Next deliverable: express IN, IS, MAY and TO as typed guarded rewrites; mark which parts share machinery and which require distinct laws. That is the strongest next test of whether the proposed common foundation simplifies the actual system.