ASELSANMicrokernel
S276 · SOURCE-BOUND GATE EVIDENCE

G8l: QEMU parked-IPC CALL writer-authority audit

Operations --test hedefi → test hedefiyle aynı adlı uygulama/model modülü → kaynak kesiti Bu sayfa yalnız S276 kapısına aittir; komşu kapıların kaynakları bu kabulün içine katılmaz.

S276Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s276-qemu-parked-ipc-call-writer-authority-audit-partial

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

sequence-bound=true · implementation-bound=true
01 · Testin bağlı olduğu uygulama/model kodu

Kapının yürüttüğü gerçek kaynak

tam Rust öğesiL21–L90
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s276_qemu_parked_ipc_call_writer_authority_audit.rs::S276_WHOLE_SCHEDULER_GUARDED_SITES

pub const S276_WRITER_BOUNDARY_SITES: usize = 1;
pub const S276_WRITER_AUTHORITY_SITES: usize = 0;
pub const S276_DIRECT_SCHEDULER_ACCESS_SITES: usize = S275_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S276_IMMUTABLE_READ_SITES: usize = S275_IMMUTABLE_READ_SITES;
pub const S276_WHOLE_SCHEDULER_GUARDED_SITES: usize = S275_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S276_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S275_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S276_OPEN_WRITER_SITES: usize = S275_OPEN_WRITER_SITES;

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS276SchedulerWriterAuthorityAuditOutcome {
    Idle,
    AwaitingWriterAuthority {
        request_id: u64,
        guarded_sites: usize,
        writer_sites: usize,
    },
}

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS276SchedulerWriterAuthorityAuditError {
    S275(G8lS275SchedulerWriterAuthorityAuditError),
    S245(G8lS245ExclusionAdmissionRequestError),
    PriorCoverageDrift {
        guarded_sites: usize,
        unrouted_sites: usize,
    },
}

/// Revalidate the S275 authority boundary without taking admission or
/// creating a production exclusive wrapper. The parked-IPC writer remains
/// model-audited and open until whole-scheduler authority exists.
pub fn preflight_s276_scheduler_writer_authority(
    caller_cpu: usize,
    request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS276SchedulerWriterAuthorityAuditOutcome, G8lS276SchedulerWriterAuthorityAuditError>
{
    match preflight_s275_scheduler_writer_authority(caller_cpu, request)
        .map_err(G8lS276SchedulerWriterAuthorityAuditError::S275)?
    {
        G8lS275SchedulerWriterAuthorityAuditOutcome::Idle => {
            Ok(G8lS276SchedulerWriterAuthorityAuditOutcome::Idle)
        }
        G8lS275SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            request_id,
            guarded_sites,
            writer_sites,
        } if guarded_sites == S276_WHOLE_SCHEDULER_GUARDED_SITES
            && writer_sites == S276_OPEN_WRITER_SITES =>
        {
            Ok(
                G8lS276SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
                    request_id,
                    guarded_sites,
                    writer_sites,
                },
            )
        }
        G8lS275SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            guarded_sites,
            writer_sites: _,
            ..
        } => Err(
            G8lS276SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
                guarded_sites,
                unrouted_sites: S276_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
            },
        ),
    }
}
snippet sha256: 9412edf7797bfile sha256: d58ed31ac6d7
02 · Doğrulayan test kodu

Operations komutuna bağlı focused test

tam Rust öğesiL41–L51
simulation/tests/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s276_qemu_parked_ipc_call_writer_authority_audit.rs::s276_keeps_the_parked_ipc_writer_open_until_exclusive_authority_exists

