Skip to content

fix(native): compose newer family approval into mounted parent rows #342

Closed

Description

@rynfar

Problem to prove

An accepted newer family read can arrive before its shell deltas. The sidebar must include that read's live app-owned subagent approval when presenting its listed parent, without listing the child or changing an explicitly Settled parent to Active merely because it needs approval.

Finite test-first scope

Use one new focused AppState-only case in omitted_rows.rs. Merged #340 is accepted at c3c9d75 (fresh FINAL 4b0f34b0); source inputs were refreshed by f072. This issue authorizes only a separately allocated external test-source proposal first. Independent exact-source review and root runtime admission remain required.

  • Install the target through the real AppState-owned fixture actor and await exact-owner Connected/synchronized/READ/family-capability Shell publication. Bootstrap is not the target's wire history.
  • Use a coherent Q snapshot with 25 newer listed explicitly Settled parents, one older listed parent P below the real cut and an initially idle omitted leaf child C. The cut counts P once. Actual shelf toggle opens 10; actual ShowMore grows to 35 before expecting the page request.
  • Receive the actual page GET with exact cursor/limit/project scope. Reply Q with P as the sole thread and required counts: [] for the normal nonzero-limit page. Await its real application Shell/PAGES mount while authoritative summary remains Q and lacks P/C.
  • Withhold legitimate parent Q+1 and live-child S=Q+2 actor deltas. Reply to actual getThreadFamily(P) with coherent P+C at S. C has source web, app-owned non-provider-native subagent lineage, valid command approval id/createdAt and coherent latest/active run fields; use complete contract-required wire fields, not Rust-only minimal samples.
  • Before reply, subscribe to real post-mount Shell: exact owner and READ, unchanged authoritative summary Arc/sequence Q, family generation and PAGES mounts, unique C with approval/running/lineage. Do not wait for the expected parent approval, child listing, newer parent title or future actor sequence.
  • Only after that positive milestone, assert P has pending Approval and Approval status while remaining explicitly Settled; C stays nonlisted/absent from model. Classify any earlier setup/compiler/schema/predicate failure separately from this predicted finite None-versus-Approval RED.

Later controls, only after an observed intended RED and source-reviewed fix

Deliver actual P Q+1 then C S, with active location; await authoritative P/C and parent approval, asserting shell wins page/family duplicates. Then genuine C removal S+1 with location active must clear parent approval and exclude stale mounted-family C. Preserve page-first duplicate precedence, supplied delegated/canonical flags and existing delegated arrival/removal regressions. No OR-retention, parallel registry, new epoch or new source of truth.

Fresh-id owner/READ predispatch refusal may be checked synchronously only after actual actor publication and with finite command capture. Late in-flight family refusal has a silent detached callback and no join; it is explicitly out of observed completion scope. Sender success, actor acknowledgement, parking or another callback cannot be substituted as its completion.

Boundaries

No Pane/Composer/Input/Root/window/focus, real provider/server/auth/store writes, production constants, sleeps/polls/retries/timeouts, absent-RPC waits or new test-support hooks. No whole SECTIONS/ROW/sidebar credit. A test proposal, independent exact-source review, root-owned compiler/list/PRESENT and intended first actual RED are separate steps. Production layer is not chosen in this draft.

Source basis: corrected recipe711c, independent sanity84d874, exact merged340 refreshf072. Whole-sidebar parent #242. Constants changed: none.

