ASELSANMicrokernel
S532 · SOURCE-BOUND GATE EVIDENCE

S532 · R2 physical acceptance matrix · Bounded production service callsite

tam S532 implementation modülü → Operations --test hedefi ile bağlı tam focused test → ayrı Operations kaydı Bu sayfa yalnız S532 kapısına aittir; komşu kapıların kaynakları bu kabulün içine katılmaz.

S532Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s532-r2-acceptance-callsite-partial

uygulama/model · focused test · Operations · 3 exact excerpt

sequence-bound=true · implementation-bound=true
01 · Yürütme / doğrulama kodu

Kapının gerçek repository sözleşmesi

tam dosyaL1–L65
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s532_r2_acceptance_callsite.rs::S532 r2 acceptance callsite implementation
#![allow(unexpected_cfgs)]

//! S532 R2 physical acceptance matrix · Bounded production service callsite.
//!
//! This is a separate typed gate after S531.  It advances only the
//! acceptance-readiness ledger; supported-profile runtime observations,
//! physical observations and product acceptance remain explicitly absent.

use crate::g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s531_r2_acceptance_preflight::S531_SEQUENCE;
use crate::g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s431_runtime_evidence_contract::{
    advance_s431_to_s535_model_acceptance_gate,
    G8lS431ToS535AcceptanceError, G8lS431ToS535AcceptanceGateDescriptor,
    G8lS431ToS535AcceptanceLedger, G8lS431ToS535AcceptanceOutcome,
    G8lS431ToS535AcceptanceStep, S431_DIRECT_ACCESS_SITES,
    S431_PRODUCTION_GUARDED_DIRECT_ACCESS_SITES, S431_SOURCE_AUDIT_UNITS,
    S431_SOURCE_MODEL_COVERED_DIRECT_ACCESS_SITES, S431_UNROUTED_DIRECT_ACCESS_SITES,
};

pub const S532_SEQUENCE: usize = 532;
pub const S532_EXPECTED_PREDECESSOR: usize = S531_SEQUENCE;
pub const S532_BLOCK_ORDINAL: usize = 15;
pub const S532_STEP_ORDINAL: usize = 4;
pub const S532_ACCEPTANCE_DOMAIN: &str = "r2_acceptance";
pub const S532_SOURCE_AUDIT_UNITS: usize = S431_SOURCE_AUDIT_UNITS;
pub const S532_DIRECT_ACCESS_SITES: usize = S431_DIRECT_ACCESS_SITES;
pub const S532_SOURCE_MODEL_COVERED_DIRECT_ACCESS_SITES: usize =
    S431_SOURCE_MODEL_COVERED_DIRECT_ACCESS_SITES;
pub const S532_PRODUCTION_GUARDED_DIRECT_ACCESS_SITES: usize =
    S431_PRODUCTION_GUARDED_DIRECT_ACCESS_SITES;
pub const S532_UNROUTED_DIRECT_ACCESS_SITES: usize = S431_UNROUTED_DIRECT_ACCESS_SITES;
pub const RUNBOOK_EXECUTED_IN_S532: bool = false;
pub const S532_SUPPORTED_PROFILE_RUNTIME_OBSERVATIONS: usize = 0;
pub const S532_PHYSICAL_OBSERVATIONS: usize = 0;
pub const S532_ACCEPTANCE_COMPLETE: bool = false;

pub const S532_DESCRIPTOR: G8lS431ToS535AcceptanceGateDescriptor =
    G8lS431ToS535AcceptanceGateDescriptor {
        sequence: S532_SEQUENCE,
        predecessor_sequence: S532_EXPECTED_PREDECESSOR,
        block_ordinal: S532_BLOCK_ORDINAL,
        step_ordinal: S532_STEP_ORDINAL,
        acceptance_domain: S532_ACCEPTANCE_DOMAIN,
        step: G8lS431ToS535AcceptanceStep::BoundedProductionCallsite,
        runtime_evidence_required: true,
        physical_evidence_required: true,
    };

