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
第一个失败样例(真实 worker 58f6e28,修改前实测):PTC 步 ops_inspect_local_file 指向目录 → status:"error", code:"INVALID_ARGUMENT", message:"inspect_local_file: path is a directory; choose a file, or list directory entries with the shell"——PTC 写域根本没有 shell,这是死指针;nextAction 只有 "Correct the request or inspect the manifest.",没有任何当前作用域可执行的恢复动作。同类实测:ERR_INVALID_ENCODING 只说 "or inspect with view=hex" 无参数化动作;REVISION_CONFLICT 只说 "Inspect the current revision" 不给出取新 expectedRevision 的具体读调用;partial 只有 opaque continuation,没有显式参数合法的下一步。
Activity
Thatgfsj commentedon Nov 19, 2026
984 / main@58f6e28 / 要改的文件:src/projections/ptc/next-step.ts(新增,纯函数下一步推荐器)、src/projections/ptc/outcome.ts、src/kernel/outcome.ts、src/projections/ptc/schema.ts、src/projections/ptc/contract.ts。接线扩大写域(先说明):src/projections/canonical-output.ts 与 src/projections/native/runtime.ts——共享文件 API 的最终派发在共享 runtime 里走 toOutcome,不经 publication 闭包,要按 P1 的本步可达集合判据给投影层传入 callable 集合与只读标记,必须接在这两处。测试:test/ptc-outcome.test.mjs、test/ptc-projection-worker.test.mjs、test/canonical-file-runtime.test.mjs。
第一个失败样例(真实 worker 58f6e28,修改前实测):PTC 步 ops_inspect_local_file 指向目录 →
status:"error", code:"INVALID_ARGUMENT", message:"inspect_local_file: path is a directory; choose a file, or list directory entries with the shell"——PTC 写域根本没有 shell,这是死指针;nextAction 只有 "Correct the request or inspect the manifest.",没有任何当前作用域可执行的恢复动作。同类实测:ERR_INVALID_ENCODING 只说 "or inspect with view=hex" 无参数化动作;REVISION_CONFLICT 只说 "Inspect the current revision" 不给出取新 expectedRevision 的具体读调用;partial 只有 opaque continuation,没有显式参数合法的下一步。Thatgfsj commentedon Nov 19, 2026
完成(A 侧实现)。
分支
card/p6-outcome-nextsteps(基于 main @ 58f6e28),PR #1019:#1019交付:
src/projections/ptc/next-step.ts(新增纯函数推荐器)+outcome.ts/schema.ts/contract.ts集成 +kernel/outcome.tspartial 变体新增可选nextAction;接线落在共享派发路径canonical-output.ts+native/runtime.ts(按认领评论所述扩大写域),在派发时用宿主准入的工具集解析本步可达集合与只读标记。验收对照:
nextAction给出同路径offset=6续读调用;complete=true页无 nextAction 即停,实测 3 页读完 11 行(ptc-projection-worker 'paged reads follow the recommended next action to a complete stop')。ops_glob可达 → 参数化ops_glob {"path":...,"pattern":["*"]}(canonical-file-runtime 真宿主 toolSet 验证)。ERR_INVALID_ENCODING→ops_inspect_local_file {"path":...,"view":"hex"};read_files项错误推荐跨工具 hex 读取,且不把 continuation 原样塞给不接受 view 的工具。红绿记录:先提交失败断言(24f0111)——ptc-outcome 5/17、ptc-projection-worker 2/9、canonical-file-runtime 1/2 失败;实现(d78a387)后三套件 17/9/2 全绿,相邻回归 20+ 套件通过;文档(a1b4a9b)中英文 + CHANGELOG 同步。定向验证用
runtime/linux-x64/dsh-ops-worker(2b5f988d…);npm run build与npm run check:size(822 文件全部 ≤1000 行)通过。