okstra 0.210.0 → 0.212.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/dist/cli-registry.mjs +6 -0
- package/dist/cli-registry.mjs.map +1 -1
- package/docs/cli.md +3 -2
- package/docs/project-structure-overview.md +2 -0
- package/package.json +1 -1
- package/runtime/BUILD.json +2 -2
- package/runtime/prompts/wizard/prompts.ko.json +3 -3
- package/runtime/python/okstra_ctl/locks.py +39 -0
- package/runtime/python/okstra_ctl/manager_launch.py +2 -1
- package/runtime/python/okstra_ctl/manager_paths.py +4 -0
- package/runtime/python/okstra_ctl/phases/implementation/instructions/_implementation-deliverable.md +5 -4
- package/runtime/python/okstra_ctl/phases/implementation/instructions/_implementation-verifier.md +9 -1
- package/runtime/python/okstra_ctl/phases/implementation/report.py +66 -19
- package/runtime/python/okstra_ctl/phases/implementation/report_assets/implementation.template.html +8 -7
- package/runtime/python/okstra_ctl/phases/implementation_planning/authoring.py +6 -2
- package/runtime/python/okstra_ctl/report_html/run_usage.py +9 -0
- package/runtime/python/okstra_ctl/report_html/visualizations.py +0 -8
- package/runtime/python/okstra_ctl/report_projections.py +18 -2
- package/runtime/python/okstra_ctl/report_synthesis_packet.py +19 -0
- package/runtime/python/okstra_ctl/report_translation.py +27 -6
- package/runtime/python/okstra_ctl/wizard/state.py +30 -1
- package/runtime/python/okstra_ctl/wizard/steps_options.py +19 -0
- package/runtime/python/okstra_ctl/wizard/steps_roles.py +7 -1
- package/runtime/python/okstra_ctl/worktree_lock_cli.py +87 -0
- package/runtime/schemas/final-report-v3.0.schema.json +11 -0
- package/runtime/templates/reports/html/assets/base.css +4 -2
- package/runtime/templates/reports/html/base.template.html +14 -9
- package/runtime/templates/reports/html/i18n/en.json +91 -2
- package/runtime/templates/reports/html/i18n/ko.json +91 -2
- package/runtime/templates/reports/html/macros/forms.html +8 -7
package/dist/cli-registry.mjs
CHANGED
|
@@ -115,6 +115,12 @@ export const COMMAND_REGISTRY = [
|
|
|
115
115
|
"are still alive (the Phase 7 rules, run early)",
|
|
116
116
|
],
|
|
117
117
|
},
|
|
118
|
+
{
|
|
119
|
+
name: "worktree-lock",
|
|
120
|
+
python: { target: { module: "okstra_ctl.worktree_lock_cli" } },
|
|
121
|
+
category: "admin",
|
|
122
|
+
summary: ["Run a declared command in a worktree, one at a time per worktree"],
|
|
123
|
+
},
|
|
118
124
|
{
|
|
119
125
|
name: "git-reconcile",
|
|
120
126
|
python: { target: { module: "okstra_ctl.git_reconcile" } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-registry.mjs","sourceRoot":"","sources":["../src/cli-registry.mts"],"names":[],"mappings":"AAOA,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;QACE,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,kCAAkC;QAC1C,MAAM,EAAE,YAAY;QACpB,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,CAAC,0DAA0D,CAAC;KACtE;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,kCAAkC;QAC1C,MAAM,EAAE,oBAAoB;QAC5B,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,CAAC,0DAA0D,CAAC;KACtE;IACD;QACE,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,oCAAoC;QAC5C,MAAM,EAAE,cAAc;QACtB,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,CAAC,0DAA0D,CAAC;KACtE;IACD;QACE,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,gCAAgC;QACxC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,CAAC,qDAAqD,CAAC;KACjE;IACD;QACE,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,iCAAiC;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE;YACP,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,OAAO,CAAC,OAAO,CAAC;IACzC,MAAM,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;IACpE,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;IAC5E,OAAO,CAAC,IAAI,EAAE,GAAG,aAAa,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,UAAU,CAAC,QAAuC;IACzD,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC;SAC3D,GAAG,CAAC,SAAS,CAAC;SACd,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAChB,QAAQ;IACR,qBAAqB;IACrB,UAAU,CAAC,OAAO,CAAC;IACnB,2FAA2F;IAC3F,UAAU,CAAC,eAAe,CAAC;IAC3B,uBAAuB;IACvB,cAAc;IACd,MAAM,CAAC"}
|
package/docs/cli.md
CHANGED
|
@@ -858,6 +858,7 @@ The `okstra` Node CLI (`bin/okstra`) provides both installer/admin commands and
|
|
|
858
858
|
| `okstra worker-state transition --team-state <path> --worker <id> --status <in-progress\|completed\|timeout\|error\|not-run> [--reason <text>] [--model <execution-value>]` | Atomically update one persisted worker row. `in-progress` records the authoritative `startedAt` and clears `endedAt`; terminal states record `endedAt`; `timeout`, `error`, and `not-run` require a reason. Dispatch adapters use this same transition path, so CLI-backed and in-process orchestration share the status timestamp contract |
|
|
859
859
|
| `okstra worker-liveness [--team-state <path> --worker <id>]… [--max-idle <seconds>] [--launch-grace <seconds>] [--stall-confirm <seconds>] [--json]` | Judge whether pending workers are still alive so the lead's poll ends a stalled wait early instead of paying the full deadline. Prefer paired `--team-state <path> --dispatch-id <id>` options for identified attempts; do not mix them with `--worker`. Worker-name selection is retained only when the dispatch is unambiguous. Each retry starts a new wait for its own id. A selector error is a monitoring-input defect, not a failed worker. The worker row's `livenessMode` picks the probe: `audit-heartbeat` reads its `auditSidecarPath` and reports `stalled` when the `- PROGRESS:` heartbeat is past the idle budget; `wrapper-status` reads its `promptPath` and reports `did-not-launch` when neither the wrapper `.log` nor `.status.json` appears. Both graces start at the persisted `startedAt`, never at an artifact mtime — the audit sidecar is reused on re-dispatch, so a heartbeat older than this dispatch counts as no signal yet rather than a stall. A heartbeat budget breach is confirmed before it is reported: the probe re-reads the sidecar after `--stall-confirm` seconds (default: half that stage's budget; `0` disables) and reports `stalled` only when the newest heartbeat has not advanced, so a worker inside one long uninterruptible tool call is not judged dead for being slow. Healthy probes report `live`. It only judges—it never kills or re-dispatches. Exit 1 on an unhealthy verdict, so a poll loop can branch without parsing JSON. The heartbeat line shape and budget come from the `okstra_ctl.worker_heartbeat` SSOT shared with the Phase 7 audit (`validators/validate_session_conformance.py`) |
|
|
860
860
|
| `okstra verification-target --project-root <dir> --run-manifest <path> --expected-head <commit> --command <declared-command> [--baseline <json>]` | Read-only target observation for implementation and final verification. Reads the active run's worktree, checks the commit and rejects checkout-changing command syntax without executing the command. Save the JSON before the check; compare it with `--baseline` afterwards. Changed source fingerprints, commands, worktrees or commits invalidate reuse. A successful observation does not prove the declared command was executed. Exit 1 on a target or input error. |
|
|
861
|
+
| `okstra worktree-lock --worktree <dir> --command <declared-command>` | Launcher for an implementation verifier's Tier 1 command. Runs the command unchanged through `$SHELL -c` (or `/bin/sh`) with the worktree as its working directory, inside an exclusive `flock` keyed by the worktree's realpath, so the verifiers of one stage re-run fixed-port commands one at a time instead of killing each other's servers. Stdout and stderr pass through; the exit code is the command's (128+N for a signal). Lock notices go to stderr only. The lock file is `<okstra home>/.locks/worktree-exec/<hash>.lock` — outside the worktree and the project's `.okstra/`, which the verifier mutation audit watches. If that file cannot be created or locked, the command runs unlocked after a stderr warning. Exit 2 when `--worktree` is not a directory. |
|
|
861
862
|
| `okstra worker-audit-check --run-dir <runs/<task-type>/> --task-type <type> --seq <nnn> [--worker <id>]` | Apply the Phase 7 worker audit-sidecar rules mid-run, while the worker session is still alive. For each of this run's `worker-results/<worker>-<task-type>-<seq>.md` it checks that the file carries no `## 0. Reading Confirmation` heading, that the matching audit sidecar exists, and — for prompts carrying the required-v1 evidence-ledger marker — that every backticked `path:line` citation has an Evidence read row in that sidecar. `--worker` scopes it to the role that just returned. `--seq` accepts a bare number and zero-pads it to three digits, so `--seq 1` and `--seq 001` select the same run. Emits `{ok, inspected, inspectedFiles[], failures[], blocking[], advisory[], runImpact}` and exits 2 when `failures[]` (= `blocking` + `advisory`) is non-empty — and also when the selector matched no result file at all, in which case the payload carries `selectorError` and empty `failures[]`: nothing was judged, which is not a pass. Exit 2 means "fix it now", not "the run fails": only `blocking` rows (no audit sidecar) fail the run at Phase 7, while `advisory` rows (a citation with no matching Evidence read row) never fail the run and are only repairable while the worker session is alive — do not reject or re-dispatch a result over an advisory row alone. The rules come from the `okstra_ctl.worker_audit_ledger` SSOT shared with `validate-run.py`, so an early pass and the Phase 7 pass cannot disagree. Run it right after collecting a result: the same failure at Phase 7 leaves only a retroactive edit, which breaks the audit chain, or a failed run |
|
|
862
863
|
| `okstra prune-run-artifacts [--project-root <dir>] [--cwd <dir>] [--task-group <group> --task-id <id>] [--apply] [--text]` | List, under `.okstra/tasks` (or one task root) with sizes and a total, what no reader needs after a run: every `node_modules` and `.next` directory, and the dispatch snapshots (`*.mutation-audit.json`) and publication locks (`*.publish.lock`) that the team state records for a run whose `validation.status` is `passed`, or for an earlier run in the same run directory (lower manifest sequence) than a passed one. It removes them only with `--apply`. Symbolic links are neither followed nor removed; source copies, logs, lockfiles, diffs, prompts and results stay, so technical-verification experiment working directories remain valid. The `prune-run-artifacts` Phase 7 step does the same for its own run directory; this command cleans runs finalized before it |
|
|
863
864
|
| `okstra log-report [--project-root <dir>] [--cwd <dir>] [--top <N>] [--json]` | Read-only inventory of wrapper transcript `.log` files and their sibling prompt `.md` files. Each ranked entry preserves `path` / `sizeBytes` for compatibility and also reports `transcriptPath`, `transcriptBytes`, `promptPath`, `promptBytes`, and `transcriptToPromptRatio`; totals distinguish prompt bytes from transcript bytes and count paired files. Ranking remains transcript-size descending |
|
|
@@ -868,8 +869,8 @@ The `okstra` Node CLI (`bin/okstra`) provides both installer/admin commands and
|
|
|
868
869
|
| `okstra migrate [--apply] [--cwd <dir>] [--quiet]` | One-time migration of the project artifact root from `.project-docs/okstra/` to `.okstra/`. It is a dry run by default; `--apply` performs the move with `git mv` in a Git worktree, removes an empty `.project-docs/`, and synchronizes the `<PROJECT>/CLAUDE.md` import line, `.gitignore`, the project's rows in `~/.okstra/{recent,active}.jsonl`, and `~/.okstra/worktrees/registry.json`. It exits 1 if `.okstra/` already exists or the legacy directory is absent. Scheduled for removal by the end of v0.x |
|
|
869
870
|
| `okstra task-list [--project-root <path>]` | Combine `list_project_tasks` and `read_latest_task` into JSON containing the task catalog and latest task |
|
|
870
871
|
| `okstra task-show <task-key> [--project-root <path>]` | Summarize workflow, phase, status, and artifacts from the Task Read-Side Snapshot |
|
|
871
|
-
| `okstra stage-map <task-key> [--cwd <dir>\|--project <dir>]` | Dump the task's implementation-planning Stage Map as JSON: `{ ok, taskKey, taskRoot, state, sourcePlanPath, stages:[{stage_number,title,depends_on,step_count}], doneStages:[int] }`. `sourcePlanPath` is the task's latest implementation-planning report — the authority on which stages exist, so a plan amendment's added stages are selectable as soon as the amended plan lands. `state` is `ready` for a resolved source and `missing` when no Stage Map exists; a corrupt source returns a structured non-zero error instead of silently selecting another report. `doneStages` is read from the implementation-planning stage consumer state (with carry recovery). This is the read-side source `/okstra-schedule-gen [task-group]` uses to derive selectable unfinished stages and their completed dependency closure |
|
|
872
|
-
| `okstra stage-close <task-key> --stage <N> --from-commit <sha> [--cwd <dir>\|--project <dir>]` | Record the `done` stage-consumer row an implementation run would have written, for a stage whose work is already committed but which never registered as done — the run ended before writing its carry sidecar, and `backfill_done_from_carry` recovers only from that file. Without it `stage-map` reports `doneStages: []` while the branch carries the commit, the next plan re-describes the stage, and every RED expectation it produces is unreachable. Refuses unless the Stage Map has that stage, no `done`/`failed` row exists for it, `--from-commit` resolves to a commit in the project repo, and the stage's conformance gate permits progress — the same `decide_conformance_gate` the run validator uses, so a stage closed here is not one the validator would have blocked. Closing also moves the `stage-<N>-exit` tag and releases the stage reservation, exactly as a normal stage completion does. Emits `{ ok, taskKey, taskRoot, stage, headCommit, conformance, consumersPath }` |
|
|
872
|
+
| `okstra stage-map <task-key> [--cwd <dir>\|--project <dir>]` | Dump the task's implementation-planning Stage Map as JSON: `{ ok, taskKey, taskRoot, state, sourcePlanPath, stages:[{stage_number,title,depends_on,step_count,cancelled}], doneStages:[int] }`. Each stage row carries `cancelled: true` when the plan marks that Stage Map row `status: cancelled`; such a stage is never selected, cannot be closed, and is left out of whole-task final verification and release handoff. `sourcePlanPath` is the task's latest implementation-planning report — the authority on which stages exist, so a plan amendment's added stages are selectable as soon as the amended plan lands. `state` is `ready` for a resolved source and `missing` when no Stage Map exists; a corrupt source returns a structured non-zero error instead of silently selecting another report. `doneStages` is read from the implementation-planning stage consumer state (with carry recovery). This is the read-side source `/okstra-schedule-gen [task-group]` uses to derive selectable unfinished stages and their completed dependency closure |
|
|
873
|
+
| `okstra stage-close <task-key> --stage <N> --from-commit <sha> [--cwd <dir>\|--project <dir>]` | Record the `done` stage-consumer row an implementation run would have written, for a stage whose work is already committed but which never registered as done — the run ended before writing its carry sidecar, and `backfill_done_from_carry` recovers only from that file. Without it `stage-map` reports `doneStages: []` while the branch carries the commit, the next plan re-describes the stage, and every RED expectation it produces is unreachable. Refuses unless the Stage Map has that stage and does not mark it cancelled, no `done`/`failed` row exists for it, `--from-commit` resolves to a commit in the project repo, and the stage's conformance gate permits progress — the same `decide_conformance_gate` the run validator uses, so a stage closed here is not one the validator would have blocked. Closing also moves the `stage-<N>-exit` tag and releases the stage reservation, exactly as a normal stage completion does. Emits `{ ok, taskKey, taskRoot, stage, headCommit, conformance, consumersPath }` |
|
|
873
874
|
| `okstra incremental-scope <args…>` | Decide re-verify vs carry-forward scope for an `implementation-planning` clarification re-run. Thin shim into `scripts/okstra_ctl/incremental_scope.py` (deterministic): it reads the dependency graph from the prior run `data.json`'s `implementationPlanning.stageMap` and returns `mode:"incremental"` only when the base-ref SHA is unchanged and the affected stages' `downstream_stage_closure` covers at most half of all stages; `--full-reason` (selected option / Stage Map / approach) still forces `mode:"full"`. An answered `C-NNN` that traces to no stage returns `mode:"unresolved"` rather than full — pass `--impacted` with the stage numbers or `--full-reason`. `--run-manifest <path>` is required for a decision (not for `--preview`): the same decision is written to the record that manifest names in `incrementalDecisionPath`, so the report writer's authoring contract and `okstra incremental-carry` read it instead of CSVs the lead re-typed. `mode: "unresolved"` is a question back to the lead and is deliberately not recorded. `--preview --prev-data <path> --answered-clarifications <csv>` runs the link half alone — no base SHA, no side effects — and prints `{wouldForceFull, unlinkedIds, reason}`; unlinked ids set `wouldForceFull: false` and fill `unlinkedIds` |
|
|
874
875
|
| `okstra incremental-carry <args…>` | Merge carried-forward plan-item verdicts into an incremental re-run. Contract v3 takes `--prev-data`, `--cur-narrative`, and the convergence-owned `--state`; it verifies carried stage rows and writes only `--out-state`, tagging copied verdicts with `carriedForwardFromSeq`. Pass `--decision <incrementalDecisionPath>` for the two stage sets — the same record the report writer's authoring contract was built from — instead of `--carry-stages` / `--reverify-stages`, which the lead re-typed off stdout; the two forms cannot be combined, and a record whose `mode` is not `incremental` is refused. Unchanged `P-Val-*` / `P-Req-*` / `P-Rb-*` rows whose extract hash still matches are carried the same way, and the sibling `plan-items-*.json` `dispatchQueue` is rewritten to match. The historical v2 `--cur-data --out` form remains readable. Ownership, scope, item, or schema drift raises `CarryError` and forces a full fallback. |
|
|
875
876
|
| `okstra code-review target --task-key <k> --stage <N> [--project-root <dir>] [--cwd <dir>] [--json]` / `okstra code-review target --branch <name> [--base <ref>] [--date <YYYY-MM-DD>] [--project-root <dir>] [--cwd <dir>] [--json]` | Resolve what a code review reads and where its result file goes. Output is always JSON, so `--json` only makes that explicit. `--project-root` and `--cwd` are shared pre-dispatch arguments and apply to both modes; `--cwd` is only consulted when `--project-root` is absent. Both modes return `{ ok, projectRoot, mode, worktreePath, branch, baseCommit, headCommit, reviewPath, round }`; stage mode additionally returns `taskKey`, `taskRoot`, and `stage`. Stage mode takes the diff base from the `base_ref` recorded on that stage's worktree-registry row when it was provisioned — not from a rule re-applied at review time — and names the result `.okstra/tasks/<task-group>/<task-id>/code-reviews/stage-<NN>.md`, where a re-review of the same stage becomes `-r2`, `-r3`, … (the `round` field). Only a legacy row provisioned before `base_ref` was recorded falls back to re-deriving the base through `stage_targets`, and a failure there is reported as `stage_base_unresolved`. `worktreePath` comes back empty whenever the stage worktree is not usable as a live checkout — the registry row is no longer `active` (whole-task final-verification released it), the row never carried a path, or the recorded directory is gone — and the review then reads the `branch` ref instead. Branch mode uses `--base` when given, otherwise the merge-base with the default branch (`refs/remotes/origin/HEAD`, else `main`/`master`), and names the result `.project-docs/code-reviews/<branch>/<YYYY-MM-DD>-<NN>.md`, where `<NN>` (the `round` field) is the next sequence number for that date — the highest already on disk plus one. Read-only: it resolves paths and creates no directory and no file, so the review directory does not exist until the caller writes the report. Backend for the okstra-code-review skill |
|
|
@@ -186,6 +186,7 @@ The Module column below is where the command's behaviour lives — a `src/` modu
|
|
|
186
186
|
| `context-cost` | `scripts/okstra_ctl/context_cost.py` | Estimate task bundle file/read context cost |
|
|
187
187
|
| `worktree-lookup` | `scripts/okstra_ctl/worktree_lookup_cli.py` | Look up a task-key's registered worktree |
|
|
188
188
|
| `worktree-status` | `scripts/okstra_ctl/worktree_status_cli.py` | Clean-worktree check over source paths only, excluding okstra's provisioned entries and nested stage worktrees (Python: `okstra_ctl.worktree.dirty_entries_excluding_okstra`) |
|
|
189
|
+
| `worktree-lock` | `scripts/okstra_ctl/worktree_lock_cli.py` | Run a verifier's declared Tier 1 command in its worktree under an exclusive lock keyed by the worktree realpath (Python: `okstra_ctl.locks.worktree_exec_lock`) |
|
|
189
190
|
| `plan-validate` | `scripts/okstra_ctl/plan_validate_cli.py` | Check approved-plan approval marker |
|
|
190
191
|
| `render-bundle` | `src/commands/execute/render-bundle.mts` | Preview `prepare_task_bundle(render_only=True)` |
|
|
191
192
|
| `profile` | `scripts/okstra_ctl/profile_show.py` | Print a phase profile with `{{INCLUDE:}}` expanded and its lazy-read sidecars appended transitively, so one grep answers whether a task-type covers a rule — a top-level grep alone returns false negatives (Python: `okstra_ctl.profile_show`). Read-only, unlike `render-bundle` |
|
|
@@ -411,6 +412,7 @@ Important modules:
|
|
|
411
412
|
| `plan_verify_cli.py` | `okstra plan-verify` entry point |
|
|
412
413
|
| `doctor_cli.py` | diagnostic projection that `okstra doctor` (`src/commands/lifecycle/doctor.mts`) calls |
|
|
413
414
|
| `worktree_cli.py` | handlers behind `okstra worktree-lookup` and `okstra worktree-status` |
|
|
415
|
+
| `worktree_lock_cli.py` | `okstra worktree-lock` — runs one declared command in a worktree, one invocation at a time per worktree |
|
|
414
416
|
| `interactive_cli.py` | lookup helpers for the `okstra.sh` interactive input path (`scripts/lib/okstra/interactive.sh`) |
|
|
415
417
|
| `brief_frontmatter.py` | shared lightweight parser for a brief's frontmatter; read by `run.py`, direct completion, the task-group context, the wizard's brief suggestions, and the improvement-report validator |
|
|
416
418
|
| `convergence_provenance.py` | Round-0 grouping provenance — checks that every source item a group cites exists in the canonical worker result; shared by the convergence engine, the critic prompts, and `validate-run.py` |
|
package/package.json
CHANGED
package/runtime/BUILD.json
CHANGED
|
@@ -372,14 +372,14 @@
|
|
|
372
372
|
}
|
|
373
373
|
},
|
|
374
374
|
"directive_pick": {
|
|
375
|
-
"label": "추가 directive
|
|
375
|
+
"label": "이번 run 에 덧붙일 추가 지시(directive)를 고르세요. directive 는 instruction-set/directive.txt 로 저장되어 리드와 워커가 읽습니다. 브리프와 이전 리포트에 없는 새 결정(직전 run 이후 정한 사항 등)은 여기에 넣어야 계획에 반영됩니다.",
|
|
376
376
|
"echo_template": "directive(pick): {value}",
|
|
377
377
|
"options": {
|
|
378
378
|
"__skip__": "없음 (건너뛰기)",
|
|
379
379
|
"__free_input__": "직접 입력"
|
|
380
380
|
},
|
|
381
381
|
"labels": {
|
|
382
|
-
"reuse_last": "이전 run 의 directive 재사용: {snippet}"
|
|
382
|
+
"reuse_last": "이전 run 의 directive 재사용: {snippet}", "context_file": " — 이 directive 는 파일 {path} 을 읽으라는 지시이고, 그 파일은 {date} 에 마지막으로 바뀌었습니다. 이후 정한 결정은 들어 있지 않습니다", "context_missing": " — 이 directive 가 가리키는 파일 {path} 이 없습니다"
|
|
383
383
|
},
|
|
384
384
|
"echo_suffixes": {
|
|
385
385
|
"reuse": "directive: {value} (재사용)",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
}
|
|
478
478
|
},
|
|
479
479
|
"reuse_previous": {
|
|
480
|
-
"label": "이 task·phase 의 직전 run 설정이 남아 있습니다. 그대로 재사용할까요?\n· 예 — 직전 run 의 워커 구성·역할별 모델·directive·관련 task 를
|
|
480
|
+
"label": "이 task·phase 의 직전 run 설정이 남아 있습니다. 그대로 재사용할까요?\n· 예 — 직전 run 의 워커 구성·역할별 모델·directive·관련 task 를 가져오고, 가장 최근 final-report 를 clarification 입력으로 자동 선택합니다. 가져온 항목은 다시 묻지 않고, 재사용 대상이 아닌 단계(기준 브랜치·재검증 범위 등)는 이어서 묻습니다.\n· 아니오 — 모델/워커/directive 등을 단계별로 다시 입력합니다.\n재사용할 directive: {directive}\n직전 run 이후 새로 정한 결정이 있으면 이 directive 에 없습니다. 확인 단계의 수정에서 directive_pick 을 고르면 directive 부터 다시 고를 수 있습니다(역할별 모델은 유지).",
|
|
481
481
|
"echo_template": "reuse-previous: {value}",
|
|
482
482
|
"options": {
|
|
483
483
|
"yes": "예 — 직전 설정 그대로 진행",
|
|
@@ -3,6 +3,8 @@ from __future__ import annotations
|
|
|
3
3
|
|
|
4
4
|
import contextlib
|
|
5
5
|
import fcntl
|
|
6
|
+
import hashlib
|
|
7
|
+
from pathlib import Path
|
|
6
8
|
|
|
7
9
|
from .ids import _escape_segment_for_join, _safe_fs_segment
|
|
8
10
|
|
|
@@ -58,3 +60,40 @@ def worktree_provision_mutex(home, project_id: str, task_group: str,
|
|
|
58
60
|
yield
|
|
59
61
|
finally:
|
|
60
62
|
fcntl.flock(f.fileno(), fcntl.LOCK_UN)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def worktree_exec_lock_path(home, worktree) -> Path:
|
|
66
|
+
"""`<home>/.locks/worktree-exec/<realpath 해시>.lock`.
|
|
67
|
+
|
|
68
|
+
락 파일은 worktree 안에도 프로젝트 `.okstra` 안에도 두지 않는다 — 검증자
|
|
69
|
+
변이 감사(execution_mutation_audit)가 그 두 루트의 새 파일을 잡아 검증자
|
|
70
|
+
결과를 버리기 때문이다. 같은 worktree 를 가리키는 다른 표기(심링크, 상대
|
|
71
|
+
경로)가 같은 락을 쓰도록 realpath 로 키를 만든다.
|
|
72
|
+
"""
|
|
73
|
+
key = hashlib.sha256(str(Path(worktree).resolve()).encode("utf-8")).hexdigest()
|
|
74
|
+
return Path(home) / ".locks" / "worktree-exec" / f"{key[:32]}.lock"
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@contextlib.contextmanager
|
|
78
|
+
def worktree_exec_lock(home, worktree, *, on_wait=None):
|
|
79
|
+
"""worktree 단위 명령 실행 임계구역 (fcntl LOCK_EX).
|
|
80
|
+
|
|
81
|
+
한 stage 의 검증자들은 같은 worktree 에서 동시에 돈다. 고정 포트에 서버를
|
|
82
|
+
띄우는 Tier 1 명령은 동시에 돌면 서로의 서버를 죽이고 남의 서버에 붙으므로
|
|
83
|
+
이 락으로 한 번에 하나씩 돌린다. 이미 누가 쥐고 있으면 기다리기 전에
|
|
84
|
+
`on_wait(lockfile)` 을 한 번 부른다. 획득 전 OSError 는 그대로 올린다 —
|
|
85
|
+
잠그지 못할 때 어떻게 할지는 호출자가 정한다.
|
|
86
|
+
"""
|
|
87
|
+
lockfile = worktree_exec_lock_path(home, worktree)
|
|
88
|
+
lockfile.parent.mkdir(parents=True, exist_ok=True)
|
|
89
|
+
with lockfile.open("a") as f:
|
|
90
|
+
try:
|
|
91
|
+
fcntl.flock(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
|
92
|
+
except BlockingIOError:
|
|
93
|
+
if on_wait is not None:
|
|
94
|
+
on_wait(lockfile)
|
|
95
|
+
fcntl.flock(f.fileno(), fcntl.LOCK_EX)
|
|
96
|
+
try:
|
|
97
|
+
yield lockfile
|
|
98
|
+
finally:
|
|
99
|
+
fcntl.flock(f.fileno(), fcntl.LOCK_UN)
|
|
@@ -7,6 +7,7 @@ from pathlib import Path
|
|
|
7
7
|
from okstra_ctl.jsonl import append_jsonl, read_jsonl
|
|
8
8
|
|
|
9
9
|
from .manager_paths import (
|
|
10
|
+
MANAGER_CONTEXT_DIRECTIVE_PREFIX,
|
|
10
11
|
child_context_path,
|
|
11
12
|
children_json_path,
|
|
12
13
|
directives_jsonl_path,
|
|
@@ -244,7 +245,7 @@ def build_launch_packet(
|
|
|
244
245
|
run_args.extend(["--task-brief", str(child["briefPath"])])
|
|
245
246
|
run_args += [
|
|
246
247
|
"--directive",
|
|
247
|
-
f"
|
|
248
|
+
f"{MANAGER_CONTEXT_DIRECTIVE_PREFIX}{context_path}",
|
|
248
249
|
]
|
|
249
250
|
packet = {
|
|
250
251
|
"managerId": manager_id,
|
|
@@ -118,3 +118,7 @@ def child_context_path(
|
|
|
118
118
|
|
|
119
119
|
def view_html_path(home: Path, manager_id: str) -> Path:
|
|
120
120
|
return manager_root(home, manager_id) / "view" / "index.html"
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
# manager 가 자식 run 에 넘기는 directive 의 앞부분. 위저드는 이 접두로 컨텍스트 파일을 찾는다.
|
|
124
|
+
MANAGER_CONTEXT_DIRECTIVE_PREFIX = "Read manager child context: "
|
package/runtime/python/okstra_ctl/phases/implementation/instructions/_implementation-deliverable.md
CHANGED
|
@@ -12,11 +12,12 @@ are collected and convergence finished. Phase 1-5 do not need it.
|
|
|
12
12
|
|
|
13
13
|
- **Plan link & approval evidence**: path to the approved `final-report.md`, the exact quoted approval marker, AND the executed stage number / title quoted from the Stage Map row. For a selected-direction plan, also quote `selectedDirectionRef.optionId`, `snapshotPath`, and the validated snapshot digest; for a legacy plan, quote the effective `implementation-option` or the Recommended Option fallback.
|
|
14
14
|
- **Commit list**: each commit's SHA (or short SHA), message, and the plan step(s) / TDD cycle it satisfies
|
|
15
|
-
- **Diff summary**: capture `git diff --stat <base>..<captured-head>` and `git diff --numstat <base>..<captured-head>` for the full implementation stage, including after a fix run. Supply both outputs to the report writer;
|
|
15
|
+
- **Diff summary**: capture `git diff --stat <base>..<captured-head>` and `git diff --numstat <base>..<captured-head>` for the full implementation stage, including after a fix run. Supply both outputs to the report writer; put each file's added/deleted counts alone in `diffSummary.files[].lines` (`+150/-0`) and one sentence on what the change in that file does in `diffSummary.files[].summary` — the report renders `summary` as the file's "what it does" column and `lines` as a separate number column. Do not substitute a fix-run aggregate or carry forward older statistics. If the captured commits are unavailable, identify the missing reference in the evidence instead of inventing counts.
|
|
16
|
+
- **Change narrative scope**: `userNarrative.changeExplanation` describes the same scope as `diffSummary` — the whole stage from its base, every file the table lists. On a fix run, state what the fix run itself changed (its commits and files) as a separate sentence; never present the fix-run delta as the stage's change.
|
|
16
17
|
- **Out-of-plan edits block**: every file edited that was not in the approved plan's file list, with rationale (empty block is acceptable and preferred)
|
|
17
18
|
- **Clarification answers carried in**: when `instruction-set/clarification-response.md` exists, it holds the user's answers to the approved plan's `## 1. Clarification Items` rows. The report MUST render the `## 0. Clarification Response Carried In From Previous Run` section (set `clarificationCarryIn.sourceFile` to that path) and, for every carried-over `## 1.` row whose answer appears there, record the answer in the `User input` cell and flip `Status` to `resolved`. A row left `open`/`answered` despite a matching user answer is a contract violation; an answer that materially changes scope beyond the approved plan is routed to a new `implementation-planning` run, not silently executed.
|
|
18
|
-
- **Stage sidecar evidence**:
|
|
19
|
-
- **Validation evidence**: actual command output (stdout/stderr) for every `pre / mid / post` validation command from the plan. Truncated output is acceptable but the command line and exit code MUST be exact. No paraphrasing of test results.
|
|
19
|
+
- **Stage sidecar evidence**: set `stageSidecarEvidence.carryJson` to the path `runs/<impl-task-key>/carry/stage-<N>.json` followed by a one-line summary of its payload — stage number, step results by status, stage commit range, number of files changed. Do not paste the payload itself: the file on disk is the record (`_validate_stage_carry_sidecar_exists` checks that it exists), and a pasted one-line JSON is unreadable in the report. Quote the `consumers.jsonl` rows this run appended line-by-line in `consumerRows`.
|
|
20
|
+
- **Validation evidence**: actual command output (stdout/stderr) for every `pre / mid / post` validation command from the plan. Truncated output is acceptable but the command line and exit code MUST be exact. No paraphrasing of test results. Set `checkId` to the plan's `validationChecklist` id (`VC-007`) when the row runs a checklist command, and `advisory: true` on a row whose check is advisory (an external Tier 3 conformance entry, for example) so a non-zero exit there is not shown as a failure.
|
|
20
21
|
- **TDD evidence (when applicable)**: for steps that should be TDD-ordered, show the failing-test output captured BEFORE the merged commit and the passing-test output after, citing the single `feat|fix` commit SHA (test and implementation share one commit).
|
|
21
22
|
- **Verifier results**: a section per verifier present in the resolved roster (`Claude verifier`, `Codex verifier`, and `Antigravity verifier` when opted in) containing:
|
|
22
23
|
- their independent verdict (PASS / CONCERNS / FAIL),
|
|
@@ -66,4 +67,4 @@ are collected and convergence finished. Phase 1-5 do not need it.
|
|
|
66
67
|
- On a non-`FAIL` verdict, for this run's single stage: append a `status:"done"` row to `runs/<plan-task-key>/consumers.jsonl` with `completed_at`, `carry_path`, `report_path` (this run's final-report path relative to the run root), and the SHA of HEAD. Append it with `okstra_ctl.consumers.append_consumer` (NOT a raw filesystem write) — that call honours the consumers lock AND releases this stage's worktree-registry occupancy, so later runs stop seeing a finished stage as a concurrent run. `report_path` lets `final-verification` cite each stage's originating report when assembling its Source Implementation Report list.
|
|
67
68
|
- **Reopening a settled stage.** Appending a `status:"failed"` row after a `done` one withdraws that stage: `--stage N` accepts it again, its dependents stop resolving a base from the withdrawn head, and whole-task final-verification blocks until it is settled again. Use the same `okstra_ctl.consumers.append_consumer` call with a `reason`, and re-run the stage rather than repairing the tree outside okstra — a stage reverted outside the ledger leaves the recorded `head_commit` and the carry sidecar naming a tree that no longer exists, and the next stage branches from it.
|
|
68
69
|
- The verifier round, Phase 5.5 convergence, and this Phase 6 report run **once per run** over this stage's diff — NOT per step.
|
|
69
|
-
-
|
|
70
|
+
- Record this stage's new contents in the final report's `Stage sidecar evidence` deliverable section: the sidecar by path with its one-line summary, and the new consumers row quoted by itself.
|
package/runtime/python/okstra_ctl/phases/implementation/instructions/_implementation-verifier.md
CHANGED
|
@@ -23,7 +23,7 @@ Every verifier acts as a QA gate, not just a diff reviewer. Trusting the executo
|
|
|
23
23
|
|
|
24
24
|
### Record the verification target
|
|
25
25
|
|
|
26
|
-
Before each declared check, run `okstra verification-target --project-root <project-root> --run-manifest <run-manifest> --expected-head <executor-head> --command <exact-declared-command>` and preserve its JSON output under this run's artifact directory. This tool reads the active run's recorded worktree and checks its HEAD and source fingerprint; it never executes the command. Execute exactly the returned `target.command` through the host's authorized tool with `target.cwd` as its separate working-directory argument. The tool separates a legacy trailing `; existing helper: <file>:<lines>` annotation and removes a leading `cd` only when it names that exact worktree. Preserve `declaredCommand` and `commandAnnotation` when returned; never independently trim prose or rewrite shell syntax. Repeat the target check with the same original declaration and `--baseline <saved-json>` after execution. Include both target-check results and the actual command outcome in `readOnlyCommandLog`. Enforcement: `capture_verification_target` and `test_verification_target_returns_one_command_without_executing_it`.
|
|
26
|
+
Before each declared check, run `okstra verification-target --project-root <project-root> --run-manifest <run-manifest> --expected-head <executor-head> --command <exact-declared-command>` and preserve its JSON output under this run's artifact directory. This tool reads the active run's recorded worktree and checks its HEAD and source fingerprint; it never executes the command. Execute exactly the returned `target.command` through the host's authorized tool with `target.cwd` as its separate working-directory argument; for a Tier 1 command that execution goes through the worktree lock described in the Execution rule below. The tool separates a legacy trailing `; existing helper: <file>:<lines>` annotation and removes a leading `cd` only when it names that exact worktree. Preserve `declaredCommand` and `commandAnnotation` when returned; never independently trim prose or rewrite shell syntax. Repeat the target check with the same original declaration and `--baseline <saved-json>` after execution. Include both target-check results and the actual command outcome in `readOnlyCommandLog`. Enforcement: `capture_verification_target` and `test_verification_target_returns_one_command_without_executing_it`.
|
|
27
27
|
|
|
28
28
|
A target mismatch or changed fingerprint invalidates this check's evidence. Record it as an execution-target problem, preserve the source, and rerun only the affected verification after the lead resolves it. An unavailable environment or a check that never ran is not a code rejection. A matching target fingerprint proves source stability at the two observations; it does not prove the command ran or that the test covers the requirement. Keep the independent command outcome and coverage assessment.
|
|
29
29
|
|
|
@@ -50,6 +50,14 @@ Verifier obtains the QA command set from exactly two declared sources, in order
|
|
|
50
50
|
|
|
51
51
|
Tier 1 commands run verbatim first. Then every Tier 2 entry runs once. Then the Tier 3 stage conformance script (below) runs once. Then the self-mock detector (below) runs once whenever the diff changed a test file. Those last two are run by the stage QA owner only (next section). Each command runs in the worktree cwd, and is recorded in the worker result with its exact command line, exit code, and the tail of stdout/stderr. Substituting or paraphrasing a Tier 1 command is forbidden (see Verifier-specific forbidden actions below).
|
|
52
52
|
|
|
53
|
+
Launch every Tier 1 command through the worktree lock:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
okstra worktree-lock --worktree <target.cwd> --command '<target.command>'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The verifiers of a stage share one worktree and run at the same time, and each re-runs every Tier 1 command. A Tier 1 command that starts servers on fixed ports (a dev server on 3000 plus a fixture API on 8899 behind one `playwright test` line, fontsninja-v3-site dev-11126 stage 1) collides with the same command from another verifier: each kills or attaches to the other's servers, and the exit codes stop describing the code. The lock is keyed by the worktree, so each verifier still runs the command itself, only one at a time. The wrapper is the launcher, not the command: record the declared `target.command` as the command line, and the wrapper's exit code and stdout/stderr tail as that command's — the wrapper passes both through unchanged and adds only stderr lines prefixed `okstra worktree-lock:`. A `waiting` notice means another verifier held the lock; a `running unlocked` warning means the lock file could not be created, so record that warning beside the result. This is a guideline: nothing checks the command log for the launcher. The lock behaviour (no overlap on one worktree, no blocking across worktrees, output and exit-code pass-through, lock file outside the worktree) is covered by `tests/worktree/test_worktree_exec_lock.py`.
|
|
60
|
+
|
|
53
61
|
### Stage QA owner
|
|
54
62
|
|
|
55
63
|
Every verifier of this stage runs in the same worktree at the same time. Two checks change that worktree while they run: a Tier 3 conformance script may build into it (`.next/`, `dist/`) or bind fixed ports, and the self-mock detector's mutation probe rewrites production sources in place (cosmic-ray) or replaces a report file inside the worktree (Stryker). Run concurrently, they corrupt each other's result and the other verifiers' test runs (observed 2026-09-26, fontsninja-v3-site dev-11054 stage 1: `next build` + `next start -p 3000` + a proxy on 8889 from three verifiers at once).
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"""Human-first implementation delivery view model."""
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
|
+
import json
|
|
5
|
+
import re
|
|
6
|
+
from collections import Counter
|
|
7
|
+
|
|
4
8
|
from okstra_ctl.report_html.common import evidence_index
|
|
5
|
-
from okstra_ctl.report_html.models import HumanReportView
|
|
6
|
-
from okstra_ctl.report_html.visualizations import change_map_figure
|
|
9
|
+
from okstra_ctl.report_html.models import HumanReportView
|
|
7
10
|
|
|
8
11
|
# Record fields this template anchors as `id-<row id>` (see
|
|
9
12
|
# `HumanReportView.anchored_fields`); ids elsewhere land in the ledger.
|
|
@@ -13,39 +16,83 @@ ANCHORED_FIELDS = (
|
|
|
13
16
|
)
|
|
14
17
|
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
def _carry_payload(text: str) -> dict | None:
|
|
20
|
+
start = text.find("{")
|
|
21
|
+
if start < 0:
|
|
22
|
+
return None
|
|
23
|
+
try:
|
|
24
|
+
payload, _ = json.JSONDecoder().raw_decode(text[start:])
|
|
25
|
+
except json.JSONDecodeError:
|
|
26
|
+
# expected-miss: carryJson 은 경로+요약 산문일 수 있다. 그때는 본문에 글 그대로 보인다.
|
|
27
|
+
return None
|
|
28
|
+
return payload if isinstance(payload, dict) else None
|
|
17
29
|
|
|
18
30
|
|
|
19
|
-
def
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
def _carry_view(evidence: dict | None) -> dict | None:
|
|
32
|
+
if not evidence:
|
|
33
|
+
return None
|
|
34
|
+
text = evidence["carryJson"]
|
|
35
|
+
payload = _carry_payload(text)
|
|
36
|
+
if payload is None:
|
|
37
|
+
return {"text": text}
|
|
38
|
+
commit_range = payload.get("stageCommitRange") or {}
|
|
39
|
+
base, head = commit_range.get("base"), commit_range.get("head")
|
|
40
|
+
steps = Counter(
|
|
41
|
+
str(row.get("status"))
|
|
42
|
+
for row in payload.get("stepResults") or ()
|
|
43
|
+
if isinstance(row, dict)
|
|
30
44
|
)
|
|
45
|
+
files = payload.get("filesChanged")
|
|
46
|
+
return {
|
|
47
|
+
"path": f"carry/stage-{evidence['stageNumber']}.json",
|
|
48
|
+
"commitRange": f"{base[:8]}..{head[:8]}" if base and head else None,
|
|
49
|
+
"steps": ", ".join(f"{status} {count}" for status, count in steps.items()),
|
|
50
|
+
"filesChanged": len(files) if isinstance(files, list) else None,
|
|
51
|
+
"raw": json.dumps(payload, indent=2, ensure_ascii=False),
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
_LEADING_CHECK_ID = re.compile(r"^(VC-\d{3,})\b")
|
|
56
|
+
_COMMAND_PREVIEW = 60
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _validation_card(row: dict) -> dict:
|
|
60
|
+
# checkId 가 없는 진행 중 task 는 writer 가 outputTail 머리에 붙인 VC id 를 보여 준다(표시 전용).
|
|
61
|
+
check_id = row.get("checkId")
|
|
62
|
+
if not check_id:
|
|
63
|
+
match = _LEADING_CHECK_ID.match(row["outputTail"])
|
|
64
|
+
check_id = match.group(1) if match else None
|
|
65
|
+
command = row["command"]
|
|
66
|
+
preview = command if len(command) <= _COMMAND_PREVIEW else command[: _COMMAND_PREVIEW - 1] + "…"
|
|
67
|
+
if not row["exitCode"]:
|
|
68
|
+
tone = "neutral"
|
|
69
|
+
elif row.get("advisory"):
|
|
70
|
+
tone = "medium"
|
|
71
|
+
else:
|
|
72
|
+
tone = "important"
|
|
73
|
+
return {**row, "checkId": check_id, "commandPreview": preview, "tone": tone}
|
|
31
74
|
|
|
32
75
|
|
|
33
76
|
def build_implementation_view(data: dict) -> HumanReportView:
|
|
34
77
|
implementation = data["implementation"]
|
|
35
|
-
figure = change_map_figure(
|
|
36
|
-
nodes=_change_nodes(implementation), title="Delivered change areas"
|
|
37
|
-
)
|
|
38
78
|
context = {
|
|
39
79
|
"humanSummary": data["humanSummary"],
|
|
40
80
|
"implementation": implementation,
|
|
41
81
|
"narrative": implementation["userNarrative"],
|
|
42
|
-
|
|
82
|
+
# 진행 중인 task 의 data.json 에는 파일별 summary 가 없다. 빈 열을 그리지 않는다.
|
|
83
|
+
"diffHasSummary": any(
|
|
84
|
+
row.get("summary") for row in implementation["diffSummary"]["files"]
|
|
85
|
+
),
|
|
86
|
+
"validationCards": [
|
|
87
|
+
_validation_card(row) for row in implementation["validationEvidence"]
|
|
88
|
+
],
|
|
89
|
+
"carry": _carry_view(implementation.get("stageSidecarEvidence")),
|
|
43
90
|
"evidenceIndex": evidence_index(data, ANCHORED_FIELDS),
|
|
44
91
|
}
|
|
45
92
|
return HumanReportView(
|
|
46
93
|
"implementation",
|
|
47
94
|
"html/tasks/implementation.template.html",
|
|
48
95
|
context,
|
|
49
|
-
(
|
|
96
|
+
(),
|
|
50
97
|
anchored_fields=ANCHORED_FIELDS,
|
|
51
98
|
)
|
package/runtime/python/okstra_ctl/phases/implementation/report_assets/implementation.template.html
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{% extends "html/base.template.html" %}
|
|
2
2
|
{% from "html/macros/layout.html" import narrative as render_narrative, summary_card, row_key, file_paths %}
|
|
3
|
-
{% from "html/macros/visualizations.html" import figure %}
|
|
4
3
|
|
|
5
4
|
{% block human_content %}
|
|
6
5
|
<section data-report-section="delivered-outcome">
|
|
@@ -12,19 +11,19 @@
|
|
|
12
11
|
<section data-report-section="change-map" data-report-field="implementation.diffSummary">
|
|
13
12
|
<h2>{{ t('tasks.implementation.what-changed') }}</h2>
|
|
14
13
|
{{ render_narrative(narrative.changeExplanation, "implementation.userNarrative.changeExplanation") }}
|
|
15
|
-
{{ figure(
|
|
14
|
+
<table><thead><tr><th>{{ t('tasks.implementation.file') }}</th><th>{{ t('tasks.implementation.change') }}</th>{% if diffHasSummary %}<th>{{ t('tasks.implementation.what-it-does') }}</th>{% endif %}<th class="figure">{{ t('tasks.implementation.lines') }}</th><th>{{ t('tasks.implementation.plan-step') }}</th></tr></thead><tbody>{% for row in implementation.diffSummary.files %}<tr><td><code>{{ row.file }}</code></td><td>{{ t('tasks.implementation.action-' ~ row.action) }}</td>{% if diffHasSummary %}<td>{{ row.get('summary', '') | inline_code }}</td>{% endif %}<td class="figure">{{ row.lines }}</td><td>{{ row.planStep | inline_code }}</td></tr>{% endfor %}</tbody></table>
|
|
16
15
|
</section>
|
|
17
16
|
|
|
18
17
|
<section data-report-section="requirement-coverage">
|
|
19
18
|
<h2>{{ t('tasks.implementation.requirement-coverage') }}</h2>
|
|
20
|
-
<table data-report-field="implementation.requirementCoverage"><thead><tr><th>{{ t('tasks.implementation.requirement') }}</th><th>{{ t('tasks.implementation.body') }}</th><th>{{ t('tasks.implementation.implemented-by') }}</th></tr></thead><tbody>{% for row in implementation.requirementCoverage %}<tr id="id-{{ row.id }}">{{ row_key(pairs=[(t('macros.layout.id'), row.id)], status_name=t('macros.layout.status'), status_raw=row.status, status_text=row.status) }}<td>{{ row.requirement | inline_code }}</td><td>{{ row.coveredBy | inline_code }}</td></tr>{% endfor %}</tbody></table>
|
|
19
|
+
<table data-report-field="implementation.requirementCoverage"><thead><tr><th>{{ t('tasks.implementation.requirement') }}</th><th>{{ t('tasks.implementation.body') }}</th><th>{{ t('tasks.implementation.implemented-by') }}</th></tr></thead><tbody>{% for row in implementation.requirementCoverage %}<tr id="id-{{ row.id }}">{{ row_key(pairs=[(t('macros.layout.id'), row.id)], status_name=t('macros.layout.status'), status_raw=row.status, status_text=(row.status.split(' ')[0] | enum_label('requirementStatus')) ~ ((' ' ~ row.status.split(' ', 1)[1]) if ' ' in row.status else '')) }}<td>{{ row.requirement | inline_code }}</td><td>{{ row.coveredBy | inline_code }}</td></tr>{% endfor %}</tbody></table>
|
|
21
20
|
</section>
|
|
22
21
|
|
|
23
22
|
<section data-report-section="validation" data-report-field="implementation.validationEvidence">
|
|
24
23
|
<h2>{{ t('tasks.implementation.verification-result') }}</h2>
|
|
25
24
|
{{ render_narrative(narrative.validationExplanation, "implementation.userNarrative.validationExplanation") }}
|
|
26
|
-
<div class="summary-grid">{% for row in
|
|
27
|
-
{% for row in implementation.verifierResults %}<article class="summary-card tone-{{ row.verdict | lower }}"><p class="eyebrow">{{ row.verifier | inline_code }} · <span class="status status-{{ row.verdict | lower }}">{{ row.verdict }}</span></p>{%
|
|
25
|
+
<div class="summary-grid">{% for row in validationCards %}<article class="summary-card tone-{{ row.tone }}"><h3>{% if row.checkId %}{{ row.checkId }} · {% endif %}{{ row.phase }} · {{ t('tasks.implementation.exit-code') }} {{ row.exitCode }}{% if row.get("advisory") %} · {{ t('tasks.implementation.advisory') }}{% endif %}</h3><p><code title="{{ row.command }}">{{ row.commandPreview }}</code></p><p>{{ row.outputTail | inline_code }}</p></article>{% endfor %}</div>
|
|
26
|
+
{% for row in implementation.verifierResults %}<article class="summary-card tone-{{ row.verdict | lower }}"><p class="eyebrow">{{ row.verifier | inline_code }} · <span class="status status-{{ row.verdict | lower }}">{{ row.verdict }}</span></p>{% for label, text in ((t('tasks.implementation.independent-rerun'), row.get("independentValidationRerun")), (t('tasks.implementation.command-log'), row.get("readOnlyCommandLog"))) if text %}<details><summary><strong>{{ label }}</strong> {{ t('tasks.implementation.entry-count') | replace('{count}', text.strip().splitlines() | select | list | length | string) }}</summary><pre>{{ text }}</pre></details>{% endfor %}{% if row.get("discrepancy") %}<p class="evidence-refs">{{ t('tasks.implementation.discrepancy') }} {{ row.discrepancy | inline_code }}</p>{% endif %}{% if row.get("declinedFixRecommendations") %}<p>{{ row.declinedFixRecommendations | inline_code }}</p>{% endif %}</article>{% endfor %}
|
|
28
27
|
</section>
|
|
29
28
|
|
|
30
29
|
<section data-report-section="remaining-issues">
|
|
@@ -42,8 +41,10 @@
|
|
|
42
41
|
|
|
43
42
|
<section data-report-section="rollback" data-report-field="implementation.rollbackVerification">
|
|
44
43
|
<h2>{{ t('tasks.implementation.can-this-be-rolled-back') }}</h2>
|
|
45
|
-
<table><thead><tr><th>{{ t('tasks.implementation.subject') }}</th><th>{{ t('tasks.implementation.rollback-command') }}</th><th>{{ t('tasks.implementation.how-to-verify') }}</th><th>{{ t('tasks.implementation.result') }}</th></tr></thead><tbody>{% for row in implementation.rollbackVerification %}<tr><td>{{ row.category |
|
|
46
|
-
{% if implementation.stageSidecarEvidence %}<
|
|
44
|
+
<table><thead><tr><th>{{ t('tasks.implementation.subject') }}</th><th>{{ t('tasks.implementation.rollback-command') }}</th><th>{{ t('tasks.implementation.how-to-verify') }}</th><th>{{ t('tasks.implementation.result') }}</th></tr></thead><tbody>{% for row in implementation.rollbackVerification %}<tr><td>{{ row.category | enum_label('rollbackCategory') }}</td><td><code>{{ row.rollbackCommand }}</code></td><td>{{ row.verification | inline_code }}</td><td>{{ row.result | enum_label('rollbackResult') }}</td></tr>{% else %}<tr><td colspan="4">{{ t('tasks.implementation.no-rollback-check-was-recorded') }}</td></tr>{% endfor %}</tbody></table>
|
|
45
|
+
{% if implementation.stageSidecarEvidence %}<div data-report-field="implementation.stageSidecarEvidence"><p><strong>{{ t('tasks.implementation.stage-carry-over') }}</strong> — Stage {{ implementation.stageSidecarEvidence.stageNumber }} {{ implementation.stageSidecarEvidence.stageTitle | inline_code }}</p>
|
|
46
|
+
{% if carry.get("text") %}<p>{{ carry.text | inline_code }}</p>{% else %}<table><tbody><tr><th>{{ t('tasks.implementation.carry-sidecar') }}</th><td><code>{{ carry.path }}</code></td></tr>{% if carry.commitRange %}<tr><th>{{ t('tasks.implementation.carry-commit-range') }}</th><td><code>{{ carry.commitRange }}</code></td></tr>{% endif %}{% if carry.steps %}<tr><th>{{ t('tasks.implementation.carry-steps') }}</th><td>{{ carry.steps }}</td></tr>{% endif %}{% if carry.filesChanged is not none %}<tr><th>{{ t('tasks.implementation.carry-files-changed') }}</th><td>{{ carry.filesChanged }}</td></tr>{% endif %}</tbody></table>
|
|
47
|
+
<details><summary>{{ t('tasks.implementation.carry-raw') }}</summary><pre>{{ carry.raw }}</pre></details>{% endif %}</div>{% endif %}
|
|
47
48
|
</section>
|
|
48
49
|
|
|
49
50
|
<section data-report-section="manual-test" data-report-field="implementation.manualUserTest">
|
|
@@ -1645,6 +1645,8 @@ def _replace_item_verdicts(
|
|
|
1645
1645
|
) -> None:
|
|
1646
1646
|
item["verdicts"] = _stamped_verdicts(incoming, round_number, project_root)
|
|
1647
1647
|
_remember_verified_hash(item)
|
|
1648
|
+
# 이번 run 의 표로 바뀌었으니 더는 직전 run 에서 이월된 항목이 아니다.
|
|
1649
|
+
item.pop("carriedForwardFromSeq", None)
|
|
1648
1650
|
|
|
1649
1651
|
|
|
1650
1652
|
def _append_item_verdicts(
|
|
@@ -1769,11 +1771,13 @@ def _reject_uncompleted_round_loss(
|
|
|
1769
1771
|
for item in recorded:
|
|
1770
1772
|
if not isinstance(item, Mapping) or item.get("id") not in rows:
|
|
1771
1773
|
continue
|
|
1774
|
+
# `seed --prior-state` 는 이월 표시를 항목에 찍는다. 이번 run 이 항목을
|
|
1775
|
+
# 다시 판정하면 그 표시는 지워지므로, 표시가 남은 항목의 표는 모두 직전 run 것이다.
|
|
1776
|
+
if str(item.get("carriedForwardFromSeq") or "").strip():
|
|
1777
|
+
continue
|
|
1772
1778
|
for row in item.get("verdicts") or []:
|
|
1773
1779
|
if not isinstance(row, Mapping):
|
|
1774
1780
|
continue
|
|
1775
|
-
if str(row.get("carriedForwardFromSeq") or "").strip():
|
|
1776
|
-
continue
|
|
1777
1781
|
recorded_round = row.get("round")
|
|
1778
1782
|
if (
|
|
1779
1783
|
isinstance(recorded_round, int)
|
|
@@ -37,6 +37,10 @@ def _agent_row(row: dict) -> dict[str, str]:
|
|
|
37
37
|
there would read as a missing measurement instead of an absent charge.
|
|
38
38
|
"""
|
|
39
39
|
cli_tokens = _number(row.get("cliTotalTokens")) or 0
|
|
40
|
+
if cli_tokens == _number(row.get("totalTokens")):
|
|
41
|
+
# A CLI-only agent's raw figure is its CLI figure; a second line would
|
|
42
|
+
# print the same number twice.
|
|
43
|
+
cli_tokens = 0
|
|
40
44
|
cli_cost = _number(row.get("cliCostUsd")) or 0
|
|
41
45
|
cost = _number(row.get("costUsd"))
|
|
42
46
|
if cost is None and cli_cost:
|
|
@@ -124,10 +128,15 @@ def run_usage(data: dict) -> dict[str, object] | None:
|
|
|
124
128
|
if not measured:
|
|
125
129
|
return None
|
|
126
130
|
cli_cost = _number((usage.get("cli") or {}).get("costUsd")) or 0
|
|
131
|
+
grand_cost = _number((usage.get("grand") or {}).get("costUsd")) or 0
|
|
132
|
+
# The total holds API spend only, while a CLI-only agent's charge sits in
|
|
133
|
+
# its row's cost cell; this line is what the cost column adds up to.
|
|
134
|
+
grand_with_cli = grand_cost + cli_cost if cli_cost else 0
|
|
127
135
|
return {
|
|
128
136
|
"rows": [_agent_row(row) for row in rows],
|
|
129
137
|
"unaccounted": _unaccounted(rows, usage.get("grand") or {}),
|
|
130
138
|
**totals,
|
|
131
139
|
"taskCumulative": _task_cumulative(usage.get("taskCumulative")),
|
|
132
140
|
"cliCost": format_usd(cli_cost) if cli_cost else "",
|
|
141
|
+
"grandWithCli": format_usd(grand_with_cli) if grand_with_cli else "",
|
|
133
142
|
}
|
|
@@ -342,14 +342,6 @@ def stage_map_figure(*, nodes: Sequence[VisualNode], edges: Sequence[VisualEdge]
|
|
|
342
342
|
)
|
|
343
343
|
|
|
344
344
|
|
|
345
|
-
def change_map_figure(*, nodes: Sequence[VisualNode], title: str) -> FigureModel:
|
|
346
|
-
return replace(
|
|
347
|
-
dependency_figure(nodes=nodes, edges=(), title=title),
|
|
348
|
-
kind="change-map",
|
|
349
|
-
figure_id="change-map",
|
|
350
|
-
)
|
|
351
|
-
|
|
352
|
-
|
|
353
345
|
def matrix_figure(*, items: Iterable[VisualNode], title: str, x_label: str, y_label: str) -> FigureModel:
|
|
354
346
|
nodes = tuple(items)
|
|
355
347
|
summary = f"{len(nodes)} items compared by {x_label} and {y_label}"
|