@softdesignbrasil/productdock-cli 0.12.0 → 0.13.0
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/README.md +162 -20
- package/dist/productdock.js +84 -83
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,6 +154,10 @@ the execution from the envelope's label (`target.repositories[0]`) or from
|
|
|
154
154
|
exits `1` before any network call — see `productdock eval` below and
|
|
155
155
|
[`productdock eval latest`](#productdock-eval-latest).
|
|
156
156
|
|
|
157
|
+
The same holds for `test-report submit`: the test suite report belongs to the
|
|
158
|
+
project, so the repository UUID is not sent and `--repository-id` exits `1`
|
|
159
|
+
before any network call — see `productdock test-report` below.
|
|
160
|
+
|
|
157
161
|
In a tree that was never linked, an operation that needs a project exits `1`,
|
|
158
162
|
naming **the directories it searched** — from the current one up to the
|
|
159
163
|
filesystem root — and telling you to run `productdock link` at the repository
|
|
@@ -1167,11 +1171,24 @@ same operations the MCP server exposes as the `get_prd_review` and
|
|
|
1167
1171
|
call the same code on the server, so the envelope validation, the reconciliation
|
|
1168
1172
|
by `finding_key` and the `tech_review` badge are one implementation, not two.
|
|
1169
1173
|
|
|
1174
|
+
Two more operations hold the **Tech Review request** of the work item for an
|
|
1175
|
+
interactive review (the skill in the IDE): `claim` takes it before the analysis
|
|
1176
|
+
and `release` gives it back if the review is abandoned. They are the
|
|
1177
|
+
`claim_prd_review_job` and `release_prd_review_job` operations of the
|
|
1178
|
+
`/cli/prd-review-jobs` queue — the same ones [`productdock watch`](#productdock-watch)
|
|
1179
|
+
uses —, with the filter by work item and the interactive lease.
|
|
1180
|
+
|
|
1170
1181
|
**`get` is a mandatory read-back before every `submit`.** This is not style, it
|
|
1171
1182
|
is an incident: without it, round N+1 re-emits findings the PM has already
|
|
1172
1183
|
answered, resolved or ignored — and the failure is **silent**, because the round
|
|
1173
|
-
still returns `success: true`. Read the review, check `summary.open` and
|
|
1174
|
-
`
|
|
1184
|
+
still returns `success: true`. Read the review, check `summary.open` and the
|
|
1185
|
+
`status` of each thread, and only then compose the next round.
|
|
1186
|
+
|
|
1187
|
+
**A round enters only through a Tech Review request.** With `--job-id`, the
|
|
1188
|
+
request must be running for you; without it, the reviewed PRD version must have
|
|
1189
|
+
an open request. Otherwise the server refuses the round before writing anything —
|
|
1190
|
+
a review that arrives after the PM cancelled the request creates no thread, no
|
|
1191
|
+
badge and no status.
|
|
1175
1192
|
|
|
1176
1193
|
```bash
|
|
1177
1194
|
# The state of the review — the read-back
|
|
@@ -1190,22 +1207,39 @@ productdock prd-review submit --ref PROD-168 --content "$(cat prd-review.md)"
|
|
|
1190
1207
|
# The whole cycle, machine-readable: read the state, then record the round
|
|
1191
1208
|
productdock prd-review get PROD-168 --json --out before.json
|
|
1192
1209
|
productdock prd-review submit prd-review.md --ref PROD-168 --json --out round.json
|
|
1210
|
+
|
|
1211
|
+
# Interactive Tech Review: take the request of the work item, record the round
|
|
1212
|
+
# through it, or give it back if the review is abandoned
|
|
1213
|
+
productdock prd-review claim PROD-168 --json --out claim.json
|
|
1214
|
+
productdock prd-review submit prd-review.md --ref PROD-168 --job-id <uuid>
|
|
1215
|
+
productdock prd-review release PROD-168
|
|
1193
1216
|
```
|
|
1194
1217
|
|
|
1195
|
-
|
|
1218
|
+
Every subcommand also accepts `--json`, `--project-id` and `--repository-id`,
|
|
1196
1219
|
documented once at the top of this section.
|
|
1197
1220
|
|
|
1221
|
+
**The interactive lease.** `claim` takes the request with a 60-minute lease,
|
|
1222
|
+
renewed by the server on every `prd-review get` of that work item made by whoever
|
|
1223
|
+
took it — there is no heartbeat command. A session that goes 60 minutes without a
|
|
1224
|
+
read-back loses the request, which goes back to the queue without counting an
|
|
1225
|
+
attempt. The request id and the session of the claim are kept on this machine,
|
|
1226
|
+
in `prd-review-claims.json` under the configuration directory (next to
|
|
1227
|
+
`credentials.json`), and that is where `release` reads them from.
|
|
1228
|
+
|
|
1198
1229
|
#### Parameters
|
|
1199
1230
|
|
|
1200
1231
|
| Subcommand | Argument | Options |
|
|
1201
1232
|
| --------------- | -------- | ---------------------------------------------------- |
|
|
1202
1233
|
| `get <ref>` | `<ref>` | `--status <status>` · `--limit <n>` · `--out <file>` |
|
|
1203
|
-
| `submit [file]` | `[file]` | `--ref` · `--content` · `--out`
|
|
1234
|
+
| `submit [file]` | `[file]` | `--ref` · `--content` · `--job-id` · `--out` |
|
|
1235
|
+
| `claim <ref>` | `<ref>` | `--out <file>` |
|
|
1236
|
+
| `release <ref>` | `<ref>` | `--out <file>` |
|
|
1204
1237
|
|
|
1205
1238
|
| Parameter | Description |
|
|
1206
1239
|
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1207
|
-
| `<ref>` / `--ref` | **Required.** Work item under review, in any of the four accepted formats: `PREFIX-N`, item number, UUID, or title. It is the positional argument of `get` and the `--ref` flag of `submit`, so the two can never be swapped by accident
|
|
1208
|
-
| `--
|
|
1240
|
+
| `<ref>` / `--ref` | **Required.** Work item under review, in any of the four accepted formats: `PREFIX-N`, item number, UUID, or title. It is the positional argument of `get`, `claim` and `release`, and the `--ref` flag of `submit`, so the two can never be swapped by accident |
|
|
1241
|
+
| `--job-id <uuid>` | The Tech Review request the round enters through — the `job.id` that `claim` returned, or the request of the `watch` round. Sent only when given; the server refuses a request that is not running for you (cancelled included) and writes nothing |
|
|
1242
|
+
| `--status <status>` | Thread status filter: `open`, `resolved`, `ignored`, `superseded`, `archived`, or `all` (the default). The CLI keeps no list of its own — an unknown value is refused **by the server**, which names the accepted ones |
|
|
1209
1243
|
| `--limit <n>` | Cap on how many threads come back, most recent first — a positive integer. The server defaults to 50 and caps at 200. A non-numeric value is refused locally (exit `1`), never silently ignored |
|
|
1210
1244
|
| `[file]` | Path to the review body on disk, read as UTF-8 and sent verbatim — not trimmed, not re-encoded, not truncated. The fenced JSON block with the `prd-review/v1` envelope, at the top of it, is **mandatory** — a body without it is refused by the server. Optional only in the sense that `--content` replaces it; passing both is refused (exit `1`), not silently resolved one way |
|
|
1211
1245
|
| `--content <text>` | The review body inline, as an alternative to the file |
|
|
@@ -1226,20 +1260,20 @@ under `data`:
|
|
|
1226
1260
|
}
|
|
1227
1261
|
```
|
|
1228
1262
|
|
|
1229
|
-
`operation` is the canonical operation name — `get_prd_review
|
|
1230
|
-
`submit_prd_review`. Without `--json`, `stdout` stays empty and a human-readable
|
|
1263
|
+
`operation` is the canonical operation name — `get_prd_review`,
|
|
1264
|
+
`submit_prd_review`, `claim_prd_review_job` or `release_prd_review_job`. Without `--json`, `stdout` stays empty and a human-readable
|
|
1231
1265
|
summary goes to `stderr`.
|
|
1232
1266
|
|
|
1233
1267
|
`get` returns `{ work_item_id, brief_version, summary, count, threads[] }`:
|
|
1234
1268
|
|
|
1235
1269
|
| Field | Meaning |
|
|
1236
1270
|
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1237
|
-
| `summary` | Thread counts by status: `{ open, resolved, ignored, superseded }`. **`summary.open` is the number to check before composing the next round**
|
|
1271
|
+
| `summary` | Thread counts by status: `{ open, resolved, ignored, superseded, archived }`. **`summary.open` is the number to check before composing the next round** |
|
|
1238
1272
|
| `count` | How many threads came back — after `--status` and `--limit` |
|
|
1239
1273
|
| `threads[].finding_key` | The stable correlation key of the finding **across rounds**. Reusing it in the next round updates the existing thread instead of creating a new one; `null` on human threads and on threads created before the key existed |
|
|
1240
|
-
| `threads[].status` | `open`, `resolved`, `ignored` or `
|
|
1241
|
-
| `threads[].
|
|
1242
|
-
| `threads[].messages[]` | The
|
|
1274
|
+
| `threads[].status` | `open`, `resolved`, `ignored`, `superseded` or `archived`. An `ignored` finding must not be re-emitted. A resolved Blocker or Gap that the PRD still has is reopened by the next round (`threads_reopened`); a resolved Suggestion is not |
|
|
1275
|
+
| `threads[].archived_from_status` | The status an `archived` finding had when it left the panel — on publishing, skipping the Tech Review or restoring a version. `null` while not archived |
|
|
1276
|
+
| `threads[].messages[]` | The messages of the review rounds, authors already hydrated (`author`, `source`, `text`). The human conversation does not come: the state of the finding is the PM's decision, and it is what the next round needs |
|
|
1243
1277
|
| `threads[].outdated` | `true` when the thread is anchored to a PRD version older than the current one |
|
|
1244
1278
|
| `brief_version` | The current PRD version the review is being read against |
|
|
1245
1279
|
|
|
@@ -1251,19 +1285,27 @@ summary goes to `stderr`.
|
|
|
1251
1285
|
| `review_round` | Number of this round. It equals the artifact version of the envelope snapshot |
|
|
1252
1286
|
| `threads_created` | Findings that had no live thread — a new thread each |
|
|
1253
1287
|
| `threads_updated` | Findings matched to an **open** thread by `finding_key`: the round was appended and the PM's reply survived |
|
|
1254
|
-
| `
|
|
1288
|
+
| `threads_reopened` | Blockers and Gaps the PM had **resolved** that this round emitted again — the PRD still has them, so the thread is open again |
|
|
1289
|
+
| `threads_skipped_closed` | Findings the PM had already **ignored**, or resolved Suggestions. Nothing was posted for them, and they were not reopened — a normal outcome |
|
|
1255
1290
|
| `threads_superseded` | Threads that were open and did **not** come back in this round: the review considered them settled |
|
|
1256
1291
|
| `tech_review` | The badge written on the PRD: `none` (a clean review), `changes_requested_gaps` or `changes_requested_blocking` |
|
|
1257
1292
|
| `artifact_id` · `artifact_version` | The snapshot of the raw envelope kept as a phase artifact |
|
|
1258
1293
|
|
|
1294
|
+
`claim` and `release` return `{ job, runner_session }`:
|
|
1295
|
+
|
|
1296
|
+
| Field | Meaning |
|
|
1297
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1298
|
+
| `job` | The request as the queue returned it on `claim` — `id` (the value of `--job-id`), `status`, `brief_version`, `work_item_ref`, … `null` on `claim` when the work item has no queued request: nothing to review. On `release`, the request of the claim with the fields the release resets: `status: "queued"`, `interactive: false`, and `claimed_by`, `runner_label`, `lease_until` and `started_at` `null`. `attempts` and `attempt_history` stay as the claim returned them — the server recalculates them and answers only `{ released: true }` |
|
|
1299
|
+
| `runner_session` | The session of the claim. `release` sends it back with the request, so the queue knows who gave it back. `null` when `claim` took nothing |
|
|
1300
|
+
|
|
1259
1301
|
#### Exit codes
|
|
1260
1302
|
|
|
1261
1303
|
The general table above holds; this is how each condition maps to it:
|
|
1262
1304
|
|
|
1263
1305
|
| Code | When |
|
|
1264
1306
|
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1265
|
-
| `0` | The read-back ran — including a work item with no review at all — or the round was recorded, **including a round that posted nothing because every finding was already closed** |
|
|
1266
|
-
| `1` | Missing `<ref>`/`--ref`; non-numeric `--limit`; unknown `--status` (`400`, refused by the server); no body (no file and no `--content`); file and `--content` together; unreadable file; directory not linked and no `--project-id`; **invalid envelope (`400`) — the response names the offending field, and nothing was written**; no permission to edit work items (`403`, `submit`
|
|
1307
|
+
| `0` | The read-back ran — including a work item with no review at all — or the round was recorded, **including a round that posted nothing because every finding was already closed**; `claim` ran, **including when there was no request to take** (`job: null`); `release` gave the request back |
|
|
1308
|
+
| `1` | Missing `<ref>`/`--ref`; non-numeric `--limit`; unknown `--status` (`400`, refused by the server); no body (no file and no `--content`); file and `--content` together; unreadable file; directory not linked and no `--project-id`; **invalid envelope (`400`) — the response names the offending field, and nothing was written**; **round refused for its request — the `--job-id` request is not running for you, cancelled included (`400`, `prd_review_job_not_running`), no open request for the reviewed version (`400`, `prd_review_job_required`), or unknown request (`404`, `prd_review_job_not_found`) — and nothing was written**; `release` with no `claim` of that work item on this machine; no permission to edit work items (`403`, `submit`, `claim` and `release`); work item not found **or not visible to you** (`404` — the two are deliberately indistinguishable); any other API failure |
|
|
1267
1309
|
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1268
1310
|
|
|
1269
1311
|
### `productdock eval` — project evaluations
|
|
@@ -1556,6 +1598,98 @@ The general table above holds; this is how each condition maps to it:
|
|
|
1556
1598
|
| `1` | Missing `--type`; `--repository-id` given (refused before any network call); directory not linked and no `--project-id`; unknown `eval_type` (`400`); not a member of the project (`403` — `not_member`, or `project_membership_required` with only "Ver todos os projetos"); any other API failure |
|
|
1557
1599
|
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1558
1600
|
|
|
1601
|
+
### `productdock test-report` — test suite reports
|
|
1602
|
+
|
|
1603
|
+
Served by the `/cli/test-reports` endpoint of the ProductDock API. It is the
|
|
1604
|
+
same operation the MCP server exposes as the `submit_test_report` tool, and it
|
|
1605
|
+
returns the same body — the CLI and the MCP call the same code on the server,
|
|
1606
|
+
so the report validation and the write are one implementation, not two.
|
|
1607
|
+
|
|
1608
|
+
It is the destination of the test suite report: when the suite finishes, the
|
|
1609
|
+
skill writes a JSON report with everything the run showed on screen —
|
|
1610
|
+
execution, modules, scenarios and coverage —, and this command sends it. The
|
|
1611
|
+
file goes to the server untouched — not transcribed, not truncated.
|
|
1612
|
+
|
|
1613
|
+
**A report belongs to a project, not to a work item.** Every submission is an
|
|
1614
|
+
**execution** of the project's test suite, numbered on the server
|
|
1615
|
+
(`run_number`). Resubmitting the same report updates that execution instead of
|
|
1616
|
+
adding another one — the response then carries `created: false`.
|
|
1617
|
+
|
|
1618
|
+
**The CLI does not validate the report.** It only checks that the file is a
|
|
1619
|
+
JSON **object**; the schema is the server's, and a report it refuses comes back
|
|
1620
|
+
as `400` naming the offending field. There is no size limit in the CLI either:
|
|
1621
|
+
the ceiling is the server's, and a report above it comes back as `413`. The CLI
|
|
1622
|
+
then replaces the server's message with a single one, saying the size of the
|
|
1623
|
+
body it sent and what to do — the ceiling itself is not quoted, because the
|
|
1624
|
+
server does not return it.
|
|
1625
|
+
|
|
1626
|
+
**Submission requires being a member of the project.** A call from someone who
|
|
1627
|
+
is not a member exits `1` with a `403`, and nothing is written.
|
|
1628
|
+
|
|
1629
|
+
**`--repository-id` is refused, not ignored.** The suite belongs to the
|
|
1630
|
+
project: the submission does not use the repository UUID, and the
|
|
1631
|
+
`project.repository` of `productdock.json` is not sent. Passing
|
|
1632
|
+
`--repository-id` exits `1` before any network call.
|
|
1633
|
+
|
|
1634
|
+
```bash
|
|
1635
|
+
# The normal case: the report the skill just wrote
|
|
1636
|
+
productdock test-report submit test-report.json
|
|
1637
|
+
|
|
1638
|
+
# Machine-readable, saved to a file
|
|
1639
|
+
productdock test-report submit test-report.json --json --out submitted.json
|
|
1640
|
+
|
|
1641
|
+
# Another project, for this call only
|
|
1642
|
+
productdock test-report submit test-report.json --project-id <uuid>
|
|
1643
|
+
```
|
|
1644
|
+
|
|
1645
|
+
The subcommand also accepts `--json`, documented once at the top of
|
|
1646
|
+
[Commands](#commands).
|
|
1647
|
+
|
|
1648
|
+
#### Parameters
|
|
1649
|
+
|
|
1650
|
+
| Subcommand | Argument | Options |
|
|
1651
|
+
| --------------- | -------- | ------------------------ |
|
|
1652
|
+
| `submit <file>` | `<file>` | `--project-id` · `--out` |
|
|
1653
|
+
|
|
1654
|
+
| Parameter | Description |
|
|
1655
|
+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1656
|
+
| `<file>` | **Required.** Path to the test suite report on disk. Read as UTF-8 and parsed locally: it must be a JSON **object**. Malformed JSON, an array or a scalar fails locally (exit `1`) without a network call; everything inside the object is validated by the server |
|
|
1657
|
+
| `--project-id <uuid>` | Project the execution is recorded under — overrides `project.id` of `productdock.json`, for this call only. There is no repository in this operation: `--repository-id` is refused (exit `1`, before any network call) |
|
|
1658
|
+
| `--out <file>` | Writes the response document to this file as well. The file gets the exact text `stdout` gets, written atomically |
|
|
1659
|
+
|
|
1660
|
+
#### Response format
|
|
1661
|
+
|
|
1662
|
+
Under `--json`, `stdout` carries one document with the API response untouched
|
|
1663
|
+
under `data`:
|
|
1664
|
+
|
|
1665
|
+
```jsonc
|
|
1666
|
+
{
|
|
1667
|
+
"ok": true,
|
|
1668
|
+
"operation": "submit_test_report",
|
|
1669
|
+
"data": {
|
|
1670
|
+
/* the body below */
|
|
1671
|
+
},
|
|
1672
|
+
}
|
|
1673
|
+
```
|
|
1674
|
+
|
|
1675
|
+
Without `--json`, `stdout` stays empty and a one-line summary goes to `stderr`.
|
|
1676
|
+
|
|
1677
|
+
| Field | Meaning |
|
|
1678
|
+
| ------------ | ---------------------------------------------------------------------------------------------------- |
|
|
1679
|
+
| `id` | Id of the execution |
|
|
1680
|
+
| `run_number` | Number of the execution in the project's history |
|
|
1681
|
+
| `created` | `true` when the submission added an execution; `false` when it updated one already recorded with the same report |
|
|
1682
|
+
|
|
1683
|
+
#### Exit codes
|
|
1684
|
+
|
|
1685
|
+
The general table above holds; this is how each condition maps to it:
|
|
1686
|
+
|
|
1687
|
+
| Code | When |
|
|
1688
|
+
| ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1689
|
+
| `0` | The execution was recorded |
|
|
1690
|
+
| `1` | Missing `<file>`; unreadable file; the file is not a JSON object; `--repository-id` given (refused before any network call); directory not linked and no `--project-id`; **invalid report (`400`) — the response names the offending field, and nothing was written**; not a member of the project (`403`); report above the server's size limit (`413`) — one message, with the size that was sent; any other API failure |
|
|
1691
|
+
| `2` | The API rejected the token (`401`) — run `productdock login` again |
|
|
1692
|
+
|
|
1559
1693
|
### `productdock state` — the SDLC state of a work item
|
|
1560
1694
|
|
|
1561
1695
|
Served by the `/cli/state` endpoints of the ProductDock API. They are the same
|
|
@@ -1569,7 +1703,8 @@ same operation, not a replacement: the agent picks the channel per call.
|
|
|
1569
1703
|
The two commands are the **read/write pair over the same state**, which is why
|
|
1570
1704
|
they live together. `phase` reads it — current phase, next phase, artifacts,
|
|
1571
1705
|
`uses_plan`, task progress — and `update` writes it: decision, blocker, lesson,
|
|
1572
|
-
review gate, phase change, phase progress
|
|
1706
|
+
review gate, phase change, phase progress and flow change. The PRD verdict is not
|
|
1707
|
+
written here: it enters only through `prd-review submit`. Whatever
|
|
1573
1708
|
you write here is what the other channel reads next, because there is a single
|
|
1574
1709
|
row behind both.
|
|
1575
1710
|
|
|
@@ -1646,7 +1781,7 @@ the same work item, with no error anywhere — cannot happen by accident.
|
|
|
1646
1781
|
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1647
1782
|
| `<ref>` | **Required** on `phase`. The work item — `PREFIX-N` (`PROD-168`), a number, a UUID or a title |
|
|
1648
1783
|
| `--ref <ref>` | **Required** on `update`. Same four formats. It is a flag, not a positional, so its order with the body file can never be swapped |
|
|
1649
|
-
| `--type <type>` | **Required** on `update`. The kind of update: `decision`, `blocker`, `lesson`, `review`, `phase_change`, `phase_progress`, `
|
|
1784
|
+
| `--type <type>` | **Required** on `update`. The kind of update: `decision`, `blocker`, `lesson`, `review`, `phase_change`, `phase_progress`, `flow_change`. Sent as-is: the enum belongs to the server, which rejects what it does not know and lists the options |
|
|
1650
1785
|
| `[file]` | Path to the update body on disk. Read as UTF-8 and parsed locally: it must be a JSON **object**. Malformed JSON, an array or a scalar fails locally (exit `1`) without a network call; the keys inside are the server's business |
|
|
1651
1786
|
| `--content <json>` | The same body inline. Passing the file **and** `--content` is refused, not resolved by precedence: they are the same choice with different answers. Neither one is required — an update may have no body at all, and an empty `{}` is not invented here |
|
|
1652
1787
|
| `--dry-run` | Validates the body server-side — the same schema check, the same refusals, the same numbering — and writes **nothing**. It exists because probing the schema against a real work item created one entry per attempt, and the CLI offers no way to read or delete a decision or a lesson. The response carries `dry_run: true` and `would_apply` in place of `applied` |
|
|
@@ -1761,7 +1896,13 @@ repository, that `claude` (Claude Code) is on the `PATH`, that the
|
|
|
1761
1896
|
4. **Version check** — if the PRD changed during the round, or the request was
|
|
1762
1897
|
cancelled, the round is **discarded**: no Stage B, nothing submitted.
|
|
1763
1898
|
5. **Stage B** — `claude --resume` submits the review **once**, right after the
|
|
1764
|
-
version check, with no pause
|
|
1899
|
+
version check, with no pause, through the request of the round (`--job-id`).
|
|
1900
|
+
Submitting closes the request on the server. A request the PM cancelled
|
|
1901
|
+
during Stage B refuses the submission, and the round is **discarded** — not
|
|
1902
|
+
failed, and its files are not kept.
|
|
1903
|
+
|
|
1904
|
+
Both stages receive the id of the request in their prompt, as the `<job_id>`
|
|
1905
|
+
variable of the runner.
|
|
1765
1906
|
|
|
1766
1907
|
A `runner-handoff.json` in the round's folder comes from an outdated
|
|
1767
1908
|
(pre-release) skill: it is **ignored**, never asked, and a one-line warning says so
|
|
@@ -2040,10 +2181,11 @@ bun test test/output.test.ts
|
|
|
2040
2181
|
| `lib/work-item-attachments.ts` | The `wi` writes — `comment` over `/cli/work-items/comments` and `evidence` (multipart) over `/cli/work-items/qa-evidence` |
|
|
2041
2182
|
| `lib/code.ts` | The `code` command group — `map` and `search` over `/cli/code/*` |
|
|
2042
2183
|
| `lib/phase-artifacts.ts` | The `artifact` command group — `submit` over `/cli/artifacts` and `commit` over `/cli/artifacts/commit`, body from a file |
|
|
2043
|
-
| `lib/prd-review.ts` | The `prd-review` command group — `get` (mandatory read-back) and `submit` over `/cli/prd-review`
|
|
2184
|
+
| `lib/prd-review.ts` | The `prd-review` command group — `get` (mandatory read-back) and `submit` over `/cli/prd-review`, and `claim`/`release` of the interactive Tech Review request |
|
|
2044
2185
|
| `lib/evaluations.ts` | The `eval` command group — `submit` over `/cli/evaluations` (envelope from a file), `latest` over `/cli/evaluations/report` and `list` over `/cli/evaluations/repositories`, project-level |
|
|
2186
|
+
| `lib/test-reports.ts` | The `test-report` command group — `submit` over `/cli/test-reports` (report from a file), project-level |
|
|
2045
2187
|
| `lib/sdlc-state.ts` | The `state` command group — `phase` over `/cli/state/phase` and `update` over `/cli/state`, the read/write pair over the same state |
|
|
2046
|
-
| `lib/prd-review-jobs.ts` | Tech Review queue client — `claim
|
|
2188
|
+
| `lib/prd-review-jobs.ts` | Tech Review queue client — `claim` (by work item, interactive), `heartbeat`, `release` and `finish` over `/cli/prd-review-jobs/*` |
|
|
2047
2189
|
| `lib/watch.ts` | The `watch` command — the PRD Tech Review runner: disposable worktree, the two Claude Code stages, heartbeat — no question during the round |
|
|
2048
2190
|
| `lib/user-config.ts` | The user's `config.json` in the configuration directory, and the private atomic writer shared with the credentials |
|
|
2049
2191
|
| `lib/doctor.ts` | Diagnostics |
|