#[test]
fn s276_keeps_the_parked_ipc_writer_open_until_exclusive_authority_exists() {
    assert_eq!(S276_WRITER_BOUNDARY_SITES, 1);
    assert_eq!(S276_WRITER_AUTHORITY_SITES, 0);
    assert_eq!(S276_DIRECT_SCHEDULER_ACCESS_SITES, 113);
    assert_eq!(S276_IMMUTABLE_READ_SITES, 44);
    assert_eq!(S276_WHOLE_SCHEDULER_GUARDED_SITES, 44);
    assert_eq!(S276_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
    assert_eq!(S276_OPEN_WRITER_SITES, 69);
}
snippet sha256: ff2eefb9cb73file sha256: c55a3b2604a0
03 · Kapı kimlik kaydı

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

tam Operations kaydıL17638–L17684
website/src/lib/operations.ts::g8l-s276-qemu-parked-ipc-call-writer-authority-audit-partial
  {
    id: "g8l-s276-qemu-parked-ipc-call-writer-authority-audit-partial",
    date: "2026-08-26",
    sequence: 276,
    status: "passed",
    umbrella_status: "partial",
    title: "G8l: QEMU parked-IPC CALL writer-authority audit",
    summary:
      "S276 focused 15/15 PASS ile install_qemu_parked_ipc_call içindeki explicit mutable scheduler writer sınırını kaynakta doğrular. Writer authority yalnız model gate'inin exclusive lease'iyle mümkündür; reader lease'i writer'ı açmaz. Güncel whitespace/format bağımsız inventory 113 direct / 44 immutable guarded / 69 open writer'dır; production exclusive wrapper, provider authority, whole-scheduler exclusion ve scheduler mutation üretilmez.",
    evidence: [
      "S276 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
      "install_qemu_parked_ipc_call içindeki tek addr_of_mut!(SCHEDULER) writer boundary'si ve ENDPOINT_REGISTRY öncesindeki sırası kaynakta görünür; writer authority site sayısı 0, açık writer sayısı 69'dur.",
      "Model gate reader membership exclusive writer authority'yi ExclusiveBusy ile bloklar; reader bırakıldıktan sonra non-zero token'lı exclusive lease alınır ve bırakılır. Bu host/model evidence'tır.",
      "S275 authority preflight yeniden doğrulanır; pending S245 request korunur ve sonuç AwaitingWriterAuthority { guarded_sites: 44, writer_sites: 69 } olarak döner.",
      "S276 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S276=NO.",
    ],
    commands: [
      "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s276_qemu_parked_ipc_call_writer_authority_audit -- --test-threads=1",
      "cargo check --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-qemu",
      "cargo check --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5",
      "cargo check --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5,smp",
    ],
    terminalSessions: [
      {
        id: "g8l-s276-qemu-parked-ipc-call-writer-authority-audit",
        title: "G8l S276 QEMU parked-IPC CALL writer-authority audit",
        commandLines: [
          "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s276_qemu_parked_ipc_call_writer_authority_audit -- --test-threads=1",
        ],
        outputLines: [
          "test result: ok; S276 focused 1 group / 15 passed; 0 failed",
          "repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
          "parked-IPC writer authority remains model-only: reader blocks exclusive lease; 69 production writer sites remain open",
        ],
        exitCode: 0,
        outputMode: "selected",
      },
    ],
    terminalSessionsNote:
      "S276 kaynak/model fail-closed authority boundary'sidir; production writer guard, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
    limitations: [
      "S276 yalnız install_qemu_parked_ipc_call writer boundary'sini audit eder; 69 production writer site açık kalır.",
      "Exclusive lease yalnız host/model gate'inde test edilir; production exclusive wrapper, provider authority ve whole-scheduler exclusion açık kalır.",
      "S238–S274 dependency baseline'ı inherit edilir; S276 için genişletilmiş matris iddia edilmez.",
      "Supported-profile runtime invocation, Generic SMP ve fiziksel RPi kabulü açık kalır; S276 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S276=NO.",
    ],
  },
snippet sha256: 318faee781bcfile sha256: 9726dbf00f84
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s276_qemu_parked_ipc_call_writer_authority_audit -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S276-QEMU-Parked-IPC-Call-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 3050638b71a684d8f8f947a8a6faa237a17fa8db5dc0db04fb207b668b462af9