Skip to content

ui-react: investigate full-origin discard refusal during mounted recovery #1266

Closed

Description

@schlessera

Current failing-operation evidence — 2026-10-14

The formerly missing concrete error and native owner boundary are now observed on current main 5cf1d548f7bd3a314eb36394dc5db0268db97da6: a bounded eight-pass native destructive-consent/generation selection on Bun 1.4.2 and Chromium 152 produces five initial-generation failures, 35 passes and 171 assertions. Every failed discard reports Recording in another Brain tab. A failing receipt records mounted primary unassigned recovery pending, its granted brain-ui:recording lock, discard's refused request before recovery releases, and the native exclusive owner matching this page's root/presence clientId. No second target page or deliberately held recovery is involved.

This supplies the missing actual failing-operation receipt and resolves needs: repro; the issue is ready for the scoped investigation/repair. Scratch callback instrumentation can affect scheduling. This identifies the current observed boundary, not the unknown original historical CI cause or a selected correction. The original failures and maintainer's nonblocking ruling remain preserved. Decide fixture synchronization versus product coordination from the recorded boundary, then preserve the original zero-byte quota, saved-audio/deletion and foreign-tab assertions and mutation proof. No implementation is part of this reproduction pass.

Maintainer-approved nonblocking follow-up — 2026-10-09

The maintainer explicitly chooses to retain this issue as a nonblocking repro follow-up and resume #1208 / PR #1254 after inspecting fresh current-main proof. This does not close this issue, identify the historical discard error/owner, or claim a recording product repair. #1284's delivered capture scope can complete against that verified current state; its dependants require their own fresh checks.

Claim 1266-recovery-trace-20261009-c71b established a previously missed environment distinction: the original failed unit job uses Google Chrome 154.0.8037.97, rather than the pinned browser image's Chromium153. The exact Google package was obtained from its official distribution; package SHA256 a4edbe95e9b01db6c9b97d7a1323121eda18362b5620df06abac1b59bee80053. No installed system browser was replaced.

On original source 3621fa3a2ff226540f23d8b78b9ecac7fdf7e1f6, unchanged assertions plus diagnostic instrumentation pass 40 pinned-image controls / 80 assertions (20 initial/reopened pairs,86.40s) and the complete exact-Chrome154 file: 72 tests / 823 assertions (171.60s). A host run of the actual historical balanced2/3 selection includes the available namespace tools and Git metadata. Its initial/reopened target cases pass with native trace: actual mounted account/unassigned recovery ends before discard, and each real discard acquires the recording lock. The complete original balanced shard finishes 4,284 tests passed, zero failures, 29,992 assertions across 248 files, 1,267.17s, exit 0. All selected native prerequisites were available; unlike the earlier container diagnostic, there are no missing-tool/Git-metadata/process-liveness failures. This passing original-source result does not identify or repair the historical failed discard. The initial premature pre-build diagnostic failed on missing generated CSS and supplies no behavior evidence; the built run is the separate recorded control.

Separately, automatic current-main GitHub CI run37931100008, attempt1, verifies exact fc3024b1198f5b983368d785f96e88e518c396da, tree f2e895e7814f61d4041ee351bf7a5c330bb91853, parent 2907722ea232f6ae7c652bf57bc55464052c13bd. All14jobs pass with global full selection. All ten proof-category artifacts identify that checkout; metadata/verify/pack/unit3/captures/aggregate checkout logs match it. Unit3 job113821916740 runs Chrome154.0.8037.97 and passes the entire unchanged association file: 72 tests / 823 assertions, including both full-origin cases (1096.56ms/1138.95ms). Original five capture recipes / thirteen exact files and ten native pairs / sixty comparisons pass in job113821916912; capture artifact11616446670 retains evidence. Aggregate job113828203015 passes every selected category. This is a new passing current-state receipt, not a repair or rewrite of any original failed attempt. No test, assertion, deadline, quota, saved-audio/deletion or foreign-lock boundary was removed or weakened; no paid inference or arbitrary CI rerun occurred.

Preserve the native recovery/lock diagnostic for resumption. A future failure must retain its actual error/message, native request/grant owner boundary and recovery timing before selecting a correction. Release only this invocation's assignment; keep needs: repro. The outcomes are recorded here, but the temporary local diagnostic logs/traces are no longer available after environment recovery; do not present those files as retained artifacts. Original hosted failed attempts and the fresh full-main run remain remote evidence. Future reproduction must persist its source, actual error, native lock-owner events and assertions. See the retention correction.

Bounded original-source investigation — 2026-10-09

Claim 1235-dependants-20261009-c71a reproduced neither reported full-origin discard refusal in the unchanged original source 3621fa3a2ff226540f23d8b78b9ecac7fdf7e1f6. Relevant product, fixture, fault and test bytes match current main through the earlier cleanup merge. No repair is selected.

Using Bun 1.4.2, the pinned Playwright 1.63.0 image, native Chrome 153.0.8010.12, two CPUs, real storage and denied external networking: the complete association/sign-out file passes 72 tests / 823 assertions in 203.48s. A failure-only diagnostic preserves the original assertions and records discard errors, actual recovery entry/settlement and native lock state if the original case fails; no trace is emitted because both generation cases pass.

The original workflow's actual --balanced-shard=2/3 selection was also executed to completion. Both target generation cases pass (871.88ms and 826.08ms). The whole diagnostic is 4,221 pass / 23 skips / 36 failures / one error, 26,444 assertions across 248 files, 603.18s, exit 1. This container lacked bwrap for unrelated native probes and access to the worktree's external Git metadata. Process-liveness tests also fail in this container without an init reaper; their original process state was not traced, so no zombie/root-cause claim is made. This is not a green full shard or original-environment equivalence. A preceding native --shard=2/3 selection was stopped after discovering the historical workflow uses balanced selection; that partial result is retained and is not ordering proof.

The older controlled mounted-recovery refusal remains a plausible mechanism, not identification of the original failed operation's holder. Completion still needs an actual failing original discard with its concrete error, recovery timing and native owner/operation boundary, then a causal correction and unchanged deletion/cross-tab assertions. The preserved original failures are not closed by isolated or ordered target passes.

Handoff: add needs: repro, remove readiness and release only this invocation's assignment. The temporary diagnostic patch/logs/checkout were intended for resumption; the later retention correction above supersedes that claim of local availability. No assertion, deadline, production permission or test discovery was changed.

Original occurrences and investigation requirements

Context

Observed after #1191 / PR #1261 merged. Automatic main-push Depot run ps_sc6fkrdqqp, workflow sz9qb8h1g6, test shard 2 job 8nsr32zfm1, attempt 3xk6m529f9, checked out 4b78652c60692b8b0820fa340a121d1da5f05b32. The initial admitted-generation full-origin discard test expected ok and received Error; the reopened generation passed. The shard ended with 3,962 passing tests and this single failure. All other twelve CI jobs passed. Exact failed attempt.

At that source, the failure is (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:715-721). The fixture arms a zero-byte IndexedDB write quota and calls the real discard (fullDiscard, packages/ui-react/tests/fixtures/association-signout-client.tsx:222). Recording mutation acquisition uses a nonwaiting native WebLock and throws Recording in another Brain tab when unavailable (acquire, packages/ui-react/src/lib/recordings.ts:192-199). Recovery holds the same lock (async recover, packages/ui-react/src/lib/recordings.ts:455); the mounted tray calls it during refresh (const refresh, packages/ui-react/src/components/voice/recordings-tray.tsx:51-61).

Fresh isolated original initial/reopened controls passed two tests / four assertions on Bun 1.4.2 and real Chrome 140.0.7339.127 with network isolation. A controlled mounted-tray test paused the actual recovery after its native recording:removed IndexedDB read, while it held brain-ui:recording. The same quota-constrained unassigned discard then returned Error with message Recording in another Brain tab, retained the saved audio, and succeeded after that recovery released. This control passed one test / seven assertions; diagnostic patch SHA-256 08cd74241311a6d5fd7dd1cd3fc90b917d626a3b6be581180d0f0cb04b658470.

That demonstrates a candidate mechanism, not the original ordered CI cause. Original CI retained only the error name, and local Chrome differs from the pinned CI image. No production or fixture correction has been selected. #1255 concerns a separate delayed-storage survivor-recovery timeout; preserve its distinct evidence.

Scope

Trace the actual mounted tray recovery, readiness and recording lock lifecycle around initial/reopened full-origin discard. Reproduce the original ordered-shard failure with the pinned browser environment, then distinguish fixture synchronization from a product coordination defect before choosing a repair.

Out of scope

Changing recording ownership, generation fences, saved-audio retention, quota semantics or cross-tab exclusion; removing the lock, extending deadlines, skipping Chromium, retrying assertions until green, or changing #1191's measurement collectors.

Acceptance criteria

  • Preserve the exact failing attempt and controlled mounted-caller mechanism; record ordered and isolated initial/reopened results with the actual error message and lock owner boundary.
  • Establish whether the failing discard races its own mounted recovery or another operation; do not infer the original cause from a green isolated run.
  • Any repair retains the zero-byte quota, real discard, nonempty saved audio and complete metadata/audio deletion assertions, and preserves refusal while a different tab actually owns the recording lock.
  • Mutate the chosen synchronization/coordination guard and observe the intended runtime assertion fail; restore it and verify isolated, ordered, automatic current-head and main-push checks.

Verification

Use Bun 1.4.2, the pinned Playwright CI image, real Chromium and the existing offline guards. Start with the two named generation cases and an instrumented mounted-tray recovery, then run the actual balanced shard. Preserve cleanup and the 30-second bound. A passing rerun is evidence of a passing run, not a cause or repair.

Contract impact

None established; diagnosis must precede any behavior change.

Additional exact-head occurrence — 2026-10-08

#844 exact-current-head automatic CI occurrence, without retry: head f889aaf626554e0d3fa74f83cdf704bd9b803a0a, combined checkout dbabf415f105b16dff7a1508e0788e9c7b64d5ac (parents current head and 8c9f6d0c366ab380bd4becb0a49efec30396b997). Run frbmqj9wgn, CI workflow jm0j4fmv37, unit shard2 job wmjjnwv2c7, attempt1 ngn3m9cnbc. Exact failed attempt.

The actual failure is a full origin permits explicit unassigned discard in its initial admitted generation at packages/ui-react/tests/association-signout-runtime.test.ts:718: expected ok, received Error, 874.60ms. The reopened-generation case passed (875.46ms). This is the already tracked #1266 assertion; the original error's message and lock owner are not recorded here, so its cause is not newly established. The shard finished4279pass/1fail/30000assertions across250files. Exact attempt log SHA-256 46c2e95434be01a8d57abbf769355bc11910bd672d3f91f42b02b7905ce3ead9 is preserved privately. All other13required gates passed on this current head, including feature/browser/native gates; fork rows are skipped and excluded.

The tag-alias preparation changes no association/discard source. No retry, source repair, claim of fixed failure or duplicate follow-up was made. Preserve this failure with #1266 and #844's incomplete draft outcome; it remains separate from the saved-transcription failure tracked in #1277.

Approval-capture exact-main recurrence — 2026-10-09

After PR #1312 / #1284, automatic main run ps_6xwkk1c7h8, workflow qgb91nqlk0, shard-2 attempt zfrndzdpqd checks out exact squash 3621fa3a2ff226540f23d8b78b9ecac7fdf7e1f6 (parent 16bc1bfe657a6bb9e45f5c55ab4c01afa89a20e6, tree 0d44fcae9bcdb3d28f4c6ae0b9a1905beaebba44). It fails a full origin permits explicit unassigned discard in its initial admitted generation in 866.80 ms: expected ok, received Error. The reopened generation passes in 883.10 ms. Both survivor modes pass; this is not browser-closed fallout from #1255. Exact attempt.

Current assertion is (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:761-767), rejection line 764. The unchanged fixture still records only the error name here; this occurrence does not identify the underlying error message or actual recording-lock owner. It matches the existing observed assertion, without establishing the candidate mechanism as this CI failure's cause. The capture-only branch changes no recording/discard product code, test or fixture.

All thirteen PR CI jobs and contract pass on the matching combined tree. On exact main, the corrected original thirteen-file capture comparator and ten native paint-history pairs pass on their first attempt; the broader run remains in progress at this snapshot. No all-green main claim, retry, deadline increase or repair of this separate defect is made. #1284's remaining full-main verification is handed off under this existing owner. Preserve the scoped ordered native investigation and original quota/audio/cross-tab assertions.

Running-attempt log snapshot SHA-256 e497ec4daf6401cd5eaf4397c65f5f57ea20ecebd33bdbc7545359adc86cd4f4, 297768 bytes, retains the initial failure and passing reopened control; it is not claimed as the eventual complete attempt log or final shard totals.

2026-10-09 triage at main ebaef14d2a670ead3653bc65754b89e8327c1e85: Native parent #578 owns this scoped recording recovery/discard investigation. Its full deliverable directly verifies the approved persistent-retention policy: explicit discard must delete retained metadata/audio while recovery and actual cross-tab ownership keep their existing boundaries. Preserve needs: repro, original failed occurrences and the released bounded diagnostic handoff; passing original-file/balanced-selection target controls do not establish the original error or native lock owner. Related capture verification #1284 and draft-retention #1208 remain separately owned. Membership does not establish a fixture versus product cause or complete the epic.

Bounded current-source control — 2026-10-14

Inspected main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd. All 4,083 tracked blobs in the isolated archive matched that source; no product, fixture, assertion or deadline was changed. Runtime: Bun 1.4.2 (744846f84), real headless system Chromium 152.0.7977.82, built package outputs, existing offline test preload and loopback fixture, fictional Odysseus data. This differs from the historical Google Chrome 154 and pinned Chromium 153 environments; concurrent host work also means timings are diagnostic observations only.

Commands (temporary scratch relocated outside authored source):

BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "a full origin permits explicit unassigned discard" --rerun-each 5
BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "cold transcript staging reports native lock refusal|cold reader mounting waits for native inventory recovery"

The initial/reopened pair passed five times each: 10 pass, zero fail, 20 assertions, 28.98 s. Each real zero-byte-quota discard returned ok; each post-discard inventory was empty. The existing native-owner and held-recovery diagnostic controls separately passed 2 tests / 10 assertions, 5.24 s. Those deliberately controlled cases verify occupied native-lock refusal/error transport and recovery-settlement waiting; they do not identify the historical discard's owner or cause.

Current source pointers: generation pair (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:795-801); zero-byte-quota discard (fullDiscard, packages/ui-react/tests/fixtures/association-signout-client.tsx:282); native recording lock (async function acquire, packages/ui-react/src/lib/recordings.ts:202-216); recovery lock acquisition (async recover, packages/ui-react/src/lib/recordings.ts:516-522); mounted tray recovery (const refresh, packages/ui-react/src/components/voice/recordings-tray.tsx:53-78). Historical source-specific pointers above retain their original provenance.

This is a bounded passing current-source control, not an ordered historical-environment reproduction, full-file/shard verification, or a repair. The missing evidence remains an actual failing full-origin discard with its concrete error/message, mounted recovery timing and native request/grant owner boundary. Preserve zero-byte quota, complete metadata/audio deletion and foreign-tab exclusion when collecting that evidence. Keep this open, unassigned, nonblocking, and needs: repro under the existing maintainer ruling. Parent #578 remains appropriate; closed related #1208/#1284 are not active blockers. No new design, policy or human-only prerequisite is established.

Literal logs were retained for this pass outside authored source: control SHA-256 0e59ae185107dae29cec8838b2c6b8507d569fe6e4bf86a537eeca9d22e8e2c3; native controls SHA-256 b58b86b7c64dceeeb807b538925273185767b261a117410b303acaa84cf63830. They are local evidence, not uploaded remote artifacts.

2026-10-14 triage: added bounded current-source control and current anchors; retained historical failure, nonblocking ruling and unresolved reproduction prerequisite.

Fresh ordered current-source recurrence — 2026-10-14

A new bounded attempt reproduced the reported assertion on unchanged current source 4af7b2f20a43d23260c2ee5e3bac3896aee971bd. This differs from the earlier October 14 filtered pair repeated five times: this invocation ran the complete association/sign-out file in its native discovery order, with the entire Bun/browser process tree restricted to one CPU using taskset. It is also a different source/browser/scheduling combination from the October 9 original-source controls.

All 4,083 tracked archive blobs were verified against that SHA (4,079 regular files and four symlinks), then package outputs were built. Runtime: Bun 1.4.2 (744846f84), real headless Chromium 152.0.7977.82, native IndexedDB and WebLocks, existing offline test preload/browser origin guards, fictional Odysseus data. Other host browser work overlapped; affinity restricts this invocation but does not provide exclusive CPU ownership or historical CI environment equivalence.

BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 timeout 420 taskset -c 0 bun run test packages/ui-react/tests/association-signout-runtime.test.ts

The test wrapper waited for the package build lease, then the complete file finished naturally in 272.91 s, exit 1: 72 pass / 1 fail / 830 assertions / 73 tests. The initial generation failed at the unchanged assertion (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:795-801): expected ok, received Error, 1759.35 ms. The reopened generation passed (1904.72 ms), including empty metadata/audio inventory after the real zero-byte-quota discard. No assertion, quota, saved-audio/deletion requirement, test deadline or production source was changed.

The unchanged fixture reports only the error name, so this recurrence by itself still does not identify the concrete message or native owner. It confirms a present failure in the full-file conditions; it does not establish that CPU affinity or preceding tests caused it.

A single instrumented full-file follow-up used the same source/affinity and unchanged assertions, adding only scratch fixture/test diagnostics for native lock request/grant/release stacks and timestamps, mounted recovery entry/settlement, and actual discard error/message. It finished 44 pass / 29 fail / 726 assertions, 208.59 s, exit 1. Its first failure was native browser/context closure during the queued-unassigned-playback case; later cases, including both target cases, could not create contexts. Those context-closed failures are not discard-refusal reproductions, and no cause of that closure was established. This run did not reach the target operation and provides no failing-discard owner trace.

A cheap isolated instrumented control then ran:

BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 timeout 60 taskset -c 0 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "a full origin permits explicit unassigned discard"

Both target cases pass: 2 pass / zero fail / 4 assertions, 7.47 s. Native events show account recovery and unassigned recovery completing before each discard. Initial: unassigned recovery ends at 512.6 ms; discard starts 521.6 ms, native recording grant succeeds at 523.0 ms, discard returns ok at 527.2 ms. Reopened: corresponding events occur at 414.8 / 453.5 / 455.1 / 464.0 ms. These page-relative times show the boundary in these passing controls only. Instrumentation can perturb scheduling; no causal inference is made from their difference from the unchanged full-file failure.

Instrumented full-file log SHA-256: 9dc3ac6297dae47b76149e3a843e7acada750d3c30f4dbe040039127e4479482; isolated trace log: ad76a85ec78358c85d2df884ffa8e13ffce7dfb200906d894a6459c3888c66ad. Diagnostic test SHA-256: 025d3be992af2000843a4c360f902d7234c5ac525c877d0fd1bf96b051b41d84; diagnostic fixture: b28b68dfbbc562a679b184b792d727e75c8d405ce2357f3ed36aff6d4e57562a.

Local literal unchanged-run log SHA-256: 7007a303f4f7abf7ec4ddcc1cf94e4de8f266b95001aace88f6751fb38d49ed1. Diagnostic source and logs are retained outside authored source; these are local artifacts, not uploaded remote evidence. Historical failures, exact-Chrome154/pinned-image controls and the maintainer's nonblocking ruling remain unchanged.

Keep needs: repro and no agent-ready: the failure itself now has fresh current-source reproduction, but the brief's explicitly required failing-operation concrete error/message and native owner/recovery boundary remain missing. The next bounded attempt should preserve this complete-file order/one-CPU condition with diagnostics that survive through the actual failing discard; retain zero-byte quota, complete deletion and foreign-tab exclusion. This is a specific missing failing-execution receipt, rather than a demand to settle product-versus-fixture cause before investigation can start. Keep the issue open, unassigned and nonblocking under the existing ruling; parent #578 remains appropriate. No new decision/design/human prerequisite is established.

2026-10-14 earlier triage: added fresh unchanged-source full-file failure and distinguished diagnostic browser closure/passing traces; its then-missing error/owner receipt is supplied by the current failing-operation evidence above.

2026-10-14 reproduction update: observed an actual failing discard overlapping its own mounted unassigned recovery; supplied concrete error/native owner receipt and resolved reproduction readiness without selecting or implementing a correction.

Activity

  1. added
    type: test
    area: ui-react
    priority: p2
    agent-ready
    on Oct 8, 2026
  2. schlessera commented on Oct 8, 2026

    @schlessera
    OwnerAuthor

    #844 exact-current-head automatic CI occurrence, without retry: head f889aaf626554e0d3fa74f83cdf704bd9b803a0a, combined checkout dbabf415f105b16dff7a1508e0788e9c7b64d5ac (parents current head and 8c9f6d0c366ab380bd4becb0a49efec30396b997). Run frbmqj9wgn, CI workflow jm0j4fmv37, unit shard2 job wmjjnwv2c7, attempt1 ngn3m9cnbc. Exact failed attempt.

    The actual failure is a full origin permits explicit unassigned discard in its initial admitted generation at packages/ui-react/tests/association-signout-runtime.test.ts:718: expected ok, received Error, 874.60ms. The reopened-generation case passed (875.46ms). This is the already tracked #1266 assertion; the original error's message and lock owner are not recorded here, so its cause is not newly established. The shard finished4279pass/1fail/30000assertions across250files. Exact attempt log SHA-256 46c2e95434be01a8d57abbf769355bc11910bd672d3f91f42b02b7905ce3ead9 is preserved privately. All other13required gates passed on this current head, including feature/browser/native gates; fork rows are skipped and excluded.

    The tag-alias preparation changes no association/discard source. No retry, source repair, claim of fixed failure or duplicate follow-up was made. Preserve this failure with #1266 and #844's incomplete draft outcome; it remains separate from the saved-transcription failure tracked in #1277.

  3. schlessera commented on Oct 8, 2026

    @schlessera
    OwnerAuthor

    Approval-capture exact-main recurrence — 2026-10-09

    After PR #1312 / #1284, automatic main run ps_6xwkk1c7h8, workflow qgb91nqlk0, shard-2 attempt zfrndzdpqd checks out exact squash 3621fa3a2ff226540f23d8b78b9ecac7fdf7e1f6 (parent 16bc1bfe657a6bb9e45f5c55ab4c01afa89a20e6, tree 0d44fcae9bcdb3d28f4c6ae0b9a1905beaebba44). It fails a full origin permits explicit unassigned discard in its initial admitted generation in 866.80 ms: expected ok, received Error. The reopened generation passes in 883.10 ms. Both survivor modes pass; this is not browser-closed fallout from #1255. Exact attempt.

    Current assertion is (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:761-767), rejection line 764. The unchanged fixture still records only the error name here; this occurrence does not identify the underlying error message or actual recording-lock owner. It matches the existing observed assertion, without establishing the candidate mechanism as this CI failure's cause. The capture-only branch changes no recording/discard product code, test or fixture.

    All thirteen PR CI jobs and contract pass on the matching combined tree. On exact main, the corrected original thirteen-file capture comparator and ten native paint-history pairs pass on their first attempt; the broader run remains in progress at this snapshot. No all-green main claim, retry, deadline increase or repair of this separate defect is made. #1284's remaining full-main verification is handed off under this existing owner. Preserve the scoped ordered native investigation and original quota/audio/cross-tab assertions.

    Running-attempt log snapshot SHA-256 e497ec4daf6401cd5eaf4397c65f5f57ea20ecebd33bdbc7545359adc86cd4f4, 297768 bytes, retains the initial failure and passing reopened control; it is not claimed as the eventual complete attempt log or final shard totals.

  4. self-assigned this
    on Oct 9, 2026
  5. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Claim 1235-dependants-20261009-c71a investigates #1266 as the actual remaining #1284 → #1208 merge prerequisite, using an isolated original-source diagnostic branch diagnose/1266-original-discard-c71a. Preserve the exact main failure and existing controlled mounted-recovery mechanism. Trace the actual error and recording-lock owner on pinned Chromium, without changing zero-byte quota, deletion/audio assertions, ownership, offline guards or deadlines. No correction or resolution is selected until the responsible boundary is observed.

  6. added
    needs: repro
    and removed
    agent-ready
    on Oct 9, 2026
  7. removed their assignment
    on Oct 9, 2026
  8. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Bounded handoff for claim 1235-dependants-20261009-c71a: both original discard-generation cases pass in the complete pinned native file and actual historical balanced shard selection. The file passes 72 cases / 823 assertions; the diagnostic shard has unrelated missing-tool/Git-metadata/process-liveness failures and is not green full proof. The original discard error and native owner remain unobserved, so no correction or original-cause claim is selected. Updated the body with exact source, conditions, outcomes and required failing-execution evidence; preserved diagnostics and released only this claim. needs: repro remains the next action.

  9. self-assigned this
    on Oct 9, 2026
  10. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Claim 1266-recovery-trace-20261009-c71b resumes the explicitly requested investigation on isolated branch diagnose/1266-recovery-trace-c71b. Preserve original failures and previous passing controls; trace the actual discard error and native recovery/lock boundary under the pinned offline browser, then select a correction only from causal evidence. Existing quota, complete deletion, cross-tab refusal, assertions and deadlines remain required.

  11. 3 remaining items

  12. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Evidence retention correction: environment recovery removed the temporary local diagnostic logs and traces from the bounded investigation. The recorded outcomes remain in this issue, but those literal local files are no longer available and must not be presented as retained artifacts. The original hosted failed attempts and the fresh full-main run remain remote evidence. No cause or product correction was established; this stays open as the maintainer-accepted nonblocking repro follow-up. Future reproduction should export its source identity, errors, actual lock-owner events and assertions to persistent artifacts.

  13. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Fresh automatic integrated control after #1208 merged: main-push CI run 37952228205, attempt 1, passes all 14 selected jobs on squash f91c9e310e39750ecfcd648f7e43d0fb4e94d475 (parent 0c69e0cb2864560ebfb734d2e5bf92853fe31bd1, tree 96a406fbe5843518e1f428101a99ef598558fd10). Unit job 113893898917 uses Google Chrome 154.0.8037.97 and passes both unchanged full-origin discard cases: initial generation 1076.95 ms, reopened generation 1067.43 ms. The full selected unit shard passes 1,101 cases with zero failures; capture job 113893898809 also passes the complete original image proof. All selected logs and ten proof artifacts agree on the exact squash.

    No diagnostic phase/owner trace was added to this control, so it identifies neither the historical cause nor a correction. The original failure remains retained remotely. Keep this issue open, unassigned and nonblocking under the maintainer's ruling; its responsible-boundary reproduction criteria remain unchanged.

  14. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    Bounded current-source control — 2026-10-14

    Inspected main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd. All 4,083 tracked blobs in the isolated archive matched that source; no product, fixture, assertion or deadline was changed. Runtime: Bun 1.4.2 (744846f84), real headless system Chromium 152.0.7977.82, built package outputs, existing offline test preload and loopback fixture, fictional Odysseus data. This differs from the historical Google Chrome 154 and pinned Chromium 153 environments; concurrent host work also means timings are diagnostic observations only.

    Commands (temporary scratch relocated outside authored source):

    BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "a full origin permits explicit unassigned discard" --rerun-each 5
    BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "cold transcript staging reports native lock refusal|cold reader mounting waits for native inventory recovery"

    The initial/reopened pair passed five times each: 10 pass, zero fail, 20 assertions, 28.98 s. Each real zero-byte-quota discard returned ok; each post-discard inventory was empty. The existing native-owner and held-recovery diagnostic controls separately passed 2 tests / 10 assertions, 5.24 s. Those deliberately controlled cases verify occupied native-lock refusal/error transport and recovery-settlement waiting; they do not identify the historical discard's owner or cause.

    Current source pointers: generation pair (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:795-801); zero-byte-quota discard (fullDiscard, packages/ui-react/tests/fixtures/association-signout-client.tsx:282); native recording lock (async function acquire, packages/ui-react/src/lib/recordings.ts:202-216); recovery lock acquisition (async recover, packages/ui-react/src/lib/recordings.ts:516-522); mounted tray recovery (const refresh, packages/ui-react/src/components/voice/recordings-tray.tsx:53-78). Historical source-specific pointers above retain their original provenance.

    This is a bounded passing current-source control, not an ordered historical-environment reproduction, full-file/shard verification, or a repair. The missing evidence remains an actual failing full-origin discard with its concrete error/message, mounted recovery timing and native request/grant owner boundary. Preserve zero-byte quota, complete metadata/audio deletion and foreign-tab exclusion when collecting that evidence. Keep this open, unassigned, nonblocking, and needs: repro under the existing maintainer ruling. Parent #578 remains appropriate; closed related #1208/#1284 are not active blockers. No new design, policy or human-only prerequisite is established.

    Literal logs were retained for this pass outside authored source: control SHA-256 0e59ae185107dae29cec8838b2c6b8507d569fe6e4bf86a537eeca9d22e8e2c3; native controls SHA-256 b58b86b7c64dceeeb807b538925273185767b261a117410b303acaa84cf63830. They are local evidence, not uploaded remote artifacts.

  15. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    Fresh ordered current-source recurrence — 2026-10-14

    A new bounded attempt reproduced the reported assertion on unchanged current source 4af7b2f20a43d23260c2ee5e3bac3896aee971bd. This differs from the earlier October 14 filtered pair repeated five times: this invocation ran the complete association/sign-out file in its native discovery order, with the entire Bun/browser process tree restricted to one CPU using taskset. It is also a different source/browser/scheduling combination from the October 9 original-source controls.

    All 4,083 tracked archive blobs were verified against that SHA (4,079 regular files and four symlinks), then package outputs were built. Runtime: Bun 1.4.2 (744846f84), real headless Chromium 152.0.7977.82, native IndexedDB and WebLocks, existing offline test preload/browser origin guards, fictional Odysseus data. Other host browser work overlapped; affinity restricts this invocation but does not provide exclusive CPU ownership or historical CI environment equivalence.

    BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 timeout 420 taskset -c 0 bun run test packages/ui-react/tests/association-signout-runtime.test.ts

    The test wrapper waited for the package build lease, then the complete file finished naturally in 272.91 s, exit 1: 72 pass / 1 fail / 830 assertions / 73 tests. The initial generation failed at the unchanged assertion (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:795-801): expected ok, received Error, 1759.35 ms. The reopened generation passed (1904.72 ms), including empty metadata/audio inventory after the real zero-byte-quota discard. No assertion, quota, saved-audio/deletion requirement, test deadline or production source was changed.

    The unchanged fixture reports only the error name, so this recurrence by itself still does not identify the concrete message or native owner. It confirms a present failure in the full-file conditions; it does not establish that CPU affinity or preceding tests caused it.

    A single instrumented full-file follow-up used the same source/affinity and unchanged assertions, adding only scratch fixture/test diagnostics for native lock request/grant/release stacks and timestamps, mounted recovery entry/settlement, and actual discard error/message. It finished 44 pass / 29 fail / 726 assertions, 208.59 s, exit 1. Its first failure was native browser/context closure during the queued-unassigned-playback case; later cases, including both target cases, could not create contexts. Those context-closed failures are not discard-refusal reproductions, and no cause of that closure was established. This run did not reach the target operation and provides no failing-discard owner trace.

    A cheap isolated instrumented control then ran:

    BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 timeout 60 taskset -c 0 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "a full origin permits explicit unassigned discard"

    Both target cases pass: 2 pass / zero fail / 4 assertions, 7.47 s. Native events show account recovery and unassigned recovery completing before each discard. Initial: unassigned recovery ends at 512.6 ms; discard starts 521.6 ms, native recording grant succeeds at 523.0 ms, discard returns ok at 527.2 ms. Reopened: corresponding events occur at 414.8 / 453.5 / 455.1 / 464.0 ms. These page-relative times show the boundary in these passing controls only. Instrumentation can perturb scheduling; no causal inference is made from their difference from the unchanged full-file failure.

    Instrumented full-file log SHA-256: 9dc3ac6297dae47b76149e3a843e7acada750d3c30f4dbe040039127e4479482; isolated trace log: ad76a85ec78358c85d2df884ffa8e13ffce7dfb200906d894a6459c3888c66ad. Diagnostic test SHA-256: 025d3be992af2000843a4c360f902d7234c5ac525c877d0fd1bf96b051b41d84; diagnostic fixture: b28b68dfbbc562a679b184b792d727e75c8d405ce2357f3ed36aff6d4e57562a.

    Local literal unchanged-run log SHA-256: 7007a303f4f7abf7ec4ddcc1cf94e4de8f266b95001aace88f6751fb38d49ed1. Diagnostic source and logs are retained outside authored source; these are local artifacts, not uploaded remote evidence. Historical failures, exact-Chrome154/pinned-image controls and the maintainer's nonblocking ruling remain unchanged.

    Keep needs: repro and no agent-ready: the failure itself now has fresh current-source reproduction, but the brief's explicitly required failing-operation concrete error/message and native owner/recovery boundary remain missing. The next bounded attempt should preserve this complete-file order/one-CPU condition with diagnostics that survive through the actual failing discard; retain zero-byte quota, complete deletion and foreign-tab exclusion. This is a specific missing failing-execution receipt, rather than a demand to settle product-versus-fixture cause before investigation can start. Keep the issue open, unassigned and nonblocking under the existing ruling; parent #578 remains appropriate. No new decision/design/human prerequisite is established.

  16. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    Failing-operation owner receipt — 2026-10-14

    Current main 5cf1d548f7bd3a314eb36394dc5db0268db97da6, Bun 1.4.2, real headless system Chromium 152.0.7977.82. Isolated worktree, built package outputs, existing offline preload/browser routes and Odysseus fixtures. No product source, quota, assertion or deadline was changed.

    This bounded probe differs from the previous isolated pair and complete-file attempts: it selects the three native destructive-consent cases immediately preceding the generation pair, repeats the selected file eight times under CPU0 affinity, and collects lightweight in-memory native WebLock events. Scratch diagnostics retain request stacks, grant/refusal/release times, actual discard error and a post-error native lock query. No recovery was deliberately held or delayed. Wrapping callbacks can perturb scheduling; this is current-source evidence, not exact historical CI equivalence.

    TMPDIR=/dev/shm BRAIN_REQUIRE_CHROME=1 BRAIN_AUTH_FIXTURE_BUILT=1 timeout 240 taskset -c 0 bun run test packages/ui-react/tests/association-signout-runtime.test.ts --test-name-pattern "pending destructive consent|a full origin permits explicit unassigned discard" --rerun-each 8

    Completed naturally: 35 pass / 5 fail / 171 assertions / 40 tests, 113.38s, exit 1. All five failures are initial-generation discard: expected ok, received Error, concrete message Recording in another Brain tab. All eight reopened cases and all 24 consent cases pass; the three passing initial cases and eight reopened cases assert empty metadata/audio inventory after the real zero-byte-quota discard.

    The fourth failing receipt captures the responsible boundary directly (page-relative milliseconds): mounted RecordingsTray.refresh → primary.recordings.recover requests brain-ui:recording at 352.3 and receives it at 376.9; discard requests that same native lock at 383.5 and receives a null/refused grant at 383.8; the recovery callback releases at 384.8. At the error snapshot, primary unassigned recovery is still pending, and native navigator.locks.query() records the exclusive recording lock under the same clientId as this page's root/presence locks. No second page exists in this target context. This observes own mounted recovery overlapping discard in an actual failing operation, rather than inferring an owner from an isolated pass. In other failing receipts recovery releases before the later query; a post-error empty lock query alone would miss the overlap.

    Unmodified source anchors: generation assertion (for (const generation, packages/ui-react/tests/association-signout-runtime.test.ts:795-801); quota-constrained real discard (fullDiscard, packages/ui-react/tests/fixtures/association-signout-client.tsx:282); native refusal (async function acquire, packages/ui-react/src/lib/recordings.ts:202-216); recovery acquisition (async recover, packages/ui-react/src/lib/recordings.ts:516-522). Scratch instrumentation moves test lines; these pointers refer to inspected main.

    The missing failing-error/owner receipt is now supplied. Remove needs: repro and add agent-ready for the scoped investigation/repair; no repair or historical original-CI cause is claimed. Preserve the maintainer's open, unassigned, nonblocking ruling and parent #578. No decision/design/use-case/human prerequisite is introduced. Implementation must still distinguish fixture synchronization from product coordination and retain zero-byte quota, saved audio, complete deletion, foreign-tab exclusion and meaningful mutation proof.

    Local persistent artifacts retain source SHA, diagnostic patch, build log and literal probe log outside authored source; no remote artifact upload is claimed. Probe log SHA-256: 317a5f39ea6a6d8b0c0317822005ad1289204bf3376d0620751060eef95928ee. Diagnostic patch SHA-256: 9654db616e624b4586f728ed6d3956c664b655963b30b0cde3a893e1edd6c9f4.

  17. added
    agent-ready
    and removed
    needs: repro
    on Oct 14, 2026
  18. self-assigned this
    on Nov 2, 2026
  19. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claimed (token 1266-epic578-20261102-5980). Branch fix/1266-full-origin-discard-refusal from epic/578-offline-transitions (a62db8f27); PR will target that epic integration branch. Collision check on the cited files: closure-only overlaps (no open PR edits recordings.ts, recordings-tray.tsx or the fixture; several touch only the runtime test's closure).

  20. added this to the 0.45.0 milestone on Nov 2, 2026
  21. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Fixture-synchronization repair — PR #3327 (targets epic/578-offline-transitions)

    Decision: fixture synchronization, not product coordination. The refusing holder is this page's own mounted tray recovery: the 2026-10-14 receipt and the mutation below both show the same clientId and a pending primary unassigned recovery. The refused discard is the test's direct store call. The product tray only publishes refresh(true) rows after recovery settles. #1336 already made the matching repair for the other fixture mutations. fullDiscard now waits for the account effects and the pending inventory recovery before it arms the zero-byte quota. When a discard is refused, the fixture now returns the error message, the recovery events and the native lock query.

    Environment: pinned image mcr.microsoft.com/playwright@sha256:eff16c30…a4a27 (Chrome for Testing 153.0.8010.12), Bun 1.4.2, --network none, taskset affinity. Source: base a62db8f27, head 0f6259962.

    • Ordered failing first, unchanged base. The recorded consent + generation probe, ×8, one CPU: 35 pass / 5 fail / 171 assertions. All five are the initial-generation discard, expected ok, received Error.
    • Same probe with the fix: 40 pass / 0 fail / 176 assertions.
    • Complete file in native order, one CPU: 67 pass / 0 fail / 549 assertions, 221.78 s.
    • Isolated: the generation pair plus the new case: 3 / 0 / 12.
    • Mutation: removing the barrier fails the new deterministic case at its intended assertion with Error: Recording in another Brain tab. Its diagnostic shows brain-ui:recording held exclusively under the page's own clientId, next to its work-tab/presence locks, with primary/unassigned recovery pending. Restored.
    • The new case also proves that another tab's held lock still refuses discard and retains the metadata and the one saved audio chunk. After release, the same discard succeeds and deletes everything.

    The zero-byte quota, the real discard, the saved audio, the complete deletion assertions and the original generation pair are all unchanged. No product source, quota, deadline or test discovery changed.

    The PR uses Refs. This issue closes when the epic batch lands on main and main-push verification passes. The related product observation (same-page contention worded as "another Brain tab") is filed as a note in #3326.

  22. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Delivered to the epic integration branch epic/578-offline-transitions as d073818c3 via #3327, after ready-candidate proof passed against the exact epic base. This issue closes when the epic batch lands on main.

  23. removed their assignment
    on Nov 2, 2026
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

    agent-readyarea: ui-reactpriority: p2type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions