@open-agent-toolkit/cli 0.2.57 → 0.2.59

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 (64) hide show
  1. package/assets/agents/oat-phase-implementer.md +44 -2
  2. package/assets/bundle-metadata.json +1 -1
  3. package/assets/docs/cli-utilities/configuration.md +16 -0
  4. package/assets/docs/cli-utilities/workflow-gates.md +88 -3
  5. package/assets/docs/contributing/skills.md +27 -5
  6. package/assets/docs/contributing/smoke-testing.md +44 -0
  7. package/assets/docs/provider-sync/commands.md +23 -0
  8. package/assets/docs/workflows/projects/autonomy.md +5 -2
  9. package/assets/docs/workflows/projects/dispatch-ceiling.md +43 -7
  10. package/assets/docs/workflows/projects/implementation-execution.md +6 -3
  11. package/assets/docs/workflows/projects/lifecycle.md +4 -3
  12. package/assets/public-package-versions.json +4 -4
  13. package/assets/skills/oat-project-autonomous/SKILL.md +1 -1
  14. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +45 -38
  15. package/assets/skills/oat-project-design/SKILL.md +24 -5
  16. package/assets/skills/oat-project-discover/SKILL.md +10 -5
  17. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +45 -38
  18. package/assets/skills/oat-project-implement/SKILL.md +1 -1
  19. package/assets/skills/oat-project-implement/references/completion-and-closeout.md +43 -9
  20. package/assets/skills/oat-project-implement/references/dispatch-and-dry-run.md +14 -8
  21. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +45 -38
  22. package/assets/skills/oat-project-implement/references/phase-execution.md +7 -3
  23. package/assets/skills/oat-project-import-plan/SKILL.md +29 -4
  24. package/assets/skills/oat-project-next/SKILL.md +29 -2
  25. package/assets/skills/oat-project-plan/SKILL.md +29 -4
  26. package/assets/skills/oat-project-plan-writing/SKILL.md +95 -1
  27. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +45 -38
  28. package/assets/skills/oat-project-progress/SKILL.md +12 -1
  29. package/assets/skills/oat-project-quick-start/SKILL.md +29 -4
  30. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +45 -38
  31. package/assets/skills/oat-project-review-provide/SKILL.md +13 -6
  32. package/assets/skills/oat-project-review-provide-remote/SKILL.md +12 -5
  33. package/assets/templates/state.md +4 -1
  34. package/dist/commands/gate/index.d.ts.map +1 -1
  35. package/dist/commands/gate/index.js +102 -8
  36. package/dist/commands/init/index.d.ts.map +1 -1
  37. package/dist/commands/init/index.js +16 -1
  38. package/dist/commands/project/dispatch-ceiling/index.d.ts.map +1 -1
  39. package/dist/commands/project/dispatch-ceiling/index.js +10 -1
  40. package/dist/commands/remove/skill/remove-skill.d.ts.map +1 -1
  41. package/dist/commands/remove/skill/remove-skill.js +10 -1
  42. package/dist/commands/shared/frontmatter.d.ts +32 -1
  43. package/dist/commands/shared/frontmatter.d.ts.map +1 -1
  44. package/dist/commands/shared/frontmatter.js +92 -0
  45. package/dist/commands/status/index.d.ts.map +1 -1
  46. package/dist/commands/status/index.js +8 -1
  47. package/dist/commands/sync/apply.d.ts.map +1 -1
  48. package/dist/commands/sync/apply.js +40 -6
  49. package/dist/commands/sync/index.d.ts.map +1 -1
  50. package/dist/commands/sync/index.js +11 -17
  51. package/dist/commands/sync/sync.types.d.ts +6 -6
  52. package/dist/commands/sync/sync.types.d.ts.map +1 -1
  53. package/dist/config/resolve.d.ts +16 -0
  54. package/dist/config/resolve.d.ts.map +1 -1
  55. package/dist/config/resolve.js +16 -8
  56. package/dist/engine/execute-plan.d.ts.map +1 -1
  57. package/dist/engine/execute-plan.js +6 -0
  58. package/dist/manifest/index.d.ts +2 -1
  59. package/dist/manifest/index.d.ts.map +1 -1
  60. package/dist/manifest/index.js +1 -1
  61. package/dist/manifest/manager.d.ts +40 -0
  62. package/dist/manifest/manager.d.ts.map +1 -1
  63. package/dist/manifest/manager.js +35 -0
  64. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: oat-project-implement
