Commit graph Aetheria/native/aetherlight/src/patch.rs
Author SHA1 Message Date
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
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
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
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
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
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
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
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