safeword 0.78.6 → 0.78.7

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 (157) hide show
  1. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  2. package/codex-plugin/hooks.json +5 -5
  3. package/codex-plugin/skills/audit/SKILL.md +5 -5
  4. package/codex-plugin/skills/bdd/SKILL.md +1 -1
  5. package/codex-plugin/skills/bdd/references/PLAN_IMPLEMENTATION.md +2 -2
  6. package/codex-plugin/skills/bdd/references/TDD.md +1 -1
  7. package/codex-plugin/skills/explain/SKILL.md +1 -1
  8. package/codex-plugin/skills/quality-review/SKILL.md +2 -2
  9. package/codex-plugin/skills/retro-filer/SKILL.md +2 -2
  10. package/codex-plugin/skills/review-spec/SKILL.md +2 -2
  11. package/codex-plugin/skills/self-review/SKILL.md +1 -1
  12. package/dist/{architecture-EYI67W6S.js → architecture-HZWCT732.js} +4 -4
  13. package/dist/{architecture-document-POY2JD6A.js → architecture-document-F4UUBRLN.js} +4 -4
  14. package/dist/{architecture-monorepo-QHE76WMY.js → architecture-monorepo-JTKQ334X.js} +2 -2
  15. package/dist/{boundary-WSADIER3.js → boundary-D3EGHD5C.js} +25 -28
  16. package/dist/boundary-D3EGHD5C.js.map +1 -0
  17. package/dist/{chunk-BZWO3BVD.js → chunk-34YQZWO5.js} +2 -2
  18. package/dist/{chunk-5VNZBVCI.js → chunk-53IH5FTG.js} +39 -3
  19. package/dist/chunk-53IH5FTG.js.map +1 -0
  20. package/dist/{chunk-3OKZ3X4O.js → chunk-C6PKCGYG.js} +3 -3
  21. package/dist/{chunk-HACUY7Y5.js → chunk-EUINNZUT.js} +2 -2
  22. package/dist/{chunk-HACUY7Y5.js.map → chunk-EUINNZUT.js.map} +1 -1
  23. package/dist/{chunk-6SAAJTBH.js → chunk-EWVG6UWA.js} +2 -2
  24. package/dist/{chunk-2AI2HQ7L.js → chunk-HFWTSV3C.js} +4 -4
  25. package/dist/{chunk-O6CZUNZM.js → chunk-I6QUGHP4.js} +3 -3
  26. package/dist/{chunk-HFSC7Z5R.js → chunk-MNV7IYZI.js} +16 -7
  27. package/dist/{chunk-HFSC7Z5R.js.map → chunk-MNV7IYZI.js.map} +1 -1
  28. package/dist/{chunk-VJUPD7JI.js → chunk-MV4KAM7C.js} +2 -2
  29. package/dist/{chunk-RVDXBHUG.js → chunk-MVNK7U5P.js} +13 -1
  30. package/dist/chunk-MVNK7U5P.js.map +1 -0
  31. package/dist/{chunk-MABDUP6D.js → chunk-OXEAZ2SO.js} +4 -4
  32. package/dist/{chunk-F7P4OBBC.js → chunk-REREB3F3.js} +2 -2
  33. package/dist/{chunk-2XR7J5WL.js → chunk-XGB3M6J4.js} +2 -2
  34. package/dist/chunk-XU5OY4UX.js +52 -0
  35. package/dist/chunk-XU5OY4UX.js.map +1 -0
  36. package/dist/{chunk-MVFHTUQ3.js → chunk-YIMN3JBA.js} +2 -2
  37. package/dist/{cleanup-OHREIPHP.js → cleanup-NFU4TLOW.js} +2 -2
  38. package/dist/{cleanup-command-7VIOIVYQ.js → cleanup-command-T2AP5AYU.js} +2 -2
  39. package/dist/cli.js +119 -67
  40. package/dist/cli.js.map +1 -1
  41. package/dist/{clients-A3J24PUD.js → clients-2MLVXX5D.js} +2 -2
  42. package/dist/{codex-bootstrap-AMKZKL7W.js → codex-bootstrap-KETSXOET.js} +7 -7
  43. package/dist/{codex-hook-54PI57SW.js → codex-hook-SSGQOIUL.js} +5 -5
  44. package/dist/{codify-L3TMN33S.js → codify-J6SGU2U5.js} +4 -4
  45. package/dist/{commands-Q6EI2OQV.js → commands-DZDEK2TF.js} +17 -17
  46. package/dist/{config-6VMQBZG7.js → config-DDV4JM2U.js} +2 -2
  47. package/dist/{configured-paths-46JFU2QD.js → configured-paths-JIVRWVUT.js} +7 -3
  48. package/dist/{contract-VGEZQMHA.js → contract-RRWILDE4.js} +2 -2
  49. package/dist/{coordinator-J6P7QRCZ.js → coordinator-4G6PIWX5.js} +96 -6
  50. package/dist/coordinator-4G6PIWX5.js.map +1 -0
  51. package/dist/corpus-T3USVCRH.js +15 -0
  52. package/dist/{doctor-IPPAQE2B.js → doctor-URGPEWKB.js} +10 -10
  53. package/dist/drain-retro-spool-K6LILQXL.js +80 -0
  54. package/dist/drain-retro-spool-K6LILQXL.js.map +1 -0
  55. package/dist/{feature-directories-APLFXF4B.js → feature-directories-BXDAPSYF.js} +4 -4
  56. package/dist/{finalization-OC6CL7HS.js → finalization-NOXTO236.js} +2 -2
  57. package/dist/{gh-cli-TID7W2BQ.js → gh-cli-RMMYG5LT.js} +2 -2
  58. package/dist/{github-rest-DKX7CH4A.js → github-rest-PVREXJ4D.js} +2 -2
  59. package/dist/index.js +1 -1
  60. package/dist/{job-F6V67VEO.js → job-5BJDGCLJ.js} +2 -2
  61. package/dist/{learning-sync-XS77XE4T.js → learning-sync-CYHPL7NE.js} +3 -3
  62. package/dist/{legacy-global-guidance-RHPESBI6.js → legacy-global-guidance-7YABLBWO.js} +2 -2
  63. package/dist/{lint-gherkin-L4NSBOEG.js → lint-gherkin-LXRAXUNB.js} +4 -4
  64. package/dist/namespace-root-LMXTCF3U.js +49 -0
  65. package/dist/namespace-root-LMXTCF3U.js.map +1 -0
  66. package/dist/{operations-6II5G2QM.js → operations-YSOXEY2L.js} +7 -7
  67. package/dist/{output-56LB2BSK.js → output-7KI2Y4AG.js} +2 -2
  68. package/dist/{packet-ODPLXYD2.js → packet-TOXQSAZI.js} +2 -2
  69. package/dist/presets/typescript/index.js +1 -1
  70. package/dist/{profile-US32OF6J.js → profile-YTHLD57Q.js} +2 -2
  71. package/dist/{prompt-5ZDHWYE5.js → prompt-CYAC2DNB.js} +2 -2
  72. package/dist/{remove-CXZGMTE6.js → remove-LT7OUT2W.js} +6 -6
  73. package/dist/{retro-KSGI53CI.js → retro-Q3TUH44G.js} +15 -15
  74. package/dist/{retro-draft-spool-HT4EFCZR.js → retro-draft-spool-SC4LIHD4.js} +2 -2
  75. package/dist/retro-drain-VDXR7P5P.js +75 -0
  76. package/dist/retro-drain-VDXR7P5P.js.map +1 -0
  77. package/dist/{retro-extract-QLVKJI4Q.js → retro-extract-MJASC7A6.js} +2 -2
  78. package/dist/review-knowledge-22LG7REZ.js +54 -0
  79. package/dist/review-knowledge-22LG7REZ.js.map +1 -0
  80. package/dist/{review-pr-XKYDGBWE.js → review-pr-KOG44DAD.js} +2 -2
  81. package/dist/{review-pr-publication-N2K73Z3I.js → review-pr-publication-76J7YOGV.js} +2 -2
  82. package/dist/{run-FXER5EE7.js → run-GLOA5YBJ.js} +3 -3
  83. package/dist/{self-report-JCIK3224.js → self-report-VJ55TAFD.js} +2 -2
  84. package/dist/{status-GB4BWGKE.js → status-EOULVBDE.js} +2 -2
  85. package/dist/{status-S6MDXBPT.js → status-ZONE6Q2N.js} +10 -10
  86. package/dist/{sync-config-PZFOXXFJ.js → sync-config-FISZDWMF.js} +2 -2
  87. package/dist/{sync-tracker-S7P4XD6Z.js → sync-tracker-LJFGIH75.js} +5 -5
  88. package/dist/{test-execution-7NLV6VDF.js → test-execution-BKSDVBWE.js} +3 -3
  89. package/dist/{test-plan-WTSBM3EL.js → test-plan-VWLHPY7B.js} +2 -2
  90. package/dist/{ticket-new-4EA7YPXP.js → ticket-new-3LV3SJQU.js} +3 -3
  91. package/dist/{ticket-sync-5X2YAME4.js → ticket-sync-UQ23VYAL.js} +4 -4
  92. package/dist/{tracker-map-2XYCUZMJ.js → tracker-map-5ZSM4QU5.js} +2 -2
  93. package/dist/{tracker-sync-SHYSJZ4R.js → tracker-sync-OH3VT6RL.js} +2 -2
  94. package/package.json +1 -1
  95. package/templates/hooks/lib/drain-retro-spool.ts +84 -38
  96. package/templates/hooks/lib/safeword-context.ts +3 -0
  97. package/dist/boundary-WSADIER3.js.map +0 -1
  98. package/dist/chunk-5VNZBVCI.js.map +0 -1
  99. package/dist/chunk-RVDXBHUG.js.map +0 -1
  100. package/dist/coordinator-J6P7QRCZ.js.map +0 -1
  101. package/dist/corpus-TMBO2ZSE.js +0 -15
  102. /package/dist/{architecture-EYI67W6S.js.map → architecture-HZWCT732.js.map} +0 -0
  103. /package/dist/{architecture-document-POY2JD6A.js.map → architecture-document-F4UUBRLN.js.map} +0 -0
  104. /package/dist/{architecture-monorepo-QHE76WMY.js.map → architecture-monorepo-JTKQ334X.js.map} +0 -0
  105. /package/dist/{chunk-BZWO3BVD.js.map → chunk-34YQZWO5.js.map} +0 -0
  106. /package/dist/{chunk-3OKZ3X4O.js.map → chunk-C6PKCGYG.js.map} +0 -0
  107. /package/dist/{chunk-6SAAJTBH.js.map → chunk-EWVG6UWA.js.map} +0 -0
  108. /package/dist/{chunk-2AI2HQ7L.js.map → chunk-HFWTSV3C.js.map} +0 -0
  109. /package/dist/{chunk-O6CZUNZM.js.map → chunk-I6QUGHP4.js.map} +0 -0
  110. /package/dist/{chunk-VJUPD7JI.js.map → chunk-MV4KAM7C.js.map} +0 -0
  111. /package/dist/{chunk-MABDUP6D.js.map → chunk-OXEAZ2SO.js.map} +0 -0
  112. /package/dist/{chunk-F7P4OBBC.js.map → chunk-REREB3F3.js.map} +0 -0
  113. /package/dist/{chunk-2XR7J5WL.js.map → chunk-XGB3M6J4.js.map} +0 -0
  114. /package/dist/{chunk-MVFHTUQ3.js.map → chunk-YIMN3JBA.js.map} +0 -0
  115. /package/dist/{cleanup-OHREIPHP.js.map → cleanup-NFU4TLOW.js.map} +0 -0
  116. /package/dist/{cleanup-command-7VIOIVYQ.js.map → cleanup-command-T2AP5AYU.js.map} +0 -0
  117. /package/dist/{clients-A3J24PUD.js.map → clients-2MLVXX5D.js.map} +0 -0
  118. /package/dist/{codex-bootstrap-AMKZKL7W.js.map → codex-bootstrap-KETSXOET.js.map} +0 -0
  119. /package/dist/{codex-hook-54PI57SW.js.map → codex-hook-SSGQOIUL.js.map} +0 -0
  120. /package/dist/{codify-L3TMN33S.js.map → codify-J6SGU2U5.js.map} +0 -0
  121. /package/dist/{commands-Q6EI2OQV.js.map → commands-DZDEK2TF.js.map} +0 -0
  122. /package/dist/{config-6VMQBZG7.js.map → config-DDV4JM2U.js.map} +0 -0
  123. /package/dist/{configured-paths-46JFU2QD.js.map → configured-paths-JIVRWVUT.js.map} +0 -0
  124. /package/dist/{contract-VGEZQMHA.js.map → contract-RRWILDE4.js.map} +0 -0
  125. /package/dist/{corpus-TMBO2ZSE.js.map → corpus-T3USVCRH.js.map} +0 -0
  126. /package/dist/{doctor-IPPAQE2B.js.map → doctor-URGPEWKB.js.map} +0 -0
  127. /package/dist/{feature-directories-APLFXF4B.js.map → feature-directories-BXDAPSYF.js.map} +0 -0
  128. /package/dist/{finalization-OC6CL7HS.js.map → finalization-NOXTO236.js.map} +0 -0
  129. /package/dist/{gh-cli-TID7W2BQ.js.map → gh-cli-RMMYG5LT.js.map} +0 -0
  130. /package/dist/{github-rest-DKX7CH4A.js.map → github-rest-PVREXJ4D.js.map} +0 -0
  131. /package/dist/{job-F6V67VEO.js.map → job-5BJDGCLJ.js.map} +0 -0
  132. /package/dist/{learning-sync-XS77XE4T.js.map → learning-sync-CYHPL7NE.js.map} +0 -0
  133. /package/dist/{legacy-global-guidance-RHPESBI6.js.map → legacy-global-guidance-7YABLBWO.js.map} +0 -0
  134. /package/dist/{lint-gherkin-L4NSBOEG.js.map → lint-gherkin-LXRAXUNB.js.map} +0 -0
  135. /package/dist/{operations-6II5G2QM.js.map → operations-YSOXEY2L.js.map} +0 -0
  136. /package/dist/{output-56LB2BSK.js.map → output-7KI2Y4AG.js.map} +0 -0
  137. /package/dist/{packet-ODPLXYD2.js.map → packet-TOXQSAZI.js.map} +0 -0
  138. /package/dist/{profile-US32OF6J.js.map → profile-YTHLD57Q.js.map} +0 -0
  139. /package/dist/{prompt-5ZDHWYE5.js.map → prompt-CYAC2DNB.js.map} +0 -0
  140. /package/dist/{remove-CXZGMTE6.js.map → remove-LT7OUT2W.js.map} +0 -0
  141. /package/dist/{retro-KSGI53CI.js.map → retro-Q3TUH44G.js.map} +0 -0
  142. /package/dist/{retro-draft-spool-HT4EFCZR.js.map → retro-draft-spool-SC4LIHD4.js.map} +0 -0
  143. /package/dist/{retro-extract-QLVKJI4Q.js.map → retro-extract-MJASC7A6.js.map} +0 -0
  144. /package/dist/{review-pr-XKYDGBWE.js.map → review-pr-KOG44DAD.js.map} +0 -0
  145. /package/dist/{review-pr-publication-N2K73Z3I.js.map → review-pr-publication-76J7YOGV.js.map} +0 -0
  146. /package/dist/{run-FXER5EE7.js.map → run-GLOA5YBJ.js.map} +0 -0
  147. /package/dist/{self-report-JCIK3224.js.map → self-report-VJ55TAFD.js.map} +0 -0
  148. /package/dist/{status-GB4BWGKE.js.map → status-EOULVBDE.js.map} +0 -0
  149. /package/dist/{status-S6MDXBPT.js.map → status-ZONE6Q2N.js.map} +0 -0
  150. /package/dist/{sync-config-PZFOXXFJ.js.map → sync-config-FISZDWMF.js.map} +0 -0
  151. /package/dist/{sync-tracker-S7P4XD6Z.js.map → sync-tracker-LJFGIH75.js.map} +0 -0
  152. /package/dist/{test-execution-7NLV6VDF.js.map → test-execution-BKSDVBWE.js.map} +0 -0
  153. /package/dist/{test-plan-WTSBM3EL.js.map → test-plan-VWLHPY7B.js.map} +0 -0
  154. /package/dist/{ticket-new-4EA7YPXP.js.map → ticket-new-3LV3SJQU.js.map} +0 -0
  155. /package/dist/{ticket-sync-5X2YAME4.js.map → ticket-sync-UQ23VYAL.js.map} +0 -0
  156. /package/dist/{tracker-map-2XYCUZMJ.js.map → tracker-map-5ZSM4QU5.js.map} +0 -0
  157. /package/dist/{tracker-sync-SHYSJZ4R.js.map → tracker-sync-OH3VT6RL.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safeword",
3
- "version": "0.78.6",
3
+ "version": "0.78.7",
4
4
  "description": "Safeword workflow guidance and gates for Codex.",
5
5
  "author": {
6
6
  "name": "Arcade AI"
@@ -6,7 +6,7 @@
6
6
  "hooks": [
7
7
  {
8
8
  "type": "command",
9
- "command": "bunx --bun safeword@0.78.6 hook codex session-start --plugin-hook",
9
+ "command": "bunx --bun safeword@0.78.7 hook codex session-start --plugin-hook",
10
10
  "timeout": 120,
11
11
  "statusMessage": "Loading Safeword standing instructions"
12
12
  }
@@ -19,7 +19,7 @@
19
19
  "hooks": [
20
20
  {
21
21
  "type": "command",
22
- "command": "bunx --bun safeword@0.78.6 hook codex pre-tool-use --plugin-hook",
22
+ "command": "bunx --bun safeword@0.78.7 hook codex pre-tool-use --plugin-hook",
23
23
  "timeout": 30,
24
24
  "statusMessage": "Checking Safeword edit gates"
25
25
  }
@@ -32,7 +32,7 @@
32
32
  "hooks": [
33
33
  {
34
34
  "type": "command",
35
- "command": "bunx --bun safeword@0.78.6 hook codex post-tool-use --plugin-hook",
35
+ "command": "bunx --bun safeword@0.78.7 hook codex post-tool-use --plugin-hook",
36
36
  "timeout": 30,
37
37
  "statusMessage": "Surfacing Safeword post-tool context"
38
38
  }
@@ -45,7 +45,7 @@
45
45
  "hooks": [
46
46
  {
47
47
  "type": "command",
48
- "command": "bunx --bun safeword@0.78.6 hook codex user-prompt-submit --plugin-hook",
48
+ "command": "bunx --bun safeword@0.78.7 hook codex user-prompt-submit --plugin-hook",
49
49
  "timeout": 30,
50
50
  "statusMessage": "Checking queued Safeword prompt context"
51
51
  }
@@ -58,7 +58,7 @@
58
58
  "hooks": [
59
59
  {
60
60
  "type": "command",
61
- "command": "bunx --bun safeword@0.78.6 hook codex stop --plugin-hook",
61
+ "command": "bunx --bun safeword@0.78.7 hook codex stop --plugin-hook",
62
62
  "timeout": 600,
63
63
  "statusMessage": "Checking Safeword stop continuation"
64
64
  }
@@ -557,7 +557,7 @@ Changed project learnings in the resolved namespace root's `learnings/*.md` must
557
557
  PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2> /dev/null || pwd)}"
558
558
  source "$PROJECT_DIR/.safeword/hooks/lib/audit-scope.sh"
559
559
  audit_scope_initialize "$PROJECT_DIR"
560
- NS_ROOT="$(bun "$PROJECT_DIR/.safeword/hooks/resolve-namespace-root.ts" "$PROJECT_DIR")"
560
+ NS_ROOT="$(bunx --bun safeword@0.78.7 project namespace-root --cwd "$PROJECT_DIR")"
561
561
 
562
562
  learning_is_in_audit_scope() {
563
563
  [ "$AUDIT_SCOPE_MODE" = "repository" ] && return 0
@@ -717,13 +717,13 @@ audit_scope_initialize "$PROJECT_DIR"
717
717
 
718
718
  # Resolve the namespace root (honors config paths.projectRoot in real runs).
719
719
  # Fall back on directory existence — robust when the resolver hook is absent.
720
- NS_ROOT="$(bun "$PROJECT_DIR/.safeword/hooks/resolve-namespace-root.ts" "$PROJECT_DIR" 2> /dev/null)"
720
+ NS_ROOT="$(bunx --bun safeword@0.78.7 project namespace-root --cwd "$PROJECT_DIR" 2> /dev/null)"
721
721
  [ -d "$NS_ROOT" ] || {
722
722
  if [ -d "$PROJECT_DIR/.project" ]; then NS_ROOT="$PROJECT_DIR/.project"; else NS_ROOT="$PROJECT_DIR/.safeword-project"; fi
723
723
  }
724
- PERSONAS_FILE="$(bun "$PROJECT_DIR/.safeword/hooks/resolve-namespace-root.ts" "$PROJECT_DIR" personas personas.md 2> /dev/null)"
725
- SURFACES_FILE="$(bun "$PROJECT_DIR/.safeword/hooks/resolve-namespace-root.ts" "$PROJECT_DIR" surfaces surfaces.md 2> /dev/null)"
726
- GLOSSARY_FILE="$(bun "$PROJECT_DIR/.safeword/hooks/resolve-namespace-root.ts" "$PROJECT_DIR" glossary glossary.md 2> /dev/null)"
724
+ PERSONAS_FILE="$(bunx --bun safeword@0.78.7 project namespace-root --cwd "$PROJECT_DIR" --key personas 2> /dev/null)"
725
+ SURFACES_FILE="$(bunx --bun safeword@0.78.7 project namespace-root --cwd "$PROJECT_DIR" --key surfaces 2> /dev/null)"
726
+ GLOSSARY_FILE="$(bunx --bun safeword@0.78.7 project namespace-root --cwd "$PROJECT_DIR" --key glossary 2> /dev/null)"
727
727
  [ -n "$PERSONAS_FILE" ] || PERSONAS_FILE="$NS_ROOT/personas.md"
728
728
  [ -n "$SURFACES_FILE" ] || SURFACES_FILE="$NS_ROOT/surfaces.md"
729
729
  [ -n "$GLOSSARY_FILE" ] || GLOSSARY_FILE="$NS_ROOT/glossary.md"
@@ -53,7 +53,7 @@ and ticket scope; its typed verdict decides. Resolve a review-capable Safeword
53
53
  CLI first; source checkouts do not guarantee a bare `safeword` on `PATH`:
54
54
 
55
55
  ```bash
56
- bun .safeword/hooks/run-review.ts review run scenario-gate feature-file ticket-spec [legacy-test-definitions] --agent-handoff --json
56
+ SAFEWORD_REVIEW_PROGRESS=1 bunx --bun safeword@0.78.7 review run scenario-gate feature-file ticket-spec [legacy-test-definitions] --agent-handoff --json
57
57
  ```
58
58
 
59
59
  The coordinator prefers the opposite headless agent and labels a permitted
@@ -82,10 +82,10 @@ Scaffold from `.safeword/templates/impl-plan-template.md` (sibling to `ticket.md
82
82
 
83
83
  ## Exit: review, then (optionally) the user
84
84
 
85
- 1. **Independent review first.** At review time, run `bun .safeword/hooks/resolve-project-knowledge.ts`. Resolve a review-capable Safeword CLI, then invoke the coordinator with the current files identified by the resolver:
85
+ 1. **Independent review first.** At review time, run `bunx --bun safeword@0.78.7 project review-knowledge --json`. Resolve a review-capable Safeword CLI, then invoke the coordinator with the current files identified by the resolver:
86
86
 
87
87
  ```bash
88
- bun .safeword/hooks/run-review.ts review run plan-implementation impl-plan.md spec.md ticket.md feature-file principles-file personas-file surfaces-file --agent-handoff --json
88
+ SAFEWORD_REVIEW_PROGRESS=1 bunx --bun safeword@0.78.7 review run plan-implementation impl-plan.md spec.md ticket.md feature-file principles-file personas-file surfaces-file --agent-handoff --json
89
89
  ```
90
90
 
91
91
  The shared coordinator sends that bounded packet to the opposite headless agent when available; its typed verdict, failure classification, and independence level are authoritative. Only when that typed result is `REVIEW_ROUTES_EXHAUSTED`, invoke `$safeword:finish-review` immediately with the original result and the same accepted targets; return every other result unchanged and do not substitute another private subagent. Give the reviewer the current `spec.md`, configured principles file, configured personas file, and configured surfaces file in that packet. The reviewer refutes the plan: challenge whether it selected the actually applicable principles, whether each concrete consequence follows from its principle, whether the proposed proof can prove that consequence, whether conflicts belong in Known deviations, whether the design fulfills each persona's JTBD, and whether any affected surface was omitted or lacks credible proof. Also check wrong-direction design, missed scenarios, and editorial padding via the deletion test. Fix findings, re-resolve the sources, re-review, then stamp the exit with the returned agent provenance (`write-review-stamp.ts --author-agent "author-agent" --reviewer-agent "actual-reviewer" --independence "independence" --phase plan-implementation`, where the review gate is enabled). Add `--model` only when the executed reviewer reports a verifiable model identifier; the coordinator never invents one. Human handoff happens **only after** this review passes — raw planning output is never presented for approval. Exception, any time: information only the user has (intent, priorities, constraints not in code or docs) routes to the user the moment the gap appears — `$safeword:elicit`.
@@ -196,7 +196,7 @@ Off by default. When `.safeword/config.json` sets `architectureReviewGate: true`
196
196
  2. **A fresh-context review.** Resolve a review-capable Safeword CLI, then run the shared coordinator with only the bounded design evidence:
197
197
 
198
198
  ```bash
199
- bun .safeword/hooks/run-review.ts review run plan-implementation impl-plan.md ticket-spec feature-file --agent-handoff --json
199
+ SAFEWORD_REVIEW_PROGRESS=1 bunx --bun safeword@0.78.7 review run plan-implementation impl-plan.md ticket-spec feature-file --agent-handoff --json
200
200
  ```
201
201
 
202
202
  The shared coordinator prefers the opposite headless agent. Only when its typed result is `REVIEW_ROUTES_EXHAUSTED`, invoke `$safeword:finish-review` with the original result and the same accepted targets; return every other result unchanged. Degraded findings cannot satisfy a required independent-review gate. On an independent pass, stamp it:
@@ -39,7 +39,7 @@ Gather the durable trail safeword already keeps, then narrate it. Run:
39
39
 
40
40
  ```bash
41
41
  PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2> /dev/null || pwd)}"
42
- NS_ROOT="$(bun "$PROJECT_DIR/.safeword/hooks/resolve-namespace-root.ts" "$PROJECT_DIR")"
42
+ NS_ROOT="$(bunx --bun safeword@0.78.7 project namespace-root --cwd "$PROJECT_DIR")"
43
43
  # What you're on now: the last re-entry line names the current ticket + Next
44
44
  tail -3 "$NS_ROOT/re-entry.md" 2> /dev/null
45
45
  # Fallback when re-entry is empty: in_progress tickets (not epics)
@@ -50,7 +50,7 @@ If in a BDD workflow, read the current ticket from `<namespace-root>/tickets/` a
50
50
 
51
51
  ### Project-principle challenge
52
52
 
53
- For a BDD ticket, run `bun .safeword/hooks/resolve-project-knowledge.ts` at the
53
+ For a BDD ticket, run `bunx --bun safeword@0.78.7 project review-knowledge --json` at the
54
54
  start of each pass and read the current `principles`, `personas`, and `surfaces`
55
55
  paths and content it returns (including overrides such as `paths.principles`).
56
56
  Do not substitute labels or intake-era content.
@@ -175,7 +175,7 @@ Each pass:
175
175
  CLI first; source checkouts do not guarantee a bare `safeword` on `PATH`:
176
176
 
177
177
  ```bash
178
- bun .safeword/hooks/run-review.ts review run quality-review changed-file [more-changed-files...] --agent-handoff --json
178
+ SAFEWORD_REVIEW_PROGRESS=1 bunx --bun safeword@0.78.7 review run quality-review changed-file [more-changed-files...] --agent-handoff --json
179
179
  ```
180
180
 
181
181
  A healthy deep review may return `REVIEW_PENDING` after its foreground
@@ -17,7 +17,7 @@ a caller-nominated path. The spool contains sanitized safeword findings for
17
17
  ## Procedure
18
18
 
19
19
  1. Before reading or making any tracker call, run
20
- `bun .safeword/hooks/lib/drain-retro-spool.ts "<spool-path>" --validated-jsonl`.
20
+ `bunx --bun safeword@0.78.7 project retro-drain "<spool-path>" --validated-jsonl`.
21
21
  Use only its JSONL stdout as the filing input. A nonzero exit means validation
22
22
  failed: make no search, comment, or create call, leave the spool unchanged,
23
23
  and report `retro-filer: cannot file - draft validation failed`. If its output
@@ -60,7 +60,7 @@ a caller-nominated path. The spool contains sanitized safeword findings for
60
60
  the draft only when the append succeeded and the exact ack is visible. If the
61
61
  append or verification fails, leave the draft in place.
62
62
  5. Create at most five new issues per run. Drain only by running
63
- `bun .safeword/hooks/lib/drain-retro-spool.ts "<spool-path>"`; never rewrite or
63
+ `bunx --bun safeword@0.78.7 project retro-drain "<spool-path>"`; never rewrite or
64
64
  delete the spool directly. The helper removes only drafts whose valid ack is
65
65
  reader-visible, so unfiled or unacknowledged drafts remain. If tracker write
66
66
  access is unavailable, leave the spool unchanged and report
@@ -16,7 +16,7 @@ Adversarially review a ticket's scenarios: treat them as if you're trying to bre
16
16
  - **Manual re-run** — invoke `$safeword:review-spec` anytime after `define-behavior` (e.g., scenarios changed during implement and you want to re-validate). Allowed on a closed ticket too — a post-hoc audit is still readable.
17
17
 
18
18
  Read the active ticket's `.feature` source first. At review time, run
19
- `bun .safeword/hooks/resolve-project-knowledge.ts` and read the current
19
+ `bunx --bun safeword@0.78.7 project review-knowledge --json` and read the current
20
20
  `principles`, `personas`, and `surfaces` source paths and content it returns, so
21
21
  the review is grounded in project knowledge rather than labels or stale intake
22
22
  context. The resolver honors `paths.principles`, `paths.personas`, and
@@ -35,7 +35,7 @@ Resolve a review-capable Safeword CLI first; source checkouts do not guarantee
35
35
  a bare `safeword` on `PATH`:
36
36
 
37
37
  ```bash
38
- bun .safeword/hooks/run-review.ts review run scenario-gate feature-file ticket-spec [legacy-test-definitions] --agent-handoff --json
38
+ SAFEWORD_REVIEW_PROGRESS=1 bunx --bun safeword@0.78.7 review run scenario-gate feature-file ticket-spec [legacy-test-definitions] --agent-handoff --json
39
39
  ```
40
40
 
41
41
  The coordinator's assigned/actual reviewer, failure classification, and
@@ -45,7 +45,7 @@ installed helper — report it to the user and resolve before retrying.
45
45
  ## Review the spec (do this now, with the stamp written)
46
46
 
47
47
  The stamp records that a review was invoked; the actual scrutiny is yours. At
48
- review time, run `bun .safeword/hooks/resolve-project-knowledge.ts` and use its
48
+ review time, run `bunx --bun safeword@0.78.7 project review-knowledge --json` and use its
49
49
  current `principles`, `personas`, and `surfaces` source paths and content—not
50
50
  labels remembered from intake. These resolve from `paths.principles`,
51
51
  `paths.personas`, and `paths.surfaces` when configured. Read those sources with the active ticket's
@@ -9,14 +9,14 @@ import {
9
9
  planSelfHealProject,
10
10
  selfHealProject,
11
11
  selfHealProjectPreservingProse
12
- } from "./chunk-VJUPD7JI.js";
12
+ } from "./chunk-MV4KAM7C.js";
13
13
  import {
14
14
  GENERATED_ARCHITECTURE_FILENAME,
15
15
  isArchitectureDocumentEnforcementEnabled,
16
16
  readConfiguredPath,
17
17
  resolveGeneratedArchitecturePath,
18
18
  toRepoDirectory
19
- } from "./chunk-RVDXBHUG.js";
19
+ } from "./chunk-MVNK7U5P.js";
20
20
  import {
21
21
  discoverUnreadableWorkspaces,
22
22
  extractMonorepoArchitectureSnapshot
@@ -25,7 +25,7 @@ import {
25
25
  readJson,
26
26
  writeJson
27
27
  } from "./chunk-HF3DXZEA.js";
28
- import "./chunk-HACUY7Y5.js";
28
+ import "./chunk-EUINNZUT.js";
29
29
 
30
30
  // src/commands/architecture.ts
31
31
  import { execFileSync } from "child_process";
@@ -650,4 +650,4 @@ export {
650
650
  architectureStage,
651
651
  architectureStaged
652
652
  };
653
- //# sourceMappingURL=architecture-EYI67W6S.js.map
653
+ //# sourceMappingURL=architecture-HZWCT732.js.map
@@ -7,11 +7,11 @@ import {
7
7
  selfHeal,
8
8
  selfHealProject,
9
9
  selfHealProjectPreservingProse
10
- } from "./chunk-VJUPD7JI.js";
11
- import "./chunk-RVDXBHUG.js";
10
+ } from "./chunk-MV4KAM7C.js";
11
+ import "./chunk-MVNK7U5P.js";
12
12
  import "./chunk-VZ5B2SIO.js";
13
13
  import "./chunk-HF3DXZEA.js";
14
- import "./chunk-HACUY7Y5.js";
14
+ import "./chunk-EUINNZUT.js";
15
15
  export {
16
16
  isSafewordOwned,
17
17
  isWouldChangeAction,
@@ -22,4 +22,4 @@ export {
22
22
  selfHealProject,
23
23
  selfHealProjectPreservingProse
24
24
  };
25
- //# sourceMappingURL=architecture-document-POY2JD6A.js.map
25
+ //# sourceMappingURL=architecture-document-F4UUBRLN.js.map
@@ -5,11 +5,11 @@ import {
5
5
  monorepoFingerprintOf
6
6
  } from "./chunk-VZ5B2SIO.js";
7
7
  import "./chunk-HF3DXZEA.js";
8
- import "./chunk-HACUY7Y5.js";
8
+ import "./chunk-EUINNZUT.js";
9
9
  export {
10
10
  discoverUnreadableWorkspaces,
11
11
  discoverWorkspaces,
12
12
  extractMonorepoArchitectureSnapshot,
13
13
  monorepoFingerprintOf
14
14
  };
15
- //# sourceMappingURL=architecture-monorepo-QHE76WMY.js.map
15
+ //# sourceMappingURL=architecture-monorepo-JTKQ334X.js.map
@@ -1,3 +1,4 @@
1
+ import "./chunk-XU5OY4UX.js";
1
2
  import {
2
3
  detectUnanchoredPhaseTransition,
3
4
  evaluateTicketWrite,
@@ -5,15 +6,15 @@ import {
5
6
  parseImplPlan,
6
7
  scalar
7
8
  } from "./chunk-3D25MSWD.js";
8
- import {
9
- createPhaseAnchorScope
10
- } from "./chunk-BZWO3BVD.js";
11
9
  import {
12
10
  classifyAnnotation,
13
11
  isValidSha,
14
12
  isValidSkipReason,
15
13
  parseCheckboxAnnotation
16
14
  } from "./chunk-Z4ESH6KU.js";
15
+ import {
16
+ createPhaseAnchorScope
17
+ } from "./chunk-34YQZWO5.js";
17
18
  import "./chunk-OKPRQGFG.js";
18
19
  import {
19
20
  warn
@@ -21,16 +22,16 @@ import {
21
22
  import {
22
23
  readConfiguredPathFromContent,
23
24
  ticketDirectoriesForConfiguredRoot
24
- } from "./chunk-RVDXBHUG.js";
25
+ } from "./chunk-MVNK7U5P.js";
25
26
  import {
26
27
  readFileSafe
27
28
  } from "./chunk-HF3DXZEA.js";
28
- import "./chunk-HACUY7Y5.js";
29
+ import "./chunk-EUINNZUT.js";
29
30
 
30
31
  // src/commands/boundary.ts
31
32
  import { execFileSync as execFileSync2 } from "child_process";
32
- import { appendFileSync, existsSync as existsSync5, mkdirSync as mkdirSync2 } from "fs";
33
- import nodePath6 from "path";
33
+ import { appendFileSync, existsSync as existsSync4, mkdirSync as mkdirSync2 } from "fs";
34
+ import nodePath5 from "path";
34
35
  import process2 from "process";
35
36
 
36
37
  // templates/hooks/lib/ledger-git.ts
@@ -108,35 +109,31 @@ function createLedgerShaResolver(cwd) {
108
109
  }
109
110
 
110
111
  // templates/hooks/lib/done-gate.ts
111
- import { existsSync as existsSync4, readFileSync as readFileSync4 } from "fs";
112
- import nodePath5 from "path";
112
+ import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
113
+ import nodePath4 from "path";
113
114
 
114
115
  // templates/hooks/lib/dependency-readiness.ts
115
116
  import { spawnSync } from "child_process";
116
117
  import { createHash } from "crypto";
117
118
  import {
118
- existsSync as existsSync2,
119
+ existsSync,
119
120
  mkdirSync,
120
121
  readdirSync,
121
- readFileSync as readFileSync2,
122
+ readFileSync,
122
123
  realpathSync,
123
124
  rmSync,
124
- statSync as statSync2,
125
+ statSync,
125
126
  writeFileSync
126
127
  } from "fs";
127
- import nodePath3 from "path";
128
-
129
- // templates/hooks/lib/namespace-root.ts
130
- import { existsSync, readFileSync, statSync } from "fs";
131
- import nodePath from "path";
128
+ import nodePath2 from "path";
132
129
 
133
130
  // templates/hooks/lib/shell-segments.ts
134
- import nodePath2 from "path";
131
+ import nodePath from "path";
135
132
 
136
133
  // templates/hooks/lib/test-runner.ts
137
134
  import { execSync, spawnSync as spawnSync2 } from "child_process";
138
- import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
139
- import nodePath4 from "path";
135
+ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
136
+ import nodePath3 from "path";
140
137
  var BDD_TEST_TIMEOUT_MS = 5 * 6e4;
141
138
  var projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
142
139
 
@@ -468,7 +465,7 @@ function findings(reconciliations) {
468
465
  }
469
466
 
470
467
  // src/commands/boundary.ts
471
- var AUDIT_RELATIVE_PATH = nodePath6.join(".safeword", "boundary-audit.jsonl");
468
+ var AUDIT_RELATIVE_PATH = nodePath5.join(".safeword", "boundary-audit.jsonl");
472
469
  var CONFIG_REPO_PATH = ".safeword/config.json";
473
470
  function tryGit(cwd, args) {
474
471
  try {
@@ -545,12 +542,12 @@ function collectChanges(cwd, range, at, ticketsDirectories, configuredFeatures)
545
542
  byTicket.set(ticketPath, change);
546
543
  }
547
544
  for (const change of byTicket.values()) {
548
- const folder = nodePath6.join(cwd, change.anchorScope.ticketPath);
545
+ const folder = nodePath5.join(cwd, change.anchorScope.ticketPath);
549
546
  const staged = change.artifacts.find((a) => a.artifact === "ticket.md")?.proposed;
550
- change.ticketCurrent = staged ?? readFileSafe(nodePath6.join(folder, "ticket.md"));
547
+ change.ticketCurrent = staged ?? readFileSafe(nodePath5.join(folder, "ticket.md"));
551
548
  change.hasLedger = change.artifacts.some(
552
549
  (a) => a.artifact === "test-definitions.md" && a.proposed !== void 0
553
- ) || existsSync5(nodePath6.join(folder, "test-definitions.md"));
550
+ ) || existsSync4(nodePath5.join(folder, "test-definitions.md"));
554
551
  if (at === "push" && change.artifacts.some((a) => a.artifact === "ticket.md")) {
555
552
  const path = `${change.anchorScope.ticketPath}/ticket.md`;
556
553
  change.legalitySteps = legalityStepsFor(cwd, path, range.priorRef);
@@ -568,8 +565,8 @@ function legalityStepsFor(cwd, path, priorReference) {
568
565
  }));
569
566
  }
570
567
  function appendAudit(cwd, entry) {
571
- const auditPath = nodePath6.join(cwd, AUDIT_RELATIVE_PATH);
572
- mkdirSync2(nodePath6.dirname(auditPath), { recursive: true });
568
+ const auditPath = nodePath5.join(cwd, AUDIT_RELATIVE_PATH);
569
+ mkdirSync2(nodePath5.dirname(auditPath), { recursive: true });
573
570
  appendFileSync(auditPath, `${JSON.stringify(entry)}
574
571
  `);
575
572
  }
@@ -617,7 +614,7 @@ function boundary(options) {
617
614
  try {
618
615
  const at = options.at === "push" ? "push" : "commit";
619
616
  const cwd = process2.cwd();
620
- if (existsSync5(nodePath6.join(cwd, ".safeword"))) {
617
+ if (existsSync4(nodePath5.join(cwd, ".safeword"))) {
621
618
  reconcileBoundary(cwd, at);
622
619
  }
623
620
  } catch (error) {
@@ -630,4 +627,4 @@ function boundary(options) {
630
627
  export {
631
628
  boundary
632
629
  };
633
- //# sourceMappingURL=boundary-WSADIER3.js.map
630
+ //# sourceMappingURL=boundary-D3EGHD5C.js.map