Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .agents/skills/verify/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ A `FAIL <reason>` line in the load mode, or a `FAIL <name>: <reason>` line in ea
1. It copies `SoT/.omp/plugin` to `<scratch>/plugin` and links the copy. The copy holds the shipped `extensions/talk.js` and the manifest entry `./extensions/talk.js`. The copy keeps each symbolic link as it is, and the mode writes nothing into it. A copy without `extensions/talk.js` or without the manifest entry fails `install`.
2. Both omp processes use the private registry folder of V6.
3. The isolated `config.yml` sets `tools.commands: false`. Thus omp gives `talk` to the model as a provider tool and does not mount it as a Bash command.
4. It starts the peer as `omp --mode rpc` and sends RPC commands to it: `prompt`, `get_state`, `get_entries`, `new_session`, and `fork`. Each RPC response must have `success: true`, and each `get_entries` response must have an `entries` array of objects and a `leafId` that names one of them. Each entry has a string `id`, a string `type`, and a `parentId` that is `null` or names another entry. Each `custom_message` entry has a string `customType` and a string or array `content`. Each talk entry has a string `content` and `details.messageId` of 16 lowercase hex digits. Else the step fails. A delivered message is the entry with `type` `custom_message`, `customType` `talk`, and `details.messageId` equal to the message id of the result. An absent message is one whose message id and payload text are in no field of any entry of an answer that continues the kept answer of the session: after the step, a sentinel talk message goes to the same session, and the answer that holds it must contain every entry of the kept answer with the same `parentId`, each talk entry of the kept answer must be there again as a talk entry with the same `details.messageId` and `content`, and the parent chain from its `leafId` must hold the sentinel and the kept leaf. It runs the sender as `omp -p --mode json`. The fake model gives each process its own model id (`talk-peer`, `talk-sender`). The script writes each turn of the sender, and a turn waits until the script has acted on the peer, so one sender process does all the `talk` calls. The peer model answers an ask with a `reply` call. It holds the turn of the RPC prompt `SLOW-TURN: wait for the driver.` until the cancel check ends, so the peer is busy.
4. It starts the peer as `omp --mode rpc` and sends RPC commands to it: `prompt`, `get_state`, `get_entries`, `new_session`, and `fork`. Each RPC response must have `success: true`, and each `get_entries` response must have an `entries` array of objects and a `leafId` that names one of them. Each entry has a string `id`, a string `type`, and a `parentId` that is `null` or names another entry. Each `custom_message` entry has a string `customType` and a string or array `content`. Each talk entry has a string `content` and `details.messageId` of 16 lowercase hex digits. Else the step fails. A delivered message is the entry with `type` `custom_message`, `customType` `talk`, and `details.messageId` equal to the message id of the result. An absent message is one whose message id and payload text are in no field of any entry of an answer that continues the kept answer of the session: after the step, a sentinel talk message goes to the same session, and the answer that holds it must contain every entry of the kept answer with the same `parentId`, each talk entry of the kept answer must be there again as a talk entry with the same `details.messageId` and `content`, and the parent chain from its `leafId` must hold the sentinel and the kept leaf.

The sender runs as `omp -p --mode json`. Both processes can make background requests under their own model ID. The fake model ignores complete host reminders and joins the remaining text parts of each user message. It uses the last user instruction or tool result, not an earlier event copied into the request. A handover request gets `ok` without advancing the script.

The peer starts on `Reply with ok.` and replies to a delivered ask. It holds `SLOW-TURN: wait for the driver.` until release or the 30-second timeout. On success, the driver releases the peer after the cancel result and then checks that the cancelled message never arrived. The sender starts on `Do the scripted steps.`. Only the latest event can complete a pending call. A newer user instruction supersedes a copied result. The driver checks each opening prompt for `talk` before any scripted call.

Expected output of the `talk` mode, in order:

