paqad-ai 1.87.0 → 1.89.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/cli/index.js +1358 -1002
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/feature-evidence/adoption.d.ts +8 -1
  5. package/dist/feature-evidence/adoption.js +13 -1
  6. package/dist/feature-evidence/adoption.js.map +1 -1
  7. package/dist/index.d.ts +109 -40
  8. package/dist/index.js +1191 -839
  9. package/dist/index.js.map +1 -1
  10. package/dist/kernel/gate.d.ts +7 -0
  11. package/dist/kernel/gate.js +50 -14
  12. package/dist/kernel/gate.js.map +1 -1
  13. package/dist/rule-scripts/index.js +9 -1
  14. package/dist/rule-scripts/index.js.map +1 -1
  15. package/dist/stage-evidence/live-writer.d.ts +24 -1
  16. package/dist/stage-evidence/live-writer.js +37 -2
  17. package/dist/stage-evidence/live-writer.js.map +1 -1
  18. package/dist/stage-evidence/marker-parse.js +20 -2
  19. package/dist/stage-evidence/marker-parse.js.map +1 -1
  20. package/dist/stage-evidence/narration.js +5 -1
  21. package/dist/stage-evidence/narration.js.map +1 -1
  22. package/dist/stage-isolation/subagent-completion.d.ts +47 -0
  23. package/dist/stage-isolation/subagent-completion.js +1975 -0
  24. package/dist/stage-isolation/subagent-completion.js.map +1 -0
  25. package/package.json +4 -4
  26. package/runtime/AGENT-ROUTER.md +14 -1
  27. package/runtime/hooks/agent-entry-gate.mjs +49 -6
  28. package/runtime/hooks/agent-entry-prompt-gate.mjs +57 -28
  29. package/runtime/hooks/agent-entry-session-start.mjs +4 -0
  30. package/runtime/hooks/capability-gate.mjs +11 -2
  31. package/runtime/hooks/lib/agent-entry-sentinel.mjs +81 -4
  32. package/runtime/hooks/lib/context-seam-emit.mjs +23 -2
  33. package/runtime/hooks/lib/edit-targets.mjs +55 -0
  34. package/runtime/hooks/lib/transcript.mjs +42 -6
  35. package/runtime/hooks/stage-agent-completion.mjs +78 -0
  36. package/runtime/hooks/stage-marker-parse.mjs +20 -14
  37. package/runtime/hooks/stage-writer.mjs +27 -22
  38. package/runtime/hooks/verification-completion.mjs +22 -12
  39. package/runtime/hooks/verification-record.mjs +21 -54
  40. package/runtime/templates/stage-agents/claude.md.hbs +8 -0
  41. package/runtime/templates/stage-agents/codex.toml.hbs +6 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # paqad-ai
2
2
 
3
+ ## 1.89.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e6c3737: feat(#567): run each feature-development stage in a fresh subagent, with the evidence bundle as shared memory
8
+
9
+ Stage isolation is core-engine behavior for Claude Code and Codex — there is no config knob.
10
+ On the graduated and full lanes, each mandatory feature-development stage runs in its own host
11
+ subagent seeded with the paqad contract, the previous pillar artifact, and its stage
12
+ instructions; the main chat stays a lean orchestrator that routes, narrates, asks the
13
+ decision-pause questions, and speaks the receipt. Nothing is compacted because nothing
14
+ accumulates — later stages no longer re-carry earlier stages' history, so input tokens drop on
15
+ every graduated and full-lane change. The fast lane and non-subagent hosts run the stages in a
16
+ single context, unchanged.
17
+
18
+ Install and update always render six stage agents per host at user scope (never into a project
19
+ directory), a record-only `SubagentStop` hook appends a per-bundle `context-efficiency.jsonl`
20
+ stream, and the in-flight fork guard refuses to mint a third bundle on one branch. Every stage
21
+ records under the orchestrator's session id, so the bundle keeps one identity — and each stage
22
+ subagent proves its own cold framework load through an `agent_id`-keyed entry sentinel (a
23
+ subagent shares its parent's `session_id`, so the sentinel keys on the distinct `agent_id`).
24
+ paqad's Node code still calls no LLM; the host's subagent runs the stage.
25
+
26
+ ## 1.88.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 1952ac7: feat(codex-cli): wire paqad's full hook set so feature-development stages are enforced on Codex exactly as on Claude Code (#566)
31
+
32
+ Codex CLI moves from the `live-completion-only` tier to `live-pre-and-completion`. One
33
+ native-hook renderer now drives every hook-capable host from a single ordered chain, so
34
+ Codex gets the entry-gate block, the plan-and-spec-before-code block, the decision-pause
35
+ block, the rules-loaded block, the capability kernel, and the spoken completion verdict —
36
+ the same guarantees as Claude Code, wired into `.codex/hooks.json` across all four
37
+ lifecycle events (SessionStart, UserPromptSubmit, PreToolUse `^apply_patch$`, Stop).
38
+
39
+ The same hook scripts run on both hosts; the host is one argv, never a fork. A single
40
+ `edit-targets` extractor parses the edited paths from a Codex `apply_patch` (or a Claude
41
+ `file_path`), so the gates and the stage writer are host-aware without duplicated parsing.
42
+ `paqad-ai doctor` gains a `Codex hooks wired` check, and onboarding with `codex-cli` prints
43
+ the one-time `/hooks` trust step. Gemini stays record-only and every advisory host is
44
+ unchanged; the Claude and Gemini generated configs are byte-identical to before.
45
+
3
46
  ## 1.87.0
4
47
 
5
48
  ### Minor Changes