hatch3r 1.5.1 → 1.6.2

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 (129) hide show
  1. package/README.md +18 -2
  2. package/agents/hatch3r-a11y-auditor.md +2 -0
  3. package/agents/hatch3r-dependency-auditor.md +18 -0
  4. package/agents/hatch3r-devops.md +20 -0
  5. package/agents/hatch3r-fixer.md +28 -12
  6. package/agents/hatch3r-implementer.md +26 -12
  7. package/agents/hatch3r-learnings-loader.md +23 -1
  8. package/agents/hatch3r-researcher.md +101 -114
  9. package/agents/hatch3r-reviewer.md +27 -1
  10. package/agents/hatch3r-security-auditor.md +2 -0
  11. package/agents/modes/architecture.md +1 -0
  12. package/agents/modes/boundary-analysis.md +1 -0
  13. package/agents/modes/codebase-impact.md +1 -0
  14. package/agents/modes/complexity-risk.md +1 -0
  15. package/agents/modes/coverage-analysis.md +1 -0
  16. package/agents/modes/feature-design.md +1 -0
  17. package/agents/modes/impact-analysis.md +1 -0
  18. package/agents/modes/migration-path.md +1 -0
  19. package/agents/modes/refactoring-strategy.md +1 -0
  20. package/agents/modes/regression.md +1 -0
  21. package/agents/modes/requirements-elicitation.md +1 -0
  22. package/agents/modes/risk-assessment.md +1 -0
  23. package/agents/modes/risk-prioritization.md +1 -0
  24. package/agents/modes/root-cause.md +1 -0
  25. package/agents/modes/symptom-trace.md +1 -0
  26. package/agents/modes/test-pattern.md +1 -0
  27. package/agents/shared/external-knowledge.md +5 -5
  28. package/agents/shared/injection-patterns.md +78 -0
  29. package/agents/shared/prompt-structure.md +44 -0
  30. package/checks/accessibility.md +2 -0
  31. package/checks/code-quality.md +2 -0
  32. package/checks/performance.md +2 -0
  33. package/checks/security.md +2 -0
  34. package/checks/testing.md +2 -0
  35. package/commands/board/pickup-delegation-multi.md +2 -2
  36. package/commands/board/pickup-delegation.md +2 -2
  37. package/commands/board/pickup-post-impl.md +21 -0
  38. package/commands/board/shared-github.md +4 -2
  39. package/commands/hatch3r-agent-customize.md +2 -1
  40. package/commands/hatch3r-api-spec.md +2 -0
  41. package/commands/hatch3r-benchmark.md +2 -0
  42. package/commands/hatch3r-board-fill.md +96 -9
  43. package/commands/hatch3r-board-groom.md +1 -0
  44. package/commands/hatch3r-board-init.md +31 -1
  45. package/commands/hatch3r-board-pickup.md +10 -0
  46. package/commands/hatch3r-board-refresh.md +1 -0
  47. package/commands/hatch3r-board-shared.md +5 -1
  48. package/commands/hatch3r-bug-plan.md +3 -1
  49. package/commands/hatch3r-codebase-map.md +3 -1
  50. package/commands/hatch3r-command-customize.md +2 -1
  51. package/commands/hatch3r-context-health.md +1 -0
  52. package/commands/hatch3r-cost-tracking.md +1 -0
  53. package/commands/hatch3r-debug.md +2 -0
  54. package/commands/hatch3r-dep-audit.md +1 -0
  55. package/commands/hatch3r-feature-plan.md +3 -1
  56. package/commands/hatch3r-healthcheck.md +2 -1
  57. package/commands/hatch3r-hooks.md +1 -0
  58. package/commands/hatch3r-learn.md +8 -5
  59. package/commands/hatch3r-migration-plan.md +2 -0
  60. package/commands/hatch3r-onboard.md +2 -0
  61. package/commands/hatch3r-project-spec.md +3 -1
  62. package/commands/hatch3r-quick-change.md +14 -2
  63. package/commands/hatch3r-recipe.md +1 -0
  64. package/commands/hatch3r-refactor-plan.md +2 -0
  65. package/commands/hatch3r-release.md +1 -0
  66. package/commands/hatch3r-revision.md +10 -0
  67. package/commands/hatch3r-roadmap.md +3 -1
  68. package/commands/hatch3r-rule-customize.md +2 -1
  69. package/commands/hatch3r-security-audit.md +2 -1
  70. package/commands/hatch3r-skill-customize.md +2 -1
  71. package/commands/hatch3r-test-plan.md +2 -0
  72. package/commands/hatch3r-workflow.md +15 -3
  73. package/commands/revision/revision-quality.md +4 -3
  74. package/dist/cli/index.js +6235 -2613
  75. package/dist/cli/index.js.map +1 -1
  76. package/github-agents/hatch3r-docs-agent.md +1 -0
  77. package/github-agents/hatch3r-lint-agent.md +1 -0
  78. package/github-agents/hatch3r-security-agent.md +1 -0
  79. package/github-agents/hatch3r-test-agent.md +1 -0
  80. package/package.json +7 -1
  81. package/rules/hatch3r-accessibility-standards.mdc +1 -0
  82. package/rules/hatch3r-agent-orchestration-detail.mdc +1 -0
  83. package/rules/hatch3r-agent-orchestration.md +38 -5
  84. package/rules/hatch3r-agent-orchestration.mdc +39 -5
  85. package/rules/hatch3r-api-design.md +1 -1
  86. package/rules/hatch3r-api-design.mdc +2 -1
  87. package/rules/hatch3r-browser-verification.md +1 -1
  88. package/rules/hatch3r-browser-verification.mdc +3 -3
  89. package/rules/hatch3r-ci-cd.mdc +1 -0
  90. package/rules/hatch3r-code-standards.md +1 -1
  91. package/rules/hatch3r-code-standards.mdc +2 -2
  92. package/rules/hatch3r-component-conventions.md +3 -3
  93. package/rules/hatch3r-component-conventions.mdc +2 -2
  94. package/rules/hatch3r-data-classification.mdc +1 -0
  95. package/rules/hatch3r-dependency-management.md +1 -1
  96. package/rules/hatch3r-dependency-management.mdc +2 -1
  97. package/rules/hatch3r-feature-flags.md +1 -1
  98. package/rules/hatch3r-feature-flags.mdc +1 -1
  99. package/rules/hatch3r-git-conventions.md +1 -1
  100. package/rules/hatch3r-git-conventions.mdc +2 -2
  101. package/rules/hatch3r-i18n.md +2 -2
  102. package/rules/hatch3r-i18n.mdc +1 -1
  103. package/rules/hatch3r-learning-consult.md +1 -1
  104. package/rules/hatch3r-learning-consult.mdc +2 -2
  105. package/rules/hatch3r-migrations.mdc +1 -0
  106. package/rules/hatch3r-observability-tracing-detail.mdc +99 -6
  107. package/rules/hatch3r-observability-tracing.mdc +20 -15
  108. package/rules/hatch3r-performance-budgets.md +1 -1
  109. package/rules/hatch3r-performance-budgets.mdc +1 -1
  110. package/rules/hatch3r-secrets-management.mdc +1 -0
  111. package/rules/hatch3r-security-patterns.md +1 -1
  112. package/rules/hatch3r-security-patterns.mdc +3 -2
  113. package/rules/hatch3r-testing.md +1 -1
  114. package/rules/hatch3r-testing.mdc +3 -2
  115. package/rules/hatch3r-theming.md +2 -2
  116. package/rules/hatch3r-theming.mdc +2 -2
  117. package/rules/hatch3r-tooling-hierarchy.md +1 -1
  118. package/rules/hatch3r-tooling-hierarchy.mdc +3 -2
  119. package/skills/hatch3r-a11y-audit/SKILL.md +21 -55
  120. package/skills/hatch3r-a11y-audit/references/manual-audit-checklist.md +58 -0
  121. package/skills/hatch3r-agent-customize/SKILL.md +1 -1
  122. package/skills/hatch3r-command-customize/SKILL.md +1 -1
  123. package/skills/hatch3r-gh-agentic-workflows/SKILL.md +42 -136
  124. package/skills/hatch3r-gh-agentic-workflows/references/azure-devops.md +60 -0
  125. package/skills/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +51 -0
  126. package/skills/hatch3r-issue-workflow/SKILL.md +8 -27
  127. package/skills/hatch3r-issue-workflow/references/delegation-patterns.md +51 -0
  128. package/skills/hatch3r-rule-customize/SKILL.md +1 -1
  129. package/skills/hatch3r-skill-customize/SKILL.md +1 -1
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-onboard
3
3
  type: command
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
4
6
  description: Generate a comprehensive onboarding guide for a new developer joining the project -- spawn parallel researchers to analyze codebase structure, architecture, and conventions, then produce a tailored onboarding document with setup instructions, architecture walkthrough, coding conventions, key workflows, tribal knowledge, and a quick-reference cheat sheet.
