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
27 changes: 24 additions & 3 deletions .agents/skills/verify/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Hosts: the commands below are POSIX shell for Linux and macOS. On Windows, run `
| V3 | Dry-run goldens through the engine and the public CLI | `bun run golden:dryrun` | A line `golden-dryrun: OK (<n> case(s))` and exit 0 |
| V4 | Removed sync target and flag | `./docks-kit sync omp --dry-run; echo "exit $?"; ./docks-kit sync --dry-run --prune; echo "exit $?"` | First the sync help on stdout, then `ERROR` and `Unexpected positional argument: "omp"` on stderr, and `exit 1`. Then `unknown flag --prune for 'sync'` and `exit 2`. Observed 2026-11-19 on Linux x64: exactly these lines |
| V5 | Trigger rules on a large tool call, in the real omp | `bun .agents/skills/verify/scripts/ttsr-snippet.ts big-reset \| omp ttsr test --rule SoT/.omp/plugin/rules/git-safety.md --source tool --tool eval --file -`, then the same command with `big-quiet` | For `big-reset`, `Triggered (1)` and a `git-safety` line within a few seconds. For `big-quiet`, `No rules triggered. (evaluated 1)`. The `big-reset` snippet is a 21 KB eval cell with many `\"` escapes that ends with `sh("git reset --hard HEAD")`. The rules of 0.22.29 stayed quiet on it after 4.7 s: JavaScriptCore stopped at its match limit and reported no match, so the rule failed open |
| V6 | Kit plugin in the real omp, isolated | `bun .agents/skills/verify/scripts/omp-smoke.ts; echo "exit $?"`, then `bun .agents/skills/verify/scripts/omp-smoke.ts hooks; echo "exit $?"`, then `bun .agents/skills/verify/scripts/omp-smoke.ts talk; echo "exit $?"`, then `bun .agents/skills/verify/scripts/omp-smoke.ts talk-ui; echo "exit $?"` | The load mode prints `docks-kit-omp -> <checkout>/SoT/.omp/plugin`; `skills: 34`; `skill names:` with the name of each skill, which are the names of `REQUIRED_SKILLS` in `omp-smoke.ts` and of the skill folders under `SoT/.omp/plugin/skills/`, `talk` among them; `agents: code-reviewer,plan-reviewer`; `extensions:` with the entries of the manifest, `./extensions/talk.js` among them; `talk tool: offered`; `warnings: 0`; `ok registry: talk registered only in the private folder`; `ok registry-removed`; and `exit 0`. The `hooks` mode prints the `ok` lines of the expected output in the V6 section below and `exit 0`. The `talk` mode prints the `ok` lines of the expected output in the V6 `talk` section below, `handover-refused` among them, and `exit 0`. The `talk-ui` mode prints the `ok` lines of the expected output in the V6 `talk-ui` section below, `ui-tool-handover` and `ui-tool-handover-cancel` among them, and `exit 0`. Observed 2026-11-27 on Linux x64 with omp 19.2.1 and the default omp settings in the load mode: exactly these lines; the load mode took 1.7 s, the `hooks` mode 5.8 s, the `talk` mode 4.5 s, and the `talk-ui` mode 7.3 s, each with `nice -n 19` |
| V6 | Kit plugin in real, isolated omp sessions | `bun .agents/skills/verify/scripts/omp-smoke.ts`, then repeat with `hooks`, `talk` and `talk-ui` | All four modes exit zero. Load reports the linked kit plugin, the exact shipped skills, both review agents and the `talk` tool on the prompted request, no warnings, private registration and cleanup. The sections below list the expected output for each mode. |

## V6 — Kit plugin smoke in an isolated omp state

Expand All @@ -50,7 +50,23 @@ Each mode loads the shipped `talk` extension (`extensions/talk.js`), so each mod
- The final scan: immediately before the smoke ends an omp process that it checked, while the process is still live, a scan child reads the default folder once more for the registrations of that process. It fails with the diagnostic that names the default folder, after `<session> before it ended:`, when the folder holds an entry with the process id and the work folder of a registration of that process (the session ids of a session change included). Thus a copy that a session writes to the default folder after its first check passed still fails the run. Each process gets its own final scan, and the `registry` line keeps the problem of each scan. The script tracks each omp process that runs talk at its spawn, with its process id and folder, before it waits for the process to become ready. In the load mode and the `hooks` mode, the fake model holds the text answer that ends each `omp -p` session until its final scan ends. A session that reaches the command timeout of 120 s without that answer gets the same final scan before the script kills it. A session that is still live at the command timeout after its final scan ended gets a fresh bounded scan before the kill, and the `registry` line keeps the problems of all its scans. In the `talk` mode, the peer scan runs before the peer stdin ends in `closed-peer-not-live`, and the sender scan before the sender gets its last turn at the end of the mode. In the `talk-ui` mode, the TUI scan runs before `ctrl+d`, and the peer scan after the TUI omp exits and before the peer stdin ends. A TUI omp whose footer never shows and an RPC peer that never sends its ready line get their final scan before the cleanup ends them. With an omp before 19.2.0, talk is off, and the TUI omp has no final scan. After a failed step, the scans run before the cleanup ends each process. The final scan has the same deadline of 10 s and the same child, and its diagnostics start with `the final scan of the default talk registry folder`.
4. The line `registry` reports the check of all sessions of the mode: `ok registry: talk registered only in the private folder`. The last line, `registry-removed`, checks after the cleanup that the private folder does not exist.

