okstra 0.232.0 → 0.234.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.
Files changed (205) hide show
  1. package/README.md +19 -283
  2. package/dist/cli-registry.mjs +14 -1
  3. package/dist/cli-registry.mjs.map +1 -1
  4. package/dist/commands/execute/render-bundle.d.mts +6 -1
  5. package/dist/commands/execute/render-bundle.mjs +139 -32
  6. package/dist/commands/execute/render-bundle.mjs.map +1 -1
  7. package/dist/commands/lifecycle/config.mjs +6 -74
  8. package/dist/commands/lifecycle/config.mjs.map +1 -1
  9. package/dist/commands/trace/capacity.d.mts +12 -0
  10. package/dist/commands/trace/capacity.mjs +21 -0
  11. package/dist/commands/trace/capacity.mjs.map +1 -0
  12. package/dist/commands/trace/model.d.mts +89 -0
  13. package/dist/commands/trace/model.mjs +251 -0
  14. package/dist/commands/trace/model.mjs.map +1 -0
  15. package/dist/commands/trace/progression.d.mts +11 -0
  16. package/dist/commands/trace/progression.mjs +194 -0
  17. package/dist/commands/trace/progression.mjs.map +1 -0
  18. package/dist/commands/trace/review.d.mts +7 -0
  19. package/dist/commands/trace/review.mjs +51 -0
  20. package/dist/commands/trace/review.mjs.map +1 -0
  21. package/dist/commands/trace/task-link.d.mts +18 -0
  22. package/dist/commands/trace/task-link.mjs +72 -0
  23. package/dist/commands/trace/task-link.mjs.map +1 -0
  24. package/dist/commands/trace/trace.d.mts +1 -0
  25. package/dist/commands/trace/trace.mjs +293 -0
  26. package/dist/commands/trace/trace.mjs.map +1 -0
  27. package/dist/lib/bounded-file.d.mts +1 -0
  28. package/dist/lib/bounded-file.mjs +36 -0
  29. package/dist/lib/bounded-file.mjs.map +1 -0
  30. package/dist/lib/config-store.d.mts +34 -0
  31. package/dist/lib/config-store.mjs +70 -0
  32. package/dist/lib/config-store.mjs.map +1 -0
  33. package/dist/lib/file-lock.mjs +4 -5
  34. package/dist/lib/file-lock.mjs.map +1 -1
  35. package/dist/lib/input-limit.d.mts +4 -0
  36. package/dist/lib/input-limit.mjs +8 -0
  37. package/dist/lib/input-limit.mjs.map +1 -0
  38. package/dist/lib/memory-auto-register.mjs +2 -17
  39. package/dist/lib/memory-auto-register.mjs.map +1 -1
  40. package/dist/lib/report-language-tag.d.mts +1 -0
  41. package/dist/lib/report-language-tag.mjs +4 -0
  42. package/dist/lib/report-language-tag.mjs.map +1 -0
  43. package/dist/lib/report-language.d.mts +1 -0
  44. package/dist/lib/report-language.mjs +50 -0
  45. package/dist/lib/report-language.mjs.map +1 -0
  46. package/dist/lib/skill-catalog.mjs +3 -0
  47. package/dist/lib/skill-catalog.mjs.map +1 -1
  48. package/docs/architecture/storage-model.md +55 -5
  49. package/docs/architecture.md +10 -4
  50. package/docs/cli.md +320 -3
  51. package/docs/contributor-change-matrix.md +1 -2
  52. package/docs/project-structure-overview.md +34 -43
  53. package/package.json +1 -1
  54. package/runtime/BUILD.json +2 -2
  55. package/runtime/agents/operations/trace-interface-review.json +6 -0
  56. package/runtime/agents/operations/trace-scope-review.json +6 -0
  57. package/runtime/prompts/coding-preflight/authoring-checks.md +1 -1
  58. package/runtime/prompts/coding-preflight/clean-code.md +18 -20
  59. package/runtime/prompts/coding-preflight/overview.md +1 -1
  60. package/runtime/prompts/duties/code-reviewer.json +1 -1
  61. package/runtime/prompts/duties/interface-reviewer.json +32 -0
  62. package/runtime/prompts/host-orchestration/README.md +18 -9
  63. package/runtime/prompts/launch.template.md +3 -2
  64. package/runtime/prompts/lead/context-loader.md +2 -0
  65. package/runtime/prompts/lead/okstra-lead-contract.md +7 -7
  66. package/runtime/prompts/lead/report-writer.md +6 -6
  67. package/runtime/prompts/profiles/_coding-conventions-preflight.md +2 -2
  68. package/runtime/prompts/profiles/_common-contract.md +1 -1
  69. package/runtime/python/okstra_ctl/agent/invocation.py +1 -0
  70. package/runtime/python/okstra_ctl/agent/prompt_cli/cli.py +66 -26
  71. package/runtime/python/okstra_ctl/agent/prompt_cli/corrections.py +23 -8
  72. package/runtime/python/okstra_ctl/agent/prompt_cli/materialize.py +28 -10
  73. package/runtime/python/okstra_ctl/agent/prompt_cli/results.py +8 -11
  74. package/runtime/python/okstra_ctl/agent/standalone.py +12 -0
  75. package/runtime/python/okstra_ctl/analysis_packet.py +22 -11
  76. package/runtime/python/okstra_ctl/business_flow/cli.py +60 -6
  77. package/runtime/python/okstra_ctl/business_flow/contracts.py +12 -1
  78. package/runtime/python/okstra_ctl/business_flow/engine.py +17 -5
  79. package/runtime/python/okstra_ctl/business_flow/history.py +60 -0
  80. package/runtime/python/okstra_ctl/business_flow/source.py +35 -2
  81. package/runtime/python/okstra_ctl/business_flow/store.py +51 -14
  82. package/runtime/python/okstra_ctl/business_flow/sweep.py +124 -0
  83. package/runtime/python/okstra_ctl/code_review_census.py +93 -2
  84. package/runtime/python/okstra_ctl/code_review_prepare.py +381 -0
  85. package/runtime/python/okstra_ctl/code_review_run.py +384 -0
  86. package/runtime/python/okstra_ctl/code_review_scope.py +13 -0
  87. package/runtime/python/okstra_ctl/code_review_supervisor.py +41 -0
  88. package/runtime/python/okstra_ctl/code_review_target.py +140 -15
  89. package/runtime/python/okstra_ctl/coverage_census.py +11 -2
  90. package/runtime/python/okstra_ctl/design_snapshot.py +16 -9
  91. package/runtime/python/okstra_ctl/direct_work.py +45 -3
  92. package/runtime/python/okstra_ctl/dispatch_core.py +31 -15
  93. package/runtime/python/okstra_ctl/dispatch_state.py +9 -2
  94. package/runtime/python/okstra_ctl/domain/role.py +1 -0
  95. package/runtime/python/okstra_ctl/doyouknow/cli.py +9 -9
  96. package/runtime/python/okstra_ctl/doyouknow/config.py +2 -2
  97. package/runtime/python/okstra_ctl/doyouknow/group_view.py +152 -0
  98. package/runtime/python/okstra_ctl/doyouknow/source_contracts.py +4 -3
  99. package/runtime/python/okstra_ctl/doyouknow/source_store.py +2 -2
  100. package/runtime/python/okstra_ctl/doyouknow/sources/business.py +116 -0
  101. package/runtime/python/okstra_ctl/doyouknow/sources/manager.py +48 -9
  102. package/runtime/python/okstra_ctl/doyouknow/sync.py +34 -9
  103. package/runtime/python/okstra_ctl/final_report_schema.py +37 -34
  104. package/runtime/python/okstra_ctl/fixed_text.py +10 -0
  105. package/runtime/python/okstra_ctl/incremental_carry.py +6 -7
  106. package/runtime/python/okstra_ctl/initial_prompt_materialization.py +9 -2
  107. package/runtime/python/okstra_ctl/json_boundary.py +33 -6
  108. package/runtime/python/okstra_ctl/manager_cli.py +122 -1
  109. package/runtime/python/okstra_ctl/manager_journal.py +126 -0
  110. package/runtime/python/okstra_ctl/manager_launch.py +3 -3
  111. package/runtime/python/okstra_ctl/manager_log.py +221 -0
  112. package/runtime/python/okstra_ctl/manager_paths.py +8 -0
  113. package/runtime/python/okstra_ctl/manager_resume.py +59 -0
  114. package/runtime/python/okstra_ctl/manager_split.py +2 -2
  115. package/runtime/python/okstra_ctl/manager_store.py +116 -17
  116. package/runtime/python/okstra_ctl/manager_sync.py +42 -3
  117. package/runtime/python/okstra_ctl/manager_view.py +35 -2
  118. package/runtime/python/okstra_ctl/material.py +2 -0
  119. package/runtime/python/okstra_ctl/model_cli.py +64 -14
  120. package/runtime/python/okstra_ctl/model_defaults.py +22 -0
  121. package/runtime/python/okstra_ctl/model_io/renderers.py +3 -0
  122. package/runtime/python/okstra_ctl/operation_invocation.py +207 -28
  123. package/runtime/python/okstra_ctl/path_hints.py +14 -3
  124. package/runtime/python/okstra_ctl/paths.py +6 -1
  125. package/runtime/python/okstra_ctl/phases/catalog.py +24 -7
  126. package/runtime/python/okstra_ctl/phases/implementation/host-rules.md +3 -3
  127. package/runtime/python/okstra_ctl/phases/implementation/instructions/_implementation-diff-review.md +8 -6
  128. package/runtime/python/okstra_ctl/phases/implementation/instructions/_implementation-self-check.md +1 -1
  129. package/runtime/python/okstra_ctl/phases/implementation_option_selection/profile.md +1 -1
  130. package/runtime/python/okstra_ctl/phases/implementation_option_selection/votes.py +11 -11
  131. package/runtime/python/okstra_ctl/phases/implementation_planning/authoring.py +12 -9
  132. package/runtime/python/okstra_ctl/phases/implementation_planning/host-rules.md +3 -6
  133. package/runtime/python/okstra_ctl/phases/implementation_planning/instructions/plan-body-verification.md +12 -10
  134. package/runtime/python/okstra_ctl/phases/implementation_planning/profile.md +5 -5
  135. package/runtime/python/okstra_ctl/phases/improvement_discovery/lenses.py +12 -0
  136. package/runtime/python/okstra_ctl/phases/improvement_discovery/profile.md +7 -6
  137. package/runtime/python/okstra_ctl/phases/improvement_discovery/resolved_census.py +159 -0
  138. package/runtime/python/okstra_ctl/phases/improvement_discovery/spec.md +5 -2
  139. package/runtime/python/okstra_ctl/phases/improvement_discovery/validation.py +21 -7
  140. package/runtime/python/okstra_ctl/phases/release_handoff/boundary.json +1 -1
  141. package/runtime/python/okstra_ctl/phases/release_handoff/profile.md +4 -1
  142. package/runtime/python/okstra_ctl/plan_verify_cli.py +6 -4
  143. package/runtime/python/okstra_ctl/project_group.py +175 -0
  144. package/runtime/python/okstra_ctl/project_group_cli.py +62 -0
  145. package/runtime/python/okstra_ctl/render.py +28 -2
  146. package/runtime/python/okstra_ctl/report_assembly.py +38 -11
  147. package/runtime/python/okstra_ctl/report_contract.py +26 -0
  148. package/runtime/python/okstra_ctl/report_corrections.py +36 -20
  149. package/runtime/python/okstra_ctl/report_inputs.py +1 -0
  150. package/runtime/python/okstra_ctl/report_language.py +4 -1
  151. package/runtime/python/okstra_ctl/report_narrative.py +179 -7
  152. package/runtime/python/okstra_ctl/report_projections.py +64 -18
  153. package/runtime/python/okstra_ctl/report_synthesis_packet.py +86 -36
  154. package/runtime/python/okstra_ctl/run.py +43 -35
  155. package/runtime/python/okstra_ctl/run_context.py +10 -1
  156. package/runtime/python/okstra_ctl/set_work_status.py +4 -15
  157. package/runtime/python/okstra_ctl/task_list_cli.py +34 -8
  158. package/runtime/python/okstra_ctl/task_query.py +239 -0
  159. package/runtime/python/okstra_ctl/trace_review.py +264 -0
  160. package/runtime/python/okstra_ctl/trace_tasks.py +197 -0
  161. package/runtime/python/okstra_ctl/user_authorization.py +14 -0
  162. package/runtime/python/okstra_ctl/wizard/confirmation.py +7 -3
  163. package/runtime/python/okstra_ctl/wizard/launch.py +52 -0
  164. package/runtime/python/okstra_ctl/wizard/launch_cli.py +39 -0
  165. package/runtime/python/okstra_ctl/wizard/outcome.py +17 -16
  166. package/runtime/python/okstra_ctl/wizard/registry.py +1 -1
  167. package/runtime/python/okstra_ctl/wizard/render.py +8 -0
  168. package/runtime/python/okstra_ctl/wizard/state.py +2 -1
  169. package/runtime/python/okstra_project/state.py +20 -0
  170. package/runtime/python/okstra_token_usage/blocks.py +74 -0
  171. package/runtime/python/okstra_token_usage/cli.py +23 -10
  172. package/runtime/python/okstra_token_usage/collect.py +25 -22
  173. package/runtime/python/okstra_token_usage/policy.py +193 -0
  174. package/runtime/schemas/business-flow-v1.schema.json +3 -0
  175. package/runtime/schemas/doyouknow-config-v1.schema.json +1 -1
  176. package/runtime/schemas/report-synthesis-packet-v1.0.schema.json +1 -1
  177. package/runtime/skills/_fragments/wizard-confirm-step.md +1 -1
  178. package/runtime/skills/_fragments/wizard-preflight.md +1 -1
  179. package/runtime/skills/_fragments/wizard-prompt-loop.md +3 -5
  180. package/runtime/skills/_fragments/wizard-relay-protocol.md +1 -1
  181. package/runtime/skills/_fragments/wizard-render-bundle.md +15 -29
  182. package/runtime/skills/okstra-brief-gen/SKILL.md +7 -7
  183. package/runtime/skills/okstra-brief-gen/references/tracker-recursion.md +1 -1
  184. package/runtime/skills/okstra-code-review/SKILL.md +58 -50
  185. package/runtime/skills/okstra-code-review/references/census-rules.md +6 -6
  186. package/runtime/skills/okstra-code-review/references/review-calibration.md +8 -12
  187. package/runtime/skills/okstra-discussion/SKILL.md +22 -38
  188. package/runtime/skills/okstra-explain-flow/SKILL.md +33 -4
  189. package/runtime/skills/okstra-manager/SKILL.md +24 -0
  190. package/runtime/skills/okstra-memory/SKILL.md +1 -1
  191. package/runtime/skills/okstra-pr-gen/SKILL.md +1 -1
  192. package/runtime/skills/okstra-run/SKILL.md +55 -183
  193. package/runtime/skills/okstra-schedule-gen/SKILL.md +9 -13
  194. package/runtime/skills/okstra-setup/SKILL.md +3 -2
  195. package/runtime/skills/okstra-setup/references/project-config.md +2 -4
  196. package/runtime/skills/okstra-tdd/SKILL.md +187 -0
  197. package/runtime/skills/okstra-user-response/SKILL.md +4 -2
  198. package/runtime/templates/doyouknow/group-view.css +103 -0
  199. package/runtime/templates/doyouknow/group-view.js +317 -0
  200. package/runtime/templates/doyouknow/group-view.template.html +72 -0
  201. package/runtime/templates/manager/view.template.html +4 -0
  202. package/runtime/templates/report-writer-prompt-preamble.md +15 -3
  203. package/runtime/templates/trace/trace.template.md +42 -0
  204. package/runtime/validators/checks/fixtures-02.py +25 -33
  205. package/runtime/validators/validate-run.py +93 -36
