@open-agent-toolkit/cli 0.2.29 → 0.2.31

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 (87) hide show
  1. package/assets/bundle-metadata.json +1 -1
  2. package/assets/docs/cli-utilities/configuration.md +52 -1
  3. package/assets/docs/contributing/code.md +19 -7
  4. package/assets/docs/contributing/explainer-kit-verification.md +9 -1
  5. package/assets/docs/contributing/skills.md +9 -0
  6. package/assets/docs/workflows/projects/artifacts.md +5 -0
  7. package/assets/docs/workflows/projects/index.md +1 -0
  8. package/assets/docs/workflows/projects/lifecycle.md +23 -0
  9. package/assets/docs/workflows/projects/retro.md +261 -0
  10. package/assets/docs/workflows/skills/explainer-kit-providers.md +16 -5
  11. package/assets/docs/workflows/skills/explainer-kit.md +98 -38
  12. package/assets/docs/workflows/skills/index.md +6 -0
  13. package/assets/public-package-versions.json +4 -4
  14. package/assets/skills/explainer-kit/SKILL.md +33 -8
  15. package/assets/skills/explainer-kit/briefs/project-recap.md +25 -7
  16. package/assets/skills/explainer-kit/recipes/project-recap.v2.json +72 -0
  17. package/assets/skills/explainer-kit/references/contracts.md +49 -17
  18. package/assets/skills/explainer-kit/references/destination-contract.md +141 -25
  19. package/assets/skills/explainer-kit/references/extension-contract.md +19 -10
  20. package/assets/skills/explainer-kit/references/visual-authoring.md +24 -0
  21. package/assets/skills/explainer-kit/references/visual-review.md +19 -5
  22. package/assets/skills/explainer-kit/schemas/author-request.v3.schema.json +241 -0
  23. package/assets/skills/explainer-kit/schemas/publish-receipt.v2.schema.json +215 -0
  24. package/assets/skills/explainer-kit/schemas/publish-request.v2.schema.json +34 -0
  25. package/assets/skills/explainer-kit/schemas/run-request.schema.json +4 -1
  26. package/assets/skills/explainer-kit/schemas/terminal-evidence.v1.schema.json +81 -0
  27. package/assets/skills/explainer-kit/schemas/visual-review-evidence.v1.schema.json +66 -0
  28. package/assets/skills/explainer-kit/scripts/lib/catalog.mjs +109 -3
  29. package/assets/skills/explainer-kit/scripts/lib/contracts.mjs +550 -17
  30. package/assets/skills/explainer-kit/scripts/lib/durability.mjs +90 -8
  31. package/assets/skills/explainer-kit/scripts/lib/fs-safe.mjs +5 -0
  32. package/assets/skills/explainer-kit/scripts/lib/internal-references.mjs +538 -0
  33. package/assets/skills/explainer-kit/scripts/lib/package-coverage.mjs +129 -11
  34. package/assets/skills/explainer-kit/scripts/lib/publication-policy.mjs +54 -0
  35. package/assets/skills/explainer-kit/scripts/lib/recipes.mjs +2 -1
  36. package/assets/skills/explainer-kit/scripts/lib/records.mjs +139 -22
  37. package/assets/skills/explainer-kit/scripts/lib/s3-roots.mjs +353 -0
  38. package/assets/skills/explainer-kit/scripts/lib/s3-static.mjs +237 -107
  39. package/assets/skills/explainer-kit/scripts/lib/set-plan.mjs +1 -0
  40. package/assets/skills/explainer-kit/scripts/lib/terminal-evidence.mjs +157 -0
  41. package/assets/skills/explainer-kit/scripts/lib/visual-review.mjs +26 -6
  42. package/assets/skills/explainer-kit/scripts/run.mjs +1006 -144
  43. package/assets/skills/oat-explainer-kit/SKILL.md +16 -3
  44. package/assets/skills/oat-explainer-kit/references/config-contract.md +13 -8
  45. package/assets/skills/oat-explainer-kit/references/lifecycle-contract.md +50 -6
  46. package/assets/skills/oat-explainer-kit/references/migration.md +2 -1
  47. package/assets/skills/oat-explainer-kit/references/visual-review-callback.md +11 -0
  48. package/assets/skills/oat-explainer-kit/scripts/bind-project-sources.mjs +37 -15
  49. package/assets/skills/oat-explainer-kit/scripts/check-terminal-outcome.mjs +83 -0
  50. package/assets/skills/oat-explainer-kit/scripts/derive-destination.mjs +91 -0
  51. package/assets/skills/oat-explainer-kit/scripts/finalize-tracked-run.mjs +66 -10
  52. package/assets/skills/oat-explainer-kit/scripts/resolve-config.mjs +60 -21
  53. package/assets/skills/oat-explainer-kit/scripts/resolve-paths.mjs +52 -8
  54. package/assets/skills/oat-explainer-kit/scripts/run.mjs +271 -36
  55. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +38 -38
  56. package/assets/skills/oat-project-complete/SKILL.md +60 -8
  57. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +38 -38
  58. package/assets/skills/oat-project-implement/SKILL.md +1 -1
  59. package/assets/skills/oat-project-implement/references/completion-and-closeout.md +28 -6
  60. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +38 -38
  61. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +38 -38
  62. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +38 -38
  63. package/assets/skills/oat-project-retro/SKILL.md +310 -0
  64. package/assets/skills/oat-project-retro/references/apply-procedure.md +212 -0
  65. package/assets/skills/oat-project-retro/references/evidence-and-lanes.md +91 -0
  66. package/assets/skills/oat-project-retro/references/retro-quality-bar.md +100 -0
  67. package/assets/skills/oat-project-retro-file/SKILL.md +387 -0
  68. package/assets/templates/project-retro.md +236 -0
  69. package/dist/commands/config/index.d.ts.map +1 -1
  70. package/dist/commands/config/index.js +99 -0
  71. package/dist/commands/init/tools/shared/skill-manifest.d.ts +2 -2
  72. package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -1
  73. package/dist/commands/init/tools/shared/skill-manifest.js +3 -0
  74. package/dist/commands/project/archive/archive-utils.d.ts.map +1 -1
  75. package/dist/commands/project/archive/archive-utils.js +57 -7
  76. package/dist/commands/project/archive/explainer-terminal-evidence.d.ts +29 -0
  77. package/dist/commands/project/archive/explainer-terminal-evidence.d.ts.map +1 -0
  78. package/dist/commands/project/archive/explainer-terminal-evidence.js +37 -0
  79. package/dist/config/oat-config.d.ts +14 -1
  80. package/dist/config/oat-config.d.ts.map +1 -1
  81. package/dist/config/oat-config.js +42 -2
  82. package/dist/config/resolve.d.ts.map +1 -1
  83. package/dist/config/resolve.js +9 -0
  84. package/package.json +2 -2
  85. /package/assets/skills/explainer-kit/recipes/{project-recap.json → project-recap.v1.json} +0 -0
  86. /package/assets/skills/explainer-kit/schemas/{publish-receipt.schema.json → publish-receipt.v1.schema.json} +0 -0
  87. /package/assets/skills/explainer-kit/schemas/{publish-request.schema.json → publish-request.v1.schema.json} +0 -0
