@open-agent-toolkit/cli 0.3.19 → 0.3.20

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 (119) hide show
  1. package/README.md +2 -1
  2. package/assets/agents/oat-phase-implementer.md +26 -3
  3. package/assets/agents/oat-reviewer.md +8 -3
  4. package/assets/bundle-metadata.json +1 -1
  5. package/assets/docs/reference/cli-reference.md +12 -7
  6. package/assets/docs/reference/oat-directory-structure.md +1 -0
  7. package/assets/docs/reference/project-artifacts.md +56 -1
  8. package/assets/docs/reference/project-state-machine.md +41 -7
  9. package/assets/docs/skills/brainstorm.md +3 -2
  10. package/assets/docs/skills/index.md +13 -10
  11. package/assets/docs/workflows/advanced/autonomy.md +3 -1
  12. package/assets/docs/workflows/advanced/dispatch-ceiling.md +2 -2
  13. package/assets/docs/workflows/advanced/workflow-gates.md +17 -4
  14. package/assets/docs/workflows/approvals-and-automation.md +21 -10
  15. package/assets/docs/workflows/choose-workflow.md +17 -9
  16. package/assets/docs/workflows/ideas/index.md +1 -1
  17. package/assets/docs/workflows/ideas/lifecycle.md +3 -2
  18. package/assets/docs/workflows/projects/closeout/closeout-skills.md +80 -7
  19. package/assets/docs/workflows/projects/closeout/pr-flow.md +7 -1
  20. package/assets/docs/workflows/projects/execution/execution-skills.md +16 -3
  21. package/assets/docs/workflows/projects/execution/implementation-execution.md +1 -1
  22. package/assets/docs/workflows/projects/execution/picking-up-projects.md +11 -1
  23. package/assets/docs/workflows/projects/lifecycle.md +108 -9
  24. package/assets/docs/workflows/projects/planning/hill-checkpoints.md +6 -6
  25. package/assets/docs/workflows/projects/planning/planning-skills.md +9 -7
  26. package/assets/docs/workflows/projects/planning/starting-projects.md +57 -11
  27. package/assets/docs/workflows/projects/reviews/index.md +22 -1
  28. package/assets/docs/workflows/projects/reviews/review-flavors.md +5 -3
  29. package/assets/public-package-versions.json +4 -4
  30. package/assets/skills/oat-brainstorm/SKILL.md +34 -9
  31. package/assets/skills/oat-brainstorm/references/destinations.md +6 -3
  32. package/assets/skills/oat-docs/SKILL.md +7 -3
  33. package/assets/skills/oat-pjm-review-backlog/SKILL.md +2 -2
  34. package/assets/skills/oat-project-autonomous/SKILL.md +9 -3
  35. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +151 -132
  36. package/assets/skills/oat-project-brief/SKILL.md +1 -1
  37. package/assets/skills/oat-project-brief/references/brief-contract.md +458 -9
  38. package/assets/skills/oat-project-brief/references/docs/autonomy-contract.md +151 -132
  39. package/assets/skills/oat-project-brief/references/docs/gate-approval-record.md +9 -0
  40. package/assets/skills/oat-project-capture/SKILL.md +2 -2
  41. package/assets/skills/oat-project-complete/SKILL.md +14 -5
  42. package/assets/skills/oat-project-discover/SKILL.md +3 -2
  43. package/assets/skills/oat-project-document/SKILL.md +12 -6
  44. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +151 -132
  45. package/assets/skills/oat-project-goal/SKILL.md +697 -0
  46. package/assets/skills/oat-project-goal/references/docs/autonomy-contract.md +412 -0
  47. package/assets/skills/oat-project-goal/references/docs/gate-approval-record.md +93 -0
  48. package/assets/skills/oat-project-implement/SKILL.md +1 -1
  49. package/assets/skills/oat-project-implement/references/completion-and-closeout.md +67 -0
  50. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +151 -132
  51. package/assets/skills/oat-project-implement/references/docs/gate-approval-record.md +9 -0
  52. package/assets/skills/oat-project-implement/references/phase-execution.md +10 -3
  53. package/assets/skills/oat-project-implement/references/plan-and-resume.md +28 -1
  54. package/assets/skills/oat-project-lite/SKILL.md +1 -1
  55. package/assets/skills/oat-project-lite/references/docs/autonomy-contract.md +151 -132
  56. package/assets/skills/oat-project-new/SKILL.md +3 -3
  57. package/assets/skills/oat-project-next/SKILL.md +45 -15
  58. package/assets/skills/oat-project-next/references/docs/gate-approval-record.md +9 -0
  59. package/assets/skills/oat-project-plan/SKILL.md +14 -3
  60. package/assets/skills/oat-project-plan-writing/SKILL.md +6 -4
  61. package/assets/skills/oat-project-pr-final/SKILL.md +51 -1
  62. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +151 -132
  63. package/assets/skills/oat-project-pr-progress/SKILL.md +97 -3
  64. package/assets/skills/oat-project-progress/SKILL.md +38 -5
  65. package/assets/skills/oat-project-progress/references/docs/gate-approval-record.md +9 -0
  66. package/assets/skills/oat-project-quick-start/SKILL.md +14 -9
  67. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +151 -132
  68. package/assets/skills/oat-project-quick-start/references/docs/gate-approval-record.md +9 -0
  69. package/assets/skills/oat-project-reconcile/SKILL.md +31 -2
  70. package/assets/skills/oat-project-review-provide/SKILL.md +79 -13
  71. package/assets/skills/oat-project-review-receive/SKILL.md +70 -1
  72. package/assets/skills/oat-project-revise/SKILL.md +25 -1
  73. package/assets/skills/oat-project-summary/SKILL.md +60 -5
  74. package/assets/skills/oat-wave-execute/SKILL.md +2 -2
  75. package/assets/templates/state.md +1 -1
  76. package/dist/commands/project/closeout-check/closeout-invariant.d.ts +119 -3
  77. package/dist/commands/project/closeout-check/closeout-invariant.d.ts.map +1 -1
  78. package/dist/commands/project/closeout-check/closeout-invariant.js +454 -2
  79. package/dist/commands/project/closeout-check/index.d.ts +21 -3
  80. package/dist/commands/project/closeout-check/index.d.ts.map +1 -1
  81. package/dist/commands/project/closeout-check/index.js +190 -4
  82. package/dist/commands/project/complete-state/index.d.ts +2 -1
  83. package/dist/commands/project/complete-state/index.d.ts.map +1 -1
  84. package/dist/commands/project/complete-state/index.js +7 -1
  85. package/dist/commands/project/delivery/check.d.ts +66 -0
  86. package/dist/commands/project/delivery/check.d.ts.map +1 -0
  87. package/dist/commands/project/delivery/check.js +232 -0
  88. package/dist/commands/project/delivery/evidence.d.ts +171 -0
  89. package/dist/commands/project/delivery/evidence.d.ts.map +1 -0
  90. package/dist/commands/project/delivery/evidence.js +902 -0
  91. package/dist/commands/project/delivery/index.d.ts +7 -0
  92. package/dist/commands/project/delivery/index.d.ts.map +1 -0
  93. package/dist/commands/project/delivery/index.js +13 -0
  94. package/dist/commands/project/delivery/refresh.d.ts +110 -0
  95. package/dist/commands/project/delivery/refresh.d.ts.map +1 -0
  96. package/dist/commands/project/delivery/refresh.js +441 -0
  97. package/dist/commands/project/index.d.ts.map +1 -1
  98. package/dist/commands/project/index.js +2 -0
  99. package/dist/commands/project/log/append.d.ts +6 -0
  100. package/dist/commands/project/log/append.d.ts.map +1 -1
  101. package/dist/commands/project/log/append.js +6 -1
  102. package/dist/commands/project/new/scaffold.d.ts.map +1 -1
  103. package/dist/commands/project/new/scaffold.js +47 -1
  104. package/dist/commands/project/promote/promote.d.ts +15 -1
  105. package/dist/commands/project/promote/promote.d.ts.map +1 -1
  106. package/dist/commands/project/promote/promote.js +99 -15
  107. package/dist/commands/project/validate-plan/index.d.ts.map +1 -1
  108. package/dist/commands/project/validate-plan/index.js +10 -0
  109. package/dist/commands/project/validate-plan/profiles.d.ts +19 -4
  110. package/dist/commands/project/validate-plan/profiles.d.ts.map +1 -1
  111. package/dist/commands/project/validate-plan/profiles.js +153 -2
  112. package/dist/commands/shared/frontmatter.d.ts +1 -1
  113. package/dist/commands/shared/frontmatter.d.ts.map +1 -1
  114. package/dist/commands/shared/frontmatter.js +1 -0
  115. package/dist/commands/state/generate.d.ts.map +1 -1
  116. package/dist/commands/state/generate.js +35 -4
  117. package/dist/commands/tools/shared/pack-manifest.d.ts.map +1 -1
  118. package/dist/commands/tools/shared/pack-manifest.js +1 -0
  119. package/package.json +2 -2