5
7
  tags: [brownfield, team]
6
8
  quality_charter: agents/shared/quality-charter.md
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  id: hatch3r-project-spec
3
3
  type: command
4
- description: Generate complete business and technical project documentation (specs, ADRs, todo.md) from a project vision using parallel researcher sub-agents with dual business/technical scoping.
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
+ description: Translate a greenfield vision into future-state design artifacts -- ADRs, domain model, API contracts, per-module technical specs, and a board-ready todo.md
5
7
  tags: [planning, greenfield]
6
8
  quality_charter: agents/shared/quality-charter.md
7
9
  ---
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-quick-change
3
3
  type: command
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-implementer, hatch3r-lint-fixer, hatch3r-reviewer, hatch3r-fixer, hatch3r-test-writer, hatch3r-security-auditor]
4
6
  description: Lightweight command for small changes not worth tracking on the board. Adaptive ceremony with inline or sub-agent implementation, batch support, and soft scope guards.
5
7
  tags: [core, implementation]
6
8
  quality_charter: agents/shared/quality-charter.md
@@ -65,6 +67,14 @@ It retains:
65
67
  4. **No learnings capture.** Quick changes are too small to produce meaningful learnings. Existing learnings are consulted via a lightweight file-path scan (Step 2c) with a 150-token budget — no new learnings are written.
66
68
  5. **Minimal rule loading.** Load `scope: always` rules only when spawning sub-agents in Steps 4b or 6.
67
69
 
70
+ ## Confidence Propagation Contract
71
+
72
+ Every sub-agent delegation prompt in this command MUST include the confidence expression requirement below (verbatim). Sub-agents are invoked with the `quality_charter: agents/shared/quality-charter.md` reference in their frontmatter, but the orchestrator repeats the directive to override runtime prompt defaults per the charter §1 rule.
73
+
74
+ > Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
75
+
76
+ Downstream propagation: every ASK checkpoint that reports verification quality, every gate that evaluates a sub-agent verdict, and every output block that surfaces merge-readiness MUST carry a high/medium/low confidence rating sourced from the upstream sub-agent. Dropping the signal between stages is a gate failure.
77
+
68
78
  ---
69
79
 
70
80
  ## Workflow
@@ -259,9 +269,11 @@ The reviewer prompt MUST include:
259
269
  - All `scope: always` rule directives from `.agents/rules/`.
260
270
  - Iteration number and previous findings (if not the first iteration).
261
271
  - Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
272
+ - Requirement that the reviewer output include a top-level `confidence: high | medium | low` field (not just per-finding) so the gate in step 2 can evaluate it deterministically.
262
273
 
263
- 2. Process reviewer output:
264
- - If **0 Critical and 0 Warning** findings: review loop is clean. Proceed to Step 6b.
274
+ 2. Process reviewer output (confidence-aware gate):
275
+ - If **0 Critical + 0 Warning AND reviewer confidence != low**: review loop is clean. Proceed to Step 6b.
276
+ - If **0 Critical + 0 Warning AND reviewer confidence == low**: trigger a second reviewer pass before exiting. Do not proceed to 6b until the second pass returns non-low confidence OR the user explicitly accepts the low-confidence PASS.
265
277
  - If Critical or Warning findings remain: spawn `hatch3r-fixer` sub-agent to address them, then re-run the reviewer (next iteration).
266
278
  The fixer prompt MUST include: the reviewer findings, all `scope: always` rule directives, and the confidence expression requirement (high/medium/low per the quality charter).
267
279
  - **Suggestions**: skip. The point of quick-change is speed.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  id: hatch3r-recipe
3
3
  type: command
4
+ orchestrator: false
4
5
  description: Execute shareable workflow recipes that compose agents, skills, and commands into guided sequences for common development scenarios
5
6
  tags: [core]
6
7
  quality_charter: agents/shared/quality-charter.md
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-refactor-plan
3
3
  type: command
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
4
6
  description: Plan a refactoring or migration effort -- spawn parallel researchers, produce refactoring spec, ADR(s), and phased todo.md entries for board-fill.
5
7
  tags: [planning]
6
8
  quality_charter: agents/shared/quality-charter.md
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  id: hatch3r-release
3
3
  type: command
4
+ orchestrator: false
4
5
  description: Cut a versioned release with changelog generation, version bumping, and GitHub release creation.
5
6
  tags: [devops]
6
7
  quality_charter: agents/shared/quality-charter.md
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-revision
3
3
  type: command
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-implementer, hatch3r-lint-fixer, hatch3r-test-writer, hatch3r-reviewer, hatch3r-fixer, hatch3r-security-auditor, hatch3r-docs-writer, hatch3r-a11y-auditor, hatch3r-perf-profiler]
4
6
  description: User-guided revision of agent-implemented code in a fresh context window. Reconstructs what was done, interviews the user for feedback, fixes issues, cleans up leftovers, and drives toward merge readiness. Delegation, quality pipeline, modes, and board integration details are in commands/revision/.
5
7
  tags: [implementation, team]
6
8
  quality_charter: agents/shared/quality-charter.md
@@ -55,6 +57,14 @@ If no board context exists (plain instruction, no PR, no linked issues), skip sh
55
57
  3. **Do NOT re-read shared context files** -- their content is available via always-applied rules or inline in this command.
56
58
  4. **Limit documentation reads.** Read project documentation selectively -- TOC/headers first, full content only for relevant sections.
57
59
 
60
+ ## Confidence Propagation Contract
61
+
62
+ Every sub-agent delegation prompt in this command (including those defined in `commands/revision/revision-delegation.md` and `commands/revision/revision-quality.md`) MUST include the confidence expression requirement below (verbatim). Sub-agents are invoked with the `quality_charter: agents/shared/quality-charter.md` reference in their frontmatter, but the orchestrator repeats the directive to override runtime prompt defaults per the charter §1 rule.
63
+
64
+ > Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
65
+
66
+ Downstream propagation: every ASK checkpoint that reports verification quality, every gate that evaluates a sub-agent verdict, and every output block that surfaces merge-readiness MUST carry a high/medium/low confidence rating sourced from the upstream sub-agent. Dropping the signal between stages is a gate failure.
67
+
58
68
  ## Run Cache
59
69
 
60
70
  Initialize the run cache at the start of the workflow. See `commands/revision/revision-board-integration.md` for the full schema. The cache tracks: diff, findings with triage routing and fix status, quality agents spawned, errors encountered.
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  id: hatch3r-roadmap
3
3
  type: command