pub type G8lS532AcceptanceGateOutcome = G8lS431ToS535AcceptanceOutcome;
pub type G8lS532AcceptanceGateError = G8lS431ToS535AcceptanceError;

pub fn service_s532_model_r2_acceptance_callsite(
    ledger: &mut G8lS431ToS535AcceptanceLedger,
    caller_cpu: usize,
) -> Result<G8lS532AcceptanceGateOutcome, G8lS532AcceptanceGateError> {
    advance_s431_to_s535_model_acceptance_gate(ledger, caller_cpu, S532_DESCRIPTOR)
}

#[cfg(all(target_arch = "aarch64", target_os = "none", feature = "board-rpi5"))]
pub fn service_s532_r2_acceptance_callsite_on_cpu1(
) -> Result<G8lS532AcceptanceGateOutcome, G8lS532AcceptanceGateError> {
    crate::g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s431_runtime_evidence_contract::service_s431_to_s535_production_acceptance_gate_on_cpu1(
        S532_DESCRIPTOR,
    )
}
snippet sha256: 5c670edfbcfdfile sha256: 5c670edfbcfd
02 · Doğrulayan test kodu

Operations komutuna bağlı focused test

tam dosyaL1–L188
simulation/tests/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s532_r2_acceptance_callsite.rs::S532 r2 acceptance callsite focused tests
use aselsan_microkernel_simulation::g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s430_final_software_boundary::G8lS430FinalSoftwareBoundaryStatus;
use aselsan_microkernel_simulation::g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s431_runtime_evidence_contract::{
    advance_s431_to_s535_model_acceptance_gate,
    canonical_s431_to_s535_acceptance_descriptor, G8lS431ToS535AcceptanceError,
    G8lS431ToS535AcceptanceLedger, G8lS431ToS535AcceptanceOutcome,
    S431_FIRST_SEQUENCE, S535_LAST_SEQUENCE,
};
use aselsan_microkernel_simulation::g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s532_r2_acceptance_callsite as gate;

fn s430_anchor() -> G8lS430FinalSoftwareBoundaryStatus {
    G8lS430FinalSoftwareBoundaryStatus {
        attempt_id: 4301,
        provider_request_id: 4302,
        exclusive_token: 4303,
        completed_gate_count: 30,
        software_source_path_complete: true,
        whole_scheduler_exclusion_source_handshake_complete: true,
        main_migration_lifecycle_source_path_complete: true,
        supported_profile_runtime_acceptance_complete: false,
        physical_acceptance_complete: false,
        r2_product_acceptance_complete: false,
        runbook_executed: false,
    }
}

fn acceptance_ledger() -> G8lS431ToS535AcceptanceLedger {
    G8lS431ToS535AcceptanceLedger::from_s430(1, s430_anchor()).unwrap()
}

fn advance_before(ledger: &mut G8lS431ToS535AcceptanceLedger, sequence: usize) {
    for predecessor in S431_FIRST_SEQUENCE..sequence {
        let descriptor = canonical_s431_to_s535_acceptance_descriptor(predecessor).unwrap();
        assert!(matches!(
            advance_s431_to_s535_model_acceptance_gate(ledger, 1, descriptor),
            Ok(G8lS431ToS535AcceptanceOutcome::Advanced(_))
        ));
    }
}

#[test]
fn s532_descriptor_is_exact_and_canonical() {
    assert_eq!(gate::S532_SEQUENCE, 532);
    assert_eq!(gate::S532_EXPECTED_PREDECESSOR, 531);
    assert_eq!(gate::S532_BLOCK_ORDINAL, 15);
    assert_eq!(gate::S532_STEP_ORDINAL, 4);
    assert_eq!(gate::S532_ACCEPTANCE_DOMAIN, "r2_acceptance");
    assert_eq!(
        canonical_s431_to_s535_acceptance_descriptor(532),
        Some(gate::S532_DESCRIPTOR)
    );
}

#[test]
fn s532_is_cpu1_scoped_and_waits_for_exact_predecessor() {
    let mut ledger = acceptance_ledger();
    assert_eq!(
        gate::service_s532_model_r2_acceptance_callsite(&mut ledger, 0),
        Err(G8lS431ToS535AcceptanceError::WrongCpu)
    );
    assert_eq!(ledger.last_completed_sequence(), 430);
    if 532 == S431_FIRST_SEQUENCE {
        let future = canonical_s431_to_s535_acceptance_descriptor(432).unwrap();
        assert!(matches!(
            advance_s431_to_s535_model_acceptance_gate(&mut ledger, 1, future),
            Ok(G8lS431ToS535AcceptanceOutcome::AwaitingPredecessor {
                expected_predecessor: 431,
                observed_predecessor: 430,
                ..
            })
        ));
    } else {
        assert!(matches!(
            gate::service_s532_model_r2_acceptance_callsite(&mut ledger, 1),
            Ok(G8lS431ToS535AcceptanceOutcome::AwaitingPredecessor {
                sequence: 532,
                expected_predecessor: 531,
                observed_predecessor: 430,
            })
        ));
    }
}

#[test]
fn s532_advances_once_with_non_acceptance_receipt() {
    let mut ledger = acceptance_ledger();
    advance_before(&mut ledger, 532);
    let G8lS431ToS535AcceptanceOutcome::Advanced(receipt) =
        gate::service_s532_model_r2_acceptance_callsite(&mut ledger, 1).unwrap()
    else {
        panic!("S532 must advance")
    };
    assert_eq!((receipt.sequence, receipt.predecessor_sequence), (532, 531));
    assert_eq!((receipt.block_ordinal, receipt.step_ordinal), (15, 4));
    assert_eq!(receipt.completed_block_count, 14);
    assert!(receipt.source_gate_complete);
    assert!(receipt.runtime_evidence_required);
    assert!(!receipt.supported_profile_runtime_observed);
    assert!(!receipt.physical_observed);
    assert!(!receipt.acceptance_complete);
    assert!(!receipt.runbook_executed);
}

#[test]
fn s532_replay_is_idempotent_and_historical_reentry_does_not_mutate() {
    let mut ledger = acceptance_ledger();
    advance_before(&mut ledger, 532);
    let first = gate::service_s532_model_r2_acceptance_callsite(&mut ledger, 1).unwrap();
    let G8lS431ToS535AcceptanceOutcome::Advanced(receipt) = first else {
        panic!("advance")
    };
    assert_eq!(
        gate::service_s532_model_r2_acceptance_callsite(&mut ledger, 1),
        Ok(G8lS431ToS535AcceptanceOutcome::Retained(receipt))
    );
    if 532 < S535_LAST_SEQUENCE {
        let next = canonical_s431_to_s535_acceptance_descriptor(532 + 1).unwrap();
        assert!(matches!(
            advance_s431_to_s535_model_acceptance_gate(&mut ledger, 1, next),
            Ok(G8lS431ToS535AcceptanceOutcome::Advanced(_))
        ));
        assert_eq!(
            gate::service_s532_model_r2_acceptance_callsite(&mut ledger, 1),
            Ok(G8lS431ToS535AcceptanceOutcome::AlreadyCompleted {
                requested_sequence: 532,
                last_completed_sequence: 532 + 1,
            })
        );
    }
}

#[test]
fn s532_coverage_and_open_claim_boundary_are_preserved() {
    assert_eq!(gate::S532_SOURCE_AUDIT_UNITS, 7);
    assert_eq!(gate::S532_DIRECT_ACCESS_SITES, 113);
    assert_eq!(gate::S532_SOURCE_MODEL_COVERED_DIRECT_ACCESS_SITES, 113);
    assert_eq!(gate::S532_PRODUCTION_GUARDED_DIRECT_ACCESS_SITES, 113);
    assert_eq!(gate::S532_UNROUTED_DIRECT_ACCESS_SITES, 0);
    assert_eq!(gate::S532_SUPPORTED_PROFILE_RUNTIME_OBSERVATIONS, 0);
    assert_eq!(gate::S532_PHYSICAL_OBSERVATIONS, 0);
    assert!(!gate::S532_ACCEPTANCE_COMPLETE);
    assert!(!gate::RUNBOOK_EXECUTED_IN_S532);
}

#[test]
fn s532_has_separate_kernel_simulation_and_production_wiring() {
    const TARGET: &str = "g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s532_r2_acceptance_callsite";
    const SERVICE: &str = "service_s532_r2_acceptance_callsite_on_cpu1";
    let source = include_str!("../../kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s532_r2_acceptance_callsite.rs");
    let kernel_registry = include_str!("../../kernel/src/main.rs");
    let simulation_registry = include_str!("../src/lib.rs");
    let exceptions = include_str!("../../kernel/src/arch/aarch64/exceptions.rs");
    assert!(source.contains("pub const S532_DESCRIPTOR"));
    assert_eq!(
        kernel_registry.matches(&format!("mod {TARGET};")).count(),
        1
    );
    assert_eq!(
        simulation_registry
            .matches(&format!("pub mod {TARGET};"))
            .count(),
        1
    );
    assert_eq!(exceptions.matches(SERVICE).count(), 1);
    let previous = exceptions
        .find("service_s531_r2_acceptance_preflight_on_cpu1")
        .unwrap();
    let current = exceptions.find(SERVICE).unwrap();
    assert!(previous < current);
    let successor_service = "service_s533_r2_acceptance_journal_on_cpu1";
    if !successor_service.is_empty() {
        assert!(current < exceptions.find(successor_service).unwrap());
    }
}

#[test]
fn s532_descriptor_mutation_fails_before_ledger_advance() {
    let mut ledger = acceptance_ledger();
    advance_before(&mut ledger, 532);
    let before = ledger.last_completed_sequence();
    let mut drift = gate::S532_DESCRIPTOR;
    drift.block_ordinal += 1;
    assert_eq!(
        advance_s431_to_s535_model_acceptance_gate(&mut ledger, 1, drift),
        Err(G8lS431ToS535AcceptanceError::DescriptorDrift)
    );
    assert_eq!(ledger.last_completed_sequence(), before);
}
snippet sha256: 2bdaca41e71dfile sha256: 2bdaca41e71d
03 · Kapı kimlik kaydı

Operations sıra, kimlik ve başlık bağı

tam Operations kaydıL1739–L1755
website/src/lib/s431-s535-gate-specs.generated.ts::g8l-s532-r2-acceptance-callsite-partial
  {
    id: "g8l-s532-r2-acceptance-callsite-partial",
    sequence: 532,
    slug: "r2_acceptance_callsite",
    title: "R2 physical acceptance matrix · Bounded production service callsite",
    focusedTests: 7,
    sourceBytes: 3262,
    sourceSha256: "5c670edfbcfd0241afe9f7a988c7fc924f3399eac77e2cbe22333e34fe090f9a",
    testBytes: 7788,
    testSha256: "2bdaca41e71d4cac596b6bb3bad903016bccb90d3919f0a7790202a4c56279d6",
    blockOrdinal: 15,
    blockTitle: "R2 physical acceptance matrix",
    stepOrdinal: 4,
    stepTitle: "Bounded production service callsite",
    acceptance: "S532, R2 physical acceptance matrix bloğının Bounded production service callsite adımını exact S531 predecessor sonrasında ayrı typed descriptor ve ayrı CPU1 production service callsite ile kaydeder.",
    retainedBoundary: "Bu yalnız fail-closed software readiness kaydıdır; supported-profile runtime observation=0, physical observation=0, acceptance_complete=false ve RUNBOOK_EXECUTED_IN_S532=NO kalır.",
  },
snippet sha256: 2522a26f5dedfile sha256: f38bd8bfe8fb
Focused test komutu
CARGO_INCREMENTAL=0 cargo test -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s532_r2_acceptance_callsite -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S532-R2-physical-acceptance-matrix-·-Bounded-production-service-callsite-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 91d38c7b6222f0b4c117be786454853543da55a160e543d9b951057cc20dcc06