hatch3r 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/agents/hatch3r-a11y-auditor.md +13 -2
- package/agents/hatch3r-architect.md +20 -1
- package/agents/hatch3r-ci-watcher.md +25 -1
- package/agents/hatch3r-context-rules.md +15 -3
- package/agents/hatch3r-dependency-auditor.md +23 -2
- package/agents/hatch3r-devops.md +11 -0
- package/agents/hatch3r-docs-writer.md +27 -2
- package/agents/hatch3r-fixer.md +46 -3
- package/agents/hatch3r-implementer.md +19 -1
- package/agents/hatch3r-learnings-loader.md +19 -0
- package/agents/hatch3r-lint-fixer.md +11 -0
- package/agents/hatch3r-perf-profiler.md +21 -1
- package/agents/hatch3r-researcher.md +51 -911
- package/agents/hatch3r-reviewer.md +24 -2
- package/agents/hatch3r-security-auditor.md +20 -0
- package/agents/hatch3r-test-writer.md +24 -0
- package/agents/modes/architecture.md +1 -0
- package/agents/modes/boundary-analysis.md +2 -1
- package/agents/modes/codebase-impact.md +1 -0
- package/agents/modes/complexity-risk.md +1 -0
- package/agents/modes/coverage-analysis.md +1 -0
- package/agents/modes/current-state.md +1 -0
- package/agents/modes/feature-design.md +1 -0
- package/agents/modes/impact-analysis.md +1 -0
- package/agents/modes/library-docs.md +2 -1
- package/agents/modes/migration-path.md +1 -0
- package/agents/modes/prior-art.md +1 -0
- package/agents/modes/refactoring-strategy.md +1 -0
- package/agents/modes/regression.md +1 -0
- package/agents/modes/requirements-elicitation.md +1 -0
- package/agents/modes/risk-assessment.md +1 -0
- package/agents/modes/risk-prioritization.md +1 -0
- package/agents/modes/root-cause.md +1 -0
- package/agents/modes/similar-implementation.md +2 -1
- package/agents/modes/symptom-trace.md +1 -0
- package/agents/modes/test-pattern.md +2 -1
- package/agents/shared/external-knowledge.md +10 -0
- package/agents/shared/quality-charter.md +18 -0
- package/checks/README.md +1 -0
- package/checks/accessibility.md +55 -0
- package/commands/board/pickup-azure-devops.md +1 -0
- package/commands/board/pickup-delegation-multi.md +6 -1
- package/commands/board/pickup-delegation.md +1 -0
- package/commands/board/pickup-github.md +1 -0
- package/commands/board/pickup-gitlab.md +1 -0
- package/commands/board/pickup-modes.md +1 -0
- package/commands/board/pickup-post-impl.md +2 -1
- package/commands/board/shared-azure-devops.md +1 -0
- package/commands/board/shared-board-overview.md +1 -0
- package/commands/board/shared-github.md +1 -0
- package/commands/board/shared-gitlab.md +1 -0
- package/commands/hatch3r-agent-customize.md +1 -0
- package/commands/hatch3r-api-spec.md +1 -0
- package/commands/hatch3r-benchmark.md +4 -3
- package/commands/hatch3r-board-fill.md +52 -9
- package/commands/hatch3r-board-groom.md +69 -5
- package/commands/hatch3r-board-init.md +2 -1
- package/commands/hatch3r-board-pickup.md +1 -0
- package/commands/hatch3r-board-refresh.md +1 -0
- package/commands/hatch3r-board-shared.md +34 -3
- package/commands/hatch3r-bug-plan.md +2 -1
- package/commands/hatch3r-codebase-map.md +4 -3
- package/commands/hatch3r-command-customize.md +2 -1
- package/commands/hatch3r-context-health.md +1 -0
- package/commands/hatch3r-cost-tracking.md +1 -0
- package/commands/hatch3r-debug.md +4 -3
- package/commands/hatch3r-dep-audit.md +3 -0
- package/commands/hatch3r-feature-plan.md +3 -2
- package/commands/hatch3r-healthcheck.md +1 -0
- package/commands/hatch3r-hooks.md +5 -0
- package/commands/hatch3r-learn.md +1 -0
- package/commands/hatch3r-migration-plan.md +3 -2
- package/commands/hatch3r-onboard.md +2 -1
- package/commands/hatch3r-project-spec.md +4 -3
- package/commands/hatch3r-quick-change.md +2 -0
- package/commands/hatch3r-recipe.md +1 -0
- package/commands/hatch3r-refactor-plan.md +2 -1
- package/commands/hatch3r-release.md +4 -1
- package/commands/hatch3r-revision.md +49 -121
- package/commands/hatch3r-roadmap.md +5 -4
- package/commands/hatch3r-rule-customize.md +1 -0
- package/commands/hatch3r-security-audit.md +1 -0
- package/commands/hatch3r-skill-customize.md +1 -0
- package/commands/hatch3r-test-plan.md +3 -2
- package/commands/hatch3r-workflow.md +5 -0
- package/commands/revision/revision-board-integration.md +87 -0
- package/commands/revision/revision-delegation.md +93 -0
- package/commands/revision/revision-modes.md +91 -0
- package/commands/revision/revision-quality.md +96 -0
- package/dist/cli/index.js +7378 -4529
- package/dist/cli/index.js.map +1 -1
- package/hooks/hatch3r-ci-failure.md +1 -0
- package/hooks/hatch3r-file-save.md +1 -0
- package/hooks/hatch3r-post-merge.md +1 -0
- package/hooks/hatch3r-pre-commit.md +1 -0
- package/hooks/hatch3r-pre-push.md +1 -0
- package/hooks/hatch3r-session-start.md +1 -0
- package/package.json +19 -4
- package/rules/hatch3r-accessibility-standards.md +2 -1
- package/rules/hatch3r-accessibility-standards.mdc +1 -1
- package/rules/hatch3r-agent-orchestration-detail.md +49 -1
- package/rules/hatch3r-agent-orchestration-detail.mdc +47 -1
- package/rules/hatch3r-agent-orchestration.md +87 -5
- package/rules/hatch3r-agent-orchestration.mdc +85 -5
- package/rules/hatch3r-api-design.md +2 -1
- package/rules/hatch3r-api-design.mdc +1 -1
- package/rules/hatch3r-browser-verification.md +4 -2
- package/rules/hatch3r-browser-verification.mdc +1 -0
- package/rules/hatch3r-ci-cd.md +2 -1
- package/rules/hatch3r-ci-cd.mdc +1 -1
- package/rules/hatch3r-code-standards.md +15 -2
- package/rules/hatch3r-code-standards.mdc +12 -0
- package/rules/hatch3r-component-conventions.md +2 -1
- package/rules/hatch3r-component-conventions.mdc +1 -0
- package/rules/hatch3r-data-classification.md +2 -1
- package/rules/hatch3r-data-classification.mdc +1 -1
- package/rules/hatch3r-deep-context.md +26 -1
- package/rules/hatch3r-deep-context.mdc +25 -1
- package/rules/hatch3r-dependency-management.md +2 -1
- package/rules/hatch3r-dependency-management.mdc +1 -1
- package/rules/hatch3r-feature-flags.md +2 -0
- package/rules/hatch3r-feature-flags.mdc +1 -0
- package/rules/hatch3r-git-conventions.md +2 -1
- package/rules/hatch3r-git-conventions.mdc +2 -1
- package/rules/hatch3r-i18n.md +2 -1
- package/rules/hatch3r-i18n.mdc +1 -0
- package/rules/hatch3r-learning-consult.md +11 -1
- package/rules/hatch3r-learning-consult.mdc +11 -1
- package/rules/hatch3r-migrations.md +2 -1
- package/rules/hatch3r-migrations.mdc +1 -1
- package/rules/hatch3r-observability-logging.md +34 -0
- package/rules/hatch3r-observability-logging.mdc +30 -0
- package/rules/hatch3r-observability-metrics.md +74 -0
- package/rules/hatch3r-observability-metrics.mdc +70 -0
- package/rules/hatch3r-observability-tracing-detail.md +160 -0
- package/rules/hatch3r-observability-tracing-detail.mdc +63 -0
- package/rules/hatch3r-observability-tracing.md +86 -0
- package/rules/hatch3r-observability-tracing.mdc +77 -0
- package/rules/hatch3r-observability.md +9 -448
- package/rules/hatch3r-observability.mdc +7 -448
- package/rules/hatch3r-performance-budgets.md +2 -0
- package/rules/hatch3r-performance-budgets.mdc +1 -0
- package/rules/hatch3r-secrets-management.md +2 -1
- package/rules/hatch3r-secrets-management.mdc +1 -1
- package/rules/hatch3r-security-patterns.md +3 -2
- package/rules/hatch3r-security-patterns.mdc +1 -1
- package/rules/hatch3r-testing.md +12 -2
- package/rules/hatch3r-testing.mdc +10 -1
- package/rules/hatch3r-theming.md +3 -2
- package/rules/hatch3r-theming.mdc +1 -0
- package/rules/hatch3r-tooling-hierarchy.md +3 -2
- package/rules/hatch3r-tooling-hierarchy.mdc +1 -1
- package/skills/hatch3r-a11y-audit/SKILL.md +11 -4
- package/skills/hatch3r-agent-customize/SKILL.md +1 -0
- package/skills/hatch3r-api-spec/SKILL.md +9 -2
- package/skills/hatch3r-architecture-review/SKILL.md +7 -0
- package/skills/hatch3r-bug-fix/SKILL.md +16 -7
- package/skills/hatch3r-ci-pipeline/SKILL.md +8 -1
- package/skills/hatch3r-command-customize/SKILL.md +1 -0
- package/skills/hatch3r-context-health/SKILL.md +23 -2
- package/skills/hatch3r-cost-tracking/SKILL.md +16 -6
- package/skills/hatch3r-customize/SKILL.md +8 -1
- package/skills/hatch3r-dep-audit/SKILL.md +9 -2
- package/skills/hatch3r-feature/SKILL.md +12 -4
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +7 -0
- package/skills/hatch3r-incident-response/SKILL.md +7 -0
- package/skills/hatch3r-issue-workflow/SKILL.md +8 -1
- package/skills/hatch3r-logical-refactor/SKILL.md +8 -1
- package/skills/hatch3r-migration/SKILL.md +7 -0
- package/skills/hatch3r-perf-audit/SKILL.md +9 -2
- package/skills/hatch3r-pr-creation/SKILL.md +8 -1
- package/skills/hatch3r-qa-validation/SKILL.md +8 -1
- package/skills/hatch3r-recipe/SKILL.md +8 -1
- package/skills/hatch3r-refactor/SKILL.md +10 -2
- package/skills/hatch3r-release/SKILL.md +8 -1
- package/skills/hatch3r-rule-customize/SKILL.md +1 -0
- package/skills/hatch3r-skill-customize/SKILL.md +1 -0
- package/skills/hatch3r-visual-refactor/SKILL.md +12 -5
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-revision-modes
|
|
3
|
+
type: command
|
|
4
|
+
description: Auto-advance mode, safety guardrails, error handling, and session report for revision. Covers --auto operation, never-skip rules, platform-aware error recovery, and end-of-session summary.
|
|
5
|
+
tags: [implementation, team]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
7
|
+
---
|
|
8
|
+
# Revision — Modes, Guardrails, and Error Handling
|
|
9
|
+
|
|
10
|
+
Supplementary protocols for `hatch3r-revision`. Referenced from the core command file.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Auto-Advance Mode
|
|
15
|
+
|
|
16
|
+
When invoked with `--auto`, revision operates with reduced human checkpoints for sustained autonomous operation (e.g., CI integration, repeated revision cycles).
|
|
17
|
+
|
|
18
|
+
### Behavior Changes in Auto Mode
|
|
19
|
+
|
|
20
|
+
| Checkpoint | Normal Mode | Auto Mode |
|
|
21
|
+
|-----------|-------------|-----------|
|
|
22
|
+
| Step 2 context validation | ASK user | Auto-proceed when PR + linked issues found. If no PR found, fall back to normal mode for this step |
|
|
23
|
+
| Step 3 user interview | ASK user for feedback | Skip interview. Work from leftover scan (Step 4) only |
|
|
24
|
+
| Step 5b routing approval | ASK user to confirm routing | Auto-accept suggested routing heuristics |
|
|
25
|
+
| Step 7e quality failure | ASK user after 2 retries | Auto-defer remaining findings to todo.md after 2 retries |
|
|
26
|
+
| Step 9b merge readiness | ASK user for next action | Auto-select (a) ready to merge when READY; auto-select (c) done for now when NOT READY |
|
|
27
|
+
|
|
28
|
+
### Safety Guardrails (Never Skipped)
|
|
29
|
+
|
|
30
|
+
These checkpoints are NEVER skipped, even in auto mode:
|
|
31
|
+
|
|
32
|
+
- **Critical findings** default to FIX NOW. If a critical finding cannot be fixed after 2 retries, auto-mode records it as `Critical-deferred` with rationale "auto-deferred: fix attempts exhausted after 2 retries" and the `Critical-deferred` tag in todo.md
|
|
33
|
+
- **Quality gates** (lint, typecheck, tests) must pass before commit. Auto-mode does not bypass quality checks
|
|
34
|
+
- **Critical Deferral Protocol** still applies — auto-mode provides a structured rationale rather than skipping the protocol
|
|
35
|
+
- **No force-push.** Never rewrite history
|
|
36
|
+
- **Max 2 retry loops** on quality failures. Auto-mode does not retry indefinitely
|
|
37
|
+
- **Proactive leftover scan** (Step 4) always runs. This is the primary input in auto-mode since the user interview is skipped
|
|
38
|
+
|
|
39
|
+
### Activation
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
/hatch3r revision --auto
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Session Report
|
|
46
|
+
|
|
47
|
+
At the end of an auto session (or any session when `--auto` is active), generate a summary:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Revision Session Report:
|
|
51
|
+
Findings: {N} total ({critical}/{important}/{cleanup}/{cosmetic})
|
|
52
|
+
Fixed: {N}
|
|
53
|
+
Deferred: {M} (written to todo.md)
|
|
54
|
+
Quality agents spawned: {list}
|
|
55
|
+
Quality gate status: {pass/fail}
|
|
56
|
+
Commits: {N}
|
|
57
|
+
Learnings captured: {count}
|
|
58
|
+
Overall confidence: {high/medium/low}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Error Handling
|
|
64
|
+
|
|
65
|
+
> Platform-specific CLI commands: see `commands/board/shared-{platform}.md` for fallback chains
|
|
66
|
+
|
|
67
|
+
- **Git diff failure**: If `git diff` fails (e.g., no commits on branch, detached HEAD), **ASK** the user for the correct branch or base ref.
|
|
68
|
+
- **No changes detected**: If the diff is empty, inform the user and exit. There is nothing to revise.
|
|
69
|
+
- **PR/issue fetch failure**: Retry once using the platform CLI. If retry fails, proceed without PR/issue context. Work from the diff alone. Warn the user that acceptance criteria are unavailable.
|
|
70
|
+
- **Sub-agent failure**: Retry once. If the retry fails, fall back to direct implementation for that finding.
|
|
71
|
+
- **Quality check failure after 2 retries**: Present the specific failures and **ASK** the user whether to proceed with a partial fix commit or continue debugging.
|
|
72
|
+
- **Push failure**: Present the error. Common fixes: `git push -u origin {branch}` for new branches, `git pull --rebase` for diverged branches.
|
|
73
|
+
- **Context degradation (>25 turns)**: Suggest starting a fresh chat with a progress summary. The revision command is designed for fresh contexts — it can be re-run.
|
|
74
|
+
- **Board sync failure** (when board context exists): Warn and continue. Board sync is advisory in revision — it does not block the fix pipeline.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Guardrails
|
|
79
|
+
|
|
80
|
+
- **Never skip ASK checkpoints** (unless auto-advance mode is active for that specific checkpoint).
|
|
81
|
+
- **Never skip the proactive scan (Step 4)** — even if the user reports no issues. Agents leave leftovers.
|
|
82
|
+
- **Always run quality checks (Step 7)** before committing. Never commit code that fails lint, typecheck, or tests.
|
|
83
|
+
- **Stay within the revision scope.** Fix what was reported and what the scan found. Do not refactor unrelated code, add new features, or expand beyond the original implementation's intent.
|
|
84
|
+
- **Always commit and push** at the end of a revision cycle. The user invoked this command to get fixes merged — do not exit without committing (unless the user explicitly abandons).
|
|
85
|
+
- **Respect the original implementation's architecture.** Revision fixes issues within the existing patterns. If the architecture itself is flawed, note it as a finding but do not restructure — suggest a separate refactor instead.
|
|
86
|
+
- **One sub-agent per concern.** Delegate to specialist sub-agents based on finding type. Do not ask the implementer to also fix lint issues or write tests.
|
|
87
|
+
- **Git safety.** Never force-push. Never rewrite history. Always create new commits for revision changes.
|
|
88
|
+
- **This command composes existing hatch3r agents** — it does not replace them. The reviewer, implementer, lint-fixer, and test-writer agents handle the actual work.
|
|
89
|
+
- **Critical findings default to FIX NOW.** If the user overrides this, execute the Critical Deferral Protocol (Step 5b): structured warning with specific risk, require written rationale, record in todo.md with `Critical-deferred` tag, and flag for elevated triage in board-fill. The user is never blocked — rationale adds accountability, not a veto.
|
|
90
|
+
- **Deferred findings go to `todo.md`, not directly to GitHub/GitLab/Azure DevOps issues.** The board-fill pipeline handles triage, epic creation, dependency analysis, and readiness assessment. Revision does not shortcut this process.
|
|
91
|
+
- **Always format deferred items as a single epic block** in `todo.md`, regardless of count. This groups them together during the next board-fill run.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-revision-quality
|
|
3
|
+
type: command
|
|
4
|
+
description: Quality verification pipeline for revision Step 7. Covers review loop (Stage 1), final quality with conditional specialists (Stage 2), and failure handling.
|
|
5
|
+
tags: [implementation, team]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
7
|
+
---
|
|
8
|
+
# Revision — Quality Verification (Step 7)
|
|
9
|
+
|
|
10
|
+
Quality pipeline for `hatch3r-revision`. Referenced from the core command file.
|
|
11
|
+
|
|
12
|
+
Run the project's quality checks after fix implementation. Refer to `package.json` scripts, `README.md`, or `AGENTS.md` for the appropriate commands.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 7a. Run Quality Gates
|
|
17
|
+
|
|
18
|
+
1. Lint check (e.g., `npm run lint`)
|
|
19
|
+
2. Type check (e.g., `npm run typecheck`)
|
|
20
|
+
3. Test suite (e.g., `npm run test`)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 7b. Verify User-Reported Issues
|
|
25
|
+
|
|
26
|
+
Walk through each critical and important finding from Step 5. Verify it is addressed by the changes made in Step 6. If acceptance criteria exist from linked issues, verify each criterion.
|
|
27
|
+
|
|
28
|
+
For each verified finding and acceptance criterion, rate verification confidence: high (fix confirmed via tests or direct observation), medium (code change addresses the issue but edge cases not independently tested), low (fix applied but uncertain of completeness).
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Stage 1: Review Loop (Sequential)
|
|
33
|
+
|
|
34
|
+
Run an iterative review loop (max 3 iterations) until 0 Critical + 0 Warning findings remain:
|
|
35
|
+
|
|
36
|
+
1. Spawn `hatch3r-reviewer` sub-agent via the Task tool (`subagent_type: "generalPurpose"`).
|
|
37
|
+
|
|
38
|
+
The reviewer prompt MUST include:
|
|
39
|
+
- The diff of all changes made (use `git diff` on the working tree).
|
|
40
|
+
- All `scope: always` rule directives from `.agents/rules/`.
|
|
41
|
+
- Iteration number and previous findings (if not the first iteration).
|
|
42
|
+
- 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.
|
|
43
|
+
|
|
44
|
+
**When Tier 2/3 research was performed** (from Step 6.pre):
|
|
45
|
+
- Include blast radius data so the reviewer can verify fixes preserve dependent consumers and contracts.
|
|
46
|
+
- Include reference conventions so the reviewer can verify fixes follow established patterns.
|
|
47
|
+
|
|
48
|
+
2. Process reviewer output:
|
|
49
|
+
- If **0 Critical and 0 Warning** findings: review loop is clean. Proceed to Stage 2.
|
|
50
|
+
- 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
|
+
3. If 3 iterations complete and findings remain, **ASK** the user whether to proceed or fix manually.
|
|
53
|
+
|
|
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
|
+
|
|
56
|
+
4. After any fixes, re-run quality gates (7a) to verify nothing broke.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Stage 2: Final Quality (Parallel)
|
|
61
|
+
|
|
62
|
+
After the review loop is clean, spawn specialist agents in parallel via the Task tool.
|
|
63
|
+
|
|
64
|
+
### Always Spawn (Mandatory for Code Changes)
|
|
65
|
+
|
|
66
|
+
- **`hatch3r-test-writer`** — write or update tests for code changes. Unit tests for new logic, regression tests for bug fixes, integration tests for cross-module changes.
|
|
67
|
+
- **`hatch3r-security-auditor`** — security review of code changes. Audit data flows, access control, input validation, and secret management.
|
|
68
|
+
|
|
69
|
+
### Always Evaluate (Spawn When Applicable)
|
|
70
|
+
|
|
71
|
+
- **`hatch3r-docs-writer`** — spawn when revision fixes affect public APIs, architectural patterns, or user-facing behavior. Skip silently when no documentation impact is detected (no API signature changes, no UX behavioral changes, no new configuration options).
|
|
72
|
+
|
|
73
|
+
### Conditional Specialists (Spawn When Triggered)
|
|
74
|
+
|
|
75
|
+
- **`hatch3r-lint-fixer`** — spawn when lint errors are present after fix implementation (Step 6 lint-fixer may have missed errors introduced by other sub-agents).
|
|
76
|
+
- **`hatch3r-a11y-auditor`** — spawn when the diff includes UI component changes (`area:ui` or `area:a11y` label on linked issues, or component/style files in the diff).
|
|
77
|
+
- **`hatch3r-perf-profiler`** — spawn when the diff includes hot-path changes (`area:performance` label on linked issues, or changes to database queries, API handlers, rendering loops).
|
|
78
|
+
|
|
79
|
+
### Specialist Prompt Requirements
|
|
80
|
+
|
|
81
|
+
Each specialist sub-agent prompt MUST include:
|
|
82
|
+
- The agent protocol to follow (e.g., "Follow the hatch3r-test-writer agent protocol").
|
|
83
|
+
- All `scope: always` rule directives from `.agents/rules/` (sub-agents do not inherit rules automatically).
|
|
84
|
+
- The diff or file changes to review.
|
|
85
|
+
- The linked issue's acceptance criteria (if available).
|
|
86
|
+
- 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.
|
|
87
|
+
|
|
88
|
+
Await all specialist sub-agents. Apply their feedback (fixes, additional tests, documentation updates). Re-run quality gates (7a) if changes were made.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 7e. Handle Failures
|
|
93
|
+
|
|
94
|
+
- If quality checks fail: identify the specific failures, fix them directly (for simple issues) or loop back to Step 6 with specific failures.
|
|
95
|
+
- Max 2 retry loops on quality check failures. After 2 retries, **ASK** the user for guidance: "Quality checks still failing. Fix confidence: {high/medium/low — based on whether root cause is identified}."
|
|
96
|
+
- If a user-reported issue was not fully addressed: **ASK** the user whether to attempt another fix or defer.
|