package/README.md CHANGED
@@ -1,294 +1,30 @@
1
1
  # okstra
2
2
 
3
- > npm: [`okstra`](https://www.npmjs.com/package/okstra) · install: `npx -y okstra@latest install`
3
+ Claude Code, Codex 등의 에이전트 실행 환경에서 여러 모델의 분석과 검증을 조율하는 도구입니다.
4
+ 작업별 입력, 판단 근거, 결과를 기록하고 같은 작업을 이어서 진행할 수 있습니다.
4
5
 
5
- ## Index
6
+ ## 핵심 용도
6
7
 
7
- - [1. Purpose](#purpose)
8
- - [2. Structure](#structure)
9
- - [2.1 Repo layout](#repo-layout)
10
- - [2.2 User-machine layout after install](#user-machine-layout-after-install)
11
- - [2.3 Single-authority map](#single-authority-map)
12
- - [3. Manual](#manual)
13
- - [3.1 First-time setup (once per machine)](#first-time-setup)
14
- - [3.2 Register a project (once per project)](#register-a-project)
15
- - [3.3 Day-to-day commands](#day-to-day-commands)
16
- - [3.4 CLI mode (optional)](#cli-mode)
17
- - [3.5 Operations commands](#ops-commands)
18
- - [4. Further reading](#further-reading)
8
+ - `okstra-run`: 분석·계획·구현·최종 검증을 작업 단위로 진행하고 교차 검증을 수행합니다.
9
+ - `okstra-tdd`: 한 에이전트가 구현을 맡고 별도 검토자가 설계를 검토하며, 테스트 주도 개발(TDD)의 과정과 결과를 기록합니다.
10
+ - 작업 이력: 완료한 작업과 관련 작업을 찾고, 저장된 기록으로 작업을 재개합니다.
19
11
 
20
- <a id="purpose"></a>
21
- ## 1. Purpose
12
+ ## 시작하기
22
13
 
23
- `okstra` is a **host-aware, multi-provider task runner that cross-verifies work with a lead + worker model**. A registered host adapter supplies the lead session, while a separate provider adapter supplies models and worker execution. Claude remains the compatibility default policy, not the owner of the lifecycle.
14
+ Node.js 22 이상, Python 3.10 이상과 사용할 에이전트 도구의 설치·인증이 필요합니다.
24
15
 
25
- The design rests on three principles:
16
+ 1. 터미널에서 실행 도구와 스킬(skill)을 설치합니다.
26
17
 
27
- - **Single entry point (`prepare_task_bundle`)**: every caller—skill, Bash CLI, or in-session invocation—produces the same task directory layout, manifest, and validation paths.
28
- - **Persistent task identity**: a stable `<project-id>/<task-group>/<task-id>` task key carries context across phases, sessions, and model upgrades.
29
- - **Enforced lead/worker contract**: output schemas and validation procedures are bound to `templates/` + `validators/`, and the worker roster is fixed per phase.
18
+ ```bash
19
+ npx -y okstra@latest install
20
+ ```
30
21
 
31
- Role assignments are persisted separately from the host runtime, but the lead provider is always derived from that runtime:
22
+ 2. 작업할 프로젝트를 에이전트 실행 환경에서 열고 `okstra-setup`을 요청해 프로젝트를 등록합니다.
23
+ 3. `okstra-run`과 함께 작업 내용을 요청합니다. 단일 에이전트의 테스트 주도 개발은 `okstra-tdd <feature-slug>`로 시작합니다.
32
24
 
33
- | Provider | Native host | CLI wrapper | Public roles |
34
- |---|---|---|---|
35
- | Claude | Claude Code | `okstra-claude-exec.sh` | leader, analyser, designer, planner, implementer, verifier, report-writer |
36
- | Codex | Codex | `okstra-codex-exec.sh` | leader, analyser, designer, planner, implementer, verifier, report-writer |
37
- | Antigravity | Antigravity CLI | `okstra-antigravity-exec.sh` | leader, analyser, critic, implementer, verifier |
38
- | Grok | Grok CLI | `okstra-grok-exec.sh` | leader, read-only analyser, and critic |
39
- | Kimi | Kimi CLI | `okstra-kimi-exec.sh` | leader, read-only analyser, and critic |
40
- | Z.ai GLM | — | `okstra-zai-exec.sh` (Claude Code) | analyser, critic, designer, planner, implementer, verifier, report-writer |
25
+ ## 상세 문서
41
26
 
42
- Canonical role names are `leader`, `analyser`, `critic`, `designer`, `planner`, `implementer`, `verifier`, and `report-writer`. `lead` is a compatibility alias for `leader`. `executor` is a compatibility alias for `implementer`. New records write only the canonical names.
43
-
44
- Role count becomes a `RoleInstance` ordinal. `ModelPool` selects one model per ordinal. A pinned model is kept only when the host can bind it exactly. The resulting `RoleExecution` owns `Invocation` and `Attempt` rows and the stored `executionLabel`. Pane titles use that label. `okstra model list` and `okstra doctor --json` report pool state without an inference call.
45
-
46
- Grok and Kimi can now lead through their registered host adapters. Their worker roles remain read-only analyser and critic; executor, verifier, and report-writer roles were not added. A real authenticated local invocation still depends on the corresponding CLI being installed and configured.
47
-
48
- `okstra run <host-id-or-alias>` resolves the requested adapter from the host registry and checks its `spawn-process` readiness before starting it. The installed `okstra-run` skill instead uses `current-session`: it declares only the semantic functions the live harness can actually perform (`plain_text_input`, plus any available native single-select, multi-select, or grouped-question function) and reuses the current lead session. User-installed adapters are discovered only from `~/.okstra/adapters/hosts/<id>/` and `~/.okstra/adapters/providers/<id>/`; project-local executable adapter code is ignored.
49
-
50
- Z.ai GLM workers reuse the installed Claude Code executable with process-local Z.ai connection settings. Set `ZAI_API_KEY` once in `~/.env` or in the environment that launches Okstra, then select `zai/glm-5.3` or `zai/glm-5.3-flash` for a worker role. Claude configuration files remain unchanged. See [GLM worker setup](docs/cli.md#zai-glm-workers) for isolation and accounting details.
51
-
52
- The next direct-CLI candidates are Mistral Vibe and Qwen Code. DeepSeek V4 and MiniMax M2.7 remain API-adapter candidates because their current official coding-agent execution surfaces do not fit Okstra's wrapper contract as directly. Model catalog entries and account availability are distinct; GLM authorization is checked when its CLI process calls Z.ai.
53
-
54
- okstra is **not** a one-shot code review tool. It is for work that **spans multiple phases, needs input from multiple agents, and feeds each phase's output into the next phase**.
55
-
56
- <a id="structure"></a>
57
- ## 2. Structure
58
-
59
- <a id="repo-layout"></a>
60
- ### 2.1 Repo layout
61
-
62
- ```
63
- okstra/ npm package = repo root
64
- ├── package.json name: "okstra"
65
- ├── bin/okstra Node CLI entry point
66
- ├── src/ TypeScript Node CLI sources (`*.mts`)
67
- ├── dist/ compiled `.mjs` CLI artifacts used by `bin/okstra`
68
- ├── tools/build.mjs runtime/ synchronization script (invoked by prepack)
69
- ├── runtime/ gitignored install payload copied to ~/.okstra
70
- ├── scripts/ Python + Bash runtime sources
71
- ├── skills/ public skill Markdown sources (12 user-facing skills)
72
- ├── agents/ Claude host execution-adapter definitions
73
- ├── prompts/, schemas/, templates/, validators/
74
- ├── docs/ English manuals (architecture, CLI, storage, performance); implementation-process.md is Korean
75
- ├── tests/, tests-e2e/
76
- ├── .claude-plugin/plugin.json secondary skills-CLI channel manifest
77
- ├── .github/workflows/ release-please.yml, release.yml
78
- └── RELEASING.md, CHANGELOG.md, README.md
79
- ```
80
-
81
- The package requires Node.js 22 or newer. TypeScript sources under `src/` compile to `dist/**/*.mjs` before `tools/build.mjs` rebuilds `runtime/` from `scripts/`, `skills/`, `agents/`, `prompts/`, `schemas/`, `templates/`, and `validators/`. `bin/okstra` executes `dist/`; the npm package ships the compiled CLI, runtime payload, documentation, and README.
82
-
83
- Development and CI use Node.js 24 LTS and Python 3.14, selected by `.nvmrc` and `.python-version`. Both publishing workflows read the same Node.js version file. With nvm installed, run `nvm install` and `nvm use`; configure your Python version manager so `python3 --version` reports 3.14.x before running `npm run check`. These development versions do not change the package's minimum requirements of Node.js 22 and Python 3.10.
84
-
85
- <a id="user-machine-layout-after-install"></a>
86
- ### 2.2 User-machine layout after install
87
-
88
- ```
89
- ~/.okstra/ runtime home, created by `okstra install`
90
- ├── version package version stamp
91
- ├── lib/python/ okstra_project/, okstra_ctl/, okstra_token_usage/, lib/
92
- ├── bin/ okstra.sh and Claude/Codex/Antigravity/Grok/Kimi wrappers
93
- ├── templates/ report assets and settings templates
94
- ├── prompts/ lead operating contracts (prompts/lead/*) + coding-preflight resource pack
95
- ├── installed-runtimes.json installed runtime adapter manifest
96
- ├── installed-skills.json installed skill manifest (used by uninstall)
97
- ├── installed-agents.json reclaim record of host agent files a past version installed
98
- ├── recent.jsonl, active.jsonl run indexes
99
- ├── memory-book/ global conversation memory (`okstra memory`)
100
- ├── projects/ per-project metadata mirrors
101
- ├── worktrees/ one isolated git worktree per task-key
102
- │ (shared by all phases; not removed automatically after a run)
103
- ├── archive/ completed runs
104
- └── .locks/ central/task mutex files
105
-
106
- ~/.claude/skills/ automatically discovered by Claude Code (when `~/.claude` exists)
107
- ~/.agents/skills/ discovered by Agent-compatible hosts (created by `install`)
108
- └── okstra-*/SKILL.md 12 user-facing skills only (setup/brief-gen/run/discussion/explain-flow/memory/chat/schedule-gen/manager/pr-gen/user-response/code-review)
109
-
110
- ~/.okstra/agents/ role, common and operation contracts (okstra reads them; no host discovers them)
111
- ├── common.json rules every okstra-owned invocation carries
112
- ├── roles/*.json one contract per role (analyser, critic, verifier, …)
113
- └── operations/*.json work that runs outside a lifecycle run (code review, …)
114
-
115
- <project-root>/.okstra/
116
- ├── project.json {projectId, projectRoot, ...} (written by `/okstra-setup`)
117
- ├── discovery/{task-catalog,latest-task}.json
118
- ├── glossary.md okstra-owned project terminology
119
- ├── decisions/<NNNN>-<slug>.md okstra-owned decision records
120
- └── tasks/<task-group>/<task-id>/ task bundle (runs, manifest, reports)
121
- ```
122
-
123
- <a id="single-authority-map"></a>
124
- ### 2.3 Single-authority map
125
-
126
- | Resource | Location | Owner |
127
- |---|---|---|
128
- | Runtime code (Python + Bash) | `~/.okstra/{lib/python, bin}` | `okstra install` |
129
- | agents/prompts/schemas/templates/validators | npm package `runtime/` | the `okstra` package itself (resolved by `okstra paths`) |
130
- | Skill Markdown | `~/.claude/skills` or `~/.agents/skills` | `okstra install` (tracked per target in `installed-skills.json`) |
131
- | Agent contracts | `~/.okstra/agents/{common.json,roles/*.json,operations/*.json}` | `okstra install` (never a host-global agent path) |
132
- | Project metadata | `<project>/.okstra/` | `/okstra-setup` + the project itself |
133
- | Run indexes | `~/.okstra/{recent,active}.jsonl` | `prepare_task_bundle` |
134
-
135
- <a id="manual"></a>
136
- ## 3. Manual
137
-
138
- <a id="first-time-setup"></a>
139
- ### 3.1 First-time setup (once per machine)
140
-
141
- ```bash
142
- npx -y okstra@latest install
143
- ```
144
-
145
- This creates `~/.okstra/{lib/python, bin, templates, prompts, version}` and the installed asset manifests under `~/.okstra/`. Skill installation is based on host homes: if `~/.claude` exists, public skills are installed in `~/.claude/skills/`; `~/.agents/skills/` is always created and receives public skills for Agent-compatible hosts. Only user entry-point skills appear in skill listings. Lead/support operating contracts are installed as runtime resources under `~/.okstra/prompts/`, outside skill discovery. Re-running the command is idempotent: per-file hashes are compared and only changed files are updated.
146
-
147
- Verify the installation:
148
-
149
- ```bash
150
- npx -y okstra@latest doctor
151
- ```
152
-
153
- A `result: OK` line means the installation is ready. Each FAIL row prints its remediation inline—usually, rerun the install command.
154
-
155
- #### Optional: install the `okstra` command globally
156
-
157
- Every example in this README uses `npx -y okstra@latest <cmd>`, so a global install is unnecessary. To invoke okstra with a bare `okstra` command and avoid npx package fetching and version checks on every call, install it globally:
158
-
159
- ```bash
160
- npm i -g okstra
161
- okstra --version # confirm the CLI is on PATH
162
- okstra install # same as 'npx -y okstra@latest install'
163
- ```
164
-
165
- The global install only registers the Node CLI on PATH. The runtime (`~/.okstra/`) and host skill directories (`~/.claude/skills/` or `~/.agents/skills/`) are still created by `okstra install`; they are not included in `npm i -g`. To upgrade later, run `npm i -g okstra@latest && okstra install`. To remove the global binary, run `npm uninstall -g okstra` (this leaves `~/.okstra/` intact; remove that with `okstra uninstall`).
166
-
167
- **Skill behavior with a global install.** Every okstra skill detects a PATH-resolved `okstra` command and prefers it over `npx -y okstra@latest`. A global install therefore removes the npx fetch/version-check cost from every skill invocation (Step 0 of `okstra-run`, `okstra-schedule-gen`, and Step 0 of `okstra-setup` Step 2). Because each skill uses the installed version directly, **you control when upgrades happen**; `@latest` is no longer forced on every call. Run `npm i -g okstra@latest && okstra install` whenever you want a new release. If `okstra` is not on PATH, the skills automatically fall back to npx, so environments without a global install continue to work unchanged.
168
-
169
- <a id="register-a-project"></a>
170
- ### 3.2 Register a project (once per project)
171
-
172
- From the CLI:
173
-
174
- ```bash
175
- cd <target-project>
176
- npx -y okstra@latest setup --project-id <id> # e.g. INV-1234, my-app, okstra
177
- ```
178
-
179
- Or invoke the equivalent slash command inside a Claude Code session:
180
-
181
- ```
182
- /okstra-setup
183
- ```
184
-
185
- Both commands write `<project>/.okstra/project.json`. With `--project-id`, the CLI is non-interactive and can be used in CI; the slash command prompts through `AskUserQuestion`. Project-bound run skills require this file. `/okstra-explain-flow` can inspect a project directory without an existing task and uses the folder name when no project id is configured.
186
-
187
- <a id="day-to-day-commands"></a>
188
- ### 3.3 Day-to-day commands
189
-
190
- Use these slash commands inside a Claude Code session:
191
-
192
- | Command | Purpose |
193
- |---|---|
194
- | `/okstra-brief-gen` | Convert a ticket, requirements document, link, or conversation into an `okstra-run` task brief |
195
- | `/okstra-run` | Start a new task or continue an existing task's next phase |
196
- | `/okstra-discussion` | Research a ticket or project with several agents and settle its requirements and direction with them before planning, starting from a link or a short description. One research cycle per run; you complete the discussion, which publishes an immutable revision that follow-up briefs pin |
197
- | `/okstra-explain-flow` | Explain a business flow across inbound, outbound and indirect project dependencies, including rules, failures, before/after changes, risks and side effects; query or retry shared business knowledge independently of a task |
198
- | `/okstra-memory` | Store, search, and archive global conversation memory in `~/.okstra/memory-book` |
199
- | `/okstra-chat` | Create or join a global room and send or read addressed messages across host sessions |
200
- | `/okstra-schedule-gen` | Invoke as `/okstra-schedule-gen [task-group]` to generate a work schedule for an entire task group. Each non-done task is resolved through the source-aware `stage-map` response; your unfinished-stage choices are captured in a temporary selection contract, and only the same draft that passes deterministic selection validation followed by independent narrative verification is published |
201
- | `/okstra-manager` | Coordinate cross-project okstra tasks through manager-owned plans, assignments, one-way project sync snapshots, status, and child launch context packets |
202
- | `/okstra-pr-gen` | Register PR body templates under `~/.okstra/template/pr/` and generate a PR description from a branch diff (subcommands: `template` / `branches` / `gen`). Global skill—needs a Git repo, not a registered okstra project |
203
- | `/okstra-user-response` | Answer a task's open clarification questions in-session and write the response sidecar. The skill reads cited context first, then asks in plain language with each option's outcome through the host's native selection UI. Each answer is dispositioned as `answer` or `reframe`; a `reframe` is carried into the next run as a re-scoped brief |
204
- | `/okstra-code-review` | Review what a diff changed—one okstra `implementation` stage, or any branch—against this project's coding-preflight rules, and write the result to a file. The orchestrator censuses the diff into an explicit worklist once, one or two reviewers (the user picks) each return a verdict for every cell, a coverage audit re-dispatches any gap, and the orchestrator settles what the reviewers disagree on and rejects findings the code contradicts. Result files land under `.okstra/tasks/<task-group>/<task-id>/code-reviews/` (stage mode) or `.project-docs/code-reviews/<branch>/` (branch mode) |
205
- | `/okstra-setup` | Bootstrap a project as described in §3.2 |
206
-
207
- The lead operating contract and support contracts—context loader, team contract, convergence, report writer, and the coding-preflight pack—are no longer installed as agent skills. They are installed as okstra runtime resources under `~/.okstra/prompts/` (`prompts/lead/*.md`, `prompts/coding-preflight/*`), and the generated launch prompt gives the lead their absolute paths. Reinstallation prunes legacy copies from agent skill homes, so they are not exposed as slash commands.
208
-
209
- <a id="cli-mode"></a>
210
- ### 3.4 CLI mode (optional)
211
-
212
- To start a task outside a Claude Code session:
213
-
214
- ```bash
215
- ~/.okstra/bin/okstra.sh \
216
- --project-id <id> \
217
- --task-group <group> \
218
- --task-id <id> \
219
- --task-type <requirements-discovery|improvement-discovery|project-analysis|change-impact-analysis|error-analysis|technical-verification|implementation-option-selection|implementation-planning|implementation|final-verification|release-handoff|discussion> \
220
- --base-ref <branch|tag|sha> \
221
- --task-brief ./brief.md
222
- ```
223
-
224
- `feature-analysis` is intentionally omitted from the standalone shell example. Start it with the in-host `okstra-run` skill: 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`.
225
-
226
- 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).
227
-
228
- Notable workflow flags:
229
-
230
- - `--role-count <role>=<N>` — sets the total instance count for one static role. `lead` is a compatibility alias for `leader`.
231
- - `--role-model <role>=<modelRef>` — pins `<provider>/<model>` onto role instances in ordinal order. Unknown models fail before any side effect.
232
- - `--executor claude|codex|antigravity` — compatibility input that selects the implementer provider for `--task-type implementation`. The other two providers are dispatched as strict read-only verifiers in the same run ([`docs/cli.md`](docs/cli.md#--executor)).
233
- - `--work-category bugfix|feature|refactor|ops|improvement` — directly classifies work when the lifecycle skips the `requirements-discovery` phase.
234
- - `--approve` — with `--approved-plan`, sets `frontmatter.approved` to `true` on the plan's report record (`final-report-*.data.json`) and re-renders the full reading copy from it. Editing that reading copy does not approve the plan. Replaces the removed `--ack-approved` alias.
235
- - `--selected-direction <selection-final-report.md>` — starts a new `implementation-planning` run from a validated `implementation-option-selection` report. Existing planning reruns continue through `--clarification-response`.
236
-
237
- Major workflow changes added to `main` after 0.8.0:
238
-
239
- - **Automatic isolated worktrees for every task type** — During preparation, `okstra-ctl` runs `git worktree add ~/.okstra/worktrees/<project-id>/<task-group-segment>/<task-id-segment>` once per task key to create an isolated working tree and a `<work-category-namespace>/<task-id-segment>` branch (for example, `feature/dev-9436` or `fix/dev-7311`). The user chooses the base ref with `--base-ref`, using the same choices as the release-handoff PR base picker: `main`, `dev`, `staging`, `preprod`, `prod`, or a custom value. It is required in the first phase; the okstra-run skill collects it through `AskUserQuestion`, while non-interactive callers must pass `--base-ref` explicitly. Later **non-`implementation`** phases for the same task key (`requirements-discovery` → `error-analysis` → `implementation-option-selection` → `implementation-planning` → `final-verification` → `release-handoff`) reuse the same path and branch. `implementation` runs are **stage-isolated**: each run executes one stage in its own `.../<task>--stage-<N>/` worktree (a sibling of the task worktree, so the task tree's build and lint never see it) on a `<work-category-namespace>/<task>-s<N>` branch, so independent stages with `depends-on (none)` can run concurrently without sharing a tree. The registry reserves both task keys and **stage keys** with flock. Provisioning is skipped when the caller is already in another worktree or project_root is not a Git repository; stage isolation degrades to a flat path in those cases. Manual cleanup: `git worktree remove <path>` → `git branch -D <branch>` plus release/removal of the registry entry. Details: [`docs/architecture.md`](docs/architecture.md), in the *Task type* section, and [`docs/cli.md#--executor`](docs/cli.md#--executor).
240
- - **`release-handoff` lifecycle phase** — runs immediately after `final-verification` returns `verdict=accepted`. The current Okstra lead drafts the candidate messages and PR body inline, then uses the selected host adapter's user-prompt operation for the delivery choices. Only the Git/GitHub CLI commands selected through those menus are run. Force pushes, direct pushes to the base branch, hook bypasses (`--no-verify`), and release publication (`gh release`, `npm publish`, and similar commands) are prohibited. This phase does not edit source code. Profile: [`scripts/okstra_ctl/phases/release_handoff/profile.md`](scripts/okstra_ctl/phases/release_handoff/profile.md).
241
- - **Configurable PR body template** (release-handoff) — PR bodies are populated from a Markdown template selected in this order: one-time override (`--pr-template-path` or the okstra-run Step 6 prompt) → `prTemplatePath` in `<project_root>/.okstra/project.json` → `prTemplatePath` in `~/.okstra/config.json` → the installed default at `~/.okstra/templates/pr/pr-body.template.md`. Register a template with `okstra config set pr-template-path <path> [--scope project|global]`; project scope accepts a path relative to the project root, while global scope requires an absolute path or a path beginning with `~/`. `okstra config get pr-template-path --scope all` prints every scoped value and the effective winner. The default template contains `## Summary`, `## Changes`, `## Test plan`, and `## Linked issues`, plus HTML comment guidance that the lead removes immediately before PR creation.
242
- - **User-selected roster** — no worker is mandatory by profile. Each phase's `profile.json` declares its roles and allowed counts, and the user picks every slot's provider and model (`--role-count` / `--role-model`, or the okstra-run role screen, which pre-selects the recommended count). Choosing a single analyser is allowed: the run proceeds without cross-model verification and the final report and `validate-run` say so.
243
- - **Host-aware lead adapters** — `okstra-run` resolves the current harness through the same dynamic host registry used by the terminal front door. Claude Code, Codex, Antigravity, Grok, and Kimi keep their matching provider assignment native; `external` remains the explicit all-CLI host. Host and provider are separate axes, and every non-native worker assignment runs through the deterministic `okstra worker-dispatch` process boundary. `leadAssignment` and every `workerAssignments[]` row record provider, model, and `runner`. `okstra codex-dispatch` remains a compatibility alias for the provider-neutral dispatcher.
244
- - **Per-invocation duty contracts** — every Okstra-owned LLM call composes three independently managed inputs: a persisted model assignment, a functional duty contract from `prompts/duties/`, and call-specific task instructions. The final prompt and adjacent metadata carry exactly five SHA-256 digests (catalog, assignment, duty, instruction, prompt). Code-owned process launches fail before execution when verification fails; host-native calls record a verified-specification link without claiming that Okstra observed the bytes delivered by the host. Standalone code-review and schedule-verification calls use the same contract under `.okstra/agent-invocations/`.
245
- - **Implementation direction selection before detailed planning** — `implementation-option-selection` is a read-only lifecycle phase between error analysis and planning. Comparison mode evaluates the merged raw candidates and displays at most three ranked directions. Every displayed direction has `coveragePercent == 100`, `scopePrecisionPercent == 100`, no unmapped commitment, and no contradicted requirement. The user confirms one direction in a separate `DIRECTION SELECTION` response before a new planning run starts with `--selected-direction`. `implementation-planning` then expands that one direction into files, stages, validation, and rollback, and the resulting plan still requires its own approval. A preselected direction is validated without generating alternatives. Existing approved plans without `planningContract: selected-direction` keep the legacy `--implementation-option` execution path.
246
- - **Multi-stage `implementation-planning` / `implementation`** — `implementation-planning` always produces a Stage Map and N stage sections. Each stage has no more than six steps, and stages with `depends-on (none)` can be implemented concurrently in separate `implementation` runs. Each `implementation` invocation runs a single stage, selected with `--stage <auto|N>`, and creates an evidence sidecar at `carry/stage-<N>.json` for automatic carry-in to the next stage. The `implementation-planning` run directory accumulates `consumers.jsonl` reverse links that record which run consumed each stage.
247
- - **AI-prepared design preparation (implementation-planning → implementation)** — `implementation-planning` detects which stages need design input (domain contract, DB/table schema, external interface, transaction/consistency, transformation mapping, lifecycle, rollout/observability, manual user test) and has the AI draft a concrete proposal first, instead of handing the user an empty design document. Each item is assessed as `ready`, `provisional`, `blocked`, or `not-applicable`; a simple task may declare `no-design-inputs`. Phase 7 materializes an Okstra-owned request under `design-prep-requests/`, and `okstra design-prep <list|show|write>` or the okstra-run wizard records the confirmed answer as an **append-only** revision under `design-prep-inputs/`—neither path ever edits the approved planning snapshot. Before creating its worktree, `implementation` resolves only the items its selected stage cites in `stageRefs`: safe `provisional` assumptions are injected into the executor prompt so work proceeds, while an unsafe open decision makes only that stage wait or replan. A markerless legacy plan continues with a `legacy-unassessed` warning. Storage authorities: [`docs/architecture/storage-model.md`](docs/architecture/storage-model.md). CLI: [`docs/cli.md#okstra-design-prep`](docs/cli.md#okstra-design-prep).
248
- - **Phase 6 plan-body verification (implementation-planning only)** — Immediately after the report-writer worker drafts the final report and before the user approval gate, the lead performs one post-verification round. A selected-direction plan starts with `P-Dir-1`; a legacy candidate plan retains `P-Opt-*`. Both branches add `P-Step-*`, `P-Dep-*`, `P-Val-*`, and `P-Rb-*` items and ask every analyzer worker for an `AGREE`, `DISAGREE(a-e)`, or `SUPPLEMENT` verdict. The aggregate result is `passed`, `passed-with-dissent`, `blocked-by-disagreement`, or `aborted-non-result`. The frontmatter `approved` field is always published as `false`; a blocking result keeps it false and becomes a row in `## 1. Clarification Items`. A one-stage `no-design-inputs` plan keeps extraction and one verification round but sets `gating=false`, so the self-fix loop and a sweep batch do not run. For fast iteration, skip the round entirely with `--no-plan-verification`. Contract details: the "Plan-body verification mode" section of [`prompts/lead/convergence.md`](prompts/lead/convergence.md) and [`docs/cli.md#--no-plan-verification`](docs/cli.md#--no-plan-verification).
249
- - **Brief as translation layer + Step 6.5 reporter batch confirmation** — `okstra-brief-gen` converts external input—an issue ticket, requirements document, or user message—verbatim and marks okstra-added content as labeled augmentation. Step 6.5 asks the user to confirm in one batch whether that conversion changed meaning and records the result in `Reporter Confirmations`. Every analysis profile requires this section before phase analysis begins; `validators/validate-brief.py` enforces the requirement.
250
- - **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`.
251
- - **Single-owner report inputs and separate human views** — New runs use report contract v3. The report writer authors narrative Markdown while approval, activity, execution, convergence, design-preparation, and plan-body state remain in separate single-owner artifacts. Phase 7 validates those inputs and atomically assembles `final-report-<task-type>-<seq>.data.json` against `schemas/final-report-v3.0.schema.json`, then derives a task-specific human HTML view. The full reading copy Markdown still uses `templates/reports/final-report-v2.template.md` and is rendered on demand with `okstra render-final-report`. Each of the eleven task types owns a dedicated template under `templates/reports/html/tasks/`. Historical `schemas/final-report-v2.0.schema.json` and schema v1 reports remain readable; new runs do not write them.
252
- - **`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-option-selection`, or `error-analysis`. Lens enum SSOT: [`scripts/okstra_ctl/phases/improvement_discovery/lenses.py`](scripts/okstra_ctl/phases/improvement_discovery/lenses.py). Output section: `## 5.9 Improvement Candidates` (11-column table). Validator: [`scripts/okstra_ctl/phases/improvement_discovery/validation.py`](scripts/okstra_ctl/phases/improvement_discovery/validation.py).
253
- - **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).
254
-
255
- <a id="ops-commands"></a>
256
- ### 3.5 Operations commands
257
-
258
- Linked work records can be stored without a project or run using
259
- `okstra doyouknow capture --file <record.json>`, registered from normalized source
260
- input with `okstra doyouknow ingest --file <source.json>`, and inspected with
261
- `okstra doyouknow show <record-id>`. `okstra doyouknow sync` collects existing
262
- memory, manager and registered project-task references; `list` browses their
263
- cached state. Native memory and manager writes also request registration after
264
- their original save. Failed registration retains an identity-only pending request;
265
- `retry` processes pending requests and `sync` also reconciles the originals.
266
- See the [input contract and source settings](docs/cli.md),
267
- [Memory Book integration](https://github.com/Devonshin/okstra/blob/main/docs/skills/okstra-memory.md) and
268
- [manager integration](https://github.com/Devonshin/okstra/blob/main/docs/skills/okstra-manager.md).
269
-
270
- | Command | Purpose |
271
- |---|---|
272
- | `npx -y okstra@latest paths` | Print runtime paths (`--field <name>` or `--shell`) |
273
- | `npx -y okstra@latest doctor [--runtime claude-code\|codex\|antigravity\|external\|all] [--phase <phase>]` | Diagnose runtime, skills, Python imports, and model-pool state. `codex`, `antigravity`, and `external` exclude Claude skill checks; `--phase` adds readiness checks for implementation, final-verification, release-handoff, and improvement-discovery. JSON includes `modelPool` and never sends an inference call |
274
- | `npx -y okstra@latest model list [--role <role>] [--host <host>] [--json]` | List catalog models and exact-binding availability without an inference call |
275
- | `npx -y okstra@latest model default set\|unset <role> ... --scope project\|global` | Write or remove role model defaults in `.okstra/project.json` or `~/.okstra/config.json` |
276
- | `npx -y okstra@latest ensure-installed` | Run an idempotent check and automatically reinstall stale assets (skills call this internally) |
277
- | `npx -y okstra@latest setup --project-id <id>` | Register the current project in `.okstra/project.json` |
278
- | `npx -y okstra@latest check-project` | Verify that the current project was registered with `setup` |
279
- | `npx -y okstra@latest config <get\|set\|unset\|show> [key] [value] [--scope project\|global\|all]` | Read or write okstra settings. The current key is `pr-template-path`, which updates `prTemplatePath` in project.json or `~/.okstra/config.json` |
280
- | `npx -y okstra@latest memory <add\|list\|search\|show\|archive>` | Store, search, and archive global conversation memory in `~/.okstra/memory-book` |
281
- | `npx -y okstra@latest context-cost <task-key\|task-root> [--project-root <path>]` | Estimate lead, worker, and report-writer context/read costs for a task bundle |
282
- | `npx -y okstra@latest render-views <final-report.data.json\|final-report.md>` | Render schema v2 data directly with its task-specific human template, or use the schema v1 / quick-report compatibility path (Phase 7 step 1.5; idempotent) |
283
- | `npx -y okstra@latest token-usage ...` | Collect and substitute run token usage through the installed Python token-usage CLI wrapper |
284
- | `npx -y okstra@latest uninstall` | Remove the runtime and skills while preserving user data such as `recent.jsonl` and `projects/` |
285
- | `npx -y okstra@latest uninstall --purge -y` | Remove all assets, including user data |
286
-
287
- <a id="further-reading"></a>
288
- ## 4. Further reading
289
-
290
- - [`docs/implementation-process.md`](docs/implementation-process.md) — maintainer workflow for changing okstra: isolated work, validation, reviewed PRs, correction rounds, user-approved merge, and human acceptance.
291
- - [`docs/architecture.md`](docs/architecture.md) — detailed manual covering prompt and team contracts, storage, task-type phase rules, lifecycle, and workflow.
292
- - [`docs/cli.md`](docs/cli.md) — complete reference for `okstra.sh` arguments, options, and interactive input flow.
293
- - [`RELEASING.md`](RELEASING.md) — version cutting and publication through release-please or the manual fallback.
294
- - [`CHANGELOG.md`](CHANGELOG.md) — per-release change history.
27
+ - [실행 환경과 작업 흐름](docs/architecture.md)
28
+ - [스킬별 사용 안내](docs/skills/README.md)
29
+ - [테스트 주도 개발과 구현 기록](docs/skills/okstra-tdd.md)
30
+ - [구현 기록 명령과 입력 계약](docs/cli.md#implementation-trace-commands)
@@ -200,7 +200,7 @@ export const COMMAND_REGISTRY = [
200
200
  name: "task-list",
201
201
  python: { target: { module: "okstra_ctl.task_list_cli" } },
202
202
  category: "introspection",
203
- summary: ["List tasks registered in the current project"],
203
+ summary: ["List registered tasks, search their records and find related work"],
204
204
  },
205
205
  {
206
206
  name: "task-show",
@@ -340,6 +340,12 @@ export const COMMAND_REGISTRY = [
340
340
  category: "introspection",
341
341
  summary: ["Manage cross-project okstra tasks"],
342
342
  },
343
+ {
344
+ name: "project-group",
345
+ python: { target: { module: "okstra_ctl.project_group_cli" } },
346
+ category: "introspection",
347
+ summary: ["Register which project roots belong to a named project group"],
348
+ },
343
349
  {
344
350
  name: "worktree-lookup",
345
351
  python: { target: { module: "okstra_ctl.worktree_lookup_cli" } },
@@ -525,6 +531,13 @@ export const COMMAND_REGISTRY = [
525
531
  category: "introspection",
526
532
  summary: ["Store linked records, collect sources and retry pending registration"],
527
533
  },
534
+ {
535
+ name: "trace",
536
+ module: "./commands/trace/trace.mjs",
537
+ export: "run",
538
+ category: "introspection",
539
+ summary: ["Create, advance and synchronize a single-session Implementation Trace"],
540
+ },
528
541
  {
529
542
  name: "memory",
530
543
  module: "./commands/memory/memory.mjs",
@@ -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;KAC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,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"}
@@ -1,5 +1,10 @@
1
- import type { CliArgs, HostRuntimeResolution } from "../../lib/types.mjs";
1
+ import { resolveRuntime } from "../../lib/host-registry-client.mjs";
2
+ import type { CliArgs, HostRuntimeResolution, PythonRunner } from "../../lib/types.mjs";
2
3
  export declare function callerRuntimeResolutionError(args: CliArgs): string;
3
4
  export declare function buildRenderBundleArgs(args: CliArgs, workspaceRoot: string, resolution: HostRuntimeResolution): string[];
4
5
  export declare function runtimeResolutionArgs(resolution: HostRuntimeResolution): string[];
6
+ export declare function prepareRenderBundle(args: CliArgs, workspaceRoot: string, { runPython, resolveHost }?: {
7
+ readonly runPython?: PythonRunner;
8
+ readonly resolveHost?: typeof resolveRuntime;
9
+ }): Promise<number>;
5
10
  export declare function run(args: readonly string[]): Promise<number>;