Skip to content

feat: advertise usage, resume, fork and images; target OMP 18.20.2 - #21

Merged
dustPyrotechnic merged 9 commits into
mainfrom
feat/advertise-usage
Nov 15, 2026
Merged

dustPyrotechnic merged 9 commits into
mainfrom
feat/advertise-usage

Conversation

@dustPyrotechnic

Copy link
Copy Markdown
Collaborator

概要

  • initialize 宣告 _meta.lody.usage、sessionCapabilities.resume、sessionCapabilities.fork 和 promptCapabilities.image: true。loadSession 不宣告:该方法只做精确 sessionFile 切换,不重放历史,而 ACP session/load 要求重放,Lody 也把它当历史导入入口。
  • resource_link 按块顺序翻译成文字 <name>: <uri>。此前 Lody 发图片或文件附件时总会附带 resource_link,整条 prompt 会被拒绝。audio 和 resource 仍整条拒绝。
  • new/load/resume/fork 在交付 ACP 会话前应用并核实 Lody sessionConfig 里的显式模型(018)。
  • 连续的 assistant 消息之间补段落分隔。
  • 适配目标改为 OMP 18.20.2,上一稳定版回归目标为 18.20.1;18.18.x 转为历史证据。
  • 新增 scripts/capability-probe.mjs(不随 npm 包发布),用真实 OMP 加本地回环模型核对 resume、fork、图片和 resource_link。每个新的 OMP 目标行都要重跑。
  • 子 agent 状态正式移出 Release 1(012.017)。

证据

干净导出的 d6362de,独立安装的 npm 归档,macOS arm64 / Node 26.13.0:

  • npm run check 416 项通过,npm run build、node scripts/verify-package.mjs 通过。
  • OMP 18.20.2 和 18.20.1(官方 omp-darwin-arm64,大小与 SHA-256 已核对)上 smoke、contract、能力探针均退出 0。
  • 探针观察:fork 时源连接存活、源文件 SHA-256 不变、fork 出的会话带源历史;图片部件和链接文字到达同一个模型请求;resume 后模型请求带源历史。

细节见 TESTING.md 的 d6362de 记录、docs-ai/018-startup-session-config/001-action.md 和 docs-ai/019-capability-advertisement/001-action.md。

审核

  • 019 计划:非起草者两轮核对,第二轮允许实现。
  • 019 实现:非实现者三轮审核,src/ 的翻译和宣告未发现缺陷;探针的发现已修复。最后一批探针修复(d6362de)和文档记录的再审进行中,结论会补在本 PR。

不在本 PR 内

  • 不打 tag、不发布、不改 Lody manifest。RELEASE.md 的复选框没有改动。
  • 宣告的真实证据只有 macOS arm64 单一工具链;其他平台未验证。
  • 真实 Lody 界面上的恢复、fork、发图片和发附件未验收。
  • OMP 会把内联图片转码(探针里 PNG 变成 WebP),探针按文件签名核对图片部件,不比对原始字节。

Test plan

  • npm run check、npm run build、node scripts/verify-package.mjs
  • OMP 18.20.2 / 18.20.1:smoke、contract、capability probe
  • CI 矩阵
  • 维护者审核宣告集合和证据边界
  • 真实 Lody 界面验收

dustPyrotechnic and others added 9 commits November 8, 2026 16:40
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Consume Lody sessionConfig on new/load/resume/fork before the ACP session
is delivered, verifying the selected model and exact sessionFile (018).
Includes the assistant message separation change that was already in the
working tree.

Move the adaptation target to OMP 18.20.2 with 18.20.1 as the previous
stable regression target, and record the local smoke/contract evidence.
18.18.x rows become historical evidence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Translate ACP resource_link prompt blocks to "<name>: <uri>" text so Lody
image and file attachments no longer fail the whole prompt. Advertise
sessionCapabilities.resume, sessionCapabilities.fork and
promptCapabilities.image. loadSession stays unadvertised because the
adapter does not replay history.

Add scripts/capability-probe.mjs for real-OMP evidence of the advertised
capabilities, and record the reviewed plan (019) and the Release 1 scope
ruling (012.017).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Address the first independent review round: the probe now requires one
model request to carry a single decodable image part, the resource_link
text and the source history; re-checks the source file after prompting
the fork; asserts the reviewed capability set and that session files stay
in its temporary HOME; and reaps children on failure or signals. Cover
/rename with a resource_link attachment. Update README and COMPATIBILITY
to the advertised set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The probe killed the adapter's process group, which does not contain the
detached OMP child, and removed its temporary directory before OMP exited.
Close through stdin, then SIGTERM, with SIGKILL as a last resort, and wait
before removing the directory. Check image parts by file signature, assert
the forked file stays in the temporary HOME, and state the single-toolchain
evidence limit in COMPATIBILITY.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Clear the shutdown timers so the probe exits right after its verdict,
fail the run when an adapter had to be killed, and refuse new requests or
adapters once shutdown has started.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…action

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@dustPyrotechnic

Copy link
Copy Markdown
Collaborator Author

第四轮独立审核已完成(范围:d6362de 的探针修复和 66376bb 的证据记录)。

  • 审核者在 d6362de 的干净导出上独立复现了 check、build、verify-package,以及 OMP 18.20.2 和 18.20.1 上的 smoke、contract、能力探针,全部通过,观察值与 TESTING.md 一致。
  • 已解决并经再审确认:IR19-001 至 IR19-013、IR19-015。
  • 新发现 3 条,均为低:探针主流程不报告强杀(已修,未再审)、行动记录里一句关于审核轮次的陈述不准确、计划修订记录的一行指向不合格式。更正见 docs-ai/019-capability-advertisement/002-review-round-four.md。
  • 未验证:运行期间 OMP 是否访问外网;其他平台;真实 Lody 界面。

审核者的结论是实现和证据可以接受,没有给无保留的 clean。

@dustPyrotechnic
dustPyrotechnic merged commit 7fed78a into main Nov 15, 2026
12 checks passed
@dustPyrotechnic dustPyrotechnic mentioned this pull request Nov 15, 2026
1 of 2 tasks
@dustPyrotechnic
dustPyrotechnic deleted the feat/advertise-usage branch November 15, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant