Aetherlight AL2a.6: record the agency cut A in PROVENANCE

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-19 22:16:55 +01:00
commit fe6819a0a8

View file

@ -19,19 +19,14 @@ binary and no newline rule touches it. Line ranges are in the c43eb54 file.
| c43eb54 path (under `crates/ghostlight/`) | Here | Range | Edits |
| --- | --- | --- | --- |
| `src/lib.rs` | `src/lib.rs` | all | E1-E5, E10, E11 |
| `src/action.rs` | `src/action.rs` | all | E11 |
| `src/lib.rs` | `src/lib.rs` | all | E1-E5, E10-E12 |
| `src/action.rs` | `src/action.rs` | all | E11, E12 |
| `src/clock.rs` | `src/clock.rs` | all | none |
| `src/journal.rs` | `src/journal.rs` | all | none |
| `src/journal.rs` | `src/journal.rs` | all | E12 |
| `src/grammar.rs` | `src/grammar.rs` | all | none |
| `src/grammar/tests.rs` | `src/grammar/tests.rs` | all | none |
| `src/lens.rs` | `src/lens.rs` | all | E8, E9 |
| `src/cover.rs` | `src/cover.rs` | all | none |
| `src/import_key_tests.rs` | `src/import_key_tests.rs` | all | none |
| `src/patch.rs` | `src/patch.rs` | 1-6059 and 7906-9606 (dropped 6060-7905: the patch tool catalog, `PATCH_TOOLS`, `patch_tools()`, the `field_example` helpers, `mod catalog_tests`) | E6, E7 |
| `tests/fixtures/base_world.cc` | same | all | none |
| `tests/fixtures/base_world.digests` | same | all | none |
| `tests/fixtures/base_world.id` | same | all | none |
| `src/grammar/tests.rs` | `src/grammar/tests.rs` | all | E12 |
| `src/import_key_tests.rs` | `src/import_key_tests.rs` | all | E12 |
| `src/patch.rs` | `src/patch.rs` | 1-6059 and 7906-9606 (dropped 6060-7905: the patch tool catalog, `PATCH_TOOLS`, `patch_tools()`, the `field_example` helpers, `mod catalog_tests`) | E6, E7, E12 |
| `Cargo.lock` | `Cargo.lock` | all | pruned by cargo to the dependencies below |
`Cargo.toml` is new: package `aetherlight`, its own `[workspace]`, no features,
@ -76,11 +71,15 @@ unicode-normalization, unicode-properties, uuid; dev tempfile.
`clock_tests::committed_requires_the_named_kind`,
`soul_knowledge_tests::a_telling_by_a_speaker_outside_its_audience_does_not_apply`.
- E12. Cut AL2a deletes the model-guidance lanes; see the section below. It
supersedes E4's `cover` import, E8 and E9 (`lens.rs` is gone), and `lib.rs`,
`patch.rs`, `journal.rs`, `action.rs`, `grammar/tests.rs` and
`import_key_tests.rs` lose the symbols and tests listed there.
Not renamed: the `ghostlight.*` schema ids and namespaces in the code
(`STATE_SCHEMA`, `COMMIT_SCHEMA`, journal schema rows, `ghostlight.speech`,
`ghostlight.cover.v1`). They enter derived ids and digests; the golden replay
`grammar::tests::existing_world_reopens_with_unchanged_digests` proves them
unchanged. AL3 owns the format rename.
(`STATE_SCHEMA`, `COMMIT_SCHEMA`, journal schema rows, `ghostlight.speech`). They enter derived ids and digests. No test pins them
since AL2a removed the golden replay (see below); AL4 adds Aetherlight's own
golden. AL3 owns the format rename.
## Left behind
@ -119,23 +118,71 @@ By hand, against this file: read the upstream diff for the taken files, apply it
here, and record it in this file with its upstream commit and the files it
touched. A fix that lands in a left-behind file is not pulled.
## Leave-set vocabulary still compiled (AL2a's triage list)
## Cut AL2a: the model-guidance lanes
`#![allow(dead_code)]` hides about 248 dead-code warnings, among them vocabulary
that only the left-behind lanes used. AL2a decides each as delete, keep or rename.
Several enter derived ids or digests, so a removal is a format change (AL3), not
a cleanup.
Authority: cut `aetherlight-cut-agency-a` r1 of campaign `aetheria-release`;
rulings `aetherlight-narrative-state-owner` and `dialogue-is-world-action`.
Deleted, with their c43eb54 homes:
- Consumer lane: `ConsumerId`, `consumer_id`, `consumer_caller`,
`bound_to_consumer`, `CONSUMER_ID_NAMESPACE`, `VerifiedPrincipalEvidence`.
- Lens (`src/lens.rs`, 361 lines): `Lens`, `LensWeights`; the genesis input,
`WorldState`, snapshot and creation field `lens_weights`;
`CommandBody::SetLensWeights`; `WorldEffect::LensWeightsReplaced`;
`Mismatch::LensWeightsNeverDraw`; the draw-rule check in `verify_state_shape`.
- Cover and agency graph (`src/cover.rs`, 1105 lines): `Cover`, `Cell`,
`CoverBudget`, `derive_cover`, `AgencyGraph`; `WorldKernel::agency_graph` and
`fn agency_graph` (`lib.rs`); `CommandId::for_cell`, `for_cell_constituent`.
- Persona material (`lib.rs`, `patch.rs`): `PersonaMaterial`, `PersonaReadRef`,
`ComponentOp::SetPersonaMaterial` and `ResolvedOp::SetPersonaMaterial` with
resolution, apply and confinement arms, `WorldState.persona_material`, the
subject snapshot's `material`, `WorldPatch::sets_persona_of_existing_subject`.
The op set goes from 34 to 33.
- Brief: the `brief` string in `CreateWorld`, `CreateWorldIntent`, `WorldState`,
`WorldEffect::WorldCreated`, the snapshot and the shape checks.
- Elaborator lane: `SystemCapability::Elaborator`, `PatchAnswer`,
`CausalBoundary`, `BoundaryDigest` and `derive_boundaries`, `exact_boundary`,
`require_answer` (the `AnswerRequired` gate), `jurisdiction_deficit`,
`ground_covers`, `place_in`, `PatchGround::Jurisdiction`; `WorldScaleIntent`,
`WorldScaleIntentRef`, `JurisdictionKey`, `ScaleDeficitRow`, `qualifies`,
`derive_scale_deficit`, the subject snapshot's `qualified`, the snapshot's
`boundaries` and `scale_deficit`, `CreateWorld.scale_intent`,
`CreateWorldIntent.targets` and `jurisdictions`, `CreateJurisdictionIntent`,
`WorldState.scale_intent`; `CommandBody::AdmitPatch.answers` and
`WorldEffect::PatchAdmitted.answers`; `KernelError::AnswerRequired`,
`AnswerNotDerived`, `AnswerNotSatisfied`; `Mismatch::UnknownJurisdictionRoot`
and `ScaleWeightsExceedWhole`. `resolve_patch` loses its intent parameter.
- The golden replay `grammar::tests::existing_world_reopens_with_unchanged_digests`
and `tests/fixtures/base_world.*`: removing state fields changed the state
shape, so Ghostlight's recorded world no longer decodes. AL4 adds
Aetherlight's own golden.
Behaviour that changed with the gate: with `require_answer` gone, the owner and
`Play` declare in Active with no answer, and a confined author's only remaining
check is `confine_to_ground`, which now serves the consumer ground alone.
`require_play_active` keeps the one rule `require_answer` also held: `Play`
authors nothing in Draft.
Kept untouched for AL2b: controllers and `ControllerMode`, consumers
(`ConsumerId`, `SystemCapability::Consumer`, `PatchGround::Consumer`,
`bound_to_consumer`), opportunities, scope digests, attention order, the draft
phase and approvals, `ExerciseDecision`, `DeclineDecision`,
`VerifiedPrincipalEvidence`.
## Leave-set vocabulary still compiled (AL2b's and AL4's triage list)
`#![allow(dead_code)]` still hides the dead code of a crate with no entry point.
What the cut deletes is gone; what remains is part B's:
- Consumer lane: `ConsumerId`, `CONSUMER_ID_NAMESPACE`, `bound_to_consumer`,
`PatchGround::Consumer` and the consumer arm of `confine_to_ground`,
`VerifiedPrincipalEvidence`.
- Controller lane: `verified_controller`, `resolve_controller`, `controller_mode`,
`controller_receipt`, `controller_decline_receipt`, `controller_key`.
- Elaborator lane: `Elaborator`, `GrantElaborator`, `RetireElaborator`,
`ElaboratorEvidence`, `ElaboratorUnanswered`, `elaborator_error`,
`UnelaboratedDestination` and its preimage, and the tests that name them.
- Tick-driver readers `WorldKernel::opportunities` and `clock_advances`, and
`CreateWorldIntent` (no consumer after the mailbox left).
- Mailbox and vault comments (`WorldMailbox`, `vault:` evidence strings).
Reproduce the full list with `RUSTFLAGS=--force-warn dead_code cargo build`.
Reproduce the list with `RUSTFLAGS=--force-warn dead_code cargo test --no-run`:
under test configuration the items nothing exercises show up.
## Obligations this cut hands to AL4