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
|
|
@ -1274,9 +1274,8 @@ pub struct WorldPatch {
|
|||
/// The one byte bound on a `WorldPatch` frame from any external source, and
|
||||
/// the three item bounds on a `WorldPatch` as a value. One owner, two
|
||||
/// consumers: the consumer ingress decodes against them through
|
||||
/// `decode_patch`, and the elaboration lane checks its own assembled draft
|
||||
/// against the same three item caps through `check_patch_caps`, before
|
||||
/// submission.
|
||||
/// `decode_patch`, and `check_patch_caps` applies the same three item caps to
|
||||
/// an assembled value before submission.
|
||||
pub(crate) const MAX_PATCH_BYTES: usize = 256 * 1024;
|
||||
pub(crate) const MAX_PATCH_DECLARATIONS: usize = 64;
|
||||
pub(crate) const MAX_PATCH_OPERATIONS: usize = 128;
|
||||
|
|
@ -1338,8 +1337,8 @@ pub(crate) fn check_patch_caps(patch: &WorldPatch) -> Result<(), PatchDecodeErro
|
|||
/// One named structural check that a patch failed. A rejection carries the
|
||||
/// complete set, never the first failure. It never enters `WorldState`,
|
||||
/// `WorldEffect`, `CommandEnvelope`, or `WorldCommit`; the serde derives exist
|
||||
/// for exactly one reader, the elaboration checkpoint, which is
|
||||
/// controller-owned telemetry under its own row type and its own schema.
|
||||
/// for telemetry readers outside the kernel, under their own row type and
|
||||
/// schema.
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[serde(tag = "mismatch", rename_all = "snake_case")]
|
||||
pub enum Mismatch {
|
||||
|
|
|
|||
Loading…
Reference in a new issue