revdeck 0.18.0 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,58 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.19.1] - 2026-11-30
8
+
9
+ ### Fixed
10
+
11
+ - The UI no longer flashes the full-screen “lost connection to the daemon” card on a single network
12
+ blip. Idle browser connections stay open for 65 seconds instead of Node's five-second default (a
13
+ request could race into the socket the server was closing), an idempotent GET is retried once on a
14
+ fresh connection, and a request that may have reached the daemon is checked against `/api/health`
15
+ first. A mutation that fails this way now shows a “repeat the action” notice, and the card appears
16
+ only when the daemon does not answer at all.
17
+
18
+ ## [0.19.0] - 2026-11-29
19
+
20
+ ### Added
21
+
22
+ - Check runs are stored as review evidence: `check_runs` keeps argv, exit code, redacted output and the
23
+ commit of every executed check. The Rules tab, `revdeck checks --last`, the new read-only MCP tool
24
+ `revdeck_checks` and `revdeck_context` show the latest run per check; a run on an older commit is
25
+ marked stale, and `skipped` runs are never stored.
26
+ - `checks.list` RPC (read scope, available to the devcontainer bridge) and `revdeck context --shard`
27
+ now also scopes `rules.get` to the shard files.
28
+ - `revdeck evidence <N> [--format md|json] [--out <file>]`: a portable review passport with rule
29
+ documents and excerpt hashes, actual check runs with commits, findings with human decisions,
30
+ publication counts and the event timeline. `evidence.get` RPC backs it; the artifact is generated on
31
+ request and states explicitly that the agent model and harness are not recorded in v1.
32
+ - `verifier` role: an adversarial pass over the lead's candidate findings. The lead spawns it ad hoc
33
+ (`revdeck context --role verifier`), passes the candidates JSON, and keeps only `confirmed` items;
34
+ `needs-evidence` becomes a question and the pass is recorded in `coverage`. The role is not part of the
35
+ default plan, and selecting a built-in role no longer requires listing it in `review.roles`.
36
+
37
+ ### Changed
38
+
39
+ - Shards are partitioned by cohesion (a module directory stays together, a test follows the shard of its
40
+ subject file) and balanced by changed lines instead of `index % N`. A shard gets rules only for its own
41
+ paths and sees the names of the other files without their diff; the lead is instructed to run a
42
+ cross-cut pass over the seams and to record the run axes in `coverage`.
43
+ - `AGENTS.md`, `CLAUDE.md`, `REVIEW.md`, `skills/`, `.agents/`, `.claude/`, `.codex/`, `.cursor/` and
44
+ `.revdeck.yml` are high risk: a change to review rules or agent instructions always gets the full
45
+ procedure and is never treated as "docs only".
46
+
47
+ ### Fixed
48
+
49
+ - A check that exits with a non-zero code is recorded as `failed` with its exit code and output instead
50
+ of a generic `error`, so a red `tsc`/test run is usable as evidence.
51
+ - A check that never started (missing binary, timeout, maxBuffer) is recorded as `error` and is not
52
+ stored as a run, instead of a fake `failed (exit 1)` with empty output.
53
+ - Check evidence records the working-copy HEAD measured at run time; a run is only marked current when
54
+ that SHA matches the review snapshot, and an unknown commit is no longer reported as stale.
55
+ - Shard requests are bounded (`1 ≤ index ≤ count ≤ min(32, files)`) on every path, so a malformed
56
+ `shard` cannot allocate a huge array in the daemon; partition tie-breaks no longer depend on the
57
+ process locale.
58
+
7
59
  ## [0.18.0] - 2026-11-28
8
60
 
9
61
  ### Added
package/README.md CHANGED
@@ -59,7 +59,9 @@ and a web UI. Platform tokens stay on the host.
59
59
  free, so the open tab keeps its origin. The tab and the login page explain what happened and offer
60
60
  `revdeck daemon start && revdeck ui --open`; the tab reconnects by itself once a fresh link is
61
61
  opened. Unsaved replies and finding comments are kept in `localStorage`; raw `Failed to fetch` and
