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.
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/codex-plugin/hooks.json +5 -5
- package/codex-plugin/skills/audit/SKILL.md +5 -5
- package/codex-plugin/skills/bdd/SKILL.md +1 -1
- package/codex-plugin/skills/bdd/references/PLAN_IMPLEMENTATION.md +2 -2
- package/codex-plugin/skills/bdd/references/TDD.md +1 -1
- package/codex-plugin/skills/explain/SKILL.md +1 -1
- package/codex-plugin/skills/quality-review/SKILL.md +2 -2
- package/codex-plugin/skills/retro-filer/SKILL.md +2 -2
- package/codex-plugin/skills/review-spec/SKILL.md +2 -2
- package/codex-plugin/skills/self-review/SKILL.md +1 -1
- package/dist/{architecture-EYI67W6S.js → architecture-HZWCT732.js} +4 -4
- package/dist/{architecture-document-POY2JD6A.js → architecture-document-F4UUBRLN.js} +4 -4
- package/dist/{architecture-monorepo-QHE76WMY.js → architecture-monorepo-JTKQ334X.js} +2 -2
- package/dist/{boundary-WSADIER3.js → boundary-D3EGHD5C.js} +25 -28
- package/dist/boundary-D3EGHD5C.js.map +1 -0
- package/dist/{chunk-BZWO3BVD.js → chunk-34YQZWO5.js} +2 -2
- package/dist/{chunk-5VNZBVCI.js → chunk-53IH5FTG.js} +39 -3
- package/dist/chunk-53IH5FTG.js.map +1 -0
- package/dist/{chunk-3OKZ3X4O.js → chunk-C6PKCGYG.js} +3 -3
- package/dist/{chunk-HACUY7Y5.js → chunk-EUINNZUT.js} +2 -2
- package/dist/{chunk-HACUY7Y5.js.map → chunk-EUINNZUT.js.map} +1 -1
- package/dist/{chunk-6SAAJTBH.js → chunk-EWVG6UWA.js} +2 -2
- package/dist/{chunk-2AI2HQ7L.js → chunk-HFWTSV3C.js} +4 -4
- package/dist/{chunk-O6CZUNZM.js → chunk-I6QUGHP4.js} +3 -3
- package/dist/{chunk-HFSC7Z5R.js → chunk-MNV7IYZI.js} +16 -7
- package/dist/{chunk-HFSC7Z5R.js.map → chunk-MNV7IYZI.js.map} +1 -1
- package/dist/{chunk-VJUPD7JI.js → chunk-MV4KAM7C.js} +2 -2
- package/dist/{chunk-RVDXBHUG.js → chunk-MVNK7U5P.js} +13 -1
- package/dist/chunk-MVNK7U5P.js.map +1 -0
- package/dist/{chunk-MABDUP6D.js → chunk-OXEAZ2SO.js} +4 -4
- package/dist/{chunk-F7P4OBBC.js → chunk-REREB3F3.js} +2 -2
- package/dist/{chunk-2XR7J5WL.js → chunk-XGB3M6J4.js} +2 -2
- package/dist/chunk-XU5OY4UX.js +52 -0
- package/dist/chunk-XU5OY4UX.js.map +1 -0
- package/dist/{chunk-MVFHTUQ3.js → chunk-YIMN3JBA.js} +2 -2
- package/dist/{cleanup-OHREIPHP.js → cleanup-NFU4TLOW.js} +2 -2
- package/dist/{cleanup-command-7VIOIVYQ.js → cleanup-command-T2AP5AYU.js} +2 -2
- package/dist/cli.js +119 -67
- package/dist/cli.js.map +1 -1
- package/dist/{clients-A3J24PUD.js → clients-2MLVXX5D.js} +2 -2
- package/dist/{codex-bootstrap-AMKZKL7W.js → codex-bootstrap-KETSXOET.js} +7 -7
- package/dist/{codex-hook-54PI57SW.js → codex-hook-SSGQOIUL.js} +5 -5
- package/dist/{codify-L3TMN33S.js → codify-J6SGU2U5.js} +4 -4
- package/dist/{commands-Q6EI2OQV.js → commands-DZDEK2TF.js} +17 -17
- package/dist/{config-6VMQBZG7.js → config-DDV4JM2U.js} +2 -2
- package/dist/{configured-paths-46JFU2QD.js → configured-paths-JIVRWVUT.js} +7 -3
- package/dist/{contract-VGEZQMHA.js → contract-RRWILDE4.js} +2 -2
- package/dist/{coordinator-J6P7QRCZ.js → coordinator-4G6PIWX5.js} +96 -6
- package/dist/coordinator-4G6PIWX5.js.map +1 -0
- package/dist/corpus-T3USVCRH.js +15 -0
- package/dist/{doctor-IPPAQE2B.js → doctor-URGPEWKB.js} +10 -10
- package/dist/drain-retro-spool-K6LILQXL.js +80 -0
- package/dist/drain-retro-spool-K6LILQXL.js.map +1 -0
- package/dist/{feature-directories-APLFXF4B.js → feature-directories-BXDAPSYF.js} +4 -4
- package/dist/{finalization-OC6CL7HS.js → finalization-NOXTO236.js} +2 -2
- package/dist/{gh-cli-TID7W2BQ.js → gh-cli-RMMYG5LT.js} +2 -2
- package/dist/{github-rest-DKX7CH4A.js → github-rest-PVREXJ4D.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{job-F6V67VEO.js → job-5BJDGCLJ.js} +2 -2
- package/dist/{learning-sync-XS77XE4T.js → learning-sync-CYHPL7NE.js} +3 -3
- package/dist/{legacy-global-guidance-RHPESBI6.js → legacy-global-guidance-7YABLBWO.js} +2 -2
- package/dist/{lint-gherkin-L4NSBOEG.js → lint-gherkin-LXRAXUNB.js} +4 -4
- package/dist/namespace-root-LMXTCF3U.js +49 -0
- package/dist/namespace-root-LMXTCF3U.js.map +1 -0
- package/dist/{operations-6II5G2QM.js → operations-YSOXEY2L.js} +7 -7
- package/dist/{output-56LB2BSK.js → output-7KI2Y4AG.js} +2 -2
- package/dist/{packet-ODPLXYD2.js → packet-TOXQSAZI.js} +2 -2
- package/dist/presets/typescript/index.js +1 -1
- package/dist/{profile-US32OF6J.js → profile-YTHLD57Q.js} +2 -2
- package/dist/{prompt-5ZDHWYE5.js → prompt-CYAC2DNB.js} +2 -2
- package/dist/{remove-CXZGMTE6.js → remove-LT7OUT2W.js} +6 -6
- package/dist/{retro-KSGI53CI.js → retro-Q3TUH44G.js} +15 -15
- package/dist/{retro-draft-spool-HT4EFCZR.js → retro-draft-spool-SC4LIHD4.js} +2 -2
- package/dist/retro-drain-VDXR7P5P.js +75 -0
- package/dist/retro-drain-VDXR7P5P.js.map +1 -0
- package/dist/{retro-extract-QLVKJI4Q.js → retro-extract-MJASC7A6.js} +2 -2
- package/dist/review-knowledge-22LG7REZ.js +54 -0
- package/dist/review-knowledge-22LG7REZ.js.map +1 -0
- package/dist/{review-pr-XKYDGBWE.js → review-pr-KOG44DAD.js} +2 -2
- package/dist/{review-pr-publication-N2K73Z3I.js → review-pr-publication-76J7YOGV.js} +2 -2
- package/dist/{run-FXER5EE7.js → run-GLOA5YBJ.js} +3 -3
- package/dist/{self-report-JCIK3224.js → self-report-VJ55TAFD.js} +2 -2
- package/dist/{status-GB4BWGKE.js → status-EOULVBDE.js} +2 -2
- package/dist/{status-S6MDXBPT.js → status-ZONE6Q2N.js} +10 -10
- package/dist/{sync-config-PZFOXXFJ.js → sync-config-FISZDWMF.js} +2 -2
- package/dist/{sync-tracker-S7P4XD6Z.js → sync-tracker-LJFGIH75.js} +5 -5
- package/dist/{test-execution-7NLV6VDF.js → test-execution-BKSDVBWE.js} +3 -3
- package/dist/{test-plan-WTSBM3EL.js → test-plan-VWLHPY7B.js} +2 -2
- package/dist/{ticket-new-4EA7YPXP.js → ticket-new-3LV3SJQU.js} +3 -3
- package/dist/{ticket-sync-5X2YAME4.js → ticket-sync-UQ23VYAL.js} +4 -4
- package/dist/{tracker-map-2XYCUZMJ.js → tracker-map-5ZSM4QU5.js} +2 -2
- package/dist/{tracker-sync-SHYSJZ4R.js → tracker-sync-OH3VT6RL.js} +2 -2
- package/package.json +1 -1
- package/templates/hooks/lib/drain-retro-spool.ts +84 -38
- package/templates/hooks/lib/safeword-context.ts +3 -0
- package/dist/boundary-WSADIER3.js.map +0 -1
- package/dist/chunk-5VNZBVCI.js.map +0 -1
- package/dist/chunk-RVDXBHUG.js.map +0 -1
- package/dist/coordinator-J6P7QRCZ.js.map +0 -1
- package/dist/corpus-TMBO2ZSE.js +0 -15
- /package/dist/{architecture-EYI67W6S.js.map → architecture-HZWCT732.js.map} +0 -0
- /package/dist/{architecture-document-POY2JD6A.js.map → architecture-document-F4UUBRLN.js.map} +0 -0
- /package/dist/{architecture-monorepo-QHE76WMY.js.map → architecture-monorepo-JTKQ334X.js.map} +0 -0
- /package/dist/{chunk-BZWO3BVD.js.map → chunk-34YQZWO5.js.map} +0 -0
- /package/dist/{chunk-3OKZ3X4O.js.map → chunk-C6PKCGYG.js.map} +0 -0
- /package/dist/{chunk-6SAAJTBH.js.map → chunk-EWVG6UWA.js.map} +0 -0
- /package/dist/{chunk-2AI2HQ7L.js.map → chunk-HFWTSV3C.js.map} +0 -0
- /package/dist/{chunk-O6CZUNZM.js.map → chunk-I6QUGHP4.js.map} +0 -0
- /package/dist/{chunk-VJUPD7JI.js.map → chunk-MV4KAM7C.js.map} +0 -0
- /package/dist/{chunk-MABDUP6D.js.map → chunk-OXEAZ2SO.js.map} +0 -0
- /package/dist/{chunk-F7P4OBBC.js.map → chunk-REREB3F3.js.map} +0 -0
- /package/dist/{chunk-2XR7J5WL.js.map → chunk-XGB3M6J4.js.map} +0 -0
- /package/dist/{chunk-MVFHTUQ3.js.map → chunk-YIMN3JBA.js.map} +0 -0
- /package/dist/{cleanup-OHREIPHP.js.map → cleanup-NFU4TLOW.js.map} +0 -0
- /package/dist/{cleanup-command-7VIOIVYQ.js.map → cleanup-command-T2AP5AYU.js.map} +0 -0
- /package/dist/{clients-A3J24PUD.js.map → clients-2MLVXX5D.js.map} +0 -0
- /package/dist/{codex-bootstrap-AMKZKL7W.js.map → codex-bootstrap-KETSXOET.js.map} +0 -0
- /package/dist/{codex-hook-54PI57SW.js.map → codex-hook-SSGQOIUL.js.map} +0 -0
- /package/dist/{codify-L3TMN33S.js.map → codify-J6SGU2U5.js.map} +0 -0
- /package/dist/{commands-Q6EI2OQV.js.map → commands-DZDEK2TF.js.map} +0 -0
- /package/dist/{config-6VMQBZG7.js.map → config-DDV4JM2U.js.map} +0 -0
- /package/dist/{configured-paths-46JFU2QD.js.map → configured-paths-JIVRWVUT.js.map} +0 -0
- /package/dist/{contract-VGEZQMHA.js.map → contract-RRWILDE4.js.map} +0 -0
- /package/dist/{corpus-TMBO2ZSE.js.map → corpus-T3USVCRH.js.map} +0 -0
- /package/dist/{doctor-IPPAQE2B.js.map → doctor-URGPEWKB.js.map} +0 -0
- /package/dist/{feature-directories-APLFXF4B.js.map → feature-directories-BXDAPSYF.js.map} +0 -0
- /package/dist/{finalization-OC6CL7HS.js.map → finalization-NOXTO236.js.map} +0 -0
- /package/dist/{gh-cli-TID7W2BQ.js.map → gh-cli-RMMYG5LT.js.map} +0 -0
- /package/dist/{github-rest-DKX7CH4A.js.map → github-rest-PVREXJ4D.js.map} +0 -0
- /package/dist/{job-F6V67VEO.js.map → job-5BJDGCLJ.js.map} +0 -0
- /package/dist/{learning-sync-XS77XE4T.js.map → learning-sync-CYHPL7NE.js.map} +0 -0
- /package/dist/{legacy-global-guidance-RHPESBI6.js.map → legacy-global-guidance-7YABLBWO.js.map} +0 -0
- /package/dist/{lint-gherkin-L4NSBOEG.js.map → lint-gherkin-LXRAXUNB.js.map} +0 -0
- /package/dist/{operations-6II5G2QM.js.map → operations-YSOXEY2L.js.map} +0 -0
- /package/dist/{output-56LB2BSK.js.map → output-7KI2Y4AG.js.map} +0 -0
- /package/dist/{packet-ODPLXYD2.js.map → packet-TOXQSAZI.js.map} +0 -0
- /package/dist/{profile-US32OF6J.js.map → profile-YTHLD57Q.js.map} +0 -0
- /package/dist/{prompt-5ZDHWYE5.js.map → prompt-CYAC2DNB.js.map} +0 -0
- /package/dist/{remove-CXZGMTE6.js.map → remove-LT7OUT2W.js.map} +0 -0
- /package/dist/{retro-KSGI53CI.js.map → retro-Q3TUH44G.js.map} +0 -0
- /package/dist/{retro-draft-spool-HT4EFCZR.js.map → retro-draft-spool-SC4LIHD4.js.map} +0 -0
- /package/dist/{retro-extract-QLVKJI4Q.js.map → retro-extract-MJASC7A6.js.map} +0 -0
- /package/dist/{review-pr-XKYDGBWE.js.map → review-pr-KOG44DAD.js.map} +0 -0
- /package/dist/{review-pr-publication-N2K73Z3I.js.map → review-pr-publication-76J7YOGV.js.map} +0 -0
- /package/dist/{run-FXER5EE7.js.map → run-GLOA5YBJ.js.map} +0 -0
- /package/dist/{self-report-JCIK3224.js.map → self-report-VJ55TAFD.js.map} +0 -0
- /package/dist/{status-GB4BWGKE.js.map → status-EOULVBDE.js.map} +0 -0
- /package/dist/{status-S6MDXBPT.js.map → status-ZONE6Q2N.js.map} +0 -0
- /package/dist/{sync-config-PZFOXXFJ.js.map → sync-config-FISZDWMF.js.map} +0 -0
- /package/dist/{sync-tracker-S7P4XD6Z.js.map → sync-tracker-LJFGIH75.js.map} +0 -0
- /package/dist/{test-execution-7NLV6VDF.js.map → test-execution-BKSDVBWE.js.map} +0 -0
- /package/dist/{test-plan-WTSBM3EL.js.map → test-plan-VWLHPY7B.js.map} +0 -0
- /package/dist/{ticket-new-4EA7YPXP.js.map → ticket-new-3LV3SJQU.js.map} +0 -0
- /package/dist/{ticket-sync-5X2YAME4.js.map → ticket-sync-UQ23VYAL.js.map} +0 -0
- /package/dist/{tracker-map-2XYCUZMJ.js.map → tracker-map-5ZSM4QU5.js.map} +0 -0
- /package/dist/{tracker-sync-SHYSJZ4R.js.map → tracker-sync-OH3VT6RL.js.map} +0 -0
package/codex-plugin/hooks.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "bunx --bun safeword@0.78.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
725
|
-
SURFACES_FILE="$(bun
|
|
726
|
-
GLOSSARY_FILE="$(bun
|
|
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
|
|
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 .
|
|
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
|
|
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
|
|
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
|
|
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 .
|
|
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
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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
|
|
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 .
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
653
|
+
//# sourceMappingURL=architecture-HZWCT732.js.map
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
selfHeal,
|
|
8
8
|
selfHealProject,
|
|
9
9
|
selfHealProjectPreservingProse
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
25
|
+
} from "./chunk-MVNK7U5P.js";
|
|
25
26
|
import {
|
|
26
27
|
readFileSafe
|
|
27
28
|
} from "./chunk-HF3DXZEA.js";
|
|
28
|
-
import "./chunk-
|
|
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
|
|
33
|
-
import
|
|
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
|
|
112
|
-
import
|
|
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
|
|
119
|
+
existsSync,
|
|
119
120
|
mkdirSync,
|
|
120
121
|
readdirSync,
|
|
121
|
-
readFileSync
|
|
122
|
+
readFileSync,
|
|
122
123
|
realpathSync,
|
|
123
124
|
rmSync,
|
|
124
|
-
statSync
|
|
125
|
+
statSync,
|
|
125
126
|
writeFileSync
|
|
126
127
|
} from "fs";
|
|
127
|
-
import
|
|
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
|
|
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
|
|
139
|
-
import
|
|
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 =
|
|
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 =
|
|
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(
|
|
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
|
-
) ||
|
|
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 =
|
|
572
|
-
mkdirSync2(
|
|
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 (
|
|
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-
|
|
630
|
+
//# sourceMappingURL=boundary-D3EGHD5C.js.map
|