agent-orchestrator-kit 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +50 -16
- package/bin/agent-orchestrator.js +405 -3
- package/package.json +1 -1
- package/profiles/generic/orchestrator.yaml +2 -1
- package/profiles/mvp/openspec-config.yaml.example +2 -0
- package/profiles/mvp/orchestrator.yaml +2 -1
- package/profiles/node/orchestrator.yaml +2 -1
- package/profiles/vue3/openspec-config.yaml.example +2 -0
- package/profiles/vue3/orchestrator.yaml +2 -1
- package/templates/.agents/commands/opsx-apply.md +18 -46
- package/templates/.agents/commands/opsx-archive.md +10 -163
- package/templates/.agents/commands/opsx-design.md +3 -10
- package/templates/.agents/commands/opsx-explore.md +3 -10
- package/templates/.agents/commands/opsx-propose.md +14 -10
- package/templates/.agents/commands/opsx-quick.md +3 -10
- package/templates/.agents/commands/opsx-review.md +27 -55
- package/templates/.agents/commands/opsx-sync.md +2 -0
- package/templates/.agents/rules/agent-orchestration.mdc +15 -16
- package/templates/.agents/rules/session-handoff.mdc +18 -16
- package/templates/.agents/skills/agent-orchestration/SKILL.md +27 -28
- package/templates/.agents/skills/openspec-apply-change/SKILL.md +15 -20
- package/templates/.agents/skills/openspec-archive-change/SKILL.md +12 -99
- package/templates/.agents/skills/openspec-propose/SKILL.md +11 -0
- package/templates/.agents/subagents/session-handoff.md +5 -5
- package/templates/.agents/subagents/spec-architect.md +1 -1
- package/templates/.agents/subagents/spec-archiver.md +1 -1
- package/templates/.agents/subagents/spec-reviewer.md +11 -7
- package/templates/AGENTS.md +3 -3
- package/templates/CLAUDE.md +2 -2
- package/templates/orchestrator.yaml +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-archiver
|
|
3
|
-
description: OpenSpec completion
|
|
3
|
+
description: OpenSpec completion fallback. Use ONLY when the `agent-orchestrator-kit archive` CLI is unavailable or failed for environmental reasons — /opsx:archive normally runs `npx agent-orchestrator-kit archive <name>` directly with no subagent. Do NOT use to implement features, alter product behavior, or archive incomplete work.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
You finalize one completed OpenSpec change. Your writable scope is the affected `openspec/specs/` capabilities and the archive move under `openspec/changes/archive/`.
|
|
@@ -3,29 +3,33 @@ name: spec-reviewer
|
|
|
3
3
|
description: Pre-implementation OpenSpec gate reviewer. ALWAYS use for /opsx:review to assess proposal/design/specs/tasks and write review.md. Do NOT use for post-implementation code review, edit src/, or change tasks.md.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
You review one OpenSpec change before apply. You are read-only except for `openspec/changes/<name>/review.md`.
|
|
6
|
+
You are Tier 2 of a two-tier review: you run only after `npx agent-orchestrator-kit gate-check --review <name>` passed. You review one OpenSpec change before apply. You are read-only except for `openspec/changes/<name>/review.md` and, on APPROVE, `openspec/changes/<name>/apply-notes.md`.
|
|
7
7
|
|
|
8
8
|
Workflow:
|
|
9
9
|
|
|
10
10
|
1. Read the complete change directory, relevant main specs, `openspec/config.yaml`, and repository paths referenced by the artifacts.
|
|
11
|
-
2.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
2. Apply the LLM-only checklist — do NOT re-check what Tier 1 covered (strict validation, contract field presence, proposal sections, delta-spec section structure):
|
|
12
|
+
- proposal ↔ design ↔ tasks consistency (no contradictions or drift);
|
|
13
|
+
- conflicts with existing `openspec/specs/` requirements;
|
|
14
|
+
- scope creep vs proposal Non-goals;
|
|
15
|
+
- task self-sufficiency: a blind implementer can execute each task from Files/Do/Done-when alone, without design.md.
|
|
16
|
+
3. Write `review.md` with findings ordered by severity and exactly one verdict: `APPROVE` or `REQUEST CHANGES`.
|
|
17
|
+
4. On APPROVE, also write `apply-notes.md` (≤ 20 lines): critical constraints, pitfalls, what NOT to touch, verification commands. It is the second and last file you may write.
|
|
18
|
+
5. Approve only when artifacts are implementable without material guessing.
|
|
15
19
|
|
|
16
20
|
Rules:
|
|
17
21
|
|
|
18
22
|
- Do NOT edit `src/`, tests, proposal/design/spec files, or `tasks.md`.
|
|
19
23
|
- Do NOT implement fixes found during review.
|
|
20
24
|
- Do NOT substitute for `code-reviewer`; that agent reviews the implementation diff after apply.
|
|
21
|
-
- Do NOT approve based only on
|
|
25
|
+
- Do NOT approve based only on Tier 1 passing; verify semantics and repository references.
|
|
22
26
|
|
|
23
27
|
Return exactly this report contract:
|
|
24
28
|
|
|
25
29
|
```
|
|
26
30
|
## Subagent report: spec-reviewer
|
|
27
31
|
**Status:** done | blocked
|
|
28
|
-
**Files:** review.md
|
|
32
|
+
**Files:** review.md (+ apply-notes.md on APPROVE)
|
|
29
33
|
**Done:** verdict and validation result
|
|
30
34
|
**Blocked:** missing artifacts or none
|
|
31
35
|
**Risks:** non-blocking review notes or none
|
package/templates/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Powered by [agent-orchestrator-kit](https://github.com/makshc2/agent-orchestrator-kit) v{{KIT_VERSION}}
|
|
4
4
|
|
|
5
|
-
Spec-driven OpenSpec pipeline. Each phase is a **separate chat**.
|
|
5
|
+
Spec-driven OpenSpec pipeline. Each phase is a **separate chat**. Delegation is differentiated (lean model): explore/design/propose/review spawn a mandatory specialist; **apply is parent-driven** — the parent implements from `tasks.md` + `apply-notes.md`, subagents are optional (≥ 2 independent tasks or explicit request; `design-implementer` for design-brief/Figma); **archive is a CLI** (`npx agent-orchestrator-kit archive <name> [--sync]`), no subagent.
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
explore → [design] → propose → review → apply → verify → archive
|
|
@@ -23,9 +23,9 @@ Routing table, HARD STOP, and CLI forms: `.agents/rules/` (`agent-orchestration`
|
|
|
23
23
|
| Quick (MVP) | `/opsx:quick <name>` |
|
|
24
24
|
| Archive | `/opsx:archive` |
|
|
25
25
|
|
|
26
|
-
Start
|
|
26
|
+
Session Start / Exit are **parent-driven** — canonical protocol in `.agents/rules/session-handoff.mdc`. Start: `status` → `handoff --restore` → `handoff.md` fallback. Exit HARD STOP: parent writes `handoff.md` → `npx agent-orchestrator-kit handoff <name>` (exit 0) → paste the CLI `/opsx:*` prompt. `session-handoff` subagent = fallback only. Do not start the next phase here.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Quality gates: `gate-check --tasks <name>` lints the task contract (Files/Do/Done-when, `pipeline.task_contract: warn|strict|off`); `gate-check --review <name>` is deterministic Tier 1 of review — spec-reviewer (Tier 2) is spawned only after it passes and writes `apply-notes.md` on APPROVE.
|
|
29
29
|
|
|
30
30
|
## Hard rules
|
|
31
31
|
- One active change (unless mvp profile).
|
package/templates/CLAUDE.md
CHANGED
|
@@ -8,8 +8,8 @@ See `AGENTS.md` and `.agents/rules/` for routing, HARD STOP, and CLI (`npx` only
|
|
|
8
8
|
/opsx:explore · /opsx:design · /opsx:propose · /opsx:review · /opsx:apply · /opsx:archive
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Lean delegation: explore/design/propose/review spawn a mandatory specialist; apply is parent-driven from `tasks.md` + `apply-notes.md` (subagents optional for independent tasks); archive runs `npx agent-orchestrator-kit archive <name> [--sync]` — no subagent. Review is two-tiered: `gate-check --review` (deterministic) before `spec-reviewer`; `gate-check --tasks` lints the Files/Do/Done-when task contract.
|
|
12
12
|
|
|
13
|
-
Exit:
|
|
13
|
+
Session Start/Exit are parent-driven (canonical: `.agents/rules/session-handoff.mdc`): restore with `npx agent-orchestrator-kit handoff --restore`; exit — write `handoff.md`, run `npx agent-orchestrator-kit handoff <name>` (exit 0), paste the CLI prompt. `session-handoff` subagent is a fallback only. Do not start the next phase in this chat.
|
|
14
14
|
|
|
15
15
|
One active change. No `src/` in explore/design/review. After apply: build/lint. Skills: `.claude/skills/` (synced from `.agents/skills/`).
|
|
@@ -12,6 +12,7 @@ pipeline:
|
|
|
12
12
|
require_design_brief: false
|
|
13
13
|
max_active_changes: 1
|
|
14
14
|
archive_after_merge: true
|
|
15
|
+
task_contract: warn
|
|
15
16
|
|
|
16
17
|
roles:
|
|
17
18
|
explorer:
|
|
@@ -50,7 +51,7 @@ handoff:
|
|
|
50
51
|
persist_on_exit: true
|
|
51
52
|
emit_next_session_prompt: true
|
|
52
53
|
prompt_self_contained: true
|
|
53
|
-
spawn_handoff_subagent:
|
|
54
|
+
spawn_handoff_subagent: false
|
|
54
55
|
|
|
55
56
|
memory:
|
|
56
57
|
enabled: true
|