ASELSANMicrokernel
S284 · SOURCE-BOUND GATE EVIDENCE

G8l: timed IPC CALL-cancel writer-authority audit

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

S284Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s284-timed-ipc-call-cancel-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 öğesiL20–L88
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s284_timed_ipc_call_cancel_writer_authority_audit.rs::S284_WHOLE_SCHEDULER_GUARDED_SITES

pub const S284_WRITER_BOUNDARY_SITES: usize = 1;
pub const S284_WRITER_AUTHORITY_SITES: usize = 0;
pub const S284_DIRECT_SCHEDULER_ACCESS_SITES: usize = S283_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S284_IMMUTABLE_READ_SITES: usize = S283_IMMUTABLE_READ_SITES;
pub const S284_WHOLE_SCHEDULER_GUARDED_SITES: usize = S283_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S284_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S283_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S284_OPEN_WRITER_SITES: usize = S283_OPEN_WRITER_SITES;

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

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS284SchedulerWriterAuthorityAuditError {
    S283(G8lS283SchedulerWriterAuthorityAuditError),
    S245(G8lS245ExclusionAdmissionRequestError),
    PriorCoverageDrift {
        guarded_sites: usize,
        unrouted_sites: usize,
    },
}

/// Revalidate the prior fail-closed authority boundary without taking
/// admission or constructing a production exclusive wrapper.
pub fn preflight_s284_scheduler_writer_authority(
    caller_cpu: usize,
    request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS284SchedulerWriterAuthorityAuditOutcome, G8lS284SchedulerWriterAuthorityAuditError>
{
    match preflight_s283_scheduler_writer_authority(caller_cpu, request)
        .map_err(G8lS284SchedulerWriterAuthorityAuditError::S283)?
    {
        G8lS283SchedulerWriterAuthorityAuditOutcome::Idle => {
            Ok(G8lS284SchedulerWriterAuthorityAuditOutcome::Idle)
        }
        G8lS283SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            request_id,
            guarded_sites,
            writer_sites,
        } if guarded_sites == S284_WHOLE_SCHEDULER_GUARDED_SITES
            && writer_sites == S284_OPEN_WRITER_SITES =>
        {
            Ok(
                G8lS284SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
                    request_id,
                    guarded_sites,
                    writer_sites,
                },
            )
        }
        G8lS283SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            guarded_sites,
            writer_sites: _,
            ..
        } => Err(
            G8lS284SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
                guarded_sites,
                unrouted_sites: S284_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
            },
        ),
    }
}
snippet sha256: cb2f4cd17537file sha256: f221fcd7891d
02 · Doğrulayan test kodu

Operations komutuna bağlı focused test

tam Rust öğesiL31–L41
simulation/tests/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s284_timed_ipc_call_cancel_writer_authority_audit.rs::s284_keeps_timed_ipc_call_cancel_writer_open_until_exclusive_authority_exists

#[test]
fn s284_keeps_timed_ipc_call_cancel_writer_open_until_exclusive_authority_exists() {
    assert_eq!(S284_WRITER_BOUNDARY_SITES, 1);
    assert_eq!(S284_WRITER_AUTHORITY_SITES, 0);
    assert_eq!(S284_DIRECT_SCHEDULER_ACCESS_SITES, 113);
    assert_eq!(S284_IMMUTABLE_READ_SITES, 44);
    assert_eq!(S284_WHOLE_SCHEDULER_GUARDED_SITES, 44);
    assert_eq!(S284_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
    assert_eq!(S284_OPEN_WRITER_SITES, 69);
}
snippet sha256: 4ad5854aa5b5file sha256: d2fcb4fb54ae
03 · Kapı kimlik kaydı

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

tam Operations kaydıL17198–L17254
website/src/lib/operations.ts::g8l-s284-timed-ipc-call-cancel-writer-authority-audit-partial
  {
    id: "g8l-s284-timed-ipc-call-cancel-writer-authority-audit-partial",
    date: "2026-08-26",
    sequence: 284,
    status: "passed",
    umbrella_status: "partial",
    title: "G8l: timed IPC CALL-cancel writer-authority audit",
    summary:
      "S284 focused 15/15 PASS ile cancel_timed_ipc_call_under_transaction(expected) sınırındaki explicit scheduler writer erişimini kaynakta doğrular. Writer authority yalnız model gate'inin exclusive lease'iyle mümkündür; reader lease'i writer'ı açmaz. Production inventory 113 direct / 44 immutable guarded / 69 open writer'dır; production exclusive wrapper, provider authority, whole-scheduler exclusion ve scheduler mutation üretilmez.",
    evidence: [
      "S284 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
      "cancel_timed_ipc_call_under_transaction içindeki tek addr_of_mut!(crate::task::scheduler::SCHEDULER) writer boundary'si ve tek wake_timed_out_ipc_caller_exact çağrısı kaynakta görünür; caller outer IPC transaction/deadline lock'larını zaten tutarken exact reply authority, parked caller ve wake-capacity preflight; cancel/retire; timeout wake ve CNode revoke; reply registry/provenance cleanup sırası doğrulanır.",
      "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. Bu host/model evidence'tır.",
      "S283 authority preflight yeniden doğrulanır; pending S245 request korunur ve sonuç AwaitingWriterAuthority { guarded_sites: 44, writer_sites: 69 } olarak döner.",
      "Dört AArch64 profil derlemesi iki koşuda byte-equal exit 0 verdi: QEMU 110646 B / e251f8d2, RPi4 149371 B / c9e2a95c, RPi5 383032 B / a544944f ve RPi5+SMP 382974 B / 75d34f7f. Warning header'ları sırasıyla 291, 389, 765 ve 765'tir; zero-warning iddiası değildir.",
      "Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / cba45342 ve 17 error header ile fail-closed kaldı; S284 writer boundary'si iki board profilinin birlikte etkinleşmesini açmaz.",
      "S238–S284 dependency matrisi iki koşuda 48 grup / 644/644 PASS; ham loglar 6162 B / a3e12f29 ve 6fa78ecc, süre-normalize özet 6258 B byte-equal / dbc424147fa03e4fc7e3c2845c9378c0b6b41b5e0e455576ad9f0d99af13775c. Bu production writer-authority invocation kanıtı değildir.",
      "Ortak make verify-qemu iki koşuda PASS verdi: 116222 B / 5d40947a ve 116139 B / 8b71853d; W^X 31/31, S271 GRAPH_ABSENT=YES, RuntimePmm baseline, EL0 x4096, IPC 20/20, tek beklenen S142 fatal containment ve SEC5 korunur. Bu ortak smoke S284 production writer invocation kanıtı değildir.",
      "Exact yedi tarihsel G8h assertion adlarıyla dışlandığında workspace iki koşuda 246 sonuç grubu / 2418 PASS / 7 filtered verdi: ham loglar 59437 B, süre-normalize 23743 B özet byte-equal / SHA-256 1ac6b754eeab706eb339415a6c9d7e5be48dafa369ad1e0d6f88c554a3758764. Filtresiz koşu exit 101, 54659 B / 104980cd ile frozen S96 exceptions.S identity kapısında RED kaldı; full-workspace GREEN iddia edilmez.",
      "S284 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S284=NO.",
    ],
    commands: [
      "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s284_timed_ipc_call_cancel_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-rpi4",
      "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",
      "cargo check --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5,board-qemu",
      "make verify-qemu",
    ],
    terminalSessions: [
      {
        id: "g8l-s284-timed-ipc-call-cancel-writer-authority-audit",
        title: "G8l S284 timed IPC CALL-cancel writer-authority audit",
        commandLines: [
          "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s284_timed_ipc_call_cancel_writer_authority_audit -- --test-threads=1",
        ],
        outputLines: [
          "test result: ok; S284 focused 1 group / 15 passed; 0 failed",
          "repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
          "timed IPC CALL-cancel writer authority remains model-only: reader blocks exclusive lease; 69 production writer sites remain open",
          "dependency: S238–S284 · 48 groups · 644/644 PASS; workspace: 246 groups · 2418 PASS · 7 historical filtered",
        ],
        exitCode: 0,
        outputMode: "selected",
      },
    ],
    terminalSessionsNote:
      "S284 kaynak/model fail-closed authority boundary'sidir; production writer guard, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
    limitations: [
      "S284 yalnız cancel_timed_ipc_call_under_transaction writer orchestration sınırını 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–S284 dependency matrisi exact 48 grup / 644/644 PASS'tir; bu production writer authority invocation kanıtı değildir.",
      "Filtresiz workspace frozen S96 identity kapısında RED'dir; workspace umbrella GREEN iddia edilmez.",
      "Supported-profile runtime invocation, Generic SMP ve fiziksel RPi kabulü açık kalır; S284 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S284=NO.",
    ],
  },
snippet sha256: 66f46c41da16file sha256: 9726dbf00f84
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s284_timed_ipc_call_cancel_writer_authority_audit -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S284-Timed-IPC-Call-Cancel-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 3050638b71a684d8f8f947a8a6faa237a17fa8db5dc0db04fb207b668b462af9