360. crates/timetable's proved next_after is not what the timer calls, so nothing runs the proof
Built 2026-10-27 under §178 (where the timer re-arm seam goes), option A. The aarch64 and riscv64
rearm read their registers, call periodic_deadline::next_after(fired, interval, now) and arm the result, so
the Kani-proved function is the one the timer runs and a late tick returns to its original beat.
Lateness detection and MISSED_TICKS stay in the arch layer, and x86_64 keeps its hardware reload.
The suite's a_late_tick_returns_to_the_grid binds the behavior on both ISAs. The function and its
Kani proofs moved from crates/timetable into the new periodic_deadline crate (name provisional),
which the kernel and timetable both link, so the kernel does not depend on the scheduler.
Checked against the tree on 2026-09-19, the counterfactual was intact: timetable::next_after has exactly one caller in the tree,
crates/timetable/src/lib.rs's own Timetable::due, and nothing on the kernel timer path reaches it.
One correction to the body's "every ISA restates the arithmetic": two do, not three.
kernel/src/arch/aarch64/timer.rs::rearm and kernel/src/arch/riscv64/timer.rs::rearm each compute
fired + interval with their own copy of the skip-rather-than-catch-up rule, while x86_64 arms the
local APIC in periodic mode and the hardware reloads, so there is no software re-arm there to lift.
Where the seam goes is an architect's call. It is the whole of the work rather than a detail of it. Too high and the arch layer keeps the milestone 6 (threads, the context switch, and preemption) drift bug it has today; too low and every ISA restates the same arithmetic, which is the thing the crate exists to stop. A lane can prepare the options and measure them, but it cannot pick the line.
In brief. The timer re-arm arithmetic is currently written inside the register access, per
architecture. crates/timetable::next_after computes the same thing, has a proof, and nothing on the
running path calls it. The work is to lift the arithmetic out of the register write so the proved
function is the one the timer actually uses, and the design question is which side of the seam each
piece lands on.
Why this matters
This is the sharpest counterfactual the verification story has, and it currently points the wrong
way. A proof over a function nothing calls is worth nothing to the running system, and it is worse
than nothing to a reader: script/verify reports it green beside proofs that do bind, with no way
to tell the two apart. The demonstrator's claim is a verified core, and a stranger who checks this
one finds a property that holds over code the kernel does not execute.
The bug on the other side is concrete rather than hypothetical. Milestone 6's drift defect lives in the per-architecture re-arm, and it lives there once per ISA. Every architecture added restates the arithmetic and has its own chance to restate the bug with it.
What would settle the decision
Two things a lane can produce before calef rules, and neither of them presumes the answer. The
first is what each architecture's re-arm actually does today, side by side, so reading, not
assertion, separates the shared part from the genuinely ISA-specific part. The second is
what next_after's signature would have to become to serve all three, since the seam is really the
question of what crosses that signature: a deadline, a delta, or a raw counter value.
Index row
The timer re-arm arithmetic sat inside the register access, per architecture, while
next_after computed the same thing, had a Kani proof, and nothing on the running path called it.
script/verify reported it green beside proofs that do bind, with no way to tell the two apart.
Milestone 6's drift defect lives in the per-architecture re-arm, once per ISA. The seam was an
architect's call and the whole of the work: too high and the arch layer keeps the drift bug, too
low and every ISA restates the arithmetic the crate exists to hold. §178 ruled option A, built as
the paragraph under the title says.
Follow-on
- None. The seam is placed and built under §178 (where the timer re-arm seam goes). x86_64 has no software re-arm to lift.