62
- 401 text is no longer shown.
62
+ 401 text is no longer shown. A single network blip does not raise the lost-connection card: idle
63
+ connections stay open for 65 seconds, a GET is retried on a fresh socket, and a failed request is
64
+ checked against `/api/health` first.
63
65
  - **Readable daemon output.** `revdeck daemon start|restart|status|stop` prints one aligned block with
64
66
  the UI link, socket, state and health. `daemon logs` renders local timestamps and supports `--follow`
65
67
  and `--json`; the log rotates at 1 MiB. `daemon start/restart` accept `--port`. Colors appear only in
@@ -73,7 +75,16 @@ and a web UI. Platform tokens stay on the host.
73
75
  are disabled. Previews are cached in memory and do not create a review or metrics event.
74
76
  - **Risk-sized review.** The context computes a conservative fast/full profile from the diff and the
75
77
  changed paths; small docs/code changes get a short pass, while auth, migrations, CI, contracts and
76
- large diffs require the full procedure.
78
+ large diffs require the full procedure. Process rules — `AGENTS.md`, `skills/`, `.agents/`, `.claude/`,
79
+ `.revdeck.yml` — are high risk by definition: a change to the review criteria is never "docs only".
80
+ - **Checks as evidence.** Every check a human actually runs is stored with its commit, exit code and
81
+ redacted output, shown in the Rules tab and `revdeck checks --last`, and included in the agent context,
82
+ so `coverage` cites a run instead of a promise. A run on an older commit is marked stale.
83
+ - **Review evidence.** `revdeck evidence <N>` produces a portable artifact: rule documents with excerpt
84
+ hashes, actual check runs with commits, findings with human decisions, publication and the event
85
+ timeline. Attach it to the MR or archive it in CI; the agent model and harness are deliberately not
86
+ recorded in v1, and the artifact says so. The JSON form includes check output, so treat it as
87
+ sensitive: token masking is best-effort.
77
88
  - **Merge-aware review.** Every open MR/PR review keeps its target branch, diff base/head and merge
78
89
  state. Conflict or "behind target" is surfaced before findings, so a clean merge-base diff is not
79
90
  mistaken for a mergeable MR. Local diffs and snapshots from older versions may not have merge info.
@@ -187,7 +198,8 @@ Russian READMEs live in this repository; translation fixes are welcome.
187
198
  | `revdeck react <N> --note <id> --emoji <name>` | toggle a reaction on a platform comment |
188
199
  | `revdeck attach <N> --file <image-or-video>` | upload an attachment and print its markdown link |
189
200
  | `revdeck rules [--explain <path>]` | effective rules |
190
- | `revdeck checks <N> [--run --yes]` | project checks |
201
+ | `revdeck checks <N> [--last] [--run --yes]` | project checks, last runs, human-run execution |
202
+ | `revdeck evidence <N> [--format md\|json] [--out <file>]` | review evidence: rules, checks, decisions, timeline |
191
203
  | `revdeck export/import <N>` | legacy file exchange |
192
204
  | `revdeck ui [N]` | local web UI |
193
205
  | `revdeck daemon <start\|stop\|restart\|status\|logs\|install\|uninstall>` | daemon lifecycle; `--port`, `logs --follow`, `status/logs --json` |
@@ -326,10 +338,17 @@ The lead agent reads this plan from `revdeck_context`, starts one subagent per r
326
338
  return findings as JSON and do not write to revdeck; the lead deduplicates by `file:line:title` and writes
327
339
  the final summary/findings once.
328
340
 
341
+ A shard is a coverage unit, not an ensemble. Files are grouped by cohesion (module directory, a file with
342
+ its test), a shard gets rules only for its own paths, and it sees the names of the other files without
343
+ their diff. No worker sees the seams, so the lead runs a cross-cut pass over the full file list and the
344
+ changed public contracts, and records the run axes in `coverage`. Independent runs of the same lens
345
+ (replication) are configured as `agents: 3, roles: [correctness]`.
346
+
329
347
  Built-in roles: `correctness`, `architecture`, `tests`, `security`, `performance`, `compatibility`,
330
348
  `docs`, `concurrency`, `ux`, `data`, `api`, `dependencies`, `observability`, `build`, `privacy`,
