S295 · SOURCE-BOUND GATE EVIDENCE
G8l: scheduler-tick writer-authority audit
Operations --test hedefi → test hedefiyle aynı adlı uygulama/model modülü → kaynak kesiti Bu sayfa yalnız S295 kapısına aittir; komşu kapıların kaynakları bu kabulün içine katılmaz.
S295Focused kod testiOperations id exactsource SHA exacttest target exact
operation: g8l-s295-scheduler-tick-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 öğesiL22–L90
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s295_scheduler_tick_writer_authority_audit.rs::S295_WHOLE_SCHEDULER_GUARDED_SITES
pub const S295_WRITER_BOUNDARY_SITES: usize = 1;
pub const S295_WRITER_AUTHORITY_SITES: usize = 0;
pub const S295_DIRECT_SCHEDULER_ACCESS_SITES: usize = S294_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S295_IMMUTABLE_READ_SITES: usize = S294_IMMUTABLE_READ_SITES;
pub const S295_WHOLE_SCHEDULER_GUARDED_SITES: usize = S294_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S295_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S294_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S295_OPEN_WRITER_SITES: usize = S294_OPEN_WRITER_SITES;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS295SchedulerWriterAuthorityAuditOutcome {
Idle,
AwaitingWriterAuthority {
request_id: u64,
guarded_sites: usize,
writer_sites: usize,
},
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS295SchedulerWriterAuthorityAuditError {
S294(G8lS294SchedulerWriterAuthorityAuditError),
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_s295_scheduler_writer_authority(
caller_cpu: usize,
request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS295SchedulerWriterAuthorityAuditOutcome, G8lS295SchedulerWriterAuthorityAuditError>
{
match preflight_s294_scheduler_writer_authority(caller_cpu, request)
.map_err(G8lS295SchedulerWriterAuthorityAuditError::S294)?
{
G8lS294SchedulerWriterAuthorityAuditOutcome::Idle => {
Ok(G8lS295SchedulerWriterAuthorityAuditOutcome::Idle)
}
G8lS294SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
request_id,
guarded_sites,
writer_sites,
} if guarded_sites == S295_WHOLE_SCHEDULER_GUARDED_SITES
&& writer_sites == S295_OPEN_WRITER_SITES =>
{
Ok(
G8lS295SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
request_id,
guarded_sites,
writer_sites,
},
)
}
G8lS294SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
guarded_sites,
writer_sites: _,
..
} => Err(
G8lS295SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
guarded_sites,
unrouted_sites: S295_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
},
),
}
}snippet sha256: 97431be7b3d0…file sha256: 89d25be0d2ee…
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_s295_scheduler_tick_writer_authority_audit.rs::s295_keeps_scheduler_tick_writer_open_until_exclusive_authority_exists
#[test]
fn s295_keeps_scheduler_tick_writer_open_until_exclusive_authority_exists() {
assert_eq!(S295_WRITER_BOUNDARY_SITES, 1);
assert_eq!(S295_WRITER_AUTHORITY_SITES, 0);
assert_eq!(S295_DIRECT_SCHEDULER_ACCESS_SITES, 113);
assert_eq!(S295_IMMUTABLE_READ_SITES, 44);
assert_eq!(S295_WHOLE_SCHEDULER_GUARDED_SITES, 44);
assert_eq!(S295_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
assert_eq!(S295_OPEN_WRITER_SITES, 69);
}snippet sha256: 209c5c486414…file sha256: 5bcc81d5bf55…
03 · Kapı kimlik kaydı
Operations sıra, kimlik ve başlık bağı
tam Operations kaydıL16564–L16621
website/src/lib/operations.ts::g8l-s295-scheduler-tick-writer-authority-audit-partial
{
id: "g8l-s295-scheduler-tick-writer-authority-audit-partial",
date: "2026-08-26",
sequence: 295,
status: "passed",
umbrella_status: "partial",
title: "G8l: scheduler-tick writer-authority audit",
summary:
"S295 focused 15/15 PASS ile scheduler_tick içindeki tek explicit mutable scheduler aliasını kaynakta doğrular. Non-CPU0 delivery local timer'ı kapatıp alias öncesinde döner; CPU0 sched.tick() çağrısını yapar, yalnız preemption istendiğinde ayrıca açık kalan yield_now() writer'ına ilerler ve ardından framebuffer VSync sayacını yükseltir. Scheduler::tick time-slice, vruntime, aging ve preemption sözleşmesi exact kaynak token'larıyla korunur. Bu production migration değildir. 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 ve production exclusive wrapper, provider authority, whole-scheduler exclusion veya scheduler mutation üretilmez.",
evidence: [
"S295 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
"scheduler_tick içindeki tek addr_of_mut!(SCHEDULER) writer boundary'si audit edilir. current_cpu_id() != 0 dalı local timer disable ve return ile alias öncesinde kapanır; CPU0 let sched mutable aliası, if sched.tick(), koşullu yield_now() ve framebuffer_advance_vsync() sırası kaynakta görünür. yield_now() ayrı açık writer boundary'sidir; S295 onu production authority altına almaz.",
"Scheduler::tick forwardee'sinde AtomicU64 tick counter, her 50 tick'te aging, current task time_slice decrement, weight-temelli vruntime artışı ve time_slice sıfırlandığında preemption=true sözleşmesi exact kaynak token'larıyla 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.",
"S294 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 / b591db7b, RPi4 149371 B / ee5932eb, RPi5 402423 B / 56d300f2 ve RPi5+SMP 402365 B / 8ee42594. Warning header'ları sırasıyla 291, 389, 820 ve 820'dir; zero-warning iddiası değildir.",
"Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / 969412f1, 17 error ve 22 warning header ile fail-closed kaldı; S295 writer boundary'si iki board profilinin birlikte etkinleşmesini açmaz.",
"S238–S295 dependency matrisi iki koşuda 59 grup / 809/809 PASS; ham loglar 7592 B / 284eb34a ve 62659625, süre-normalize özet 7710 B byte-equal / c238ab7cc2c73c6d4751128ed4c0a82661e09b0963e39302bfa616d84cdb4a99. Bu production writer-authority invocation kanıtı değildir.",
"Ortak make verify-qemu iki koşuda PASS verdi: 116222 B / 752e786e ve 116139 B / 1e3d1d71; 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 S295 production writer invocation kanıtı değildir.",
"Exact yedi tarihsel G8h assertion adıyla dışlandığında workspace iki koşuda 257 sonuç grubu / 2594 PASS / 7 filtered verdi: ham loglar 60887 B / 9d0b544e ve 44803af8, süre-normalize 24810 B özet byte-equal / SHA-256 42e51b0c6303deeda5ef7819ac1a78e1f5578626797126f267d493df294ddb03. Filtresiz koşu exit 101, 56109 B / 91a46aa5 ile frozen S96 exceptions.S identity kapısında RED kaldı; full-workspace GREEN iddia edilmez.",
"S295 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S295=NO.",
],
commands: [
"cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s295_scheduler_tick_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-s295-scheduler-tick-writer-authority-audit",
title: "G8l S295 scheduler-tick writer-authority audit",
commandLines: [
"cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s295_scheduler_tick_writer_authority_audit -- --test-threads=1",
],
outputLines: [
"test result: ok; S295 focused 1 group / 15 passed; 0 failed",
"repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
"scheduler-tick writer authority remains model-only: reader blocks exclusive lease; yield_now remains a separate open writer and 69 production writer sites remain open",
"dependency: S238–S295 · 59 groups · 809/809 PASS; workspace: 257 groups · 2594 PASS · 7 historical filtered",
],
exitCode: 0,
outputMode: "selected",
},
],
terminalSessionsNote:
"S295 kaynak/model fail-closed authority boundary'sidir; production writer guard/migration, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
limitations: [
"S295 yalnız scheduler_tick içindeki tek tick writer aliasını audit eder; koşullu yield_now() ayrı açık writer boundary'sidir ve 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–S295 dependency matrisi exact 59 grup / 809/809 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; S295 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S295=NO.",
],
},snippet sha256: 7a3e68fa6f0a…file sha256: 9726dbf00f84…
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s295_scheduler_tick_writer_authority_audit -- --test-threads=1proof: docs/M8.1-RPi5-G8l-S295-Scheduler-Tick-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator
website/scripts/generate-code-gates.mjs · Tam SHA-256: 91d38c7b6222f0b4c117be786454853543da55a160e543d9b951057cc20dcc06