You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am taking a narrowly scoped part of this issue: make Subagent worktree cleanup failures visible when spawn aborts, while preserving the original spawn error and the checkout/branch recovery location. I will not duplicate the already-landed recursive test discovery work or claim the unrelated import/peer-version items.
Update: the cleanup-observability slice is available in PR #258: https://github.com/tt-a1i/openpi/pull/258\n\nIt preserves the original spawn error and now exposes cleanup warnings/failures plus the checkout or branch recovery location. Focused helper tests were added. git diff --check, lint, and typecheck passed. The full worktree suite had one unrelated Windows core.autocrlf line-ending failure (23/24 passed), which is recorded in the PR; this does not change the scope of the fix.
Validation correction for PR #258: with a per-process core.autocrlf=false setting, the complete worktree suite passes 24/24. The default Windows setting produces the one unrelated LF-vs-CRLF assertion mismatch already recorded in the PR.
2026-09-09 peer / version pin (source-read + live pi list, no install)
#73 body still describes README 0.84.1+ / dev ^0.84.1 / Pi+typebox peer *. That sentence is still true on this checkout. It is stale for origin/main and for npm @tt-a1i/[email protected]. This comment does not rewrite the historical issue text, does not change peer ranges, and does not claim the other four #73 slices are done on every tree.
Pins (2026-09-09):
Object
SHA / version
OpenPI checkout (this worktree)
a9b40f0044ee59c360a6077c1c0bdbdbd30da10b — package 0.4.0, peer three Pi packages + typebox *, bun.lock / node_modules0.84.1, README 0.84.1+, SETUP.md has no Pi floor, extensions/setup/package-contract.test.ts asserts *
origin/main
0d17f4577fe31315fe6c95370d251bdb4e2413cf — package 0.8.1, Pi peer >=0.85.1, typebox still *, bun.lock 0.85.1, README/SETUP 0.85.1+
20fbcff33aac8f4de29fa1e184d7dbd4e4177d53 (PR #410, closes #395; not an ancestor of a9b40f0). Floor jumped to 0.85.1 because Pi 0.85.0 broke SDK consumers; this is not a locked-vs-latest matrix and not #181 Phase 0.
pi --version0.85.1 (~/.bun/bin/pi and ~/.local/bin/pi are the same symlink)
pi list OpenPI source on this machine
not this checkout and not npm 0.8.1. Settings packages is npm:pi-web-access + ../../work/openpi-main-runtime → /Users/tushaokun/work/openpi-main-runtime @ ed9dbc1018f890fd54375f5371990ddfee8af5df, package 0.7.0, peer >=0.85.1, lock 0.85.1. ~/.pi/agent/npm/node_modules/@tt-a1i is empty. ed9dbc1..0d17f45 is 5 commits.
So operators can silently edit 0.4.0 / lock 0.84.1 / peer * while the host is Pi 0.85.1 and the loaded OpenPI is a third tree (local path, version label 0.7.0, already on the 0.85.1 peer floor). Version numbers, Issue state, and README badges are not identity. Fail-closed evidence for “which Pi / which OpenPI” is the README provenance chain: checkout HEAD + package.json + lock, pi --version, pi list and that path’s HEAD+version. Missing one layer stays “unverified”.
Issue body last-verified is still the 2026-08-22 * sentence.
typebox peer is still * on checkout, origin, runtime, and every published 0.4.0–0.8.1.
>=0.85.1 has no upper bound; 0.86+ will not be rejected by the range.
Peer is a publish contract, not a loader. Origin .npmrclegacy-peer-deps=true exists so git installs omit-dev; pi list / settings decide which OpenPI source runs.
#181 refresh (already commented; not re-opened here):issuecomment-5594654560. Official Pi 0.85.1 is still dual-path (createAgentSession CLI/SDK; AgentHarness experimental). OpenPI on a9b40f0 and 0d17f45 is still AgentSession only. Peer/version leftover stays on #73.
Record: docs/research/EXPERIMENT_PI_PEER_73_2026-09-09.md (local research index; not committed by this pass). No new Issues. No peer/lock/README edit. No AgentHarness implementation. No pi install.
I would like to contribute the remaining peer-compatibility slice of this issue. I checked current main@5bf2fe29e52801d79826c2eb573be403f53285e5 (OpenPI 0.8.1): the three Pi peers are >=0.85.1, TypeBox remains *, and the package-contract test explicitly preserves those ranges. The packed Web CI smoke installs the locked Pi/TypeBox versions; it does not establish compatibility with every future version allowed by the peer ranges.
Before changing a published compatibility promise, which direction would you prefer?
Keep the existing peer ranges for now; add separately reported supported-baseline/latest-host installation and smoke evidence. This makes compatibility drift visible without rejecting previously accepted installs. A failed future-version probe would be evidence for a subsequent range decision, not automatic proof that the feature PR is broken.
Constrain the ranges to explicitly supported Pi/TypeBox versions, with matching documentation and tests. This prevents unverified future versions from being silently accepted but also narrows installation compatibility and needs an agreed support/update policy.
I recommend the evidence-first option unless the project has already adopted a bounded support policy. I will not alter peer/lock/README promises until this direction is confirmed. This would not duplicate #368 or the floor already shipped in #410, and would not close the whole of #73.
Activity
627150795 commentedon Aug 28, 2026
I am taking a narrowly scoped part of this issue: make Subagent worktree cleanup failures visible when spawn aborts, while preserving the original spawn error and the checkout/branch recovery location. I will not duplicate the already-landed recursive test discovery work or claim the unrelated import/peer-version items.
627150795 commentedon Aug 28, 2026
Update: the cleanup-observability slice is available in PR #258: https://github.com/tt-a1i/openpi/pull/258\n\nIt preserves the original spawn error and now exposes cleanup warnings/failures plus the checkout or branch recovery location. Focused helper tests were added. git diff --check, lint, and typecheck passed. The full worktree suite had one unrelated Windows core.autocrlf line-ending failure (23/24 passed), which is recorded in the PR; this does not change the scope of the fix.
627150795 commentedon Aug 28, 2026
Validation correction for PR #258: with a per-process core.autocrlf=false setting, the complete worktree suite passes 24/24. The default Windows setting produces the one unrelated LF-vs-CRLF assertion mismatch already recorded in the PR.
627150795 commentedon Aug 29, 2026
补充代码审计结果:PR #258 在“spawn 中止后的 worktree 清理”范围内有效,能保留原始错误并给出 checkout/branch 恢复位置。worktree 针对性测试在 core.autocrlf=false 下 24/24 通过;默认 Windows 的唯一失败是既有 CRLF 断言差异。正常会话结束清理路径不在该 PR 声明范围内,未将其误报为已覆盖。
627150795 commentedon Aug 29, 2026
复核后补齐一个真实漏报:spawn 中止时,若 checkout 已删但子代理分支因已有提交而保留、且清理没有附带 reason,之前不会提示恢复分支;现在会明确显示
branch ... remains。修复在 PR #258 最新提交a4445cd,远端 Node 22/24 与 Windows CI 全部通过。627150795 commentedon Aug 29, 2026
代码审计补丁已追加到本 PR:
removed: false同时覆盖“checkout 脏而保留”和“无法确认 checkout 状态”,旧提示会把未知状态误称为checkout preserved。checkout was not confirmed removed; inspect ...,不会给出错误的存在性结论;已有提交分支仍明确报告branch ... remains。fec084b。627150795 commentedon Aug 29, 2026
我来认领 #73 中尚未完成的“跨扩展内部 import”切片,范围只限
git-read仍直接依赖file-search/src/output.ts与file-search/src/process.ts的问题。计划:
src/会失败;extensions/shared/,不复制实现;bun run check与完整测试。本次不处理 peerDependencies 版本范围(需要兼容策略决策),也不重复已经落地的测试发现、worktree 清理和
as any项。完成并验证后再提交中文 PR。tt-a1i commentedon Sep 9, 2026
2026-09-09 peer / version pin (source-read + live
pi list, no install)#73 body still describes README
0.84.1+/ dev^0.84.1/ Pi+typebox peer*. That sentence is still true on this checkout. It is stale fororigin/mainand for npm@tt-a1i/[email protected]. This comment does not rewrite the historical issue text, does not change peer ranges, and does not claim the other four #73 slices are done on every tree.Pins (2026-09-09):
a9b40f0044ee59c360a6077c1c0bdbdbd30da10b— package 0.4.0, peer three Pi packages + typebox*, bun.lock /node_modules0.84.1, README0.84.1+,SETUP.mdhas no Pi floor,extensions/setup/package-contract.test.tsasserts*origin/main0d17f4577fe31315fe6c95370d251bdb4e2413cf— package 0.8.1, Pi peer>=0.85.1, typebox still*, bun.lock 0.85.1, README/SETUP0.85.1+@tt-a1i/openpilatestgitHeadnone; peer matches origin. Historical: 0.4.0 / 0.5.0 still*; 0.6.0+ already>=0.85.1v0.8.1a3edee28fec813582db6b3b1341754cef4597f8120fbcff33aac8f4de29fa1e184d7dbd4e4177d53(PR #410, closes #395; not an ancestor ofa9b40f0). Floor jumped to 0.85.1 because Pi 0.85.0 broke SDK consumers; this is not a locked-vs-latest matrix and not #181 Phase 0.@earendil-works/[email protected]gitHeadd981de1229ef899957bbe968bc8dcda02a21f477pi --version0.85.1 (~/.bun/bin/piand~/.local/bin/piare the same symlink)pi listOpenPI source on this machinepackagesisnpm:pi-web-access+../../work/openpi-main-runtime→/Users/tushaokun/work/openpi-main-runtime@ed9dbc1018f890fd54375f5371990ddfee8af5df, package 0.7.0, peer>=0.85.1, lock 0.85.1.~/.pi/agent/npm/node_modules/@tt-a1iis empty.ed9dbc1..0d17f45is 5 commits.So operators can silently edit 0.4.0 / lock 0.84.1 / peer
*while the host is Pi 0.85.1 and the loaded OpenPI is a third tree (local path, version label 0.7.0, already on the 0.85.1 peer floor). Version numbers, Issue state, and README badges are not identity. Fail-closed evidence for “which Pi / which OpenPI” is the README provenance chain: checkoutHEAD+package.json+ lock,pi --version,pi listand that path’sHEAD+version. Missing one layer stays “unverified”.#73 item 3 leftover (still this ticket):
*sentence.typeboxpeer is still*on checkout, origin, runtime, and every published 0.4.0–0.8.1.>=0.85.1has no upper bound; 0.86+ will not be rejected by the range..npmrclegacy-peer-deps=trueexists so git installs omit-dev;pi list/ settings decide which OpenPI source runs.a9b40f0without the rest of chore(deps): require Pi 0.85.1 and remove server shim #410 (lock, README, SETUP, moved package-contract,.npmrc). This tree’s contract test still requires*.Other #73 slices — do not close the issue from peer progress:
src/imports remain on both trees (git-read→file-search/src,workflows→subagents/src/agent-types). PR #368 is still OPEN..catch(() => {})), and sessionsas any[]are still ona9b40f0. They landed on origin via refactor(test): move suites into top-level tests directory #151 / fix(subagents): surface worktree cleanup failures #258 /4d126f1, which are not ancestors of this checkout.#181 refresh (already commented; not re-opened here): issuecomment-5594654560. Official Pi 0.85.1 is still dual-path (
createAgentSessionCLI/SDK;AgentHarnessexperimental). OpenPI ona9b40f0and0d17f45is still AgentSession only. Peer/version leftover stays on #73.Record:
docs/research/EXPERIMENT_PI_PEER_73_2026-09-09.md(local research index; not committed by this pass). No new Issues. No peer/lock/README edit. No AgentHarness implementation. Nopi install.ooiuuii commentedon Sep 11, 2026
I would like to contribute the remaining peer-compatibility slice of this issue. I checked current
main@5bf2fe29e52801d79826c2eb573be403f53285e5(OpenPI 0.8.1): the three Pi peers are>=0.85.1, TypeBox remains*, and the package-contract test explicitly preserves those ranges. The packed Web CI smoke installs the locked Pi/TypeBox versions; it does not establish compatibility with every future version allowed by the peer ranges.Before changing a published compatibility promise, which direction would you prefer?
I recommend the evidence-first option unless the project has already adopted a bounded support policy. I will not alter peer/lock/README promises until this direction is confirmed. This would not duplicate #368 or the floor already shipped in #410, and would not close the whole of #73.