4
- description: Generate a dual-lens phased roadmap (business milestones + technical milestones) from specs and vision using parallel researcher sub-agents, output to todo.md in the format that hatch3r-board-fill expects.
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
6
+ description: Sequence delivery phases over time into a dependency-ordered milestone plan with business and technical lenses, emitting a todo.md rollout schedule rather than design docs
5
7
  tags: [planning, greenfield]
6
8
  quality_charter: agents/shared/quality-charter.md
7
9
  ---
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-rule-customize
3
3
  type: command
4
- description: Configure per-rule customization including scope overrides, description changes, enable/disable control, and project-specific markdown instructions
4
+ orchestrator: false
5
+ description: Edit rule scope globs, toggle always-on versus conditional activation, and adjust precedence tier via .hatch3r/rules/ YAML overrides plus markdown appends
5
6
  tags: [customize]
6
7
  quality_charter: agents/shared/quality-charter.md
7
8
  ---
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-security-audit
3
3
  type: command
4
- description: Create a full-product security audit epic with one sub-issue per project module
4
+ orchestrator: false
5
+ description: Open an OWASP ASI security epic reviewing auth boundaries, input validation, and supply-chain risks with one hardening sub-issue per module plus trust-boundary audit
5
6
  tags: [maintenance, security]
6
7
  quality_charter: agents/shared/quality-charter.md
7
8
  ---
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-skill-customize
3
3
  type: command
4
- description: Configure per-skill customization including description overrides, enable/disable control, and project-specific markdown instructions
4
+ orchestrator: false
5
+ description: Rewrite skill dispatch descriptions for model auto-selection, gate per-preset exposure, and control slash-command surfacing via .hatch3r/skills/ YAML overrides
5
6
  tags: [customize]
6
7
  quality_charter: agents/shared/quality-charter.md
7
8
  ---
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-test-plan
3
3
  type: command
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
4
6
  description: Plan a comprehensive test strategy -- spawn parallel researchers, produce test plan spec with coverage targets, priority ordering, test case outlines, and structured todo.md entries for board-fill.
5
7
  tags: [core, planning]
6
8
  quality_charter: agents/shared/quality-charter.md
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  id: hatch3r-workflow
3
3
  type: command
4
+ orchestrator: true
5
+ agentPipeline: [hatch3r-researcher, hatch3r-implementer, hatch3r-reviewer, hatch3r-fixer, hatch3r-test-writer, hatch3r-security-auditor, hatch3r-docs-writer, hatch3r-lint-fixer, hatch3r-a11y-auditor, hatch3r-perf-profiler]
4
6
  description: Guided development lifecycle with 4 phases (Analyze, Plan, Implement, Review) and scale-adaptive Quick Mode for small tasks.
5
7
  tags: [core, implementation]
6
8
  quality_charter: agents/shared/quality-charter.md
@@ -47,6 +49,14 @@ If **no**: all browser verification steps are skipped silently throughout the en
47
49
 
48
50
  Follow the **Token-Saving Directives** in `hatch3r-board-shared`.
49
51
 
52
+ ## Confidence Propagation Contract
53
+
54
+ Every sub-agent delegation prompt in this command MUST include the confidence expression requirement below (verbatim). Sub-agents are invoked with the `quality_charter: agents/shared/quality-charter.md` reference in their frontmatter, but the orchestrator repeats the directive to override runtime prompt defaults per the charter §1 rule.
55
+
56
+ > Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
57
+
58
+ Downstream propagation: every ASK checkpoint that reports verification quality, every gate that evaluates a sub-agent verdict, and every output block that surfaces merge-readiness MUST carry a high/medium/low confidence rating sourced from the upstream sub-agent. Dropping the signal between stages is a gate failure.
59
+
50
60
  ---
51
61
 
52
62
  ## Workflow
@@ -262,13 +272,15 @@ Fix any issues before proceeding. If quality checks fail, loop back and resolve
262
272
 
