@ludecker/aaac 1.1.3 → 1.1.5

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 (44) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/run-engine/advance-phase.mjs +2 -5
  4. package/src/run-engine/debug-run.mjs +6 -0
  5. package/src/run-engine/lib.mjs +17 -0
  6. package/src/run-engine/log.mjs +1 -1
  7. package/src/run-engine/record-task.mjs +25 -4
  8. package/templates/cursor/aaac/enforcement.json +6 -0
  9. package/templates/cursor/aaac/graph.project.yaml +2 -0
  10. package/templates/cursor/aaac/run/schema.json +5 -0
  11. package/templates/cursor/aaac/scripts/run-engine/advance-phase.mjs +2 -5
  12. package/templates/cursor/aaac/scripts/run-engine/debug-run.mjs +6 -0
  13. package/templates/cursor/aaac/scripts/run-engine/lib.mjs +17 -0
  14. package/templates/cursor/aaac/scripts/run-engine/log.mjs +1 -1
  15. package/templates/cursor/aaac/scripts/run-engine/record-task.mjs +25 -4
  16. package/templates/cursor/aaac/scripts/run-engine/verify-website-build.mjs +1 -1
  17. package/templates/cursor/agents/fix-runtime-evidence.md +1 -1
  18. package/templates/cursor/policies/implementation.md +3 -0
  19. package/templates/cursor/policies/mcp-and-deploy.md +14 -0
  20. package/templates/cursor/policies/minimal-complexity.md +2 -2
  21. package/templates/cursor/policies/project-context.md +5 -0
  22. package/templates/cursor/policies/ui-design.md +5 -0
  23. package/templates/cursor/rules/aaac-enforcement.mdc +10 -5
  24. package/templates/cursor/skills/shared/_task-prompt-policy.md +18 -0
  25. package/templates/cursor/skills/shared/architecture/refactor-analysis.md +7 -7
  26. package/templates/cursor/skills/shared/check/SKILL.md +4 -0
  27. package/templates/cursor/skills/shared/discovery/SKILL.md +4 -0
  28. package/templates/cursor/skills/shared/execution/SKILL.md +2 -3
  29. package/templates/cursor/skills/shared/governance/implementation/SKILL.md +8 -5
  30. package/templates/cursor/skills/shared/integration/SKILL.md +2 -2
  31. package/templates/cursor/skills/shared/investigation/SKILL.md +1 -1
  32. package/templates/cursor/skills/shared/investigation-lite/SKILL.md +2 -0
  33. package/templates/cursor/skills/shared/platform-release/SKILL.md +4 -6
  34. package/templates/cursor/skills/shared/platform-release/orchestrator/SKILL.md +4 -4
  35. package/templates/cursor/skills/shared/platform-release/ship-procedure.md +14 -15
  36. package/templates/cursor/skills/shared/schema/SKILL.md +1 -1
  37. package/templates/cursor/skills/shared/testing/SKILL.md +3 -3
  38. package/templates/cursor/skills/shared/verbs/_dispatch-utils.md +5 -3
  39. package/templates/cursor/skills/shared/verbs/check/orchestrator/SKILL.md +1 -1
  40. package/templates/cursor/skills/shared/verbs/update/orchestrator/contract.yaml +3 -1
  41. package/templates/docs/agentic_architecture.md +2 -2
  42. package/templates/docs/master_rules.md +673 -20
  43. package/templates/docs/project_context.md +40 -0
  44. package/templates/docs/ui_design.md +206 -0
@@ -18,7 +18,7 @@ disable-model-invocation: true
18
18
  1. [../SKILL.md](../SKILL.md) — swarm DAG
19
19
  2. [ship-procedure.md](../ship-procedure.md) — step reference
20
20
  3. [graph.yaml](../../../../aaac/graph.yaml) — `release-app`
21
- 4. [ludecker-infrastructure](../../../ludecker/infrastructure/SKILL.md)
21
+ 4. Project overlay infrastructure skill when present (`skills/<project>/infrastructure/`)
22
22
 
23
23
  ## Phases
24
24
 
@@ -32,11 +32,11 @@ Spawn subagent per [agents/release-git.md](../../../../agents/release-git.md).
32
32
 
33
33
  **Do not** start Wave 2 until `commit_sha` is returned.
34
34
 
35
- ### 2. Wave 2 — Render
35
+ ### 2. Wave 2 — Deploy (optional)
36
36
 
37
- Spawn [release-render](../../../../agents/release-render.md) with `commit_sha`, `commit_message_first_line`, `commit_message_body`.
37
+ When project overlay supplies a deploy agent, spawn it with `commit_sha`, `commit_message_first_line`, `commit_message_body`. Skip when not configured.
38
38
 
39
- If Render `build_failed`, overall status is failed.
39
+ If deploy `build_failed`, overall status is failed.
40
40
 
41
41
  ### 3. Verify + report
42
42
 
@@ -1,31 +1,30 @@
1
1
  # Release ship procedure (reference)
2
2
 
3
- Canonical steps migrated from legacy `/ship-ludecker`. Subagents in `agents/release-*.md` own each slice.
3
+ Generic git-first release. Deploy steps are **optional** enable via project overlay (`docs/project_context.md`, `.cursor/rules/deploy.mdc`). Subagents in `agents/release-*.md` own each slice.
4
4
 
5
5
  ## Git (Wave 1 — blocking)
6
6
 
7
- 1. Confirm repo: `signalbynoise/ludecker` (or local ludecker monorepo)
7
+ 1. Confirm repo root (`git rev-parse --show-toplevel`)
8
8
  2. `git status` + `git diff` + `git diff --staged` + `git log -5 --oneline`
9
- 3. Never stage `.env`, `.env.local`, credentials, or API keys
9
+ 3. Never stage `.env`, credentials, or API keys
10
10
  4. Draft 1–2 sentence commit message from diff and user intent
11
11
  5. `git add` intentional paths → `git commit` (HEREDOC message)
12
- 6. Ensure on `main`: `git checkout main` if needed; `git pull --rebase origin main`
13
- 7. `git push origin main` — on reject, rebase once more; never force-push main
12
+ 6. Ensure on default branch: checkout if needed; `git pull --rebase origin <branch>`
13
+ 7. `git push origin <branch>` — on reject, rebase once more; never force-push protected branches
14
14
  8. Output: `commit_sha`, `commit_message_first_line`, `commit_message_body`
15
15
 
16
- **Rules:** No force-push main. On pre-commit hook failure: fix and new commit — never amend unless user asked.
16
+ **Rules:** No force-push to protected branches. On pre-commit hook failure: fix and new commit — never amend unless user asked.
17
17
 
18
- ## Render (Wave 2 — after push)
18
+ ## Deploy (Wave 2 — optional, project overlay)
19
19
 
20
- MCP: `user-render` only (not `plugin-render-render`).
20
+ Skip when no deploy agent or `project.config.json` deploy section is configured.
21
21
 
22
- **Service SSOT:** `ludecker-website` (see `render.yaml`, `docs/deployment.md`).
23
-
24
- 1. `list_services` find `name === "ludecker-website"`, note `id`
25
- 2. After push: `list_deploys` (`limit: 5`) — match deploy `commit.id` to `commit_sha`
26
- 3. Poll up to **15 minutes**, every **30s**, until `status === "live"` or terminal failure
27
- 4. Smoke check: `curl -fsS -o /dev/null -w "%{http_code}" https://ludecker-website.onrender.com/` — expect **200**
22
+ 1. Read service name and smoke URL from `docs/project_context.md` or `.cursor/rules/deploy.mdc`
23
+ 2. Use your team's configured deploy MCP (see [mcp-and-deploy.md](../../../policies/mcp-and-deploy.md))
24
+ 3. After push: list deploys match `commit.id` to `commit_sha`
25
+ 4. Poll until `live` or terminal failure
26
+ 5. Smoke check production URL expect success status
28
27
 
29
28
  ## Preflight (optional, Wave 0)
30
29
 
31
- If intent includes "with tests": run `pnpm typecheck` from repo root before git work.
30
+ If intent includes "with tests": run project typecheck/test command from repo root before git work.
@@ -14,7 +14,7 @@ disable-model-invocation: true
14
14
 
15
15
  ## Execution focus
16
16
 
17
- - New migration file per change; apply via Supabase MCP (`hjadkzfemzuvhpwbixbt`)
17
+ - New migration file per change; apply via configured database MCP (see [mcp-and-deploy.md](../../../policies/mcp-and-deploy.md))
18
18
  - Backward-compatible defaults; document breaking changes in report
19
19
  - RLS and security advisors after apply
20
20
 
@@ -18,15 +18,15 @@ Phase `verify` (and `test_only` orchestrators). On **fix** paths, run fix verify
18
18
  2. Invoke [unit-test-run.md](../../../agents/unit-test-run.md) pattern for targeted vitest
19
19
  3. Fallow MCP → `check_changed` on touched files when configured
20
20
  4. `ReadLints` on edited paths
21
- 5. **App build gate (when enabled):** before advancing `verify`, run:
21
+ 5. **Website build gate (mandatory on create / update / fix):** before advancing `verify`, run:
22
22
  ```bash
23
23
  node .cursor/aaac/scripts/run-engine/verify-website-build.mjs --run-id <run_id>
24
24
  ```
25
- Reads `verify` from `.cursor/aaac/project.config.json`. Skips when `verify.enabled: false` (default on fresh install). When enabled, checks `index_html` static assets and runs the configured build command. `advance-phase.mjs verify` **blocks** until this passes and writes `artifacts/verify.yaml`.
25
+ This checks `index.html` static asset paths resolve under `apps/website/public/` (or project root for Vite dev) and runs `pnpm --filter @ludecker/website build`. `advance-phase.mjs verify` **blocks** until this passes and writes `artifacts/verify.yaml`.
26
26
 