3
- version: 2.3.2
3
+ version: 2.3.4
4
4
  description: Use when plan.md is ready for execution. Dispatches one phase implementer per phase, owns independent phase review and bounded fix routing, and supports plan-declared worktree-isolated parallel phases.
5
5
  oat_gateable: true
6
6
  argument-hint: '[--retry-limit <N>] [--dry-run]'
@@ -315,10 +315,11 @@ generation as a sibling of `oat_post_implement_sequence`:
315
315
  oat_implement_exit_gate:
316
316
  status: pending # pending | allowed | blocked | stale
317
317
  resolution: configured # configured | no_gate
318
- disposition: null # null | passed | warned | prompt_approved | no_gate
318
+ disposition: null # null | passed | warned | prompt_approved | project_disabled | no_gate
319
319
  config_fingerprint: '<stable hash of the resolved declaration>'
320
320
  resolved_command: null
321
321
  resolved_description: null
322
+ project_override: null # null or {value: disabled, source: state.md:oat_skill_gate_overrides}
322
323
  on_failure: block # block | prompt | warn | null
323
324
  max_attempts: 2
324
325
  attempts_completed: 0
@@ -352,12 +353,33 @@ oat_implement_exit_gate:
352
353
  At the start of a new closeout generation, require a current passed final
353
354
  lifecycle review, capture `reviewed_head`, and compute a deterministic
354
355
  `implementation_fingerprint` from the gate-reviewed basis. Resolve
355
- `workflow.gates.skills.oat-project-implement` once. Canonically serialize the
356
- resolved command, description, `onFailure`, and `maxAttempts` to derive
356
+ `workflow.gates.skills.oat-project-implement` once with project context, so a
357
+ configured gate this project disabled is never mistaken for absent
358
+ configuration. Canonically serialize the resolved command, description,
359
+ `onFailure`, `maxAttempts`, and the resolved project override state to derive
357
360
  `config_fingerprint`; persist the complete resolved inputs with `status:
358
361
  pending` before any gate launch. Missing state means unresolved, never no gate.
359
- A `null` resolution persists `allowed/no_gate` with `disposition: no_gate`,
360
- null run/artifact/receive provenance, and the current implementation basis.
362
+ A `not_configured` resolution persists `allowed/no_gate` with
363
+ `disposition: no_gate`, null run/artifact/receive provenance, and the current
364
+ implementation basis. Only that resolution may produce a no-gate success: a
365
+ null, missing, malformed, or unrecognized resolver result is an operational
366
+ failure that fails closed as unresolved and never as no gate.
367
+
368
+ A `configured_disabled_by_project` resolution persists `allowed/configured`
369
+ with `disposition: project_disabled`. It sets `resolved_command` to the
370
+ configured command as evidence that is never executed, keeps null gate-run,
371
+ artifact, and receive provenance because nothing launched, keeps
372
+ `launch_state: not_started`, and records a `project_override` sub-record with
373
+ `value: disabled` and `source: state.md:oat_skill_gate_overrides`. Completion
374
+ stays allowed because the operator chose the project override; every other
375
+ closeout freshness and snapshot rule is unchanged. A project-disabled gate must
376
+ never enter the passed, missing, or failed branches.
377
+
378
+ Because `config_fingerprint` covers the resolved override state as well as the
379
+ configured declaration, removing the override from `state.md` changes the
380
+ fingerprint. A stored `project_disabled` transition is therefore invalidated
381
+ and can never be reused as a fresh `allowed` result once the gate is
382
+ re-enabled; the re-enabled gate requires a new configured generation.
361
383
 
362
384
  New generations persist `implementation_fingerprint` as
363
385
  `sha256:effective-delta-v1:<digest>`. Resolve the logical integration base from
@@ -520,6 +542,16 @@ disposition.
520
542
  configured-gate provenance when configured, an unchanged immutable
521
543
  implementation fingerprint, a valid rolling freshness checkpoint, and any
522
544
  eligible receive marked complete.
545
+ - An `allowed/configured` result carrying `disposition: project_disabled` is
546
+ revalidated before it is reused, because the override lives in the state
547
+ carrier that the implementation fingerprint deliberately excludes. Re-resolve
548
+ the gate with project context, recompute `config_fingerprint` from that
549
+ current resolution, and require both that the current resolution is still
550
+ `configured_disabled_by_project` and that the recomputed fingerprint equals
551
+ the persisted one. Any other current resolution, including a re-enabled
552
+ `configured` gate, or any fingerprint mismatch marks the generation `stale`
553
+ and requires a new configured generation. Reproducing the fingerprint from
554
+ the persisted inputs alone never satisfies this check.
523
555
  - Closeout-only descendants include configured gate artifacts and receipts,
