Commit graph Aetheria/native/aetherlight
Author SHA1 Message Date
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
9c8ab5ec85 aetherlight: TickMinutes owns its bound at decode, replay's clock clause goes
TickMinutes was serde(transparent): a stored zero-minute tick (or a span above
MAX_ROUTE_COST, which submit cannot build) decoded, and replay's clock clause
alone judged it. The type now decodes through TryFrom<u32> (1..=MAX_ROUTE_COST),
so a command, a routine period or a stored tick outside the bound cannot be read.
With that the clock clause in verify_history is unreachable (only TimeAdvanced
writes the clock, and a tick's span is at least one minute), so it is deleted
rather than defended; so is the period clause in verify_state_shape. Tests:
bounds at decode, and an export whose tick span is rewritten to 0 or over the
bound does not open. Addresses clock-clause-not-redundant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:49:28 +01:00
soul
415ac9208b aetherlight: a commit of another schema generation is refused by name
A v1 export is well-formed, so it is not corruption: open now returns
UnsupportedSchema{found, supported} from the one schema judge, asked of every
commit before its other fields are believed, instead of CorruptJournal at
genesis. The test asserts the version in the error for a v1 chain and a later
commit of another generation. Addresses v1-refusal-unnamed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:48:56 +01:00
soul
6896553a5b aetherlight: the partitions are declared once, the table is generated
The WorldState partition fields, the table begin/folded/finish/rollback and the
test oracle walk, and the empty world all come from one world_state! row list.
A partition cannot be a field without being in the digest and under the undo
log, and a field added to the generated struct without a row fails to compile
(missing field in with_header). Addresses partition-table-second-authority.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:44:41 +01:00
soul
412084d308 aetherlight: pin the snapshot's past_due against the clock
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:09:02 +01:00
soul
30c65cdef5 aetherlight: kill the surviving mutants of the digest and replay rewrite
An unchanged touched document costs no digest, begin refuses an open log, known_by is the knowledge
partition read the other way, each arm of the knowledge shape check and of the committed-command
target check is judged alone, the replay future check reads only touched new keys, and document keys
are canonical text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:05:51 +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
soul
993b7a2948 aetherlight: partitions become tracked documents, submit applies in place under an undo log
Docs and Tracked<WorldHeader> record the first-touch value of every written
key. submit applies to the live state between begin and finish and rolls back
on any error, so the world is no longer cloned per commit; replay reads the
commitments subjects finish() reports instead of cloning the partition.
The encoding is unchanged: golden.digests is byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:45:17 +01:00
soul
36d1d2507d aetherlight: pin the digest and genesis clauses, record a band draw in the golden, document host contracts
A stored digest flipped without re-sealing, and each genesis clause rewritten
and re-sealed on a lone genesis, are now refused by tests that only that clause
can satisfy. The golden session declares a two-band toss and uses it three
times, so band selection is pinned (golden.digests regenerated). The
BandPreimage doc no longer claims the payload cannot reach the draw; WorldId
byte-equality, and truncation or rollback of an export, are documented as host
contracts in the code and PROVENANCE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:06:59 +01:00
soul
7b7d12ea83 aetherlight: pin the world-id derivation, revision position and chain-resealed schema refusal
Mutants that survived the first pass: dropping the genesis world-id check,
dropping the resulting-revision contiguity check, and a ghostlight commit schema
check (the old fixture left the next commit's previous digest stale, so the
chain refused it for the wrong reason). Each now has a test that fails without
the rule; all eleven named mutants are killed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:45:26 +01:00
soul
d3a1caa01b aetherlight: golden session digests, clockwork commit-cost harness, provenance
fixtures/golden.digests pins every committed revision's state and commit digest
and the export digest for one scripted session: speech (Told), a display, a
routine placed and rolled by a thirty-minute tick, and a refused convene. The
round-trip test reopens the export and checks the next command gives equal
receipts on both worlds. clockwork_commit_cost is an ignored harness that
prints mean tick and speech submit times at 100, 400 and 1600 persons.
PROVENANCE.md records the id, journal and dependency changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:40:09 +01:00
soul
94a3c67d6d aetherlight: the journal is an in-memory commit list with export and open
The redb store, the state row, health and ownership checks, verify_append and
the retry paths are gone. WorldJournal holds the commits in revision order;
export() writes { schema: aetherlight.journal.v1, commits } as canonical named
messagepack and open(bytes) decodes canonically and replays through
verify_history, which now reads the slice and returns the head state it
derives. A genesis commit must carry WorldId::of(creation id). chrono,
cultcache-rs and tempfile leave the manifest; uuid v4 is dev-only. Tests build
worlds in memory and reopen from export(); forgery tests build exports.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:35:03 +01:00
soul
84a48f3f60 aetherlight: derive command, creation and world ids from content; drop committed_at; rename schemas
A command is named by sha256 over world, expected revision, caller and body;
a creation by its own bytes; a world by its creation. The id fields, the
random CommandId::new / WorldId::issue and WorldCommit.committed_at are gone,
so equal commands commit equal bytes. Retry identity goes with them:
SubmitReceipt collapses into CommitReceipt and a resubmitted command is a
RevisionMismatch. Schemas are aetherlight.world_state.v1 and
aetherlight.world_commit.v1; ghostlight rows stay refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:24:26 +01:00
soul
39c50acfcd Aetherlight AL2b-2b: schema consumer.v10, v9 refused; pins and PROVENANCE
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:28:06 +01:00
soul
bdda374f20 Aetherlight AL2b-2b: delete controllers
ControllerAssignment, ControllerId/Mode, NewController, DecisionScope,
SubjectDeclaration.controller, UnadmittedController, validate_assignment and
the snapshot controller fields go. admits_human becomes is_genesis. The
fixture lookup is by label. The channel controller is untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:25:32 +01:00
soul
c79f9b5671 Aetherlight AL2b-2b: retirement lives on SubjectState; grants keyed by SubjectId
SubjectState.retired is the one stored statement; is_retired reads it. The
Retire arm sets it; affordance_grants is keyed by SubjectId. Controllers still
compiled; removed in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:11:45 +01:00
soul
9df34ea28a Aetherlight AL2b-2a: pin the reduce gate and the title clause
A non-Play caller's broken patch and ungranted act are Unauthorized, so dropping
require_play from reduce fails a test (it was not equivalent: the refusal would
leak world structure). A forged empty or padded stored title is Corrupt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:59:20 +01:00
soul
105632df25 Aetherlight AL2b-2a: PROVENANCE section for the Play-only cut
Records what went (with f51275c61 locations), the born-Active genesis and the
one gate; restates the AL2b-1 residue as what AL2b-2b still owns and drops the
leave-set bullets and the valid_until obligation this cut deleted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:37:22 +01:00
soul
475428bbd2 Aetherlight AL2b-2a: tests pin the Play-only gate, the born-Active genesis and grant rows
after_genesis_only_play_writes, apply_effect_re_decides_play,
a_world_is_born_active, retired_tags_do_not_decode,
a_revoke_may_leave_a_subject_with_no_verbs, a_subject_may_be_declared_with_no_verbs,
a_retired_subject_takes_no_grant, apply_refuses_a_grant_to_a_retired_subject,
retire_applies_to_every_subject. Deletes CommandId::derived (its only caller was
ConsumerId::of_name) and restates comments that named deleted lanes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:37:21 +01:00
soul
be556e8a86 Aetherlight AL2b-2a: after genesis only Play writes; worlds are born Active
CallerId is { Principal, Play }; one require_play gate at the top of reduce and
apply_effect replaces the capability table, the owner's post-genesis doors and
the Clock capability. The consumer lane (ConsumerId, PatchGround, mirrors,
confine_to_ground, operation_ground), the draft phase and approvals,
VerifiedPrincipalEvidence, the dead intents and the never-mute and Retire-side
refusals are deleted. GrantsOutsideControl becomes GrantsToRetired; a grant row
exists iff the subject holds a verb. require_ruler is genesis-only
(forbid_rulings_at_genesis). Schema consumer.v9. Tests of deleted lanes are
deleted, the rest go through submit_play.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:22:36 +01:00
soul
f51275c61d Aetherlight AL2b-1: pin v8 schema ids, silent foreign actor, discharge-then-act
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:09 +01:00
soul
a02942f115 Aetherlight AL2b-1: kill the two survivors (Acted commit-time gate, event revision order)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:09 +01:00
soul
d48f1d7aa7 Aetherlight AL2b-1: comments, seal doc-test, PROVENANCE section, dead readers
Restates comments that named deleted symbols as a reason, swaps the seal
doc-test that named ScopeDigest for DecisionEvent, deletes WorldJournal::commits
and FictionalMinutes::since (dead with the operator log and attention order),
and writes the AL2b-1 PROVENANCE section with the residue list for AL2b-2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:08 +01:00
soul
d512a6706a Aetherlight AL2b-1: Act door tests (only Play, Draft refusal, acted chain)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:08 +01:00
soul
cfad9819cf Aetherlight AL2b-1: Act { actor, invocation } replaces opportunity-based exercise
Deletes DecisionOpportunity, ScopeDigest, attention order, last_opportunity_at,
decline, the operator log, controller receipts and the three opportunity
errors. Adds CommandBody::Act and WorldEffect::Acted, admitted for System(Play)
in Active only; require_granted takes the actor. DecisionEvent carries actor,
not scope and controller_id. State and commit schema ids move to v8.

Tests whose subject was a deleted lane are deleted; kept-lane tests are
rewritten onto one helper submitting Act as System(Play), and write-locality
tests compare scope_components.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:07 +01:00
soul
bf92a054f6 Aetherlight AL2a fix 2: PROVENANCE routing note, schema bump and the completed residue list
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:40:15 +01:00
soul
fff6f9e7ed Aetherlight AL2a fix 1: declaring in Active is Play's act; bump schema ids; pin the confinement re-decisions
require_play_active refuses any non-Play declaration or evidence in an Active
world, restoring the typed-command path as the only door; the owner-declares
test becomes the_owner_cannot_declare_in_active and the kept-lane tests that
used the owner to declare use Play. STATE_SCHEMA and COMMIT_SCHEMA go to v7 and
a v6 row is refused. New tests pin apply_effect's confinement and
declare-in-Active re-decisions, and confine_to_ground's unconditional
retire/grant/revoke arm is probed directly on a hand-built resolved patch
(the resolver refuses those on a mirror first, so no submit can isolate it).
Stale elaboration-lane comments in patch.rs reworded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:40:14 +01:00
soul
fe6819a0a8 Aetherlight AL2a.6: record the agency cut A in PROVENANCE
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:16:55 +01:00
soul
1919828a7e Aetherlight AL2a.5: delete the elaborator lane, the answer gate and the scale intent
Remove SystemCapability::Elaborator, PatchAnswer, CausalBoundary and its
derivation, the AnswerRequired gate (require_answer, the answers field of
AdmitPatch and PatchAdmitted, the three Answer* errors), ground_covers and the
jurisdiction ground, WorldScaleIntent and its refs, JurisdictionKey, the
scale deficit and the subject snapshot's qualified flag. require_play_active
keeps the one rule require_answer also held: Play authors nothing in Draft.
The owner now declares in Active unanswered.

Tests whose subject was the lane go. Kept-lane tests that used the elaborator
as setup are rewritten over the owner, Play or a consumer: the import-key and
grammar door tests, the capability-admission test, the ruler re-decision tests,
the confined-author retire/grant/revoke tests, the orphan-claim test, and the
witness-arrival test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:16:54 +01:00
soul
f17a8147f8 Aetherlight AL2a.4: delete the genesis brief
Remove the brief string (prompt guidance for model lanes) from CreateWorld,
CreateWorldIntent, WorldState, WorldEffect::WorldCreated, the snapshot and the
journal's state-shape checks, with its replay test. The grammar test's
absent-grammar-key control now reads the title key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:02:14 +01:00
soul
58493253b6 Aetherlight AL2a.3: delete persona material
Remove PersonaMaterial, PersonaReadRef, ComponentOp and ResolvedOp
SetPersonaMaterial with its resolution, apply and confinement arms,
WorldState.persona_material, the subject snapshot's material field and
WorldPatch::sets_persona_of_existing_subject, with the tests whose subject
they were. The op set goes from 34 to 33.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:01:10 +01:00
soul
98282a07af Aetherlight AL2a.2: delete the gestalt cover and the agency graph
Remove cover.rs (Cell, Cover, CoverBudget, derive_cover, AgencyGraph), the
kernel's agency_graph projection and CommandId::for_cell and
for_cell_constituent. Nothing in the kept lanes read them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:59:27 +01:00
soul
10f487dc16 Aetherlight AL2a.1: delete the lens lane and the Ghostlight golden fixture
Remove lens.rs, LensWeights in genesis input, WorldState, snapshot and
creation, SetLensWeights, LensWeightsReplaced, LensWeightsNeverDraw and the
draw-rule shape check. The journal's lens replay tests are rewritten over an
owner AdvanceTime history (replays exactly; a forged caller fails replay).
The state shape changed, so Ghostlight's base_world fixture no longer decodes:
the golden replay test and its three fixtures go (AL4 adds Aetherlight's own).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:57:37 +01:00
soul
6ef5f51a42 Correct aetherlight provenance: drop .gitattributes, list leave-set residue and AL4 duties
The -text pin was not needed (the fixtures absorb CRLF and the .cc is binary),
so the file goes. external_admission.rs is described as the cross-crate forgery
proof it is, and the dead-code vocabulary and AL4 obligations are listed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:35 +01:00
soul
cd2f45ff99 Pin the aetherlight seal and the precondition gates; make the crate docs true
Delete the two compile_fail doc-tests that named items absent from the fork and
drop the error codes stable rustdoc does not check; each remaining doc-test was
shown to fail when its item is made public. Add tests that kill four mutants
which survived upstream too: Committed ignoring kind, Committed ignoring
counterparty, Holds >= turned into >, and the apply-time can_broadcast guard.
Rewrite the crate docs for the fork as it is and remove the two unresolved links.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:34 +01:00
soul
96f553a00d Record aetherlight provenance
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:34 +01:00
soul
dbdaf64c4d Make the aetherlight take-set compile and its doc-tests honest
lib.rs drops the leave-set modules and re-exports, renames the compile_fail
doc-tests to aetherlight::, retitles the crate doc, and allows dead code until
AL4 adds the ABI. patch.rs drops the tool_schema and codex_connector imports.
lens.rs drops the test that read the dropped PATCH_TOOLS catalog. Imports and
`mut` bindings that only the dropped code used are removed or gated to tests so
`cargo build` is warning-free.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:33 +01:00
soul
5ea472fce2 Import Ghostlight c43eb54 synchronous kernel set as native/aetherlight
Verbatim copy of lib, action, clock, journal, grammar (+tests), lens, cover,
import_key_tests, patch (lines 1-6059 and 7906-9606) and the base_world
fixtures, with the pruned Cargo.toml/Cargo.lock and a gitignore line for the
target dir. native/aetherlight/.gitattributes pins `-text` so the verbatim
bytes survive autocrlf checkouts. lib.rs still names the leave-set modules,
so this commit does not build; the next commit makes it compile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:32 +01:00