Skip to content

test(native): prove scoped sidebar deadline wake without new shell facts #338

Closed

Description

@rynfar

Problem

The scoped sidebar has deadline timers, but native parity still lacks runtime proof that Snoozed expiry and Working grace exit rebuild the mounted AppState model without new shell facts.

Coherent scope

Add the already independently reviewed, window-free AppState timer test to app_state::scoped_route_tests on the accepted PR #337 merge. Preserve the entire existing test file. Use real scheduler parking, actual environment fixture installation/activation, existing production timers and state-filtered Shell milestones. Check held and expired membership, shelf counts, exact order, stable authoritative summary, composite owner and route.

No production timing changes. Snoozed's future deadline is test data (1,000 ms); Working grace stays at its existing 2,000 ms. No sleeps, polling, manual clock advance, arbitrary timeouts or retries. Every actual uses a distinct initially empty owned native home and an unambiguous owning-worktree compiler-selected binary.

Apply only after PR #337 fresh merged FINAL/current-artifact proof is accepted, then refresh all 12 current source/dependency inputs before isolated runtime admission. The held test has independent merged-source approval; that is not runtime success. If it fails, retain/classify the exact result before any repair.

Not included: Pane/Composer/Input/Root/window construction, physical windows, labels/render/notify or whole SB-SECTIONS acceptance. Strict Input STOP remains. No provider/server/auth/store operations outside the isolated fixture; no constants changes. Parent #242; sidebar remains 9/16.

Activity

  1. added
    native:bug
    status:in-progress
    on Nov 7, 2026
  2. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The first isolated run of the reviewed timer test passed: one exact test, 126 filtered, exit 0. It observed held and expired Snoozed state, terminal Working grace and return, Shell callbacks, model changes, stable authoritative summaries, exact counts/order and unchanged owner/route. The printed teardown tail completed. This uses real scheduler parking and existing timers, with no production changes.

    Independent runtime/source/current-artifact review is pending before commit and required candidate gates. No Pane, label/render, physical-window or whole SECTIONS credit. Constants changed: none; the pre-existing proposed 1,000 ms Snooze test deadline and 2,000 ms production Working grace are unchanged.

  3. added
    status:review
    and removed
    status:in-progress
    on Nov 7, 2026
  4. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Finite #338 timer-to-AppState model proof accepted after matched PR #339 merge 1e8b985a63f6be42ca36a659baa42196248a6a34, preserving reviewed tree 61dd35fd0b938e0c1fa12adc9704fa994c7ae045 and parent 122fc61aae2b3a5585c70ba1900fb7b3e39d4320.

    Independent exact-head source c85b334c… and candidate FINAL 647dce9d… approved the unchanged test and required native gates. After the owned three-package clean, the merged snapshot and proper main-checkout compiler-selected seven core/eleven native controls passed. Independent fresh merged FINAL 571c37f3ca5a4c9327f76756257008cd35f76b386ef31d51ee8ab912e8827d2b verified current main/core/native artifacts plus sources/ledger/Git and full test tails.

    This covers natural parked Snoozed expiry and terminal Working-grace exit, Shell milestones, exact model membership/count/order, unchanged owner/route and authoritative summaries, and full teardown. It does not cover Pane/labels/rendering, native-window wake, latency, general determinism or whole SB-SECTIONS. Sidebar remains 9/16. Existing EOF formatting and check:changed bootstrap exceptions remain NOT GREEN. No constants changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:bugstatus:review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions