Skip to content

fix(agent-cards): describe the report as lich's notification envelope - #105

Merged
omartelo merged 3 commits into
mainfrom
feat/envelope-texts
Nov 22, 2026
Merged

omartelo merged 3 commits into
mainfrom
feat/envelope-texts

Conversation

@omartelo

Copy link
Copy Markdown
Collaborator

lich no longer sends [lich] notes: everything it hands an agent is a <lich-notification version="1" kind="..."> envelope (docs/hooks/notification.md in lich). The texts this plugin adds to a session still described the old note, so they now name the envelope.

  • hooks/prompt-text.js: the agent-cards note (backgrounded) and the interrupted denial (denyInterrupted) say, in all seven prompt languages, that the report arrives at the prompt by itself as a <lich-notification kind="worker-finished">, so there is nothing to poll and no need to call wait_for_answer. The old "not as a task notification" clause is dropped: the mod still wraps the envelope in a <task-notification>, so it no longer held.
  • hooks/agent-cards.js, README.md, docs/agent-cards.md: the same wording in comments and docs.
  • tests/fixtures/mod-commands.json is read at lich's merge commit 1f4166bf, whose prompt examples (m10, m11) are envelopes; that contract is in no lich release yet, so tests/refresh-fixtures.sh pins that commit for this one file, as it did for mod-answer, session-state and mod-status. The mod-control test that mirrors those examples follows.

No plugin code recognised lich's messages by the [lich] prefix, so nothing else changes.

This ships as a minor (0.22.0) so that a lich still sending [lich] notes never installs texts describing the envelope; it needs the lich release after v0.92.0, which raises its plugin ceiling to 0.23.0.

Test plan

  • node --test tests/*.test.mjs: 492 pass.
  • claude plugin test .: 33 pass.
  • tests/refresh-fixtures.sh leaves no diff.

The texts the Agent call answers with said a worker's report arrives as a
[lich] note, which lich replaced with <lich-notification> envelopes. They now
name the worker-finished envelope in every locale, and drop the claim that it
is not a task notification: the mod still wraps it in one.
@omartelo
omartelo merged commit 431bc4f into main Nov 22, 2026
2 checks passed
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