S314 · SOURCE-BOUND GATE EVIDENCE
G8l: QEMU S147 post-lifecycle stale-signal writer-authority audit
Operations --test hedefi → test hedefiyle aynı adlı uygulama/model modülü → kaynak kesiti Bu sayfa yalnız S314 kapısına aittir; komşu kapıların kaynakları bu kabulün içine katılmaz.
S314Focused kod testiOperations id exactsource SHA exacttest target exact
operation: g8l-s314-qemu-s147-post-lifecycle-stale-signal-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 öğesiL25–L98
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s314_qemu_s147_post_lifecycle_stale_signal_writer_authority_audit.rs::S314_MAIN_REMAINING_UNAUDITED_WRITER_SITES
pub const S314_WRITER_BOUNDARY_SITES: usize = 1;
pub const S314_WRITER_AUTHORITY_SITES: usize = 0;
pub const S314_MAIN_EXPLICIT_WRITER_SITES: usize = 17;
pub const S314_MAIN_PREVIOUSLY_AUDITED_WRITER_SITES: usize = 4;
pub const S314_MAIN_REMAINING_UNAUDITED_WRITER_SITES: usize = 12;
pub const S314_S147_EXPLICIT_WRITER_SITES: usize = 2;
pub const S314_S147_REMAINING_UNAUDITED_WRITER_SITES: usize = 1;
pub const S314_DIRECT_SCHEDULER_ACCESS_SITES: usize = S313_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S314_IMMUTABLE_READ_SITES: usize = S313_IMMUTABLE_READ_SITES;
pub const S314_WHOLE_SCHEDULER_GUARDED_SITES: usize = S313_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S314_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S313_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S314_OPEN_WRITER_SITES: usize = S313_OPEN_WRITER_SITES;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS314SchedulerWriterAuthorityAuditOutcome {
Idle,
AwaitingWriterAuthority {
request_id: u64,
guarded_sites: usize,
writer_sites: usize,
},
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS314SchedulerWriterAuthorityAuditError {
S313(G8lS313SchedulerWriterAuthorityAuditError),
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_s314_scheduler_writer_authority(
caller_cpu: usize,
request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS314SchedulerWriterAuthorityAuditOutcome, G8lS314SchedulerWriterAuthorityAuditError>
{
match preflight_s313_scheduler_writer_authority(caller_cpu, request)
.map_err(G8lS314SchedulerWriterAuthorityAuditError::S313)?
{
G8lS313SchedulerWriterAuthorityAuditOutcome::Idle => {
Ok(G8lS314SchedulerWriterAuthorityAuditOutcome::Idle)
}
G8lS313SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
request_id,
guarded_sites,
writer_sites,
} if guarded_sites == S314_WHOLE_SCHEDULER_GUARDED_SITES
&& writer_sites == S314_OPEN_WRITER_SITES =>
{
Ok(
G8lS314SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
request_id,
guarded_sites,
writer_sites,
},
)
}
G8lS313SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
guarded_sites,
writer_sites: _,
..
} => Err(
G8lS314SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
guarded_sites,
unrouted_sites: S314_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
},
),
}
}snippet sha256: b167501089e9…file sha256: 8a873b1fef36…
02 · Doğrulayan test kodu
Operations komutuna bağlı focused test
tam Rust öğesiL258–L282
simulation/tests/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s314_qemu_s147_post_lifecycle_stale_signal_writer_authority_audit.rs::s314_lifecycle_helper_removes_owned_notifications_and_owner_capabilities
#[test]
fn s314_lifecycle_helper_removes_owned_notifications_and_owner_capabilities() {
let source = include_str!("../../kernel/src/ui/capability.rs");
let helper = task_lifecycle_helper_boundary(source);
for required in [
"IrqGuard::new()",
"IPC_TRANSACTION_LOCK.lock()",
"preflight_task_ipc_lifecycle(owner)",
"find(|object| object.owner() == owner)",
"preflight_notification_object_teardown_under_ipc_transaction",
"teardown_notification_object_under_ipc_transaction(",
"owned_notifications += 1",
"revoked_notification_grants += teardown.revoked_grants",
"cancelled_notification_waiters += teardown.cancelled_waiters",
"woken_notification_waiters += teardown.woken_waiters",
"assert!(!notifications.iter().any(|object| object.owner() == owner))",
"capability_for_task(owner, object.id())",
] {
assert!(
helper.contains(required),
"missing S314 lifecycle helper token: {required}"
);
}
}snippet sha256: 6f3e64780048…file sha256: 1766d2d1c909…
03 · Kapı kimlik kaydı
Operations sıra, kimlik ve başlık bağı
tam Operations kaydıL15436–L15500
website/src/lib/operations.ts::g8l-s314-qemu-s147-post-lifecycle-stale-signal-writer-authority-audit-partial
{
id: "g8l-s314-qemu-s147-post-lifecycle-stale-signal-writer-authority-audit-partial",
date: "2026-08-27",
sequence: 314,
status: "passed",
umbrella_status: "partial",
title: "G8l: QEMU S147 post-lifecycle stale-signal writer-authority audit",
summary:
"S314 focused 15/15 PASS ile main.rs içindeki kaynak sırasına göre S313 first-signal Wake aliasından hemen önceki explicit mutable scheduler sınırını doğrular: run_qemu_s147_notification_lifecycle içindeki controller owner-lifecycle teardown sonrasındaki stale notification_signal writer'ı. Nonzero controller task, controller-owned exact iki Notification root/WAIT grant, iki strict waiter'ın deadline active/registered=2 admission'ı ve exact waiter/generation/mask snapshot'ları writer'dan önce doğrulanır. Revoke grant exact-once kaldırılır, stale revoke reddedilir ve ilk S147 aliası revoke root id/generation/0x8 için yalnız Coalesced pending=0x8 kabul eder. teardown_task_ipc_lifecycle(controller_task) exact owned_notifications=2, revoked_notification_grants=1, cancelled_notification_waiters=1 ve woken_notification_waiters=1 sonucu üretir; ardından owner_close root id/generation/0x2 exact forward edilir ve yalnız InvalidCapability kabul edilir. Lifecycle helper IRQ/IPC transaction altında owner notification object'lerini ve owner CNode notification authority'lerini kaldırır. notification_signal helper nonzero current signaler ve canlı NOTIFICATION_SIGNAL authority kapısını deadline/registry/blocked/wake-capacity/Ready mutasyonundan önce uygular. Writer authority yalnız model gate'inin exclusive lease'iyle mümkündür; reader lease'i writer'ı açmaz. main.rs 17 explicit writer / 4 previously audited / 12 remaining unaudited; S147 işlevi 2 explicit / 1 remaining; 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: [
"S314 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
"main.rs içindeki 17 explicit addr_of_mut!(crate::task::scheduler::SCHEDULER) sitesinin kaynakta alttan beşinci sınırı audit edilir. run_qemu_s147_notification_lifecycle 2 explicit alias taşır; S314 daha sonraki owner-close stale-signal aliasını kapatır. İşlevde 1, main.rs genelinde 12 alias ayrıca açık kalır.",
"Exact controller task, controller-owned revoke/owner-close Notification root'ları, iki NOTIFICATION_WAIT grant'i, first_parked ve both_parked admission'ları ile deadline active/registered=2 writer'dan önce gelir.",
"Revoke grant ilk çağrıda Ok(true), stale tekrarda StaleAuthority verir; revoke notification id/generation/0x8 ilk S147 writer'ına exact forward edilir ve yalnız Coalesced { pending: 0x8 } kabul edilir.",
"Controller teardown exact owned_endpoints=0, cancelled_responder_calls=0, drained_calls=0, owned_notifications=2, revoked_notification_grants=1, cancelled_notification_waiters=1 ve woken_notification_waiters=1 özetini stale-signal writer'ından önce üretir.",
"Lifecycle helper IrqGuard/IPC_TRANSACTION_LOCK ve complete graph preflight altında owner'a ait Notification object'lerini exact teardown eder, ilgili grant/waiter sayaçlarını commit eder ve sonunda owner object/CNode Notification authority yokluğunu doğrular.",
"owner_close_notification.id, owner_close_notification.generation ve 0x2 helper'a exact forward edilir; caller yalnız Err(IpcError::InvalidCapability) kabul eder.",
"Scheduler notification_signal helper nonzero current signaler, bits!=0 ve canlı NOTIFICATION_SIGNAL authority'yi mevcut IRQ/IPC transaction altında doğrular; authority yokluğu InvalidCapability ile deadline, registry, blocked-task, wake-capacity ve Ready mutation'dan önce döner.",
"Stale signal sonrasında exact owner-close destroy denemesi StaleAuthority verir; deadline delta registered/cancelled/peer_closed=2/1/1, iki registry object ve iki live capability absence ile RuntimePmm baseline korunur.",
"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.",
"S313 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 / 7a59ed83, RPi4 149371 B / 3075e9f0, RPi5 450330 B / 420fd23c ve RPi5+SMP 450272 B / 82f6c402. Warning header'ları sırasıyla 291, 389, 955 ve 955'tir; zero-warning iddiası değildir.",
"Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / 6943d72c, 17 error ve 22 warning header ile fail-closed kaldı.",
"S238–S314 dependency matrisi iki koşuda 78 grup / 1094/1094 PASS; ham loglar 10062 B / 07da4d9c ve 00b70d44, süre-normalize özetler byte-equal 10218 B / 4cd30ce5f8b20afc250755d98aba406560cfc188e313f711de525271269714c3. Bu production writer-authority invocation kanıtı değildir.",
"Ortak make verify-qemu iki koşuda PASS verdi: 116222 B / 545d63b1 ve 116139 B / c372a785; guest logları 2161951 B / 4edb82e4 ve 2151239 B / 86cf64bd. W^X 31/31, S271 GRAPH_ABSENT=YES, RuntimePmm baseline, EL0 x4096, IPC 20/20, koşu başına tek S142 containment, SEC5 ve 13 KERNEL_FAULTS=0 marker'ı korunur. Bu ortak smoke S314 production writer-authority invocation kanıtı değildir.",
"Exact yedi tarihsel G8h assertion adıyla dışlandığında workspace iki koşuda 276 sonuç grubu / 2897 PASS / 7 filtered verdi: ham loglar 63375 B / 7bb3732b ve ff9937a3, sonuç özetleri 26103 B / 2a6a757d ve f25d9a92, süre-normalize 26653 B özet byte-equal / SHA-256 3559aed3c40f50a028e899d558674fe20639256512458c3a4a7d1001d2de1202. Filtresiz koşu exit 101, 58597 B / 27b17348 ile frozen S96 exceptions.S identity kapısında RED kaldı; full-workspace GREEN iddia edilmez.",
"S314 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU fixture mutation veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S314=NO.",
],
commands: [
"cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s314_qemu_s147_post_lifecycle_stale_signal_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-s314-qemu-s147-post-lifecycle-stale-signal-writer-authority-audit",
title:
"G8l S314 QEMU S147 post-lifecycle stale-signal writer-authority audit",
commandLines: [
"cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s314_qemu_s147_post_lifecycle_stale_signal_writer_authority_audit -- --test-threads=1",
],
outputLines: [
"test result: ok; S314 focused 1 group / 15 passed; 0 failed",
"repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
"QEMU S147 post-lifecycle stale-signal writer authority remains model-only: exact teardown precedes id/generation/0x2 forwarding and helper rejects absent SIGNAL authority before graph mutation; S147 retains 1 unaudited alias, main.rs retains 12 and all 69 production writer sites remain open",
"dependency: S238–S314 · 78 groups · 1094/1094 PASS; workspace: 276 groups · 2897 PASS · 7 historical filtered",
],
exitCode: 0,
outputMode: "selected",
},
],
terminalSessionsNote:
"S314 kaynak/model fail-closed authority boundary'sidir; production writer guard/migration, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
limitations: [
"S314 run_qemu_s147_notification_lifecycle post-lifecycle stale-signal mutable scheduler aliasını audit eder; S147 işlevinde 1, main.rs genelinde 12 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–S314 dependency matrisi exact 78 grup / 1094/1094 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 writer-authority runtime invocation, Generic SMP ve fiziksel RPi kabulü açık kalır; S314 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S314=NO.",
],
},snippet sha256: 93db2215837c…file sha256: 9726dbf00f84…
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s314_qemu_s147_post_lifecycle_stale_signal_writer_authority_audit -- --test-threads=1proof: docs/M8.1-RPi5-G8l-S314-QEMU-S147-Post-Lifecycle-Stale-Signal-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator
website/scripts/generate-code-gates.mjs · Tam SHA-256: 91d38c7b6222f0b4c117be786454853543da55a160e543d9b951057cc20dcc06