@aviaratech/ai-delivery 0.3.43 → 0.3.44

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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/agentReadiness.test.js +12 -0
  3. package/dist/agentReadiness.test.js.map +2 -2
  4. package/dist/cli.js +2 -1
  5. package/dist/cli.js.map +2 -2
  6. package/dist/directoryIndependent.test.js +22 -3
  7. package/dist/directoryIndependent.test.js.map +3 -3
  8. package/dist/dispatch.js.map +2 -2
  9. package/dist/fixtures/builderReady.d.ts +2 -0
  10. package/dist/fixtures/builderReady.js +2 -0
  11. package/dist/fixtures/builderReady.js.map +2 -2
  12. package/dist/fixtures/inertTarget.d.ts +7 -0
  13. package/dist/fixtures/inertTarget.js +5 -0
  14. package/dist/fixtures/inertTarget.js.map +2 -2
  15. package/dist/fixtures/issue63.d.ts +3 -0
  16. package/dist/issue.d.ts +21 -1
  17. package/dist/issue.js +100 -12
  18. package/dist/issue.js.map +2 -2
  19. package/dist/issueBlockerGuard.test.js +11 -0
  20. package/dist/issueBlockerGuard.test.js.map +2 -2
  21. package/dist/issueContract.d.ts +7 -0
  22. package/dist/issueContract.js +56 -9
  23. package/dist/issueContract.js.map +2 -2
  24. package/dist/issueContract.test.d.ts +1 -0
  25. package/dist/issueContract.test.js +66 -4
  26. package/dist/issueContract.test.js.map +2 -2
  27. package/dist/issueIntake.test.js +17 -0
  28. package/dist/issueIntake.test.js.map +2 -2
  29. package/dist/issueJournal.d.ts +13 -9
  30. package/dist/issueJournal.js +14 -10
  31. package/dist/issueJournal.js.map +2 -2
  32. package/dist/issueJournal.test.js +11 -8
  33. package/dist/issueJournal.test.js.map +2 -2
  34. package/dist/issueTracking.test.js +135 -2
  35. package/dist/issueTracking.test.js.map +3 -3
  36. package/dist/mcp/index.js +10 -3
  37. package/dist/mcp/index.js.map +2 -2
  38. package/dist/mcp/tools.d.ts +39 -25
  39. package/dist/mcp/tools.js +23 -5
  40. package/dist/mcp/tools.js.map +2 -2
  41. package/dist/readView.d.ts +2 -0
  42. package/dist/readView.js +1 -1
  43. package/dist/readView.js.map +2 -2
  44. package/dist/releaseReconciliation.test.js +20 -6
  45. package/dist/releaseReconciliation.test.js.map +2 -2
  46. package/package.json +1 -1
  47. package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
  48. package/plugins/ai-delivery/plugin.json +1 -1
  49. package/plugins/ai-delivery/runtime/dist/cli.js +138 -112
  50. package/plugins/ai-delivery/runtime/package.json +1 -1
  51. package/plugins/ai-delivery/skills/ticket-design/SKILL.md +11 -10
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaratech/ai-delivery",
3
- "version": "0.3.43",
3
+ "version": "0.3.44",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "ai-delivery": "./dist/cli.js"
@@ -5,23 +5,24 @@ description: Use before a Ready issue_create, or when slicing a design into tick
5
5
 
6
6
  # Design a builder-ready issue
7
7
 
8
- A builder who reads only the issue must finish without asking. Work through these in order.
8
+ A builder who reads only the issue must finish without asking. Work in order.
9
9
 
10
- 1. **Start from the design.** Write each rule as an acceptance criterion with `behavior` and `verifiedBy`. Give each one examples (input → expected), including one failure (late, empty, invalid, restart). An open question means a draft, not Ready.
11
- 2. **Extend, don't fork.** Name in `extends` the architecture decision or existing owner the ticket uses or extends. If the change would add a second path beside an existing engine or owner, redesign it or fold it into that owner first.
12
- 3. **Decide.** Record each choice a builder would otherwise ask about as a decision: shape, names, failure behavior, the invariant it implements.
13
- 4. **Surface.** List every path with its change and exact signatures, copied from merged code. The surface is closed: the builder stops and asks before touching anything else.
10
+ 1. **Start from the design.** Write each rule as an acceptance criterion with `behavior` and `verifiedBy`. Give each examples (input → expected), including one failure. An open question means a draft, not Ready.
11
+ 2. **Extend, don't fork.** Name in `extends` the decision or owner the ticket extends. If it would add a second path beside an owner, fold it into that owner first. List each search for earlier work in `priorWork` with its finding, or "none found".
12
+ 3. **Decide.** Record each choice a builder would ask about: shape, names, failure behavior, invariants.
13
+ 4. **Surface.** List every path with its change and exact signatures, copied from merged code. The surface is closed: the builder asks before touching more.
14
14
  5. **Fences.** Name the tempting neighbors and each shared file's owner.
15
15
  6. **Proof.** List commands in run order, focused first.
16
- 7. **Size.** Over 5 points or 6 paths, split into tickets that merge in order (`blockedBy`). Points run 1–8; 13 means split.
17
- 8. **Tier.** Default to standard. Use frontier only for a new state machine, concurrency or recovery logic, risk semantics, or a refactor no parity check can prove.
18
- 9. **Type and Priority.** Set both; Priority goes in the tool's `priority` argument. A Bug also needs steps, expected, actual, reproducibility, environment and a regression criterion.
19
- 10. **Self-check.** Could a builder finish without asking, and without adding a second way to do something that already exists? Then create it, and fix any refusal by its `code`. To capture an idea now, pass `draft: true`.
16
+ 7. **Size.** Over 5 points or 6 paths, split into tickets that merge in order (`blockedBy`). Keep the contract (outcome, surface, acceptance, proof, prior work) to 400 words.
17
+ 8. **Evidence.** Put evidence on the issue as a comment or artifact link, never a local path.
18
+ 9. **Tier.** Default to standard; frontier only for a new state machine, concurrency or recovery logic, risk semantics, or a refactor no parity check can prove.
19
+ 10. **Type and Priority.** Set both; Priority goes in the `priority` argument. A Bug needs steps, expected, actual, reproducibility, environment and a regression criterion.
20
+ 11. **Self-check.** Could a builder finish without asking or adding a second way to do something? Then create it; fix refusals by `code`. To capture an idea, pass `draft: true`.
20
21
 
21
22
  Ready `/owned/issue.json`:
22
23
 
23
24
  ```json
24
- {"title":"Reject malformed widget identifiers before persistence","issueType":"Task","points":2,"problem":"Malformed identifiers reach widget persistence.","outcome":"saveWidget refuses malformed identifiers and writes nothing.","builder":{"tier":"standard"},"extends":["src/widget.ts saveWidget (the one widget write path)"],"decisions":["Valid id: ^w-[0-9a-f]{8}$. Refuse with InvalidWidgetId; never trim or coerce."],"acceptanceCriteria":[{"behavior":"saveWidget rejects a malformed id before any store call","verifiedBy":"src/widget.test.ts","examples":[{"input":"id 'w-0a1b2c3d'","expected":"one store.put"},{"input":"id ' w-0A1B2C3D'","expected":"InvalidWidgetId, zero store calls","failure":true}]}],"surface":[{"path":"src/widget.ts","change":"edit","signatures":["export function saveWidget(store: Store, w: Widget): void"]}],"fences":["src/store.ts (storage owner)"],"proof":["npx vitest run src/widget.test.ts"],"outOfScope":["Migrating stored ids"],"openQuestions":[],"draft":false}
25
+ {"title":"Reject malformed widget identifiers before persistence","issueType":"Task","points":2,"problem":"Malformed identifiers reach widget persistence.","outcome":"saveWidget refuses malformed identifiers and writes nothing.","builder":{"tier":"standard"},"extends":["src/widget.ts saveWidget (the one widget write path)"],"priorWork":["none found: closed issues 'widget id'"],"decisions":["Valid id: ^w-[0-9a-f]{8}$. Refuse with InvalidWidgetId; never trim or coerce."],"acceptanceCriteria":[{"behavior":"saveWidget rejects a malformed id before any store call","verifiedBy":"src/widget.test.ts","examples":[{"input":"id 'w-0a1b2c3d'","expected":"one store.put"},{"input":"id ' w-0A1B2C3D'","expected":"InvalidWidgetId, zero store calls","failure":true}]}],"surface":[{"path":"src/widget.ts","change":"edit","signatures":["export function saveWidget(store: Store, w: Widget): void"]}],"fences":["src/store.ts (storage owner)"],"proof":["npx vitest run src/widget.test.ts"],"outOfScope":["Migrating stored ids"],"openQuestions":[],"draft":false}
25
26
  ```
26
27
 
27
28
  ```sh