fix(docs): the order fields stand on all five surfaces (green)
/trekbrief Phase 7 says the writer adds order_id / order_claimed_at / order_reason (never typed by the model) and that the yardstick joins use on order_id; the fixture row lists them in `fields`, EXPORT_DENYLIST names them, and its stale line_ref (657-672) now reads 961-976; the allowlist header names them as dropped; docs/architecture.md Stats explains them. /trekbrief --approve now runs Phase 7 after a successful stamp, with fixed values (mode "approve", 0 turns, brief_quality/research_topics/auto_research from the brief's frontmatter, auto_result "manual", intent_approved true). Valgt fordi PM 04.10 (point 3): fix the code, not the criterion - the approval must leave the trekbrief record. Measured hole: okf-wiki v1-k has brief-approved 04.10 17:12Z and trekplan 17:29Z, but only a 03.10 trekbrief record with intent_approved false. CLAUDE.md, README.md and docs/command-modes.md say so. The manual path is unchanged. npm test 1309 -> 1362 (1360 pass / 0 fail / 2 skip). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
598ef1b694
commit
3f073b7bd7
7 changed files with 32 additions and 10 deletions
|
|
@ -134,6 +134,11 @@ written by `lib/stats/stats-append.mjs`, which falls back to
|
|||
`~/.claude/plugins/data/voyage-ktg-plugin-marketplace/`, the directory
|
||||
`scripts/yardstick.mjs` reads. A failed write is reported, not skipped.
|
||||
The other commands' stats phases still name the variable in prose only.
|
||||
A brief record also carries `order_id`, `order_claimed_at` and `order_reason`:
|
||||
the coord-queue order the run is working on, added by the writer from the
|
||||
queue's claimed orders (`lib/stats/claimed-order.mjs`), never by the model.
|
||||
`scripts/yardstick.mjs` joins its `use` number on `order_id`; the three fields
|
||||
are never exported.
|
||||
|
||||
## Terminology
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Per-command flag tables, imported from `CLAUDE.md` via pointer.
|
|||
| `--quick` | Compact start; still escalates if required sections are weak or the brief-review gate fails → brief.md with research plan |
|
||||
| `--gates {true\|false}` | (v3.4.0) Boolean autonomy-gate flag; present → gating on. Policy (`gates_mode`) detailed under `## Autonomy mode` in `docs/operations.md`. |
|
||||
| `--profile <name>` | (v4.1.0) Model profile: `economy` / `balanced` / `premium` / `fable` / `<custom>`. Sets `phase_models` for the brief phase. See `## Profile system` in `docs/operations.md`. |
|
||||
| `--approve <project-dir \| brief-file>` | (veikart steg 1) No interview: show the existing brief's `## Intent` + `## Goal` verbatim, ask the operator to approve, and on "Approve" stamp `intent_approved_hash` + `intent_approved_at` and emit `brief-approved`. The remedy `/trekplan` names when it halts on `BRIEF_INTENT_NOT_APPROVED` / `BRIEF_INTENT_APPROVAL_STALE`. |
|
||||
| `--approve <project-dir \| brief-file>` | (veikart steg 1) No interview: show the existing brief's `## Intent` + `## Goal` verbatim, ask the operator to approve, and on "Approve" stamp `intent_approved_hash` + `intent_approved_at`, emit `brief-approved`, and write the trekbrief stats record (`"mode": "approve"`). The remedy `/trekplan` names when it halts on `BRIEF_INTENT_NOT_APPROVED` / `BRIEF_INTENT_APPROVAL_STALE`. |
|
||||
|
||||
Always interactive. Phase 3 is a section-driven completeness loop (no hard cap on question count); Phase 4 runs a `brief-reviewer` stop-gate with max 3 review iterations. After writing the brief, asks the user to choose manual (print commands) or auto (Claude runs research + plan in foreground).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue