A pressure target fed by three sources and an institution with three
distinct incumbents (one in two offices) join the walked states, so a
projection that keeps only the first or last point of a document loses a
row the reference scans still see. indexes_are_derived now also compares
every read with its _by_scan twin, since a rebuild through P::points agrees
with a wrong projection.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
One grain holding and one known fact per person, a fact and a resource per
place, and two dependencies (a fixed count: derive_motion still walks every
dependency row, follow-up aetherlight-cross-partition-views). read_work now
asserts the partitions are populated, so a scan of knowledge, holdings or
facts grows the count and fails it. golden.digests untouched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Delegation to the inner iterator's hint; cargo-mutants found only equivalent
mutants of it. The default hint costs nothing here.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The clockwork world now holds a route per consecutive place, a Reach::Place
channel per place, an institution with a warden office per place and two
past-due obligations, so no partition a read index serves is empty.
read_work_is_equal_at_100_and_1600 and operation_reads_are_equal_at_100_and_1600
gate the rows a commit and a set of otherwise unreached reads touch;
indexes_are_derived, index_reads_equal_reference_scans,
an_index_read_mid_transaction_sees_the_log and a_corrupted_index_is_detected
hold the index to its map and to the scans it replaced. The harness prints
rows read beside time and digests and asserts nothing. golden.digests
byte-identical.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
No behaviour change. Reads of a partition go through get, contains_key,
len, is_empty, iter, keys, values, range, Index and IntoIterator, so no
reader can bypass the test-build row counter by coercing to BTreeMap.
Resolver and is_genesis parameters take &Docs. golden.digests untouched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A live check from a Routine is put on an obligation or goal and
verify_state_shape must refuse it; the honest world is the control. Kills the
survivor of && to || on the routine-or-no-checks conjunction (shape-conjunction-survivor).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>