ASELSANMicrokernel
S290 · SOURCE-BOUND GATE EVIDENCE

G8l: reply-endpoint wake writer-authority audit

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

S290Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s290-reply-endpoint-wake-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–L89
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s290_reply_endpoint_wake_writer_authority_audit.rs::S290_WHOLE_SCHEDULER_GUARDED_SITES

pub const S290_WRITER_BOUNDARY_SITES: usize = 1;
pub const S290_WRITER_AUTHORITY_SITES: usize = 0;
pub const S290_DIRECT_SCHEDULER_ACCESS_SITES: usize = S289_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S290_IMMUTABLE_READ_SITES: usize = S289_IMMUTABLE_READ_SITES;
pub const S290_WHOLE_SCHEDULER_GUARDED_SITES: usize = S289_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S290_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S289_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S290_OPEN_WRITER_SITES: usize = S289_OPEN_WRITER_SITES;

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

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS290SchedulerWriterAuthorityAuditError {
    S289(G8lS289SchedulerWriterAuthorityAuditError),
    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_s290_scheduler_writer_authority(
    caller_cpu: usize,
    request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS290SchedulerWriterAuthorityAuditOutcome, G8lS290SchedulerWriterAuthorityAuditError>
{
    match preflight_s289_scheduler_writer_authority(caller_cpu, request)
        .map_err(G8lS290SchedulerWriterAuthorityAuditError::S289)?
    {
        G8lS289SchedulerWriterAuthorityAuditOutcome::Idle => {
            Ok(G8lS290SchedulerWriterAuthorityAuditOutcome::Idle)
        }
        G8lS289SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            request_id,
            guarded_sites,
            writer_sites,
        } if guarded_sites == S290_WHOLE_SCHEDULER_GUARDED_SITES
            && writer_sites == S290_OPEN_WRITER_SITES =>
        {
            Ok(
                G8lS290SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
                    request_id,
                    guarded_sites,
                    writer_sites,
                },
            )
        }
        G8lS289SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            guarded_sites,
            writer_sites: _,
            ..
        } => Err(
            G8lS290SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
                guarded_sites,
                unrouted_sites: S290_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
            },
        ),
    }
}
snippet sha256: 79a3f860181afile sha256: 32bdd1256762
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_s290_reply_endpoint_wake_writer_authority_audit.rs::s290_keeps_reply_endpoint_wake_writer_open_until_exclusive_authority_exists

#[test]
fn s290_keeps_reply_endpoint_wake_writer_open_until_exclusive_authority_exists() {
    assert_eq!(S290_WRITER_BOUNDARY_SITES, 1);
    assert_eq!(S290_WRITER_AUTHORITY_SITES, 0);
    assert_eq!(S290_DIRECT_SCHEDULER_ACCESS_SITES, 113);
    assert_eq!(S290_IMMUTABLE_READ_SITES, 44);
    assert_eq!(S290_WHOLE_SCHEDULER_GUARDED_SITES, 44);
    assert_eq!(S290_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
    assert_eq!(S290_OPEN_WRITER_SITES, 69);
}
snippet sha256: 4438ed33c189file sha256: fffe5ed7672c
03 · Kapı kimlik kaydı

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

tam Operations kaydıL16855–L16911
website/src/lib/operations.ts::g8l-s290-reply-endpoint-wake-writer-authority-audit-partial
  {
    id: "g8l-s290-reply-endpoint-wake-writer-authority-audit-partial",
    date: "2026-08-26",
    sequence: 290,
    status: "passed",
    umbrella_status: "partial",
    title: "G8l: reply-endpoint wake writer-authority audit",
    summary:
      "S290 focused 15/15 PASS ile teardown_endpoint_object_under_ipc_transaction helper'ındaki son explicit scheduler writer erişimini, exact reply-endpoint wake 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. Helper'da audit edilmemiş writer sınırı kalmaz, fakat bu migration değildir: production inventory 113 direct / 44 immutable guarded / 69 open writer olarak değişmez ve production exclusive wrapper, provider authority, whole-scheduler exclusion veya scheduler mutation üretilmez.",
    evidence: [
      "S290 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
      "teardown_endpoint_object_under_ipc_transaction içindeki üç addr_of_mut!(crate::task::scheduler::SCHEDULER) writer'dan son wake_tasks_on_revoked_endpoint(reply_cap_id) sınırı audit edilir. Rendezvous revoke, cancelled-wake take, exact reply retirement, linked reply-object discard, tek reply-endpoint scheduler wake ve reply graph empty assertion sırası kaynakta görünür. Helper'da audit edilmemiş writer sınırı kalmaz; authority/migration üretilmez.",
      "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.",
      "S289 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 / 3002edcc, RPi4 149371 B / 0f76217f, RPi5 393503 B / df9b580e ve RPi5+SMP 393445 B / 2757c7a9. Warning header'ları sırasıyla 291, 389, 795 ve 795'tir; zero-warning iddiası değildir.",
      "Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / 532d3396, 17 error ve 22 warning header ile fail-closed kaldı; S290 writer boundary'si iki board profilinin birlikte etkinleşmesini açmaz.",
      "S238–S290 dependency matrisi iki koşuda 54 grup / 734/734 PASS; ham loglar 6942 B / 5a0b1b89 ve b3d196cf, süre-normalize özet 7050 B byte-equal / d7a42056abad87a6a25f8c0a950b2c6f9c4649c843e223658672e32aecc468dd. Bu production writer-authority invocation kanıtı değildir.",
      "Ortak make verify-qemu iki koşuda PASS verdi: 116222 B / d04cd97d ve 116139 B / 32da61e1; 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 S290 production writer invocation kanıtı değildir.",
      "Exact yedi tarihsel G8h assertion adlarıyla dışlandığında workspace iki koşuda 252 sonuç grubu / 2514 PASS / 7 filtered verdi: ham loglar 60232 B / b951169f ve 20f1c065, süre-normalize 24325 B özet byte-equal / SHA-256 206f53ea4cc747aae945fae048ccd95af758fb5f236c07066a02130f033844c2. Filtresiz koşu exit 101, 55454 B / 700e15fc ile frozen S96 exceptions.S identity kapısında RED kaldı; full-workspace GREEN iddia edilmez.",
      "S290 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S290=NO.",
    ],
    commands: [
      "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s290_reply_endpoint_wake_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-s290-reply-endpoint-wake-writer-authority-audit",
        title: "G8l S290 reply-endpoint wake writer-authority audit",
        commandLines: [
          "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s290_reply_endpoint_wake_writer_authority_audit -- --test-threads=1",
        ],
        outputLines: [
          "test result: ok; S290 focused 1 group / 15 passed; 0 failed",
          "repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
          "reply-endpoint wake writer authority remains model-only: reader blocks exclusive lease; no helper writer boundary remains unaudited, but 69 production writer sites remain open",
          "dependency: S238–S290 · 54 groups · 734/734 PASS; workspace: 252 groups · 2514 PASS · 7 historical filtered",
        ],
        exitCode: 0,
        outputMode: "selected",
      },
    ],
    terminalSessionsNote:
      "S290 kaynak/model fail-closed authority boundary'sidir; production writer guard/migration, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
    limitations: [
      "S290 teardown_endpoint_object_under_ipc_transaction helper'ındaki son reply-endpoint wake writer sınırını audit eder; helper audit envanteri kapanır ama toplam 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–S290 dependency matrisi exact 54 grup / 734/734 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; S290 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S290=NO.",
    ],
  },
snippet sha256: 81b859739badfile sha256: 9726dbf00f84
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s290_reply_endpoint_wake_writer_authority_audit -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S290-Reply-Endpoint-Wake-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 3050638b71a684d8f8f947a8a6faa237a17fa8db5dc0db04fb207b668b462af9