Repository navigation
Description
[handoff] Tablet gate-environment kill loop + work inventory (agent session 2026-10-17)
1. Environment problem (evidence-backed)
The tablet did not reboot (uptime continuous 4→5.7h across the session).
What died, repeatedly (5+ times), was the whole Termux app process group:
the opencode server, every background shell, every detached/setsid/nohup
runner, and the user's other background apps.
Root cause, from adb shell logcat -b events:
am_kill : [...,com.zui.engine,905,ZuiMemoryCleaner[Moderate-SwapFreeLow],80400]
Lenovo ZUI's MemoryCleaner fires on low SWAP free (not RAM — 6.2G was
available) and mass-kills background processes. Sustained full cargo test
runs push pages into the 9G zRAM swap until the cleaner trips. CPU temps were
60–70°C with mStatus=0 (no thermal throttling) — heat contributes, swap is
the trigger. Every kill landed during sustained high load (load 8–15), even a
single -j2 serial suite eventually tripped it.
Mitigations applied / learned:
- Strictly one heavy cargo job at a time,
-j2max, serial--test-threads=1. - Resumable per-target gate:
~/bench_niu/gate_chunk.sh <workdir> <log> <targets...>
appends to the log and skips targets already having atest result:line.
All progress survives kills; loss is bounded to the in-flight target. cmd deviceidle whitelist +com.termuxdone (may not stop the ZUI cleaner).- Detached
nohup/setsiddoes not survive (whole-app kill). Verify
aliveness with the[g]bracket trick — barepgrep -f <name>self-matches
and gave two false RUNNER-ALIVE readings this session. - ADB: wireless debugging pairs fine (
adb pair localhost:<pair-port> <code>,
pairing persists). The local adb daemon dies with the server, so after each
restart re-runadb connect localhost:<tls-port>; the TLS port is dynamic —
re-discover by scanning 30000–49999 on localhost for a TLS handshake
(39057 worked once). This adb build has no mdns support.
2. Work completed this session (all merged)
- fix(tests): temp probe paths in mapfile/comsub tests (#324/#362) #760
fix(tests): temp probe paths in mapfile/comsub tests (#324/#362)—
/tmp→ temp_dir probe paths. CI green. - fix(executor): keep empty fields in compound field-split transport #762
fix(executor): keep empty fields in compound field-split transport—
real [bug] Unquoted positional parameter in array assignment is not word-split on IFS: set -- a.b.c; IFS=.; A=($1) gives 1 element (GNU 3) — breaks OMB _omb_util_split / half-life git version compare #298 bug:IFS=.; A=($1)ona.b..bstored 3 (b" ") vs GNU 4.
compound_field_split_transportheld no real separators for empty fields;
now distributes the next located gap's real separators in order
(src/executor/assignment_helpers.rsonly). 298 file 12/12, GNU probes
(a.b..b/a::b/:a:/$1 $1/default-IFS) all match. Verification note
left as a PR comment (merge comment 6231882909): GitHub CI fully green +
complete clean branch leg; local master-leg diff + niubash A/B deferred
(see §3). - fix(tests): sandbox issue358 probe dir under temp_dir (#358) #766
fix(tests): sandbox issue358 probe dir under temp_dir (#358)—
same CWD-pollution class as chore(tests): drop accidentally committed f27x probe files and sandbox their producers #763/test(issue540): sandbox the probe script CWD (root 'f' producer) #765 (touch zzqlanded in repo root). - CHANGELOG Unreleased entries for all three.
3. Deferred (device couldn't sustain it — do on a healthy runner)
- fix(executor): keep empty fields in compound field-split transport #762 master-leg failure-set diff: branch leg COMPLETE —
$PREFIX/tmp/gatetransport/branch.log, 271 targets, only the 10 known
environment failures (signal tables/ulimit/CWD-double-slash/part_080),
zero NEW vs expectation. Master leg —
$PREFIX/tmp/gatetransport/master.log, 272test result:lines, missing
ONLYtests/regression.rs(killed 4× mid-target). Resume recipe:
recreate baseline worktree at current master, run that one target with
gate_chunk.sh, thenbash ~/bench_niu/diff_full.sh branch.log master.log. - fix(executor): keep empty fields in compound field-split transport #762 niubash product A/B: needs two serial product-suite runs
(branch vs master[patch]); failure-set compare. Not started (too heavy
for this tablet right now).
4. Open lanes (untouched, queued)
fix/pipeline-unbounded-producerworktree ($PREFIX/tmp/wt-761, at
b579358): pipeline: unbounded external producer + shell-side tail never returns —yes | truedrains into RAM at ~250 MB/s (hangs on HEAD too) #761 P1 (yes | truedrains producer into RAM). Investigate
where in-process pipeline tails materialize the pipe into a String
(pipeline_exec.rs/compound_exec.rs), fix minimal per GNU
execute_cmd.c(close read end → SIGPIPE), verify probes + pipeline test
files. NOTE: thesubagenttool is unusable in this environment
("model not available in your country") — do everything in-session.- redirect leftovers from #699: definition-level dup splice lost, runtime exec escapes group order, missing cat same-file warning #726 redirect leftovers from redirection & fd:
2>&1 >fileorder, builtin write-error routing, closed-stderr status, subshell-uncapturedcderror, bare-catsame-file #699 (definition-level dup splice, exec
rebinding escape, same-file warning) — one concern per PR. - Worktrees:
$PREFIX/tmp/rb-master(baseline, now STALE — master moved to
3c2d883, recreate on resume),$PREFIX/tmp/wt-358(merged fix(tests): sandbox issue358 probe dir under temp_dir (#358) #766, removable). - PR body drafts:
~/bench_niu/pr_transport_body.md,pr_tmpdir_body.md,
pr_tz_body.md.
Activity
caomengxuan666 commentedon Oct 19, 2026
Terminal disposition — this handoff is fully discharged; the device it describes has been returned (see #787). Nothing actionable remains.
Environment record (§1): ZUI MemoryCleaner SwapFreeLow kill loop on the returned tablet — historical, device-specific, no repo action. Closing as reference material.
Session inventory (§2): all three landed and verified MERGED in unixwin/rubash — #760 (
82b3a4d6, merged 2026-10-17), #762 (3c2d883, merged 2026-10-17), #766 (merged). CHANGELOG entries included per PR bodies.Deferred (§3): the #762 master-leg diff + niubash A/B are superseded — see the terminal disposition on #787 (CI green at merge; true-baseline differential vs GNU 5.3.0 landed and run by PR #820, catalogue face must-match).
Open lanes (§4):
yes | truedrains into RAM at ~250 MB/s (hangs on HEAD too) #761 P1: fix landed in unixwin/rubash by PR fix(executor): stream an unbounded external producer into an in-shell pipeline tail (#761) #784 (commit3490b12), regression tests by PR test(regression): failing tests for the two live P1s — comsub on non-UTF-8 files (#772) and the unbounded-producer hang (#761) #777.527bb98).$PREFIX/tmp/rb-master,$PREFIX/tmp/wt-358,$PREFIX/tmp/wt-761) and~/bench_niudrafts lived on the returned device — gone with it; the only surviving artifact is remote branchrescue/stash-perf-680-mapfile-input-side(documented on [EOL] tablet returned: unfinished verification for #762 + queued lanes #787).Closing as completed.
docs(readme): captured artifacts for quickstart and identity, restruc…
docs(readme): path-dialect copy to the unixwin#748/unixwin#779 genera…
docs(contract): sync windows-path-contract to the unixwin#748/unixwin…