@@ -47,6 +47,10 @@ When all plan tasks are complete (i.e., there is no next incomplete `pNN-tNN` ta
47
47
  - Verification performed (tests/lint/typecheck/build/manual)
48
48
  - Design deltas (if any)
49
49
  - This should reflect **what was actually implemented**, including any deviations from design and any review-fix work.
50
+ - Reconcile `"$PROJECT_PATH/state.md"`, `"$PROJECT_PATH/implementation.md"`,
51
+ and `"$PROJECT_PATH/plan.md"` so task totals, phase statuses, current-task
52
+ pointers, the final summary, and test results describe the same terminal
53
+ evidence. Stale interim markers block closeout until corrected.
50
54
 
51
55
  Keep implementation in progress while clearing the completed task pointer:
52
56
 
@@ -678,6 +682,8 @@ legacy or structured preference, normalize legacy values before snapshotting:
678
682
  `{ preApproval: ["summary"], postApproval: [] }`, `pr` → `{ preApproval:
679
683
  ["summary", "pr"], postApproval: [] }`, and `docs-pr` → `{ preApproval:
680
684
  ["summary", "document", "pr"], postApproval: [] }`.
685
+ These legacy mappings remain unchanged. Structured preferences additionally
686
+ accept `retro` in `postApproval`; `retro` is invalid in `preApproval`.
681
687
 
682
688
  If `OAT_AUTONOMOUS=1` and the preference is unset, use the inventory's
683
689
  autonomous lifecycle-tail default:
@@ -692,6 +698,8 @@ sequence snapshot as a configured structured value. Add
692
698
  `source: autonomous-default` to that snapshot. A configured legacy or
693
699
  structured preference remains authoritative and uses `source: configured`;
694
700
  preserve its normalized arrays and stored order exactly.
701
+ The autonomous lifecycle-tail default remains unchanged and does not include
702
+ `retro`; retro runs autonomously only when explicitly configured.
695
703
 
696
704
  Persist this immutable state before dispatching a child:
697
705
 
@@ -700,11 +708,11 @@ oat_post_implement_sequence:
700
708
  status: pre_approval # pre_approval | awaiting_approval | post_approval | failed | complete
701
709
  source: configured # configured | autonomous-default
702
710
  final_phase: pNN
703
- pre_approval: [summary, document, pr]
711
+ pre_approval: [] # replace with the exact normalized resolved array
704
712
  pre_approval_completed: []
705
713
  approval: pending # pending | approved | not_required
706
714
  approval_source: null # null | user | oat-autonomous
707
- post_approval: []
715
+ post_approval: [] # exact resolved array; add retro only when explicitly configured
708
716
  post_approval_completed: []
709
717
  failure: null
710
718
  ```
@@ -712,6 +720,10 @@ oat_post_implement_sequence:
712
720
  `source` and `approval_source` are additive provenance fields. A resumable
713
721
  snapshot created by an older skill version remains valid when either field is
714
722
  absent; do not rewrite its stored pre/post arrays merely to backfill provenance.
723
+ The empty arrays above are consent-safe schema placeholders, not permission to
724
+ discard a nonempty preference. Replace both with the exact normalized arrays
725
+ resolved above. Never add `retro` unless the configured `postApproval` array
726
+ explicitly contains it; the autonomous default remains `postApproval: []`.
715
727
 
716
728
  The snapshot is immutable for this closeout: never re-resolve
717
729
  `workflow.postImplementSequence` while it is incomplete. Iterate
@@ -719,10 +731,12 @@ The snapshot is immutable for this closeout: never re-resolve
719
731
  substitute a vocabulary order. Resume from the first incomplete stored step,
720
732
  including a partially completed noncanonical order.
721
733
 
722
- For every pending `summary`, `document`, or `pr`, dispatch respectively
723
- `oat-project-summary`, `oat-project-document`, or `oat-project-pr-final`.
724
- Every `summary`, `document`, and `pr` child receives the authoritative snapshot
725
- and must merge state updates without replacing `oat_post_implement_sequence`.
734
+ For every pending `summary`, `document`, `pr`, or `retro`, dispatch respectively
735
+ `oat-project-summary`, `oat-project-document`, `oat-project-pr-final`, or
736
+ `oat-project-retro`. Dispatch `retro` in generate mode; apply and filing
737
+ behavior remains config-gated inside that skill. Every `summary`, `document`,
738
+ `pr`, and `retro` child receives the authoritative snapshot and must merge state
739
+ updates without replacing `oat_post_implement_sequence`.
726
740
  Re-read and verify the snapshot after every child returns before recording step
727
741
  success. If a child removed or altered it, restore the authoritative snapshot,
728
742
  record that step as failed, and stop with the boundary, failed step, and exact
@@ -765,6 +779,14 @@ single concise `Explainer Outcome` section using the manifest and build record;
765
779
  never append a second outcome section. If no recap was attempted or reused,
766
780
  leave the summary unchanged.
767
781
 
782
+ Before recording final approval, invoke the shared
783
+ `oat-explainer-kit/scripts/check-terminal-outcome.mjs` guard with the resolved
784
+ intent and, for `generate`, the selected or attempted manifest. The only
785
+ terminal generated outcomes are `built-durable`, `built-not-durable`,
786
+ `built-needs-review`, and `failed`. Missing records and `incomplete` block
787
+ approval; do not substitute a warning or infer an outcome from filesystem
788
+ presence. A `skip` intent requires no manifest.
789
+
768
790
  1. Dispatch incomplete `pre_approval` steps in stored order.
769
791
  2. When they succeed and a final checkpoint exists, commit `status:
770
792
  awaiting_approval` with `approval: pending` before asking for final HiLL