@@ -62,6 +62,15 @@ replaces the record.
62
62
  core, written and read under the same rules as `oat_quick_start_gate`. It is
63
63
  absent when no gate is configured, and nothing routes on it: it is provenance
64
64
  only.
65
+ - **`oat_milestone_gates[mNN].plan` and `.exit`** (goal mode;
66
+ `oat-project-goal` writes `plan` after each milestone's approval, and
67
+ `oat-project-implement`'s milestone closeout writes `exit`) carry the core
68
+ plus `resolution` (`configured`, `no_gate`, or `project_disabled`), a
69
+ `subject` binding (`plan` or `code` and the milestone's ordered phase set),
70
+ and derived `freshness` with `freshness_reason`. `reviewed_head` is `null`
71
+ for `no_gate` and `project_disabled`, and `no_gate` is written rather than
72
+ omitted because routing reads these carriers. `oat-project-brief`'s
73
+ `references/brief-contract.md` section 12.4 is their contract.
65
74
 
66
75
  ## Reading a quick-start record
67
76
 
@@ -17,8 +17,10 @@ responsible for file boundaries, verification, and task commits.
17
17
 
18
18
  #### Brief-Mode Phase Execution
19
19
 
20
- When `oat_workflow_mode` is `brief`, each phase is one phase-unit with Intent
21
- and Exit evidence instead of planned tasks. Every rule in this route still
20
+ When `oat_workflow_mode` is `brief` or `goal`, each phase is one phase-unit
21
+ with Intent and Exit evidence instead of planned tasks; goal also scopes every
22
+ run to a milestone, recovery or terminal phase set (`plan-and-resume.md`, Goal
23
+ Projects). Every rule in this route still
22
24
  applies except where this subsection replaces it, and
23
25
  `oat-project-brief/references/brief-contract.md` (sections 3, 6, 7, and 10) is
24
26
  authoritative where the two differ. The subsection is inert for every other
@@ -200,7 +202,7 @@ Before each phase:
200
202
  spec: {PROJECT_PATH}/spec.md
201
203
  implementation: {PROJECT_PATH}/implementation.md
202
204
  discovery: {PROJECT_PATH}/discovery.md
203
- workflow_mode: {spec-driven|quick|import|lite|brief} # lite is always a single phase; brief phases carry Intent and Exit evidence, not tasks
205
+ workflow_mode: {spec-driven|quick|import|lite|brief|goal} # lite is always a single phase; brief and goal phases carry Intent and Exit evidence, not tasks
204
206
  active_provider: {codex|claude|cursor|other}
205
207
  phase_base_head: {PHASE_BASE_HEAD}
206
208
  worktree: {assigned checkout}
@@ -1217,6 +1219,11 @@ summary, and design/plan deviations. `oat_plan_hill_phases` lists phases after
1217
1219
  which execution pauses; an empty list means every phase.
1218
1220
  In brief modes an empty list means none (`plan-and-resume.md` Step 2.5), and a
1219
1221
  phase boundary is reached only when the phase-unit is accepted.
1222
+ In goal mode the last accepted phase of a milestone or recovery scope leads to
1223
+ Goal Milestone Closeout (`completion-and-closeout.md`), not to the final
1224
+ review: the milestone's integrated review is requested with its explicit
1225
+ `code mNN: <ordered phase ids>` scope after the exit carrier is allowed and
1226
+ fresh, and `code final` belongs to terminal closeout only.
1220
1227
 
1221
1228
  Before a configured non-final HiLL pause, run auto-review when enabled. Scope
1222
1229
  starts after the last passed whole-phase review and ends at the current phase.
@@ -24,6 +24,32 @@ logged brief edits Step 2.2 allows (adding, splitting, reordering, or making
24
24
  phases concrete within the approved outcomes); those are part of brief
25
25
  execution, not scope expansion.
26
26
 
27
+ ### Goal Projects
28
+
29
+ When `state.md` records `oat_workflow_mode: goal`, every brief-family rule
30
+ above applies, and `oat-project-brief/references/brief-contract.md` section 12
31
+ wins where this route restates it. Goal adds a scope to each run:
32
+
33
+ - **Active scope.** Read the router's context (`oat project status --json`,
34
+ `recommendation.context`): `scope mNN: <ordered phase ids>` is the active
35
+ milestone's ordered phase set from the shared Milestones reader;
36
+ `scope mNN/dNN: …` or a pending `oat_goal_recovery` record is a recovery
37
+ scope (its `phase_ids`); `scope terminal: …` is the terminal execution scope
38
+ after a declaration, which excludes audited `deferred` and `retired`
39
+ phases; `closeout mNN: …` or `closeout mNN/dNN: …` runs the scoped milestone
40
+ closeout in `completion-and-closeout.md` (Goal Milestone Closeout) without
41
+ dispatching a phase. Never widen a scope to phases of another milestone.
42
+ - **Ownership.** Implement never writes `oat_milestone`, never activates a
43
+ milestone, never registers a delivery, and never writes `declared_met`: it
44
+ consumes the declaration. It writes only the milestone status and recovery
45
+ stage transitions that Goal Milestone Closeout names.
46
+ - **Recovery isolation.** Executing a recovery scope for an older delivery
47
+ leaves `oat_milestone`, `oat_milestone_status`, `oat_current_task_id`, and
48
+ `oat_current_task` unchanged; progress is recorded in the journal and the
49
+ recovery record.
50
+ - **Invalid membership.** A `Active milestone membership invalid` reason stops
51
+ before dispatch and routes to `oat-project-goal`.
52
+
27
53
  ### Step 1: Check Plan Complete
28
54
 
29
55
  ```bash
@@ -388,7 +414,8 @@ cat "$PROJECT_PATH/implementation.md" 2>/dev/null | head -20
388
414
  record ID (brief contract section 8). Resolve a record ID to its phase and a
389
415
  phase ID to itself; `null`, an unknown ID, or an accepted or extracted unit
390
416
  resolves to the first incomplete phase-unit in document order within the
391
- active scope, which is every phase in brief. Phase-units come from the brief's
417
+ active scope, which is every phase in brief and the Goal Projects scope in
418
+ goal. Phase-units come from the brief's
392
419
  `## Phase` headings, never from task headings, and a provisional phase is
393
420
  incomplete. Print `Resuming from {phase_id}.` and apply the Step 2.2
394
421
  provisional rule before dispatching it. When every phase-unit in the active
@@ -7,7 +7,7 @@ disable-model-invocation: true
7
7
  user-invocable: true
8
8
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
9
9
  metadata:
10
- version: 1.1.9
10
+ version: 1.1.10
11
11
  ---
12
12
 
13
13
  # Lite Project