You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(native): retain Working grace across same-thread shell snapshots #324
The watched sidebar keys Working history by the full environment owner, including shell snapshot generation. An authoritative snapshot can therefore discard the same thread's history and move a just-completed row to Active without the existing Working exit grace.
Finite tests-first scope
Extend the existing core section test. Observe a real running shell, apply a real authoritative completed snapshot with no active run and unchanged placement, created-at and environment incarnation, then build with the same sidebar state. The intended regression is the first Working-membership assertion after that snapshot, not a compile error. Check the existing deadline and transition to Active with explicit timestamps, without sleeps.
After a fix, a different environment incarnation or a recreated thread with the same raw id must not inherit old history. These controls must first seed running history in the same state; a fresh-state-only assertion is not evidence.
This issue covers snapshot history only. Scope-filter history, mounted child attention, local fallback and app wake scheduling remain separate. Preserve all existing U3 changes in the combined lane; isolate only this finite fix and ledger update before landing. Required native gates, independent exact-head review, matched merge and fresh meaningful merged proof apply. No server, live-provider/auth or constants changes. SB-SECTIONS stays partial and sidebar acceptance remains 9/16.
The tests-first snapshot regression reproduces on the existing core case: one selected test failed at sidebar/tests.rs:1531:5, with Some(Active) instead of Some(Working). Before that assertion, the test applied a real authoritative completed snapshot and verified a changed shell generation with unchanged environment incarnation, thread creation time and placement. All prior case assertions also ran.
Deadline and replacement/recreated-thread controls occur after this first failure and have not run yet. Independent classification is pending before a production identity/lifetime change. This is pure state proof, not app timer/wake proof. SECTIONS remains partial; no constants changed.
The complete snapshot-history case now passes, including the existing grace deadline, transition to Active, and seeded-history controls for a replacement environment and recreated thread. Local attention/placement, return ordering, and update-planner regression cases also pass.
The return-order fixture had changed creation time between running and completed observations. Its reviewed correction keeps the same creation time and changes only execution state. The order assertion and timestamps are unchanged. Production history still resets for a genuinely recreated thread.
The fix reuses the existing tracker and parsed creation timestamp. It adds no helper API or extra per-row string allocation. Independent current-artifact review is pending, then this finite core fix will be isolated. This does not prove the app timer's wake behavior or complete SECTIONS. No constants changed.
Finite core fix #324 is accepted after PR #325 matched-head squash merge cf93bf5d0b215e901530b0b0cf4e4248803c6c0c (tree fe2004c35a2dbc424a3f34a17e8fbcb0e3af42f8), required candidate gates, and fresh merged proof.
All 1,356 core/client tests, strict workspace/all-target Clippy, normal/snapshot builds, and theme/intake/conformance checks pass.
Fresh merged snapshot build and compiler-JSON-selected binaries: three exact core history cases and five exact native paging controls, each selecting and passing one test.
Independent final review verified the current source, ledger, clean merged tree, and all three present artifact hashes. Final review SHA256: 14137acc7029253e28dd264004cd49f45ccff9799ffafc620badefd0f12c7beb.
The same-incarnation tracker retains Working exit grace across authoritative snapshots. Recreated thread and replacement environment histories stay separate. The return-order fixture now preserves creation identity; its assertion and timestamps are unchanged.
This accepts pure state/deadline behavior only. It does not prove actual app timer wake, complete project-filter history, or finish SB-SECTIONS. Sidebar acceptance remains 9/16. No constants changed. Formatting remains the approved exception.
Activity
rynfar commentedon Nov 7, 2026
The tests-first snapshot regression reproduces on the existing core case: one selected test failed at
sidebar/tests.rs:1531:5, withSome(Active)instead ofSome(Working). Before that assertion, the test applied a real authoritative completed snapshot and verified a changed shell generation with unchanged environment incarnation, thread creation time and placement. All prior case assertions also ran.Deadline and replacement/recreated-thread controls occur after this first failure and have not run yet. Independent classification is pending before a production identity/lifetime change. This is pure state proof, not app timer/wake proof. SECTIONS remains partial; no constants changed.
rynfar commentedon Nov 7, 2026
The complete snapshot-history case now passes, including the existing grace deadline, transition to Active, and seeded-history controls for a replacement environment and recreated thread. Local attention/placement, return ordering, and update-planner regression cases also pass.
The return-order fixture had changed creation time between running and completed observations. Its reviewed correction keeps the same creation time and changes only execution state. The order assertion and timestamps are unchanged. Production history still resets for a genuinely recreated thread.
The fix reuses the existing tracker and parsed creation timestamp. It adds no helper API or extra per-row string allocation. Independent current-artifact review is pending, then this finite core fix will be isolated. This does not prove the app timer's wake behavior or complete SECTIONS. No constants changed.
rynfar commentedon Nov 7, 2026
Finite core fix #324 is accepted after PR #325 matched-head squash merge
cf93bf5d0b215e901530b0b0cf4e4248803c6c0c(treefe2004c35a2dbc424a3f34a17e8fbcb0e3af42f8), required candidate gates, and fresh merged proof.14137acc7029253e28dd264004cd49f45ccff9799ffafc620badefd0f12c7beb.The same-incarnation tracker retains Working exit grace across authoritative snapshots. Recreated thread and replacement environment histories stay separate. The return-order fixture now preserves creation identity; its assertion and timestamps are unchanged.
This accepts pure state/deadline behavior only. It does not prove actual app timer wake, complete project-filter history, or finish SB-SECTIONS. Sidebar acceptance remains 9/16. No constants changed. Formatting remains the approved exception.
rynfar commentedon Nov 12, 2026
Closed via #325 (
cf93bf5d0b215e901530b0b0cf4e4248803c6c0c).