Activity

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

    @rynfar
    OwnerAuthor

    #342's test-only proposal is now frozen. It adds one AppState-only case and preserves all existing production and tests. Independent exact-source review is pending; no test bytes have been applied or executed.

    The positive witness waits for the actual newer-family child mount and Shell publication with the same authoritative summary, then checks parent approval directly. The later shell catch-up and child-removal controls are included after that assertion; the first expected failure would mask those tails and final explicit teardown. Wire setup includes a real 25-row settled cut, normal page counts: [], coherent running child, and removal location: active.

    An isolated clean worktree has been prepared. Existing main/core/native and client executables were independently measured before any future overwrite. No production proposal is authorized until an intended actual failure is independently classified. Sidebar remains 9/16; constants changed: none.

  3. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The first actual #342 test compiled correctly, listed 128 tests and matched exactly one selector. It failed before the intended parent-approval assertion: omitted_rows.rs:1112:9 received assets.createUrl instead of orchestration.getThreadFamily (exit 101, one failed, 127 filtered).

    This is an earlier fixture RPC mismatch, not the intended RED. The family reply/mount, parent assertion, catch-up/removal controls and explicit normal teardown were not reached. Compiler/list/actual records and logs are frozen read-only. Independent classification and current-executable custody are pending before any fixture correction or rerun. No family production change is authorized.

    The proposed test remains the only worktree change. Whole sidebar stays 9/16. Constants changed: none.

  4. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The corrected #342 fixture now reaches the intended finite assertion. The proper owning native compiler succeeded, its emitted binary listed 128 tests with one exact selector, and the first corrected actual failed once (exit 101, one failed, 127 filtered) at omitted_rows.rs:1120: accepted newer family child approval must reach its listed parent before shell catch-up, with None versus Some(Approval).

    The actual page/family method and payload checks and the positive newer-child mount Shell milestone precede that assertion. Following parent status/settlement/title/child checks, shell catch-up/removal controls and explicit normal teardown remain masked. Independent failure classification and current-executable custody are pending before any family production proposal.

    The earlier assets.createUrl mismatch is preserved as a setup failure, not intended RED. Its correction adds only a valid explicit project icon to the new fixture project; all assertions and production bytes are unchanged. All six new records/logs are frozen. Sidebar remains 9/16; constants changed: none.

  5. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Independent classification is complete: the corrected first actual reaches the intended finite failure at omitted_rows.rs:1120 (None versus Some(Approval)). The page/family request assertions and positive current-owner/read-authorized mounted-child milestone passed before it. All following status/settlement/title/catch-up/removal and explicit normal teardown checks remain masked.

    The independent review also directly preserved all four current executables, source maps, Git identity and ledger. Frozen review: 2422ba1e; manifest: 4a84bb37. The earlier favicon RPC setup failure remains separate and not green.

    A minimal production source proposal is now allocated. It must preserve shell priority, generation/cut/tombstone filtering, and existing delegated flags. Independent source review is required before application or execution. No production bytes have changed yet. Sidebar remains 9/16. Constants changed: none.

  6. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Independent production review found a blocking ordering gap before application: an approving child can reach the authoritative shell while its parent remains mounted. The proposed supplemental rollup then loses the child request, because authoritative summaries retain flags only for rows present in the shell. The frozen regression currently sends the parent before the child and does not cover that interval.

    Root source inspection confirms the data gap. No proposed production bytes were applied, and no compiler or rerun started. The patch is held for a corrected boundary and tests-first coverage of this order. Original intended RED, the earlier setup failure and all evidence remain preserved. Sidebar stays 9/16; constants changed: none.

  7. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Independent source review blocked the first C-first test extension (9bd02745): normal actor batching could publish sequence 105 while the test awaited exactly 104. That test was never applied.

    The external correction sends the material parent update, awaits its existing actual Shell milestone, then sends the quiet duplicate child update. It changes no predicate or assertion. Exact corrected test 85566815 passed independent source review (c00abb7d, manifest 6dfc4d53). It remains unapplied and unexecuted. The original first RED still masks the new controls.

    The corrected production proposal is frozen (731abe8e, nine existing files: six production and three focused existing test files) and is now in independent source review. It retains current request contributions, shares one ancestry walker, and gives lookup and displayed rows the same derived pending state. The old blocked two-file proposal remains unapplied. No fixed GREEN, merge, whole-row credit or production constant change is claimed.

  8. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The nine-file corrected source proposal (731abe8e) is independently BLOCKED (44dd164b, manifest c0fc0ff6) and remains unapplied.

    The reviewer found one lifecycle defect: after a newer canonical summary is installed, an old sparse presentation row can still win lookup before rebuild replaces it. Route reveal can then use an old project and wrongly clear or retain project scope. The later correct display does not undo that side effect.

    A source-only correction is allocated at the rebuild/lookup boundary. It must keep canonical facts current before all consumers and reuse the same derived presentation without another cache or per-call workaround. A different reviewer will check the revision. The approved batch-safe test (85566815) also remains unapplied while the source baseline is held stable.

    No fixed GREEN, merge, whole-row credit, or constant change is claimed.

  9. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The expanded test compiled and ran without the production fix. It failed at the same intended finite assertion (omitted_rows.rs:1120): parent attention is None, expected Approval. Result: one failure, 127 filtered; no earlier setup or input failure. The added C-first/clear/restore and later controls remain masked.

    The corrected eleven-file proposal passed independent source review. It is still unapplied pending independent classification of this actual test and current executable custody. No fixed GREEN or whole-row credit is claimed. Sidebar remains 9/16; no production constants changed.

  10. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The reviewed correction now passes the expanded family test, including authoritative child-first approval, clear, restore, parent catch-up and removal. The existing route lifecycle test also passes its current-project/title/created-at and page-unmount retirement controls. Ten existing headless native controls pass as well. Theme, intake (42), conformance and diff checks pass.

    Independent actual/current-executable verification is in progress. Core/client gates, strict Clippy, both app builds, exact-head review and fresh merged proof are still required. This is finite progress, not whole-row acceptance. Sidebar remains 9/16; no production constants changed.

  11. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Candidate PR #344 is open at 110318ad6a9e234fd8500efe351333f2cc7eefd1 (tree be05bfca28e497587d4e2efcc08dc0461ea482aa, parent c3c9d7523e75180add4fe0d59920fd6d33d15736).

    The twelve selected native controls were independently accepted. The three changed core controls and feature-gated client control now pass in their own test targets. The full required suite passes 1,356 tests; strict workspace/all-target Clippy, normal and snapshot builds, theme, intake (42), conformance and diff checks pass.

    check:changed was attempted and fails before checks at the unrelated desktop task-graph UserTaskDefinition bootstrap. It is not reported green.

    Independent exact-head whole-source, gate-evidence and current-executable review is underway. No merge or whole-row acceptance yet. The ledger records only this finite slice and keeps SB-SECTIONS partial, sidebar 9/16. No production constants changed. Strict NOINPUT remains in force; no rendered or global-task-join credit.

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

    @rynfar
    OwnerAuthor

    Finite #342 accepted after matched PR344 merge4464 and independent fresh FINAL106de01391b: fresh owning core3+client1+native12 pass, source/current custody verified. Whole SB-SECTIONS remains partial/sidebar9/16; no rendered/global-join credit. check:changed unrelated bootstrap failure remains NOTGREEN/no human waiver. Constants unchanged.

  14. removed
    status:review
    on Nov 13, 2026
  15. rynfar commented on Nov 13, 2026

    @rynfar
    OwnerAuthor

    Follow-up collapsed sidebar model observation tests merged via #346 (0509c4eeb9251c1d12b50f0fec452116457ac8c3).

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:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions