Commit graph Aetheria/native/aetherlight/src/digest.rs
Author SHA1 Message Date
soul
edeea42f5e aetherlight: partition read indexes owned by Docs; eight whole-partition scans become index reads
A Docs may carry a Projection: a pure function of one document's value.
Docs::finish folds each changed key (old points out, new points in) from
the list the digest folds; Docs::indexed returns (point, key) in order,
corrected by the open log so it is true mid-transaction; rollback never
touches the index. Seven projections: DueAt, StandsAt, ChildOf, BySource,
ByEndpoint, ByController, ByIncumbent. under_place, audience Colocated,
DischargeCommitment holders, scope_components routes and controls,
delegated_authority, derive_motion's commitments and reachable's outbound
edges now read the index; each old scan is kept as a cfg(test) *_by_scan
reference. golden.digests byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 05:58:09 +01:00
soul
28db7e2197 aetherlight: pin every partition's digest, undo and finish, and the failure after the digest
every_partition_is_digested_undone_and_finished iterates the declaration: for
each partition one written document must be in the folded digest and agree with
the full recompute, be put back by rollback (state, bytes, logs), and leave the
logs empty and the accumulator at the full recompute on finish; a partition no
fixture world populates fails loudly. a_failed_apply_rolls_back now runs a tick
that rolls routines, a tick that writes pressure rows (the old tick wrote none,
contrary to its doc), a speech and a forget, each under the revision overflow
and under an injected failure after the digest is folded and the commit sealed
(test-only thread-local seam in submit). Addresses table-rows-undefended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:56:03 +01:00
soul
8ce1e7e23b aetherlight: pin the set digest, the rollback and the digest work bound
Incremental digest equals a full recompute at every revision of the golden
session and across a removal; LtHash16 add then subtract returns to zero in any
order and wraps; digest work per tick and per speech is equal at 100 and 1600
persons and equals Added + Removed + 2 x Updated; a failed apply rolls every
partition back; a v1 commit chain is refused. The clockwork harness takes
period N/2 and prints digests per submit beside the times. PROVENANCE records
the cut.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:45:19 +01:00
soul
5445e5daf9 aetherlight: the state digest is an LtHash16 set digest, events leave the state
The world digest is now a homomorphic set hash over per-document digests
(sha256 of schema, key and the named encoding of the value), updated by the
documents a commit changed, sealed with the revision. WorldState is no longer
an encoded value and loses Serialize; events live once, in the Acted commit
that applied them, and snapshot folds minted_at and last_acted_at over the
journal; knowledge is one document per (subject, fact). Schemas become
world_state.v2 and world_commit.v2, so every digest and the export hash move
and golden.digests is regenerated. verify_state_shape no longer judges events:
replay re-derives each through action::exercise.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:45:18 +01:00