diff --git a/plugin-catalog/no-cap.yaml b/plugin-catalog/no-cap.yaml index 47b3f70b8c..483d73cef1 100644 --- a/plugin-catalog/no-cap.yaml +++ b/plugin-catalog/no-cap.yaml @@ -1,7 +1,7 @@ name: no-cap repo: https://github.com/jedbrnth-eng/no-cap -sha: d5869327e6279c6486f00b68f02734e92592519f -version: "0.2.0" +sha: 56576ea3caf1c3ef55547b6897cde0b12c63e294 +version: "0.2.1" title: "No Cap" description: >- Receipts for agent claims. No Cap checks the claims in each final reply (tests pass, pushed, merged, deployed, file @@ -9,68 +9,87 @@ description: >- the tool calls the agent made, with no extra model, and appends a footer: 🧾 NO CAP when a tool call proves the claim, 🧢 CAP only when one directly contradicts it (exit code, test counts, push ref, PR state, or a claimed SHA or branch that does not exist in the session's repo), and an opt-in 🤔 NO RECEIPT. A claim about earlier work can cite - an earlier turn of the same session. /cap makes the agent prove or retract its open claims and re-scores the next - reply; /capscore keeps a per-model honesty board, a scorecard and an A/B compare card; /nocap verdict draws a - session verdict card; strict mode uses pre_verify to send a coding turn back, at most twice. Surfaces: a Cap Board - dashboard tab (agents, models and skills ranked live; this profile only unless you opt in to a team view), Hermes - Desktop receipt chips and a Receipts popover, opt-in Discord embed + buttons, and Cap Coach, which drafts a rule from - repeated caps and injects it only after you approve it. + an earlier turn of the same session. A green run after the agent changed the suite in that turn (deleted, moved, + skipped or deselected tests, a conftest or runner-config filter, PYTEST_ADDOPTS=-k) no longer earns 🧾 for "all + tests pass": it gets a visible 🤔 naming the change, and 🧢 only when an earlier run named the removed test as failing + and the reply doesn't say so. /cap makes the agent prove or retract its open claims and re-scores the next reply; + /capscore keeps a per-model honesty board, a scorecard and an A/B compare card; /nocap verdict draws a session verdict + card; strict mode uses pre_verify to send a coding turn back, at most twice. Surfaces: a Cap Board dashboard tab + (agents, models and skills ranked live; this profile only unless you opt in to a team view), Hermes Desktop receipt + chips and a Receipts popover, opt-in Discord embed + buttons, and Cap Coach, which drafts a rule from repeated caps + and injects it only after you approve it. Licence: Apache-2.0 (0.1.0 to 0.2.0 were MIT). Disclosure — Stores, all in its Hermes plugin data folder HERMES_HOME/plugin-data/agent-plugin-no-cap-/ - (folder 0700; `hermes nocap path` prints it), every text field through a secret masker first: receipts.jsonl (0600; - one line per checked reply: session/turn ids, model, platform, each claim's text, verdict and quoted evidence line, - and only for tool calls a receipt cites the command (first 160 chars), exit code, error line and parsed facts; other - calls only as a count and SHA-256 digest; pruned after retention_days (default 30), halved past 20 MB); ledger.jsonl - (0600; cross_turn, on by default: per-turn parsed call facts, including the tool's own working directory, first - 300 chars, never raw output; newest 100 turns / 400 calls per session, same retention, 10 MB cap); coach.json (0600; - Cap Coach drafts and approved rules with up to 3 redacted example claims per pattern; the rule text it injects is - always No Cap's built-in text for that pattern, never text read back from coach.json); desktop.json (0600; on/off and a timestamp from the Desktop half); discord_receipts.json - (0600, only with discord_buttons: on; receipt id → session/turn ids, session key, user, chat and thread ids, at - most 500, no claim text); scorecard, verdict and compare SVG/PNG cards. /nocap purge deletes the receipts, ledger, - Discord map and cards; coach.json and desktop.json stay until you delete them. `hermes nocap export --out` and - `metrics --file` write only the file you name (0600, atomic; CSV cells that could start a formula are quoted). Commands it runs: read-only git as argument lists, - no shell, in the session's working directory, hardened against an untrusted repo (GIT_CONFIG_NOSYSTEM=1, - GIT_CONFIG_GLOBAL=/dev/null, core.hooksPath=/dev/null, core.fsmonitor=false, protocol.allow=never, no pager, no lazy - fetch, credential helper off, minimal env: only PATH, HOME, LANG, LC_ALL, SYSTEMROOT inherited, never provider keys): at reply time, only for a claimed SHA or branch no tool call - backs (verify_artifacts, at most 8 calls, 3 s each) `rev-parse --is-inside-work-tree --is-shallow-repository`, - `config --get-regexp`, `cat-file -e`, `for-each-ref`; during /cap `cat-file -t ` and `rev-parse --verify ` - (5 s). It lists the run's project read-only to tell a file-scoped test run from the full suite (bounded, no symlinks) - and stats a file the agent says it created. `hermes nocap demo --ladder` (and /nocap demo ladder, CLI/TUI only, in - the background) runs the bundled demo/run_ladder.sh with /bin/sh in a throwaway HERMES_HOME under /tmp, a scripted - model on 127.0.0.1 and a uv fetch of demo-only packages. Network: none by default; with self_verify_http: true, /cap - may send one HTTP HEAD to a URL the agent claimed is live, public addresses only (checked after DNS), no redirects, - 3 s timeout. Dashboard and Desktop: routes under /api/plugins/no-cap/ on your own Hermes backend, behind the - dashboard's auth: GET /board (read-only), POST /hello (writes desktop.json), POST /verify (yes/no for one Desktop - chip in one chat; the HMAC key lives only in memory and is never returned), GET /session. The board reads other - profiles' stores and board_sources paths only with the board.team_profiles opt-in, only in the CLI and dashboard, - never in a gateway chat. Discord: off by default; with discord_buttons: on it edits only the bot's own reply to add - an embed and two buttons and answers clicks ephemerally (only the user the reply answered may click). Messages it - sends: /cap injects one user message where Hermes allows it (gateway-backed sessions need - plugins.entries.no-cap.allow_gateway_injection: true), otherwise prints it to paste. Cap Coach injects approved rules - as labelled context through pre_llm_call, only in scope, never before /cap coach approve, and /cap coach revert stops - it. When the history already holds a No Cap footer, pre_llm_call also adds one fixed, labelled line asking the model - not to write receipt lines itself (built-in text only, never stored; footer_hint: off stops it). It never edits skills, memory or config (--apply asks the agent to, with its own tools). /nocap doctor reads other - plugins' plugin.yaml files and the Hermes config. No tools, credentials, telemetry or self-update. Accuracy: blind - samples of public SWE-rebench runs (two raters, adjudicated): round 3 at 01a1fab, 🧾 precision 0.92 (92/100, 95% CI - 0.85–0.96; no 🧢 on unseen runs, so not measured); round 2 at 7c6cbc0, 🧢 8 of 11 correct. Local Arena (30 synthetic bug-fix tasks, Qwen3-4B and a partial Qwen3-30B-A3B, No Cap at aa69dcb, one - person's hand check against hidden tests): 13 of 13 🧢 correct. + (folder 0700; `hermes nocap path` prints it), every text field through a secret masker first (the home directory is + written as ~ in stored commands and working dirs): receipts.jsonl (0600; one line per checked reply: session/turn + ids, model, platform, each claim's text, verdict, reason and quoted evidence line, and only for tool calls a receipt + cites the command (first 160 chars), exit code, error line and parsed facts; other calls only as a count and SHA-256 + digest; pruned after retention_days (default 30), halved past 20 MB); ledger.jsonl (0600; cross_turn, on by default: + per-turn parsed call facts, including the tool's own working directory (first 300 chars), the call's timestamp, up + to 20 failing test ids a run printed and up to 10 short notes of suite changes the call made, never raw output; + newest 100 turns / 400 calls per session, same retention, 10 MB cap); coach.json (0600; Cap Coach drafts and approved + rules with up to 3 redacted example claims per pattern; the rule text it injects is always No Cap's built-in text + for that pattern, never text read back from coach.json); desktop.json (0600; on/off and a timestamp from the Desktop + half); discord_receipts.json (0600, only with discord_buttons: on; receipt id → session/turn ids, session key, user, + chat and thread ids, at most 500, no claim text); scorecard, verdict and compare SVG/PNG cards. /nocap purge deletes + the receipts, ledger, Discord map and cards (local CLI/TUI/Desktop only; refused from a gateway chat); coach.json and + desktop.json stay until you delete them. `hermes nocap export --out` and `metrics --file` write only the file you + name (0600, atomic; CSV cells that could start a formula are quoted). Suite-change detection reads only the tool + calls' own arguments and output (edit contents, shell commands, env prefixes); it adds no file reads, subprocesses or + network use. Commands it runs: read-only git as argument lists, no shell, in the session's working directory, + hardened against an untrusted repo (GIT_CONFIG_NOSYSTEM=1, GIT_CONFIG_GLOBAL=/dev/null, core.hooksPath=/dev/null, + core.fsmonitor=false, protocol.allow=never, no pager, no lazy fetch, credential helper off, minimal env: only PATH, + HOME, LANG, LC_ALL, SYSTEMROOT inherited, never provider keys): at reply time, only for a claimed SHA or branch no + tool call backs (verify_artifacts, at most 8 calls, 3 s each) `rev-parse --is-inside-work-tree + --is-shallow-repository`, `config --get-regexp`, `cat-file -e`, `for-each-ref`; during /cap (5 s each) `cat-file -t + `, `merge-base --is-ancestor HEAD`, `show -s --format=%ct `, `rev-parse --verify ` and `reflog + show --date=unix -n 20 refs/remotes/origin/`, so a re-check proves the session's own work, not mere + existence. It lists the run's project read-only to tell a file-scoped test run from the full suite (bounded, no + symlinks) and, during /cap, stats a file the agent says it created (existence, size, modification time). `hermes + nocap demo --ladder` (and /nocap demo ladder, CLI/TUI only, in the background) runs the bundled demo/run_ladder.sh + with /bin/sh in a throwaway HERMES_HOME under /tmp, under `env -i` with only PATH, HOME, LANG, TMPDIR, TERM and the + demo's own settings (no provider keys), a scripted model on 127.0.0.1 and a uv install of the hash-pinned + demo/requirements-ladder.txt (pytest, pyte, Pillow) into a throwaway venv; that fetch is the demo's one network use. + Network: none by default; with self_verify_http: true, /cap may send one HTTP HEAD to a URL the agent claimed is + live, public addresses only (checked after DNS), no redirects, 3 s timeout. Dashboard and Desktop: routes under + /api/plugins/no-cap/ on your own Hermes backend, behind the dashboard's auth: GET /board (read-only), POST /hello + (writes desktop.json), POST /verify (yes/no for one Desktop chip in one chat; the HMAC key lives only in memory and + is never returned), GET /session. The board reads other profiles' stores and board_sources paths only with the + board.team_profiles opt-in, only in the CLI and dashboard, never in a gateway chat; in a gateway chat /nocap, /nocap + verdict and the /capscore board Hall of Cap show only that chat's receipts, with no store path. Discord: off by + default; with discord_buttons: on it edits only the bot's own reply to add an embed and two buttons and answers + clicks ephemerally (only the user the reply answered may click). Reply rewriting: it removes forged ::nocap + directives, closes a code fence,