Repository navigation
Description
Context
tests/policy-write-boundary.test.ts "claude policy-write boundary > voice: the narrower authority cannot grant or write policy; an authorized capture still lands" fails on main 541b8d983 (and on the #2725 branch) when the file runs alone, in ~4 s, not by timeout:
error: AREAS_WRITABLE
- true,
+ false,
at executorsHeld (tests/policy-write-boundary.test.ts:80:46)
at <anonymous> (tests/policy-write-boundary.test.ts:218:5)
18 pass
1 fail
The probe reports the first writable area (scratch, __areas[0]) as not writable from inside the voice Claude worker (fs.accessSync(dir, fs.constants.W_OK), tests/fixtures/policy-boundary-probe.ts:94-95), while the assertion expects both areas writable (tests/policy-write-boundary.test.ts:80). Every other case in the file passes, including interactive. Observed on a local Linux host while several other test runs shared the machine; not yet checked against hosted CI. This differs from #2304 (missing probe interpreter, zero attack records).
The scratch policy is already decided: docs/decisions/worker-writable-areas.md grants the named area only when resolution proves its real contained topology and git-ignore condition; unsupported/unverifiable scratch stays read-only and is named in the note. Voice’s no-grant posture does not by itself select a different scratch policy. The remaining gap is the failing invocation’s resolved mount/qualification facts and reason, not an invitation to weaken the assertion or reopen that ruling.
Scope
- Reproduce on a clean main checkout and in hosted CI.
- Capture the same failing invocation’s resolved scratch mount facts/note, git-ignore query exit and reason, worker access result and owner/source identities before choosing a fixture or production correction under the existing policy.
Out of scope
- The interpreter qualification in tests: qualify policy probe Python inside the confined worker #2304.
- Any change to other policy-write boundary cases.
Acceptance criteria
bun run test ./tests/policy-write-boundary.test.tspasses 19/19 on a local Linux host and in hosted CI.- If the scratch mount changes, a test fails before the change and passes after it.
Verification
bun run test ./tests/policy-write-boundary.test.ts, then bun run check:pr --base origin/main.
Contract impact
None expected.
Later controls and current-main attempt
The reporter’s later full root suite passed 1,954 cases after host load was throttled. Its earlier failure conditions had load averages between 90 and 600; this supports a scheduling/qualification lead, not causal attribution.
A fresh isolated-source, frozen offline install at main dcd3b336dbade5e29e8a131eeeb5a0d9cffe60ff, Bun 1.4.2, ran scripts/test-offline.sh -- bun run test ./tests/policy-write-boundary.test.ts -t 'voice: the narrower authority'. Both Claude and pi voice cases passed with unchanged assertions: 2 pass / 17 filtered / 65 assertions, exit 0, 5.52 s test phase. Load averages before were 10.48 / 31.39 / 223.14 and after 10.52 / 31.05 / 222.00; this was not an idle-host qualification or a complete 19-case file. No deadline, mount or authority guard changed. Raw log SHA-256: e91c0f1d5ec270b5e0067a52ed13bef6f839dca6745668ecaa2db63c68fa2abb.
This passing control does not reproduce or explain the earlier refusal. Retain needs: repro until scratch resolution and the failed native access are correlated in one invocation. An isolated pass is not a reason to change the voice policy or the fixture’s permitted-area premise.
2026-10-25 triage at main dcd3b336dbade5e29e8a131eeeb5a0d9cffe60ff: Resolved the factual policy question from the binding writable-area record, folded the later reporter control into the body and recorded a new limited offline voice control with unchanged assertions. The failed mount/qualification reason remains unknown, so preserve needs: repro. Added the SDK-boundary/test areas and p2; no policy choice, idle-host pass or repair is claimed.
2026-10-26 triage at main c670449d3bf1b0639e50ce554d728961f4313add: verified the current cited code and corrected literal source anchors/start lines. This navigation correction preserves historical receipts, decisions, scope, classification and unresolved prerequisites; no new runtime result or readiness is inferred.
Later recurrence and rate — 2026-10-26 (recorded 2026-11-03)
- PR #3014 records an initial full root
./testsrun at 1963 pass / 3 fail, allAREAS_WRITABLE. The failures were in the Claude interactive, Claude voice (this issue's case) and Pi interactive policy-boundary cases. An unchanged retry on the same head passed 1966/1966. The complete focused file passed 19/19 on both head and base. tests: full suites intermittently lose writable scratch #3010 records those receipts at branchb9b7d099ba362838f22407902c9d3a4b9fc70cc6, based onc47483196f02c1098128207ce68c4f0de6b571ab. - PR #3023 records the file run alone with other runs interleaved on the same host. It failed one case in 15 runs on main from a neighbouring worktree, and 5 in 15 on that branch. The failures were always a scratch, shell-write or Git-lock case. That PR's own root failure was the Claude interactive case, not voice.
#3010 (p1, needs: repro) tracks the full-suite loss of writable scratch. It names this issue as the owner of the voice observation, so the two stay separate unless one attribution explains both. This voice case can fail with the file alone under host contention, at a low rate. A bounded repro therefore needs repeated isolated-file runs under recorded parallel load, not the complete suite. The missing evidence is still the failed worker's scratch resolution, Git-ignore result, mount facts and access result, captured in the same invocation.
Triage 2026-11-03 at main 3d3516a0247702560c09c5a0889bdec39b8313fb: added the 2026-10-26 voice recurrence from #3014, the isolated-file failure rate from #3023 and the relationship to #3010. Labels unchanged; needs: repro remains.
Latest bounded investigation and remaining evidence — reconciled 2026-11-05
The 2026-11-04 investigator receipt records the following; this triage did not rerun it.
At 53b862123d7b8e4c9d039859fabdc9fc6ad4cd36, the integrated voice cases stopped at nested-namespace qualification before their executor witnesses. Independent real scratch/Git controls passed for unversioned and ignored-repository brains, but host access and separate resolver results are not in-worker voice access evidence. No loaded or hosted reproduction was obtained. The next useful receipt remains the same failing voice invocation with resolved mount/note, Git-query exit/reason and native access errno; do not infer a shared cause with #3010 or #2987.
Historical failures and controls retain their original identities. Keep needs: repro and no agent-ready; no new causal repair, full-suite qualification or provider/device result is claimed.
Activity
schlessera commentedon Oct 25, 2026
2026-10-25: the same case passed in a full
bun run test ./testsrun (1954 pass, 0 fail) once host load was throttled. Both failing runs above happened while the host's load average was between 90 and 600, so this may depend on load rather than on the scratch mount. Needs a reproduction on an idle host before scoping a fix.schlessera commentedon Oct 25, 2026
2026-10-25 triage at main
dcd3b336dbade5e29e8a131eeeb5a0d9cffe60ff: Resolved the factual policy question from the binding writable-area record, folded the later reporter control into the body and recorded a new limited offline voice control with unchanged assertions. The failed mount/qualification reason remains unknown, so preserve needs: repro. Added the SDK-boundary/test areas and p2; no policy choice, idle-host pass or repair is claimed.schlessera commentedon Nov 4, 2026
Reproduction triage — 2026-11-04 (UTC)
Verdict: inconclusive for the reported
AREAS_WRITABLEfailure. Keepneeds: repro; do not addagent-ready. The integrated case cannot reach its executor witnesses on this host. Independent real scratch/Git controls succeed, but they do not explain the intermittent voice observation.Inspected source and environment. Clean HEAD and freshly fetched
origin/main:53b862123d7b8e4c9d039859fabdc9fc6ad4cd36. Linux7.0.0-42-generic, x86_64, Bun1.4.4, bubblewrap0.11.1, Git2.53.0, Python3.14.4, UID/GID1001:1001, 16 available CPUs; fixture storage is tmpfs under/tmp. Installed Claude Agent SDK0.3.293, pi coding-agent0.99.2, both brain backends0.44.0. Dependencies were initially absent;bun install --offline --frozen-lockfile --backend=copyfile --ignore-scriptssucceeded (922 packages, umask 022). Lock SHA-256:ecf6986227406c1fd9d835ae3c119d561e012df5a1bedcae599907332fc20a3e. Runtime probes used a replaced environment containing only Bun/system PATH andLANG=C.UTF-8, plus the repository child preload. No provider credential or paid call was used.Read the full issue and both comments, the related #3010/#2304/#2725 and PR #3014/#3023 evidence, and the binding writable-area, worker-boundary and voice decisions. The parent endpoint explicitly returns
404 No parent issue found. The cited scratch access at fixture lines 94–95 andAREAS_WRITABLEat test line 80 still match current source.Attempts and exact results:
scripts/test-offline.sh -- /usr/bin/trueexits 1:unshare: write failed /proc/self/uid_map: Operation not permitted. A basicbwrap --unshare-net --bind / / --proc /proc --dev /dev /usr/bin/truesucceeds, but nesting the worker's user/PID namespace inside it fails withbwrap: No permissions to create a new namespace.bun run test ./tests/policy-write-boundary.test.ts -t 'voice: the narrower authority'runs the unchanged test with its own offline outer namespace: 0 pass / 2 fail / 17 filtered, 18 assertions, 2.80 s test phase, exit 1. Claude fails at line 216, expected one captured path, received zero. Pi fails at line 212 because the expected no-voice-posture message is absent. Neither reachesexecutorsHeldat line 218 /AREAS_WRITABLEat line 80.outer claude voicefixture retain the actual receipt. Both outer and server exit 0, butadded=[],calls=0,witnesses=[]; only the host-probe worker starts. The error frame hasfailure.errorClass="worker_host_unsupported"and names the nested namespace refusal. The first receipt also confirms unchanged policy, no changed brain paths and no escapes. A zero fixture exit is therefore not a passing voice proof.git initand.gitignorecontaining.brain/scratch/, exercise the actual resolver and real credential-free maintenance Git worker. In the reusable diagnostic below, 10/10 resolutions per brain return writable scratch; workspaces also resolve writable. Host and maintenance Git exits agree: 128 (not a repository) for the unversioned case; 0 for the ignored-repository query. Neither worker is killed. Scratch is self-resolving, owned by1001:1001, mode0700, host-writable, with no submount, outside link, brain alias or scan-limit hit. Earlier controls also passed 50 repeated real filesystem scans per brain.git check-ignorereturns 0. This is an unsupported nested-namespace control, not reproduction or attribution of the original intermittent worker access failure.Focused-test log SHA-256:
8d59480cde15663991b820be2627e1f3741bc5a8a08351077b02befd8bc07b16. First raw Claude receipt stdout SHA-256:b3f011be02fcc74b474f6727ba82302a53c8eab7872963c91214c1add36320bc.Reusable diagnostic. Save the following outside authored source as
/tmp/repro-2923.ts, then run from this checkout:It runs real credential-free scratch queries and the unchanged, network-isolated Claude fixture, prints diagnostic receipts, and removes its fictional brains. Its own exit is not a test-suite verdict.
Limits and next step. This does not supply a failed voice worker's resolved mount/note, Git-query result and native access result in one invocation. No loaded repeated-file or hosted-CI reproduction is claimed; this Bun version also differs from CI's pinned 1.4.2. Session load samples were 11.03/8.44/6.36 initially and 5.33/7.96/7.02 later, without an artificial load generator. On a host qualified for the nested namespaces, repeat the isolated 19-case file under recorded parallel load and retain the first failing invocation's sandbox areas/note, real Git exit/stderr, mount sources and dev/inode/UID/GID, and the executor's access errno/result. Keep the original assertions and policy intact; a host refusal or a separately queried directory cannot supply that correlation.
No authored source changed, no temporary production mutation was made, and
git status --porcelainremains empty. Preserve all six existing labels (type: test,area: ui-sdk,area: ui-server,area: ci,priority: p2,needs: repro), milestone0.45.0, open state and assignments.schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: Recurrence check plus a note on one merged change; the body is unchanged. I searched the failed-job logs (gh run view <id> --log-failed) of every failed mainCIrun from 2026-11-01 to 2026-11-10: 28 runs, 27 with failed-job logs. None containsAREAS_WRITABLE.claude policy-write boundary > voice: …appears in eight of them, as passes only. #3621 (merged 2026-11-05) changedtests/fixtures/policy-boundary-probe.tsand this test file. It defaultsBRAIN_WORKER_SCRATCHto/tmp/brain-worker-scratchfor the scratch-alias walk and witness write, and replaces the Pi extension executor with curated bash. It does not change the per-areaW_OKcheck (probe lines 92-95) orAREAS_WRITABLE(test line 80), so it is not a repair of this observation.needs: reproand p2 remain.schlessera commentedon Nov 10, 2026
Test-health push (#3855), shard
e3855-root-02, on base0129244ad, on a shared host with load averages of 30–38.Partly reproduced. In a 10-run baseline of
tests/policy-write-boundary.test.ts,AREAS_WRITABLEreceived[false, true]twice in Claude interactive. Claude voice failed twice, but atr.added(length 0), not atAREAS_WRITABLE. There were 5 failed runs in all. One of those runs also reported the maintenance-busy refusal named in #3019.After the change. I gave the probe's outer bubblewrap a private
/tmp, which keeps out the host-wide per-UID maintenance ledger. 20 consecutive runs then passed with no failures, at the same load.Not attributed. The two results correlate, but the scratch/admission timeline for this specific assertion was not captured. That is not attribution, so this issue stays open. Full receipts are in the #3019 comment. The batch PR references this issue rather than closing it.
schlessera commentedon Nov 13, 2026
Closing as fixed by #3881. Reproduced on demand and confirmed fixed (2026-11-13). Receipt, commands and the full table are in #3019.
fcc7f99ce(the parent of test(root): test-health batch e3855-root-02 #3881) fails the Claude voice case atr.addedlength 0, expected 1. That is the form the 2026-10-27 and 2026-11-10 sightings took. The originalAREAS_WRITABLEform did not appear for voice in this run; it did appear for Claude interactive and Pi interactive. With no holder the file passes 20 of 20./tmp. On main631bbae2cthe same file passes 20 of 20 while the same holder stays live.So the voice case is reproduced as a failure under this cause, but its original line-80 signature is inferred from the two sibling cases, not reproduced.
Milestone
0.45.0, the same as #3881. The fixtures #3881 does not cover stay open in #3019.