devrites 5.10.2 → 5.11.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 (250) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +24 -10
  3. package/bin/devrites.mjs +2 -0
  4. package/docs/command-map.md +5 -4
  5. package/docs/skills.md +10 -4
  6. package/engine/internal/devritespaths/paths.go +2 -0
  7. package/engine/internal/hostpack/hostpack.go +39 -5
  8. package/engine/internal/hostpack/hostpack_test.go +27 -13
  9. package/engine/internal/install/apply.go +17 -4
  10. package/engine/internal/install/install.go +9 -2
  11. package/engine/internal/install/install_test.go +15 -2
  12. package/engine/internal/install/preflight.go +8 -2
  13. package/engine/internal/install/update.go +1 -1
  14. package/install.sh +4 -1
  15. package/pack/generated/README.md +4 -2
  16. package/pack/generated/devin/AGENTS.md +23 -0
  17. package/pack/generated/devin/agents/devrites-code-reviewer.md +145 -0
  18. package/pack/generated/devin/agents/devrites-devex-reviewer.md +126 -0
  19. package/pack/generated/devin/agents/devrites-doubt-reviewer.md +91 -0
  20. package/pack/generated/devin/agents/devrites-evidence-scout.md +77 -0
  21. package/pack/generated/devin/agents/devrites-frontend-reviewer.md +119 -0
  22. package/pack/generated/devin/agents/devrites-performance-reviewer.md +117 -0
  23. package/pack/generated/devin/agents/devrites-plan-drafter.md +102 -0
  24. package/pack/generated/devin/agents/devrites-plan-reviewer.md +144 -0
  25. package/pack/generated/devin/agents/devrites-proof-runner.md +76 -0
  26. package/pack/generated/devin/agents/devrites-retrospector.md +64 -0
  27. package/pack/generated/devin/agents/devrites-security-auditor.md +112 -0
  28. package/pack/generated/devin/agents/devrites-simplifier-reviewer.md +97 -0
  29. package/pack/generated/devin/agents/devrites-slice-wright.md +219 -0
  30. package/pack/generated/devin/agents/devrites-spec-reviewer.md +99 -0
  31. package/pack/generated/devin/agents/devrites-strategy-reviewer.md +102 -0
  32. package/pack/generated/devin/agents/devrites-test-analyst.md +97 -0
  33. package/pack/generated/devin/agents/devrites-upgrade-planner.md +91 -0
  34. package/pack/generated/devin/skills/devrites-api-interface/SKILL.md +64 -0
  35. package/pack/generated/devin/skills/devrites-audit/SKILL.md +51 -0
  36. package/pack/generated/devin/skills/devrites-browser-proof/SKILL.md +77 -0
  37. package/pack/generated/devin/skills/devrites-browser-proof/reference/browser-performance.md +15 -0
  38. package/pack/generated/devin/skills/devrites-browser-proof/reference/visual-verdict.md +34 -0
  39. package/pack/generated/devin/skills/devrites-debug-recovery/SKILL.md +97 -0
  40. package/pack/generated/devin/skills/devrites-debug-recovery/reference/build-the-loop.md +58 -0
  41. package/pack/generated/devin/skills/devrites-debug-recovery/reference/cleanup-and-classify.md +34 -0
  42. package/pack/generated/devin/skills/devrites-debug-recovery/reference/hypotheses.md +17 -0
  43. package/pack/generated/devin/skills/devrites-debug-recovery/reference/instrumentation.md +21 -0
  44. package/pack/generated/devin/skills/devrites-debug-recovery/reference/regression-test.md +30 -0
  45. package/pack/generated/devin/skills/devrites-debug-recovery/reference/trace.md +25 -0
  46. package/pack/generated/devin/skills/devrites-doubt/SKILL.md +80 -0
  47. package/pack/generated/devin/skills/devrites-frontend-craft/SKILL.md +87 -0
  48. package/pack/generated/devin/skills/devrites-frontend-craft/reference/craft.md +63 -0
  49. package/pack/generated/devin/skills/devrites-frontend-craft/reference/design-references.md +116 -0
  50. package/pack/generated/devin/skills/devrites-frontend-craft/reference/fullstack.md +46 -0
  51. package/pack/generated/devin/skills/devrites-frontend-craft/reference/quality-standards.md +294 -0
  52. package/pack/generated/devin/skills/devrites-frontend-craft/reference/reuse-first.md +53 -0
  53. package/pack/generated/devin/skills/devrites-frontend-craft/reference/shape.md +56 -0
  54. package/pack/generated/devin/skills/devrites-interview/SKILL.md +103 -0
  55. package/pack/generated/devin/skills/devrites-lib/SKILL.md +57 -0
  56. package/pack/generated/devin/skills/devrites-lib/reference/candidate-integrity.md +42 -0
  57. package/pack/generated/devin/skills/devrites-lib/reference/intent-map.md +64 -0
  58. package/pack/generated/devin/skills/devrites-lib/reference/orchestration-profiles.md +27 -0
  59. package/pack/generated/devin/skills/devrites-lib/reference/parallel-dispatch.md +73 -0
  60. package/pack/generated/devin/skills/devrites-lib/reference/reply-contract.md +88 -0
  61. package/pack/generated/devin/skills/devrites-lib/reference/standards/README.md +60 -0
  62. package/pack/generated/devin/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md +30 -0
  63. package/pack/generated/devin/skills/devrites-lib/reference/standards/afk-hitl.md +415 -0
  64. package/pack/generated/devin/skills/devrites-lib/reference/standards/agents.md +99 -0
  65. package/pack/generated/devin/skills/devrites-lib/reference/standards/anti-patterns.md +48 -0
  66. package/pack/generated/devin/skills/devrites-lib/reference/standards/browser-proof-checklist.md +24 -0
  67. package/pack/generated/devin/skills/devrites-lib/reference/standards/ci-cd.md +50 -0
  68. package/pack/generated/devin/skills/devrites-lib/reference/standards/code-navigation.md +43 -0
  69. package/pack/generated/devin/skills/devrites-lib/reference/standards/code-review.md +108 -0
  70. package/pack/generated/devin/skills/devrites-lib/reference/standards/coding-style.md +48 -0
  71. package/pack/generated/devin/skills/devrites-lib/reference/standards/context-hygiene.md +109 -0
  72. package/pack/generated/devin/skills/devrites-lib/reference/standards/core.md +167 -0
  73. package/pack/generated/devin/skills/devrites-lib/reference/standards/data-integrity.md +118 -0
  74. package/pack/generated/devin/skills/devrites-lib/reference/standards/debug-recovery.md +28 -0
  75. package/pack/generated/devin/skills/devrites-lib/reference/standards/definition-of-done.md +19 -0
  76. package/pack/generated/devin/skills/devrites-lib/reference/standards/deprecation.md +31 -0
  77. package/pack/generated/devin/skills/devrites-lib/reference/standards/developer-experience.md +119 -0
  78. package/pack/generated/devin/skills/devrites-lib/reference/standards/development-workflow.md +29 -0
  79. package/pack/generated/devin/skills/devrites-lib/reference/standards/documentation.md +43 -0
  80. package/pack/generated/devin/skills/devrites-lib/reference/standards/edge-case-trace.md +92 -0
  81. package/pack/generated/devin/skills/devrites-lib/reference/standards/elicitation.md +85 -0
  82. package/pack/generated/devin/skills/devrites-lib/reference/standards/error-handling.md +47 -0
  83. package/pack/generated/devin/skills/devrites-lib/reference/standards/git-workflow.md +49 -0
  84. package/pack/generated/devin/skills/devrites-lib/reference/standards/hooks.md +25 -0
  85. package/pack/generated/devin/skills/devrites-lib/reference/standards/integration-reliability.md +102 -0
  86. package/pack/generated/devin/skills/devrites-lib/reference/standards/loop-operations.md +85 -0
  87. package/pack/generated/devin/skills/devrites-lib/reference/standards/observability.md +88 -0
  88. package/pack/generated/devin/skills/devrites-lib/reference/standards/one-shot-actions.md +97 -0
  89. package/pack/generated/devin/skills/devrites-lib/reference/standards/patterns.md +68 -0
  90. package/pack/generated/devin/skills/devrites-lib/reference/standards/performance.md +51 -0
  91. package/pack/generated/devin/skills/devrites-lib/reference/standards/principles.md +42 -0
  92. package/pack/generated/devin/skills/devrites-lib/reference/standards/prose-style.md +123 -0
  93. package/pack/generated/devin/skills/devrites-lib/reference/standards/release/ship-checklist.md +8 -0
  94. package/pack/generated/devin/skills/devrites-lib/reference/standards/repository-topology.md +80 -0
  95. package/pack/generated/devin/skills/devrites-lib/reference/standards/review-checklist.md +12 -0
  96. package/pack/generated/devin/skills/devrites-lib/reference/standards/security-checklist.md +25 -0
  97. package/pack/generated/devin/skills/devrites-lib/reference/standards/security.md +202 -0
  98. package/pack/generated/devin/skills/devrites-lib/reference/standards/skill-authoring.md +209 -0
  99. package/pack/generated/devin/skills/devrites-lib/reference/standards/spec-grammar.md +197 -0
  100. package/pack/generated/devin/skills/devrites-lib/reference/standards/test-proof-checklist.md +13 -0
  101. package/pack/generated/devin/skills/devrites-lib/reference/standards/testing.md +212 -0
  102. package/pack/generated/devin/skills/devrites-lib/reference/standards/tooling.md +92 -0
  103. package/pack/generated/devin/skills/devrites-lib/reference/standards/workflow-artifacts.md +427 -0
  104. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/code.md +44 -0
  105. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/comparison.md +42 -0
  106. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/diagram.md +51 -0
  107. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/index.md +66 -0
  108. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/input.md +46 -0
  109. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/outline-template.md +106 -0
  110. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/plan.md +48 -0
  111. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/slides.md +40 -0
  112. package/pack/generated/devin/skills/devrites-lib/reference/visual-playbooks/table.md +42 -0
  113. package/pack/generated/devin/skills/devrites-lib/reference/workspace-artifact-schema.md +267 -0
  114. package/pack/generated/devin/skills/devrites-prose-craft/SKILL.md +74 -0
  115. package/pack/generated/devin/skills/devrites-prose-craft/reference/banned-phrases.md +132 -0
  116. package/pack/generated/devin/skills/devrites-prose-craft/reference/examples.md +131 -0
  117. package/pack/generated/devin/skills/devrites-prose-craft/reference/structures.md +196 -0
  118. package/pack/generated/devin/skills/devrites-source-driven/SKILL.md +53 -0
  119. package/pack/generated/devin/skills/devrites-ux-shape/SKILL.md +135 -0
  120. package/pack/generated/devin/skills/devrites-ux-shape/reference/brief-template.md +108 -0
  121. package/pack/generated/devin/skills/devrites-ux-shape/reference/visual-direction-probe.md +48 -0
  122. package/pack/generated/devin/skills/rite/SKILL.md +148 -0
  123. package/pack/generated/devin/skills/rite/reference/menu.md +48 -0
  124. package/pack/generated/devin/skills/rite-adopt/SKILL.md +51 -0
  125. package/pack/generated/devin/skills/rite-adopt/reference/adoption.md +19 -0
  126. package/pack/generated/devin/skills/rite-adopt/reference/anti-patterns.md +19 -0
  127. package/pack/generated/devin/skills/rite-autocomplete/SKILL.md +142 -0
  128. package/pack/generated/devin/skills/rite-autocomplete/reference/decision-policy.md +43 -0
  129. package/pack/generated/devin/skills/rite-autocomplete/reference/loop.md +151 -0
  130. package/pack/generated/devin/skills/rite-autocomplete/reference/stop-conditions.md +97 -0
  131. package/pack/generated/devin/skills/rite-build/SKILL.md +102 -0
  132. package/pack/generated/devin/skills/rite-build/reference/afk-discipline.md +148 -0
  133. package/pack/generated/devin/skills/rite-build/reference/anti-patterns.md +27 -0
  134. package/pack/generated/devin/skills/rite-build/reference/checkpoint-protocol.md +120 -0
  135. package/pack/generated/devin/skills/rite-build/reference/checkpoint.md +56 -0
  136. package/pack/generated/devin/skills/rite-build/reference/frontend-trigger.md +39 -0
  137. package/pack/generated/devin/skills/rite-build/reference/one-slice-cycle.md +51 -0
  138. package/pack/generated/devin/skills/rite-build/reference/output.md +33 -0
  139. package/pack/generated/devin/skills/rite-build/reference/parallel-batch.md +214 -0
  140. package/pack/generated/devin/skills/rite-build/reference/phase-contract.md +89 -0
  141. package/pack/generated/devin/skills/rite-build/reference/spec-drift-guard.md +84 -0
  142. package/pack/generated/devin/skills/rite-build/reference/tdd.md +27 -0
  143. package/pack/generated/devin/skills/rite-build/reference/wright-dispatch.md +96 -0
  144. package/pack/generated/devin/skills/rite-clarify/SKILL.md +98 -0
  145. package/pack/generated/devin/skills/rite-clarify/reference/anti-patterns.md +24 -0
  146. package/pack/generated/devin/skills/rite-clarify/reference/decision-coverage.md +55 -0
  147. package/pack/generated/devin/skills/rite-converge/SKILL.md +144 -0
  148. package/pack/generated/devin/skills/rite-converge/reference/anti-patterns.md +35 -0
  149. package/pack/generated/devin/skills/rite-converge/reference/convergence-assessment.md +65 -0
  150. package/pack/generated/devin/skills/rite-customize/SKILL.md +60 -0
  151. package/pack/generated/devin/skills/rite-define/SKILL.md +168 -0
  152. package/pack/generated/devin/skills/rite-define/reference/anti-patterns.md +26 -0
  153. package/pack/generated/devin/skills/rite-define/reference/gates.md +159 -0
  154. package/pack/generated/devin/skills/rite-define/reference/plan-template.md +149 -0
  155. package/pack/generated/devin/skills/rite-doctor/SKILL.md +68 -0
  156. package/pack/generated/devin/skills/rite-dogfood/SKILL.md +55 -0
  157. package/pack/generated/devin/skills/rite-explain/SKILL.md +152 -0
  158. package/pack/generated/devin/skills/rite-explain/reference/intake.md +89 -0
  159. package/pack/generated/devin/skills/rite-frame/SKILL.md +114 -0
  160. package/pack/generated/devin/skills/rite-frame/reference/failure-modes.md +66 -0
  161. package/pack/generated/devin/skills/rite-handoff/SKILL.md +97 -0
  162. package/pack/generated/devin/skills/rite-handoff/reference/handoff-template.md +44 -0
  163. package/pack/generated/devin/skills/rite-learn/SKILL.md +72 -0
  164. package/pack/generated/devin/skills/rite-plan/SKILL.md +185 -0
  165. package/pack/generated/devin/skills/rite-plan/reference/anti-patterns.md +34 -0
  166. package/pack/generated/devin/skills/rite-plan/reference/dependency-graph.md +48 -0
  167. package/pack/generated/devin/skills/rite-plan/reference/replan-and-repair.md +105 -0
  168. package/pack/generated/devin/skills/rite-plan/reference/slicing.md +168 -0
  169. package/pack/generated/devin/skills/rite-plan/reference/task-breakdown.md +42 -0
  170. package/pack/generated/devin/skills/rite-polish/SKILL.md +105 -0
  171. package/pack/generated/devin/skills/rite-polish/reference/adr-promotion.md +11 -0
  172. package/pack/generated/devin/skills/rite-polish/reference/anti-ai-slop.md +187 -0
  173. package/pack/generated/devin/skills/rite-polish/reference/anti-patterns.md +30 -0
  174. package/pack/generated/devin/skills/rite-polish/reference/backend-polish.md +80 -0
  175. package/pack/generated/devin/skills/rite-polish/reference/browser-polish-evidence.md +33 -0
  176. package/pack/generated/devin/skills/rite-polish/reference/code.md +82 -0
  177. package/pack/generated/devin/skills/rite-polish/reference/design-memory.md +117 -0
  178. package/pack/generated/devin/skills/rite-polish/reference/design-system-discovery.md +8 -0
  179. package/pack/generated/devin/skills/rite-polish/reference/harden-checklist.md +109 -0
  180. package/pack/generated/devin/skills/rite-polish/reference/ledger.md +65 -0
  181. package/pack/generated/devin/skills/rite-polish/reference/ui.md +137 -0
  182. package/pack/generated/devin/skills/rite-pov/SKILL.md +57 -0
  183. package/pack/generated/devin/skills/rite-pr-feedback/SKILL.md +54 -0
  184. package/pack/generated/devin/skills/rite-pressure-test/SKILL.md +66 -0
  185. package/pack/generated/devin/skills/rite-prototype/SKILL.md +104 -0
  186. package/pack/generated/devin/skills/rite-prove/SKILL.md +122 -0
  187. package/pack/generated/devin/skills/rite-prove/reference/acceptance-proof.md +88 -0
  188. package/pack/generated/devin/skills/rite-prove/reference/anti-patterns.md +25 -0
  189. package/pack/generated/devin/skills/rite-prove/reference/browser-proof.md +51 -0
  190. package/pack/generated/devin/skills/rite-prove/reference/failure-triage.md +43 -0
  191. package/pack/generated/devin/skills/rite-prove/reference/proof-ladder.md +28 -0
  192. package/pack/generated/devin/skills/rite-prove/reference/test-command-discovery.md +30 -0
  193. package/pack/generated/devin/skills/rite-quick/SKILL.md +81 -0
  194. package/pack/generated/devin/skills/rite-resolve/SKILL.md +98 -0
  195. package/pack/generated/devin/skills/rite-resolve/reference/answer-protocol.md +118 -0
  196. package/pack/generated/devin/skills/rite-review/SKILL.md +171 -0
  197. package/pack/generated/devin/skills/rite-review/reference/anti-patterns.md +32 -0
  198. package/pack/generated/devin/skills/rite-review/reference/cognitive-load.md +90 -0
  199. package/pack/generated/devin/skills/rite-review/reference/feature-scoped-review.md +26 -0
  200. package/pack/generated/devin/skills/rite-review/reference/five-axis-review.md +66 -0
  201. package/pack/generated/devin/skills/rite-review/reference/nielsen-heuristics.md +126 -0
  202. package/pack/generated/devin/skills/rite-review/reference/performance-checklist.md +80 -0
  203. package/pack/generated/devin/skills/rite-review/reference/performance-review.md +14 -0
  204. package/pack/generated/devin/skills/rite-review/reference/security-review.md +42 -0
  205. package/pack/generated/devin/skills/rite-seal/SKILL.md +74 -0
  206. package/pack/generated/devin/skills/rite-seal/reference/anti-patterns.md +29 -0
  207. package/pack/generated/devin/skills/rite-seal/reference/final-evidence.md +41 -0
  208. package/pack/generated/devin/skills/rite-seal/reference/go-no-go.md +29 -0
  209. package/pack/generated/devin/skills/rite-seal/reference/output.md +5 -0
  210. package/pack/generated/devin/skills/rite-seal/reference/phase-contract.md +47 -0
  211. package/pack/generated/devin/skills/rite-seal/reference/risk-and-rollback.md +56 -0
  212. package/pack/generated/devin/skills/rite-seal/reference/seal-template.md +27 -0
  213. package/pack/generated/devin/skills/rite-ship/SKILL.md +87 -0
  214. package/pack/generated/devin/skills/rite-ship/reference/anti-patterns.md +28 -0
  215. package/pack/generated/devin/skills/rite-ship/reference/close-out.md +68 -0
  216. package/pack/generated/devin/skills/rite-ship/reference/git-ship.md +120 -0
  217. package/pack/generated/devin/skills/rite-ship/reference/rollout.md +62 -0
  218. package/pack/generated/devin/skills/rite-ship/reference/ship-template.md +39 -0
  219. package/pack/generated/devin/skills/rite-spec/SKILL.md +149 -0
  220. package/pack/generated/devin/skills/rite-spec/reference/acceptance-criteria.md +31 -0
  221. package/pack/generated/devin/skills/rite-spec/reference/ai-spec-template.md +40 -0
  222. package/pack/generated/devin/skills/rite-spec/reference/anti-patterns.md +27 -0
  223. package/pack/generated/devin/skills/rite-spec/reference/interview-patterns.md +56 -0
  224. package/pack/generated/devin/skills/rite-spec/reference/investigation.md +83 -0
  225. package/pack/generated/devin/skills/rite-spec/reference/question-protocol.md +36 -0
  226. package/pack/generated/devin/skills/rite-spec/reference/references-intake.md +62 -0
  227. package/pack/generated/devin/skills/rite-spec/reference/spec-checklists.md +89 -0
  228. package/pack/generated/devin/skills/rite-spec/reference/spec-template.md +154 -0
  229. package/pack/generated/devin/skills/rite-spec/reference/state-workspace.md +227 -0
  230. package/pack/generated/devin/skills/rite-status/SKILL.md +57 -0
  231. package/pack/generated/devin/skills/rite-temper/SKILL.md +129 -0
  232. package/pack/generated/devin/skills/rite-temper/reference/anti-patterns.md +30 -0
  233. package/pack/generated/devin/skills/rite-temper/reference/review-dimensions.md +66 -0
  234. package/pack/generated/devin/skills/rite-temper/reference/scope-modes.md +53 -0
  235. package/pack/generated/devin/skills/rite-temper/reference/significance.md +46 -0
  236. package/pack/generated/devin/skills/rite-temper/reference/strategy-template.md +90 -0
  237. package/pack/generated/devin/skills/rite-upgrade/SKILL.md +121 -0
  238. package/pack/generated/devin/skills/rite-vet/SKILL.md +192 -0
  239. package/pack/generated/devin/skills/rite-vet/reference/anti-patterns.md +43 -0
  240. package/pack/generated/devin/skills/rite-vet/reference/artifacts.md +202 -0
  241. package/pack/generated/devin/skills/rite-vet/reference/cross-model.md +19 -0
  242. package/pack/generated/devin/skills/rite-vet/reference/depth.md +59 -0
  243. package/pack/generated/devin/skills/rite-vet/reference/eng-lenses.md +48 -0
  244. package/pack/generated/devin/skills/rite-vet/reference/review-axes.md +201 -0
  245. package/pack/generated/devin/skills/rite-watch-pr/SKILL.md +84 -0
  246. package/pack/generated/devin/skills/rite-zoom-out/SKILL.md +69 -0
  247. package/package.json +4 -2
  248. package/scripts/build-host-artifacts.sh +48 -5
  249. package/scripts/devin-generate.sh +222 -0
  250. package/update.sh +2 -1
