okstra 0.144.0 → 0.145.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 +4 -1
- package/docs/architecture.md +18 -2
- package/docs/cli.md +39 -2
- package/docs/project-structure-overview.md +16 -4
- package/package.json +1 -1
- package/runtime/BUILD.json +2 -2
- package/runtime/prompts/lead/convergence.md +11 -3
- package/runtime/prompts/lead/okstra-lead-contract.md +7 -1
- package/runtime/prompts/profiles/_common-contract.md +1 -1
- package/runtime/prompts/profiles/change-impact-analysis.md +24 -0
- package/runtime/prompts/profiles/feature-analysis.md +24 -0
- package/runtime/prompts/profiles/forbidden-actions.json +18 -0
- package/runtime/prompts/profiles/project-analysis.md +24 -0
- package/runtime/prompts/wizard/prompts.ko.json +44 -1
- package/runtime/python/okstra_ctl/analysis_inputs.py +369 -0
- package/runtime/python/okstra_ctl/clarification_items.py +74 -1
- package/runtime/python/okstra_ctl/render.py +77 -4
- package/runtime/python/okstra_ctl/render_final_report.py +13 -4
- package/runtime/python/okstra_ctl/report_views.py +134 -3
- package/runtime/python/okstra_ctl/run.py +118 -0
- package/runtime/python/okstra_ctl/run_context.py +34 -2
- package/runtime/python/okstra_ctl/schema_excerpt.py +12 -4
- package/runtime/python/okstra_ctl/user_response.py +309 -3
- package/runtime/python/okstra_ctl/wizard.py +545 -32
- package/runtime/python/okstra_ctl/worker_prompt_policy.py +3 -0
- package/runtime/python/okstra_ctl/workflow.py +22 -0
- package/runtime/schemas/final-report-v1.0.schema.json +849 -3
- package/runtime/skills/okstra-run/SKILL.md +13 -1
- package/runtime/templates/reports/change-impact-analysis-input.template.md +58 -0
- package/runtime/templates/reports/feature-analysis-input.template.md +59 -0
- package/runtime/templates/reports/final-report.template.md +220 -0
- package/runtime/templates/reports/i18n/en.json +8 -0
- package/runtime/templates/reports/i18n/ko.json +8 -0
- package/runtime/templates/reports/project-analysis-input.template.md +58 -0
- package/runtime/templates/reports/report.js +84 -5
- package/runtime/templates/reports/user-response.template.md +19 -1
- package/runtime/validators/validate-report-views.py +61 -7
- package/runtime/validators/validate-run.py +42 -0
- package/runtime/validators/validate_analysis_report.py +864 -0
- package/src/commands/execute/render-bundle.mjs +3 -0
package/README.md
CHANGED
|
@@ -190,11 +190,13 @@ To start a task outside a Claude Code session:
|
|
|
190
190
|
--project-id <id> \
|
|
191
191
|
--task-group <group> \
|
|
192
192
|
--task-id <id> \
|
|
193
|
-
--task-type <requirements-discovery|improvement-discovery|error-analysis|implementation-planning|implementation|final-verification|release-handoff> \
|
|
193
|
+
--task-type <requirements-discovery|improvement-discovery|project-analysis|change-impact-analysis|error-analysis|implementation-planning|implementation|final-verification|release-handoff> \
|
|
194
194
|
--base-ref <branch|tag|sha> \
|
|
195
195
|
--task-brief ./brief.md
|
|
196
196
|
```
|
|
197
197
|
|
|
198
|
+
`feature-analysis` is intentionally omitted from the standalone shell example. Start it with `/okstra-run`: the wizard collects its required feature target and passes that value through the internal Node render boundary. Standalone `okstra.sh` accepts neither `--analysis-target` nor `--evidence-inputs`.
|
|
199
|
+
|
|
198
200
|
This starts a new `claude` process in the lead role. For the complete argument list, see `okstra.sh --help` or [`docs/cli.md`](docs/cli.md).
|
|
199
201
|
|
|
200
202
|
Notable flags added in 0.7.0 / 0.8.0:
|
|
@@ -217,6 +219,7 @@ Major workflow changes added to `main` after 0.8.0:
|
|
|
217
219
|
- **Artifact-home rule (`.okstra/`)** — `<project>/.okstra/` is the only project artifact root owned by okstra. Anything outside this root is not okstra memory and may be read only when explicitly cited in Source Material or Reporter Confirmations. Writing outside the root requires the same explicit requested path. Internal equivalents are `glossary.md` for terminology and `decisions/<NNNN>-<slug>.md` for decision records, evaluated during `implementation-planning`.
|
|
218
220
|
- **Self-contained HTML final-report view** — After Phase 7 writes `final-report-<task-type>-<seq>.md`, `okstra render-views` automatically creates a sibling self-contained HTML view in the same `reports/` directory, with inline CSS/JavaScript and no external URLs. Its `Export user response` button serializes `## 1. Clarification Items` responses to `runs/<task-type>/user-responses/user-response-<task-type>-<seq>.md` for the next phase. View generation never changes the source Markdown.
|
|
219
221
|
- **`improvement-discovery` task type (sidetrack entry point)** — Within a codebase scope and priority-lens allowlist, multi-worker consensus produces N improvement candidates, with a default of eight and a hard cap of 12. This is a sidetrack entry point outside `PHASE_SEQUENCE`; the user selects candidates and starts each under a new task ID with `requirements-discovery`, `implementation-planning`, or `error-analysis`. Lens enum SSOT: [`scripts/okstra_ctl/improvement_lenses.py`](scripts/okstra_ctl/improvement_lenses.py). Output section: `## 5.9 Improvement Candidates` (11-column table). Validator: [`validators/validate_improvement_report.py`](validators/validate_improvement_report.py).
|
|
222
|
+
- **Read-only analysis task types (independent sidetracks)** — `project-analysis` maps the current project's components, dependencies, entry points, data stores, external systems, and feature index. `feature-analysis` traces one existing feature through flows, domain rules, state changes, integrations, and test coverage. `change-impact-analysis` maps the blast radius of a proposed change across preserved behavior, dependencies, tests, and operations. These are independent sidetracks outside `PHASE_SEQUENCE`, not lifecycle phases. No edits, tests, builds, migrations, or deployments are allowed against the target project. Start analysis runs through `/okstra-run`; its wizard owns target and evidence collection before calling the internal Node render command. The final report remains immutable: the HTML `Analysis Review` records accept, revision, or reject in a user-response sidecar. A revision request prioritizes a same-task, same-type full rerun; that rerun reanalyzes the whole confirmed scope and resolves every affected report ID instead of patching only the disputed rows. Input details: [`docs/cli.md`](docs/cli.md#analysis-sidetrack-task-types).
|
|
220
223
|
|
|
221
224
|
<a id="ops-commands"></a>
|
|
222
225
|
### 3.5 Operations commands
|
package/docs/architecture.md
CHANGED
|
@@ -134,7 +134,7 @@ Runtime entry points are consolidated in Python packages. Bash and skills only c
|
|
|
134
134
|
### Runtime assets (templates + lead resources)
|
|
135
135
|
|
|
136
136
|
- `prompts/launch.template.md` — lead prompt template.
|
|
137
|
-
- `prompts/profiles/*.md` —
|
|
137
|
+
- `prompts/profiles/*.md` — ten task-type profiles: the six lifecycle profiles (`requirements-discovery`, `error-analysis`, `implementation-planning`, `implementation`, `final-verification`, `release-handoff`) plus `improvement-discovery`, `project-analysis`, `feature-analysis`, and `change-impact-analysis` sidetracks.
|
|
138
138
|
- `templates/project-docs/task-index.template.md` · `templates/reports/final-report.template.md` · `templates/reports/settings.template.json` — runtime render inputs.
|
|
139
139
|
- `<PROJECT_ROOT>/.okstra/project.json` — project self-registration. Created/verified automatically on the first okstra.sh run; when `--project-root` is omitted, PROJECT_ROOT is resolved through ancestors / `git toplevel`.
|
|
140
140
|
|
|
@@ -428,6 +428,9 @@ Each task type enforces phase-specific allowed and forbidden actions. A run crea
|
|
|
428
428
|
| `implementation` | Modify source code according to the approved `implementation-planning` final report. **One run executes exactly one stage** (selected with `--stage <auto\|N>`) | commit list, diff summary, out-of-plan edits block, validation/TDD evidence, rollback verification, verifier results (Antigravity/Codex/Claude), `carry/stage-<N>.json` evidence sidecar | `final-verification` | Yes (limited to the approved plan's file list; `git push`/publish/deploy/real migration prohibited) |
|
|
429
429
|
| `final-verification` | Check completed work for residual defects and regression risk, then make a release judgment | acceptance verdict, residual risk, follow-up routing (`error-analysis`/`implementation-planning`/`release-handoff`) | `pending-release-handoff` (enters `release-handoff` only when the verdict is `accepted`; otherwise reroutes to `error-analysis` or `implementation-planning`) | No (read-only tests only) |
|
|
430
430
|
| `release-handoff` | Deliver `accepted` changes as a commit, push, or PR according to the user's chosen method | user menu responses (H1 action / H2 PR base / H3 message handling), executed git/gh command log, commit SHA list, PR URL | `done-or-follow-up` | Yes—but execute **only the mutating commands selected by the user in the menu**. `git push --force*`, direct push to the base branch, `--no-verify`, `gh release`, and publish/deploy are prohibited. The source code itself must not be changed; package the existing `implementation` diff unchanged. |
|
|
431
|
+
| `project-analysis` | Map the current project structure and feature index | components, dependencies, entry points, data stores, external systems, feature index | `pending-routing-decision` | No (strictly read-only; tests are also prohibited) |
|
|
432
|
+
| `feature-analysis` | Trace one confirmed existing feature | flows, domain rules, state changes, external interactions, test coverage | `pending-routing-decision` | No (strictly read-only; tests are also prohibited) |
|
|
433
|
+
| `change-impact-analysis` | Map the impact of one proposed change | preserved behavior, impact items, dependency blast radius, test and operational impact | `pending-routing-decision` | No (strictly read-only; tests are also prohibited) |
|
|
431
434
|
|
|
432
435
|
Common constraints:
|
|
433
436
|
|
|
@@ -485,6 +488,16 @@ The stage-group interaction order is: **G1 select base → G2 confirm stages (se
|
|
|
485
488
|
|
|
486
489
|
A sidetrack entry point that is not a formal member of `PHASE_SEQUENCE`. It supports codebase-discovery scenarios without breaking the one-way lifecycle. The lens allowlist and candidate cap are consolidated in the single source of truth `scripts/okstra_ctl/improvement_lenses.py`. `validators/validate_improvement_report.py` checks eleven contract items against the final report; one of them is the shape of the `## 5.9 Improvement Candidates` table, whose eleven columns run from `Cand ID` through `Evidence` (the two counts are independent and happen to coincide). Two bidirectional grilling points—an enhanced budget of 8 in `okstra-brief-gen` Step 4 and the lead's Phase 1.5 reflect-back budget of 12—align the user's and AI's understanding.
|
|
487
490
|
|
|
491
|
+
### Read-only analysis sidetracks
|
|
492
|
+
|
|
493
|
+
`project-analysis`, `feature-analysis`, and `change-impact-analysis` are independent entry points outside `PHASE_SEQUENCE`. They share the normal task identity and report pipeline but never route into one another automatically. All three are read-only with respect to the target project: workers may inspect the confirmed scope but may not edit files, run tests or builds, execute migrations, or deploy.
|
|
494
|
+
|
|
495
|
+
`analysis_inputs.py` is the shared resolution boundary for both the wizard and `prepare_task_bundle()` (`scripts/okstra_ctl/analysis_inputs.py`). It owns the three-type allowlist, the permitted evidence relationships, report identity checks, review eligibility, source-commit freshness, and `PF-NNN` feature-index target resolution. Prepare freezes the result in `run-manifest.evidenceInputs` and `run-manifest.analysisTarget`; `validators/validate_analysis_report.py` requires the report's `analysisCommon.evidenceInputs` and resolved scope to match those snapshots exactly. The stored freshness value is `exact` when the evidence source commit is current and `stale` otherwise.
|
|
496
|
+
|
|
497
|
+
The self-contained report view presents an `Analysis Review` control. The browser's Export action downloads the Markdown sidecar; it cannot write into the project filesystem. The user must save or move that download into the canonical `runs/<task-type>/user-responses/user-response-<task-type>-<seq>.md` location before a later run can consume it. The downloaded sidecar contains a block named `ANALYSIS REVIEW` (Markdown heading `## ANALYSIS REVIEW`) without mutating the original report. It records `accepted`, `revision-requested`, or `rejected`; only accepted reports are offered automatically as later evidence. An explicitly selected unreviewed report is marked `user-unverified`, while revision-requested and rejected reports are refused as evidence.
|
|
498
|
+
|
|
499
|
+
A revision request supplies affected report IDs and a reason. The wizard prioritizes the same task type on the same task, and carries that report into a full rerun. The rerun reanalyzes the whole confirmed scope rather than only the disputed rows, then writes `analysisReviewResolution` under `analysisCommon` for every affected ID. `validators/validate_analysis_report.py` checks the source report identity, task type, run sequence, exact affected-ID coverage, and each resolution outcome. Report verdict (`analysis-complete`, `analysis-partial`, or `blocked`), review status, evidence freshness, and direct user verification (`user-unverified`) remain separate axes.
|
|
500
|
+
|
|
488
501
|
### requirements-discovery fan-out
|
|
489
502
|
|
|
490
503
|
For mixed or multi-item requests, requirements-discovery splits the request into packets by domain (the five-value work-category enum) and publishes them to `runs/requirements-discovery/fan-out/unit-*.md`. Each packet becomes a new task key through `okstra-run --task-brief <path>`. The dependency topological order is recorded in `index.md`, and okstra-schedule-gen owns the integrated schedule after task creation. okstra-brief-gen is not involved in this path. Validation: `validators/validate_fanout.py` (validate-run hook).
|
|
@@ -504,7 +517,7 @@ The complete specification for `okstra`'s three storage areas (stable task root
|
|
|
504
517
|
|
|
505
518
|
`okstra` is brief-first. The brief is the canonical source material that preserves external input and okstra augmentations. Any additional material workers need—reports, code snippets, logs, and so on—must be included inline or by path in the brief's `Evidence and Source Materials` section.
|
|
506
519
|
|
|
507
|
-
Briefs are accepted as direct input **only for entry phases**: users provide a brief path for `requirements-discovery`, `error-analysis`, and `
|
|
520
|
+
Briefs are accepted as direct input **only for entry phases**: users provide a brief path for `requirements-discovery`, `error-analysis`, `improvement-discovery`, `project-analysis`, `feature-analysis`, and `change-impact-analysis`. Downstream phases (implementation-planning / implementation / final-verification) automatically carry in the task manifest's `taskBriefPath` (the okstra-run wizard does not ask for it; if it is unregistered, a fallback picker recommends switching to an entry phase). `release-handoff` has no brief; prepare generates an input document that cites verification reports.
|
|
508
521
|
|
|
509
522
|
A brief is a **translation layer**: it converts external input—an issue-tracker ticket, requirements document, or user message—into an okstra-readable format while preserving the original verbatim and clearly distinguishing okstra additions as labelled augmentation. The output of the `okstra-brief-gen` skill is the source of truth. For each analysis phase, `prepare_task_bundle()` extracts the necessary frontmatter, task-specific brief sections, reference expectations, carried-in clarification, and directive into `instruction-set/analysis-packet.md`. This compact packet is the analysis workers' primary input; the original brief and profile/material files are fallback evidence opened only to verify evidence or fill omissions.
|
|
510
523
|
|
|
@@ -529,6 +542,9 @@ Default templates:
|
|
|
529
542
|
- `templates/reports/quick-input.template.md`
|
|
530
543
|
- `templates/reports/task-brief.template.md`
|
|
531
544
|
- `templates/reports/error-analysis-input.template.md`
|
|
545
|
+
- `templates/reports/project-analysis-input.template.md`
|
|
546
|
+
- `templates/reports/feature-analysis-input.template.md`
|
|
547
|
+
- `templates/reports/change-impact-analysis-input.template.md`
|
|
532
548
|
- `templates/reports/implementation-planning-input.template.md`
|
|
533
549
|
- `templates/reports/implementation-input.template.md`
|
|
534
550
|
- `templates/reports/final-verification-input.template.md`
|
package/docs/cli.md
CHANGED
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
- [`--clarification-response`](#--clarification-response)
|
|
22
22
|
- [`--resume-clarification`](#--resume-clarification)
|
|
23
23
|
- [`--project-root`](#--project-root)
|
|
24
|
+
- [`--analysis-target`](#--analysis-target)
|
|
25
|
+
- [`--evidence-inputs`](#--evidence-inputs)
|
|
24
26
|
- [`--directive`](#--directive)
|
|
25
27
|
- [`--fix-cycle`](#--fix-cycle)
|
|
26
28
|
- [`--workers`](#--workers)
|
|
@@ -59,6 +61,8 @@ Base command for initial entry with full arguments:
|
|
|
59
61
|
scripts/okstra.sh [--render-only] [--yes] [--no-plan-verification] --task-type <task-type> [--workers worker1,worker2] [--lead-runtime claude-code|codex] [--lead-model <model>] [--claude-model <model>] [--codex-model <model>] [--antigravity-model <model>] [--report-writer-model <model>] [--executor claude|codex|antigravity] [--critic off|claude|codex|antigravity] [--related-tasks taskA,taskB] [--work-category bugfix|feature|refactor|ops|improvement|unknown] [--base-ref <branch|tag|sha>] [--clarification-response <previous-final-report>] [--approved-plan <plan-path>] [--approve] --project-id <project-id> --task-group <task-group> --task-id <task-id> --task-brief <brief-path> [--directive <directive>] [--fix-cycle <yes|no>]
|
|
60
62
|
```
|
|
61
63
|
|
|
64
|
+
Analysis input ownership is narrower than the base shell command. The `/okstra-run` wizard collects `--analysis-target` and `--evidence-inputs` values and passes them internally to `node bin/okstra render-bundle`. `scripts/okstra.sh` does not accept either flag. Because `feature-analysis` requires a target, start that task type with `/okstra-run`; the two option sections below document the internal Node render inputs, not standalone shell options.
|
|
65
|
+
|
|
62
66
|
Short form for a later phase when an existing task-manifest.json is available:
|
|
63
67
|
|
|
64
68
|
```bash
|
|
@@ -133,13 +137,46 @@ For standard values and phase-specific responsibilities, see [Task type](#--task
|
|
|
133
137
|
- Validator: `validators/validate_improvement_report.py` enforces the 11-part contract for an `improvement-discovery` final report.
|
|
134
138
|
- Because an `improvement-discovery` run is not in `PHASE_SEQUENCE`, the `--task-key` short form does not automatically populate `nextRecommendedPhase` for it.
|
|
135
139
|
|
|
140
|
+
#### Analysis sidetrack task types
|
|
141
|
+
|
|
142
|
+
The three read-only analysis types are independent sidetracks outside `PHASE_SEQUENCE`:
|
|
143
|
+
|
|
144
|
+
| task type | Purpose |
|
|
145
|
+
|---|---|
|
|
146
|
+
| `project-analysis` | Map the current project's components, dependencies, entry points, data stores, external systems, and feature index. |
|
|
147
|
+
| `feature-analysis` | Trace one existing feature through flows, domain rules, state changes, external interactions, and test coverage. |
|
|
148
|
+
| `change-impact-analysis` | Map the blast radius of a proposed change across preserved behavior, dependencies, tests, and operations. |
|
|
149
|
+
|
|
150
|
+
Each one starts from a brief and produces a report only. The target project is strictly read-only: no edits, tests, builds, migrations, or deployments. A run ends at `pending-routing-decision`; it does not advance the normal phase sequence.
|
|
151
|
+
|
|
152
|
+
### `--analysis-target`
|
|
153
|
+
|
|
154
|
+
At the `node bin/okstra render-bundle` boundary, `--analysis-target` is required only for `feature-analysis`. It accepts either a free-text feature boundary or a `PF-NNN` ID from a selected `project-analysis` feature index. A `PF-NNN` value must match exactly one feature in the selected project-context evidence. `project-analysis`, `change-impact-analysis`, and non-analysis task types reject this render input.
|
|
155
|
+
|
|
156
|
+
### `--evidence-inputs`
|
|
157
|
+
|
|
158
|
+
At the `node bin/okstra render-bundle` boundary, `--evidence-inputs` accepts a comma-separated list of prior analysis final-report paths. Relative paths resolve from the target project root, selection order is preserved, and duplicate paths are rejected. The allowed relationships are:
|
|
159
|
+
|
|
160
|
+
| Consumer and source | Stored relation |
|
|
161
|
+
|---|---|
|
|
162
|
+
| `feature-analysis` ← `project-analysis` | `project-context` |
|
|
163
|
+
| `change-impact-analysis` ← `project-analysis` | `project-context` |
|
|
164
|
+
| `change-impact-analysis` ← `feature-analysis` | `feature-baseline` |
|
|
165
|
+
|
|
166
|
+
`project-analysis` accepts no evidence inputs. `feature-analysis` and `change-impact-analysis` may omit evidence, but every supplied report must match one of the relationships above.
|
|
167
|
+
|
|
168
|
+
Only `accepted` reports appear in automatic evidence choices. An explicitly selected, otherwise valid unreviewed report is recorded as `user-unverified`; `revision-requested` and `rejected` reports are rejected as evidence. A revision request instead makes the wizard prioritize a same-task, same-type full rerun. The selection is snapshotted in `run-manifest.evidenceInputs` with source task/run identity, relation, review status, source commit, and freshness.
|
|
169
|
+
|
|
170
|
+
Analysis reports expose four independent meanings. The report verdict is `analysis-complete`, `analysis-partial`, or `blocked`. The `Analysis Review` sidecar status is `accepted`, `revision-requested`, or `rejected`. Evidence freshness is current (`exact` in the stored snapshot) or `stale`. Direct user verification of an explicitly selected unreviewed report is `user-unverified`. These are separate axes: for example, a complete report can still be rejected by its reviewer, and accepted evidence can become stale after the source commit changes.
|
|
171
|
+
|
|
136
172
|
### `--task-brief`
|
|
137
173
|
|
|
138
174
|
The path to the task brief that serves as the basis for analysis.
|
|
139
175
|
Relative paths are resolved from the target project root.
|
|
140
176
|
|
|
141
177
|
This argument does not apply to `release-handoff`: a brief is input to an entry phase
|
|
142
|
-
(requirements-discovery / error-analysis / improvement-discovery
|
|
178
|
+
(requirements-discovery / error-analysis / improvement-discovery / project-analysis /
|
|
179
|
+
feature-analysis / change-impact-analysis), while
|
|
143
180
|
release-handoff preparation automatically creates an input document that cites the verification report
|
|
144
181
|
at `<task_root>/release-handoff-input.md` and uses it in place of a brief.
|
|
145
182
|
A non-empty `--task-brief` is rejected immediately for release-handoff.
|
|
@@ -687,7 +724,7 @@ The `okstra` Node CLI (`bin/okstra`) provides both installer/admin commands and
|
|
|
687
724
|
| `okstra report-finalize --project-root <dir> --run-manifest <path> --report <final-report.md>` | Run the whole Phase 7 post-report sequence in its contractual order: `token-usage` → `render-views` → `spawn-followups` → `validate-run`. Stops at the first non-zero exit and names the failing step, then prints a per-step `[ok]` / `[FAIL]` / `[skip]` summary on stderr so the outcome is legible without parsing the JSON payload. Every step is idempotent, so re-running after a fix is safe — but `--only <step>` (repeatable) reruns just the named steps in contractual order, which matters because `validate-run` is the step that usually fails and retrying it otherwise repeats the three steps before it at full token and wall-clock cost. This is the same code path (`scripts/okstra_ctl/report_finalize.py`) the Codex lead adapter runs automatically after its report-writer completes, so a Claude-led and a Codex-led run finalize identically. `--workspace-root` is owned by the Node wrapper. Prefer this over invoking the four steps individually |
|
|
688
725
|
| `okstra render-views <final-report.md>` | The Phase 7 `render-views` step, runnable on its own: deterministically create a human-facing self-contained sibling `*.html` view from one final-report Markdown file after token substitution. The source Markdown is unchanged. The Node delegation wrapper calls `scripts/okstra-render-report-views.py`; `validators/validate-report-views.py` verifies form-control placement, absence of external URLs, stale source digests, and Response ID parity |
|
|
689
726
|
| `okstra design-prep <list\|show\|write>` | Review AI-prepared implementation design requests, inspect their effective confirmed response, or append a confirmed user/wizard response without editing the planning report |
|
|
690
|
-
| `okstra wizard <init\|step\|render-args\|confirmation\|outcome> --state-file <path>` | Interactive input state machine for okstra-run, implemented by `okstra_ctl.wizard`. Seed a state file with `init`, then repeatedly call `step --answer <val>` to receive the next `Prompt` JSON. `--answer` is **required**; use `--no-submit` to peek at the next prompt without submitting a response. `render-args` returns the final `render-bundle` argument map, and `confirmation` returns the user echo block. On a completed wizard, `outcome` returns `renderArgs`, `persistActions`, and `confirmationText` together; project/global release-handoff PR-template persistence appears as `persistActions[].command == "config.set"`. For an `implementation` task type, `stage_pick` follows `approved_plan_pick` and selects the stage before `executor_pick`. The brief step appears only for entry task types—requirements-discovery, error-analysis, and
|
|
727
|
+
| `okstra wizard <init\|step\|render-args\|confirmation\|outcome> --state-file <path>` | Interactive input state machine for okstra-run, implemented by `okstra_ctl.wizard`. Seed a state file with `init`, then repeatedly call `step --answer <val>` to receive the next `Prompt` JSON. `--answer` is **required**; use `--no-submit` to peek at the next prompt without submitting a response. `render-args` returns the final `render-bundle` argument map, and `confirmation` returns the user echo block. On a completed wizard, `outcome` returns `renderArgs`, `persistActions`, and `confirmationText` together; project/global release-handoff PR-template persistence appears as `persistActions[].command == "config.set"`. For an `implementation` task type, `stage_pick` follows `approved_plan_pick` and selects the stage before `executor_pick`. The brief step appears only for entry task types—requirements-discovery, error-analysis, improvement-discovery, project-analysis, feature-analysis, and change-impact-analysis. Analysis inputs use `feature_evidence_pick` / `feature_evidence`, `project_evidence_pick` / `project_evidence`, and `analysis_target_pick` / `analysis_target`; a revision-requested report prioritizes its same-task, same-type rerun. Downstream lifecycle phases automatically carry the manifest brief, with a three-option `brief_carry` fallback when none is registered; `release-handoff` has no brief and enters multi-select `handoff_stage_pick` for eligible stage groups or the whole task |
|
|
691
728
|
| `okstra token-usage ...` | Wrap the installed `okstra-token-usage.py` to collect and substitute run token usage. Session JSONL is incrementally scanned by default through a byte-cursor cache at `$OKSTRA_HOME/cache/token-usage/`; `--no-cache` bypasses the cache and forces a full rescan as an accuracy fallback |
|
|
692
729
|
|
|
693
730
|
The convergence state lifecycle is `groups v1.0 → work v1.0 → final v1.3`; round-plan, round-results, and optional critic-results v1.0 artifacts provide the auditable transitions between those endpoints.
|
|
@@ -293,6 +293,8 @@ Important modules:
|
|
|
293
293
|
| `dispatch_core.py` | Backend-neutral worker dispatch core — worker execution/collection logic shared by any lead runtime (Claude/Codex/external); gates selected initial prompts through the shared cross-task contract before launch |
|
|
294
294
|
| `codex_dispatch.py` | Codex lead CLI-worker dispatcher — the `okstra codex-dispatch` backend. Reads the run manifest to run the Codex-side supported worker subset, applies the same cross-task initial-prompt gate, and performs token-usage substitution, view render, follow-up, and validation |
|
|
295
295
|
| `analysis_packet.py` | assembles the compact analysis-worker input packet for a task run from worker-owned profile sections; report/lead procedure stays outside the packet |
|
|
296
|
+
| `analysis_inputs.py` | shared input boundary for `project-analysis`, `feature-analysis`, and `change-impact-analysis` — validates evidence-report identity and review status, enforces the type-to-type relation allowlist, computes `exact`/`stale` freshness, and resolves free-text or `PF-NNN` feature targets for both wizard and prepare paths |
|
|
297
|
+
| `user_response.py` | parses clarification/approval responses and the analysis-review sidecar; `parse_analysis_review` validates accepted, revision-requested, and rejected decisions plus their affected IDs and reason |
|
|
296
298
|
| `context_cost.py` | read-side context-cost estimator for a prepared okstra task bundle (the `okstra context-cost` backend) |
|
|
297
299
|
| `schema_excerpt.py` | generates a task-type-scoped excerpt of the final-report schema — a schema reduction to inject into the worker/lead prompt |
|
|
298
300
|
| `work_categories.py` | requirements-discovery work-category (domain) **SSOT** (`is_valid_category`) — the work-category allowlist is defined only here |
|
|
@@ -344,6 +346,7 @@ Token/cost accounting:
|
|
|
344
346
|
| `launch.template.md` | Lead prompt template rendered for each run |
|
|
345
347
|
| `profiles/_common-contract.md` | Shared phase contract |
|
|
346
348
|
| `profiles/<task-type>.md` | Phase profiles (single language — runtime always loads from `profiles/`, never a translated mirror) |
|
|
349
|
+
| `project-analysis.md`, `feature-analysis.md`, `change-impact-analysis.md` | Read-only sidetrack profiles for project mapping, one-feature behavior tracing, and proposed-change impact mapping |
|
|
347
350
|
| `wizard/prompts.ko.json` | Korean wizard prompt single source of truth |
|
|
348
351
|
|
|
349
352
|
### 4.7 `templates/`
|
|
@@ -353,6 +356,8 @@ Token/cost accounting:
|
|
|
353
356
|
| `templates/reports/final-report.template.md` | Jinja2 final-report Markdown template |
|
|
354
357
|
| `templates/reports/report.css`, `report.js` | Inline assets for self-contained HTML report view |
|
|
355
358
|
| `templates/reports/*.template.md` | Inputs, schedule, user-response, settings templates |
|
|
359
|
+
| `project-analysis-input.template.md`, `feature-analysis-input.template.md`, `change-impact-analysis-input.template.md` | Brief input templates for the three analysis sidetracks |
|
|
360
|
+
| `user-response.template.md`, `report.js` | Analysis Review sidecar block and the browser control that exports accept/revision/reject without changing the source report |
|
|
356
361
|
| `templates/project-docs/task-index.template.md` | Project task index template |
|
|
357
362
|
| `templates/worker-prompt-preamble.md` | Initial analysis audience procedure and output contract |
|
|
358
363
|
| `templates/implementation-worker-preamble.md` | Shared implementation executor/verifier procedure, including coding-preflight and worktree rules |
|
|
@@ -377,6 +382,7 @@ Optional (v1.0 backward-compatible) top-level keys:
|
|
|
377
382
|
| `validate-run.py` | Run/final-report contract validation |
|
|
378
383
|
| `validate-brief.py`, `validate-brief.sh` | Brief frontmatter/body contract validation |
|
|
379
384
|
| `validate-report-views.py` | HTML view validation (form-control placement / no external URLs / stale source digest / Response ID parity) |
|
|
385
|
+
| `validate_analysis_report.py` | Cross-field validation for the three read-only analysis reports: frozen target/evidence snapshots, current-code evidence, review-source identity, and exact affected-ID resolution coverage on revision reruns |
|
|
380
386
|
| `validate-schedule.py` | Schedule section/order/code validation |
|
|
381
387
|
| `validate-implementation-plan-stages.py` | enforces the Stage Map structure — checks the S1–S8 rules (`## 5.5 Stage Map` + `## 5.5.<i> Stage <i>` sections, ≤ 8 steps per stage, etc.) |
|
|
382
388
|
| `validate_improvement_report.py` | enforces the 11-item contract of the improvement-discovery final-report. Automatically invoked by `validate-run.py` when `task_type == "improvement-discovery"` |
|
|
@@ -455,11 +461,13 @@ they are not published user skills.
|
|
|
455
461
|
|
|
456
462
|
1. Resolve project root and verify/upsert `project.json`.
|
|
457
463
|
2. Resolve profile, required workers, model assignments, executor provider.
|
|
458
|
-
3.
|
|
464
|
+
3. Resolve task identity segments, work category, and the run sequence input needed for path allocation.
|
|
459
465
|
4. Provision or reuse the task-key worktree, or the selected implementation stage worktree for stage-isolated runs.
|
|
460
|
-
5.
|
|
461
|
-
6.
|
|
462
|
-
7.
|
|
466
|
+
5. For an analysis sidetrack, resolve the immutable source commit from the provisioned worktree's `HEAD`, then resolve evidence reports, freshness, and the feature target through `analysis_inputs.py`.
|
|
467
|
+
6. Compute task/run paths and persist run context under `runs/<task-type>/manifests/`.
|
|
468
|
+
7. Materialize `instruction-set/` files and lead prompt snapshot.
|
|
469
|
+
8. Persist run inputs, team state, task manifest, task index, run manifest, timeline, discovery pointers.
|
|
470
|
+
9. Record the run in `~/.okstra/{active,recent}.jsonl` and project index.
|
|
463
471
|
|
|
464
472
|
### 5.2 Worktree model
|
|
465
473
|
|
|
@@ -498,6 +506,8 @@ Current report pipeline:
|
|
|
498
506
|
6. Token usage substitution fills usage/cost cells.
|
|
499
507
|
7. `scripts/okstra-render-report-views.py` emits the self-contained `.html` view, and run validation checks the final artifacts.
|
|
500
508
|
|
|
509
|
+
For the three analysis sidetracks, the HTML view also exports an immutable-source `## ANALYSIS REVIEW` sidecar. A revision rerun carries that sidecar, reanalyzes the whole confirmed scope, and records one `analysisReviewResolution` row for every affected ID before `validate_analysis_report.py` accepts the result.
|
|
510
|
+
|
|
501
511
|
The Markdown is derived, not the authoring source. The schema is the contract.
|
|
502
512
|
|
|
503
513
|
---
|
|
@@ -581,6 +591,8 @@ Project-local `<PROJECT_ROOT>/.claude/settings.local.json` is provisioned as a s
|
|
|
581
591
|
| `final-verification` | Read-only acceptance verification | `release-handoff` if accepted |
|
|
582
592
|
| `release-handoff` | User-selected commit/PR handoff | done or follow-up |
|
|
583
593
|
|
|
594
|
+
The independent analysis sidetracks do not appear in this phase sequence. `project-analysis` maps the current project, `feature-analysis` traces one existing feature, and `change-impact-analysis` maps a proposed change's impact. Each returns to `pending-routing-decision` and remains read-only, including no test or build execution.
|
|
595
|
+
|
|
584
596
|
### 7.5 Report and follow-up
|
|
585
597
|
|
|
586
598
|
Final report artifacts live under `runs/<task-type>/reports/`. Human responses from the HTML view are saved as `runs/<task-type>/user-responses/user-response-<task-type>-<seq>.md` and can be carried into the next run.
|
package/package.json
CHANGED
package/runtime/BUILD.json
CHANGED
|
@@ -48,7 +48,7 @@ Configure this in the `convergence` block of `task-manifest.json`. If the block
|
|
|
48
48
|
| `enabled` | `true` | If `false`, skip the convergence loop and use the existing consensus/divergence method |
|
|
49
49
|
| `maxRounds` | phase-aware: `1` for `requirements-discovery`, `2` otherwise (range 1–3) | Maximum number of re-verification rounds. Discovery's routing/missing-input outputs gain little from a second round; other phases (especially `error-analysis`) keep `2`. Lead resolves the effective value when the manifest omits the key and records it in `config.effectiveMaxRounds` of the convergence state artifact. |
|
|
50
50
|
| `verificationMode` | `"lightweight"` | `"lightweight"` or `"full-reanalysis"` |
|
|
51
|
-
| `adversarial` | phase-aware: `true` for `requirements-discovery` / `error-analysis` / `implementation-planning`, `false` otherwise | When `true`, Phase 5.5 runs in **adversarial mode** (see §"Adversarial Verification Mode"): verifiers actively try to refute each finding, the burden of proof sits on the claim, and `verificationMode` is forced to `"full-reanalysis"` scoped to the finding's cited evidence. Resolved by `scripts/okstra_ctl/render.py` `_build_convergence_block` and recorded in `config.adversarial` of the convergence state artifact. |
|
|
51
|
+
| `adversarial` | phase-aware: `true` for `requirements-discovery` / `error-analysis` / `implementation-planning` / `project-analysis` / `feature-analysis` / `change-impact-analysis`, `false` otherwise | When `true`, Phase 5.5 runs in **adversarial mode** (see §"Adversarial Verification Mode"): verifiers actively try to refute each finding, the burden of proof sits on the claim, and `verificationMode` is forced to `"full-reanalysis"` scoped to the finding's cited evidence. Resolved by `scripts/okstra_ctl/render.py` `_build_convergence_block` and recorded in `config.adversarial` of the convergence state artifact. |
|
|
52
52
|
|
|
53
53
|
**Auto-disable rule (BLOCKING).** Convergence requires ≥2 analyser workers to produce a meaningful consensus tally. When the active profile's `Required workers:` block (see `prompts/profiles/*.md`) resolves to fewer than 2 analyser workers — e.g. `release-handoff` (zero analyser workers, lead-only) — the lead MUST treat `convergence.enabled` as `false` for that run regardless of manifest configuration, skip Phases 5.5 and the plan-body verification round ([plan-body-verification](./plan-body-verification.md)), and record `finalState: "converged"` with `totalRounds: 0`, `round2SkippedReason: "auto-disabled"`, an empty `roundHistory`, and an explanatory note in `config` (e.g. `"autoDisabled": "fewer-than-two-analysers"`). The plan-body round inherits the same rule via its `gating=false` advisory path.
|
|
54
54
|
|
|
@@ -160,7 +160,15 @@ Use each finding as a guide but reanalyze the original code/data yourself. High
|
|
|
160
160
|
|
|
161
161
|
## Adversarial Verification Mode
|
|
162
162
|
|
|
163
|
-
Active only when `config.adversarial == true` (default for `requirements-discovery`, `error-analysis`, and `
|
|
163
|
+
Active only when `config.adversarial == true` (default for `requirements-discovery`, `error-analysis`, `implementation-planning`, `project-analysis`, `feature-analysis`, and `change-impact-analysis`; see §"Configuration"); when `false`, every rule in this section is inert and the collaborative behaviour elsewhere in this contract applies unchanged. In adversarial mode the verifier's job inverts: instead of confirming a peer's finding, the verifier **tries to break it**, and the burden of proof sits on the claim — a finding survives only if refutation attempts fail.
|
|
164
|
+
|
|
165
|
+
### Read-only analysis task contract
|
|
166
|
+
|
|
167
|
+
For `project-analysis`, `feature-analysis`, and `change-impact-analysis`, every analysis worker independently analyses the full confirmed target. Provider or model diversity is an independent evidence source, never a reason to split the target into disjoint worker assignments. Only the `project-analysis` first exploration pass may divide navigation by component; every worker then returns to the whole confirmed target before producing findings.
|
|
168
|
+
|
|
169
|
+
A single evidence-backed refutation makes the affected finding `contested` while that refutation remains unresolved. Lead MUST NOT use majority voting to override it and MUST NOT promote a lead-only finding into confirmed facts. The report writer records the disagreement and the lead may only retain the claim with explicit counter-evidence through `analysisReviewResolution`; a `still-unresolved` item cannot appear in `analysisCommon.confirmedFacts`. **Enforcement:** `validators/validate_analysis_report.py` rejects a still-unresolved reviewed ID that appears in confirmed facts, and the convergence-state validator preserves the engine's `contested` classification.
|
|
170
|
+
|
|
171
|
+
If every required analysis worker produces a non-result, the run verdict is `blocked`; Lead synthesis is not a worker result. A partial worker failure stays in `executionStatus`, but it does not by itself change the deterministic `analysis-complete` / `analysis-partial` scope verdict. **Enforcement:** `validators/validate_analysis_report.py` recomputes these verdict conditions from structured `data.json`.
|
|
164
172
|
|
|
165
173
|
### Scoped full-reanalysis
|
|
166
174
|
|
|
@@ -492,7 +500,7 @@ Save it to `runs/<task-type>/state/convergence-<task-type>-<seq>.json`.
|
|
|
492
500
|
Schema rules:
|
|
493
501
|
|
|
494
502
|
- `schemaVersion`: literal string `"1.3"` for all new runs — both adversarial and collaborative. Historical readers accept `"1.0"` / `"1.1"` / `"1.2"` unchanged and never rewrite those artifacts during validation. v1.3 adds the strict coverage-critic ledger and rejects unknown top-level fields; work-state remains v1.0.
|
|
495
|
-
- `config.adversarial`: boolean. `true` when this run used adversarial verification (default for `requirements-discovery` / `error-analysis` / `implementation-planning`). When `true`, `config.verificationMode` is `"full-reanalysis"` (scoped) and every `disagree` vote carries a non-null `disagreeBasis`.
|
|
503
|
+
- `config.adversarial`: boolean. `true` when this run used adversarial verification (default for `requirements-discovery` / `error-analysis` / `implementation-planning` / `project-analysis` / `feature-analysis` / `change-impact-analysis`). When `true`, `config.verificationMode` is `"full-reanalysis"` (scoped) and every `disagree` vote carries a non-null `disagreeBasis`.
|
|
496
504
|
- `config.effectiveMaxRounds`: the integer the lead actually used after resolving the phase-aware default (`1` for `requirements-discovery`, `2` otherwise). MUST equal `config.maxRounds` when the manifest explicitly set it.
|
|
497
505
|
- `findings[].ticketIds`: array of ticket keys from Phase 4 grouping (parsed per the Round 0 step 5 rule). MAY be empty when the discovering worker tagged the finding `unknown`.
|
|
498
506
|
- `findings[].rounds[].votes.<worker>.verdict`: enum, one of `agree | disagree | supplement | verification-error`. Lower-case tokens; map upper-case AGREE/DISAGREE/SUPPLEMENT verdicts emitted by workers to their lower-case form and map the input alias `unverifiable` to persisted `verification-error`. The latter represents either a terminal non-result dispatch or a completed dispatch that could not verify a particular finding (§"Worker failure handling in reverify"). Every vote has a non-empty `explanation`.
|
|
@@ -198,6 +198,12 @@ Extract from the compact intake files: task key, task type, work category, workf
|
|
|
198
198
|
|
|
199
199
|
If previous run reports exist, use as historical context only. If discovery metadata or current artifacts conflict with a newer user instruction, prefer the user instruction. If `reference-expectations.md` explicitly says expectations were not provided (you can confirm this without reading the file if the brief's "Expected state" section is empty), treat that as missing information and say `I don't know` rather than inventing expected states.
|
|
200
200
|
|
|
201
|
+
### Phase 1.5 — Analysis scope confirmation (BLOCKING)
|
|
202
|
+
|
|
203
|
+
For `project-analysis`, `feature-analysis`, and `change-impact-analysis`, Lead MUST use the run manifest's immutable pre-dispatch `analysisScopeConfirmation` snapshot as the structured reporter-confirmation evidence before Phase 4 worker dispatch. Its `status` MUST be `complete`; its `taskBriefPath` and `briefSha256` bind that status to the exact brief bytes captured when the run manifest was created. A later edit to the live brief, clarification prose, or inferred consent cannot substitute for this snapshot. `project-analysis` confirms which areas remain shallow; `feature-analysis` confirms the exact feature target and covered flows; `change-impact-analysis` confirms the proposed change, preserved behavior, and dependency boundary.
|
|
204
|
+
|
|
205
|
+
If that snapshot is incomplete, missing, or malformed, Lead MUST follow the shared Reporter Confirmation Required / Clarification Items contract, stop before dispatch, and publish a `blocked` report. It MUST NOT silently widen the target. **Enforcement:** `scripts/okstra_ctl/render.py` records the brief path, reporter-confirmation status, and brief byte digest in the run manifest before the lead can dispatch workers; `validators/validate_analysis_report.py` validates only that immutable snapshot, rejects required-worker execution before a complete snapshot, and recomputes the analysis verdict; `validators/validate-run.py` runs that check only after schema validation succeeds.
|
|
206
|
+
|
|
201
207
|
## Phase 2 — Phase 5: Prompt preparation, teammate setup, execution, completion poll
|
|
202
208
|
|
|
203
209
|
These phases are governed by [team-contract](./team-contract.md). It is the canonical source for:
|
|
@@ -284,7 +290,7 @@ Convergence is enabled by default. Configure via task-manifest.json:
|
|
|
284
290
|
- `convergence.enabled`: true/false (default: true)
|
|
285
291
|
- `convergence.maxRounds`: 1–3 — **phase-aware default**: `1` for `requirements-discovery`, `2` for all other task types
|
|
286
292
|
- `convergence.verificationMode`: `"lightweight"` | `"full-reanalysis"` (default: `"lightweight"`; the adversarial phases below force `"full-reanalysis"`)
|
|
287
|
-
- `convergence.adversarial`: true/false — **phase-aware default**: `true` for `requirements-discovery` / `error-analysis` / `implementation-planning`, `false` otherwise. When `true`, Phase 5.5 runs in adversarial mode (verifiers refute findings; burden of proof on the claim). See [convergence](./convergence.md) "Adversarial Verification Mode".
|
|
293
|
+
- `convergence.adversarial`: true/false — **phase-aware default**: `true` for `requirements-discovery` / `error-analysis` / `implementation-planning` / `project-analysis` / `feature-analysis` / `change-impact-analysis`, `false` otherwise. When `true`, Phase 5.5 runs in adversarial mode (verifiers refute findings; burden of proof on the claim). See [convergence](./convergence.md) "Adversarial Verification Mode".
|
|
288
294
|
|
|
289
295
|
When `task-manifest.json` does not set `convergence.maxRounds`, lead MUST resolve the effective value via the phase-aware default above before entering Phase 5.5 and put it in the grouped input at `config.effectiveMaxRounds`.
|
|
290
296
|
|
|
@@ -9,7 +9,7 @@ profile document.
|
|
|
9
9
|
- Worker interaction model (shared — read before inferring behaviour from the roster):
|
|
10
10
|
- the per-profile `Required workers:` block is a **roster**, not a behaviour contract. Each role's interaction mode changes across operating phases of the same run.
|
|
11
11
|
- **Phase 4 / 5 (independent analysis)**: analyser workers (`claude`, `codex`, `antigravity` when opted in) produce findings independently and have no access to one another's outputs. `report-writer` does not analyse.
|
|
12
|
-
- **Phase 5.5 (convergence — peer review by workers)**: workers peer-review each other's findings across up to `effectiveMaxRounds` rounds; the lead mediates but does not vote. See `prompts/lead/convergence.md` for the round protocol (replay of findings, `AGREE` / `DISAGREE` / `SUPPLEMENT` verdicts), queue invariants, and final classification (`full-consensus` / `partial-consensus` / `contested` / `worker-unique`). For `requirements-discovery`, `error-analysis`,
|
|
12
|
+
- **Phase 5.5 (convergence — peer review by workers)**: workers peer-review each other's findings across up to `effectiveMaxRounds` rounds; the lead mediates but does not vote. See `prompts/lead/convergence.md` for the round protocol (replay of findings, `AGREE` / `DISAGREE` / `SUPPLEMENT` verdicts), queue invariants, and final classification (`full-consensus` / `partial-consensus` / `contested` / `worker-unique`). For `requirements-discovery`, `error-analysis`, `implementation-planning`, `project-analysis`, `feature-analysis`, and `change-impact-analysis` this phase runs in **adversarial mode** (`convergence.adversarial=true`): verifiers try to refute each finding against its cited evidence and the burden of proof sits on the claim — see that skill's §"Adversarial Verification Mode".
|
|
13
13
|
- Do NOT conclude "no peer review happens" from the roster alone — every profile that lists ≥2 analyser workers runs convergence by default (`convergence.enabled=true` in `task-manifest.json`).
|
|
14
14
|
- **provider-unavailable fallback (tolerance).** A worker dispatch can fail to produce a result for two distinct reasons, and both take the same recovery path. (1) **Pane budget:** the dispatch is rejected with `no room for another tmux split` (or an equivalent teammate-pane creation failure). (2) **Sandbox CLI-start failure (non-tmux path):** an external CLI worker wrapper exits non-zero within seconds with empty stdout and its live-log shows `operation not permitted` (e.g. `agy`'s `listen tcp 127.0.0.1:0: bind` under a seatbelt sandbox around a non-tmux subagent's Bash tool). In either case the lead retries that worker in-process without `run_in_background`; if it was an external CLI worker, the lead instead **substitutes** an in-process `claude` analysis. Either way the lead records the substitution as provider unavailable in the run log and the convergence notes. Completed external-CLI worker trace panes are reclaimed automatically by the `SubagentStop` hook, but okstra cannot directly reclaim the teammate panes the harness creates, so this fallback is the last line of defence against pane-budget exhaustion and sandbox-blocked CLI workers. (This is a prompt instruction, not a code-enforced gate.)
|
|
15
15
|
- Tooling — read-only MCP availability (shared):
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Change Impact Analysis Profile
|
|
2
|
+
|
|
3
|
+
- Purpose: assess the read-only impact of a proposed change, including preserved behavior, affected dependencies, and constraints that a later planning phase must resolve
|
|
4
|
+
- Required workers:
|
|
5
|
+
- claude
|
|
6
|
+
- codex
|
|
7
|
+
- report-writer
|
|
8
|
+
- Optional workers (opt-in via `--workers`):
|
|
9
|
+
- antigravity
|
|
10
|
+
{{INCLUDE:_common-contract.md}}
|
|
11
|
+
- Phase 1.5 questions:
|
|
12
|
+
- What user intent and preserved behavior define the proposed change boundary?
|
|
13
|
+
- Which direct and transitive dependencies need impact analysis?
|
|
14
|
+
- Which constraints or open decisions must be passed to implementation-planning?
|
|
15
|
+
- Required report blocks:
|
|
16
|
+
- preserved behavior and impacted items
|
|
17
|
+
- dependency propagation with test and operational impact
|
|
18
|
+
- constraints and open decisions for implementation-planning
|
|
19
|
+
- Cross-verification mode:
|
|
20
|
+
- Phase 5.5 convergence runs in adversarial mode (`convergence.adversarial=true`).
|
|
21
|
+
- Non-goals:
|
|
22
|
+
- source or configuration edits
|
|
23
|
+
- tests, builds, migrations, or deployments
|
|
24
|
+
- implementation alternatives, file change specifications, or execution plans
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Feature Analysis Profile
|
|
2
|
+
|
|
3
|
+
- Purpose: analyse a confirmed feature target's behavior, rules, state changes, external calls, and test coverage scope without designing or changing an implementation
|
|
4
|
+
- Required workers:
|
|
5
|
+
- claude
|
|
6
|
+
- codex
|
|
7
|
+
- report-writer
|
|
8
|
+
- Optional workers (opt-in via `--workers`):
|
|
9
|
+
- antigravity
|
|
10
|
+
{{INCLUDE:_common-contract.md}}
|
|
11
|
+
- Phase 1.5 questions:
|
|
12
|
+
- What confirmed target and user intent bound this analysis?
|
|
13
|
+
- Which normal, alternate, and failure flows must be described?
|
|
14
|
+
- Which behavior must be preserved while the feature is analysed?
|
|
15
|
+
- Required report blocks:
|
|
16
|
+
- confirmed target and scope boundary
|
|
17
|
+
- normal, alternate, and failure flows
|
|
18
|
+
- rules, state transitions, external calls, and test coverage scope
|
|
19
|
+
- Cross-verification mode:
|
|
20
|
+
- Phase 5.5 convergence runs in adversarial mode (`convergence.adversarial=true`).
|
|
21
|
+
- Non-goals:
|
|
22
|
+
- source or configuration edits
|
|
23
|
+
- tests, builds, migrations, or deployments
|
|
24
|
+
- implementation alternatives, file change specifications, or execution plans
|
|
@@ -14,6 +14,24 @@
|
|
|
14
14
|
"free external data fetch beyond the brief's Source Material or Phase 1.5 resolved scope",
|
|
15
15
|
"interpreting user phrases like `다음 단계 진행해` as authorisation to enter another phase"
|
|
16
16
|
],
|
|
17
|
+
"project-analysis": [
|
|
18
|
+
"source or configuration edits",
|
|
19
|
+
"tests, builds, migrations, or deployments",
|
|
20
|
+
"starting any other lifecycle phase inside this run"
|
|
21
|
+
],
|
|
22
|
+
"feature-analysis": [
|
|
23
|
+
"source or configuration edits",
|
|
24
|
+
"tests, builds, migrations, or deployments",
|
|
25
|
+
"starting any other lifecycle phase inside this run"
|
|
26
|
+
],
|
|
27
|
+
"change-impact-analysis": [
|
|
28
|
+
"source or configuration edits",
|
|
29
|
+
"tests, builds, migrations, or deployments",
|
|
30
|
+
"starting any other lifecycle phase inside this run",
|
|
31
|
+
"implementation alternatives",
|
|
32
|
+
"file change specifications",
|
|
33
|
+
"stepwise execution plans"
|
|
34
|
+
],
|
|
17
35
|
"error-analysis": [
|
|
18
36
|
"source code edits, refactors, or fix attempts",
|
|
19
37
|
"implementation design or planning artifacts",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Project Analysis Profile
|
|
2
|
+
|
|
3
|
+
- Purpose: map a bounded project area so later work can navigate components, dependencies, entry points, repositories, and external integrations without changing the source
|
|
4
|
+
- Required workers:
|
|
5
|
+
- claude
|
|
6
|
+
- codex
|
|
7
|
+
- report-writer
|
|
8
|
+
- Optional workers (opt-in via `--workers`):
|
|
9
|
+
- antigravity
|
|
10
|
+
{{INCLUDE:_common-contract.md}}
|
|
11
|
+
- Phase 1.5 questions:
|
|
12
|
+
- Which repositories, directories, and external systems are inside the scan scope?
|
|
13
|
+
- Which components or feature areas must remain shallow rather than receiving a detailed analysis?
|
|
14
|
+
- Which user intent and preserved boundaries constrain this map?
|
|
15
|
+
- Required report blocks:
|
|
16
|
+
- scan scope and excluded areas
|
|
17
|
+
- components, dependency directions, entry points, repositories, and external integrations
|
|
18
|
+
- shallow feature index and unresolved navigation questions
|
|
19
|
+
- Cross-verification mode:
|
|
20
|
+
- Phase 5.5 convergence runs in adversarial mode (`convergence.adversarial=true`).
|
|
21
|
+
- Non-goals:
|
|
22
|
+
- source or configuration edits
|
|
23
|
+
- tests, builds, migrations, or deployments
|
|
24
|
+
- implementation alternatives, file change specifications, or execution plans
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"task_type_text": {
|
|
93
|
-
"label": "Task type? (입력 가능: requirements-discovery, improvement-discovery, error-analysis, implementation-planning, implementation, final-verification, release-handoff)",
|
|
93
|
+
"label": "Task type? (입력 가능: requirements-discovery, improvement-discovery, project-analysis, feature-analysis, change-impact-analysis, error-analysis, implementation-planning, implementation, final-verification, release-handoff)",
|
|
94
94
|
"echo_template": "task-type: {value}"
|
|
95
95
|
},
|
|
96
96
|
"brief_keep": {
|
|
@@ -123,6 +123,49 @@
|
|
|
123
123
|
"label": "task brief markdown 의 경로를 알려주세요 (project root 기준 상대경로 또는 절대경로)",
|
|
124
124
|
"echo_template": "brief: {value}"
|
|
125
125
|
},
|
|
126
|
+
"feature_evidence_pick": {
|
|
127
|
+
"label": "변경 영향 분석에 사용할 수락된 기능 기준선 보고서를 선택하세요.",
|
|
128
|
+
"echo_template": "feature-evidence: {value}",
|
|
129
|
+
"options": {
|
|
130
|
+
"__skip__": "건너뛰기",
|
|
131
|
+
"__free_input__": "다른 보고서 경로 입력"
|
|
132
|
+
},
|
|
133
|
+
"echo_variants": {
|
|
134
|
+
"skip": "feature-evidence: (none)",
|
|
135
|
+
"selected": "feature-evidence: {path}"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"feature_evidence": {
|
|
139
|
+
"label": "기능 기준선 final-report 경로를 입력하세요.",
|
|
140
|
+
"echo_template": "feature-evidence: {value}"
|
|
141
|
+
},
|
|
142
|
+
"project_evidence_pick": {
|
|
143
|
+
"label": "분석에 사용할 수락된 프로젝트 문맥 보고서를 선택하세요.",
|
|
144
|
+
"echo_template": "project-evidence: {value}",
|
|
145
|
+
"options": {
|
|
146
|
+
"__skip__": "건너뛰기",
|
|
147
|
+
"__free_input__": "다른 보고서 경로 입력"
|
|
148
|
+
},
|
|
149
|
+
"echo_variants": {
|
|
150
|
+
"skip": "project-evidence: (none)",
|
|
151
|
+
"selected": "project-evidence: {path}"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"project_evidence": {
|
|
155
|
+
"label": "프로젝트 문맥 final-report 경로를 입력하세요.",
|
|
156
|
+
"echo_template": "project-evidence: {value}"
|
|
157
|
+
},
|
|
158
|
+
"analysis_target_pick": {
|
|
159
|
+
"label": "프로젝트 기능 색인에서 분석 대상을 선택하세요.",
|
|
160
|
+
"echo_template": "analysis-target: {value}",
|
|
161
|
+
"options": {
|
|
162
|
+
"__free_input__": "자연어로 대상 입력"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"analysis_target": {
|
|
166
|
+
"label": "분석할 기능·여정·역량을 자연어로 입력하세요.",
|
|
167
|
+
"echo_template": "analysis-target: {value}"
|
|
168
|
+
},
|
|
126
169
|
"handoff_stage_pick": {
|
|
127
170
|
"label": "PR 로 내보낼 범위를 선택하세요 (복수 선택 가능 — 검증 accepted + 미-PR stage 만 표시). 제외된 stage: {blocked}",
|
|
128
171
|
"echo_template": "handoff-scope: {value}",
|