devrites 3.2.4 → 3.2.6

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 (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/docs/cli.md +0 -1
  4. package/docs/command-map.md +1 -1
  5. package/docs/orchestration.md +1 -2
  6. package/engine/commands.go +1 -1
  7. package/engine/hooks_agent_dispatch.go +39 -9
  8. package/engine/internal/lib/reconcile.go +1 -1
  9. package/engine/internal/lib/reconcile_test.go +4 -12
  10. package/engine/internal/lib/util.go +2 -2
  11. package/engine/main.go +0 -3
  12. package/engine/root_routing_test.go +0 -1
  13. package/engine/tests/hook_test.go +42 -0
  14. package/pack/.claude/skills/rite-build/reference/forge.md +2 -2
  15. package/pack/.claude/skills/rite-build/reference/phase-contract.md +11 -20
  16. package/pack/.claude/skills/rite-build/reference/wright-dispatch.md +2 -5
  17. package/pack/.claude/skills/rite-prove/reference/acceptance-proof.md +0 -1
  18. package/pack/.claude/skills/rite-seal/reference/final-evidence.md +0 -1
  19. package/pack/generated/claude/skills/rite-build/reference/forge.md +2 -2
  20. package/pack/generated/claude/skills/rite-build/reference/phase-contract.md +11 -20
  21. package/pack/generated/claude/skills/rite-build/reference/wright-dispatch.md +2 -5
  22. package/pack/generated/claude/skills/rite-prove/reference/acceptance-proof.md +0 -1
  23. package/pack/generated/claude/skills/rite-seal/reference/final-evidence.md +0 -1
  24. package/pack/generated/codex/skills/rite-build/reference/forge.md +2 -2
  25. package/pack/generated/codex/skills/rite-build/reference/phase-contract.md +11 -20
  26. package/pack/generated/codex/skills/rite-build/reference/wright-dispatch.md +2 -5
  27. package/pack/generated/codex/skills/rite-prove/reference/acceptance-proof.md +0 -1
  28. package/pack/generated/codex/skills/rite-seal/reference/final-evidence.md +0 -1
  29. package/package.json +1 -1
  30. package/scripts/build-release-tarball.sh +1 -0
  31. package/scripts/validate.sh +0 -1
  32. package/engine/internal/lib/packageexistence.go +0 -968
  33. package/engine/internal/lib/packageexistence_test.go +0 -506
  34. package/engine/testdata/golden/TestParityPackageExistence/declared.golden +0 -2
  35. package/engine/testdata/golden/TestParityPackageExistence/default-import-subpath.golden +0 -2
  36. package/engine/tests/parity_packageexistence_test.go +0 -64
@@ -66,15 +66,12 @@ and exact changed-file set. Before the root writes any canonical record, run:
66
66
  ```bash
67
67
  devrites-engine reconcile check; echo "reconcile rc=$?"
68
68
  devrites-engine test-integrity; echo "test-integrity rc=$?"
69
- devrites-engine package-existence; echo "package-existence rc=$?"
70
69
  ```
71
70
 
72
71
  - Reconcile `5`: reject the result. Preserve pre-snapshot user work; restore only the
73
72
  unauthorized slice delta; never widen scope from the writer's self-report.
74
73
  - Test integrity `3`: a test was deleted, muted, focused, or de-asserted. Treat it as a
75
74
  Critical protocol failure and correct it through the wright.
76
- - Package existence `3`: verify the exact package/version and fix the bounded workflow
77
- or dependency defect through recovery. It is not a reason to ask for retry approval.
78
75
  - A setup/corrupt-baseline error blocks acceptance; never fall back silently to `HEAD`.
79
76
 
80
77
  The clean reconcile check records that source has not changed since inspection. The
@@ -105,13 +102,13 @@ Before every retry:
105
102
 
106
103
  That refresh requires the prior clean check, re-fingerprints root-owned state, and keeps
107
104
  the original source baseline. Re-dispatch with the exact output, attempt count, and dead
108
- ends. Then repeat reconcile and both integrity gates from zero. Clear recovery only after
105
+ ends. Then repeat reconcile and `test-integrity` from zero. Clear recovery only after
109
106
  green with `recovery clear --class <class> "<root cause>" <slug>`. An exhausted objective
110
107
  failure becomes a technical blocker with its reproduction, not a `rite-resolve` question.
111
108
 
112
109
  ## Close and record
113
110
 
114
- When reconciliation, integrity, package, proof, and doubt gates all pass:
111
+ When reconciliation, integrity, proof, and doubt gates all pass:
115
112
 
116
113
  ```bash
117
114
  devrites-engine reconcile close
@@ -21,7 +21,6 @@ mutation tool when present. Run:
21
21
  ```bash
22
22
  devrites-engine test-integrity
23
23
  devrites-engine mutation-gate
24
- devrites-engine package-existence
25
24
  ```
26
25
 
27
26
  A test that stays green on broken code is unproven. Pure transforms also get a
@@ -53,7 +53,6 @@ gates:
53
53
  ```bash
54
54
  devrites-engine test-integrity; echo "test-integrity rc=$?" # exit 3 = a test deleted/skipped/loosened → Critical NO-GO
55
55
  devrites-engine mutation-gate # changed-files mutation score — band the verdict; survivors are unproven behaviours
56
- devrites-engine package-existence; echo "package-existence rc=$?" # exit 3 = a new import isn't declared in any manifest (hallucinated/typo-squatted dep) → Critical NO-GO
57
56
  ```
58
57
  A test weakened since the slice base is a **Critical NO-GO**: the suite went green by lowering the
59
58
  bar, not by the code being right. Record the mutation score in `seal.md`; under
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devrites",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
4
4
  "description": "DevRites: a disciplined senior-engineer workflow pack for Claude Code and Codex",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://github.com/ViktorsBaikers/DevRites#readme",
@@ -59,6 +59,7 @@ for item in "${PAYLOAD[@]}"; do
59
59
  if [[ -e "$item" ]]; then
60
60
  if [[ "$item" == "engine" ]] && git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
61
61
  while IFS= read -r -d '' path; do
62
+ [[ -e "$path" ]] || continue
62
63
  if [[ "$path" == engine/testdata/golden/* ]]; then
63
64
  continue
64
65
  fi
@@ -302,7 +302,6 @@ DELETED_HELPER_HITS="$(grep -rnI \
302
302
  -e 'footprint\.sh' \
303
303
  -e 'learnings\.sh' \
304
304
  -e 'mutation-gate\.sh' \
305
- -e 'package-existence\.sh' \
306
305
  -e 'progress\.sh' \
307
306
  -e 'reconcile\.sh' \
308
307
  -e 'tick-afk\.sh' \