331
- `general`. Default is three agents with correctness, architecture and tests. A role list shorter than
332
- `agents` is repeated. Custom roles with a title, description, criteria and instructions live in
349
+ `general`. The separate `verifier` role is invoked by the lead ad hoc with the candidates JSON and
350
+ confirms or refutes each finding; it is not part of the default plan. Default is three agents with
351
+ correctness, architecture and tests. A role list shorter than `agents` is repeated. Custom roles with a title, description, criteria and instructions live in
333
352
  `review.customRoles`.
334
353
 
335
354
  Several reviews can be opened together: `revdeck open 345 344 556` or `revdeck_open` with an array of
@@ -403,7 +422,7 @@ otherwise it can start a second daemon inside the container.
403
422
  ```
404
423
 
405
424
  Tools: `revdeck_status`, `revdeck_list`, `revdeck_open`, `revdeck_context`, `revdeck_threads`,
406
- `revdeck_diff`, `revdeck_rules`, `revdeck_draft_reply`, `revdeck_draft_findings`,
425
+ `revdeck_diff`, `revdeck_rules`, `revdeck_checks`, `revdeck_draft_reply`, `revdeck_draft_findings`,
407
426
  `revdeck_set_summary`, `revdeck_notes`, `revdeck_messages`, `revdeck_feature`, `revdeck_feature_note`,
408
427
  `revdeck_publish_preview`, `revdeck_publish`.
409
428
 
package/README.ru.md CHANGED
@@ -59,6 +59,8 @@
59
59
  входа объясняют, что произошло, и предлагают `revdeck daemon start && revdeck ui --open`;
60
60
  вкладка сама переподключается после свежей ссылки. Несохранённые ответы и комментарии к
61
61
  замечаниям хранятся в `localStorage`. Сырые `Failed to fetch` и текст 401 больше не показываются.
62
+ Одиночный сетевой обрыв экран потери связи не поднимает: простаивающие соединения живут 65 секунд,
63
+ GET повторяется на новом сокете, а упавший запрос сначала проверяется через `/api/health`.
62
64
  - **Читаемый вывод демона.** `revdeck daemon start|restart|status|stop` печатает один выровненный
63
65
  блок со ссылкой на UI, сокетом, состоянием и здоровьем. `daemon logs` показывает локальное время
64
66
  и поддерживает `--follow` и `--json`; лог ротируется на 1 МиБ. `daemon start/restart` принимают
@@ -72,7 +74,18 @@
72
74
  кэшируется в памяти и не создаёт ревью или событие метрик.
73
75
  - **Ревью под размер риска.** Контекст считает консервативный профиль fast/full по diff и путям:
74
76
  небольшие правки кода/документации идут коротким проходом, а auth, миграции, CI, контракты и
75
- большие diff требуют полной процедуры.
77
+ большие diff требуют полной процедуры. Правила процесса — `AGENTS.md`, `skills/`, `.agents/`,
78
+ `.claude/`, `.revdeck.yml` — рискованные по определению: правка критериев ревью не бывает
79
+ «только документацией».
80
+ - **Проверки как доказательство.** Каждый прогон, который человек реально выполнил, сохраняется с
81
+ коммитом, кодом выхода и очищенным выводом, показывается на вкладке «Правила» и в
82
+ `revdeck checks --last` и попадает в контекст агента, поэтому `coverage` ссылается на прогон, а не
83
+ на обещание. Прогон на устаревшем коммите помечается как устаревший.
84
+ - **Паспорт ревью.** `revdeck evidence <N>` собирает переносимый артефакт: правила с хэшами
85
+ выдержек, фактические прогоны проверок с коммитами, замечания с решениями человека, публикацию и
86
+ таймлайн событий. Его можно приложить к MR или сохранить в CI; модель и харнесс агента в v1
87
+ намеренно не записываются и это указано в самом артефакте. В JSON-форме есть вывод проверок — это
88
+ потенциально чувствительные данные, маскировка токенов эвристическая.
76
89
  - **Ревью помнит, куда мержится ветка.** В ревью открытого MR/PR сохраняются target, база/head diff
77
90
  и статус мержа. Конфликт или «ветка отстаёт от target» видны до замечаний, поэтому чистый diff на
78
91
  merge-base не принимается за готовый к мержу MR. У локального diff и старых снимков merge-инфо
@@ -173,7 +186,8 @@ self-hosted GitLab), по умолчанию выбирается `gitlab`. Пе
173
186
  | `revdeck react <N> --note <id> --emoji <name>` | поставить или снять реакцию на комментарий платформы |
174
187
  | `revdeck attach <N> --file <картинка-или-видео>` | загрузить вложение и вывести markdown-ссылку |
175
188
  | `revdeck rules [--explain <path>]` | эффективные правила |
176
- | `revdeck checks <N> [--run --yes]` | проверки проекта |
189
+ | `revdeck checks <N> [--last] [--run --yes]` | проверки проекта, последние прогоны, запуск человеком |
190
+ | `revdeck evidence <N> [--format md\|json] [--out <файл>]` | паспорт ревью: правила, проверки, решения, таймлайн |
177
191
  | `revdeck export/import <N>` | обмен с файловым форматом |
178
192
  | `revdeck ui [N]` | локальный интерфейс |
179
193
  | `revdeck daemon <start│stop│restart│status│logs│install│uninstall>` | управление демоном; `--port`, `logs --follow`, `status/logs --json` |
@@ -314,10 +328,18 @@ review:
314
328
  Воркеры возвращают замечания JSON и не пишут в revdeck; лид дедуплицирует по `file:line:title` и один
315
329
  раз записывает итоговые summary/findings.
316
330
 
331
+ Шард — единица покрытия, а не ансамбль. Файлы делятся по сцеплению (каталог модуля, файл вместе с его
332
+ тестом), шард получает правила только по своим путям и видит имена остальных файлов без diff. Швы между
333
+ шардами не видит никто из воркеров, поэтому лид после сбора делает cross-cut проход по полному списку
334
+ файлов и изменённым публичным контрактам и пишет в `coverage`, какими осями шёл прогон. Если нужны
335
+ независимые прогоны одной и той же линзы (ансамбль), это задаётся конфигом: `agents: 3,
336
+ roles: [correctness]`.
337
+
317
338
  Встроенные роли: `correctness`, `architecture`, `tests`, `security`, `performance`, `compatibility`,
318
339
  `docs`, `concurrency`, `ux`, `data`, `api`, `dependencies`, `observability`, `build`, `privacy`,
319
- `general`. По умолчанию три агента: correctness, architecture, tests. Если ролей меньше, чем `agents`,
320
- список повторяется. Кастомные роли с названием, описанием, критериями и инструкциями задаются в
340
+ `general`. Отдельно есть роль `verifier`: лид вызывает её ad hoc и отдаёт JSON кандидатов, а она
341
+ подтверждает или опровергает каждое замечание; в план по умолчанию она не входит. По умолчанию три
342
+ агента: correctness, architecture, tests. Если ролей меньше, чем `agents`, список повторяется. Кастомные роли с названием, описанием, критериями и инструкциями задаются в
321
343
  `review.customRoles`.
322
344
 
323
345
  Несколько ревью можно открыть одной командой: `revdeck open 345 344 556` или `revdeck_open` с массивом
@@ -391,7 +413,7 @@ HTTP: достаточно `revdeck daemon restart`, потому что `daemon
391
413
  ```
392
414
 
393
415
  Инструменты: `revdeck_status`, `revdeck_list`, `revdeck_open`, `revdeck_context`,
394
- `revdeck_threads`, `revdeck_diff`, `revdeck_rules`, `revdeck_draft_reply`,
416
+ `revdeck_threads`, `revdeck_diff`, `revdeck_rules`, `revdeck_checks`, `revdeck_draft_reply`,
395
417
  `revdeck_draft_findings`, `revdeck_set_summary`, `revdeck_notes`, `revdeck_messages`,
396
418
  `revdeck_feature`, `revdeck_feature_note`, `revdeck_publish_preview`, `revdeck_publish`. Публикация требует
397
419
  `approval_id`, который создаёт человек в UI или CLI на хосте; у моста агента нет `publish.approve`.