27
27
  ## Fix verify swarm (mandatory on fix verb / fix_mode)
28
28
 
29
- After unit tests, launch **3 parallel** `Task` subagents in **one message**:
29
+ After unit tests, launch **3 parallel** `Task` subagents in **one message**. Each prompt **must** include [_task-prompt-policy.md](../_task-prompt-policy.md) and investigation artifact paths.
30
30
 
31
31
  | # | Agent spec | `subagent_type` | Role |
32
32
  |---|------------|-----------------|------|
@@ -16,9 +16,11 @@ Orchestrators execute phases from the Run `pending` queue. Do not skip gates unl
16
16
  Read before any phase:
17
17
 
18
18
  1. [.cursor/policies/master-rules.md](../../../policies/master-rules.md)
19
- 2. [.cursor/policies/implementation.md](../../../policies/implementation.md)
20
- 3. [.cursor/policies/mcp-and-deploy.md](../../../policies/mcp-and-deploy.md)
21
- 4. [.cursor/policies/minimal-complexity.md](../../../policies/minimal-complexity.md) — **required for create / update / fix**
19
+ 2. [.cursor/policies/project-context.md](../../../policies/project-context.md)
20
+ 3. [.cursor/policies/ui-design.md](../../../policies/ui-design.md)
21
+ 4. [.cursor/policies/implementation.md](../../../policies/implementation.md)
22
+ 5. [.cursor/policies/mcp-and-deploy.md](../../../policies/mcp-and-deploy.md)
23
+ 6. [.cursor/policies/minimal-complexity.md](../../../policies/minimal-complexity.md) — **required for create / update / fix**
22
24
 
23
25
  ## Minimal complexity (create / update / fix)
24
26
 
@@ -17,7 +17,7 @@ Read [_dispatch-utils.md](../_dispatch-utils.md) first.
17
17
  3. **load_inventory** — when domain slug maps to inventory
18
18
  4. **object_skills** — from graph `object_skills.<object>`
19
19
  5. [check](../../check/SKILL.md) — swarm per check skill
20
- 6. **contract_checks** — run project test commands from domain inventory when present; for `@ludecker/aaac` package maintenance use `pnpm --filter @ludecker/aaac test` and `test:e2e`
20
+ 6. **contract_checks** — run test commands from domain inventory or `project.config.json` when present
21
21
  7. [reporting](../../reporting/SKILL.md) — **Answer** (yes/no/partial) then **How**
22
22
 
23
23
  No code changes. For test runs use `test-*`; for fixes use `fix-*`.
@@ -23,9 +23,11 @@ failure_conditions:
23
23
  - skip domain inventory when slug resolves to inventory file
24
24
  dependencies:
25
25
  skills: [discovery, planning, execution, testing, verification, reporting]
26
- policies: [master-rules, implementation, mcp-and-deploy]
26
+ policies: [master-rules, project-context, ui-design, implementation, mcp-and-deploy]
27
27
  docs:
28
28
  - docs/master_rules.md
29
+ - docs/ui_design.md
30
+ - docs/project_context.md
29
31
  - docs/architecture.md
30
32
  - docs/design_system.md
31
33
  verification:
@@ -57,7 +57,7 @@ AAAC generates ~130 commands from **8 verbs × 12 objects**:
57
57
  Install copies everything you need. Open the project in Cursor and run commands.
58
58
 
59
59
  - ~130 slash commands and the full shared pipeline (discover → plan → execute → verify → report)
60
- - Generic `master_rules.md` and `architecture.md` in your docs folder — **already filled in**, not empty stubs
60
+ - Generic `master_rules.md`, `ui_design.md`, `project_context.md`, and `architecture.md` in your docs folder — **already filled in**, not empty stubs
61
61
  - Hook scripts and Run lifecycle under `.cursor/`
62
62
  - Generic capability registry (shared skills only)
63
63
  - **No** project domains required; **no** app build gate until you opt in (`verify.enabled: false` in `project.config.json`)
@@ -66,7 +66,7 @@ You do **not** need to enable hooks manually, write rules, add domains, or confi
66
66
 
67
67
  ### Optional — when you want more (any stack)
68
68
 
69
- 1. Replace or extend `docs/master_rules.md` and `docs/architecture.md` with team-specific detail
69
+ 1. Fill in `docs/project_context.md` with your repo layout and SSOT anchors; extend `docs/master_rules.md` and `docs/architecture.md` when needed
70
70
  2. Add `domains/<slug>/update/` (orchestrator + inventory) — see Part 2
71
71
  3. Extend `graph.project.yaml` with resolvers and project skills
72
72
  4. Enable verify in `project.config.json` when you have a web app to gate: