safeword 2.0.0-rc.1 → 2.0.1
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/package.json +1 -1
- package/codex-plugin/resources/SAFEWORD.md +24 -68
- package/codex-plugin/runtime/cli.js +29382 -20021
- package/codex-plugin/skills/audit/SKILL.md +31 -15
- package/codex-plugin/skills/bdd/SKILL.md +6 -23
- package/codex-plugin/skills/bdd/references/DISCOVERY.md +78 -58
- package/codex-plugin/skills/bdd/references/PLAN_EXECUTION.md +5 -5
- package/codex-plugin/skills/bdd/references/PLAN_IMPLEMENTATION.md +23 -22
- package/codex-plugin/skills/bdd/references/TDD.md +11 -18
- package/codex-plugin/skills/bdd/references/impl-plan-template.md +23 -0
- package/codex-plugin/skills/cleanup-zombies/SKILL.md +4 -4
- package/codex-plugin/skills/closeout/SKILL.md +2 -2
- package/codex-plugin/skills/explain/SKILL.md +4 -85
- package/codex-plugin/skills/finish-review/SKILL.md +2 -5
- package/codex-plugin/skills/finish-review/references/REVIEWER.md +13 -0
- package/codex-plugin/skills/quality-review/SKILL.md +6 -7
- package/codex-plugin/skills/retro-filer/SKILL.md +2 -2
- package/codex-plugin/skills/review-spec/SKILL.md +7 -8
- package/codex-plugin/skills/self-review/SKILL.md +4 -4
- package/codex-plugin/skills/verify/SKILL.md +23 -7
- package/codex-plugin/templates/SAFEWORD.md +24 -68
- package/codex-plugin/templates/child-spec-template.md +1 -7
- package/codex-plugin/templates/commands/explain.md +4 -87
- package/codex-plugin/templates/cucumber/cucumber.mjs +91 -22
- package/codex-plugin/templates/doc-templates/impl-plan-template.md +23 -0
- package/codex-plugin/templates/glossary-template.md +3 -14
- package/codex-plugin/templates/guides/architecture-guide.md +36 -0
- package/codex-plugin/templates/guides/planning-guide.md +4 -0
- package/codex-plugin/templates/guides/self-report-filing.md +5 -1
- package/codex-plugin/templates/hooks/codex/pre-tool-quality.ts +12 -10
- package/codex-plugin/templates/hooks/codex/stop.ts +89 -6
- package/codex-plugin/templates/hooks/cursor/after-file-edit.ts +1 -1
- package/codex-plugin/templates/hooks/cursor/before-shell-execution.ts +14 -4
- package/codex-plugin/templates/hooks/lib/active-ticket.ts +36 -40
- package/codex-plugin/templates/hooks/lib/auto-upgrade.ts +10 -1
- package/codex-plugin/templates/hooks/lib/branch-staleness.ts +19 -0
- package/codex-plugin/templates/hooks/lib/checkbox-transitions.ts +73 -20
- package/codex-plugin/templates/hooks/lib/closeout-binding.ts +148 -9
- package/codex-plugin/templates/hooks/lib/done-gate.ts +18 -3
- package/codex-plugin/templates/hooks/lib/hierarchy.ts +107 -40
- package/codex-plugin/templates/hooks/lib/host-toolchain.ts +2 -1
- package/codex-plugin/templates/hooks/lib/jsonl-spool.ts +14 -1
- package/codex-plugin/templates/hooks/lib/jtbd.ts +2 -1
- package/codex-plugin/templates/hooks/lib/ledger-git.ts +2 -1
- package/codex-plugin/templates/hooks/lib/lint.ts +259 -93
- package/codex-plugin/templates/hooks/lib/namespace-root.ts +44 -94
- package/codex-plugin/templates/hooks/lib/project-directory.ts +219 -0
- package/codex-plugin/templates/hooks/lib/quality-state.ts +135 -4
- package/codex-plugin/templates/hooks/lib/retro-draft-spool.ts +352 -16
- package/codex-plugin/templates/hooks/lib/retro-filing-gate.ts +6 -5
- package/codex-plugin/templates/hooks/lib/retro-nudge.ts +4 -2
- package/codex-plugin/templates/hooks/lib/retrospective-gate.ts +3 -1
- package/codex-plugin/templates/hooks/lib/review-ledger.ts +25 -73
- package/codex-plugin/templates/hooks/lib/review-receipt.ts +46 -18
- package/codex-plugin/templates/hooks/lib/safeword-cli.ts +89 -37
- package/codex-plugin/templates/hooks/lib/safeword-context.ts +59 -26
- package/codex-plugin/templates/hooks/lib/self-report.ts +13 -2
- package/codex-plugin/templates/hooks/lib/test-runner.ts +127 -18
- package/codex-plugin/templates/hooks/lib/verify-stamp-claims.ts +117 -19
- package/codex-plugin/templates/hooks/lib/work-log-stamp.ts +4 -0
- package/codex-plugin/templates/hooks/post-tool-bypass-warn.ts +13 -8
- package/codex-plugin/templates/hooks/post-tool-dependency-readiness.ts +6 -5
- package/codex-plugin/templates/hooks/post-tool-lint.ts +29 -6
- package/codex-plugin/templates/hooks/post-tool-quality.ts +49 -28
- package/codex-plugin/templates/hooks/post-tool-skill-nudge.ts +12 -3
- package/codex-plugin/templates/hooks/post-tool-sync-learnings.ts +23 -6
- package/codex-plugin/templates/hooks/post-tool-work-log.ts +26 -9
- package/codex-plugin/templates/hooks/pre-tool-architecture-stage.ts +5 -2
- package/codex-plugin/templates/hooks/pre-tool-config-guard.ts +21 -10
- package/codex-plugin/templates/hooks/pre-tool-dependency-readiness.ts +6 -5
- package/codex-plugin/templates/hooks/pre-tool-quality.ts +74 -100
- package/codex-plugin/templates/hooks/pre-tool-stale-main.ts +34 -4
- package/codex-plugin/templates/hooks/prompt-questions.ts +14 -8
- package/codex-plugin/templates/hooks/session-architecture-heal.ts +6 -2
- package/codex-plugin/templates/hooks/session-auto-upgrade.ts +2 -1
- package/codex-plugin/templates/hooks/session-cleanup-quality.ts +2 -1
- package/codex-plugin/templates/hooks/session-codex-start.ts +7 -1
- package/codex-plugin/templates/hooks/session-compact-context.ts +7 -5
- package/codex-plugin/templates/hooks/session-dependency-readiness.ts +2 -1
- package/codex-plugin/templates/hooks/session-lint-check.ts +15 -12
- package/codex-plugin/templates/hooks/session-safeword-context.ts +9 -1
- package/codex-plugin/templates/hooks/session-version.ts +2 -1
- package/codex-plugin/templates/hooks/stop-quality.ts +63 -137
- package/codex-plugin/templates/hooks/stop-self-report.ts +3 -1
- package/codex-plugin/templates/hooks/write-review-stamp.ts +3 -5
- package/codex-plugin/templates/personas-template.md +4 -28
- package/codex-plugin/templates/principles-template.md +2 -16
- package/codex-plugin/templates/scripts/closeout-cleanup.ts +24 -3
- package/codex-plugin/templates/skills/audit/SKILL.md +19 -3
- package/codex-plugin/templates/skills/bdd/DISCOVERY.md +78 -58
- package/codex-plugin/templates/skills/bdd/PLAN_EXECUTION.md +2 -2
- package/codex-plugin/templates/skills/bdd/PLAN_IMPLEMENTATION.md +20 -19
- package/codex-plugin/templates/skills/bdd/SKILL.md +6 -23
- package/codex-plugin/templates/skills/bdd/TDD.md +8 -15
- package/codex-plugin/templates/skills/explain/SKILL.md +4 -85
- package/codex-plugin/templates/skills/finish-review/REVIEWER.md +13 -0
- package/codex-plugin/templates/skills/finish-review/SKILL.md +2 -5
- package/codex-plugin/templates/skills/quality-review/SKILL.md +2 -3
- package/codex-plugin/templates/skills/review-spec/SKILL.md +4 -5
- package/codex-plugin/templates/skills/verify/SKILL.md +20 -4
- package/codex-plugin/templates/spec-template.md +6 -4
- package/codex-plugin/templates/surfaces-template.md +3 -11
- package/codex-plugin/templates/workflows/pr-review-worker.yml +13 -2
- package/codex-plugin/templates/workflows/pr-review.yml +2 -0
- package/codex-plugin/templates/workflows/remote-tests.yml +3 -3
- package/dist/advance-intake-VRH7SBOT.js +451 -0
- package/dist/advance-intake-VRH7SBOT.js.map +1 -0
- package/dist/{architecture-LBZCNFM2.js → architecture-MA5ZKH2L.js} +4 -4
- package/dist/{architecture-document-YPK52C57.js → architecture-document-6GTI7DEC.js} +4 -4
- package/dist/{architecture-monorepo-UZXC4BKW.js → architecture-monorepo-47IBJCHM.js} +2 -2
- package/dist/{audit-scope-TQNJCP5X.js → audit-scope-RVC3UIKL.js} +2 -2
- package/dist/{boundary-6OPBPUMR.js → boundary-R2FSQA3O.js} +14 -13
- package/dist/boundary-R2FSQA3O.js.map +1 -0
- package/dist/chunk-23J6OFGQ.js +80 -0
- package/dist/chunk-23J6OFGQ.js.map +1 -0
- package/dist/{chunk-FCFKPPOO.js → chunk-2AEP2A3X.js} +2 -2
- package/dist/{chunk-JSUW7NZU.js → chunk-2Q5L3X66.js} +6 -1
- package/dist/{chunk-JSUW7NZU.js.map → chunk-2Q5L3X66.js.map} +1 -1
- package/dist/chunk-2RBNR5N6.js +310 -0
- package/dist/chunk-2RBNR5N6.js.map +1 -0
- package/dist/chunk-2XFADGVL.js +408 -0
- package/dist/chunk-2XFADGVL.js.map +1 -0
- package/dist/{chunk-A2PNSHOJ.js → chunk-2XKYDMC4.js} +11 -9
- package/dist/{chunk-A2PNSHOJ.js.map → chunk-2XKYDMC4.js.map} +1 -1
- package/dist/{chunk-WSKUVG2N.js → chunk-3GYYCH56.js} +1 -1
- package/dist/chunk-3GYYCH56.js.map +1 -0
- package/dist/{chunk-GXIITVMR.js → chunk-3WAG34TZ.js} +3 -3
- package/dist/chunk-4OWORIZQ.js +1 -0
- package/dist/{chunk-ORYCHVPO.js → chunk-5BMO36UQ.js} +2 -2
- package/dist/{chunk-4UWLU33F.js → chunk-5LKMUGSR.js} +3 -3
- package/dist/{chunk-AQNN43SS.js → chunk-5OGY52UR.js} +8 -8
- package/dist/{chunk-J2YU6YSK.js → chunk-5R6MFQB2.js} +52 -39
- package/dist/chunk-5R6MFQB2.js.map +1 -0
- package/dist/{chunk-KYS5TK24.js → chunk-5SI7LUUE.js} +1 -1
- package/dist/chunk-5SI7LUUE.js.map +1 -0
- package/dist/chunk-5VGM5HZV.js +84 -0
- package/dist/chunk-5VGM5HZV.js.map +1 -0
- package/dist/{chunk-AY4YDTAF.js → chunk-67HZPHBD.js} +23 -151
- package/dist/chunk-67HZPHBD.js.map +1 -0
- package/dist/chunk-6KEQKE7S.js +71 -0
- package/dist/chunk-6KEQKE7S.js.map +1 -0
- package/dist/{chunk-PAN3FWH3.js → chunk-6P2EPODR.js} +23 -2
- package/dist/chunk-6P2EPODR.js.map +1 -0
- package/dist/{chunk-W6GZF374.js → chunk-6RYZ3FIC.js} +20 -3
- package/dist/chunk-6RYZ3FIC.js.map +1 -0
- package/dist/{chunk-QOIQQY4E.js → chunk-74WNYOJV.js} +19 -2
- package/dist/chunk-74WNYOJV.js.map +1 -0
- package/dist/{chunk-XCFLJUWR.js → chunk-7XRUDQRS.js} +4 -4
- package/dist/{chunk-MWYMNOH3.js → chunk-A3LOI3WI.js} +24 -24
- package/dist/chunk-A3LOI3WI.js.map +1 -0
- package/dist/chunk-AIX2IUN2.js +110 -0
- package/dist/chunk-AIX2IUN2.js.map +1 -0
- package/dist/{chunk-QYRSUQAA.js → chunk-AWZAK7YN.js} +263 -1956
- package/dist/chunk-AWZAK7YN.js.map +1 -0
- package/dist/chunk-B5E6KYHL.js +61 -0
- package/dist/chunk-B5E6KYHL.js.map +1 -0
- package/dist/{chunk-6XAGX2CM.js → chunk-B6W22B4R.js} +2 -2
- package/dist/{chunk-RYDEPCC3.js → chunk-BPVBOSUK.js} +12 -3
- package/dist/chunk-BPVBOSUK.js.map +1 -0
- package/dist/{chunk-D6GTH5CV.js → chunk-BR2A473H.js} +6 -6
- package/dist/{chunk-AABNONVQ.js → chunk-BU6R7KUG.js} +25 -135
- package/dist/chunk-BU6R7KUG.js.map +1 -0
- package/dist/{chunk-ENHNEZW5.js → chunk-CAYU7GGB.js} +57 -15
- package/dist/chunk-CAYU7GGB.js.map +1 -0
- package/dist/{chunk-TWSWBBIY.js → chunk-CK2AEA6I.js} +47 -22
- package/dist/chunk-CK2AEA6I.js.map +1 -0
- package/dist/{chunk-GMGI2PQ2.js → chunk-CZWJCVON.js} +3 -3
- package/dist/{chunk-BQWH3TCN.js → chunk-DA3C5KGM.js} +74 -1
- package/dist/{chunk-BQWH3TCN.js.map → chunk-DA3C5KGM.js.map} +1 -1
- package/dist/chunk-DUIOBRUI.js +19 -0
- package/dist/chunk-DUIOBRUI.js.map +1 -0
- package/dist/{chunk-CDNKNSSZ.js → chunk-E45GGYVJ.js} +10 -7
- package/dist/{chunk-CDNKNSSZ.js.map → chunk-E45GGYVJ.js.map} +1 -1
- package/dist/chunk-ES4A2UCI.js +446 -0
- package/dist/chunk-ES4A2UCI.js.map +1 -0
- package/dist/{chunk-THLEVFEX.js → chunk-EX6SSJJV.js} +8 -2
- package/dist/chunk-EX6SSJJV.js.map +1 -0
- package/dist/chunk-F3KFODOR.js +233 -0
- package/dist/chunk-F3KFODOR.js.map +1 -0
- package/dist/{chunk-UAC7TXXB.js → chunk-FBNBZY5N.js} +4 -4
- package/dist/{chunk-SK6TC4BO.js → chunk-GINKY3L2.js} +11 -2
- package/dist/{chunk-SK6TC4BO.js.map → chunk-GINKY3L2.js.map} +1 -1
- package/dist/{chunk-CQ72THJZ.js → chunk-HBHHTOIE.js} +6 -8
- package/dist/chunk-HBHHTOIE.js.map +1 -0
- package/dist/chunk-HGHCSF5L.js +257 -0
- package/dist/chunk-HGHCSF5L.js.map +1 -0
- package/dist/chunk-HJVM3KIS.js +779 -0
- package/dist/chunk-HJVM3KIS.js.map +1 -0
- package/dist/chunk-HWURYT7B.js +132 -0
- package/dist/chunk-HWURYT7B.js.map +1 -0
- package/dist/{chunk-TQOCRYWI.js → chunk-IPST7IX3.js} +12 -3
- package/dist/chunk-IPST7IX3.js.map +1 -0
- package/dist/{chunk-24ZULBPG.js → chunk-J2YNWL4I.js} +2 -2
- package/dist/{chunk-NNK5XMDV.js → chunk-JAU76PME.js} +24 -5
- package/dist/chunk-JAU76PME.js.map +1 -0
- package/dist/{chunk-PQJYQM6A.js → chunk-JM3HPLCV.js} +6 -13
- package/dist/chunk-JM3HPLCV.js.map +1 -0
- package/dist/chunk-JSGNHBT5.js +548 -0
- package/dist/chunk-JSGNHBT5.js.map +1 -0
- package/dist/{chunk-GSKJWLZJ.js → chunk-K5AK2LWD.js} +27 -25
- package/dist/{chunk-GSKJWLZJ.js.map → chunk-K5AK2LWD.js.map} +1 -1
- package/dist/{chunk-WURZ5YIL.js → chunk-KT2SUO27.js} +2 -2
- package/dist/{chunk-EIBH2KJR.js → chunk-KXUJCCZ4.js} +2 -2
- package/dist/{chunk-45G5RPPT.js → chunk-LG64NKNH.js} +2 -2
- package/dist/{chunk-7YNAFGEZ.js → chunk-LNDPZKXZ.js} +14 -14
- package/dist/{chunk-M6FWIVB4.js → chunk-M3O66RT4.js} +5 -5
- package/dist/{chunk-FY5VV37I.js → chunk-MB4SLMEY.js} +4012 -3695
- package/dist/chunk-MB4SLMEY.js.map +1 -0
- package/dist/{chunk-TUA5P5AO.js → chunk-MN2KBEPY.js} +36 -38
- package/dist/chunk-MN2KBEPY.js.map +1 -0
- package/dist/{chunk-JCBDMQ7E.js → chunk-ND5FNFAS.js} +49 -732
- package/dist/chunk-ND5FNFAS.js.map +1 -0
- package/dist/{chunk-U7H6HR4G.js → chunk-NSMIHGHQ.js} +2 -2
- package/dist/{chunk-74TS7WDB.js → chunk-OMI32J35.js} +5 -3
- package/dist/{chunk-74TS7WDB.js.map → chunk-OMI32J35.js.map} +1 -1
- package/dist/{chunk-Q7T6SA2G.js → chunk-PRUDGHVU.js} +2 -2
- package/dist/{chunk-UFTSWOAH.js → chunk-Q6I3GDWI.js} +1 -1
- package/dist/chunk-Q6I3GDWI.js.map +1 -0
- package/dist/chunk-QRA2BWK3.js +346 -0
- package/dist/chunk-QRA2BWK3.js.map +1 -0
- package/dist/chunk-RPUJV46V.js +177 -0
- package/dist/chunk-RPUJV46V.js.map +1 -0
- package/dist/{chunk-UUAC4DGR.js → chunk-RVH2JEYT.js} +2 -2
- package/dist/{chunk-UCB3QWRT.js → chunk-SPXOJUCD.js} +3 -3
- package/dist/{chunk-METG6IEA.js → chunk-TYTGTLW7.js} +82 -275
- package/dist/chunk-TYTGTLW7.js.map +1 -0
- package/dist/{chunk-F2NLM3VK.js → chunk-USBXMPME.js} +171 -49
- package/dist/chunk-USBXMPME.js.map +1 -0
- package/dist/{chunk-3PIFBQCX.js → chunk-VI7QIYV2.js} +2 -2
- package/dist/{chunk-AQPCAFHA.js → chunk-VIFNFPR3.js} +69 -6
- package/dist/chunk-VIFNFPR3.js.map +1 -0
- package/dist/{chunk-QIA5F7ZT.js → chunk-VRYKPJ67.js} +10 -1
- package/dist/{chunk-QIA5F7ZT.js.map → chunk-VRYKPJ67.js.map} +1 -1
- package/dist/{chunk-FBGA67SW.js → chunk-W4N3WIQN.js} +71 -24
- package/dist/chunk-W4N3WIQN.js.map +1 -0
- package/dist/chunk-WDNLOAYC.js +122 -0
- package/dist/chunk-WDNLOAYC.js.map +1 -0
- package/dist/{chunk-FLNIE65O.js → chunk-WQOGZICC.js} +5 -5
- package/dist/chunk-WQOGZICC.js.map +1 -0
- package/dist/chunk-XLYSG3QG.js +244 -0
- package/dist/chunk-XLYSG3QG.js.map +1 -0
- package/dist/{chunk-MXWJ2WUK.js → chunk-XXTVDM65.js} +3 -3
- package/dist/{chunk-HXETOZKM.js → chunk-YR3S5EBM.js} +2 -2
- package/dist/{chunk-HXETOZKM.js.map → chunk-YR3S5EBM.js.map} +1 -1
- package/dist/{chunk-FKU44SVJ.js → chunk-YV2LFZQ2.js} +2 -2
- package/dist/{cleanup-NKL3PQGE.js → cleanup-P4M7PI57.js} +8 -6
- package/dist/{cleanup-command-NJ2UZ4TC.js → cleanup-command-KEZ3ZQQC.js} +12 -9
- package/dist/{cleanup-command-NJ2UZ4TC.js.map → cleanup-command-KEZ3ZQQC.js.map} +1 -1
- package/dist/cli.js +307 -148
- package/dist/cli.js.map +1 -1
- package/dist/{clients-HOLXFSG4.js → clients-CCQLLS2Q.js} +2 -2
- package/dist/{codex-bootstrap-3EPOSNYR.js → codex-bootstrap-5TX65LTU.js} +18 -13
- package/dist/{codex-bootstrap-3EPOSNYR.js.map → codex-bootstrap-5TX65LTU.js.map} +1 -1
- package/dist/codex-hook-ZO5E2P7C.js +34 -0
- package/dist/{codify-DUQCRGVA.js → codify-XOVEQRN2.js} +5 -5
- package/dist/{coding-authorization-6GCT4Q6F.js → coding-authorization-2AXG5UV4.js} +33 -27
- package/dist/{coding-authorization-6GCT4Q6F.js.map → coding-authorization-2AXG5UV4.js.map} +1 -1
- package/dist/{commands-O5KBWKBD.js → commands-LK77LN4W.js} +65 -35
- package/dist/commands-LK77LN4W.js.map +1 -0
- package/dist/{config-KPGTTHT4.js → config-QU5LGMFQ.js} +2 -2
- package/dist/{configured-paths-CHD5EOGY.js → configured-paths-KVPQMYUH.js} +11 -3
- package/dist/{conformance-O4GZH6PO.js → conformance-4A2AKL3F.js} +5 -5
- package/dist/conformance-4A2AKL3F.js.map +1 -0
- package/dist/contract-ZUZJ2YZU.js +8 -0
- package/dist/coordinator-OYBX2CDJ.js +51 -0
- package/dist/corpus-U2L66YT6.js +15 -0
- package/dist/cursor-O4HIOC2N.js +33 -0
- package/dist/{delivery-checklist-BCSWRUOH.js → delivery-checklist-I2RWJHPE.js} +33 -27
- package/dist/{delivery-checklist-BCSWRUOH.js.map → delivery-checklist-I2RWJHPE.js.map} +1 -1
- package/dist/{doctor-OQ53UWPI.js → doctor-UWM7RTLS.js} +39 -32
- package/dist/{doctor-OQ53UWPI.js.map → doctor-UWM7RTLS.js.map} +1 -1
- package/dist/{drain-retro-spool-SVGQTAR4.js → drain-retro-spool-SAHHI7T5.js} +4 -4
- package/dist/execution-prerequisite-CR6JN5EL.js +58 -0
- package/dist/{feature-directories-YSRWQQU4.js → feature-directories-BB3BALT6.js} +4 -4
- package/dist/{finalization-VKPTPPQ6.js → finalization-UPNHGRPP.js} +11 -9
- package/dist/{gh-cli-BM5WWEWB.js → gh-cli-CYQKT4DX.js} +2 -2
- package/dist/{github-rest-CWGK76CJ.js → github-rest-IFCZ2NCV.js} +8 -6
- package/dist/{github-rest-CWGK76CJ.js.map → github-rest-IFCZ2NCV.js.map} +1 -1
- package/dist/go-lint-7QTODINW.js +446 -0
- package/dist/go-lint-7QTODINW.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -3
- package/dist/{job-HANB2LVB.js → job-R7TSBESS.js} +30 -22
- package/dist/{learning-sync-27OB4ZY4.js → learning-sync-JH65MC4I.js} +3 -3
- package/dist/{legacy-global-guidance-7TIMT53Y.js → legacy-global-guidance-J6FJX2T6.js} +2 -2
- package/dist/{lint-gherkin-QIAXBHZP.js → lint-gherkin-RZWTK7Y3.js} +4 -4
- package/dist/{namespace-root-ZIHDPJQY.js → namespace-root-P6BJFOZG.js} +3 -3
- package/dist/opencode/dispatcher.js +2308 -1478
- package/dist/{operations-XZO6NV3J.js → operations-ARJDTINK.js} +15 -12
- package/dist/{output-ATTQCIAF.js → output-QYSKTALE.js} +2 -2
- package/dist/{packet-SVQP5HNS.js → packet-4YJFXQE7.js} +24 -18
- package/dist/{plan-approval-TZ2URPXW.js → plan-approval-F3OVNHUC.js} +74 -37
- package/dist/plan-approval-F3OVNHUC.js.map +1 -0
- package/dist/{planning-contract-check-Y3GGQPZF.js → planning-contract-check-TGCKXLC7.js} +24 -18
- package/dist/{planning-contract-check-Y3GGQPZF.js.map → planning-contract-check-TGCKXLC7.js.map} +1 -1
- package/dist/{policy-ZCOYGMCM.js → policy-GKHQ33XF.js} +7 -7
- package/dist/{preferences-BJ4LSPL3.js → preferences-X755Q2QO.js} +2 -2
- package/dist/presets/typescript/index.js +3 -3
- package/dist/{profile-B4MHI5CE.js → profile-234EVLS5.js} +7 -4
- package/dist/{profile-IWBN5KQD.js → profile-J2PXYUZF.js} +4 -4
- package/dist/{project-pr-ready-ATSTZSKN.js → project-pr-ready-O37DM3OJ.js} +30 -70
- package/dist/project-pr-ready-O37DM3OJ.js.map +1 -0
- package/dist/{project-runtime-DZFIHE27.js → project-runtime-CWTQZSUO.js} +6 -6
- package/dist/{prompt-T6DGFXQY.js → prompt-RT3MAYIX.js} +2 -2
- package/dist/{public-retros-6UKZLDBL.js → public-retros-IUYMKI2R.js} +2 -2
- package/dist/{record-skill-invocation-5RNAZU2A.js → record-skill-invocation-LIFF6IMA.js} +7 -7
- package/dist/red-execution-JVVZBK2P.js +10 -0
- package/dist/remove-4VE4MJFU.js +27 -0
- package/dist/{retro-3NHOKKXT.js → retro-KIRLELT5.js} +61 -71
- package/dist/retro-KIRLELT5.js.map +1 -0
- package/dist/{retro-draft-spool-TSGWT6DK.js → retro-draft-spool-OSNDK4NB.js} +10 -4
- package/dist/{retro-drain-QOTZKVEP.js → retro-drain-75ADLGAM.js} +3 -3
- package/dist/{retro-extract-IHR4XDWL.js → retro-extract-2FEUPOWZ.js} +4 -4
- package/dist/{retrospective-close-KUDL32SG.js → retrospective-close-36JO7T6J.js} +49 -37
- package/dist/{retrospective-close-KUDL32SG.js.map → retrospective-close-36JO7T6J.js.map} +1 -1
- package/dist/retrospective-electron-close-5W3FPRHH.js +233 -0
- package/dist/retrospective-electron-close-5W3FPRHH.js.map +1 -0
- package/dist/retrospective-electron-gate-A6MCVQ4M.js +70 -0
- package/dist/retrospective-electron-proof-PDV2WIIT.js +13 -0
- package/dist/retrospective-electron-request-YEGNLKFG.js +9 -0
- package/dist/retrospective-gate-3OPZ22OI.js +63 -0
- package/dist/retrospective-history-7SHMM23N.js +17 -0
- package/dist/retrospective-proof-FVAX6NBW.js +32 -0
- package/dist/{review-disposition-MCSCSRKG.js → review-disposition-4SKZBRDU.js} +28 -22
- package/dist/{review-disposition-MCSCSRKG.js.map → review-disposition-4SKZBRDU.js.map} +1 -1
- package/dist/{review-knowledge-4KQLAQPM.js → review-knowledge-VIB7PXSD.js} +4 -4
- package/dist/{review-pr-TTEXFJ2N.js → review-pr-4NLBZPBO.js} +35 -7
- package/dist/review-pr-4NLBZPBO.js.map +1 -0
- package/dist/{review-pr-publication-6IHD3PHK.js → review-pr-publication-UVLTDFP4.js} +5 -5
- package/dist/{review-pr-readiness-ZCTUK7S3.js → review-pr-readiness-2JRMAFS6.js} +2 -2
- package/dist/{route-config-KBFHEMWZ.js → route-config-GPN4CLHP.js} +2 -2
- package/dist/{run-CLOZOGLS.js → run-6JEISWH3.js} +3 -3
- package/dist/schema-Q2XHGHWL.js +27 -0
- package/dist/{self-report-AUEHJMED.js → self-report-HLITAX3V.js} +6 -4
- package/dist/status-IPYVSG2Z.js +75 -0
- package/dist/status-IPYVSG2Z.js.map +1 -0
- package/dist/status-PVPP3257.js +23 -0
- package/dist/status-PVPP3257.js.map +1 -0
- package/dist/{sync-config-35MOGYEZ.js → sync-config-3JGAJ2BS.js} +2 -2
- package/dist/sync-config-3JGAJ2BS.js.map +1 -0
- package/dist/{sync-tracker-X4UYXQVJ.js → sync-tracker-RX5BG2L3.js} +7 -7
- package/dist/{test-execution-OIDAK3SI.js → test-execution-IATNWW5P.js} +12 -7
- package/dist/{test-execution-OIDAK3SI.js.map → test-execution-IATNWW5P.js.map} +1 -1
- package/dist/{test-plan-FLQQA23E.js → test-plan-UNRQ2CYO.js} +5 -4
- package/dist/{test-plan-FLQQA23E.js.map → test-plan-UNRQ2CYO.js.map} +1 -1
- package/dist/{ticket-new-4CALQDBG.js → ticket-new-MFPOUIWC.js} +6 -4
- package/dist/ticket-new-MFPOUIWC.js.map +1 -0
- package/dist/{ticket-reconcile-parent-P644RHN4.js → ticket-reconcile-parent-7KX7ZWDH.js} +4 -4
- package/dist/{ticket-sync-XO5VO3MC.js → ticket-sync-GWUIM7I4.js} +4 -4
- package/dist/ticket-sync-GWUIM7I4.js.map +1 -0
- package/dist/{tracker-map-HA7BU2NQ.js → tracker-map-Z3WKJEKO.js} +2 -2
- package/dist/tracker-map-Z3WKJEKO.js.map +1 -0
- package/dist/{tracker-sync-4FMCMADH.js → tracker-sync-7DBOPZBB.js} +2 -2
- package/dist/tracker-sync-7DBOPZBB.js.map +1 -0
- package/package.json +30 -30
- package/templates/SAFEWORD.md +24 -68
- package/templates/child-spec-template.md +1 -7
- package/templates/commands/explain.md +4 -87
- package/templates/cucumber/cucumber.mjs +91 -22
- package/templates/doc-templates/impl-plan-template.md +23 -0
- package/templates/glossary-template.md +3 -14
- package/templates/guides/architecture-guide.md +36 -0
- package/templates/guides/planning-guide.md +4 -0
- package/templates/guides/self-report-filing.md +5 -1
- package/templates/hooks/codex/pre-tool-quality.ts +12 -10
- package/templates/hooks/codex/stop.ts +89 -6
- package/templates/hooks/cursor/after-file-edit.ts +1 -1
- package/templates/hooks/cursor/before-shell-execution.ts +14 -4
- package/templates/hooks/lib/active-ticket.ts +36 -40
- package/templates/hooks/lib/auto-upgrade.ts +10 -1
- package/templates/hooks/lib/branch-staleness.ts +19 -0
- package/templates/hooks/lib/checkbox-transitions.ts +73 -20
- package/templates/hooks/lib/closeout-binding.ts +148 -9
- package/templates/hooks/lib/done-gate.ts +18 -3
- package/templates/hooks/lib/hierarchy.ts +107 -40
- package/templates/hooks/lib/host-toolchain.ts +2 -1
- package/templates/hooks/lib/jsonl-spool.ts +14 -1
- package/templates/hooks/lib/jtbd.ts +2 -1
- package/templates/hooks/lib/ledger-git.ts +2 -1
- package/templates/hooks/lib/lint.ts +259 -93
- package/templates/hooks/lib/namespace-root.ts +44 -94
- package/templates/hooks/lib/project-directory.ts +219 -0
- package/templates/hooks/lib/quality-state.ts +135 -4
- package/templates/hooks/lib/retro-draft-spool.ts +352 -16
- package/templates/hooks/lib/retro-filing-gate.ts +6 -5
- package/templates/hooks/lib/retro-nudge.ts +4 -2
- package/templates/hooks/lib/retrospective-gate.ts +3 -1
- package/templates/hooks/lib/review-ledger.ts +25 -73
- package/templates/hooks/lib/review-receipt.ts +46 -18
- package/templates/hooks/lib/safeword-cli.ts +89 -37
- package/templates/hooks/lib/safeword-context.ts +59 -26
- package/templates/hooks/lib/self-report.ts +13 -2
- package/templates/hooks/lib/test-runner.ts +127 -18
- package/templates/hooks/lib/verify-stamp-claims.ts +117 -19
- package/templates/hooks/lib/work-log-stamp.ts +4 -0
- package/templates/hooks/post-tool-bypass-warn.ts +13 -8
- package/templates/hooks/post-tool-dependency-readiness.ts +6 -5
- package/templates/hooks/post-tool-lint.ts +29 -6
- package/templates/hooks/post-tool-quality.ts +49 -28
- package/templates/hooks/post-tool-skill-nudge.ts +12 -3
- package/templates/hooks/post-tool-sync-learnings.ts +23 -6
- package/templates/hooks/post-tool-work-log.ts +26 -9
- package/templates/hooks/pre-tool-architecture-stage.ts +5 -2
- package/templates/hooks/pre-tool-config-guard.ts +21 -10
- package/templates/hooks/pre-tool-dependency-readiness.ts +6 -5
- package/templates/hooks/pre-tool-quality.ts +74 -100
- package/templates/hooks/pre-tool-stale-main.ts +34 -4
- package/templates/hooks/prompt-questions.ts +14 -8
- package/templates/hooks/session-architecture-heal.ts +6 -2
- package/templates/hooks/session-auto-upgrade.ts +2 -1
- package/templates/hooks/session-cleanup-quality.ts +2 -1
- package/templates/hooks/session-codex-start.ts +7 -1
- package/templates/hooks/session-compact-context.ts +7 -5
- package/templates/hooks/session-dependency-readiness.ts +2 -1
- package/templates/hooks/session-lint-check.ts +15 -12
- package/templates/hooks/session-safeword-context.ts +9 -1
- package/templates/hooks/session-version.ts +2 -1
- package/templates/hooks/stop-quality.ts +63 -137
- package/templates/hooks/stop-self-report.ts +3 -1
- package/templates/hooks/write-review-stamp.ts +3 -5
- package/templates/personas-template.md +4 -28
- package/templates/principles-template.md +2 -16
- package/templates/scripts/closeout-cleanup.ts +24 -3
- package/templates/skills/audit/SKILL.md +19 -3
- package/templates/skills/bdd/DISCOVERY.md +78 -58
- package/templates/skills/bdd/PLAN_EXECUTION.md +2 -2
- package/templates/skills/bdd/PLAN_IMPLEMENTATION.md +20 -19
- package/templates/skills/bdd/SKILL.md +6 -23
- package/templates/skills/bdd/TDD.md +8 -15
- package/templates/skills/explain/SKILL.md +4 -85
- package/templates/skills/finish-review/REVIEWER.md +13 -0
- package/templates/skills/finish-review/SKILL.md +2 -5
- package/templates/skills/quality-review/SKILL.md +2 -3
- package/templates/skills/review-spec/SKILL.md +4 -5
- package/templates/skills/verify/SKILL.md +20 -4
- package/templates/spec-template.md +6 -4
- package/templates/surfaces-template.md +3 -11
- package/templates/workflows/pr-review-worker.yml +13 -2
- package/templates/workflows/pr-review.yml +2 -0
- package/templates/workflows/remote-tests.yml +3 -3
- package/codex-plugin/templates/hooks/session-author-model.ts +0 -33
- package/dist/boundary-6OPBPUMR.js.map +0 -1
- package/dist/chunk-AABNONVQ.js.map +0 -1
- package/dist/chunk-AQPCAFHA.js.map +0 -1
- package/dist/chunk-AY4YDTAF.js.map +0 -1
- package/dist/chunk-CQ72THJZ.js.map +0 -1
- package/dist/chunk-ENHNEZW5.js.map +0 -1
- package/dist/chunk-F2NLM3VK.js.map +0 -1
- package/dist/chunk-FBGA67SW.js.map +0 -1
- package/dist/chunk-FLNIE65O.js.map +0 -1
- package/dist/chunk-FY5VV37I.js.map +0 -1
- package/dist/chunk-IOFEDXVS.js +0 -104
- package/dist/chunk-IOFEDXVS.js.map +0 -1
- package/dist/chunk-J2YU6YSK.js.map +0 -1
- package/dist/chunk-JCBDMQ7E.js.map +0 -1
- package/dist/chunk-KYS5TK24.js.map +0 -1
- package/dist/chunk-M2OV3LPR.js +0 -48
- package/dist/chunk-M2OV3LPR.js.map +0 -1
- package/dist/chunk-METG6IEA.js.map +0 -1
- package/dist/chunk-MWYMNOH3.js.map +0 -1
- package/dist/chunk-NNK5XMDV.js.map +0 -1
- package/dist/chunk-PAN3FWH3.js.map +0 -1
- package/dist/chunk-PQJYQM6A.js.map +0 -1
- package/dist/chunk-QOIQQY4E.js.map +0 -1
- package/dist/chunk-QYRSUQAA.js.map +0 -1
- package/dist/chunk-RVDXZZBQ.js +0 -194
- package/dist/chunk-RVDXZZBQ.js.map +0 -1
- package/dist/chunk-RYDEPCC3.js.map +0 -1
- package/dist/chunk-SLCOQYYU.js +0 -796
- package/dist/chunk-SLCOQYYU.js.map +0 -1
- package/dist/chunk-THLEVFEX.js.map +0 -1
- package/dist/chunk-TQOCRYWI.js.map +0 -1
- package/dist/chunk-TUA5P5AO.js.map +0 -1
- package/dist/chunk-TWSWBBIY.js.map +0 -1
- package/dist/chunk-UFTSWOAH.js.map +0 -1
- package/dist/chunk-W6GZF374.js.map +0 -1
- package/dist/chunk-WSKUVG2N.js.map +0 -1
- package/dist/codex-hook-OCEB6PGJ.js +0 -28
- package/dist/commands-O5KBWKBD.js.map +0 -1
- package/dist/conformance-O4GZH6PO.js.map +0 -1
- package/dist/contract-VN2NUP5L.js +0 -8
- package/dist/coordinator-ROPXCY7H.js +0 -45
- package/dist/corpus-K63AY2BO.js +0 -15
- package/dist/cursor-A6S43TAP.js +0 -28
- package/dist/execution-prerequisite-ZAFHTWVB.js +0 -52
- package/dist/plan-approval-TZ2URPXW.js.map +0 -1
- package/dist/project-pr-ready-ATSTZSKN.js.map +0 -1
- package/dist/red-execution-SFUGOPBG.js +0 -10
- package/dist/remove-QPXETOWC.js +0 -24
- package/dist/retro-3NHOKKXT.js.map +0 -1
- package/dist/retrospective-gate-QF7F4M7D.js +0 -54
- package/dist/review-pr-TTEXFJ2N.js.map +0 -1
- package/dist/schema-PTZO5RVP.js +0 -22
- package/dist/status-OQHRSYD2.js +0 -20
- package/dist/status-V4APGZBH.js +0 -68
- package/dist/ticket-new-4CALQDBG.js.map +0 -1
- package/templates/hooks/session-author-model.ts +0 -33
- /package/dist/{architecture-LBZCNFM2.js.map → architecture-MA5ZKH2L.js.map} +0 -0
- /package/dist/{architecture-document-YPK52C57.js.map → architecture-document-6GTI7DEC.js.map} +0 -0
- /package/dist/{architecture-monorepo-UZXC4BKW.js.map → architecture-monorepo-47IBJCHM.js.map} +0 -0
- /package/dist/{audit-scope-TQNJCP5X.js.map → audit-scope-RVC3UIKL.js.map} +0 -0
- /package/dist/{chunk-FCFKPPOO.js.map → chunk-2AEP2A3X.js.map} +0 -0
- /package/dist/{chunk-GXIITVMR.js.map → chunk-3WAG34TZ.js.map} +0 -0
- /package/dist/{cleanup-NKL3PQGE.js.map → chunk-4OWORIZQ.js.map} +0 -0
- /package/dist/{chunk-ORYCHVPO.js.map → chunk-5BMO36UQ.js.map} +0 -0
- /package/dist/{chunk-4UWLU33F.js.map → chunk-5LKMUGSR.js.map} +0 -0
- /package/dist/{chunk-AQNN43SS.js.map → chunk-5OGY52UR.js.map} +0 -0
- /package/dist/{chunk-XCFLJUWR.js.map → chunk-7XRUDQRS.js.map} +0 -0
- /package/dist/{chunk-6XAGX2CM.js.map → chunk-B6W22B4R.js.map} +0 -0
- /package/dist/{chunk-D6GTH5CV.js.map → chunk-BR2A473H.js.map} +0 -0
- /package/dist/{chunk-GMGI2PQ2.js.map → chunk-CZWJCVON.js.map} +0 -0
- /package/dist/{chunk-UAC7TXXB.js.map → chunk-FBNBZY5N.js.map} +0 -0
- /package/dist/{chunk-24ZULBPG.js.map → chunk-J2YNWL4I.js.map} +0 -0
- /package/dist/{chunk-WURZ5YIL.js.map → chunk-KT2SUO27.js.map} +0 -0
- /package/dist/{chunk-EIBH2KJR.js.map → chunk-KXUJCCZ4.js.map} +0 -0
- /package/dist/{chunk-45G5RPPT.js.map → chunk-LG64NKNH.js.map} +0 -0
- /package/dist/{chunk-7YNAFGEZ.js.map → chunk-LNDPZKXZ.js.map} +0 -0
- /package/dist/{chunk-M6FWIVB4.js.map → chunk-M3O66RT4.js.map} +0 -0
- /package/dist/{chunk-U7H6HR4G.js.map → chunk-NSMIHGHQ.js.map} +0 -0
- /package/dist/{chunk-Q7T6SA2G.js.map → chunk-PRUDGHVU.js.map} +0 -0
- /package/dist/{chunk-UUAC4DGR.js.map → chunk-RVH2JEYT.js.map} +0 -0
- /package/dist/{chunk-UCB3QWRT.js.map → chunk-SPXOJUCD.js.map} +0 -0
- /package/dist/{chunk-3PIFBQCX.js.map → chunk-VI7QIYV2.js.map} +0 -0
- /package/dist/{chunk-MXWJ2WUK.js.map → chunk-XXTVDM65.js.map} +0 -0
- /package/dist/{chunk-FKU44SVJ.js.map → chunk-YV2LFZQ2.js.map} +0 -0
- /package/dist/{clients-HOLXFSG4.js.map → cleanup-P4M7PI57.js.map} +0 -0
- /package/dist/{codex-hook-OCEB6PGJ.js.map → clients-CCQLLS2Q.js.map} +0 -0
- /package/dist/{config-KPGTTHT4.js.map → codex-hook-ZO5E2P7C.js.map} +0 -0
- /package/dist/{codify-DUQCRGVA.js.map → codify-XOVEQRN2.js.map} +0 -0
- /package/dist/{configured-paths-CHD5EOGY.js.map → config-QU5LGMFQ.js.map} +0 -0
- /package/dist/{contract-VN2NUP5L.js.map → configured-paths-KVPQMYUH.js.map} +0 -0
- /package/dist/{coordinator-ROPXCY7H.js.map → contract-ZUZJ2YZU.js.map} +0 -0
- /package/dist/{corpus-K63AY2BO.js.map → coordinator-OYBX2CDJ.js.map} +0 -0
- /package/dist/{cursor-A6S43TAP.js.map → corpus-U2L66YT6.js.map} +0 -0
- /package/dist/{execution-prerequisite-ZAFHTWVB.js.map → cursor-O4HIOC2N.js.map} +0 -0
- /package/dist/{drain-retro-spool-SVGQTAR4.js.map → drain-retro-spool-SAHHI7T5.js.map} +0 -0
- /package/dist/{finalization-VKPTPPQ6.js.map → execution-prerequisite-CR6JN5EL.js.map} +0 -0
- /package/dist/{feature-directories-YSRWQQU4.js.map → feature-directories-BB3BALT6.js.map} +0 -0
- /package/dist/{gh-cli-BM5WWEWB.js.map → finalization-UPNHGRPP.js.map} +0 -0
- /package/dist/{job-HANB2LVB.js.map → gh-cli-CYQKT4DX.js.map} +0 -0
- /package/dist/{legacy-global-guidance-7TIMT53Y.js.map → job-R7TSBESS.js.map} +0 -0
- /package/dist/{learning-sync-27OB4ZY4.js.map → learning-sync-JH65MC4I.js.map} +0 -0
- /package/dist/{operations-XZO6NV3J.js.map → legacy-global-guidance-J6FJX2T6.js.map} +0 -0
- /package/dist/{lint-gherkin-QIAXBHZP.js.map → lint-gherkin-RZWTK7Y3.js.map} +0 -0
- /package/dist/{namespace-root-ZIHDPJQY.js.map → namespace-root-P6BJFOZG.js.map} +0 -0
- /package/dist/{output-ATTQCIAF.js.map → operations-ARJDTINK.js.map} +0 -0
- /package/dist/{packet-SVQP5HNS.js.map → output-QYSKTALE.js.map} +0 -0
- /package/dist/{policy-ZCOYGMCM.js.map → packet-4YJFXQE7.js.map} +0 -0
- /package/dist/{preferences-BJ4LSPL3.js.map → policy-GKHQ33XF.js.map} +0 -0
- /package/dist/{profile-B4MHI5CE.js.map → preferences-X755Q2QO.js.map} +0 -0
- /package/dist/{profile-IWBN5KQD.js.map → profile-234EVLS5.js.map} +0 -0
- /package/dist/{prompt-T6DGFXQY.js.map → profile-J2PXYUZF.js.map} +0 -0
- /package/dist/{project-runtime-DZFIHE27.js.map → project-runtime-CWTQZSUO.js.map} +0 -0
- /package/dist/{red-execution-SFUGOPBG.js.map → prompt-RT3MAYIX.js.map} +0 -0
- /package/dist/{public-retros-6UKZLDBL.js.map → public-retros-IUYMKI2R.js.map} +0 -0
- /package/dist/{record-skill-invocation-5RNAZU2A.js.map → record-skill-invocation-LIFF6IMA.js.map} +0 -0
- /package/dist/{remove-QPXETOWC.js.map → red-execution-JVVZBK2P.js.map} +0 -0
- /package/dist/{retro-draft-spool-TSGWT6DK.js.map → remove-4VE4MJFU.js.map} +0 -0
- /package/dist/{retro-extract-IHR4XDWL.js.map → retro-draft-spool-OSNDK4NB.js.map} +0 -0
- /package/dist/{retro-drain-QOTZKVEP.js.map → retro-drain-75ADLGAM.js.map} +0 -0
- /package/dist/{retrospective-gate-QF7F4M7D.js.map → retro-extract-2FEUPOWZ.js.map} +0 -0
- /package/dist/{route-config-KBFHEMWZ.js.map → retrospective-electron-gate-A6MCVQ4M.js.map} +0 -0
- /package/dist/{schema-PTZO5RVP.js.map → retrospective-electron-proof-PDV2WIIT.js.map} +0 -0
- /package/dist/{self-report-AUEHJMED.js.map → retrospective-electron-request-YEGNLKFG.js.map} +0 -0
- /package/dist/{status-OQHRSYD2.js.map → retrospective-gate-3OPZ22OI.js.map} +0 -0
- /package/dist/{status-V4APGZBH.js.map → retrospective-history-7SHMM23N.js.map} +0 -0
- /package/dist/{sync-config-35MOGYEZ.js.map → retrospective-proof-FVAX6NBW.js.map} +0 -0
- /package/dist/{review-knowledge-4KQLAQPM.js.map → review-knowledge-VIB7PXSD.js.map} +0 -0
- /package/dist/{review-pr-publication-6IHD3PHK.js.map → review-pr-publication-UVLTDFP4.js.map} +0 -0
- /package/dist/{review-pr-readiness-ZCTUK7S3.js.map → review-pr-readiness-2JRMAFS6.js.map} +0 -0
- /package/dist/{ticket-sync-XO5VO3MC.js.map → route-config-GPN4CLHP.js.map} +0 -0
- /package/dist/{run-CLOZOGLS.js.map → run-6JEISWH3.js.map} +0 -0
- /package/dist/{tracker-map-HA7BU2NQ.js.map → schema-Q2XHGHWL.js.map} +0 -0
- /package/dist/{tracker-sync-4FMCMADH.js.map → self-report-HLITAX3V.js.map} +0 -0
- /package/dist/{sync-tracker-X4UYXQVJ.js.map → sync-tracker-RX5BG2L3.js.map} +0 -0
- /package/dist/{ticket-reconcile-parent-P644RHN4.js.map → ticket-reconcile-parent-7KX7ZWDH.js.map} +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# SAFEWORD Agent Instructions
|
|
2
2
|
|
|
3
|
+
## Start here
|
|
4
|
+
|
|
5
|
+
For a request to build a new capability, invoke the native `safeword:bdd` skill now. Its intake guide owns the first deliverable: the feature ticket and Product Plan. A detailed request supplies the plan's contents. An existing test scaffold supplies the test environment. Both still start at intake.
|
|
6
|
+
|
|
7
|
+
For an existing behavior that is broken, reproduce it and use TDD. For a behavior change, add or update a regression test in the project’s test suite. Run it before the production edit and keep it passing afterward. For a mechanical correction, make the small edit directly. Resume existing work at its recorded phase. When resuming a feature ticket in intake, invoke the native `safeword:bdd` skill and open its `DISCOVERY.md` guide before asking a product question or editing the plan.
|
|
8
|
+
|
|
3
9
|
The standing operating model for this project. Read at session start; re-scan by topic as situations arise. Project-specific rules live in the project's own `./AGENTS.md` or `./CLAUDE.md` (whichever your host reads). Triggered playbooks live in `./.safeword/guides/`.
|
|
4
10
|
|
|
5
11
|
Project knowledge (tickets, learnings, principles, personas, glossary, surfaces) lives under the **project namespace root**: configurable via `paths.projectRoot` in `.safeword/config.json`, `.project/` by default, with legacy `.safeword-project/` honored only when that directory already exists. Paths below use `<namespace-root>` for the resolved directory.
|
|
@@ -10,6 +16,14 @@ Project knowledge (tickets, learnings, principles, personas, glossary, surfaces)
|
|
|
10
16
|
|
|
11
17
|
A safeword session runs through these phases in order. Each phase has an exit criterion — meet it before advancing.
|
|
12
18
|
|
|
19
|
+
When a request adds a capability or multiple user flows, load the BDD skill
|
|
20
|
+
(`safeword:bdd` on namespaced hosts) and start with its intake guide. Use the
|
|
21
|
+
Product Plan and ticket to record agreed outcomes, scope, and observable done
|
|
22
|
+
criteria. Reuse decisions the user already made. Ask about choices that change
|
|
23
|
+
what users get or what is in scope. Bring clarification answers back into the
|
|
24
|
+
plan. Record the required review evidence and save `phase: define-behavior` on
|
|
25
|
+
the same ticket before writing scenarios or code.
|
|
26
|
+
|
|
13
27
|
Safeword planning review and approval are enforced on local Claude Code, local
|
|
14
28
|
Codex, local Cursor, OpenCode CLI and TUI, Claude Code Cloud, and Cursor Cloud
|
|
15
29
|
Agents. Codex Cloud and OpenCode Desktop execution is advisory. Do not claim
|
|
@@ -20,14 +34,9 @@ a supported gated surface.
|
|
|
20
34
|
|
|
21
35
|
Understand what the user is asking before classifying or building. **Propose-and-Converge** means: lead with a perspective, then surface open questions _inside_ that proposal. Don't ask first — propose first.
|
|
22
36
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Research before proposing anything significant — and the order is load-bearing:
|
|
37
|
+
Use confirmed decisions. Surface the remaining choices and advance when the user accepts.
|
|
26
38
|
|
|
27
|
-
|
|
28
|
-
2. **Design the ideal.** Run `$safeword:figure-it-out` to weigh 2-3 options on correctness, simplicity, and no-bloat, and pick the best architecture _as if the codebase didn't exist_. Computing this first gives the next step a yardstick.
|
|
29
|
-
3. **Survey the existing patterns** in the area you're about to touch — now, not before. Surveying earlier anchors the design to the status quo and quietly shrinks it to match.
|
|
30
|
-
4. **Reconcile.** Conform to the existing pattern by default — deviate only when the ideal is a real improvement, not taste. When your ideal diverges from what exists, record the call: to deviate, name a concrete defect of the existing pattern the ideal fixes, the call-site count you're splitting, a one-line pre-mortem ("assume this was wrong — what broke?"), and the follow-up ticket to uplevel the rest. Reversible and local → a few lines in the ticket; irreversible or cross-cutting (data model, public API) → promote to an ADR. See `./.safeword/guides/architecture-guide.md`.
|
|
39
|
+
During feature intake, research questions that could change behavior or scope. For a significant implementation decision, follow the decision sequence in `./.safeword/guides/architecture-guide.md`.
|
|
31
40
|
|
|
32
41
|
Depth scales with ambiguity. Clear request → 0 turns. One open question → 1 turn. Vague idea → 2-3 turns of increasingly specific proposals.
|
|
33
42
|
|
|
@@ -35,7 +44,7 @@ Depth scales with ambiguity. Clear request → 0 turns. One open question → 1
|
|
|
35
44
|
|
|
36
45
|
If the user references a ticket ID/slug or says "resume" / "continue", skip Clarify and resume at the ticket's current phase.
|
|
37
46
|
|
|
38
|
-
|
|
47
|
+
If a resume check flags changed files, investigate only when the user accepts. Have a fresh agent review the plan in its own worktree and report in chat. Follow `./.safeword/guides/planning-guide.md` and get explicit approval before editing the ticket.
|
|
39
48
|
|
|
40
49
|
**Contribution techniques** to weave into proposals (pick the one that fits the gap):
|
|
41
50
|
|
|
@@ -57,13 +66,6 @@ Before proceeding, run the **specificity self-test**: can you describe the behav
|
|
|
57
66
|
|
|
58
67
|
Scale depth by blast radius — reversible, local work proceeds; irreversible or high-blast work resolves the open unknowns first. You're ready when your remaining questions are about edge-cases and trade-offs, not basics. When a feature's recorded Reversibility says one-way (data model, public API, or migration), intake offers a deeper **cold-start executability check** at exit (`.safeword/guides/cold-start-check.md`) — a context-free agent attempts to plan the work from the captured spec alone, surfacing what it couldn't reconstruct; runnable on demand too.
|
|
59
68
|
|
|
60
|
-
**PM-grade intake** is the name for how these fit together, scaled by blast radius — one protocol, not three disconnected mechanisms:
|
|
61
|
-
|
|
62
|
-
- The readiness pointer nudges every turn.
|
|
63
|
-
- The Product Plan in `spec.md` (Product Bet · jobs and Rules · Shape · Killer Demo · Surfaces) is authored for features.
|
|
64
|
-
- The cold-start executability check is offered only when the recorded Reversibility says one-way.
|
|
65
|
-
- `$safeword:elicit`, `$safeword:brainstorm`, and `$safeword:figure-it-out` get pulled in as the gaps demand (unknown intent · empty option space · options to weigh).
|
|
66
|
-
|
|
67
69
|
**Project principles.** Before choosing scope or design, read the configured
|
|
68
70
|
principles file (`paths.principles`, default `<namespace-root>/principles.md`)
|
|
69
71
|
when it exists. Apply it as a decision lens, not a checklist: a principle pays
|
|
@@ -76,39 +78,19 @@ alone — tests prove observable mechanics; user evidence proves the experience.
|
|
|
76
78
|
|
|
77
79
|
If the conversation feels circular, make a best-guess proposal: "Here's my best read — should I build this, or is something off?"
|
|
78
80
|
|
|
79
|
-
Exit: user accepts your proposal. For features, intake builds its artifacts in order, each anchoring the next:
|
|
80
|
-
|
|
81
|
-
1. Load personas, glossary, and surfaces from the configured project-knowledge files.
|
|
82
|
-
2. Open the **Product Plan** in `spec.md` (from `spec-template.md`) with its **Product Bet** — problem / why now, expected outcome, falsifiable success threshold, non-goals — the framing for the decision to build, which also triages whether this is a feature or a leaner task. A child feature (`parent`, `parent_job`, `milestone`) uses `child-spec-template.md` instead: just its Contribution and feature-owned Rules; the parent owns the bet and jobs.
|
|
83
|
-
3. Author the Jobs To Be Done in `spec.md` — one persona from the configured personas file per job, in the "When I…, I want…, so I can…" form. Jobs are outcomes the persona wants to be true; never drop or narrow one because of how it would be built. Feasibility, state, and which layer serves it are plan-implementation questions.
|
|
84
|
-
4. Decompose each job into numbered Rules — one testable invariant per `#### <jtbd-id>.R<n>`, the level that define-behavior scenarios later prove against. (Acceptance Criteria — `#### <jtbd-id>.AC<n>` — is the still-supported legacy alternative; one criteria kind per job, never both.) Then sketch the Shape (milestones), Killer Demo, and affected Surfaces.
|
|
85
|
-
5. Let jobs-and-rules anchor the engineering scope you write to ticket frontmatter — every resolved question produces scope (accepted choice = in scope, rejected alternative = out of scope):
|
|
86
|
-
|
|
87
|
-
- **`scope`** — what you're building (derived from accepted choices).
|
|
88
|
-
- **`out_of_scope`** — what you're not building (rejected alternatives + domain-knowledge exclusions).
|
|
89
|
-
- **`done_when`** — observable outcomes.
|
|
90
|
-
|
|
91
|
-
In define-behavior, each Gherkin `Rule:` block carries its lineage as a `@<jtbd-id>.R<#>` tag that its scenarios inherit (legacy specs tag each scenario `@<jtbd-id>.AC<#>`); scenario names stay plain English. That lets `safeword doctor` flag coverage gaps — uncovered rules, orphan scenarios. The bdd skill's DISCOVERY.md walks these sub-steps end to end with a worked example; SCENARIOS.md covers the numbering.
|
|
92
|
-
|
|
93
81
|
If the user is exploring without intent to build, follow their lead — not every conversation produces a ticket.
|
|
94
82
|
|
|
95
83
|
### 2. Classify (Sizing)
|
|
96
84
|
|
|
97
85
|
Pick the work level internally. Don't announce it as a label ("Feature detected!"); state your scope read as part of your proposal.
|
|
98
86
|
|
|
99
|
-
|
|
87
|
+
Classify by the requested outcome before estimating implementation size. Use the first matching rule:
|
|
100
88
|
|
|
101
|
-
1.
|
|
102
|
-
2.
|
|
103
|
-
3.
|
|
89
|
+
1. **Feature:** The request adds a user capability, introduces persistent state, or connects several user flows. Load the BDD skill and open its intake guide, even when the feature fits in one file or the requirements are fully specified.
|
|
90
|
+
2. **Task:** The request restores existing behavior or changes an isolated behavior with a testable outcome. Use TDD.
|
|
91
|
+
3. **Patch:** A small mechanical or cosmetic correction with no behavior to discover can be fixed directly.
|
|
104
92
|
|
|
105
|
-
|
|
106
|
-
All no or 1 file → patch (fix directly)
|
|
107
|
-
1-2 files, one testable behavior → task (TDD)
|
|
108
|
-
3+ files OR new state OR multiple flows → feature (write scenarios first)
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Fallback: task. User can `$safeword:bdd` to override.
|
|
93
|
+
Users can explicitly override the workflow with `$safeword:bdd`. Use TDD-only for a feature when the user explicitly requests that path.
|
|
112
94
|
|
|
113
95
|
Sizing reads the jobs; it never edits them. A job that implies new state or a new flow makes the work **bigger** — that is a signal to split into an epic, never to drop the job so the work fits a smaller box. If you find yourself pruning jobs and the size falls, you sized the proposal instead of the work.
|
|
114
96
|
|
|
@@ -120,17 +102,11 @@ Calibration the rules don't capture:
|
|
|
120
102
|
- "Build the Docker image" → patch (infrastructure, not product).
|
|
121
103
|
- "Clear pre-existing lint debt across 17 files" → task (mechanical cleanup — no behavior to discover, so the file count is noise).
|
|
122
104
|
|
|
123
|
-
### 3.
|
|
124
|
-
|
|
125
|
-
- **patch:** restate what you're fixing, fix it. `$safeword:bdd` to override.
|
|
126
|
-
- **task:** restate scope, run TDD (RED → GREEN → REFACTOR). `$safeword:bdd` to override.
|
|
127
|
-
- **feature:** include sizing in the proposal ("this touches N components with new state — I'd write scenarios"). Run `$safeword:bdd`; skip straight to TDD to override.
|
|
128
|
-
|
|
129
|
-
### 4. Verify
|
|
105
|
+
### 3. Verify
|
|
130
106
|
|
|
131
107
|
Never ask the user to test what you can test yourself. Run the relevant tests after every fix, task, or feature. Verify everything passes before claiming done.
|
|
132
108
|
|
|
133
|
-
###
|
|
109
|
+
### 4. Done
|
|
134
110
|
|
|
135
111
|
Run `$safeword:verify` (it writes `verify.md`) and, for features, `$safeword:audit`. The done gate re-runs the tests and blocks until they pass and the evidence is real — see Enforcement.
|
|
136
112
|
|
|
@@ -147,19 +123,6 @@ Correctness is the floor, not a tiebreaker. Among solutions that are correct, op
|
|
|
147
123
|
|
|
148
124
|
---
|
|
149
125
|
|
|
150
|
-
## Anti-Patterns
|
|
151
|
-
|
|
152
|
-
| Don't | Do | Why |
|
|
153
|
-
| ---------------------------- | ------------------------------------------------ | ------------------------- |
|
|
154
|
-
| `catch (e) {}` | `throw new Error(\`Failed to X: ${e.message}\`)` | Silent failures hide bugs |
|
|
155
|
-
| Utility class for 1 function | Single exported function | Abstraction without reuse |
|
|
156
|
-
| Factory for simple object | Direct construction | Indirection without value |
|
|
157
|
-
| `data`, `tmp`, `d` | `userProfile`, `pendingOrder` | Names should explain |
|
|
158
|
-
| Code "for later" | Delete it; add when needed | YAGNI |
|
|
159
|
-
| >50 lines for nice-to-have | Ask whether it's essential now | Scope creep |
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
126
|
## Authority: docs and research, not memory
|
|
164
127
|
|
|
165
128
|
Training data drifts. Memory of "how X worked" is not authority — the current source is.
|
|
@@ -240,17 +203,12 @@ This is the most-read surface of safeword. **Write to be scanned, not read.** Sh
|
|
|
240
203
|
|
|
241
204
|
**Lead with the answer.** First sentence is the result, the fix, or the call. Explanation follows only if it adds something.
|
|
242
205
|
|
|
243
|
-
> Do: "Fixed — `packages/cli/src/auth.ts:42` was swallowing the refresh error."
|
|
244
|
-
> Don't: "Great question! Let me walk you through what I found..."
|
|
245
|
-
|
|
246
206
|
**End with a self-contained call.** For structured replies (verdicts, reviews, recommendations, audits), close with a literal `**Next:**` paragraph for CONFIDENT or `**Need:**` for BLOCKED; the stop hook captures it verbatim for the session's re-entry brief. Write for a reader who sees only that paragraph. Under `terminal-handoff/v1`, declare `**Open:** human: <one choice>.` for a human decision or `**Open:** none.` when no decision remains. A human decision uses exactly `Choice: <concrete choice>. Recommendation: <recommended option>. Reason: <controlling reason>. Impact: <material tradeoff or consequences>. Reply: <exact reply>.` Explain any necessary marked term as `Term: <name> = <plain-language meaning>.` If no decision is required, use exactly `Action: <imperative>. Object: <specific object>.` and optionally only `Reason: Required because <essential reason>.` Use specific nouns, verbs, paths, commands, amounts, and consequences. Include a detail only if it could change the decision or action. Stop once the reader can act without scrolling. Short conversational replies can end with the question itself.
|
|
247
207
|
|
|
248
208
|
**Debate-then-pick.** When there's a real choice, surface 2-3 options weighed in one breath, then the pick — one line each on the candidates, one on the tradeoff, one on the call. Don't ping-pong one option at a time. Skip the debate when there's no real choice (rename, mechanical edit, single obvious path).
|
|
249
209
|
|
|
250
210
|
**Frame the structural choice.** Name the architectural call ("reuse `quality-state.ts` paths vs. duplicate the list") before the surface change ("add a check"). The proposal _is_ the architectural read, not a description of what to type.
|
|
251
211
|
|
|
252
|
-
**Front-load load-bearing words.** The first two words of every line, bullet, and heading do the work — readers eye-jump down the left edge before deciding where to drop in. Start with the noun or verb that carries the meaning. "Failed because…" beats "It looks like the test failed because…"
|
|
253
|
-
|
|
254
212
|
**Speak plainly.** Use everyday words. Don't make the user learn safeword's internal vocabulary (Propose-and-Converge, sizing, gates, phases) — just describe what's happening. Prefer the plain phrase over a technical term whenever either works; reach for the term only when it's shorter or more precise than spelling it out.
|
|
255
213
|
|
|
256
214
|
**Gloss jargon at the decision point.** Don't assume the user reads code. The first time a stack or domain term is load-bearing in an _ask_ — a block, a decision, a step they must take — gloss it inline in one clause ("the refresh token (the credential that renews a login) expired"). Once per turn, never re-explained; a fluent reader skips it at no cost. Leave background narration unglossed.
|
|
@@ -263,6 +221,4 @@ This is the most-read surface of safeword. **Write to be scanned, not read.** Sh
|
|
|
263
221
|
|
|
264
222
|
**Use structure only when it carries weight.** Headings when the reply is long enough to navigate — and make them information-carrying, not generic ("What changed" beats "Summary"). Tables only for actual reference material — never as decision trees in disguise. Bullets only when items are genuinely parallel. Default to prose. Never output a series of overly short bullet points.
|
|
265
223
|
|
|
266
|
-
**Use bold sparingly** — only where reading the bold alone would tell the story. Bold-on-every-sentence reads as noise.
|
|
267
|
-
|
|
268
224
|
**Skip:** preambles ("I'll now..."), recaps of what the user just said, sycophantic openers ("Great question!"), hedging caveats ("It depends, but..."), restating actions the user can see in the tool log.
|