Expand Down Expand Up @@ -139,7 +143,7 @@ exit 0
| Line | Action | Expected result |
|---|---|---|
| `install` | Copy, link, and registry folder | Each omp command exits 0. The plugin copy has `extensions/talk.js` and the manifest entry `./extensions/talk.js`. The registry folder has mode 0700. |
| `talk-offered` | The first provider request of the peer (for the RPC prompt `Reply with ok.`) and of the sender | Each request offers the `talk` tool. The script makes no `talk` call before this check. |
| `talk-offered` | The first fixture turn of the peer (for the RPC prompt `Reply with ok.`) and of the sender (for the prompt `Do the scripted steps.`) | Each turn comes within 30 s and offers the `talk` tool. An auxiliary request before it does not count. The script makes no `talk` call before this check. |
| `talk-list` | Sender: `list`; again after 250 ms, at most 20 times | A line without `(this session)` shows the first 8 characters of the peer session id from RPC `get_state`. The script keeps the full instance id of that line. |
| `talk-send` | Sender: `send` with `to` set to the full peer session id | The result reads `Delivered:` and names the kept instance id. RPC `get_entries` of the peer holds the talk entry with that message id, and the answer of the turn that the message started comes after it. |
| `handover-refused` | Sender, a print-mode session: `handover` with `instance` set to the kept instance id and the note `talk smoke: handover note of the print session` (#260 H3) | The result holds `talk: the handover action needs an interactive omp session` and `Nothing was sent.`. No request that the fake model got during the call holds the handover template in a user message, so no side turn ran. A sentinel `send` to the same instance is delivered, the answer continues the `talk-send` answer, no entry holds the note, and no talk entry has `details.kind` `handover`. |
Expand Down Expand Up @@ -258,8 +262,10 @@ The other lines are as above. talk is off on this omp and registers no session,
| V6 prints `FAIL registry:` with `the default talk registry folder` | A session of the smoke registered in the default talk registry folder of the user, so an environment of the mode lost `DOCKS_KIT_TALK_DIR`. With `before it ended:`, the final scan found the entry: the session wrote it after its first check passed | Check that each environment that the mode derives starts from `run.env`, and that talk publishes each registration only in the folder that it chose at start. Do not remove the entry by hand while its omp process runs |
| V6 prints `FAIL registry:` with `which talk peers reject` | talk wrote a private entry that does not decode, or that has a wrong file name, endpoint, or socket path | Read the reason after `reject:`. Check `RegistryEntry` and `entryFault` in `cli/talk/transport/registry.ts` and the registration in `cli/talk/extension.ts` |
| V6 prints `FAIL registry:` with `is unsafe or unreadable` | A registry folder or one of its entries fails the talk trust rules: the folder is not a folder of the user with mode 0700, an ancestor is unsafe, or an entry name holds a named pipe, a link, or a file of another owner or mode | Read the reason: it names the path. When the default folder is at fault, inspect it with `ls -la`, and remove the object only when you know who made it |
| V6 `talk` prints `FAIL talk-offered` | omp did not load `talk.js`, or it mounted `talk` as a Bash command | Read the `extensions-loaded` line. Check that the omp version supports `tools.commands` (`omp --version`, V2) |
| V6 `talk` prints a `FAIL talk-`, `FAIL new-session-`, `FAIL fork-`, or `FAIL closed-peer-` line | The `talk` tool or the talk transport gave a wrong result; the reason quotes the tool result | Run `node node_modules/vitest/vitest.mjs run cli/test/unit/talk`, and check `cli/talk/tool/` and `cli/docs/talk-transport.md` |
| `FAIL talk-offered: the first fixture turn of the <peer or sender> took more than 30 s` | The responder did not identify an opening prompt before the deadline. It did not inspect that turn's tool list. | Check whether omp sent the prompt. If it did, compare its message format with `latestEvent` in `smokeTalkTurns.ts`. |
| `FAIL talk-offered: the first fixture turn of the <peer or sender> does not offer the talk tool` | The named process sent its opening turn without `talk` in the tool list. | Check `extensions-loaded`. If the extension loaded, check tool registration and whether omp offers `talk` as a provider tool instead of a Bash command. |
| V6 `talk` prints `the <action> call talk-sender-<n> took more than 30 s` | The driver did not receive a matching completion before the deadline. The message alone does not say whether a tool result arrived. | Check whether the tool ran and returned. If it did, check the call ID and the latest event. Run `bun run test:unit cli/test/unit/verifySmokeTalkTurns.test.ts`. |
| V6 `talk` reports another failure in `talk-`, `new-session-`, `fork-`, or `closed-peer-` | The step name identifies where the driver stopped, not which operation failed. | Read the reason after the step name. Check the named RPC command, tool result, or fixture operation. |
| V6 `talk` prints `FAIL handover-refused` | A print session did not refuse the `handover` action before its side turn: the result has no refusal, the fake model got a side-turn request with the handover template, the peer holds the note or a handover entry, or the call took more than 30 s because a flow opened in a session without a terminal | Check the refusals of `handoverFlow` in `cli/talk/extension.ts` and `runHandover` in `cli/talk/tool/tool.ts` (#260 H3) |
| V6 `talk-ui` prints `FAIL ui-ready` or `FAIL old-omp` with `footer with the model name` | The TUI omp did not start in the pseudo-terminal, for example because it shows the setup wizard | Read the screen text in the reason. Check `startup.setupWizard` in the isolated `config.yml` and the omp version (V2) |
| V6 `talk-ui` prints a `FAIL ui-` line with `the screen shows no` or `no talk entry` | A view, the card, or the review did not draw the expected text, or the send did not arrive in the peer session; the reason of a screen wait quotes the end of the screen | Run `node node_modules/vitest/vitest.mjs run cli/test/unit/talk`, and check `cli/talk/ui/` and `cli/docs/talk-ui.md` |
Expand Down
Loading
Loading