@@ -0,0 +1,98 @@
1
+ ---
2
+ name: rite-resolve
3
+ description: User-invoked resume verb for answering, dropping, or batch-resolving open `questions.md` gates.
4
+ argument-hint: "<qid> \"<answer>\" | --drop <qid> [\"<reason>\"] | --batch <path-to-file>"
5
+ triggers:
6
+ - user
7
+ ---
8
+
9
+ # /rite-resolve: answer the human gate
10
+
11
+ `/rite-resolve` resumes an **async** human gate: a checkpoint that already paused and
12
+ **stopped the session** (an AFK blocking/escalating/irreversible queue, or a HITL pause
13
+ left unanswered), plus `--batch`. When `/rite-build` asks a question **inline**
14
+ via `AskUserQuestion` and the human is present, that pick resolves the gate **in place** through
15
+ the `devrites-engine state resolve` writer. You don't type `/rite-resolve` for it. For the async case this
16
+ skill takes the human's answer (or `--drop` / `--batch`), writes it to `questions.md`, updates
17
+ `state.md` (clears `Awaiting human`, sets `Status: running`), and recommends the next command.
18
+
19
+ It has one verb, one source of truth (`questions.md`), and one cursor (`state.md`). The
20
+ full AFK / HITL contract lives in
21
+ [`afk-hitl.md`](../devrites-lib/reference/standards/afk-hitl.md).
22
+
23
+ ## Rules consulted (read on demand from `.devin/skills/devrites-lib/reference/standards/`)
24
+
25
+ Pull these via `Read` when shaping the resolve:
26
+
27
+ - [`afk-hitl.md`](../devrites-lib/reference/standards/afk-hitl.md): gate taxonomy, `questions.md` schema, AFK exception rules.
28
+ - [`documentation.md`](../devrites-lib/reference/standards/documentation.md): record decisions and rationale where the answer changes scope.
29
+
30
+ ## Operating rules
31
+
32
+ - **Requires an active workspace.** Read `.devrites/ACTIVE` first; if empty, **STOP** and
33
+ tell the user to run `/rite-spec <feature>` first. If the slug has no `questions.md`,
34
+ report the missing required artifact and stop.
35
+ - **One mutation per call.** A single qid (or `--batch` file) per invocation; never
36
+ silently coalesce multiple human decisions into one log entry.
37
+ - **Never overwrite an answered question.** If the qid's `status` is `answered` or
38
+ `dropped`, refuse with the existing answer; ask the user to open a new qid that
39
+ references the old one (the file is the audit trail).
40
+ - **If the answer materially changes scope, architecture, or acceptance**, route it
41
+ through the Spec Drift Guard (`/rite-plan repair`) **after** writing the answer: do
42
+ not modify `spec.md` / `plan.md` inside this skill.
43
+ - **The script is the source of truth.** Always invoke
44
+ `devrites-engine state resolve`. It keeps `questions.md` + `state.md` consistent and emits the
45
+ next-action recommendation. The one `state.md` field this skill may write by hand is the
46
+ unblocked slice's `Slice mode` (step 4, the named exception); everything else goes through
47
+ the script, never by hand.
48
+ - **Human gates are for human-only decisions, not the agent's work.** A `questions.md` entry the
49
+ human must answer is a genuine decision (a scope / design / risk call only the human can make),
50
+ not a task the agent can do. If a question is really agent-doable ("should I write the
51
+ test?", "go implement X"), do not record a human answer that returns the agent's work to it:
52
+ flag the mis-tag and route it to the right skill (`/rite-build`, `/rite-plan unblock`,
53
+ `devrites-debug-recovery`). The human resolves decisions; the agent does the work.
54
+
55
+ ## Workflow
56
+
57
+ 0. **Read `.devin/skills/devrites-lib/reference/standards/core.md`** (operating rules + persistence discipline) before
58
+ touching the workspace.
59
+ Then read the explicit or active workspace's `state.md` directly.
60
+ 1. **Parse arguments.** `$ARGUMENTS` is one of:
61
+ - `<qid> "<answer>"`: answer the single open question.
62
+ - `--drop <qid>` (optional `"<reason>"`): mark the question `dropped`; record
63
+ the reason inline.
64
+ - `--batch <path-to-file>`: bulk resolve, one entry per qid (see
65
+ [`reference/answer-protocol.md`](reference/answer-protocol.md) for the batch
66
+ format).
67
+ 2. **Load context.** Read `state.md`, `questions.md`, and the relevant slice from
68
+ `tasks.md`. Confirm the qid is `status: open`. If `state.md` `Status` is not
69
+ `awaiting_human` and the question's `gate` is `blocking`, surface the inconsistency
70
+ before proceeding (don't auto-repair: flag it).
71
+ 3. **Apply explicit consent.** Supplying `<qid> "<answer>"`, `--drop`, or `--batch` is the
72
+ user's explicit consent for this local workspace mutation. Echo the qid, answer/drop,
73
+ and slice being unblocked, then continue immediately; do not ask the user to confirm the
74
+ command they just typed.
75
+ 4. **Mutate.** Run `devrites-engine state resolve` with those arguments. It:
76
+ - flips the qid's `status` to `answered` / `dropped` and stamps `answered_at` + `answer`;
77
+ - if the qid is in `state.md`'s `Awaiting human` block (single-question pause), clears
78
+ that block and sets `Status: running`;
79
+ - appends a `Log` line to `state.md`.
80
+
81
+ On resume, also clear or update the unblocked slice's `Slice mode` in `state.md`: if
82
+ the answer lets the slice proceed, drop the pause-time `Slice mode` so `/rite-build`
83
+ re-derives it on the next selection; if the answer re-shapes how the slice should be
84
+ built, set `Slice mode` to match.
85
+ 5. **Post-resolve hand-off.** If the answer changes product behavior or acceptance →
86
+ recommend `/rite-plan repair`. Otherwise → recommend the slice's natural next action
87
+ (typically `/rite-build` for the slice that was awaiting).
88
+ **Completion:** the resolved state contains exactly one next command.
89
+ 6. **STOP.** User-invoked `/rite-resolve` does not run `/rite-build` itself: the
90
+ user re-enters the workflow explicitly. A controlling `/rite-autocomplete`
91
+ caller invokes the same `devrites-engine state resolve` writer internally and
92
+ continues; it must not emit this skill as a user handoff for a question that
93
+ already names a ranked recommended option.
94
+
95
+ > **Mid-flight discipline.** Don't edit `spec.md` / `plan.md` to "incorporate" the
96
+ > answer. That's `/rite-plan repair`. Don't silently retry a build after the answer
97
+ > lands: the user types the next command. Don't merge two open questions into one
98
+ > answered entry: each question is independently auditable.
@@ -0,0 +1,118 @@
1
+ # Answer protocol: how `/rite-resolve` mutates the workspace
2
+
3
+ `/rite-resolve` is the single canonical writer for `questions.md` `status` flips and
4
+ `state.md` `Awaiting human` clearance. This file is the reference for the three input
5
+ shapes, the batch file format, and the `devrites-engine state resolve` rules.
6
+
7
+ ## Three input shapes
8
+
9
+ Each form is an explicit local mutation command. Supplying it is the confirmation; the
10
+ skill applies it once after validation and reports the result instead of asking for `y` again.
11
+
12
+ ### 1. Single answer
13
+
14
+ ```
15
+ /rite-resolve q-2026-05-28-001 "composite index — single key is fine for now, revisit at 1M rows"
16
+ ```
17
+
18
+ - The qid must be `status: open`. Re-answering is refused (see "Never overwrite").
19
+ - The answer is recorded verbatim. Use straight quotes around the answer so the shell
20
+ preserves whitespace.
21
+
22
+ ### 2. Drop
23
+
24
+ ```
25
+ /rite-resolve --drop q-2026-05-28-002 "merged into q-...-003 after we narrowed the scope"
26
+ ```
27
+
28
+ - A drop is **not** an answer. It removes the question from the active queue without
29
+ recording a decision. Use it when the question is obsolete, a duplicate, or absorbed
30
+ by a re-plan.
31
+ - The reason is an optional single trailing string, **strongly recommended** for the
32
+ audit trail. "obsolete" / "duplicate" / "absorbed by Slice N" are sufficient; if omitted,
33
+ `devrites-engine state resolve` records it as `dropped`.
34
+
35
+ ### 3. Batch
36
+
37
+ ```
38
+ /rite-resolve --batch .devrites/work/<slug>/answers.batch
39
+ ```
40
+
41
+ The batch file is plain text, one resolution per line. Two line shapes:
42
+
43
+ ```
44
+ q-2026-05-28-001: composite index, revisit at 1M rows
45
+ q-2026-05-28-002: clinician sign-off required at runtime, not at plan time
46
+ --drop q-2026-05-28-003: merged into q-...-004
47
+ # Lines starting with # are comments. Blank lines ignored.
48
+ ```
49
+
50
+ - One qid per line. The first colon is the separator; the rest of the line is the value.
51
+ - Order matters only for `state.md` clearance: the script processes top-to-bottom and
52
+ flushes `Awaiting human` after each match.
53
+ - Errors abort the batch at the first failing line so partial state is small and
54
+ diagnosable. (Re-run after fixing the offending line; already-applied lines refuse to
55
+ re-apply because their `status` is no longer `open`.)
56
+
57
+ ## Never overwrite
58
+
59
+ A qid that is already `answered` or `dropped` refuses to be re-resolved. The audit trail
60
+ is the file. You do not edit history. If the original answer was wrong:
61
+
62
+ 1. Open a new qid (the agent will, during the next `/rite-build` if the bad answer
63
+ re-surfaces; or you write it manually).
64
+ 2. Reference the old qid in the new question's body (`supersedes: q-...-001`).
65
+ 3. Resolve the new qid.
66
+
67
+ The same rule applies to `--drop`: a dropped question is not undropped. Re-raise it as
68
+ a new qid if it turns out to matter after all.
69
+
70
+ ## State machine
71
+
72
+ ```
73
+ open ──answer──▶ answered (terminal)
74
+
75
+ └──drop────▶ dropped (terminal)
76
+ ```
77
+
78
+ Both terminals stamp `answered_at: <iso>` and write the answer/reason to `answer:`.
79
+
80
+ ## `state.md` clearance rules
81
+
82
+ `state.md`'s `Awaiting human` block is **single-question by default**: `/rite-build`
83
+ writes one block at a time and pauses. When `/rite-resolve` matches the block's qid:
84
+
85
+ - the entire `Awaiting human` block is removed (header + fields);
86
+ - `- Status: running` is set;
87
+ - a `Log` line is appended: `- <iso> <resuming phase>: resolved <qid>`.
88
+
89
+ If `state.md`'s `Status` is `awaiting_human` but no `Awaiting human` block matches the
90
+ qid (drift between the two files), `/rite-resolve` flags the inconsistency and refuses
91
+ to silently fix it. Use `/rite-plan repair` to reconcile.
92
+
93
+ If the answer materially changes spec/plan, **do not** edit `spec.md` or `plan.md` inside
94
+ `/rite-resolve`. That's `/rite-plan repair`'s job. The skill's post-resolve hand-off
95
+ recommends `/rite-plan repair` whenever the answer touches acceptance criteria, scope,
96
+ or architecture.
97
+
98
+ ## Multi-question awaiting
99
+
100
+ If a future evolution lets `/rite-build` queue multiple questions per pause, the
101
+ `Awaiting human` block becomes a YAML list. `/rite-resolve` will:
102
+
103
+ - match the qid in the list and remove only that entry;
104
+ - leave the rest of the list intact;
105
+ - flip `Status: running` only when the list is empty.
106
+
107
+ This shape is reserved: current `/rite-build` writes one question per pause.
108
+
109
+ ## Why no auto-`/rite-build` after resolve
110
+
111
+ The user types the next command explicitly. Reasons:
112
+
113
+ 1. The answer may need a `/rite-plan repair` first; auto-continuing would build against
114
+ a stale plan.
115
+ 2. The user may want to `/rite-status` before resuming.
116
+ 3. Atomicity: one verb, one mutation. Chaining is a hidden side-effect that hides bugs.
117
+
118
+ The output's `Next:` line is a recommendation, not an auto-run.
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: rite-review
3
+ description: Review polished feature diff for correctness, readability, architecture, security, tests proving acceptance, Critical/Important findings, and quality dimensions before seal.
4
+ argument-hint: "[scope: slice N | feature] [--full]"
5
+ ---
6
+
7
+ # /rite-review: feature-scoped review
8
+
9
+ Review the **active feature scope only**. **Read the active workspace first**; if none,
10
+ tell the user to run `/rite-spec <feature>`.
11
+
12
+ > **Scope:** `/code-review` is a generic diff review with no workspace context.
13
+ > `/rite-review` reads
14
+ > `.devrites/work/<slug>/spec.md` first, runs Spec ↔ Code-review axes as
15
+ > parallel fresh-context reviewers (see [`parallel-dispatch.md`](../devrites-lib/reference/parallel-dispatch.md)), and gates feeding
16
+ > into `/rite-seal`. Use `/code-review` for a one-off diff; use
17
+ > `/rite-review` for a DevRites feature where the spec is the contract. Use the shared depth rules in
18
+ [`devrites-lib/reference/orchestration-profiles.md`](../devrites-lib/reference/orchestration-profiles.md);
19
+ all workflow-named roles remain mandatory at every depth.
20
+
21
+ ## Rules consulted (read on demand from `.devin/skills/devrites-lib/reference/standards/`)
22
+
23
+ Pull these via `Read` when the diff demands them:
24
+
25
+ - [`code-review.md`](../devrites-lib/reference/standards/code-review.md): small PRs, severity labels, tests-first review focus.
26
+ - [`review-checklist.md`](../devrites-lib/reference/standards/review-checklist.md): compact pass/fail sweep before reporting the verdict.
27
+ - [`principles.md`](../devrites-lib/reference/standards/principles.md): declared project invariants (`.devrites/principles.md`); a diff that violates one with no recorded exception is a Critical, blocking finding.
28
+ - [`testing.md`](../devrites-lib/reference/standards/testing.md): confirm that passing tests actually prove the spec.
29
+ - [`agents.md`](../devrites-lib/reference/standards/agents.md): when to fan out to which review subagent.
30
+ - [`security.md`](../devrites-lib/reference/standards/security.md): when input / auth / data / integrations / secrets are in scope.
31
+ - [`security-checklist.md`](../devrites-lib/reference/standards/security-checklist.md): for the same security-sensitive scope, the compact trust-boundary sweep.
32
+ - [`repository-topology.md`](../devrites-lib/reference/standards/repository-topology.md), [`data-integrity.md`](../devrites-lib/reference/standards/data-integrity.md), [`integration-reliability.md`](../devrites-lib/reference/standards/integration-reliability.md): only
33
+ when the spec applicability map or final diff triggers their ownership/failure/proof checks.
34
+ - [`performance.md`](../devrites-lib/reference/standards/performance.md): only when perf is relevant or a regression risk is visible.
35
+
36
+ ## Operating rules
37
+
38
+ - **Feature scope only** — see
39
+ [feature-scoped-review](reference/feature-scoped-review.md). Spec Drift Guard applies.
40
+ - **Silent-failure hunt:** when the suite is green, require proof that error paths and
41
+ partial-success branches would fail tests if broken. **Failing case:** tests pass but
42
+ handler returns success on internal error → Critical until an asserting test exists.
43
+ - **Review the finished product.** `/rite-polish` has already simplified code and
44
+ normalized or polished UI. If review finds a remaining complexity issue, record it as
45
+ a finding rather than rerunning a simplification pass.
46
+ - Follow the shared
47
+ [`candidate-integrity.md`](../devrites-lib/reference/candidate-integrity.md).
48
+ Review starts only from the digest Polish closed.
49
+ - Findings are labeled (below). Re-prove after any accepted correction.
50
+ - **Reviewers judge; root reconciles; wright fixes.** Per
51
+ [`agents.md`](../devrites-lib/reference/standards/agents.md), root directly
52
+ reconciles verdicts/writes artifacts; engines do not. Accepted corrections
53
+ route to `devrites-slice-wright`.
54
+
55
+ ## Workflow
56
+
57
+ 0. Read `.devin/skills/devrites-lib/reference/standards/core.md` first (the always-on operating rules); pull the
58
+ on-demand rules above as the diff demands them.
59
+ 1. Read `spec.md`, `tasks.md`, `state.md`, `decisions.md`,
60
+ `touched-files.md`, `.devrites/principles.md` (if present: the binding invariants to score
61
+ the diff against), and the `git diff`. For "what would this change break"
62
+ questions, apply `.devin/skills/devrites-lib/reference/standards/tooling.md`: use
63
+ the primary available index and cross-check only one named unresolved predicate before
64
+ falling back to LSP/file search. When a finding hinges on an external library's
65
+ current API, context7 if available can confirm the signature. Run
66
+ `devrites-engine check candidate <slug>` and require its digest to match the
67
+ single `evidence.md` binding and the `browser-evidence.md` binding when that
68
+ file exists. Read those ledgers via the bounded advisory read
69
+ ([`workspace-artifact-schema.md`](../devrites-lib/reference/workspace-artifact-schema.md) § Read next by phase): binding line, `EVID-###`
70
+ index, then bodies for this candidate's AC/slice IDs only. A missing,
71
+ malformed, or open candidate returns to Polish/Prove.
72
+ Read `touched-files.md` `## Review trail` and `eng-review.md` `## Deferred findings`:
73
+ every deferred row is an input finding for the step-3 cohort (quoted in the owning
74
+ reviewer's brief without severity) and ends in `review.md` with its own label and
75
+ action tag — never silently dropped.
76
+ 2. **Review tests first:** do they prove the acceptance criteria? Missing,
77
+ weak, or wrong tests are the first findings.
78
+ **Completion:** every acceptance criterion maps to a proven test or a labeled finding.
79
+ 3. **Review spec and code separately in parallel.** A change can pass
80
+ one axis and fail the other: code that follows every project standard but
81
+ implements the wrong thing (Code-review pass, Spec fail), or code that does exactly
82
+ what the spec asked but breaks project conventions (Spec pass, Code-review fail).
83
+ Separate contexts prevent one axis from masking the other. This is the initial
84
+ full pass; a correction uses step 7's bounded recheck:
85
+ - Freeze that closed digest and give the same digest to **two** read-only reviewers in
86
+ parallel, each with its own narrow brief and no
87
+ cross-pollination — and evaluate the frontend (step 4), security (step 5),
88
+ and performance (step 6) dispatch conditions from this same diff now,
89
+ joining the cohort when applicable rather than dispatching later waves:
90
+ - **Spec axis** → `devrites-spec-reviewer`: "Apply your documented discipline on
91
+ the active feature workspace + diff. Report (a) criteria the spec asked for that
92
+ are missing or partial, (b) behaviour in the diff the spec did not ask for
93
+ (scope creep / drift), (c) criteria implemented incorrectly. Quote the spec
94
+ line per finding. If the spec is missing or unreadable, report `Review gap:
95
+ missing spec` and do not infer requirements from the diff."
96
+ - **Code-review axis** → `devrites-code-reviewer`: "Apply your full documented
97
+ discipline (tests-first, correctness, readability, architecture, maintainability,
98
+ standards) on the feature workspace + diff. Cite file:line; skip tooling-enforced
99
+ checks. Apply canonical anti-slop and silent-failure lenses; inspect each hunk
100
+ for unrequested deletion. Unexcepted `.devrites/principles.md` violations are
101
+ Critical. Distinguish binding standards from judgment-only baseline smells."
102
+ - **Do NOT merge or re-rank** their findings. Present them under separate
103
+ `## Spec` and `## Code review` sub-sections in `review.md`. Surface contradictions
104
+ between the axes explicitly (e.g. "Spec axis says complete, Code-review axis says
105
+ untestable"): `/rite-seal` decides what blocks. Preserve each reviewer's
106
+ `Outcome:` and admit its account through
107
+ [[`agents.md`](../devrites-lib/reference/standards/agents.md) § Result admission](../devrites-lib/reference/standards/agents.md#result-admission).
108
+ Either `Outcome: gap` stops Review; silence, failure, or malformed output never
109
+ becomes an empty findings list.
110
+ 4. **Reconcile, don't re-review.** With the two parallel reports in hand, the inline
111
+ lead reconciles. It does **not** re-run the code-review axes over correctness /
112
+ readability / architecture / maintainability that `devrites-code-reviewer` already
113
+ covered. Stay in scope ([feature-scoped-review](reference/feature-scoped-review.md)).
114
+ Add only what the dispatched agents could not, then resolve overlaps and
115
+ contradictions before labeling. ([five-axis-review.md](reference/five-axis-review.md)
116
+ documents the axes the code-review agent applies.)
117
+ - **UI feature?** `devrites-frontend-reviewer` joins the step-3 cohort; apply the **UX rubric**
118
+ ([nielsen-heuristics](reference/nielsen-heuristics.md)) and the
119
+ **cognitive-load lens** ([cognitive-load](reference/cognitive-load.md),
120
+ [performance-checklist](reference/performance-checklist.md)). No UI/route/style
121
+ paths: record `Not-applicable: no relevant paths in diff`.
122
+ 5. **Security:** `devrites-security-auditor`
123
+ ([security-review](reference/security-review.md)) joins the step-3 cohort when
124
+ input, auth, data,
125
+ secrets, or permissions are in the diff; else `Not-applicable: no relevant paths in diff`.
126
+ 6. **Performance:** `devrites-performance-reviewer`
127
+ ([performance-review](reference/performance-review.md),
128
+ [performance-checklist](reference/performance-checklist.md)) joins the step-3 cohort
129
+ only on a budget or
130
+ hot path; else `Not-applicable: no relevant paths in diff`.
131
+ 7. Reconcile and accept only in-scope fixes. Consolidate them into one bounded
132
+ wright correction; never edit source in the reviewing context. Any correction
133
+ updates the candidate manifest, returns through affected Prove, and then starts
134
+ a fresh Review binding on the new digest. Dispatch affected exact reviewers on
135
+ all their open findings and the dependency/regression closure under
136
+ [evidence validity](../devrites-lib/reference/candidate-integrity.md#evidence-validity).
137
+ Cite unchanged sub-scope coverage only with its original identity and explicit
138
+ justification; never relabel old accounts. Changed contracts or uncertain impact
139
+ require the full applicable pass.
140
+ 8. The root updates `review.md` and `state.md`, writing exactly one candidate
141
+ binding in `review.md` for the current digest, distinguishing fresh accounts from
142
+ cited unchanged sub-scope evidence and reconciling complete coverage.
143
+ **Completion:** the records name the reviewed candidate identity and every accepted
144
+ correction has affected proof plus a fresh Review. Then checkpoint remaining
145
+ candidate diffs per [`checkpoint.md`](../rite-build/reference/checkpoint.md);
146
+ a wright correction does not commit on control until that Review is green.
147
+
148
+ ## Finding labels
149
+
150
+ - **Critical:** must fix before seal (correctness/security/data loss).
151
+ - **Important:** should fix before seal (likely bug, real maintainability risk).
152
+ - **Suggestion:** worth doing, not blocking.
153
+ - **Nit:** trivial/style.
154
+ - **FYI:** context, no action implied.
155
+
156
+ **Action tag (separate from severity).** Tag each finding with how to act on it:
157
+ `blocking` (fix before seal), `non-blocking` (fix when convenient), or `if-minor` (fix only if the
158
+ change is already small: a pure noise-economics lever). Every Critical is `blocking` and gates the
159
+ seal; `non-blocking` / `if-minor` findings are recorded, not a stop.
160
+
161
+ ## Confidence and severity
162
+
163
+ Apply [[`agents.md`](../devrites-lib/reference/standards/agents.md) § Result admission](../devrites-lib/reference/standards/agents.md#result-admission).
164
+ Roll trivia into one line. `/rite-seal` gates on `Critical == 0`,
165
+ `Important == 0` (y/N override), acceptance, and drift. No composite score.
166
+
167
+ > **Mid-flight discipline.** When tempted to demote a Critical, hide a finding, fix without re-verification, or wander out of scope: see [`anti-patterns`](reference/anti-patterns.md). Load it the moment you reach for the excuse.
168
+
169
+ ## Output → `review.md`
170
+
171
+ Write the detailed review to `review.md`.
@@ -0,0 +1,32 @@
1
+ # rite-review: anti-patterns
2
+
3
+ Load this when standing a non-trivial review decision, when tempted to
4
+ demote severity to hide a finding, or when crossing out of feature scope.
5
+
6
+ Pack-wide rationalizations + red flags: see
7
+ [standards/anti-patterns.md](../../devrites-lib/reference/standards/anti-patterns.md).
8
+
9
+ ## Phase-specific rationalizations
10
+
11
+ | Excuse | Rebuttal |
12
+ |---|---|
13
+ | "Polish already cleaned this up; nothing to flag." | Polish finishes; review judges. If review still spots a real issue, flag it: don't re-run polish here. |
14
+ | "Tests pass, so they're adequate." | Adequacy = do they prove acceptance, including failure / boundary / empty paths? A passing test is not automatically a good test. |
15
+ | "Security audit isn't needed for this feature." | If the feature touches user input, auth, data storage, external integrations, secrets, or permissions: yes it is. |
16
+ | "I'll just fix everything I find in scope." | Some fixes belong in `/rite-plan` as drift, not as smuggled redesigns inside review. |
17
+ | "Performance is fine without measuring." | No claim without a number or a specified measurement. "Feels fast" is not a finding. |
18
+
19
+ ## Severity gaming
20
+
21
+ | Excuse | Rebuttal |
22
+ |---|---|
23
+ | "Demoting a Critical to Important keeps the review clean." | Severity reflects the actual risk to ship, not the review you'd like. |
24
+ | "I won't surface this Critical; user can find it later." | Hidden Criticals are the worst-case play. The seal blocks anyway, and now you've burned trust. |
25
+
26
+ ## Red Flags
27
+
28
+ - A finding without `file:line`.
29
+ - A finding without a severity label (Critical / Important / Suggestion / Nit / FYI).
30
+ - A Critical recorded but silently fixed instead of surfaced to the seal.
31
+ - A fix applied without re-verification afterwards.
32
+ - Review crossing into out-of-scope files because they "looked wrong".
@@ -0,0 +1,90 @@
1
+ # Cognitive load: a UX review lens
2
+
3
+ Cognitive load is the total mental effort the interface demands. Overloaded users
4
+ hesitate, misclick, abandon. Reviewing UI without this lens misses a whole class of
5
+ defects that no a11y checker or perf tool will flag.
6
+
7
+ DevRites' `/rite-review` uses this reference when the feature touches UI. It is
8
+ descriptive (helps you spot defects) rather than scored: findings raised here
9
+ roll up under the UX axis of the multi-axis review with the usual severity labels.
10
+
11
+ ## Three kinds of load
12
+
13
+ | Type | Source | Reviewer's job |
14
+ |---|---|---|
15
+ | **Intrinsic** | The task itself: its inherent steps, decisions, and required knowledge. | Can't be eliminated, only **structured**: step the user through it, provide defaults, group related decisions, defer what isn't needed yet. |
16
+ | **Extraneous** | Bad design: friction the task doesn't require: noisy hierarchy, redundant choices, jargon, layout that hides the next step. | **Eliminate it ruthlessly.** It's pure waste, and the easiest class of finding to land. |
17
+ | **Germane** | Effort the user spends *forming a mental model* of the product. | **Invest deliberately.** Consistent flows, shared vocabulary, predictable affordances: anything that lets the user re-use what they already learned. |
18
+
19
+ A surface can be intrinsic-heavy *and* extraneously-fine. That's a hard task done
20
+ right. A simple surface that still feels heavy is extraneous load disguised as
21
+ "complexity."
22
+
23
+ ## Symptoms reviewers should flag
24
+
25
+ Treat each as a finding when present; classify by load type so the fix is obvious.
26
+
27
+ ### Extraneous (reduce / remove)
28
+ - **Visual noise** that doesn't earn its place: redundant borders, shadows,
29
+ dividers, gratuitous icons next to every label, colour used decoratively.
30
+ - **Competing primary actions:** two or three buttons of equal weight when one
31
+ is clearly the next step.
32
+ - **Jargon and abbreviations** the user doesn't share: names from the codebase
33
+ or internal team that leaked into the UI.
34
+ - **Restated headings** (the body of a section repeats the section title in
35
+ long-form).
36
+ - **Decision paralysis:** too many options when one default + a "more options"
37
+ toggle would do.
38
+ - **Form fields without obvious priority:** required vs optional, primary vs
39
+ secondary mixed in a single column with no rhythm.
40
+ - **Premature error messaging** (validation that fires before the user has
41
+ finished typing).
42
+
43
+ ### Intrinsic (structure, don't try to eliminate)
44
+ - **No progressive disclosure** on a genuinely complex task: every field
45
+ visible at once because "the user might need it".
46
+ - **No safe defaults** on multi-step flows: the user has to choose at every step
47
+ even when one path is the obvious answer.
48
+ - **Decisions grouped wrong:** "billing address" sandwiched between two
49
+ unrelated sections rather than next to "shipping address".
50
+ - **No scaffolding** (no template, no example input, no recently-used value)
51
+ for tasks that have a high blank-page cost.
52
+
53
+ ### Germane (invest in)
54
+ - **Inconsistent vocabulary** across the feature: same concept named two ways
55
+ (e.g. "member" in one screen, "user" in the next).
56
+ - **Flow-shape divergence** from neighbouring features (modal where the project
57
+ uses inline; route-change where the project uses an overlay).
58
+ - **Affordances that look interactive but aren't** (and vice versa): destroys
59
+ the mental model the user is trying to build.
60
+
61
+ ## Reviewing a flow: three-pass discipline
62
+
63
+ 1. **First pass: silent.** Walk the flow without reading any explainer copy.
64
+ Anything that stops you cold without copy is a finding: either extraneous
65
+ load you can't dismiss, or a germane-load problem (the user is missing a
66
+ mental model the UI assumes).
67
+ 2. **Second pass: with copy.** Read every label, helper, and error. Does the
68
+ copy resolve the friction the first pass surfaced, or just paper over it?
69
+ "Tooltip explaining a confusing button" is rarely the right fix: usually
70
+ the button needs a different label.
71
+ 3. **Third pass: empty + error.** Run the flow with no data, partial data, and
72
+ the worst inputs (offline / 500 / permission-denied). Most cognitive-load
73
+ defects hide in non-happy paths because nobody designs them.
74
+
75
+ ## The cheap-fix test
76
+
77
+ If a finding would take more than 30 minutes to fix, classify it (token gap /
78
+ component miss / flow misalignment per [`ui.md`](../../rite-polish/reference/ui.md)) and
79
+ route to the appropriate bucket. Cognitive-load review surfaces problems; it
80
+ doesn't decide the rewrite strategy.
81
+
82
+ ## What this lens **doesn't** cover
83
+
84
+ - **Accessibility:** separate axis (WCAG 2.2; see
85
+ [`devrites-frontend-craft/reference/quality-standards.md`](../../devrites-frontend-craft/reference/quality-standards.md)).
86
+ - **Performance:** separate axis (Core Web Vitals; see
87
+ [`performance-checklist.md`](performance-checklist.md)).
88
+ - **Code quality:** covered by the simplification audit
89
+ (`devrites-audit simplify`).
90
+ - **Security:** covered by the security audit (`devrites-audit security`).
@@ -0,0 +1,26 @@
1
+ # Feature-scoped review
2
+
3
+ The review boundary is the **active feature**: the files in `touched-files.md` and the
4
+ current diff. This is a hard rule, not a guideline.
5
+
6
+ ## In scope
7
+ - Code added/changed by this feature.
8
+ - Tests for this feature.
9
+ - Files this feature intentionally inspected and depends on (read for context, but
10
+ don't refactor them).
11
+
12
+ ## Out of scope (do NOT)
13
+ - Refactor unrelated modules because they're "nearby" or "while we're here".
14
+ - Delete suspected dead code outside this feature without asking the user.
15
+ - Restyle/upgrade dependencies or change project-wide config to suit this feature.
16
+ - Expand the review into a project audit.
17
+
18
+ ## When you spot a real problem outside scope
19
+ Record it as an **[FYI] follow-up** in `review.md` (and suggest a separate feature/issue).
20
+ Don't fix it inline. Drive-by changes balloon the diff, dodge their own review, and
21
+ mix concerns the seal can't cleanly evaluate.
22
+
23
+ ## Why scope discipline matters
24
+ A tight diff gets a real review; a sprawling one gets a rubber stamp. Scope creep is how
25
+ "a small fix" becomes an unreviewable, unprovable change. Keep the feature shippable and
26
+ the review honest.
@@ -0,0 +1,66 @@
1
+ # Five-axis review: tests first, then six axes
2
+
3
+ The dispatched `devrites-code-reviewer` checks tests first, then correctness, readability,
4
+ architecture, maintainability, and standards under one severity scale (Critical / Important / Suggestion / Nit / FYI).
5
+ The `/rite-review` inline lead **reconciles** the returned report against the Spec
6
+ axis. It does not re-run these axes itself. This file is the shared definition of
7
+ what "full code-review discipline" covers; use it to judge whether the agent's report
8
+ is complete, and to scope anything the agent could not (e.g. UI-only lenses below).
9
+
10
+ ## 0. Tests (first)
11
+ - Do tests exist for the changed behavior, and do they prove the acceptance criteria?
12
+ - Would they fail if the code were wrong? (No assertion-free or tautological tests.)
13
+ - Edge cases: empty, boundary, error, permission-denied, concurrency.
14
+ - Applicable data/integration/topology cases use a risk-capable boundary; no
15
+ risk-erasing mock, one-tenant isolation claim, or one-root proof for another root.
16
+
17
+ ## 1. Correctness
18
+ - Does it do what the spec says? Off-by-one, null/undefined, error paths, race
19
+ conditions, incorrect assumptions about inputs.
20
+ - Does it handle the states the slice promised (loading/empty/error for UI)?
21
+ - Does retry/interruption converge without duplicate effects; do partial/unknown external
22
+ outcomes, migrations, old/new versions, tenant scope, and rollback follow the accepted plan?
23
+
24
+ ## 2. Readability
25
+ - Can the next engineer understand it without the author? Naming, function length,
26
+ nesting depth, comments that explain *why* not *what*.
27
+ - Structural smells: a conditional **bolted onto an unrelated flow** (wants its own
28
+ helper/state/policy: a design smell, not a nit); **repeated conditionals on the same
29
+ shape** (a missing model or dispatcher).
30
+
31
+ ## 3. Architecture
32
+ - Right seam/boundary? Coupling and cohesion. Does it fit existing patterns or
33
+ introduce a competing one? Is the abstraction earned (not premature)?
34
+ - Does a refactor **reduce** complexity or just **relocate** it? Count the concepts a
35
+ reader must hold; a "cleaner" version that leaves that count unchanged isn't cleaner.
36
+ - Is feature-specific logic **leaking into a shared module** instead of its owning layer?
37
+ Is a **type boundary** left implicit by a gratuitous `any`/cast or a silent fallback?
38
+ - **Name the remedy, not just the smell:** replace a conditional chain with a typed
39
+ dispatcher, separate orchestration from business logic, move feature logic to its owning
40
+ package, delete a pass-through wrapper, split a large file. Prefer the move that removes
41
+ moving pieces over one that re-centralizes the same complexity.
42
+ - Are repository/deployable roots, canonical contract and mutable-state owners, shared
43
+ resources, and synchronous/asynchronous consistency boundaries preserved without a cycle?
44
+
45
+ ## 4. Security
46
+ - Trust boundaries, input validation, authz checks, secrets handling. Hand off to
47
+ `devrites-audit security` when input/auth/data/integration is in scope.
48
+
49
+ ## 5. Performance
50
+ - Obvious N+1s, unnecessary work in hot paths, payload sizes. Hand off to
51
+ `devrites-audit perf` when perf is relevant: **measure before claiming**.
52
+
53
+ ## 6. Maintainability
54
+ - Tests, docs/comments where needed, no dead code added, no TODOs left, consistent
55
+ with project conventions.
56
+
57
+ ## Frontend axes (if UI)
58
+ - UX flow matches neighbors; all interaction states; a11y (focus, labels, contrast,
59
+ keyboard); responsive; design-system alignment (no drift, no anti-AI-slop).
60
+
61
+ ## Sizing & speed
62
+ Prefer reviewing roughly one slice / ~100 lines of meaningful change at a time. Larger
63
+ diffs hide defects: recommend splitting rather than rubber-stamping. Watch **file size,
64
+ not just diff size**: a small diff that pushes an already-large file further past a healthy
65
+ boundary wants decomposition (extract helpers / split modules) *first*: decompose, then
66
+ add.