The load mode writes no `config.yml`, so omp runs with its default settings. talk registers its tool with `loadMode: "essential"`, so omp gives `talk` to the model as a top-level tool and does not mount it as a Bash command. The mode reads `omp skill list --json` and the requests of one `omp -p` session. It prints the names of the skills whose file is inside the linked plugin folder. It fails unless they are the names of the skill folders under `SoT/.omp/plugin/skills/`, and also exactly the names of `REQUIRED_SKILLS` in `omp-smoke.ts`: the 32 docks and plan-lifecycle skills, `workspace-hygiene`, and `talk`. The fixed list does not come from the checkout, so a deleted skill folder, or a skill folder that replaces another, fails the mode. A change that adds, removes, or renames a skill on purpose updates the list. It lists the plugin agents that the task tool offers. It prints the `omp.extensions` list of the linked `package.json`, and fails when the list has no `./extensions/talk.js` entry or the plugin has no `extensions/talk.js`. It fails when the first model request does not offer the `talk` tool. The `hooks` mode makes a scratch git repository with its own git config. The repository holds a root `AGENTS.md`, a root `README.md`, `notes.txt`, and the nested node `scripts/AGENTS.md` with `scripts/ci.mjs`. The fake model plays scripted tool calls in `omp -p --mode json` sessions, and the script reads the JSON event stream, the requests that the fake model receives, `git log`, and the `verify-gate.jsonl` log of each session. Each session has its own `XDG_STATE_HOME` in the scratch folder. The `hooks` mode writes no `config.yml`. Expected output of the `hooks` mode, in order:
The load mode writes no `config.yml`. It compares `omp skill list --json` with the linked plugin folders and the fixed `REQUIRED_SKILLS` list. Update that list only when adding, removing or renaming a skill on purpose. It checks the manifest for `./extensions/talk.js` and checks that the file exists. It checks both the task tool's agent list and the top-level `talk` tool on the first request for the fixture prompt. An earlier auxiliary request or a later request cannot supply either advertisement. Talk uses `loadMode: "essential"` so omp does not mount it as a Bash command.

Expected load output (`<checkout>` is the source checkout selected by the script or `--repo`; runtime state is private):

```text
docks-kit-omp -> <checkout>/SoT/.omp/plugin
skills: 34
skill names: accessibility,agent-first-setup,ci-speed,claude-md-migration,code-clarity,code-guardrails,code-review,code-reviewer,commit-discipline,context-tree,dep-vuln-workflow,design-tokenization,effect-ts,fix-workflow,lint-no-suppressions,make-interfaces-feel-better,plan-manager,plan-reviewer,plan-workspace,react-component-patterns,refactor,report-skill-issue,security,skill-agent-pipeline,skill-maintenance,solid,talk,tdd-workflow,test-coverage,type-safety-discipline,workspace-hygiene,write-skill,yolo,zoom-out
agents: code-reviewer,plan-reviewer
extensions: ./extensions/hygiene.ts,./extensions/verify-gate.ts,./extensions/context-tree-nudge.ts,./extensions/talk.js
talk tool: offered
warnings: 0
ok registry: talk registered only in the private folder
ok registry-removed
```

The `hooks` mode runs scripted `omp -p --mode json` sessions in a scratch Git repository with private Git configuration. Each session has its own `XDG_STATE_HOME`. The driver checks the event stream, provider requests, Git log and each `verify-gate.jsonl` log. Expected output, in order:

```text
ok install
Expand All @@ -69,6 +85,7 @@ ok nudge-failed-edit-none
ok nudge-url-write-none
ok hygiene-scratch-tool
ok hygiene-temp-reminder
ok hygiene-stop-reminder
ok extensions-loaded
ok sessions
ok isolated
Expand All @@ -92,6 +109,7 @@ exit 0
| `nudge-url-write-none` | `write` to `local://notes.md`; the session folder is inside the `scripts` node | The write succeeds. No added-context message follows. |
| `hygiene-scratch-tool` | The requests of a session with one `bash` `mktemp -d` call | A request lists the `scratch_new` tool with `Prefer it over /tmp`. |
| `hygiene-temp-reminder` | Same session: the `mktemp -d` result | After the tool result, an added-context message holds the reminder `Prefer a directory from the \`scratch_new\` tool`. |
| `hygiene-stop-reminder` | The same session leaves its temporary directory in place | A new user message at the fixture provider contains the stop reminder and the exact directory. |
| `extensions-loaded` | All sessions | omp reported no warning that names the linked plugin folder or `docks-kit-omp`, and no `Failed to load extension` record for a plugin file, `hygiene.ts` included. |
| `isolated` | The whole run | The `tidy.stamp` of the scratch home kept its modification time, so no hygiene sweep started. |
| `real-state` | The whole run | The real omp registry files kept their modification times. The real `verify-gate.jsonl` has no new line with a `cwd` inside the scratch folder. Lines that other omp sessions add during the run do not count. |
Expand Down Expand Up @@ -249,10 +267,13 @@ The other lines are as above. talk is off on this omp and registers no session,
| V6 prints `skills:` other than 34, a `FAIL skills:` line, or misses an agent | omp did not load a skill or agent file of `SoT/.omp/plugin`, a folder moved, or a skill folder was added, removed, or renamed | Check the folders under `SoT/.omp/plugin/skills/` and `SoT/.omp/plugin/agents/`, and the `name` frontmatter of each `SKILL.md` and agent file. When the change adds, removes, or renames a skill on purpose, update `REQUIRED_SKILLS` in `omp-smoke.ts` and the count in this skill |
| V6 prints `FAIL extensions-loaded` or `warnings:` above `0` with `Failed to load extension` | A kit extension throws when omp loads it | Fix the file that the `FAIL` line names in `SoT/.omp/plugin/extensions/` |
| V6 prints a `FAIL gate-` or `FAIL nudge-` line | The gate or the nudge acted on the wrong command, path, or node | Check `checkCommand` in `SoT/.omp/plugin/extensions/verify-gate-core.ts` or `nudgeText` in `SoT/.omp/plugin/extensions/context-tree-core.ts`, and their adapters `verify-gate.ts` and `context-tree-nudge.ts` |
| V6 reports `no request from the omp session` or `no opening fixture request` | No request arrived, or none matched the fixture prompt and model | Check the private provider and the exact prompt `Reply with ok.`. These messages say nothing about the installed agents. |
| V6 reports `no task tool with an agent list` | The opening request did not offer a task description with an agent section | Check `# Available Agents` in the `task` description on that request. Only `agents missing from the task tool:` identifies missing names in that section. |
| V6 prints `FAIL hygiene-stop-reminder` | The completed turn did not produce the stop notice for the fixture directory | Check the `session_stop` handler and `stopReminder` in `hygiene.ts`. The fixture must receive the tool reply, the assistant's `ok`, then a new stop notice. A creation notice does not count. |
| V6 prints a `FAIL hygiene-` line | The `scratch_new` description or the temporary-file reminder lost its preference for scratch, or the reminder did not run | Check the `scratch_new` description and `SCRATCH_NOTE` in `SoT/.omp/plugin/extensions/hygiene.ts` |
| V6 prints a `FAIL` line that names `./extensions/talk.js` or `extensions/talk.js` (a missing file or manifest entry) | The shipped plugin has no `talk.js` bundle or no manifest entry for it | Run `bun cli/scripts/build-talk.ts --check`; when it reports a stale or missing bundle, run `bun cli/scripts/build-talk.ts` and check the `omp.extensions` list of `SoT/.omp/plugin/package.json` |
| V6 prints `FAIL install` with another reason, or the load mode prints `FAIL omp <command> exited` | An omp command exited with a status other than 0, omp kept no plugin state, `omp plugin list --json` has no `docks-kit-omp` row, `omp --version` names no version, or the private registry folder has the wrong mode | Read the reason on the `FAIL` line: it names the command, the path, or the output that failed. Check the omp binary (V2) and the scratch folder |
| V6 load mode prints `talk tool: missing` | The first model request with omp's default settings does not offer `talk`: `talk.js` did not load, or omp mounted `talk` as a Bash command | Read the `warnings:` line. Check that the tool registration in `cli/talk/extension.ts` sets `loadMode: "essential"`, then rebuild `talk.js` |
| V6 load mode prints `talk tool: missing` | The fixture prompt did not reach the provider, or its first request did not offer `talk` | If the request is absent, check the model and prompt in the fixture. If it arrived without `talk`, check `loadMode: "essential"` in `cli/talk/extension.ts` and rebuild `talk.js`. |
| V6 prints `FAIL registry:` with `no valid entry of process` | No poll that the scan child started before its cutoff, 9 s after the launch of the child, found a valid entry of the session in the private folder: talk did not load, did not register, or did not read `DOCKS_KIT_TALK_DIR`. A poll sees a registration that appears before it lists the folder, so a registration close to the cutoff can still count. With `and the session`, the peer did not publish the new session of `new_session` or `fork` | Read the `extensions-loaded` line and the warnings. Check `cli/talk/transport/folder.ts` and the registration in `cli/talk/extension.ts` |
| V6 prints `FAIL registry:` with `did not end within 10 s` | Timeout cancellation: the scan child of a registry check gave no result before the 10 s deadline, so the script killed the child and its process group. A scan stalled, for example because the macOS ACL listing (`ls -led`) or a file system call hung | Run `ls -led` on the folder that the line names and check that it ends at once. Check the folder trust check in `cli/talk/transport/trustPosix.ts` |
| V6 prints `FAIL registry:` with `ended early` | The scan child exited with an error code or stopped on a signal before it gave a result; the script read this at the exit of the child and then killed its process group | Run the child by hand to see its error: `bun .agents/skills/verify/scripts/omp-smoke.ts registry-scan '<request>'`. A malformed request exits 2 |
Expand Down
Loading
Loading