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>
This commit is contained in:
soul 2026-11-20 00:37:21 +01:00
commit 475428bbd2
3 changed files with 432 additions and 52 deletions

View file

@ -1400,9 +1400,8 @@ pub enum Mismatch {
},
NoCanonicalChange,
/// A genesis-lane resolution (the same empty-state case `admits_human`
/// tests) declared no subject, so the world would have no decision
/// subject to admit. This is a rejected patch, not a corrupt journal: the
/// mailbox actor must survive it.
/// tests) declared no subject, so the world would have nobody to act. This
/// is a rejected patch, not a corrupt journal: the kernel must survive it.
NoDecisionSubject,
/// A declared place contains itself through its container chain.
ContainmentCycle {
@ -3828,7 +3827,7 @@ pub(super) fn resolve_patch(
}
// The resolver reads authority for the subject being moved, not
// for whoever proposed the patch, which is what keeps it
// actor-blind: the owner-admitted lane and the action lane get
// actor-blind: the patch lane and the action lane get
// the same answer for the same move. A destination this patch
// declares is canonically unknown, so only a `Public` route
// reaches it.
@ -6814,33 +6813,6 @@ mod tests {
}
}
#[test]
fn admit_patch_from_a_non_owner_is_rejected() {
let directory = tempfile::tempdir().unwrap();
let mut kernel = draft_world(directory.path());
let before = kernel.snapshot().unwrap();
let commits_before = kernel.journal.commit_count();
let error = kernel
.submit(
command(
&before,
CommandId::new(),
CallerId::Principal(human_principal()),
admit(patch_of(vec![entity(
"rhythm-road",
"The Rhythm Road",
EntityKind::Place,
)])),
),
&auth_principal(human_principal()),
)
.unwrap_err();
assert!(matches!(error, KernelError::Unauthorized));
assert_eq!(kernel.journal.commit_count(), commits_before);
assert_eq!(kernel.snapshot().unwrap(), before);
}
#[test]
fn restart_replay_after_a_committed_patch_is_exact() {
let directory = tempfile::tempdir().unwrap();