Repository navigation
Description
Context
At signed #1294 head 3df2ecc36bd909fa4bea534534b7b7fa7efe4ef0, the complete combined Bun 1.4.2 suite ended 11,241 pass, 28 skip, 4 fail, 68,016 assertions across 728 files in 1,907.95 seconds. The external frozen local-proof adapter ran from 2026-10-08T21:22:57.199Z to 2026-10-08T21:54:52.006Z and failed during the complete suite. Its selected base was 04ae590fca10093a1adb46259759892afadd788f. This is a local combined-suite receipt, not an automatic PR CI run or literal bun run check:pr proof.
brain bounds cleanup with a hung killer failed while reading its helper PID file at packages/ui-server/tests/boot-probe-deadline.test.ts:86. The file was absent (ENOENT). The test had already passed its elapsed-deadline and warning checks; it did not reach the helper-liveness assertion. Adjacent missing/failing/noop killer controls and the Claude hung-killer control passed. This occurrence does not establish whether the helper started, was delayed, or which boundary owns the failure.
At the original signed failure, the fixture created a hung shell helper which wrote its PID before sleeping, through the shared version probe and bounded helper cancellation. Those original file/line and byte-identity receipts below remain immutable historical evidence; later maintenance integration has changed the current client and fixture. The core agent CLI permission arguments were not on that fake brain --version path.
Current source at inspected main 9e7429a914a8: both variants share the helper construction (const killer, packages/ui-server/tests/boot-probe-deadline.test.ts:325-326) and PID/liveness assertions (const pid, packages/ui-server/tests/boot-probe-deadline.test.ts:339-346). probeBrainCliVersion (packages/ui-server/src/brain/client.ts:181-248) routes isolated brains through a maintenance worker and retains the shared version probe for its host branch. The current fixture explicitly selects that host branch (async function probe, packages/ui-server/tests/boot-probe-deadline.test.ts:288-306), so a maintenance worker is not its active helper path. Shared cancellation starts at (killWrapped, packages/ui-sdk/src/server/exec-wrapper.ts:203). Preserve the original failing source/order and distinguish this changed path from an unchanged-source recurrence; no current passing control is causal proof of the historical missing PID.
Readonly tracker searches for hung killer, helper.pid and killer found only closed #286, which established the original deadline behavior. No matching open occurrence was found.
Scope
Reduce the observed helper-PID absence under the combined suite, identify the owning scheduling/lifecycle/fixture boundary, and repair that boundary while preserving bounded cleanup diagnostics.
Out of scope
Smart-capture collectors or model/runtime versions; replacing the helper with a mock; weakening elapsed bounds, removing the helper-liveness assertion, or calling unconfirmed cleanup successful.
Acceptance criteria
- A reduced real-subprocess control records helper launch/start/exit and reproduces the observed missing-PID failure before repair, identifying whether the fixture or cleanup runtime owns it.
- The intended helper-liveness assertion is reached for a genuinely started hung helper; absent start is handled explicitly rather than silently treated as successful cleanup.
- Both brain and Claude deadline/helper controls and the relevant ordered suite pass without relaxing the five-second deadline or existing cleanup bounds.
- A restored mutation of the identified boundary fails for the named behavior, and test-owned children/helpers are reaped.
Verification
From the repository root with Bun 1.4.2, bun run test packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern 'brain bounds cleanup with a hung killer', then the reduced ordered combination and complete boot deadline suite. A bounded standalone control is recorded below; the preserved combined-suite failure still lacks a reduced failing condition. Run normal typecheck/lint and current-head checks after repair.
Contract impact
Preserve existing version-probe deadline and cancellation contracts. No signature or permission-policy change is requested.
Bounded standalone control — 2026-10-09
At archived main 3621fa3a2ff226540f23d8b78b9ecac7fdf7e1f6, Bun 1.4.2 (744846f84), timeout 35s bun run test packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern 'brain bounds cleanup with a hung killer' passes one case / six assertions, with twelve other cases filtered out; the case takes 5,212.32 ms and invocation 5.38 seconds. The real helper PID read and eventual liveness assertion execute, with normal test preload and owned-helper cleanup. This is a passing standalone control, not the failed combined ordering or a repair.
The temporary source archive reused installed dependencies; the overall installed-checkout lockfile differs from archived main, so this is not an independent frozen install. The cited boot test, version-probe and exec-wrapper source bytes match the archived files. No source, deadline, helper or assertion changed. Preserve needs: repro: capture helper start/exit and the actual absent-PID boundary in a failing ordered/reduced run before selecting a correction.
Exact-original-source frozen controls — 2026-10-09
A separate owned checkout of the original signed head 3df2ecc36bd909fa4bea534534b7b7fa7efe4ef0, with its own successful bun install --frozen-lockfile and actual Bun 1.4.2 (744846f84), runs the whole unchanged boot-deadline file: 13 pass / zero skips/failures, 61 assertions, 66.66 seconds. Both genuinely started hung helpers reach the original PID and eventual liveness assertions (brain 5,202.44 ms; Claude 5,204.18 ms). The real shell helper, five-second deadline, settlement margin and cleanup assertions are untouched.
A bounded ordered control adds the four test files immediately preceding boot-deadline in the original literal combined log: activity-runtime, frame-headers, track-intake and activity-rollup-rounding. With those unchanged files and boot-deadline at the same original signed source/frozen install, 42 tests / 258 assertions pass, zero skips/failures, 67.28 seconds. The brain/Claude hung-helper cases again reach actual PID/liveness checks. These are passing controls, not a reproduction, repair or full candidate proof.
The original literal log remains 1,416,809 bytes, SHA-256 83f8cd672ab1198a6e5a096ca6b332230582c38a61463434239e392b0325bc1c. Its brain hung-killer case fails with ENOENT at line 86 after 5,546.56 ms; elapsed/warning assertions passed, liveness was not reached. The four originally cited boot/probe/helper source files are also byte-identical to main 65215fbfdceed874a4063bbc15df788e6e4ec6a7; the whole dependency/harness trees are not asserted identical. Complete fresh #1235/#1313/#1314 unit suites reach those same real helper checks without failure, which still does not identify the historical boundary.
Remaining blocker: no reduced failing helper-start/PID condition or actual spawn/start/exit trace exists. Preserve needs: repro; do not select a fixture/runtime correction from these passes. On recurrence, retain actual helper launch/start/exit identity and the missing-PID boundary before cleanup, then reduce the full ordering/resource condition and demonstrate the named mutation without relaxing any bound. #1294 is now closed under #838’s October 10 lean-protocol ruling; this product-test flake no longer blocks #839. Preserve the original product failure and needs: repro on their own merits, rather than requiring retired spike qualification.
Releasing only claim 1235-dependants-20261009-c71a for this bounded investigation; the unchanged diagnostic branch and literal controls remain available.
2026-10-10 triage at main a1e007c473cde021a472917a66fe56ec531a3cd8: refreshed named current-source pointers after the coordinator/control/demo deliveries. Original immutable failure receipts, unresolved prerequisites and approved behavior remain; source inspection supplies no new runtime or CI completion proof.
2026-10-12 reconciliation: folded the October 10 reopen correction into the active handoff. Only the spike qualification was retired; the genuine boot-deadline test and its missing helper-start reproduction remain. Native #736, type: fix, p2 and needs: repro are preserved.
2026-10-12 source reconciliation: distinguished merged maintenance-path changes from the original byte-identical frozen controls. The missing helper-start/PID recurrence still requires needs: repro; all bounds/liveness assertions and native #736 ownership remain.
Current-main bounded controls — 2026-10-14
Inspected main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd, Linux x64, actual Bun 1.4.2 (744846f84), isolated source archive with a completed frozen-lockfile install/build. The boot test, brain client and shared exec-wrapper SHA-256 bytes were independently compared with that commit and match. Normal scripts/test.ts, offline preload, real shell fixtures and existing cleanup remain enabled; no source/assertion/deadline was changed.
Commands from the archive root:
timeout 35s bun run test packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern 'bounds cleanup with a hung killer'
timeout 90s bun run test packages/ui-server/tests/boot-probe-deadline.test.tsExpected: both hung helper fixtures write a positive helper PID, then the bounded cleanup stops that PID and the existing liveness assertion passes. Actual: focused invocation 2 pass, 0 fail, 11 filtered out, 12 assertions, 10.63 seconds (brain 5,210.80 ms; Claude 5,225.83 ms). Whole file 13 pass, 0 fail, 61 assertions, 66.71 seconds (brain hung 5,213.96 ms; Claude hung 5,213.93 ms). Both genuine helper PID reads and eventual liveness assertions execute. No ENOENT recurs. These are two invocations, covering each hung case twice, not combined-suite or historical-source proof. Other independent investigations were active on the host; no deliberate CPU pressure or shared resource cause is inferred.
Current brain fixture remains explicitly on the host branch (probe, packages/ui-server/tests/boot-probe-deadline.test.ts:74-85); maintenance-path behavior cannot explain this control. Current probeBrainCliVersion spans packages/ui-server/src/brain/client.ts:112-177, with shared host dispatch at :139-146. killWrapped still begins at packages/ui-sdk/src/server/exec-wrapper.ts:179; it launches the real helper and bounds its cancellation.
Remaining reproduction evidence: capture a failing ordered/resource condition at the actual missing-PID boundary, with timestamps and identities for helper launch, first fixture instruction/PID write and exit/signal, plus target-probe identity and cleanup events. A passing PID/liveness control supplies no failed start trace or fixture/runtime ownership classification. Preserve needs: repro and the original immutable occurrence; do not select a repair, relax bounds or infer resolution from these passes. Native #736 remains the correct parent; retired #1294/#839 qualification is not an active prerequisite.
2026-10-14 correction: expanded the current brain-probe citation to the complete function and recorded the bounded current-main controls. Historical receipts and approved criteria are preserved.
Controlled pre-PID delay — 2026-10-14
At main 5cf1d548f7bd3a314eb36394dc5db0268db97da6, Linux x64, Bun 1.4.2 (744846f84), an isolated detached worktree ran a materially different control: an injected 400 ms shell delay before the hung helper's existing PID write. Normal test wrapper/offline preload, real probe/helper, five-second deadline, helper cleanup budget and all original assertions remained. Installed dependencies were reused via symlinks with local workspace packages remapped; this was not an independent frozen install.
All three runs used:
TMPDIR=/dev/shm timeout 35s bun run test packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern 'brain bounds cleanup with a hung killer'Baseline: exit 0, 1 pass / 6 assertions, case 5,225.42 ms. The isolated mutation replaced only the hung helper body with this equivalent controlled sequence (TRACE is an external test-owned file):
echo start $$ "$1" "$(date +%s%N)" >> "$TRACE"
sleep 0.4
echo write $$ "$(date +%s%N)" >> "$TRACE"
echo $$ > helper.pid
exec sleep 8The actual PID-file destination remained the original absolute fixture path. Mutation: exit 1, 1 fail / 4 assertions, case 5,208.59 ms; ENOENT at the unchanged helper PID read, packages/ui-server/tests/boot-probe-deadline.test.ts:83. Elapsed bounds and both warning assertions pass; helper PID/liveness assertions are not reached. The external trace contains start 3932332 3932222 1791969945705145729 and no write record. Both traced helper and target probe /proc entries were absent at the post-run check. The marker establishes that the shell began executing before PID publication; it is not an exact spawn/exit or signal timestamp. The deliberate sleep and marker commands change the fixture and do not recreate historical scheduler starvation.
Restoring the fixture returns exit 0, 1 pass / 6 assertions, case 5,216.57 ms. The worktree is clean. This provides a controlled real-subprocess replication of the missing-PID boundary and a restored control, not a natural unchanged-source recurrence, causal diagnosis or repair. It shows that helper PID absence alone does not prove launch failure: a started helper can reach the bounded cleanup interval before publishing that PID. No fixture/runtime ownership ruling follows.
Retain needs: repro, without agent-ready. The remaining gap is a natural reduced ordered/resource recurrence and helper launch/start/PID-write/exit or signal timing at that recurrence; the synthetic delay alone cannot select a repair. Existing fix/ui-server/p2 classification, parent #736 and milestone remain unchanged. Local artifacts: baseline/delayed/restored logs and external helper trace under the isolated diagnostic artifact prefix.
2026-10-14 clarification: distinguished the new controlled pre-PID failure from the still-missing natural reduced recurrence. Historical receipts and approved acceptance criteria remain intact.
2026-10-14 triage at main 27a368b6ed7c8e80b33613da0c33af6776d74f75: Reverified the current hung-helper construction and repaired its moved anchor. Preserve the immutable historical failure, current host-branch selection and missing natural failing lifecycle evidence; needs: repro remains.
2026-10-16 triage at main 8822aedeeac8b824bafe120c20a9b58c4cd1f4e6: refreshed the active host-branch and helper/PID anchors after #1937/#2067 owned descendant cleanup. The historical absent-PID receipt and altered-input experiments retain their original source identities; fixture cleanup delivery is not a causal explanation of that failure. Keep needs: repro.
Induced marker-write denial — 2026-10-17
At main b9805a455ea8c62b238034f873859f21560006e3, Linux x64, Bun 1.4.3 (c6da4a4d3010e5553438c60f6bd76d981976867c), /bin/sh Bash 5.3.15(1)-release, a new filesystem-permission experiment reaches the exact absent-helper-PID assertion. This is induced symptom reproduction, not the historical cause: no natural directory permission change in the original combined run has been identified.
Source inspection: the hung helper (const killer, packages/ui-server/tests/boot-probe-deadline.test.ts:103-104) attempts its absolute PID-file redirection and then execs sleep 8, without errexit. A redirection failure can therefore leave it running without a marker. The helper spawn normally ignores stderr (helper = Bun.spawn, packages/ui-sdk/src/server/exec-wrapper.ts:228-233), so the shell's write error is not in the original test output. This differs from the earlier induced pre-PID sleep: execution and the write attempt occur promptly, but marker creation is refused.
Reproduction recipe, preserving the existing wrapper/preload, real shell fixture, host-branch selection and every deadline/assertion:
-
Use an owned empty TMPDIR and run the two existing hung-killer cases as an ordinary unprivileged UID with no capabilities. The executed command is:
TMPDIR=<owned-fixtures> timeout --signal=TERM --kill-after=5s 40s \ taskset -c 0-3 unshare --user --map-current-user --keep-caps --net \ bash <scratch>/offline.sh \ bun run test ./packages/ui-server/tests/boot-probe-deadline.test.ts \ --test-name-pattern 'bounds cleanup with a hung killer'
offline.shexecutesip link set lo up, thenexec setpriv --bounding-set=-all --inh-caps=-all --ambient-caps=-all "$@", withset -euo pipefail. The namespace has only loopback and no route. No browser or load generator is used. -
An external Python observer polls only that invocation's
boot-deadline-*directories about every 2 ms. For each fixture, wait untilprobe.pidcontains a positive PID,argv.logcontains--version, and/proc/<probe-pid>/cmdlineissleep 8. The real killer file already exists; its marker does not. Change the fixture directory mode from 0700 to 0555; leave all contents unchanged. -
Traverse only the launched command's descendant tree via
/proc/<pid>/task/<pid>/children. When a new process-group leader other than the known probe is observed runningsleep 8, record that helper identity and restore the held fixture directory to 0700 before teardown. Keep a finally block restoring any held mode on observer failure. Observe process/directory absence after the command. -
Run an otherwise identical writable control. For additional diagnostics only, append
--preload <scratch>/observe.ts, setREPRO_TRACEto an external trace, and wrap the already guardedBun.spawn: forward all calls unchanged except pipe/read helper stderr; record actual helper argv/PID, directory mode, stderr and native exit promise, then restore the full spawn descriptor. Baseline, denied-write and restored-write arms used this observer. A separate denied-write arm and final writable control omitted it entirely, retaining normal ignored helper stderr.
Results: diagnostic baseline 2 pass / 12 assertions, exit 0, runner 10.78 s; permission denial 2 fail / 8 assertions, exit 1, 10.63 s; restored writable 2 pass / 12 assertions, exit 0, 10.61 s. Without the diagnostic preload, denial again gives 2 fail / 8 assertions, exit 1, 10.91 s, followed by a writable control 2 pass / 12 assertions, exit 0, 10.76 s. Every invocation filters 11 cases. The unchanged PID read (const pid, packages/ui-server/tests/boot-probe-deadline.test.ts:117) fails with ENOENT in all four induced failures, after both elapsed and both warning checks. Brain/Claude failed-case durations are 5208.84/5213.19 ms with diagnostics and 5216.48/5222.23 ms without them.
The diagnostic observer records explicit helper.pid: Permission denied, successful helper progression into real sleep 8, and helper exit 137/SIGKILL approximately 201 ms after spawn returns. These are shell errors/native exit-promise and sampled process observations, not exact open/write/signal syscalls. Every one of the 20 observed probe/helper process entries and every fixture directory is absent afterward. Source/test/runner/preload/lockfile hashes match the pinned main; frozen install exits 0 without changes. No tracked diagnostic edits, branch, hosted run or product fix remain.
This establishes a distinct induced write-failure route to the reported symptom. It does not establish that the historical fixture lost write permission, select a correction, or satisfy the missing natural ordered/resource recurrence. Preserve needs: repro, existing acceptance criteria and all historical evidence; no agent-ready or other label/ownership/scheduling change follows.
2026-10-17 clarification: added the induced permission-denial recipe, normal-stderr confirmation and restored controls; distinguished failed marker creation after successful helper execution from delayed startup and the still-unresolved historical cause.
Natural recurrence and current bounded control — 2026-11-16
The issue reopened after candidate run 43792658010, unit (1) failed the Claude hung-helper case at boot-probe-deadline.test.ts:339, with an absent helper.pid, after its deadline and warning checks passed. The original report concerned the brain variant. Both observations require a natural helper-start/PID-write/exit trace; the later comment's scheduling explanation remains a hypothesis, since the retained evidence does not identify which boundary failed.
A bounded control this turn used an isolated source archive of main 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9, its own successful bun install --frozen-lockfile, Linux x64 and actual Bun 1.4.4 (38afee6c8), with the normal test wrapper, offline preload, real shell helpers, unchanged source and existing deadlines/assertions:
timeout 35s bun run test packages/ui-server/tests/boot-probe-deadline.test.ts -t 'bounds cleanup with a hung killer'Expected: each real helper publishes its PID, and the original eventual-liveness assertion proves cleanup. Actual: exit 0; 2 pass, 0 fail, 16 filtered, 28 assertions, 10.63 seconds. Brain took 5213.94 ms and Claude 5213.20 ms. This is a passing current-source control, not the failing hosted ordering or a repair. An earlier attempt in the starting checkout failed module loading because the Claude SDK was absent; it supplies no PID evidence. Installing the archive first resolved that setup gap.
Keep needs: repro: retain the natural failure's spawn/start, first PID-write attempt, exit/signal and cleanup timing under the failing suite/resource condition, then reduce it before selecting a fixture or runtime correction. No deadline or liveness assertion is relaxed, and the issue remains a nonblocking unscheduled investigation under #736.
2026-11-17 triage at main 9e7429a914a8: corrected the active helper/PID, host-branch probe and cancellation pointers by inspecting their current declarations. Dated original-source and induced-failure citations retain their source identities. The natural helper-start/PID-write/exit evidence remains missing; needs: repro is retained.
Activity
schlessera commentedon Oct 9, 2026
Investigating #1294's remaining #1310 prerequisite as part of the maintainer's request to finish #1235's dependants. Claim:
1235-dependants-20261009-c71a; branch:diagnose/1310-original-probe-20261009-c71a.I will run bounded controls on the exact original signed source with an independent frozen install and Bun 1.4.2, preserving the real helper, five-second deadline and PID/liveness assertions. The current-main passing controls do not explain the original absence. No correction will be selected without a measured failing boundary.
schlessera commentedon Oct 9, 2026
Exact-original signed source, independent frozen install and Bun 1.4.2: the whole boot file passes 13 tests / 61 assertions; the original four-file predecessor ordering plus boot passes 42 tests / 258 assertions. Both hung helpers reach genuine PID/liveness assertions with every original deadline intact. The original ENOENT remains unreproduced, so no repair is selected and needs: repro remains. The body records source/log identities and the exact evidence still needed. Releasing this bounded diagnostic claim; #1294 stays blocked on the unreduced occurrence and unfinished candidate proof.
schlessera commentedon Oct 10, 2026
Closing as not planned. On 2026-10-10 the maintainer retired the spike freeze, receipt, admission and native-fixture machinery under #838; the evaluations now follow the lean protocol in #838's body, and the spike-only harnesses are being removed. This qualification existed only for that machinery. Its findings remain here as history.
schlessera commentedon Oct 10, 2026
Reopened. I closed this in error as spike machinery. It is a product test flake (
packages/ui-server/tests/boot-probe-deadline.test.ts) that was only observed during the #1294 proof run. #1294 is closed under #838's 2026-10-10 lean-protocol ruling, so this no longer blocks #839, but the flake stays open withneeds: reproon its own merits.schlessera commentedon Oct 11, 2026
2026-10-12 triage: folded the recorded reopen correction into the body. #1294 is retired/closed and #1310 no longer blocks #839; the boot-deadline product-test flake remains independently open with needs: repro. No runtime repair or weakened deadline is claimed.
schlessera commentedon Oct 12, 2026
2026-10-12 source review at main
8b4fbdcff57947344ad574e89b249beabe85cb06: Separated the current maintenance-aware version probe and moved helper anchors from immutable original-source failure controls; retained the unreproduced helper-start boundary. Original dated failure/control receipts and unresolved prerequisites are preserved; no fresh reproduction, repair or activation is claimed.12 remaining items
schlessera commentedon Oct 16, 2026
This pass changes ancestor process-reaping behavior, rather than another inherited signal mask, scheduler limit or pre-PID fixture delay. An external Python parent enables Linux PR_SET_CHILD_SUBREAPER and verifies PR_GET_CHILD_SUBREAPER=1 before launching the original brain hung-helper case. During execution it records adopted direct children without reaping them until the test command ends; cleanup reaps any owned adopted children afterward. The setting applies only to this diagnostic parent, not the host or Bun globally.
At main
7d1a31d09b96739a85bff5151cc2e1300c9ac4d0, Bun 1.4.3, the normal wrapper and loopback-only namespace/current-UID/capability-drop launcher run the unchangedbrain bounds cleanup with a hung killercase. Original real helper, five-second deadline, PID read and liveness assertions remain.1 pass, 0 fail, 12 filtered, six assertions, exit 0, 5.42 s (case 5,206.80 ms). The original helper PID and liveness checks both execute. The observer records no adopted children and has none to reap; this is a passing subreaper-parent control, not evidence that an orphan/zombie reaping race was exercised or excluded. Its 40-second outer bound is not reached.
No missing PID or ownership failure recurs. Keep
needs: repro: this does not provide the historical failing helper's launch/first-instruction/PID-write/exit evidence or select a fixture/runtime correction. No source, signal disposition, assertion, deadline or product behavior changed.schlessera commentedon Oct 17, 2026
2026-10-17 — NOT REPRODUCED; local signal-disposition control.
New condition: set inherited SIGCHLD disposition to SIG_IGN before exec of the unchanged runner. Earlier probes blocked SIGCHLD or used a subreaper parent; this tests the distinct ignored-signal/automatic-reaping policy. The launcher verifies SIG_IGN immediately before exec; descendant disposition is not independently verified.
Command:
TMPDIR=<owned disk-backed directory> timeout --signal=TERM --kill-after=5s 40s python3 <SIGCHLD-IGN exec launcher> # execs bun run test ./packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern "bounds cleanup with a hung killer".The actual Brain and Claude hung-helper cases both reach and pass their unchanged positive-PID/liveness assertions: 2 pass / 0 fail, 11 filtered, 12 assertions, 5,213.04 / 5,214.21ms, runner 10.95s. The outer command returns 0. Preserve the separate post-summary wrapper diagnostic:
error: Failed to run script test due to error: ECHILD: No child processes (waitpid()). This deliberately altered reaping condition is therefore not an entirely clean runner-success receipt, even though both subject assertions pass. No missing-helper ENOENT recurs.Environment: Local testing on a shared Linux host, isolated detached checkout at
9d5cd00b7646ffee951c7a29a38717989f7fd868, independently frozen-installed dependencies and successful full build, Bun 1.4.3. Independent host builds/tests overlapped; no dedicated resource allocation or measured starvation is claimed. This is not remote CI or production evidence.Keep
needs: repro. The ignored-signal control does not establish historical disposition, natural failure or fixture/runtime ownership. The post-summary ECHILD is a control-induced runner observation, not the reported missing-PID symptom or a product diagnosis. No source, deadline or assertion changed; no repair or production impact is inferred. Full command/log/exit receipts and any diagnostic source are retained in this pass's local artifact directory.schlessera commentedon Oct 17, 2026
2026-10-17 — REPRODUCED-SYMPTOM, induced marker-write denial; historical cause still open.
At main
b9805a455ea8c62b238034f873859f21560006e3, Linux x64, Bun 1.4.3 (c6da4a4d3010e5553438c60f6bd76d981976867c),/bin/shis Bash 5.3.15(1)-release. No browser is involved.bun install --frozen-lockfileexits 0, checking the existing installation without changes. The test/probe/helper/runner/preload/lockfile bytes match this SHA.New dimension: deny creation of the helper's PID marker through directory permissions, rather than delaying the helper or adding CPU/disk pressure. Earlier attempts covered isolated/original-source and ordered controls, affinity/competitors/scheduling class, deadline collisions, descriptor ceilings, disk contention, syscall tracing, pre-PID sleep, timer slack/global timer state, SIGCHLD masks/disposition and subreaper ancestry. Read all 20 comments, including the newly posted SIGCHLD-IGN control, before publication.
Hypothesis: the unchanged helper attempts
echo $$ > helper.pid, but a failed redirection does not stop its subsequentexec sleep 8.killWrappednormally discards its stderr. This can produce the recorded timeout warnings followed by ENOENT despite successful helper execution, independently of publication latency.Each serial run uses a separate owned TMPDIR. The external driver polls about every 2 ms, waits for the original probe's positive PID,
--versionargv and actualsleep 8, then changes only that fixture directory from 0700 to 0555. It restores 0700 after observing the helper's failed write/exec, before teardown. No file is deleted, helper code edited, deadline changed or assertion weakened.Commands, from the checkout root (
<scratch>holds the retained driver/observer):The exact inner guarded test command and observer procedure are folded into the body. The first three runs forward through the existing guarded
Bun.spawn, changing only helper stderr from ignored to a diagnostic pipe and restoring its complete descriptor afterward. The final two omit that diagnostic preload entirely.Each invocation filters 11 cases. All four induced failures are the unchanged helper-PID read at (
const pid,packages/ui-server/tests/boot-probe-deadline.test.ts:117), after all four elapsed/warning assertions pass; PID/liveness assertions are not reached. Brain/Claude case durations are 5208.84/5213.19 ms with diagnostics and 5216.48/5222.23 ms without them.Diagnostic stderr explicitly records
helper.pid: Permission denied; both helper PIDs subsequently execute realsleep 8and exit 137/SIGKILL about 201 ms after spawn returns. This is shell-error and process-lifecycle evidence, not a syscall trace. Tests run with loopback only, no route and zero capability sets; the normal offline preload and 5000/250/200-ms budgets remain enabled. All 20 observed probe/helper process entries and all fixture directories are absent afterward. Permission changes and diagnostic descriptors are restored; tracked source is clean. No branch or hosted run was created.Conclusion: a second induced pathway reaches the exact missing-PID symptom, without a pre-PID delay or failed launch. There is no evidence that the original combined suite changed directory permissions; its cause and fixture/runtime ownership remain unresolved. Keep
needs: repro, withoutagent-ready; no label, milestone, assignee, priority or parent change. The body gains this recipe and its limits, not a repair or closure claim.schlessera commentedon Oct 17, 2026
2026-10-17 — Not reproduced, different native shell implementation at main
bfaf3be35408e7983f6b525430118fa867c19d6a.New approach: run unchanged real hung-helper fixtures with
/bin/shresolving to Dash in the pinned noble container, rather than the shared host's Bash. Prior experiments varied resource/order, timers, signals/reaping, delayed PID publication and marker-write permissions. This changes actual shebang interpretation without editing the helpers or deliberately delaying/denying their marker.Command:
sh -c 'readlink /bin/sh; exec bun run test packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern "bounds cleanup with a hung killer"', insidemcr.microsoft.com/playwright:v1.63.0-noble,--init --network=none --ipc=host, current UID, own built/frozen-installed checkout, Bun 1.4.3, disposable container /tmp.readlinkrecordsdash.Actual: 2 pass / 0 fail / 13 filtered / 12 assertions, exit 0, 10.63s. Brain 5206.79ms / Claude 5218.15ms. Both original positive-helper-PID and eventual-liveness assertions execute; no ENOENT. The new wall-clock cases account for the current filtered count. No source/deadline/assertion or guard changes.
Keep
needs: repro: this passing shell/container control does not identify the original failing helper's startup/publication boundary or recreate historical suite scheduling. Shared local host, no hosted proof or cause/repair claim. Complete log retained locally.schlessera commentedon Oct 17, 2026
2026-10-17 — Second round: Not reproduced. Brain and Claude original hung-helper cases pass: 2 pass / 0 fail / 28 assertions, 10.75 s. Each elapsed/warning/PID/liveness assertion executes; 16 unrelated cases filtered. at main
33cc244ea9f4f92114201a29d0d27edf24f89ce1.New approach: Resolve each unchanged native hung helper through a 16-link symbolic-link chain, exercising executable path resolution instead of changing shell implementation, marker permissions or pre-PID delay. Both probes log the selected chain.
Not reproduced. Brain and Claude original hung-helper cases pass: 2 pass / 0 fail / 28 assertions, 10.75 s. Each elapsed/warning/PID/liveness assertion executes; 16 unrelated cases filtered.
Command:
bun run test packages/ui-server/tests/boot-probe-deadline.test.ts -t "bounds cleanup with a hung killer". Own isolated frozen dependencies and successful full build; Bun 1.4.3, shared local Linux host. Browser controls use the unchanged pinned Playwright 1.63.0 noble image, Vitest 4.1.11 and verified locked fonts with network disabled. Original offline guards and deadlines retained. Diagnostic changes only helper executable indirection, not helper bytes, deadlines or marker location. Current fixture has additional deadline ownership assertions compared with earlier main.Keep
needs: repro: no historical cause or correction established. Temporary source edits restored; diagnostic inputs and output retained locally. No fix, PR or hosted dispatch.schlessera commentedon Oct 17, 2026
2026-10-17 — Third round: Not reproduced: both real hung-helper controls pass, 2 pass / 0 fail / 28 assertions, 16 filtered, 10.96s. Both helper PID and liveness boundaries are reached.
New approach: Add 10,000 fictional inherited environment entries (roughly 570KB) before exec of the actual Bun runner, stressing native exec/shell environment initialization rather than helper path resolution, signals, deadlines or marker permissions. The production killer spawn inherits the process environment.
Command:
Python subprocess.run with 10000 ODYSSEUS_BOOT entries: bun run test packages/ui-server/tests/boot-probe-deadline.test.ts --test-name-pattern bounds-cleanup-with-a-hung-killer.Local test at main
2a0b77f675da2f01c32adba3f4920650a5ee09fa, isolated checkout with its own successful frozen install and full build, Bun 1.4.3. Browser probes use the pinned Playwright 1.63.0 noble image, Vitest 4.1.11, verified offline fonts and network disabled. Existing offline guards, assertions and deadlines retained. Shared Linux host; no historical runner equivalence or measured starvation claimed. The exact test-name argument in the retained command is the spaced original title. No artificial helper delay, marker denial or deadline change. Environment size is a launcher input; the helper parse duration is not independently measured.Keep
needs: repro: this does not establish the historical cause or a correction. Diagnostic source restored; command, input and complete output retained locally. No implementation, PR, push or hosted dispatch.schlessera commentedon Oct 17, 2026
2026-10-18 — Control under the #2370 host condition: not reproduced. The unchanged focused target for this issue passed on a host carrying about 8,000 leaked Docker Desktop bind mounts. On that same host, bwrap setup costs about 2 s and
egress-worker-runtime.test.tsfails 10/10 at its 5 s worker-setup budget. Results: boot-probe-deadline 18 pass / 0 fail; native-answer-bytes promotion 1 pass; live-ancestor lease 1 pass. The mount-table pathway therefore does not explain this observation as a focused run. A broad-order recurrence on a host that passes #2370's preflight would still be informative.schlessera commentedon Oct 18, 2026
2026-10-18 — reproduction pass at
775eb17aab740fa759c2182f306c38fc17acbcbe.Different approach: Move actual probe/helper/PID-marker temporary files to task-owned tmpfs, rather than prior disk-backed pressure, marker permissions, shell/path/env and signal controls. Native helper bytes and original PID/liveness checks remain unchanged.
Observed: Not reproduced: both brain and Claude hung-killer cases pass, 28 assertions, 16 cases filtered. Actual helper PID publication and eventual liveness checks complete on task-owned memory-backed temporary storage. Outer invocation exit
0, elapsed 10.638 s; outer watchdog fired: false.Command (from repository root; any diagnostic source changes are described above):
Explicit environment:
TMPDIR=/dev/shm/odysseus-1310-yvmppygg.Bun 1.4.2. Only fixture temporary storage changes to tmpfs; no delay, load generator, marker denial or helper replacement. This differs from the prior disk contention and marker-permission probes, and supplies no historical filesystem attribution.
This is focused local evidence, not historical-run equivalence, a repair or full candidate proof. Existing assertions, deadlines and offline guards were retained. Temporary source instrumentation was restored byte for byte. Keep
needs: repro; no readiness or closure change. Full log, command/exit receipt and diagnostic patch are retained in task-owned scratch.schlessera commentedon Oct 18, 2026
2026-10-18 — second reproduction pass at
775eb17aab740fa759c2182f306c38fc17acbcbe.Different approach: Use inherited umask 077 for original real hung-killer helpers. Earlier attempts denied marker writes or changed filesystem/timers/descriptor limits; here PID files remain writable with private creation permissions. Both cleanup deadlines and liveness assertions remain.
Observed: Both original hung-killer cases pass, 2 tests / 28 assertions, 16 filtered. Each native helper/PID/liveness boundary completes; named Bun file time 10.56s. Outer invocation exit
0, elapsed 222.786 s; outer watchdog fired: false.Command (working directory: repository root; any diagnostic source changes are described above):
sh -c 'umask 077; exec bun run test packages/ui-server/tests/boot-probe-deadline.test.ts -t "bounds cleanup with a hung killer"'Explicit environment:
TMPDIR=/dev/shm/odysseus-repro2.Outer wall receipt includes workspace-lease waiting and a paused external Python driver; it is not test-body duration. Umask is supplied rather than observed historically. No original absent-PID symptom occurs.
This is focused local evidence, not historical-run equivalence, a repair or full candidate proof. Existing assertions, deadlines and offline guards were retained. Temporary source instrumentation was restored byte for byte. Keep
needs: repro; no readiness or closure change. Full log, command/exit receipt and diagnostic patch are retained in task-owned scratch.schlessera commentedon Oct 18, 2026
2026-10-18 — third reproduction pass at
775eb17aab740fa759c2182f306c38fc17acbcbe.Different approach: Register a passive kernel inotify watch on the exact owned helper directory before the original deadline clock starts, recording helper.pid create/close/delete publication events externally. No helper delay, PID source, assertion or primary/cleanup/liveness deadline changes. Inotify records names/masks and observation time, not writer PID.
Observed: 2 pass; 0 fail; 28 expect() calls; both helper.pid files emitted native create (256) and close-write (8) events before the unchanged liveness/cleanup assertions passed. Outer invocation exit
0, elapsed 10.848 s; outer watchdog fired: false.Command (working directory: repository root; any diagnostic source changes are described above):
Explicit environment:
BRAIN_REQUIRE_CHROME=1,PUPPETEER_EXECUTABLE_PATH=$PLAYWRIGHT_CHROME,DEBUG=pw:browser,TMPDIR=/tmp/brain-repro-audit-3/native-state.Original broad invocation and its reported failure remain unqualified. No failure-cause or repair inference from these controls.
This is focused local evidence, not historical-run equivalence, a repair or full candidate proof. Existing assertions, deadlines and offline guards were retained. Temporary source instrumentation was restored byte for byte. Keep
needs: repro; no readiness or closure change. Full log, command/exit receipt and diagnostic patch are retained in task-owned scratch.schlessera commentedon Oct 19, 2026
Repro attempt, 2026-10-19, at main
09eb1f78e. Local Linux (WSL2): 32 CPUs, 47 GiB, Bun 1.4.2, 121 mountinfo entries. Chrome for Testing 153.0.8010.12 viaPUPPETEER_EXECUTABLE_PATH. CPU load came fromtaskset -c <cpus> yes > /dev/nullbusy loops.Not reproduced: 0 failures in 40 runs. Runs of
./packages/ui-server/tests/boot-probe-deadline.test.ts -t 'bounds cleanup with a hung killer'(2 tests):taskset -c 0with 4 busy loops on CPU 0No ENOENT on
helper.pid.schlessera commentedon Oct 21, 2026
Closing as not planned (maintainer-approved triage, 2026-10-21). This was a single local occurrence on 2026-10-08, during the combined suite: the boot-deadline helper's PID file was missing. About 25 attempts plus 40 runs on 2026-10-19 (idle and CPU-contended) never reproduced it. The symptom appears only with an injected pre-PID delay or denied write permission, which points to the helper not starting within its 200 ms cleanup budget under load, not a product defect.
Reopen on a natural recurrence with the helper start, PID-write and kill trace.
schlessera commentedon Nov 16, 2026
Natural recurrence (2026-11-16), hosted CI. Reopening, as the closing comment asked.
unit (1), attempt 1). It was the candidate confirmation of PR CONTRACT: feat(ui-sdk,ui-server,ui-react): serve on-demand GitHub detail pages and avatars outside the model's context #4077 at headb5f9b54f155c29c35abbaae6f9288cc47cf541ab, a merge of main168d5255b.boot probe deadline > claude bounds cleanup with a hung killer [5238.62ms], this time the Claude variant. The elapsed-deadline and warning checks passed. The case then failed reading the helper PID file:ENOENT: no such file or directory, open '/tmp/boot-deadline-pTX1pg/helper.pid'atpackages/ui-server/tests/boot-probe-deadline.test.ts:339.claudemissing, failing and noop killer cases passed in the same worker, as did all fourbrainkiller cases. The worker ran two unit shards concurrently under heavy memory use: onebun testprocess peaked near 2 GB RSS.Penelope/Odysseus owns build, lease and maintenance admissionlines in the same log are a nested harness self-test's planned failure (PLANNED_WORKER_FAILURE_AFTER_DIAGNOSTICS), and the outer test passed.version-probe,runtime-probe, the brain client,host-boundary, observability). The test file and those probes are unchanged on main since 2026-11-03, and main's last 12 CI runs (through168d5255b) are green.This matches the earlier hypothesis that under load the hung helper does not start and write its PID within its 200 ms cleanup budget. A timing flake: no milestone, and it does not block milestoned work.