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:
parent
fe6819a0a8
commit
fff6f9e7ed
5 changed files with 190 additions and 252 deletions
|
|
@ -541,7 +541,7 @@ type Door = (&'static str, CallerId);
|
|||
|
||||
/// Each door refuses an outside kind and a wrong role signature, typed, and the
|
||||
/// refusal leaves the revision where it was. The owner and the consumer declare
|
||||
/// in Draft and in Active; Play acts in Active.
|
||||
/// in Draft only; Play declares in Active.
|
||||
fn refuse_at_each_door(kernel: &mut WorldKernel, doors: Vec<Door>) {
|
||||
for (door, caller) in doors {
|
||||
let revision = kernel.state.revision;
|
||||
|
|
@ -584,7 +584,6 @@ fn every_admission_door_refuses_outside_the_grammar_after_the_revision_has_moved
|
|||
"the world has moved past genesis"
|
||||
);
|
||||
let active_doors = vec![
|
||||
("owner in Active", CallerId::Principal(owner())),
|
||||
("play", CallerId::System(crate::SystemCapability::Play)),
|
||||
];
|
||||
refuse_at_each_door(&mut kernel, active_doors);
|
||||
|
|
|
|||
Loading…
Reference in a new issue