263
273
  Spawn a `hatch3r-reviewer` sub-agent via the Task tool (`subagent_type: "generalPurpose"`). Include the diff and acceptance criteria in the prompt.
264
274
 
265
- 1. **Review:** Await the reviewer result. Check for Critical and Warning findings.
266
- 2. **If 0 Critical + 0 Warning:** Review loop is clean. Proceed to 4b.
275
+ 1. **Review:** Await the reviewer result. Extract Critical and Warning findings AND the reviewer's top-level `confidence` field (high/medium/low).
276
+ 2. **Confidence-aware gate:**
277
+ - **0 Critical + 0 Warning AND reviewer confidence != low:** Review loop is clean. Proceed to 4b.
278
+ - **0 Critical + 0 Warning AND reviewer confidence == low:** Trigger a second reviewer pass before exiting. Do not proceed to 4b until the second pass returns non-low confidence OR the user explicitly accepts the low-confidence PASS at the ASK checkpoint in step 5.
267
279
  3. **If Critical or Warning findings exist:** Spawn a `hatch3r-fixer` sub-agent with the reviewer output. The fixer applies fixes for all Critical and Warning findings.
268
280
  4. **Re-review:** After the fixer completes, spawn `hatch3r-reviewer` again to verify fixes.
269
281
  5. **Repeat** steps 2-4 for a maximum of **3 iterations**. If still not clean after 3 iterations, **ASK** the user how to proceed (force continue / manual fix / abort).
270
282
 
271
- After each reviewer iteration, assess the reviewer's findings confidence: if the reviewer rates any finding as low-confidence, flag it separately in the ASK prompt so the user can prioritize human review of uncertain findings.
283
+ After each reviewer iteration, assess the reviewer's findings confidence: if the reviewer rates any finding as low-confidence, flag it separately in the ASK prompt so the user can prioritize human review of uncertain findings. The reviewer sub-agent output MUST include a top-level `confidence: high | medium | low` field (not just per-finding) so step 2 can evaluate it deterministically.
272
284
 
273
285
  Each reviewer/fixer sub-agent prompt MUST include:
274
286
  - The agent protocol to follow.
@@ -45,13 +45,14 @@ The reviewer prompt MUST include:
45
45
  - Include blast radius data so the reviewer can verify fixes preserve dependent consumers and contracts.
46
46
  - Include reference conventions so the reviewer can verify fixes follow established patterns.
47
47
 
48
- 2. Process reviewer output:
49
- - If **0 Critical and 0 Warning** findings: review loop is clean. Proceed to Stage 2.
48
+ 2. Process reviewer output (confidence-aware gate):
49
+ - If **0 Critical + 0 Warning AND reviewer confidence != low:** review loop is clean. Proceed to Stage 2.
50
+ - If **0 Critical + 0 Warning AND reviewer confidence == low:** trigger a second reviewer pass before exiting. Do not proceed to Stage 2 until the second pass returns non-low confidence OR the user explicitly accepts the low-confidence PASS.
50
51
  - If Critical or Warning findings remain: spawn `hatch3r-fixer` sub-agent to address them. When fixes touch shared or public interfaces, include blast radius data and reference conventions in the fixer prompt. Then re-run the reviewer (next iteration).
51
52
 
52
53
  3. If 3 iterations complete and findings remain, **ASK** the user whether to proceed or fix manually.
53
54
 
54
- After each reviewer iteration, assess the reviewer's findings confidence: if the reviewer rates any finding as low-confidence, flag it separately in the ASK prompt so the user can prioritize human review of uncertain findings.
55
+ After each reviewer iteration, assess the reviewer's findings confidence: if the reviewer rates any finding as low-confidence, flag it separately in the ASK prompt so the user can prioritize human review of uncertain findings. The reviewer sub-agent output MUST include a top-level `confidence: high | medium | low` field (not just per-finding) so the gate in step 2 can evaluate it deterministically.
55
56
 
56
57
  4. After any fixes, re-run quality gates (7a) to verify nothing broke.
57
58