ASELSANMicrokernel
S281 · SOURCE-BOUND GATE EVIDENCE

G8l: notification-grant revoke writer-authority audit

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

S281Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s281-notification-grant-revoke-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_s281_notification_grant_revoke_writer_authority_audit.rs::S281_WHOLE_SCHEDULER_GUARDED_SITES

pub const S281_WRITER_BOUNDARY_SITES: usize = 1;
pub const S281_WRITER_AUTHORITY_SITES: usize = 0;
pub const S281_DIRECT_SCHEDULER_ACCESS_SITES: usize = S280_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S281_IMMUTABLE_READ_SITES: usize = S280_IMMUTABLE_READ_SITES;
pub const S281_WHOLE_SCHEDULER_GUARDED_SITES: usize = S280_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S281_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S280_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S281_OPEN_WRITER_SITES: usize = S280_OPEN_WRITER_SITES;

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

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS281SchedulerWriterAuthorityAuditError {
    S280(G8lS280SchedulerWriterAuthorityAuditError),
    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_s281_scheduler_writer_authority(
    caller_cpu: usize,
    request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS281SchedulerWriterAuthorityAuditOutcome, G8lS281SchedulerWriterAuthorityAuditError>
{
    match preflight_s280_scheduler_writer_authority(caller_cpu, request)
        .map_err(G8lS281SchedulerWriterAuthorityAuditError::S280)?
    {
        G8lS280SchedulerWriterAuthorityAuditOutcome::Idle => {
            Ok(G8lS281SchedulerWriterAuthorityAuditOutcome::Idle)
        }
        G8lS280SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            request_id,
            guarded_sites,
            writer_sites,
        } if guarded_sites == S281_WHOLE_SCHEDULER_GUARDED_SITES
            && writer_sites == S281_OPEN_WRITER_SITES =>
        {
            Ok(
                G8lS281SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
                    request_id,
                    guarded_sites,
                    writer_sites,
                },
            )
        }
        G8lS280SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            guarded_sites,
            writer_sites: _,
            ..
        } => Err(
            G8lS281SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
                guarded_sites,
                unrouted_sites: S281_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
            },
        ),
    }
}
snippet sha256: a16ec9994c58file sha256: 2e88766e9f5f
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_s281_notification_grant_revoke_writer_authority_audit.rs::s281_keeps_notification_grant_revoke_writer_open_until_exclusive_authority_exists

#[test]
fn s281_keeps_notification_grant_revoke_writer_open_until_exclusive_authority_exists() {
    assert_eq!(S281_WRITER_BOUNDARY_SITES, 1);
    assert_eq!(S281_WRITER_AUTHORITY_SITES, 0);
    assert_eq!(S281_DIRECT_SCHEDULER_ACCESS_SITES, 113);
    assert_eq!(S281_IMMUTABLE_READ_SITES, 44);
    assert_eq!(S281_WHOLE_SCHEDULER_GUARDED_SITES, 44);
    assert_eq!(S281_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
    assert_eq!(S281_OPEN_WRITER_SITES, 69);
}
snippet sha256: df044ded64a5file sha256: 29ea77e6de99
03 · Kapı kimlik kaydı

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

tam Operations kaydıL17369–L17425
website/src/lib/operations.ts::g8l-s281-notification-grant-revoke-writer-authority-audit-partial
  {
    id: "g8l-s281-notification-grant-revoke-writer-authority-audit-partial",
    date: "2026-08-26",
    sequence: 281,
    status: "passed",
    umbrella_status: "partial",
    title: "G8l: notification-grant revoke writer-authority audit",
    summary:
      "S281 focused 15/15 PASS ile typed revoke_notification_grant(grant, actor) orchestrator sınırındaki 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: [
      "S281 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
      "revoke_notification_grant içindeki tek addr_of_mut!(crate::task::scheduler::SCHEDULER) writer boundary'si ve revoke_cap_for_task_exact forwarding'i kaynakta görünür; notification registry, deadline ve wake graph aynı transaction sınırında 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.",
      "S280 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 / 7ca4492d, RPi4 149371 B / f3dd82cf, RPi5 377809 B / ec82012f ve RPi5+SMP 377751 B / 0180023c. Warning header'ları sırasıyla 291, 389, 750 ve 750'dir; zero-warning iddiası değildir.",
      "Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / 895c0b5e ve 17 error header ile fail-closed kaldı; S281 writer boundary'si iki board profilinin birlikte etkinleşmesini açmaz.",
      "S238–S281 dependency matrisi iki koşuda 45 grup / 599/599 PASS; ham loglar 5772 B, süre-normalize 5862 B özet byte-equal / SHA-256 f214df73c1a71c8551ed0964ad9897b4c42aa24a3cb474fe537061e359f4dc23. İlk 590-test adayındaki S240 SGI-delivery sayım hatası acceptance kanıtından dışlandı.",
      "Ortak make verify-qemu iki koşuda PASS verdi: 116139 B / 5e405970 ve 116139 B / 66e873ad; 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 S281 production writer invocation kanıtı değildir.",
      "Exact yedi tarihsel G8h assertion adlarıyla dışlandığında workspace iki koşuda 243 sonuç grubu / 2370 PASS / 7 filtered verdi; süre-normalize 23452 B özet byte-equal / SHA-256 d870803e. Filtresiz koşu exit 101, 54265 B / 71df892d ile frozen S96 exceptions.S identity kapısında kaldı ve full-workspace GREEN iddia edilmez.",
      "S281 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S281=NO.",
    ],
    commands: [
      "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s281_notification_grant_revoke_writer_authority_audit -- --test-threads=1",
      "cargo check -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-qemu",
      "cargo check -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi4",
      "cargo check -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5",
      "cargo check -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5,smp",
      "cargo check -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5,board-qemu",
      "make verify-qemu",
    ],
    terminalSessions: [
      {
        id: "g8l-s281-notification-grant-revoke-writer-authority-audit",
        title: "G8l S281 notification-grant revoke writer-authority audit",
        commandLines: [
          "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s281_notification_grant_revoke_writer_authority_audit -- --test-threads=1",
        ],
        outputLines: [
          "test result: ok; S281 focused 1 group / 15 passed; 0 failed",
          "repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
          "notification-grant revoke writer authority remains model-only: reader blocks exclusive lease; 69 production writer sites remain open",
          "dependency: S238–S281 · 45 groups · 599/599 PASS; workspace: 243 groups · 2370 PASS · 7 historical filtered",
        ],
        exitCode: 0,
        outputMode: "selected",
      },
    ],
    terminalSessionsNote:
      "S281 kaynak/model fail-closed authority boundary'sidir; production writer guard, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
    limitations: [
      "S281 yalnız revoke_notification_grant 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–S281 dependency matrisi exact 45 grup / 599/599 PASS'tir; bu production writer authority invocation kanıtı değildir.",
      "Filtresiz workspace frozen S96 identity kapısında RED'dir; yalnız exact yedi tarihsel assertion dışlandığında 243 grup / 2370 PASS elde edilir.",
      "Supported-profile runtime invocation, Generic SMP ve fiziksel RPi kabulü açık kalır; S281 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S281=NO.",
    ],
  },
snippet sha256: 274cd04e8dabfile sha256: 9726dbf00f84
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s281_notification_grant_revoke_writer_authority_audit -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S281-Notification-Grant-Revoke-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 3050638b71a684d8f8f947a8a6faa237a17fa8db5dc0db04fb207b668b462af9