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>
This commit is contained in:
soul 2026-11-19 22:40:14 +01:00
commit fff6f9e7ed
5 changed files with 190 additions and 252 deletions

View file

@ -1284,12 +1284,15 @@ mod tests {
}
/// A store written under an older schema is refused at open: both
/// `consumer.v4` strings. No migration, no dual read.
/// `consumer.v4` strings and the pre-cut `consumer.v6` ones. No migration,
/// no dual read.
#[test]
fn a_store_written_under_an_older_schema_is_refused() {
for (row_type, schema) in [
(STATE_ROW, "ghostlight.world_state.consumer.v4"),
(COMMIT_ROW, "ghostlight.world_commit.consumer.v4"),
(STATE_ROW, "ghostlight.world_state.consumer.v6"),
(COMMIT_ROW, "ghostlight.world_commit.consumer.v6"),
] {
let row = CultCacheEnvelope {
key: "state".into(),