From bc22cf33761c5d28237aaf84955127f1acbd04fc Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 04:11:06 +0000 Subject: [PATCH 1/2] docs(os-dev): a run past the foreground limit is declared NOT MEASURED, never sent to the background MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The resource-discipline bullet prescribed `nohup … &` plus `tail --pid` for anything past the foreground limit. Dev sessions' permission classifier refuses that form, so a dev following the agent file lost the run. The bullet now says: no background run in any spelling; the run is declared in the `--ran` record as `NOT-MEASURED :: ` and CI carries it. The clean-finish line that told a dev to read a still-running gate's log at report time now says a report holds no gate that is still running. Byte-neutral: 113 + 119 bytes out, 129 + 103 bytes in; the file stays at 33491 bytes, its ceiling. Claude-Session: https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25 Co-authored-by: Claude --- .claude/agents/os-dev.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude/agents/os-dev.md b/.claude/agents/os-dev.md index 73f100e3e7d..70ff57e3bbf 100644 --- a/.claude/agents/os-dev.md +++ b/.claude/agents/os-dev.md @@ -87,7 +87,7 @@ model: opus - `bash scripts/pm/os-verify-lock.sh -c ''`(或 `-- `);⛔ 永不手搓 `flock`/lockfile。 - 一次前台调用领全部等待预算,阻塞到拿锁或 99;⛔ 不轮询重试。 - 它不保证机器空闲:`check:*` 门禁、install、dev server 不走它,与持锁同核并跑。 - - 超前台上限者(`check:pm-dispatch-gates`、全量 dogfood):`nohup … > LOG 2>&1 &` 后 `tail --pid`。 + - 前台上限内跑不完者 ⛔ 不转后台(任何拼法):`--ran` 记 `NOT-MEASURED :: <实测原因>`,归 CI。 - 锁下墙钟绝对值是共享盒读数;只包命令本身,不包你的阅读与判断。 - 结论读它印的 `VERDICT command-exit` 行,⛔ 不读裸 `$?`;按到达序授予。 2. **压住堆**:重命令前缀 `NODE_OPTIONS=--max-old-space-size=4096`,要抬需给理由。 @@ -290,7 +290,7 @@ model: opus - 两条合法出路:在轮内同步等它(资源纪律的排队条款:限时获取 ⇒ 无锁工作 ⇒ 再取)。 - 或者收窄这次检查的范围并在报告里申报:已申报的收窄是被接受的偏差,CI 跑满农场。 - PM L1 审核的是 CI 收敛,不是你本地的覆盖面;未申报的收窄不在此列,那是漏跑。 - - 比回合长的门禁在写报告那一刻读日志(重定向目标);未完成的记 NOT MEASURED 并写原因。 + - 报告里没有还在跑的门禁:前台没跑完的记 NOT MEASURED 并写实测原因,归 CI。 - 结束一轮之前自检:最后一条消息是否在描述你不拥有的进程给你的唤醒? ## 何时停手不写码 From b469dcec15a9683a9e4cf34b5659724aef9bd6a7 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 04:11:15 +0000 Subject: [PATCH 2/2] docs(pm-dispatch): the dispatch-gates reading names a foreground run, not a detached one The CI readings file carried the same refused prescription for `check:pm-dispatch-gates` (detach plus `tail --pid`) beside a reading of 1216-1246 s. Re-measured at 0124851b on a quiet 4-core box: the fast tier, which is what a dev box runs with no flag, finished in 404 s in the foreground with exit 0, inside the 600 s foreground limit. The line now carries that reading and no detach. 119 bytes out, 114 bytes in; the file goes 4896 -> 4891 bytes under its 4900 ceiling, which is not moved. Claude-Session: https://claude.ai/code/session_01ADHkmRJUY9Ncce14hVHd25 Co-authored-by: Claude --- .claude/skills/pm-dispatch/references/readings-ci.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/skills/pm-dispatch/references/readings-ci.md b/.claude/skills/pm-dispatch/references/readings-ci.md index 8e915f5f6c0..f9df157458f 100644 --- a/.claude/skills/pm-dispatch/references/readings-ci.md +++ b/.claude/skills/pm-dispatch/references/readings-ci.md @@ -45,5 +45,5 @@ - corepack 下载 pnpm 可在检查体开跑前崩 undici(`assert(!this.paused)`)⇒ 是基础设施红。 - `check-governed-merges` 浅克隆上拒答而非少报,并报未审计仓数;补救 `git fetch --shallow-since=`。 - ⛔ 不越过该拒答自行枚举:短清单读作合规;加深日期取窗口起点之前,不猜深度。 -- `check:pm-dispatch-gates` 1216–1246 秒超容器上限 ⇒ 不走锁,detach 加 `tail --pid=$!`;超时非读数。 +- `check:pm-dispatch-gates` 快档前台 404 秒(闲盒 4 核,0124851b)⇒ 前台跑,不走锁;超时非读数。 - `check-half-states.mjs` 连 `--help` 都跑整仓 I/O ⇒ 早读到的输出文件是空的,不是干净的。