ASELSANMicrokernel
S307 · SOURCE-BOUND GATE EVIDENCE

G8l: EL0 notification-wait-timeout writer-authority audit

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

S307Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s307-el0-notification-wait-timeout-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 öğesiL32–L99
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s307_el0_notification_wait_timeout_writer_authority_audit.rs::S307_WHOLE_SCHEDULER_GUARDED_SITES
pub const S307_EXCEPTIONS_EXPLICIT_WRITER_SITES: usize = 8;
pub const S307_EXCEPTIONS_REMAINING_UNAUDITED_WRITER_SITES: usize = 2;
pub const S307_DIRECT_SCHEDULER_ACCESS_SITES: usize = S306_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S307_IMMUTABLE_READ_SITES: usize = S306_IMMUTABLE_READ_SITES;
pub const S307_WHOLE_SCHEDULER_GUARDED_SITES: usize = S306_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S307_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S306_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S307_OPEN_WRITER_SITES: usize = S306_OPEN_WRITER_SITES;

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

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS307SchedulerWriterAuthorityAuditError {
    S306(G8lS306SchedulerWriterAuthorityAuditError),
    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_s307_scheduler_writer_authority(
    caller_cpu: usize,
    request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS307SchedulerWriterAuthorityAuditOutcome, G8lS307SchedulerWriterAuthorityAuditError>
{
    match preflight_s306_scheduler_writer_authority(caller_cpu, request)
        .map_err(G8lS307SchedulerWriterAuthorityAuditError::S306)?
    {
        G8lS306SchedulerWriterAuthorityAuditOutcome::Idle => {
            Ok(G8lS307SchedulerWriterAuthorityAuditOutcome::Idle)
        }
        G8lS306SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            request_id,
            guarded_sites,
            writer_sites,
        } if guarded_sites == S307_WHOLE_SCHEDULER_GUARDED_SITES
            && writer_sites == S307_OPEN_WRITER_SITES =>
        {
            Ok(
                G8lS307SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
                    request_id,
                    guarded_sites,
                    writer_sites,
                },
            )
        }
        G8lS306SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            guarded_sites,
            writer_sites: _,
            ..
        } => Err(
            G8lS307SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
                guarded_sites,
                unrouted_sites: S307_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
            },
        ),
    }
}
snippet sha256: d56dcea636a2file sha256: bae55df60deb
02 · Doğrulayan test kodu

Operations komutuna bağlı focused test

tam Rust öğesiL53–L65
simulation/tests/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s307_el0_notification_wait_timeout_writer_authority_audit.rs::s307_keeps_el0_notification_wait_timeout_writer_open_until_exclusive_authority_exists

#[test]
fn s307_keeps_el0_notification_wait_timeout_writer_open_until_exclusive_authority_exists() {
    assert_eq!(S307_WRITER_BOUNDARY_SITES, 1);
    assert_eq!(S307_WRITER_AUTHORITY_SITES, 0);
    assert_eq!(S307_DIRECT_SCHEDULER_ACCESS_SITES, 113);
    assert_eq!(S307_IMMUTABLE_READ_SITES, 44);
    assert_eq!(S307_WHOLE_SCHEDULER_GUARDED_SITES, 44);
    assert_eq!(S307_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
    assert_eq!(S307_OPEN_WRITER_SITES, 69);
    assert_eq!(S307_EXCEPTIONS_EXPLICIT_WRITER_SITES, 8);
    assert_eq!(S307_EXCEPTIONS_REMAINING_UNAUDITED_WRITER_SITES, 2);
}
snippet sha256: 24423c76665cfile sha256: 7896e5b6761c
03 · Kapı kimlik kaydı

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

tam Operations kaydıL15874–L15933
website/src/lib/operations.ts::g8l-s307-el0-notification-wait-timeout-writer-authority-audit-partial
  {
    id: "g8l-s307-el0-notification-wait-timeout-writer-authority-audit-partial",
    date: "2026-08-26",
    sequence: 307,
    status: "passed",
    umbrella_status: "partial",
    title: "G8l: EL0 notification-wait-timeout writer-authority audit",
    summary:
      "S307 focused 15/15 PASS ile arch/aarch64/exceptions.rs içindeki kaynak sırasına göre sondan altıncı explicit mutable scheduler aliasını doğrular: handle_notification_wait_timeout içindeki notification_wait_timeout_or_park sınırı. Nonzero mask ve geçerli relative deadline ile current-task CNode exact Notification generation/NOTIFICATION_WAIT authority writer'dan önce doğrulanır; context, user stack, id, generation, mask, now tick ve timeout exact forward edilir. Helper existing IRQ/IPC transaction altında canlı waiter/object'i yeniden doğrular. Matching pending bits immediate yolda deadline kurmadan tüketilir; parked yolda ready/blocked capacity ayrılır, exact deadline waiter publication'dan önce kurulur, başarısız publication exact rollback edilir ve blocked-state/switch/restore sırası korunur. 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 olarak değişmez; exceptions.rs içindeki 8 explicit aliasın 2'si ayrıca açık kalır ve production exclusive wrapper, provider authority, whole-scheduler exclusion veya scheduler mutation üretilmez.",
    evidence: [
      "S307 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
      "handle_notification_wait_timeout içindeki tek addr_of_mut!(crate::task::scheduler::SCHEDULER) writer boundary'si audit edilir. ctx.gpr[0]/ctx.gpr[1]/ctx.gpr[6] notification id/mask/timeout olur; TICKS Acquire snapshot, nonzero mask ve valid TickDeadline writer'dan önce gelir. Current-task CNode exact Notification lookup/generation ve NOTIFICATION_WAIT hakkı eksikse InvalidCapability ile terminal kapanır. exceptions.rs 8 explicit writer / 2 remaining unaudited'dır.",
      "notification_wait_timeout_or_park(ctx, user_sp, notification_id, authority.generation, mask, now_tick, timeout_ticks) exact ve tek kez forward edilir. Helper IrqGuard/IPC_TRANSACTION_LOCK altında nonzero current waiter, canlı Notification/WAIT authority/generation, exact waiter ve notification object'i yeniden doğrular.",
      "Matching pending bits immediate dalda object.wait(waiter) ile tüketilir, Immediate observed sonucu döner ve register_notification çağrısından önce Ok(Some(observed)) ile kapanır; deadline arming yoktur. Park dalı ready queue, saved context ve blocked capacity'yi doğrular; exact notification deadline kaydını object waiter publication'dan önce kurar. Publication Immediate/Err olursa cancel_exact(deadline_record) ile rollback eder; success dalı exact BlockedOnNotification state, blocked push, lock drop, switch_after_ipc_park ve restore_current_ipc_context sırasıyla Ok(None) döner.",
      "Handler immediate Some, parked None ve Err sonuçlarını ayrık yayınlar; yalnız immediate success observed bits'i set_notification_result ile döndürü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.",
      "S306 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 / 61cf502c, RPi4 149371 B / b660235f, RPi5 427489 B / c4743868 ve RPi5+SMP 427431 B / e998bcd4. Warning header'ları sırasıyla 291, 389, 892 ve 892'dir; zero-warning iddiası değildir.",
      "Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / 500efca4, 17 error ve 22 warning header ile fail-closed kaldı; S307 writer boundary'si iki board profilinin birlikte etkinleşmesini açmaz.",
      "S238–S307 dependency matrisi iki koşuda 71 grup / 989/989 PASS; ham loglar byte-equal 9152 B / 73cb008517247881509130f40ad9f29be7db846cfff2515c39ddb891cbbfec34, süre-normalize özetler byte-equal 9294 B / adab211f434806d94cfc971c1ec274c23eba29692896b70ce9941b24a0f20e03. Bu production writer-authority invocation kanıtı değildir.",
      "Ortak make verify-qemu iki koşuda PASS verdi: 116222 B / 84d1b168 ve 116139 B / 201b7cd3; W^X 31/31, S271 GRAPH_ABSENT=YES, RuntimePmm baseline, EL0 x4096, IPC 20/20, tek S142 containment ve SEC5 korunur. Bu ortak smoke S307 production writer invocation kanıtı değildir.",
      "Exact yedi tarihsel G8h assertion adıyla dışlandığında workspace iki koşuda 269 sonuç grubu / 2785 PASS / 7 filtered verdi: ham loglar 62458 B / 8d0c8cfb ve c608c93f, süre-normalize 25974 B özet byte-equal / SHA-256 67d0cf0d9d617d85032993986d92662c135d5fb3aef5dfb3461e4ee5abefc7b7. Filtresiz koşu exit 101, 57680 B / cf53c7db ile frozen S96 exceptions.S identity kapısında RED kaldı; full-workspace GREEN iddia edilmez.",
      "S307 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S307=NO.",
    ],
    commands: [
      "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s307_el0_notification_wait_timeout_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 --features board-rpi5",
      "make verify-qemu",
    ],
    terminalSessions: [
      {
        id: "g8l-s307-el0-notification-wait-timeout-writer-authority-audit",
        title: "G8l S307 EL0 notification-wait-timeout writer-authority audit",
        commandLines: [
          "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s307_el0_notification_wait_timeout_writer_authority_audit -- --test-threads=1",
        ],
        outputLines: [
          "test result: ok; S307 focused 1 group / 15 passed; 0 failed",
          "repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
          "EL0 notification-wait-timeout writer authority remains model-only: reader blocks exclusive lease; exact CNode WAIT authority, immediate-unarmed and deadline-before-waiter parked paths are source-audited while exceptions.rs retains 2 unaudited aliases and all 69 production writer sites remain open",
          "dependency: S238–S307 · 71 groups · 989/989 PASS; workspace: 269 groups · 2785 PASS · 7 historical filtered",
        ],
        exitCode: 0,
        outputMode: "selected",
      },
    ],
    terminalSessionsNote:
      "S307 kaynak/model fail-closed authority boundary'sidir; production writer guard/migration, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
    limitations: [
      "S307 exceptions.rs içindeki kaynak sırasına göre sondan altıncı explicit mutable scheduler aliasını audit eder; aynı source unit'te 2 alias ve toplam 69 production writer site authority wrapper dışında 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–S307 dependency matrisi exact 71 grup / 989/989 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; S307 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S307=NO.",
    ],
  },
snippet sha256: 1ebbf2bf3c67file sha256: 9726dbf00f84
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s307_el0_notification_wait_timeout_writer_authority_audit -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S307-EL0-Notification-Wait-Timeout-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 91d38c7b6222f0b4c117be786454853543da55a160e543d9b951057cc20dcc06