devrites 4.4.2 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/NOTICE.md +13 -0
  3. package/README.md +1 -1
  4. package/docs/markdown-instruction-upgrade-2026-08-27.md +127 -0
  5. package/pack/.claude/agents/devrites-code-reviewer.md +16 -0
  6. package/pack/.claude/agents/devrites-devex-reviewer.md +4 -0
  7. package/pack/.claude/agents/devrites-doubt-reviewer.md +8 -0
  8. package/pack/.claude/agents/devrites-security-auditor.md +10 -0
  9. package/pack/.claude/agents/devrites-spec-reviewer.md +3 -0
  10. package/pack/.claude/skills/devrites-browser-proof/SKILL.md +13 -13
  11. package/pack/.claude/skills/devrites-frontend-craft/reference/quality-standards.md +1 -2
  12. package/pack/.claude/skills/devrites-lib/reference/intent-map.md +17 -3
  13. package/pack/.claude/skills/devrites-lib/reference/parallel-dispatch.md +2 -0
  14. package/pack/.claude/skills/devrites-lib/reference/standards/agents.md +24 -40
  15. package/pack/.claude/skills/devrites-lib/reference/standards/browser-proof-checklist.md +4 -5
  16. package/pack/.claude/skills/devrites-lib/reference/standards/code-review.md +5 -6
  17. package/pack/.claude/skills/devrites-lib/reference/standards/core.md +5 -14
  18. package/pack/.claude/skills/devrites-lib/reference/standards/debug-recovery.md +21 -0
  19. package/pack/.claude/skills/devrites-lib/reference/standards/edge-case-trace.md +11 -0
  20. package/pack/.claude/skills/devrites-lib/reference/standards/prose-style.md +30 -31
  21. package/pack/.claude/skills/devrites-lib/reference/standards/security.md +88 -145
  22. package/pack/.claude/skills/devrites-lib/reference/standards/skill-authoring.md +19 -17
  23. package/pack/.claude/skills/devrites-lib/reference/standards/spec-grammar.md +16 -31
  24. package/pack/.claude/skills/devrites-lib/reference/standards/tooling.md +59 -81
  25. package/pack/.claude/skills/devrites-lib/reference/visual-playbooks/index.md +11 -0
  26. package/pack/.claude/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
  27. package/pack/.claude/skills/rite-adopt/SKILL.md +10 -2
  28. package/pack/.claude/skills/rite-build/SKILL.md +12 -0
  29. package/pack/.claude/skills/rite-converge/SKILL.md +19 -0
  30. package/pack/.claude/skills/rite-define/reference/plan-template.md +10 -0
  31. package/pack/.claude/skills/rite-learn/SKILL.md +14 -16
  32. package/pack/.claude/skills/rite-polish/SKILL.md +13 -0
  33. package/pack/.claude/skills/rite-polish/reference/anti-ai-slop.md +2 -0
  34. package/pack/.claude/skills/rite-pressure-test/SKILL.md +6 -1
  35. package/pack/.claude/skills/rite-prove/SKILL.md +9 -0
  36. package/pack/.claude/skills/rite-prove/reference/acceptance-proof.md +10 -0
  37. package/pack/.claude/skills/rite-review/SKILL.md +9 -0
  38. package/pack/.claude/skills/rite-spec/reference/spec-checklists.md +5 -1
  39. package/pack/.claude/skills/rite-spec/reference/spec-template.md +6 -0
  40. package/pack/.claude/skills/rite-vet/SKILL.md +14 -0
  41. package/pack/generated/claude/agents/devrites-code-reviewer.md +16 -0
  42. package/pack/generated/claude/agents/devrites-devex-reviewer.md +4 -0
  43. package/pack/generated/claude/agents/devrites-doubt-reviewer.md +8 -0
  44. package/pack/generated/claude/agents/devrites-security-auditor.md +10 -0
  45. package/pack/generated/claude/agents/devrites-spec-reviewer.md +3 -0
  46. package/pack/generated/claude/skills/devrites-browser-proof/SKILL.md +13 -13
  47. package/pack/generated/claude/skills/devrites-frontend-craft/reference/quality-standards.md +1 -2
  48. package/pack/generated/claude/skills/devrites-lib/reference/intent-map.md +17 -3
  49. package/pack/generated/claude/skills/devrites-lib/reference/parallel-dispatch.md +2 -0
  50. package/pack/generated/claude/skills/devrites-lib/reference/standards/agents.md +24 -40
  51. package/pack/generated/claude/skills/devrites-lib/reference/standards/browser-proof-checklist.md +4 -5
  52. package/pack/generated/claude/skills/devrites-lib/reference/standards/code-review.md +5 -6
  53. package/pack/generated/claude/skills/devrites-lib/reference/standards/core.md +5 -14
  54. package/pack/generated/claude/skills/devrites-lib/reference/standards/debug-recovery.md +21 -0
  55. package/pack/generated/claude/skills/devrites-lib/reference/standards/edge-case-trace.md +11 -0
  56. package/pack/generated/claude/skills/devrites-lib/reference/standards/prose-style.md +30 -31
  57. package/pack/generated/claude/skills/devrites-lib/reference/standards/security.md +88 -145
  58. package/pack/generated/claude/skills/devrites-lib/reference/standards/skill-authoring.md +19 -17
  59. package/pack/generated/claude/skills/devrites-lib/reference/standards/spec-grammar.md +16 -31
  60. package/pack/generated/claude/skills/devrites-lib/reference/standards/tooling.md +59 -81
  61. package/pack/generated/claude/skills/devrites-lib/reference/visual-playbooks/index.md +11 -0
  62. package/pack/generated/claude/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
  63. package/pack/generated/claude/skills/rite-adopt/SKILL.md +10 -2
  64. package/pack/generated/claude/skills/rite-build/SKILL.md +12 -0
  65. package/pack/generated/claude/skills/rite-converge/SKILL.md +19 -0
  66. package/pack/generated/claude/skills/rite-define/reference/plan-template.md +10 -0
  67. package/pack/generated/claude/skills/rite-learn/SKILL.md +14 -16
  68. package/pack/generated/claude/skills/rite-polish/SKILL.md +13 -0
  69. package/pack/generated/claude/skills/rite-polish/reference/anti-ai-slop.md +2 -0
  70. package/pack/generated/claude/skills/rite-pressure-test/SKILL.md +6 -1
  71. package/pack/generated/claude/skills/rite-prove/SKILL.md +9 -0
  72. package/pack/generated/claude/skills/rite-prove/reference/acceptance-proof.md +10 -0
  73. package/pack/generated/claude/skills/rite-review/SKILL.md +9 -0
  74. package/pack/generated/claude/skills/rite-spec/reference/spec-checklists.md +5 -1
  75. package/pack/generated/claude/skills/rite-spec/reference/spec-template.md +6 -0
  76. package/pack/generated/claude/skills/rite-vet/SKILL.md +14 -0
  77. package/pack/generated/codex/agents/devrites-code-reviewer.toml +16 -0
  78. package/pack/generated/codex/agents/devrites-devex-reviewer.toml +4 -0
  79. package/pack/generated/codex/agents/devrites-doubt-reviewer.toml +8 -0
  80. package/pack/generated/codex/agents/devrites-security-auditor.toml +10 -0
  81. package/pack/generated/codex/agents/devrites-spec-reviewer.toml +3 -0
  82. package/pack/generated/codex/skills/devrites-browser-proof/SKILL.md +13 -13
  83. package/pack/generated/codex/skills/devrites-frontend-craft/reference/quality-standards.md +1 -2
  84. package/pack/generated/codex/skills/devrites-lib/reference/intent-map.md +17 -3
  85. package/pack/generated/codex/skills/devrites-lib/reference/parallel-dispatch.md +2 -0
  86. package/pack/generated/codex/skills/devrites-lib/reference/standards/agents.md +24 -40
  87. package/pack/generated/codex/skills/devrites-lib/reference/standards/browser-proof-checklist.md +4 -5
  88. package/pack/generated/codex/skills/devrites-lib/reference/standards/code-review.md +5 -6
  89. package/pack/generated/codex/skills/devrites-lib/reference/standards/core.md +5 -14
  90. package/pack/generated/codex/skills/devrites-lib/reference/standards/debug-recovery.md +21 -0
  91. package/pack/generated/codex/skills/devrites-lib/reference/standards/edge-case-trace.md +11 -0
  92. package/pack/generated/codex/skills/devrites-lib/reference/standards/prose-style.md +30 -31
  93. package/pack/generated/codex/skills/devrites-lib/reference/standards/security.md +88 -145
  94. package/pack/generated/codex/skills/devrites-lib/reference/standards/skill-authoring.md +19 -17
  95. package/pack/generated/codex/skills/devrites-lib/reference/standards/spec-grammar.md +16 -31
  96. package/pack/generated/codex/skills/devrites-lib/reference/standards/tooling.md +59 -81
  97. package/pack/generated/codex/skills/devrites-lib/reference/visual-playbooks/index.md +11 -0
  98. package/pack/generated/codex/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
  99. package/pack/generated/codex/skills/rite-adopt/SKILL.md +10 -2
  100. package/pack/generated/codex/skills/rite-build/SKILL.md +12 -0
  101. package/pack/generated/codex/skills/rite-converge/SKILL.md +19 -0
  102. package/pack/generated/codex/skills/rite-define/reference/plan-template.md +10 -0
  103. package/pack/generated/codex/skills/rite-learn/SKILL.md +14 -16
  104. package/pack/generated/codex/skills/rite-polish/SKILL.md +13 -0
  105. package/pack/generated/codex/skills/rite-polish/reference/anti-ai-slop.md +2 -0
  106. package/pack/generated/codex/skills/rite-pressure-test/SKILL.md +6 -1
  107. package/pack/generated/codex/skills/rite-prove/SKILL.md +9 -0
  108. package/pack/generated/codex/skills/rite-prove/reference/acceptance-proof.md +10 -0
  109. package/pack/generated/codex/skills/rite-review/SKILL.md +9 -0
  110. package/pack/generated/codex/skills/rite-spec/reference/spec-checklists.md +5 -1
  111. package/pack/generated/codex/skills/rite-spec/reference/spec-template.md +6 -0
  112. package/pack/generated/codex/skills/rite-vet/SKILL.md +14 -0
  113. package/package.json +1 -1
@@ -55,3 +55,14 @@ Home: `.devrites/work/<slug>/visual/`. Optional artifact; never a new lifecycle
55
55
  - [ ] CDN dependencies (if any) listed for the outline
56
56
  - [ ] Claims cite real repo paths when they touch the tree
57
57
  - [ ] After write: inventory ids present in HTML (`open-visual` warns inventory → HTML mismatches; HTML-only decorative ids are ignored)
58
+
59
+ ## Anti-slop triggers (load polish / playbooks)
60
+
61
+ When HTML/visual work shows **two or more** of: generic Inter/system font with no
62
+ brief justification, hero-only layout, purple/blue gradient CTA with no brand token,
63
+ lorem or placeholder copy in shipped states, or identical card grid with no product
64
+ hierarchy — load [`rite-polish`](../../../rite-polish/SKILL.md) **ux_coverage** and
65
+ craft axes before sign-off.
66
+
67
+ **Failing case:** visual ships with three slop patterns and no axis record → Review
68
+ Important finding.
@@ -61,7 +61,7 @@ Readers continue to accept safe legacy basenames; no ordinary phase renames one.
61
61
  | `drift.md` | `DRIFT-###` spec/plan drift and resolution | 160 lines |
62
62
  | `touched-files.md` | sole candidate manifest plus a concern-ordered `## Review trail` of `path:line` stops for human review | 160 lines |
63
63
  | `design-brief.md` | UI design direction, states, interaction model | 160 lines |
64
- | `handoff.md` | cold-resume guide: current objective, last completed slice, next action, blockers, read-next links | 120 lines |
64
+ | `handoff.md` | cold-resume guide: objective, last slice, next action, blockers, read-next. Sections carry content or `Nothing yet`; unevidenced recollections go under `Not tried yet`, never as results | 120 lines |
65
65
 
66
66
  When emitting `visual/` HTML+outline pairs, open matching playbooks via
67
67
  [`visual-playbooks/index.md`](visual-playbooks/index.md) (progressive load; do not
@@ -12,12 +12,20 @@ parallel convention system.
12
12
 
13
13
  ## Workflow
14
14
 
15
+ 0. **Pre-flight (workspace anchor).** Resolve the active `.devrites/work/<slug>/` path
16
+ and confirm `state.md` is writable. Missing slug, wrong repo root, or unreadable
17
+ workspace blocks Adopt before inspection. **Failing case:** adopt starts without a
18
+ confirmed workspace slug → stop; do not infer from cwd alone.
19
+
15
20
  1. Read core; resolve repository/sub-area and next objective. Ask once only if material.
16
21
  2. Follow [`reference/adoption.md`](reference/adoption.md): inspect current
17
22
  behavior, architecture and placement, callers, reusable seams, repository/CI
18
23
  commands, visible code/test patterns, non-obvious constraints, and any touched
19
- load-bearing seam that needs `characterize-before-modify`. Read existing
20
- `AGENTS.md`, `CLAUDE.md`, product, and design guidance.
24
+ load-bearing seam that needs **characterize-before-modify** (record disposition:
25
+ `characterized` with see-it-fail stub, or `deferred` with evidence why safe).
26
+ **Failing case:** plan touches auth middleware with no characterize row → Adopt
27
+ fails until disposition is recorded. Read existing `AGENTS.md`, `CLAUDE.md`, product,
28
+ and design guidance.
21
29
  3. Create the workspace and write `spec.md`, `decisions.md`, `assumptions.md`,
22
30
  `questions.md`, and `state.md`. The spec separates the current baseline from
23
31
  the measurable next objective.
@@ -43,6 +43,9 @@ Wright applies anti-slop; root verifies returns and never patches source.
43
43
  - Evidence beats confidence. Never weaken tests, skip TDD, widen writers, or
44
44
  self-approve. Drift → [`spec-drift-guard.md`](reference/spec-drift-guard.md);
45
45
  checkpoint → [`checkpoint.md`](reference/checkpoint.md).
46
+ - Async readiness waits during slice work follow
47
+ [`debug-recovery.md`](../devrites-lib/reference/standards/debug-recovery.md)
48
+ (bounded poll + last-signal artifact; no blind sleep as primary strategy).
46
49
 
47
50
  ## Workflow Artifact branch
48
51
 
@@ -62,3 +65,12 @@ approved fail-on-red proof, record, AFK accounting, and stop. Use
62
65
  [`reply contract`](../devrites-lib/reference/reply-contract.md). HITL never starts
63
66
  the next slice automatically; AFK chains only within its durable remaining
64
67
  budget; Prove starts only after all slices are built.
68
+
69
+ ## Phase exit (observable)
70
+
71
+ **Complete when:** the dispatched wright returns green proof for the slice,
72
+ `git diff --name-only` ⊆ allowlist, independent test analysis admits no Critical
73
+ gap, and `state.md` cursor advances with recorded evidence paths.
74
+
75
+ **Failing case:** wright reports "done" but proof command was not executed or
76
+ failed → slice incomplete; do not advance cursor.
@@ -21,7 +21,9 @@ prerequisite skill to run.
21
21
  > review use `$rite-review`; to prove a finished feature use `$rite-prove`.
22
22
 
23
23
  ## Rules consulted (read on demand from `.agents/skills/devrites-lib/reference/standards/`)
24
+
24
25
  Pull on demand:
26
+
25
27
  - `principles.md`: the project invariants (`.devrites/principles.md`); code that violates a
26
28
  MUST principle is the highest-severity gap and produces a remediation slice.
27
29
  - `spec-grammar.md`: buildable acceptance criteria vs `## Success metrics` (outcome KPIs the
@@ -34,6 +36,7 @@ Pull on demand:
34
36
  triggered applicability rows; missing failure/recovery behavior is partial or absent.
35
37
 
36
38
  ## Operating rules
39
+
37
40
  - **APPEND-ONLY, never rewrite.** The only write to `tasks.md` is **appending** new
38
41
  `SLICE-###` entries. Never rewrite, renumber, reorder, or delete an existing slice
39
42
  (including slices a prior convergence appended). Never edit `spec.md` or `plan.md`. Never
@@ -58,6 +61,7 @@ Pull on demand:
58
61
  workspace changes.
59
62
 
60
63
  ## Workflow
64
+
61
65
  0. **Read `.agents/skills/devrites-lib/reference/standards/core.md`** first (the always-on
62
66
  operating rules), then resolve the active slug, require its `state.md`, and
63
67
  read the cursor directly.
@@ -103,10 +107,25 @@ Pull on demand:
103
107
  `$rite-prove` if the code already
104
108
  converged).
105
109
 
110
+ ## Completion evidence (fail-closed)
111
+
112
+ Before reporting "clean" or recommending `$rite-prove`, confirm:
113
+
114
+ - [ ] Every buildable AC/REQ in the assessment inventory has a built/partial/absent
115
+ classification with live-code citation
116
+ - [ ] `tasks.md` is byte-for-byte unchanged when clean, or append-only when gaps exist
117
+ - [ ] `traceability.md` updated only for appended slices
118
+ - [ ] No narrative "done" without the checklist above
119
+
120
+ **Failing case:** all units marked built but one AC lacks a test or runtime citation →
121
+ report partial, append slice, route `$rite-vet`.
122
+
106
123
  ## Appended slice format
124
+
107
125
  Use the complete
108
126
  [`canonical slice grammar`](../devrites-lib/reference/workspace-artifact-schema.md#canonical-slice-grammar)
109
127
  with one added `Convergence:` field after `Satisfies:`:
128
+
110
129
  ```markdown
111
130
  <!-- Convergence 2026-07-07: slices below appended by $rite-converge — live code assessed against intent. -->
112
131
  ## SLICE-014 <name of the unmet capability>
@@ -44,6 +44,16 @@ List vertical `SLICE-###` increments, AC coverage, and risk-first order within d
44
44
  tiers. Wide refactors use expand → green migrate batches → contract, or an integration
45
45
  branch + final verify slice.
46
46
 
47
+ ## Architecture admission
48
+
49
+ Promote to ADR only **irreversible cross-boundary** choices (public contract,
50
+ security invariant, migration that cannot roll back). Reversible config, helper
51
+ placement, library version, or env default stays in `plan.md` / `decisions.md` as
52
+ implementation-local or planning-owned — not architecture.
53
+
54
+ **Failing case:** "Use env `FOO=bar` as default" recorded under Architecture decisions
55
+ → Vet requests downgrade to implementation-local horizon with observable trigger.
56
+
47
57
  ## Architecture decisions
48
58
  Decisions + rationale (mirror to `decisions.md`). Prefer reuse and invariants over
49
59
  scaffolding. Medium+ entries add `Binds:`/`Prevents:`. Interfaces name invariants, I/O,
@@ -18,26 +18,24 @@ of one authority; it cannot promote a rule alone.
18
18
 
19
19
  ## Workflow
20
20
 
21
- 1. Read [durable promotion](../devrites-lib/reference/standards/documentation.md#promote-durable-guidance).
22
- Bound the archive; inspect applicable
23
- `AGENTS.md`/`CLAUDE.md`, accepted ADRs, and relevant
24
- `.devrites/archive/*/{decisions,drift,review,seal}.md` files.
25
- 2. In broad mode, dispatch exact `devrites-retrospector` fresh/read-only; reconcile its
26
- claims against cited files.
27
- 3. Keep a correction repeated in two features or one explicit durable product/architecture
28
- decision with rationale. Drop one-off, generic, or stale items.
29
- 4. Verify claims against live authoritative repository sources. State the currentness signal,
30
- applies/does-not-apply scope, and `unknown` where unverifiable.
31
- 5. Search guidance for the same/contrary rule. Choose one existing canonical owner: nearest
32
- instruction/standard, architecture ADR, or feature `decisions.md`; name discovery.
33
- 6. Show the exact edit and duplicate/conflict/supersession disposition. Update, narrow,
34
- replace, or retire contradictions; apply only after user approval of the exact edits.
21
+ 1. Read [durable promotion](../devrites-lib/reference/standards/documentation.md#promote-durable-guidance);
22
+ bound the archive; inspect applicable `AGENTS.md`/`CLAUDE.md`, accepted ADRs, and relevant `.devrites/archive/*/{decisions,drift,review,seal}.md`.
23
+ 2. Broad mode dispatches exact fresh/read-only `devrites-retrospector`; reconcile its claims against cited files.
24
+ 3. Keep corrections repeated in two features, a judgement call made twice, or a defect class seen twice; drop one-off preferences, task-specific detail, generic advice.
25
+ 4. Verify claims against live authoritative sources; state currentness signal, applies/does-not-apply scope, `unknown` where unverifiable.
26
+ **Research promotion requires:** each external claim carries **URL + retrieval date
27
+ (ISO)** in the proposal. A finding without dated URL fails learn promotion.
28
+ **Failing case:** "best practice is X" with no source → reject promotion.
29
+ 5. Search guidance for same/contrary rules; choose one existing canonical owner (nearest instruction/standard, architecture ADR, or feature `decisions.md`) and name discovery.
30
+ 6. Show the exact edit + duplicate/conflict/supersession disposition; update/narrow/replace/retire contradictions; apply only after user approval of exact edits.
35
31
 
36
32
  ## Rules
37
33
 
38
34
  - Live repository evidence outranks memory; unverifiable is unknown, not false.
39
- - Never create a learning ledger/index/queue, score, timeline, or parallel authority.
40
- - Rejected directions return only when evidence changes their rationale.
35
+ - Never create a learning ledger/index/queue, score, timeline, or parallel authority; rejected directions return only when evidence changes their rationale.
36
+ - A declined lesson persists as a declined decision entry (reason recorded) in the nearest owning decisions file — not re-litigated without new evidence.
37
+ - Contradiction outranks staleness: actively misleading guidance outranks merely old guidance.
38
+ - ≤3 accepted lessons per round; proposals extend/narrow but never lower an existing bar (revisions show old text beside new); duplicates consolidate into one canonical edit — simplification (deletions/merges) counts toward the cap.
41
39
 
42
40
  ## Output
43
41
 
@@ -26,6 +26,19 @@ live in `reference/code.md` and `reference/ui.md`; read only the phase in scope.
26
26
  [`agents.md`](../devrites-lib/reference/standards/agents.md). Never edit source inline or
27
27
  run two correction writers concurrently.
28
28
 
29
+ ## Polish axes (C3 — completeness vs craft)
30
+
31
+ Score **separately**; conflating them hides gaps:
32
+
33
+ | Axis | Question | Failing case |
34
+ | --- | --- | --- |
35
+ | **ux_coverage** | Did we compare every stated alternative/state? | Omitted empty/error state treated as agreement |
36
+ | **completeness** | Are required states, copy, and flows present? | Hero-only layout with no loading/error |
37
+ | **craft / anti-slop** | Does the UI avoid generic template patterns? | Inter + purple gradient hero with no product-specific hierarchy |
38
+ | **distinction** | Is there one intentional signature detail? | Polished but indistinguishable from a template |
39
+
40
+ Incomplete comparison is **not** agreement. Record axis deltas in `polish-report.md`.
41
+
29
42
  ## Orchestration
30
43
 
31
44
  0. **Read** `.agents/skills/devrites-lib/reference/standards/core.md` first (the always-on operating rules). The
@@ -90,6 +90,8 @@ Each is pass/fail by counting or grep, not judgment:
90
90
  - **Layout families** (hero, image+text split, card grid, bento, table…): no family more
91
91
  than twice per page; never 3 consecutive image+text zigzags.
92
92
  - **Icons**: 0 emoji-as-icon; exactly one icon set imported.
93
+ - **State presence in code**: default+hover+focus-visible+active+disabled for every interactive element; loading/error/empty where data delays or fails — an unreachable state's screenshot proves nothing.
94
+ - **Form inputs**: no border-width shifts between states; focus ring from outline/ring (not border swap); consistent control height; reserved helper slot; disabled beyond opacity alone.
93
95
 
94
96
  ## Code anti-slop (UI **and** backend)
95
97
  - **Over-defensive checks** — `if (x && x.length > 0)` repeated, layered null guards,
@@ -12,6 +12,7 @@ Use when the idea—not only requirements—is rough. Compare directions before
12
12
  first and write only workspace/ticket artifacts.
13
13
 
14
14
  ## Diverge (widen)
15
+
15
16
  - Search `decisions.md`, accepted ADRs, and relevant archives for rejected directions;
16
17
  revive one only with evidence that answers its recorded reason, citing both.
17
18
  - Generate 3-5 different shapes, including obvious, smaller, and different-boundary/data/
@@ -20,6 +21,7 @@ first and write only workspace/ticket artifacts.
20
21
  - For each, name concrete entities/flows/surfaces, optimization, rough cost, and main risk.
21
22
 
22
23
  ## Converge (commit)
24
+
23
25
  - Weigh options against the goal, constraints, and existing codebase conventions.
24
26
  - Prefer felt pain over nice-to-have. Rank differentiation: new capability > 10× gain >
25
27
  new audience > new context > better UX > cheaper; do not dress a vitamin as a painkiller.
@@ -33,10 +35,13 @@ If the hinge is an uncertain material fact, freeze at most three questions for
33
35
  `unavailable`, never support. Record claim, support, strongest contrary evidence, and
34
36
  `supported | assumption | refuted`. Refutation changes the recommendation; an assumption
35
37
  advances only when non-decisive with bounded downside. Weak/conflicting decisive evidence
36
- returns **Hold** with the resolving evidence, never `$rite-spec`. Do not research preferences
38
+ returns **Hold** with the resolving evidence, never `$rite-spec`. Tie-breaker:
39
+ see [`intent-map.md`](../devrites-lib/reference/intent-map.md) (`rite-pressure-test`
40
+ vs `rite-spec`). Do not research preferences
37
41
  or reversible implementation choices.
38
42
 
39
43
  ## Boundaries
44
+
40
45
  - This is exploration, not specification. Output a **direction**, not a finished spec:
41
46
  `$rite-spec` writes the spec.
42
47
  - Don't over-explore: 3-5 options, one pass of convergence. If the user already knows
@@ -111,3 +111,12 @@ test changes.
111
111
 
112
112
  > Do not claim an unobserved pass, skip browser proof, or proceed with pending
113
113
  > slices. Load `reference/anti-patterns.md` when tempted to do so.
114
+
115
+ ## Phase exit (observable)
116
+
117
+ **Complete when:** every criterion in `acceptance-proof.md` has discriminating
118
+ evidence bound to the current candidate digest, both independent validators admit
119
+ accounts, and `state.md` records Prove complete with no open `cannot_verify` rows.
120
+
121
+ **Failing case:** narrative "all tests passed" without `evidence.md` binding and
122
+ proof-runner admission → phase not complete; Seal blocks.
@@ -14,6 +14,16 @@ filtered, pending, zero-test, assertion-free, tautological, or unexecuted result
14
14
  do not count. Build/compile/typecheck/lint prove only their static criterion;
15
15
  discriminating shell assertions and golden/text comparisons may prove text/CLI.
16
16
 
17
+ ## Silent-failure probe
18
+
19
+ When tests pass but error paths, dropped results, or partial success could hide
20
+ failure, require at least one **discriminating** check that would fail if the silent
21
+ path regressed (assert the failure surface, not only the happy path).
22
+
23
+ **Failing case:** handler returns success while logging or swallowing internally; the
24
+ suite stays green → map `cannot_verify` unless a test asserts the user-visible or
25
+ contract failure outcome.
26
+
17
27
  ## Backstop disposition
18
28
 
19
29
  A `backstop` passes only on its spec-named independent held-out,
@@ -20,7 +20,9 @@ tell the user to run `$rite-spec <feature>`.
20
20
  all workflow-named roles remain mandatory at every depth.
21
21
 
22
22
  ## Rules consulted (read on demand from `.agents/skills/devrites-lib/reference/standards/`)
23
+
23
24
  Pull these via `Read` when the diff demands them:
25
+
24
26
  - `code-review.md`: small PRs, severity labels, tests-first review focus.
25
27
  - `review-checklist.md`: compact pass/fail sweep before reporting the verdict.
26
28
  - `principles.md`: declared project invariants (`.devrites/principles.md`); a diff that violates one with no recorded exception is a Critical, blocking finding.
@@ -33,9 +35,13 @@ Pull these via `Read` when the diff demands them:
33
35
  - `performance.md`: only when perf is relevant or a regression risk is visible.
34
36
 
35
37
  ## Operating rules
38
+
36
39
  - **Feature scope only.** Review touched files + the diff. **NO whole-project refactors,
37
40
  NO drive-by cleanup.** DO NOT delete suspected dead code outside this feature without
38
41
  asking. Spec Drift Guard applies.
42
+ - **Silent-failure hunt:** when the suite is green, require proof that error paths and
43
+ partial-success branches would fail tests if broken. **Failing case:** tests pass but
44
+ handler returns success on internal error → Critical until an asserting test exists.
39
45
  - **Review the finished product.** `$rite-polish` has already simplified code and
40
46
  normalized or polished UI. If review finds a remaining complexity issue, record it as
41
47
  a finding rather than rerunning a simplification pass.
@@ -49,6 +55,7 @@ Pull these via `Read` when the diff demands them:
49
55
  route to `devrites-slice-wright`.
50
56
 
51
57
  ## Workflow
58
+
52
59
  0. Read `.agents/skills/devrites-lib/reference/standards/core.md` first (the always-on operating rules); pull the
53
60
  on-demand rules above as the diff demands them.
54
61
  Then read the explicit or active workspace's `state.md` directly.
@@ -129,6 +136,7 @@ Pull these via `Read` when the diff demands them:
129
136
  correction has affected proof plus a fresh Review.
130
137
 
131
138
  ## Finding labels
139
+
132
140
  - **Critical:** must fix before seal (correctness/security/data loss).
133
141
  - **Important:** should fix before seal (likely bug, real maintainability risk).
134
142
  - **Suggestion:** worth doing, not blocking.
@@ -141,6 +149,7 @@ change is already small: a pure noise-economics lever). Only a **`blocking` Crit
141
149
  seal; a `non-blocking` / `if-minor` finding is recorded, not a stop.
142
150
 
143
151
  ## Confidence and signal-to-noise
152
+
144
153
  Apply [`agents.md` § Result admission](../devrites-lib/reference/standards/agents.md#result-admission).
145
154
  Suppress unverifiable ≤4 hypotheses, require 7+ plus exact proof for
146
155
  Critical/Important, and make every silent/unusable account a blocking gap. Roll
@@ -11,7 +11,7 @@ Emit `.devrites/work/<slug>/checklists/<domain>.md` per covered domain; skip
11
11
  `none`. Each domain maps gaps to a `devrites-interview` dimension:
12
12
 
13
13
  | Domain file | Tests the prose of |
14
- |---|---|
14
+ | --- | --- |
15
15
  | `functional.md` | Functional requirements + scenarios: is each capability stated, bounded, testable? |
16
16
  | `data-model.md` | Key entities / data model: shapes, fields, lifecycle, relationships (skip if "none"). |
17
17
  | `interaction.md` | API / UI impact + UX states: every screen state and contract named (skip if no UI/API). |
@@ -39,6 +39,7 @@ undefined stated-flow edge, or contradictory requirements. Other vague prose is
39
39
  ## Question bank
40
40
 
41
41
  Each question checks one requirement-prose failure mode:
42
+
42
43
  - **Measurability:** every "good / fast / prominent / simple / secure" carries a number, a budget,
43
44
  or a named reference. No adjective stands in for a threshold.
44
45
  - **Completeness:** every enumeration is closed (no "etc."); every requirement with a precondition
@@ -64,6 +65,8 @@ Each question checks one requirement-prose failure mode:
64
65
  - **Preservation:** each material brownfield outcome appears in `Existing behavior
65
66
  to preserve` with preserving REQ/AC and current evidence. Missing/vague “no
66
67
  regressions” or unjustified `none` is CRITICAL.
68
+ **Failing case:** brownfield login still works but the table has no evidence column
69
+ → CRITICAL until a test path, command, or observed contract is named.
67
70
  - **Backstops:** each row names an independent held-out, property/metamorphic, or
68
71
  direct behavioral check and the failure it discriminates; confidence/presence/self-review fail.
69
72
  - **Non-functional:** each NFR names affected REQ/AC IDs or a bounded `global` scope;
@@ -80,6 +83,7 @@ unchecked**. A spec without checklists is not yet checked, so define stops and r
80
83
  back here.
81
84
 
82
85
  ## Discipline
86
+
83
87
  - Score honestly. Do not soften a checklist question to pass a weak spec.
84
88
  - Don't pad. Five real questions that find one CRITICAL beat thirty rubber-stamped rows.
85
89
  - If a question needs a function name, it belongs in `$rite-vet`'s `test-plan.md`.
@@ -33,6 +33,12 @@ No implementation detail. True greenfield: `none — no existing behavior in the
33
33
  | --- | --- | --- |
34
34
  | <outcome that must not regress> | REQ-001 / AC-001 | <current evidence> |
35
35
 
36
+ Each preservation row **must** cite current evidence (test, runtime, contract, or
37
+ observed behavior). An empty or vague evidence cell blocks Spec readiness.
38
+
39
+ **Failing case:** row lists REQ-001 with evidence "none" or "TBD" → readiness gate
40
+ fails until evidence is named or the outcome is removed from scope.
41
+
36
42
  ## Stakeholders and priorities
37
43
  | Actor/stakeholder | Observable outcome | Conflict / priority rule |
38
44
  | --- | --- | --- |
@@ -40,6 +40,12 @@ plan declares a root-authored executable workflow file, read
40
40
  unverified or confidence ≤4 findings under `review-axes.md`.
41
41
  - Auth, migration, public API, and data-model changes use maximum caution and the
42
42
  irreversible-risk stop. Project principles never become trade-offs.
43
+ - **Governance-protected paths** (`.devrites/**`, pack skill/agent trees,
44
+ `NOTICE.md` generator regions, CI/hook config named in repo docs) require explicit
45
+ human approval before plan slices may edit them. A slice touching a protected path
46
+ without approval → Vet **NEEDS CLARIFICATION**.
47
+ **Failing case:** plan edits another feature's `state.md` without recorded approval →
48
+ fail closed.
43
49
  - Use the lowest axis band; never average or round thin to ready. Search before
44
50
  asking and resolve reversible technical choices. Ask only human-owned choices.
45
51
  - Preserve a valid technical return cursor. Agent-owned `NEEDS REPLAN` returns
@@ -138,3 +144,11 @@ plan declares a root-authored executable workflow file, read
138
144
 
139
145
  > Do not replace interactive review with artifacts, change acceptance through
140
146
  > hardening, score without source evidence, or ignore unexplained complexity.
147
+
148
+ ## Phase exit (observable)
149
+
150
+ **Complete when:** `eng-review.md` records exactly one readiness verdict, readiness
151
+ binding SHA-256 passes, and every required reviewer account is admitted.
152
+
153
+ **Failing case:** READY written while a required reviewer returned `Outcome: gap` →
154
+ not complete; restore NEEDS REPLAN or dispatch missing reviewer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devrites",
3
- "version": "4.4.2",
3
+ "version": "4.5.0",
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",