Repository navigation
Description
一句话结论
OMP 把 agent output、artifact、history、issue/PR、skill 等投影为 URI,并让通用 read / grep 复用;OpenPI 已能落盘多类 Subagent、Workflow、Background Terminal 产物,但各 owner 的上游截断、完整性、引用格式和恢复生命周期不同。
值得研究的是一个 薄的、Pi-native resource reference contract:统一“怎么引用、怎么证明 owner、怎么按需读取”,同时保留各 extension 对生命周期和存储的所有权。不要复制 OMP 的 process-global router。
固定证据
对比固定在:
- OpenPI
main@2a69d3f32994da4123f1312b7fa84ef3d6119be1 - OMP
main@7623b960540518bb1291808bbae28332065e9dba
OMP 当前:
- process-global router 注册
agent://、artifact://、history://、issue://、pr://、skill://、xd://等 handler:router - 通用
readschema 接受 local path、internal URI 或 URL:read surface grep也理解 internal URL 与 line selector;长工具输出可留下artifact://<id>恢复引用:grep resource handling, recoverable output
OpenPI 当前已经有的优势:
- Direct Subagent 的长 manager snapshot 可保存为 content-addressed、immutable、私有权限文件,并给 Pi native
read一个真实 path;但 manager 已先把 backend final 限制为1,024 × 1,024个 JS code units,因此该 artifact 不能证明更早的 backend output 完整性:manager cap, subagent artifact, bounded projection - Workflow 对 transcript、agent result、journal、result/workflow manifest 分别持久化并有独立预算:workflow artifacts, agent result
- 各能力工具面保持 owner 分组与渐进披露:tool ownership
为什么值得讨论
现在模型拿到的恢复入口可能是:
- 一个绝对文件 path;
- 一个 run-relative artifact;
- 一个 tool-specific id;
- 一个需要调用
subagent_check/workflow_status/bg_watch才能继续读取的对象。
这些都能工作,但跨能力综合时,父模型需要记住多套寻址方式。一个小而稳定的 reference shape 可以让 projection 更短、handoff 更可移植,也能减少为了“读完整产物”新增 workflow-specific model tools 的压力。
关键边界:不要照搬 OMP 的全局路由
OMP 的全局 router 对独立产品合理,但 OpenPI 的 contract 要求 Pi 继续拥有 Session、普通 tools 和 source of truth。建议只研究:
type OpenPiResourceRef = {
owner: "subagent" | "workflow" | "background";
id: string;
revision?: string;
mediaType?: string;
byteLength?: number;
}这只是示意,不是预先批准的 API。resolve 必须回到 owner extension 或 Pi 已有 resource seam;不能建立第二个全局存储表。
需要回答的问题
- Pi 是否已有 extension resource / attachment / artifact seam 可复用?
- reference 如何绑定 Session/branch/run owner,避免 stale id 指向错误对象?
- path 型 artifact 如何防目录穿越、symlink、跨 trust root 与清理后悬空?
- immutable artifact、live stream、owner-lost workflow 的读取语义是否必须不同?
- 是否只需要统一 metadata/ref,不需要统一 read/grep?
- handoff/resume 后引用如何证明仍可读?不可读时如何明确失败?
- 是否能保持 ordinary parent turn zero-resident,仅在结果投影中出现 compact ref?
非目标
- 不为 issue/PR、skill、memory 重建一套 OpenPI URL scheme;
- 不接管 Pi native
read; - 不建立 process-global mutable router;
- 不把所有产物搬进同一目录或数据库;
- 不让 reference 绕过 child/tool 权限;
- 不用漂亮 URI 掩盖 artifact 已丢失或 owner uncertain。
完成条件
- 盘点 Pi 现有 resource/artifact seam,并先证明是否真的缺 seam
- 定义 owner、identity、revision、liveness、authorization 与 cleanup 语义
- 至少覆盖 Direct Subagent、Workflow、Background Terminal 三种不同 lifecycle
- stale、missing、owner-lost、unauthorized 必须是可区分失败
- reference 不增加普通回合常驻工具,读取仍服从 Pi trust/tool boundary
- 用一次跨能力 handoff 比较现状 path/id 文案与 compact ref 的 token/恢复成功率
- 若统一 abstraction 比三种 owner adapter 更复杂,记录不采用结论
与现有 Issue 的关系
- 研究 OMP:模型能力 × Harness 脚手架强度的收益曲线 #45:已把 OMP 的 FS-shaped capability 识别为候选机制
- 子代理超长结果:保留首尾、持久化完整 final artifact,并支持按需恢复 #64:Direct Subagent 超长 final artifact,已完成
- Workflow 大规模结果汇聚:公平 handoff、分层 Report 与动态父会话投影 #90:Workflow 大规模 handoff 与分层 Report
- workflows: terminal artifact set (result.json + workflow.json) is not committed atomically #110/workflows: forced settlement can skip persisting worktree cleanup metadata (provenance loss) #114:Workflow artifact 原子性与 owner-lost provenance
- 本 Issue:只研究跨 owner 的引用合同,不改变各 owner 的持久化与终态责任
2026-09 fixed-source addendum: canonical bytes, bounded projections, recovery, and RAG boundary
Research status
Five independent source workstreams completed without failure, followed by synthesis and a separate adversarial verification pass.
Fixed baselines:
- OpenPI
2a69d3f32994da4123f1312b7fa84ef3d6119be1 - Pi
@earendil-works/[email protected] - Codex
a9e447a69dee4f2789dd8d8c776e314772c1f049 - Hermes
cbd8de8ad64530be01efea23b7764d5c37c634ed - Grok Build
c2ad97f87aea4303b6000a2c22128bc91ee76c9b - Gemini CLI
812f7a2bcf20b6e80e2e50c3c8fa8e26567bc1e8 - OpenCode
8615731d46153dd29b89e205fb55b2cc16205cb0 - Claude Code: official rolling documentation only; proprietary persistence internals remain unknown.
Material correction to the original Issue
The original wording overstates current preservation as “reliably persisted complete outputs.” At the fixed OpenPI revision, several “full” artifacts are exact only relative to an already bounded runtime value, not the backend/provider’s original output.
Direct Subagent
SubagentManager first slices a completed backend answer to 1,024 × 1,024 JavaScript code units:
s.finalText = outcome.finalText.slice(0, FINAL_TEXT_MAX_LENGTH);Only that bounded snapshot.finalText later reaches projectResult(). The SHA-256 artifact is immutable and byte-exact for the manager snapshot, but cannot prove preservation of backend output beyond the manager cap.
Evidence:
Therefore Issue #64’s “完整 final artifact” contract is satisfied only up to the manager cap. This Issue must not repeat it as complete backend output.
Workflow Agent
A Workflow child’s final assistant output is truncated to 64 KiB before it is returned to the coordinator:
output = truncateUtf8(finalOutput(childSession.messages), AGENT_OUTPUT_MAX_BYTES);persistWorkflowAgentResult() then uses encodeCompleteJson() and fails closed if the already-bounded result cannot fit its 2 MiB/depth/node/string budgets. Thus agent-results/agent-NNNN.json is complete-or-fail for the coordinator value, not for arbitrary child/provider output.
Evidence:
- 64 KiB runner cap
- output truncation before return
- fail-closed agent artifact
encodeCompleteJsoncontract
The separate result.json has weaker semantics. It uses safeStringify() and may contain normalized/truncated fields or an entire preview object when over budget. It is not a universal canonical result artifact.
Evidence:
Workflow result references
Workflow resultRef values live in an in-memory Map and are valid only in the same run. Persisting the opaque string does not make it resolvable after restart. A run-relative artifact path is provenance, not an automatically authorized child-readable handle.
Evidence: handoff registry.
Directory/privacy qualification
Direct-child CAS directories explicitly reject symlink components and use private modes. Workflow artifact files are written with 0600, but their recursively created directories do not establish a uniform explicit 0700 contract in this path. Documentation must describe owner-specific controls, not claim universal private artifact directories.
Evidence:
Required taxonomy
Use these terms consistently:
- Source execution bytes — bytes emitted by a provider, child process, tool or backend before OpenPI bounds them.
- Owner-normalized result — the value an owning extension accepts after parsing, caps and normalization.
- Canonical owner artifact — authoritative persisted bytes for that explicitly declared owner value.
- Transcript copy — Session/history representation; potentially compacted, masked or reconstructed.
- Bounded projection — a head/tail/preview derived for model or UI budgets.
- Resource reference — owner-bound identity and recovery metadata; neither storage nor authority.
- Live handle — process/session/run identity for observation/cancellation; not durable content identity.
- Search/index projection — rebuildable lookup state; never canonical evidence.
- Semantic retrieval/RAG — a derived candidate-selection system, not persistence or proof.
- Provider file object — provider-scoped upload/download identity; not local canonical evidence.
- Delivery receipt — evidence of transport attempt/outcome, independent from execution and completeness.
- UI rendering — presentation only.
The desired dependency direction is:
execution owner
→ declared owner-normalized value
→ optional canonical owner artifact
→ bounded projection + owner-bound reference
→ Pi-native read/search
→ model/UI
The declaration of what is canonical must name its boundary. “Complete” without “complete relative to X” is invalid.
Current OpenPI matrix
| Owner | Persisted material | Known bound before persistence | Projection/recovery semantics |
|---|---|---|---|
| Direct Subagent | SHA-256 text artifact for long manager snapshots; wx, 0600, collision verification |
manager slices backend final text to 1,048,576 JS code units | head/tail projection; Pi read path; artifact-write failure is explicit |
| Workflow Agent | agent-results/agent-NNNN.json, fail-closed encoding |
runner truncates final assistant output to 64 KiB | same-run handoff is bounded; run-relative path is provenance |
| Workflow transcript | transcripts.json |
per-entry and total artifact budgets; old middle omitted | explicitly bounded history copy, not canonical output |
| Workflow final result | result.json |
safeStringify, 1 MiB outer budget, normalization/preview fallback |
useful terminal artifact; completeness not guaranteed |
| Workflow journal | bounded journal.json |
old entries may be dropped at journal cap | replay projection; malformed/missing journal becomes a miss |
| Background terminal | per-stream temporary spill | spill cap, flush timeout and owner cleanup | bounded retained tail plus temporary path while owner retains it |
rg / fd capture |
temporary complete output only below capture cap | over-cap partial capture is deleted | Pi-standard bounded preview plus path when recoverable |
| Pi Session | JSONL branch transcript | compaction alters future model projection, not stored earlier entries | Session evidence, not a generic execution-artifact store |
This matrix exposes two different problems:
- reference inconsistency, already owned by design: 研究跨能力的可恢复资源引用,但不引入 OpenPI 全局资源路由器 #157;
- upstream evidence loss before an object called “full” is written, currently only documented here and overlapping 子代理超长结果:保留首尾、持久化完整 final artifact,并支持按需恢复 #64/Workflow 大规模结果汇聚:公平 handoff、分层 Report 与动态父会话投影 #90 contracts.
A reference cannot recover bytes that its owner discarded before publication.
Lifecycle and receipts
Artifact state must be orthogonal to execution and delivery:
Execution: accepted → running → completed | failed | aborted | uncertain
Resource: absent → writing → complete | partial | unavailable
complete|partial → stale | expired | deleted
Delivery: none → held-for-inline | pending → delivered | failed
A machine-readable receipt should keep at least:
executionStatus
ownerValueCompleteness
sourceCoverage
resourceStatus
deliveryStatus
Definitions:
- complete: canonical bytes are committed and match the declared owner value; this says nothing about bytes lost before that value was formed.
- partial: a known prefix/tail/range exists and omissions are known.
- uncertain: execution, side effects, terminal outcome or persistence cannot be proven.
- unavailable: no recoverable artifact was published.
- delivered: a transport completed; it does not imply any completeness state.
Publication rule: never emit a recovery reference before its target is readable. Spill failure, cap exhaustion, flush timeout, owner loss or missing data must never become empty success.
Identity, revision, liveness and authorization
If trace evidence eventually justifies #157’s thin contract, the smallest useful reference shape is approximately:
ownerKind
ownerId
ownerGeneration
relativeArtifactId
revisionOrDigest?
byteLength?
lineCount?
sourceCoverage
resourceCompleteness
createdAt
expiresAt?
This is not a pre-approved API. Resolution remains delegated to the owner extension.
Required behavior:
- constrain identifiers and resolve relative to the owner root;
- validate containment and real paths;
- reject traversal and symlink substitution;
- bind Session/run/generation so stale references cannot resolve to replacement owners;
- apply Pi Trust and parent/child tool authority independently of possession of the reference;
- distinguish
forbidden,missing,stale,expired,partial,unavailableanduncertain; - do not use absolute model-supplied paths as authority;
- do not introduce bearer-like global references or a process-global registry.
Content digest proves byte identity, not who produced the bytes or whether they cover the original execution stream. Replay fingerprint proves eligibility for reuse, not artifact identity. Live process ID proves liveness, not durable content.
Child, fork, resume, compaction and replay
- Direct child continuation uses the native child Pi Session, not its result artifact.
- Workflow operator reuse is same-run and in-memory; persisted
resultReftokens do not restore the registry. - A fork or child gets only the history/resources/tools explicitly reconstructed for it; a reference cannot widen child authority.
- Workflow replay identity remains separate from artifact identity.
- A verified replay hit reuses a persisted result; a missing/malformed journal is a miss, not proof of prior failure.
- Compaction summaries and bounded transcripts are derived context. They cannot establish that all execution evidence remains recoverable.
- Workflow artifact files are individually atomic; workflows: terminal artifact set (result.json + workflow.json) is not committed atomically #110 separately owns the crash window across the terminal artifact set.
- Cleanup provenance and owner-loss preservation remain workflows: forced settlement can skip persisting worktree cleanup metadata (provenance loss) #114’s scope.
Cross-system findings
Codex
At a9e447a, rollout/thread storage is the primary durable execution-history source used for resume/fork reconstruction. Exec results retain truncation metadata such as original token count and omitted bytes, but the inspected path does not provide a universal stable spill artifact or range/search API for every omitted output.
Knowing that bytes were omitted is stronger than silent truncation, but it is not recovery.
Codex can also transform declared MCP file parameters into provider file IDs/download URLs. Those provider objects have a different authority, retention and identity plane from local execution artifacts.
Sources:
Claude Code
Official rolling documentation establishes persisted/resumable Sessions, transcript export, tools, MCP resources, background work and subagents. It does not expose enough implementation detail to prove:
- a universal canonical artifact store;
- exact preservation after tool-output truncation;
- provider-file ownership and retention;
- a single range/search resource-reference contract;
- internal semantic retrieval over execution evidence.
UI labels such as file, result, transcript or download are not sufficient evidence.
Sources:
- https://code.claude.com/docs/en/sessions
- https://code.claude.com/docs/en/tools-reference
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/agent-sdk/session-storage
Hermes
Hermes documents large-result spill paths and offset-based read_file recovery, and its SQLite/FTS search returns derived snippets/metadata. In the pinned checkout, imported spill modules were absent from the inspected source tree, so spill atomicity, TTL and all-path authorization must remain unknown rather than inferred from documentation.
Session FTS is an index projection. It does not make snippets canonical evidence.
Source: Hermes fixed tree.
Grok Build
Grok distinguishes authoritative updates.jsonl from a rebuildable chat-history cache. Background task/subagent records expose live task identity, output path, total bytes and truncation state; output can be fetched on demand, and ordinary files support ranged reads.
Its FTS and optional vector mechanisms are search/memory projections, not universal execution-artifact authority. A generic content-addressed result plane and delivery receipt were not established by the inspected fixed source.
Source: Grok Build fixed tree.
Gemini CLI
Gemini can mask older tool output from model history while writing the prior content under project-temporary tool-output files and replacing it with size/line/path metadata. This is spill-plus-projection, not immutable content addressing.
Checkpoint files in the inspected path are direct writes rather than a proven transactional artifact set; invalid/missing checkpoint loading can fall back to empty history. Provider content parts remain distinct from local canonical evidence.
Sources:
OpenCode
OpenCode persists tool calls/results as Session parts and carries truncation/output-path metadata for managed outputs. Attachments may become provider-shaped media/data parts. Compaction can clear old model-visible tool content while retaining Session metadata.
The supplied pinned checkout did not expose enough of the managed truncation implementation to establish exact storage limits, atomicity, cleanup or symlink behavior. No semantic execution-evidence index or universal artifact receipt was proven.
Sources:
RAG and index boundary
Execution owners may expose stable text references. They must not silently become a semantic-memory subsystem.
- Pi
readplus ordinary text search remains the default recovery path. - Search indexes are rebuildable projections, never evidence authority.
- This Issue does not create chunking, embeddings, reranking, citations, a vector DB or cross-run corpus.
- Any future semantic indexing requires memory: 研究 Project-scoped Durable Learning,并严格区分事实、经验与 Skill #167’s durable-learning decisions for source authorization, provenance, invalidation, retention and user control.
- Bounded transcripts must not be vectorized and described as complete execution-evidence retrieval.
- Index commit and canonical artifact commit require separate receipts; an index failure cannot retroactively make a durable artifact write fail, and an artifact write cannot be reported searchable before index confirmation.
Retention, deletion and privacy
Retention remains owner-specific. A thin reference may report owner policy and current liveness but must not add global garbage collection.
Documentation must distinguish:
- immutable content identity from indefinite retention;
- temporary spill lifetime from Session lifetime;
- owner-lost artifacts from live handles;
- deletion success from reference invalidation;
- filesystem mode from per-artifact authorization;
- local artifact bytes from provider-hosted file retention;
- redaction/secret scanning from truncation.
Unknowns at the fixed revision include a uniform TTL, sensitivity classification, redaction ledger, universal artifact ACL, deletion reason/timestamp, crash durability via file/directory fsync, and cross-owner retention manifest.
Correct relationship to existing Issues
- 子代理超长结果:保留首尾、持久化完整 final artifact,并支持按需恢复 #64 closed the direct-child head/tail + CAS projection gap, but its “full” wording is bounded by the manager’s upstream 1 Mi-code-unit slice.
- Workflow 大规模结果汇聚:公平 handoff、分层 Report 与动态父会话投影 #90 owns fair Workflow handoff, layered reports and parent projection; it already identifies the missing exact upstream result contract.
- workflows: terminal artifact set (result.json + workflow.json) is not committed atomically #110 owns multi-file terminal artifact-set atomicity.
- workflows: forced settlement can skip persisting worktree cleanup metadata (provenance loss) #114 owns forced-settlement cleanup provenance loss.
- design: 研究跨能力的可恢复资源引用,但不引入 OpenPI 全局资源路由器 #157 owns only the decision on a thin cross-owner recoverable-reference contract.
- memory: 研究 Project-scoped Durable Learning,并严格区分事实、经验与 Skill #167 owns user-controlled durable learning; any future semantic retrieval needs that authority/provenance design.
- docs(session): define lifecycle, recovery, replay, and side-effect boundaries #193 owns Session/replay lifecycle semantics; artifact identity must not replace Session or replay identity.
Decision
Do not implement a new artifact runtime now.
- First correct documentation and tests so “complete” always names the owner boundary.
- Collect concrete traces where existing paths plus Pi
read/text search fail materially. - If such traces justify design: 研究跨能力的可恢复资源引用,但不引入 OpenPI 全局资源路由器 #157, define one compact internal reference shape shared by existing owner adapters.
- Keep resolution, retention and authorization with each owner.
- Keep the reference absent from child tool surfaces unless independently classified child-safe.
- Add no global store, URI router, database, index, RAG service or model-facing read/search tool.
Revised acceptance criteria
- Documentation distinguishes source execution bytes, owner-normalized values, canonical owner artifacts, transcripts, projections, references, live handles, indexes, provider objects, delivery and UI.
- 子代理超长结果:保留首尾、持久化完整 final artifact,并支持按需恢复 #64 documentation/tests acknowledge the manager’s pre-artifact
1,024 × 1,024code-unit cap. - Workflow documentation/tests acknowledge the runner’s pre-artifact 64 KiB output cap.
-
agent-results/*.jsonis called complete only relative to the coordinator result and fail-closed encoder. -
result.json,transcripts.jsonand bounded journal are never called universally canonical. - Persisted opaque
resultRefis not described as restart-resolvable. - Every recovery footer names owner, declared completeness boundary, omissions and lifetime.
- Complete/partial/unavailable/uncertain are independently representable from execution and delivery status.
- A reference is published only after readable bytes exist.
- Owner mismatch, traversal, symlink substitution, stale generation, missing artifact, expiry and Trust failure fail closed.
- Child/fork/resume cannot gain authority merely by receiving a reference.
- Replay identity and artifact identity remain separate.
- Individual-file atomicity is not confused with workflows: terminal artifact set (result.json + workflow.json) is not committed atomically #110’s artifact-set transaction gap.
- Retention/deletion remain owner-specific and preserve workflows: forced settlement can skip persisting worktree cleanup metadata (provenance loss) #114 provenance.
- Pi-native
readand ordinary text search remain the recovery mechanism. - Semantic indexing/RAG remains outside design: 研究跨能力的可恢复资源引用,但不引入 OpenPI 全局资源路由器 #157 and requires memory: 研究 Project-scoped Durable Learning,并严格区分事实、经验与 Skill #167’s authority/provenance contract.
- Index/search projections are never canonical and receive separate commit/availability receipts.
- No global router, artifact store, vector DB, provider-file abstraction, model-facing recovery tool or second storage plane is added without independently measured need.
Activity
627150795 commentedon Aug 28, 2026
Hi! I would like to work on this design/research issue.
I will document a thin, Pi-native resource-reference contract covering identity, owner, lifecycle, invalidation, recovery, permissions, persistence, replay, and branch boundaries. I will keep the contribution documentation-only and will not introduce a process-global resource router or change runtime/API/UI behavior.
627150795 commentedon Aug 28, 2026
Update: the owner-scoped recoverable resource reference contract is implemented in PR #252: #252
Validation completed:
git diff --cached --check,bun run lint, andbun run typecheckpassed. This is documentation-only; existing Subagent, Workflow, Background Terminal, Session, and artifact owners remain unchanged, with no process-global router added. The PR uses the repository template and will close this issue when merged.testikun commentedon Sep 4, 2026
我来认领 #157 尚未落地的运行时代码阶段,不重复已有研究结论,也不建设全局 URI/router。
技术方案:建立薄的 owner-bound resource reference primitive,统一 owner、identity、revision、media type、byte length、liveness 与恢复失败分类;由 Direct Subagent、Workflow、Background Terminal 各自 adapter 生成,存储、授权、cleanup 与 canonical artifact 仍归 producer 所有。stale、missing、owner-lost、unauthorized、traversal 与 symlink substitution 会 fail-closed 且可区分;普通 Pi
read/Trust 边界不变,未出现引用的普通 turn 零常驻工具成本。实现已完成:PR #379
验证结果:
bun run check通过;该 PR 没有修改 UI,因此不适用真实 UI 截图要求。
tt-a1i commentedon Sep 8, 2026
2026-09-08 目录补一个附件/provenance 对照,不新开 Discussion。
@narumitw/pi-file-contextnpm 0.54.2:选文件/行/diff hunk,附加带 Git provenance 的不可变快照。这更像本 Issue 的「可恢复资源引用」和 #441 attachments,不是全局资源路由器。本轮未安装、未运行。不提议安装器。
tt-a1i commentedon Sep 9, 2026
2026-09-09 源码对照(未安装、未运行、未
pi install)。本 checkouta9b40f0044ee59c360a6077c1c0bdbdbd30da10b与 last-seenorigin/main0d17f4577fe31315fe6c95370d251bdb4e2413cf都还没有extensions/shared/resource-reference.ts,也没有 process-global URI 路由器。#252 已关未合;#379 仍 open。不把未合 PR 当成已落地。OpenPI 已经有的可恢复面仍是各 owner 自己的,不能并成第二 store:
fd/rg/git_*:session temp,最多 10 MiB,session_shutdown尽力删;cache/openpi/subagent-results/<sha256>.txt,无 TTL,相对 manager 的1,024×1,024code-unit cap;agent-results/agent-NNNN.json是协调器值的 complete-or-absent;内存resultRef不能跨进程解析;路径是 provenance,不是 child handle;disposeAll删目录。Pi Session JSONL、
DefaultResourceLoader、/sessions预览、journal.json、result.json、#441 attachments、#518 fingerprint 都不是这条引用合同。OMP
InternalUrlRouter.instance()在 #157 钉的7623b960与 later856d937都是 process-global,15 个 handler,含pr://;readschema 接受 internal URI;artifact://<n>跨 session artifacts 目录按数字前缀扫描。pr://是 GitHub-as-FS + SQLite cache,不是 OpenPI/pr的 lookup。这是硬 OMP,不是 #157 该学的。薄引用如果做,只能是 owner adapter 上的 metadata:存储/授权/cleanup 仍归 producer,resolve 回 owner,零常驻工具,Pi
read/Trust 不变。不新开帖。本地研究稿:docs/research/EXPERIMENT_RESOURCE_REFS_2026-09-09.md(未提交)。不重做本 Issue 已有 taxonomy。tt-a1i commentedon Sep 9, 2026
2026-09-09 leftover follow-up(未安装、未运行、未
pi install、未实现)。不重写本 Issue 已有 taxonomy,也不重做同日 RESOURCE_REFS 的路由器库存。本 checkout
a9b40f0044ee59c360a6077c1c0bdbdbd30da10b(0.4.0)与 last-seenorigin/main0d17f4577fe31315fe6c95370d251bdb4e2413cf(0.8.1)都还没有extensions/shared/resource-reference.ts。git grep origin/main '*.ts'对resourceRef|OpenPiResource零命中。originWORKFLOW_ARTIFACT_COMMIT.mdblob58f057b8里的「resource-reference fields」是给将来字段留的可变投影豁免,不是已落地模块。#157 实际要的是 execution owner 已经落盘之后 的薄、owner-bound 说话方式(owner / id / completeness-relative-to-X / lifetime),不是 scheme 表。示意类型与未合 #379 tip
441a37d717c71ff3d2a54b5253dc3bdf19e189d5的OpenPiResourceOwner都只有"subagent" | "workflow" | "background"。#379resource-reference.tsSHA-2560644f90b600fa3d4f36523953b49ea133fc3046a540b8f031646e5d4d86dd38e:createOwnerFileResourceRef只在普通非 symlink 文件位于 owner root 内时发布;catch { return [] };possession never grants authority。那是 leftover 形状,不是本树或 0.8.1 运行时。不要把 #379 当成已落地。谁已经拥有字节(本树):
cache/openpi/subagent-results/<sha256>.txt,无 TTL,相对 manager1,024×1,024code-unit cap;写失败不广告假路径。agent-results/agent-NNNN.json是协调器值的 complete-or-absent;handoff.ts两边同一 blob666429ee:「provenance, not a child-readable handle」;内存resultRef不能跨进程。disposeAll删目录。fd/rgtemp、ResourceLoader/SourceInfo、PromptOptions.images、#441 staging、#518 fingerprint、origin WebrecoveryAvailable(不投影spillPath)都不是第四个 owner。#252 仍是 #277 源记录,不要 rebase。Decision 原文仍适用:现在不要实现新的 artifact runtime。不建路由器,不接管 Pi
read,不常驻read_ref,不加attachment/web/search/workspaceowner。本轮不评论 #518 / #441 / #169。本地研究稿:
docs/research/EXPERIMENT_OWNER_REFS_157_2026-09-09.md(git hash-objecte81d17baa55ad00351120758d9d4b92e43f6c7fb;未提交)。不替换 RESOURCE_REFS / ATTACHMENTS / WEB_PANELS / 277_LEFTOVERS。