524
556
  project tracking, `project-log.md` appends, summary/documentation/PR sequence
525
557
  outputs, final HiLL bookkeeping, and completion bookkeeping. Classify
@@ -565,12 +597,14 @@ completion, or success output, run the configured gate:
565
597
  the gate for this skill:
566
598
 
567
599
  ```bash
568
- oat gate resolve oat-project-implement --json
600
+ oat gate resolve oat-project-implement --project "$PROJECT_PATH" --json
569
601
  ```
570
602
 
571
- Persist the resolution and configuration fingerprint before launch. If the
572
- command returns JSON `null`, persist the allowed no-gate transition; no gate
573
- is configured; proceed directly to the completion steps in Step 15 below.
603
+ Persist the resolution and configuration fingerprint before launch, then
604
+ handle all three `resolution` values explicitly:
605
+ - `not_configured`: persist the allowed no-gate transition; no gate is configured; proceed directly to the completion steps in Step 15 below.
606
+ - `configured_disabled_by_project`: persist the allowed project-disabled transition described above without launching any process, and proceed directly to the completion steps in Step 15 below.
607
+ - `configured`: continue with the launch steps below.
574
608
 
575
609
  2. Export the resolved project path into the command shell:
576
610
 
@@ -367,11 +367,18 @@ Require `dispatchReport.schemaVersion: 1` in the completed resolver JSON before
367
367
  dispatch. Surface every structured entry in `dispatchReport.notices`, then
368
368
  render the versioned block with `formatDispatchReport(dispatchReport)`
369
369
  semantics, before the implementation, fix, or reviewer launch. Consume the
370
- report as the human/audit source, and derive the formal compatibility line only
371
- through
372
- `formatDispatchStamp(dispatchReport)` / `toDispatchStampRecord(dispatchReport)`.
370
+ report as the human/audit source, and take the formal compatibility line
371
+ directly from the same response's additive `dispatchStamp` field: it must be a
372
+ non-empty string beginning with the canonical `Dispatch:` prefix, copied
373
+ byte-for-byte into dispatch and audit metadata. Reformatting the report through
374
+ `formatDispatchStamp(dispatchReport)` / `toDispatchStampRecord(dispatchReport)`
375
+ is an optional corroboration where that library is already loaded; it is never
376
+ the normal path and never a substitute for the returned field, and no
377
+ out-of-tree shim is required.
373
378
  Never hand-assemble a second `Dispatch:` schema from policy labels, role names,
374
- candidate strings, or target names.
379
+ candidate strings, or target names. If `dispatchStamp` is absent or lacks the
380
+ canonical prefix on a report-bearing response, stop and report instead of
381
+ reconstructing it.
375
382
 
376
383
  The exact provider invocation remains authoritative in
377
384
  `providers.<provider>.dispatchArgs` and `providers.<provider>.selection.target`;
@@ -537,10 +544,9 @@ Payload-first invariant:
537
544
  - Those fields are launcher-owned. Agent self-report cannot populate or
538
545
  overwrite them; it may only be retained separately as optional diagnostics.
539
546
  - Derive `Dispatch target` and `Effort axis` / `Model axis` from the payload.
540
- - After the payload is built, append the compatibility stamp returned from
541
- `formatDispatchStamp(dispatchReport)` to Dispatch Notes for every
542
- implementation, fix, and review dispatch. The derived line retains the p01
543
- grammar exactly:
547
+ - After the payload is built, append the resolver-returned `dispatchStamp`
548
+ value to Dispatch Notes for every implementation, fix, and review dispatch.
549
+ The returned line retains the p01 grammar exactly:
544
550
  `Dispatch: scope=<phase-or-task> action=<implementation|fix|review> role=<implementer|fix|reviewer> producer=<slug|unknown> provenance=<declared|observed|inferred|unknown> model_axis=<axis> effort_axis=<axis> dispatch_policy=<policy|unknown> dispatch_ceiling=<value|none> target=<target|unknown>`.
545
551
  Populate the report from the completed resolver and actual host arguments.
546
552
  Only independently observed or otherwise supported runtime evidence may