hatch3r 1.6.2 → 1.7.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 +5 -5
- package/agents/hatch3r-a11y-auditor.md +5 -0
- package/agents/hatch3r-architect.md +6 -1
- package/agents/hatch3r-ci-watcher.md +5 -0
- package/agents/hatch3r-context-rules.md +5 -0
- package/agents/hatch3r-creator.md +304 -0
- package/agents/hatch3r-dependency-auditor.md +5 -0
- package/agents/hatch3r-devops.md +5 -0
- package/agents/hatch3r-docs-writer.md +5 -0
- package/agents/hatch3r-fixer.md +6 -1
- package/agents/hatch3r-implementer.md +6 -1
- package/agents/hatch3r-learnings-loader.md +5 -0
- package/agents/hatch3r-lint-fixer.md +5 -0
- package/agents/hatch3r-perf-profiler.md +5 -0
- package/agents/hatch3r-researcher.md +6 -1
- package/agents/hatch3r-reviewer.md +5 -0
- package/agents/hatch3r-security-auditor.md +5 -0
- package/agents/hatch3r-test-writer.md +5 -0
- package/agents/modes/architecture.md +3 -0
- package/agents/modes/boundary-analysis.md +3 -0
- package/agents/modes/codebase-impact.md +3 -0
- package/agents/modes/complexity-risk.md +3 -0
- package/agents/modes/coverage-analysis.md +3 -0
- package/agents/modes/current-state.md +3 -0
- package/agents/modes/feature-design.md +3 -0
- package/agents/modes/impact-analysis.md +3 -0
- package/agents/modes/library-docs.md +3 -0
- package/agents/modes/migration-path.md +3 -0
- package/agents/modes/prior-art.md +3 -0
- package/agents/modes/refactoring-strategy.md +3 -0
- package/agents/modes/regression.md +3 -0
- package/agents/modes/requirements-elicitation.md +4 -0
- package/agents/modes/risk-assessment.md +3 -0
- package/agents/modes/risk-prioritization.md +3 -0
- package/agents/modes/root-cause.md +3 -0
- package/agents/modes/similar-implementation.md +3 -0
- package/agents/modes/symptom-trace.md +3 -0
- package/agents/modes/test-pattern.md +3 -0
- package/agents/shared/efficiency-patterns.md +71 -0
- package/agents/shared/external-knowledge.md +2 -0
- package/agents/shared/injection-patterns.md +2 -0
- package/agents/shared/prompt-structure.md +2 -0
- package/agents/shared/quality-charter.md +11 -0
- package/agents/shared/user-content-templates.md +257 -0
- package/agents/shared/user-question-protocol.md +95 -0
- package/checks/accessibility.md +1 -0
- package/checks/code-quality.md +1 -0
- package/checks/performance.md +1 -0
- package/checks/security.md +1 -0
- package/checks/testing.md +1 -0
- package/commands/board/pickup-azure-devops.md +1 -0
- package/commands/board/pickup-delegation-multi.md +1 -0
- 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 +1 -0
- package/commands/board/shared-azure-devops.md +3 -0
- package/commands/board/shared-board-overview.md +1 -0
- package/commands/board/shared-github.md +18 -0
- package/commands/board/shared-gitlab.md +5 -0
- package/commands/hatch3r-agent-customize.md +9 -2
- package/commands/hatch3r-api-spec.md +16 -0
- package/commands/hatch3r-benchmark.md +16 -0
- package/commands/hatch3r-board-fill.md +17 -1
- package/commands/hatch3r-board-groom.md +3 -0
- package/commands/hatch3r-board-init.md +3 -0
- package/commands/hatch3r-board-pickup.md +17 -1
- package/commands/hatch3r-board-refresh.md +3 -0
- package/commands/hatch3r-board-shared.md +24 -0
- package/commands/hatch3r-bug-plan.md +16 -0
- package/commands/hatch3r-codebase-map.md +16 -0
- package/commands/hatch3r-command-customize.md +3 -0
- package/commands/hatch3r-context-health.md +3 -0
- package/commands/hatch3r-cost-tracking.md +3 -0
- package/commands/hatch3r-create.md +197 -0
- package/commands/hatch3r-debug.md +16 -0
- package/commands/hatch3r-dep-audit.md +3 -0
- package/commands/hatch3r-feature-plan.md +16 -0
- package/commands/hatch3r-healthcheck.md +3 -0
- package/commands/hatch3r-hooks.md +3 -0
- package/commands/hatch3r-learn.md +3 -0
- package/commands/hatch3r-migration-plan.md +16 -0
- package/commands/hatch3r-onboard.md +16 -0
- package/commands/hatch3r-pr-resolve.md +668 -0
- package/commands/hatch3r-project-spec.md +16 -0
- package/commands/hatch3r-quick-change.md +18 -2
- package/commands/hatch3r-recipe.md +3 -0
- package/commands/hatch3r-refactor-plan.md +16 -0
- package/commands/hatch3r-release.md +3 -0
- package/commands/hatch3r-report.md +167 -0
- package/commands/hatch3r-revision.md +17 -1
- package/commands/hatch3r-roadmap.md +16 -0
- package/commands/hatch3r-rule-customize.md +3 -0
- package/commands/hatch3r-security-audit.md +3 -0
- package/commands/hatch3r-skill-customize.md +3 -0
- package/commands/hatch3r-test-plan.md +16 -0
- package/commands/hatch3r-workflow.md +18 -2
- package/commands/revision/revision-board-integration.md +1 -0
- package/commands/revision/revision-delegation.md +1 -0
- package/commands/revision/revision-modes.md +1 -0
- package/commands/revision/revision-quality.md +1 -0
- package/dist/cli/index.js +2962 -1217
- package/dist/cli/index.js.map +1 -1
- package/github-agents/hatch3r-docs-agent.md +3 -0
- package/github-agents/hatch3r-lint-agent.md +3 -0
- package/github-agents/hatch3r-security-agent.md +3 -0
- package/github-agents/hatch3r-test-agent.md +3 -0
- 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 +10 -1
- package/prompts/hatch3r-bug-triage.md +2 -0
- package/prompts/hatch3r-code-review.md +2 -0
- package/prompts/hatch3r-pr-description.md +2 -0
- package/rules/hatch3r-accessibility-standards.md +1 -0
- package/rules/hatch3r-agent-orchestration-detail.md +1 -0
- package/rules/hatch3r-agent-orchestration.md +24 -0
- package/rules/hatch3r-agent-orchestration.mdc +23 -0
- package/rules/hatch3r-api-design.md +1 -0
- package/rules/hatch3r-browser-verification.md +1 -0
- package/rules/hatch3r-ci-cd.md +1 -0
- package/rules/hatch3r-code-standards.md +1 -0
- package/rules/hatch3r-component-conventions.md +1 -0
- package/rules/hatch3r-data-classification.md +1 -0
- package/rules/hatch3r-deep-context.md +2 -1
- package/rules/hatch3r-deep-context.mdc +1 -1
- package/rules/hatch3r-dependency-management.md +1 -0
- package/rules/hatch3r-feature-flags.md +1 -0
- package/rules/hatch3r-git-conventions.md +1 -0
- package/rules/hatch3r-i18n.md +1 -0
- package/rules/hatch3r-iteration-summary.md +88 -0
- package/rules/hatch3r-iteration-summary.mdc +83 -0
- package/rules/hatch3r-learning-consult.md +1 -0
- package/rules/hatch3r-migrations.md +1 -0
- package/rules/hatch3r-observability-logging.md +1 -0
- package/rules/hatch3r-observability-metrics.md +1 -0
- package/rules/hatch3r-observability-tracing-detail.md +1 -0
- package/rules/hatch3r-observability-tracing.md +1 -0
- package/rules/hatch3r-observability.md +1 -0
- package/rules/hatch3r-performance-budgets.md +1 -0
- package/rules/hatch3r-secrets-management.md +1 -0
- package/rules/hatch3r-security-patterns.md +1 -0
- package/rules/hatch3r-testing.md +1 -0
- package/rules/hatch3r-theming.md +1 -0
- package/rules/hatch3r-tooling-hierarchy.md +1 -0
- package/skills/hatch3r-a11y-audit/SKILL.md +2 -0
- package/skills/hatch3r-agent-customize/SKILL.md +2 -0
- package/skills/hatch3r-api-spec/SKILL.md +2 -0
- package/skills/hatch3r-architecture-review/SKILL.md +2 -0
- package/skills/hatch3r-bug-fix/SKILL.md +2 -0
- package/skills/hatch3r-ci-pipeline/SKILL.md +2 -0
- package/skills/hatch3r-command-customize/SKILL.md +2 -0
- package/skills/hatch3r-context-health/SKILL.md +2 -0
- package/skills/hatch3r-cost-tracking/SKILL.md +2 -0
- package/skills/hatch3r-customize/SKILL.md +2 -0
- package/skills/hatch3r-dep-audit/SKILL.md +2 -0
- package/skills/hatch3r-feature/SKILL.md +2 -0
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +2 -0
- package/skills/hatch3r-incident-response/SKILL.md +2 -0
- package/skills/hatch3r-issue-workflow/SKILL.md +2 -0
- package/skills/hatch3r-logical-refactor/SKILL.md +2 -0
- package/skills/hatch3r-migration/SKILL.md +2 -0
- package/skills/hatch3r-perf-audit/SKILL.md +2 -0
- package/skills/hatch3r-pr-creation/SKILL.md +2 -0
- package/skills/hatch3r-qa-validation/SKILL.md +2 -0
- package/skills/hatch3r-recipe/SKILL.md +2 -0
- package/skills/hatch3r-refactor/SKILL.md +2 -0
- package/skills/hatch3r-release/SKILL.md +2 -0
- package/skills/hatch3r-rule-customize/SKILL.md +2 -0
- package/skills/hatch3r-skill-customize/SKILL.md +2 -0
- package/skills/hatch3r-visual-refactor/SKILL.md +2 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hatch3r-docs-agent
|
|
3
|
+
type: github-agent
|
|
3
4
|
description: Technical writer who maintains specs, ADRs, and documentation
|
|
4
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
5
6
|
tags: [team, devops]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
cache_friendly: true
|
|
7
10
|
---
|
|
8
11
|
|
|
9
12
|
You are an expert technical writer for the project.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hatch3r-lint-agent
|
|
3
|
+
type: github-agent
|
|
3
4
|
description: Code quality enforcer who fixes style, formatting, and type issues
|
|
4
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
5
6
|
tags: [team, devops]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
cache_friendly: true
|
|
7
10
|
---
|
|
8
11
|
|
|
9
12
|
You are a code quality engineer for the project.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hatch3r-security-agent
|
|
3
|
+
type: github-agent
|
|
3
4
|
description: Security analyst who audits code, rules, and data flows
|
|
4
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
5
6
|
tags: [team, devops]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
cache_friendly: true
|
|
7
10
|
---
|
|
8
11
|
|
|
9
12
|
You are an expert security analyst for the project.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hatch3r-test-agent
|
|
3
|
+
type: github-agent
|
|
3
4
|
description: QA engineer who writes and maintains tests
|
|
4
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
5
6
|
tags: [team, devops]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
cache_friendly: true
|
|
7
10
|
---
|
|
8
11
|
|
|
9
12
|
You are an expert QA engineer for the project.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hatch3r",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Battle-tested agentic coding setup framework. One command to hatch your agent stack -- agents, skills, rules, commands, and MCP for every major AI coding tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -23,6 +23,13 @@
|
|
|
23
23
|
"inventory": "tsx scripts/inventory.ts",
|
|
24
24
|
"inventory:check-docs": "tsx scripts/inventory.ts --check-docs",
|
|
25
25
|
"validate:rule-parity": "tsx scripts/validate-rule-parity.ts",
|
|
26
|
+
"validate:efficiency": "tsx scripts/validate-efficiency-invariants.ts",
|
|
27
|
+
"validate": "npm run validate:rule-parity && npm run validate:efficiency",
|
|
28
|
+
"audit:validate-registry": "tsx scripts/validate-finding-registry.ts",
|
|
29
|
+
"audit:migrate": "tsx scripts/migrate-finding-registry.ts",
|
|
30
|
+
"audit:archive": "tsx scripts/audit-archive.ts",
|
|
31
|
+
"audit:find": "tsx scripts/audit-find.ts",
|
|
32
|
+
"audit:reset": "tsx scripts/clean-audit-workspace.ts",
|
|
26
33
|
"lockfile:check": "lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https"
|
|
27
34
|
},
|
|
28
35
|
"keywords": [
|
|
@@ -82,11 +89,13 @@
|
|
|
82
89
|
"inquirer": "^13.3.2",
|
|
83
90
|
"ora": "^9.3.0",
|
|
84
91
|
"proper-lockfile": "^4.1.2",
|
|
92
|
+
"update-notifier": "^7.3.1",
|
|
85
93
|
"yaml": "^2.8.3"
|
|
86
94
|
},
|
|
87
95
|
"devDependencies": {
|
|
88
96
|
"@types/node": "^25.5.0",
|
|
89
97
|
"@types/proper-lockfile": "^4.1.4",
|
|
98
|
+
"@types/update-notifier": "^6.0.8",
|
|
90
99
|
"@vitest/coverage-v8": "^4.1.2",
|
|
91
100
|
"eslint": "^10.1.0",
|
|
92
101
|
"lockfile-lint": "^5.0.0",
|
|
@@ -5,6 +5,7 @@ description: Accessibility standards covering WCAG 2.2 AA compliance, keyboard n
|
|
|
5
5
|
scope: "**/*.vue,**/*.jsx,**/*.tsx,**/*.svelte,**/components/**,**/*.html,**/*a11y*,**/*accessibility*"
|
|
6
6
|
tags: [a11y]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Accessibility Standards
|
|
10
11
|
|
|
@@ -5,6 +5,7 @@ description: Mandatory agent delegation, skill loading, and subagent usage direc
|
|
|
5
5
|
scope: always
|
|
6
6
|
tags: [core]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Agent Orchestration
|
|
10
11
|
|
|
@@ -18,6 +19,8 @@ Hatch3r's orchestration uses a **phase-gated pipeline** (Research, Implement, Re
|
|
|
18
19
|
|
|
19
20
|
This rule applies to EVERY context without exception: board-pickup (epic, sub-issue, standalone, batch), workflow command (full/quick), plain chat, issue references, and natural language requests. The full sub-agent pipeline is mandatory — never implement code inline without sub-agents.
|
|
20
21
|
|
|
22
|
+
**"Inline implementation" defined.** Inline implementation means calling any code-writing tool — `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform equivalent — from the orchestrator turn itself, rather than from inside a spawned `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3) sub-agent. The only carve-out is `hatch3r-quick-change` for Tier 1 single-line trivial edits per its declared scope.
|
|
23
|
+
|
|
21
24
|
## Universal Sub-Agent Pipeline
|
|
22
25
|
|
|
23
26
|
Every task MUST follow this four-phase pipeline: **Phase 1 — Research** (`hatch3r-researcher`), **Phase 2 — Implement** (`hatch3r-implementer`), **Phase 3 — Review Loop** (`hatch3r-reviewer` + `hatch3r-fixer`), **Phase 4 — Final Quality** (parallel specialists). See Mandatory Delegation Directives below.
|
|
@@ -83,6 +86,27 @@ Spawn `hatch3r-implementer` via Task tool for ALL code changes. Never implement
|
|
|
83
86
|
|
|
84
87
|
**Implementer prompt enrichment (Tier 2+):** Include `similar-implementation` findings as "Reference Conventions", resolved `requirements-elicitation` answers as "Resolved Requirements", and blast radius data (Tier 3 only).
|
|
85
88
|
|
|
89
|
+
### Per-Turn Pipeline-State Header
|
|
90
|
+
|
|
91
|
+
Whenever a tracked task is active at Tier 2 or Tier 3 (deep-context score >= 3), the orchestrator MUST emit a single-line pipeline-state header at the very start of every assistant turn that touches the task. Format:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
[hatch3r-pipeline: phase {1|2|3|4} | last: {agent} → {SUCCESS|PARTIAL|FAILED|BLOCKED|n/a} | next: {agent or "user-confirmation" or "complete"}]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Examples:
|
|
98
|
+
|
|
99
|
+
- `[hatch3r-pipeline: phase 1 | last: n/a | next: hatch3r-researcher]`
|
|
100
|
+
- `[hatch3r-pipeline: phase 2 | last: hatch3r-researcher → SUCCESS | next: hatch3r-implementer]`
|
|
101
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-reviewer → PARTIAL | next: hatch3r-fixer]`
|
|
102
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-implementer → SUCCESS | next: user-confirmation]`
|
|
103
|
+
|
|
104
|
+
A missing header on a tracked Tier >= 2 task is a self-detectable drift signal — the user may halt the turn and request re-grounding. The header also functions as a per-reply cache prime: rendering it forces the orchestrator to re-resolve which phase it is in before choosing tools. Tier 1 tasks, read-only answers, and chat-only iterations do NOT require the header.
|
|
105
|
+
|
|
106
|
+
### Mandatory Delegation Directive (No Inline Implementation)
|
|
107
|
+
|
|
108
|
+
Restating with maximum clarity for sub-agent prompt inclusion: the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool from its own turn. The only path for code mutation is the Task tool spawning `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3). Carve-out: `hatch3r-quick-change` Tier 1 trivial items per its declared scope. No other carve-out exists. Violations are bypass mode (see issue #73) — surface them by halting the turn and re-delegating.
|
|
109
|
+
|
|
86
110
|
### Mid-Implementation Research Gap Checkpoint
|
|
87
111
|
|
|
88
112
|
At the midpoint of Phase 2 (after initial files are modified but before completion), the implementer MUST evaluate whether research gaps exist. This prevents discovering missing context too late in the pipeline.
|
|
@@ -14,6 +14,8 @@ Hatch3r's orchestration uses a **phase-gated pipeline** (Research, Implement, Re
|
|
|
14
14
|
|
|
15
15
|
This rule applies to EVERY context without exception: board-pickup (epic, sub-issue, standalone, batch), workflow command (full/quick), plain chat, issue references, and natural language requests. The full sub-agent pipeline is mandatory — never implement code inline without sub-agents.
|
|
16
16
|
|
|
17
|
+
**"Inline implementation" defined.** Inline implementation means calling any code-writing tool — `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform equivalent — from the orchestrator turn itself, rather than from inside a spawned `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3) sub-agent. The only carve-out is `hatch3r-quick-change` for Tier 1 single-line trivial edits per its declared scope.
|
|
18
|
+
|
|
17
19
|
## Universal Sub-Agent Pipeline
|
|
18
20
|
|
|
19
21
|
Every task MUST follow this four-phase pipeline: **Phase 1 — Research** (`hatch3r-researcher`), **Phase 2 — Implement** (`hatch3r-implementer`), **Phase 3 — Review Loop** (`hatch3r-reviewer` + `hatch3r-fixer`), **Phase 4 — Final Quality** (parallel specialists). See Mandatory Delegation Directives below.
|
|
@@ -79,6 +81,27 @@ Spawn `hatch3r-implementer` via Task tool for ALL code changes. Never implement
|
|
|
79
81
|
|
|
80
82
|
**Implementer prompt enrichment (Tier 2+):** Include `similar-implementation` findings as "Reference Conventions", resolved `requirements-elicitation` answers as "Resolved Requirements", and blast radius data (Tier 3 only).
|
|
81
83
|
|
|
84
|
+
### Per-Turn Pipeline-State Header
|
|
85
|
+
|
|
86
|
+
Whenever a tracked task is active at Tier 2 or Tier 3 (deep-context score >= 3), the orchestrator MUST emit a single-line pipeline-state header at the very start of every assistant turn that touches the task. Format:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
[hatch3r-pipeline: phase {1|2|3|4} | last: {agent} → {SUCCESS|PARTIAL|FAILED|BLOCKED|n/a} | next: {agent or "user-confirmation" or "complete"}]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Examples:
|
|
93
|
+
|
|
94
|
+
- `[hatch3r-pipeline: phase 1 | last: n/a | next: hatch3r-researcher]`
|
|
95
|
+
- `[hatch3r-pipeline: phase 2 | last: hatch3r-researcher → SUCCESS | next: hatch3r-implementer]`
|
|
96
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-reviewer → PARTIAL | next: hatch3r-fixer]`
|
|
97
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-implementer → SUCCESS | next: user-confirmation]`
|
|
98
|
+
|
|
99
|
+
A missing header on a tracked Tier >= 2 task is a self-detectable drift signal — the user may halt the turn and request re-grounding. The header also functions as a per-reply cache prime: rendering it forces the orchestrator to re-resolve which phase it is in before choosing tools. Tier 1 tasks, read-only answers, and chat-only iterations do NOT require the header.
|
|
100
|
+
|
|
101
|
+
### Mandatory Delegation Directive (No Inline Implementation)
|
|
102
|
+
|
|
103
|
+
Restating with maximum clarity for sub-agent prompt inclusion: the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool from its own turn. The only path for code mutation is the Task tool spawning `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3). Carve-out: `hatch3r-quick-change` Tier 1 trivial items per its declared scope. No other carve-out exists. Violations are bypass mode (see issue #73) — surface them by halting the turn and re-delegating.
|
|
104
|
+
|
|
82
105
|
### Mid-Implementation Research Gap Checkpoint
|
|
83
106
|
|
|
84
107
|
At the midpoint of Phase 2 (after initial files are modified but before completion), the implementer MUST evaluate whether research gaps exist. This prevents discovering missing context too late in the pipeline.
|
|
@@ -5,6 +5,7 @@ description: REST, GraphQL, and gRPC contract patterns covering versioning, auth
|
|
|
5
5
|
scope: "**/api/**,**/routes/**,**/controllers/**,**/endpoints/**,**/*route*,**/*controller*,**/*endpoint*,**/*handler*,**/graphql/**,**/trpc/**"
|
|
6
6
|
tags: [planning]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# API Design
|
|
10
11
|
|
package/rules/hatch3r-ci-cd.md
CHANGED
|
@@ -5,6 +5,7 @@ description: CI/CD pipeline standards covering stage gates, deployment strategie
|
|
|
5
5
|
scope: "**/.github/workflows/**,**/Dockerfile*,**/docker-compose*,**/.gitlab-ci*,**/Jenkinsfile,**/azure-pipelines*,**/.circleci/**,**/deploy/**,**/*pipeline*"
|
|
6
6
|
tags: [devops]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# CI/CD Standards
|
|
10
11
|
|
|
@@ -5,6 +5,7 @@ description: Data classification standards covering PII handling, encryption, re
|
|
|
5
5
|
scope: "**/models/**,**/schemas/**,**/schema*,**/database/**,**/db/**,**/*model*,**/*entity*,**/prisma/**,**/drizzle/**,**/*migration*"
|
|
6
6
|
tags: [security]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Data Classification Standards
|
|
10
11
|
|
|
@@ -5,6 +5,7 @@ description: Adaptive pre-implementation analysis — complexity scoring, requir
|
|
|
5
5
|
scope: always
|
|
6
6
|
tags: [core]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Deep Context Analysis
|
|
10
11
|
|
|
@@ -70,7 +71,7 @@ Pre-Implementation Summary:
|
|
|
70
71
|
Cross-cutting concerns: {list with status}
|
|
71
72
|
```
|
|
72
73
|
|
|
73
|
-
Do NOT proceed to implementation until all unresolved questions are answered by the user.
|
|
74
|
+
**Hard gate, not advisory.** Do NOT proceed to implementation until all unresolved questions are answered by the user AND the user has explicitly confirmed the Pre-Implementation Summary (a reply matching "proceed", "confirmed", "yes — implement", or an equivalent affirmation in context). Until that confirmation arrives, the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool, AND MUST NOT spawn `hatch3r-implementer` or `hatch3r-fixer`. Read-only and reasoning tools (`Read`, `Grep`, `Glob`, `Bash` for read-only commands, `WebFetch`, `WebSearch`, `Task` with researcher-only sub-agents) remain available so the orchestrator can answer follow-up clarifying questions without breaching the gate.
|
|
74
75
|
|
|
75
76
|
## Passing Context to Implementer
|
|
76
77
|
|
|
@@ -66,7 +66,7 @@ Pre-Implementation Summary:
|
|
|
66
66
|
Cross-cutting concerns: {list with status}
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Do NOT proceed to implementation until all unresolved questions are answered by the user.
|
|
69
|
+
**Hard gate, not advisory.** Do NOT proceed to implementation until all unresolved questions are answered by the user AND the user has explicitly confirmed the Pre-Implementation Summary (a reply matching "proceed", "confirmed", "yes — implement", or an equivalent affirmation in context). Until that confirmation arrives, the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool, AND MUST NOT spawn `hatch3r-implementer` or `hatch3r-fixer`. Read-only and reasoning tools (`Read`, `Grep`, `Glob`, `Bash` for read-only commands, `WebFetch`, `WebSearch`, `Task` with researcher-only sub-agents) remain available so the orchestrator can answer follow-up clarifying questions without breaching the gate.
|
|
70
70
|
|
|
71
71
|
## Passing Context to Implementer
|
|
72
72
|
|
|
@@ -5,6 +5,7 @@ description: Lockfile discipline, CVE scanning, transitive dependency audits, ma
|
|
|
5
5
|
scope: "**/package.json,**/package-lock.json,**/yarn.lock,**/pnpm-lock.yaml,**/Cargo.toml,**/Cargo.lock,**/requirements*.txt,**/pyproject.toml,**/go.mod,**/go.sum,**/Gemfile*"
|
|
6
6
|
tags: [maintenance]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Dependency Management
|
|
10
11
|
|
|
@@ -5,6 +5,7 @@ description: Conventional Commits type list, subject line rules, breaking-change
|
|
|
5
5
|
scope: "**/.git/**,**/.gitignore,**/.gitattributes,**/.gitmodules,**/COMMIT_EDITMSG"
|
|
6
6
|
tags: [core]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Git Conventions
|
|
10
11
|
|
package/rules/hatch3r-i18n.md
CHANGED
|
@@ -6,6 +6,7 @@ scope: conditional
|
|
|
6
6
|
globs: "src/**/*.vue,src/**/*.tsx,src/**/*.jsx,src/**/*.ts,**/locales/**,**/i18n/**,**/*i18n*,**/*locale*"
|
|
7
7
|
tags: [implementation, lang:typescript]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
cache_friendly: true
|
|
9
10
|
---
|
|
10
11
|
# Internationalization & RTL
|
|
11
12
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-iteration-summary
|
|
3
|
+
type: rule
|
|
4
|
+
description: Every user-facing iteration ends with the canonical Iteration Summary block — a 5-field contract exposing status, gaps, and confidence at a glance.
|
|
5
|
+
scope: always
|
|
6
|
+
tags: [core]
|
|
7
|
+
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
precedence: high
|
|
9
|
+
cache_friendly: true
|
|
10
|
+
---
|
|
11
|
+
# Iteration Summary Contract
|
|
12
|
+
|
|
13
|
+
Every iteration with the user ends with the canonical block defined below — not a free-form prose paragraph. The block appears at the very end of the assistant turn, after any code, explanations, or tool-call results.
|
|
14
|
+
|
|
15
|
+
## When This Applies
|
|
16
|
+
|
|
17
|
+
Every user-facing iteration, regardless of size — multi-step coding tasks, single-file edits, read-only answers, failed or blocked attempts. No exceptions.
|
|
18
|
+
|
|
19
|
+
The per-turn pipeline-state header (defined in `hatch3r-agent-orchestration` → Per-Turn Pipeline-State Header) is a separate start-of-turn artifact and does not replace this end-of-turn block.
|
|
20
|
+
|
|
21
|
+
## The Required Block
|
|
22
|
+
|
|
23
|
+
Use this exact shape with these exact field names:
|
|
24
|
+
|
|
25
|
+
```markdown
|
|
26
|
+
## Iteration Summary
|
|
27
|
+
|
|
28
|
+
**Status:** SUCCESS | PARTIAL | FAILED | BLOCKED
|
|
29
|
+
**Outcome:** {one sentence — the bottom line}
|
|
30
|
+
|
|
31
|
+
**Done:**
|
|
32
|
+
- {what was completed this iteration}
|
|
33
|
+
|
|
34
|
+
**Not Done / Deferred / Unverified:**
|
|
35
|
+
- {required even if "None — full scope completed"}
|
|
36
|
+
|
|
37
|
+
**Open Questions / Blockers:**
|
|
38
|
+
- {required even if "None"}
|
|
39
|
+
|
|
40
|
+
**Confidence:** high | medium | low — {one-sentence basis}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`Status` is a closed enum:
|
|
44
|
+
|
|
45
|
+
- **SUCCESS** — all in-scope work completed and verified.
|
|
46
|
+
- **PARTIAL** — some in-scope work completed; remainder listed under Not Done.
|
|
47
|
+
- **FAILED** — attempted but did not produce a usable result; reason in Outcome.
|
|
48
|
+
- **BLOCKED** — cannot proceed without user input or external resolution.
|
|
49
|
+
|
|
50
|
+
## Optional Sections
|
|
51
|
+
|
|
52
|
+
Append only when they carry information. Do not include empty headers.
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
**Artifacts Touched:**
|
|
56
|
+
| Path | Action | Notes |
|
|
57
|
+
| ---- | ------ | ----- |
|
|
58
|
+
| {file} | created/modified/deleted | {one line} |
|
|
59
|
+
|
|
60
|
+
**Verifications Run:**
|
|
61
|
+
| Check | Result |
|
|
62
|
+
| ----- | ------ |
|
|
63
|
+
| {command or test} | pass/fail/skipped |
|
|
64
|
+
|
|
65
|
+
**Earliest Failure Point:** {file:line or step name} ← only when Status ≠ SUCCESS
|
|
66
|
+
|
|
67
|
+
**Suggested Next Action:** {one line}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Field Semantics
|
|
71
|
+
|
|
72
|
+
- **Outcome** is one sentence. The user should grasp what happened from this line alone.
|
|
73
|
+
- **Done** lists completed actions, not intentions. "Wrote tests" beats "Will write tests".
|
|
74
|
+
- **Not Done / Deferred / Unverified** is required and may not be silently skipped. If full scope was completed, write `None — full scope completed`. If anything was attempted but not verified, list it here, not under Done.
|
|
75
|
+
- **Open Questions / Blockers** surfaces ambiguity proactively. Write `None` only after checking.
|
|
76
|
+
- **Confidence** uses the quality charter §1 scale. The one-sentence basis must name what was verified (high), what pattern was followed (medium), or that the answer is professional judgment (low).
|
|
77
|
+
|
|
78
|
+
## Anti-Patterns
|
|
79
|
+
|
|
80
|
+
- Substituting a prose paragraph for the block.
|
|
81
|
+
- Omitting the `## Iteration Summary` anchor — downstream agents and orchestrators locate the block by this header.
|
|
82
|
+
- Writing "None" reflexively without checking — list the uncertainty when in doubt.
|
|
83
|
+
- Inflating confidence — if you did not verify, say medium and name the unknown.
|
|
84
|
+
- Burying unverified work in `Done` — attempted-but-not-verified belongs in Not Done / Unverified.
|
|
85
|
+
|
|
86
|
+
## Reference
|
|
87
|
+
|
|
88
|
+
Confidence semantics: `agents/shared/quality-charter.md` §1.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Every user-facing iteration ends with the canonical Iteration Summary block — a 5-field contract exposing status, gaps, and confidence at a glance.
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
precedence: high
|
|
5
|
+
---
|
|
6
|
+
# Iteration Summary Contract
|
|
7
|
+
|
|
8
|
+
Every iteration with the user ends with the canonical block defined below — not a free-form prose paragraph. The block appears at the very end of the assistant turn, after any code, explanations, or tool-call results.
|
|
9
|
+
|
|
10
|
+
## When This Applies
|
|
11
|
+
|
|
12
|
+
Every user-facing iteration, regardless of size — multi-step coding tasks, single-file edits, read-only answers, failed or blocked attempts. No exceptions.
|
|
13
|
+
|
|
14
|
+
The per-turn pipeline-state header (defined in `hatch3r-agent-orchestration` → Per-Turn Pipeline-State Header) is a separate start-of-turn artifact and does not replace this end-of-turn block.
|
|
15
|
+
|
|
16
|
+
## The Required Block
|
|
17
|
+
|
|
18
|
+
Use this exact shape with these exact field names:
|
|
19
|
+
|
|
20
|
+
```markdown
|
|
21
|
+
## Iteration Summary
|
|
22
|
+
|
|
23
|
+
**Status:** SUCCESS | PARTIAL | FAILED | BLOCKED
|
|
24
|
+
**Outcome:** {one sentence — the bottom line}
|
|
25
|
+
|
|
26
|
+
**Done:**
|
|
27
|
+
- {what was completed this iteration}
|
|
28
|
+
|
|
29
|
+
**Not Done / Deferred / Unverified:**
|
|
30
|
+
- {required even if "None — full scope completed"}
|
|
31
|
+
|
|
32
|
+
**Open Questions / Blockers:**
|
|
33
|
+
- {required even if "None"}
|
|
34
|
+
|
|
35
|
+
**Confidence:** high | medium | low — {one-sentence basis}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`Status` is a closed enum:
|
|
39
|
+
|
|
40
|
+
- **SUCCESS** — all in-scope work completed and verified.
|
|
41
|
+
- **PARTIAL** — some in-scope work completed; remainder listed under Not Done.
|
|
42
|
+
- **FAILED** — attempted but did not produce a usable result; reason in Outcome.
|
|
43
|
+
- **BLOCKED** — cannot proceed without user input or external resolution.
|
|
44
|
+
|
|
45
|
+
## Optional Sections
|
|
46
|
+
|
|
47
|
+
Append only when they carry information. Do not include empty headers.
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
**Artifacts Touched:**
|
|
51
|
+
| Path | Action | Notes |
|
|
52
|
+
| ---- | ------ | ----- |
|
|
53
|
+
| {file} | created/modified/deleted | {one line} |
|
|
54
|
+
|
|
55
|
+
**Verifications Run:**
|
|
56
|
+
| Check | Result |
|
|
57
|
+
| ----- | ------ |
|
|
58
|
+
| {command or test} | pass/fail/skipped |
|
|
59
|
+
|
|
60
|
+
**Earliest Failure Point:** {file:line or step name} ← only when Status ≠ SUCCESS
|
|
61
|
+
|
|
62
|
+
**Suggested Next Action:** {one line}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Field Semantics
|
|
66
|
+
|
|
67
|
+
- **Outcome** is one sentence. The user should grasp what happened from this line alone.
|
|
68
|
+
- **Done** lists completed actions, not intentions. "Wrote tests" beats "Will write tests".
|
|
69
|
+
- **Not Done / Deferred / Unverified** is required and may not be silently skipped. If full scope was completed, write `None — full scope completed`. If anything was attempted but not verified, list it here, not under Done.
|
|
70
|
+
- **Open Questions / Blockers** surfaces ambiguity proactively. Write `None` only after checking.
|
|
71
|
+
- **Confidence** uses the quality charter §1 scale. The one-sentence basis must name what was verified (high), what pattern was followed (medium), or that the answer is professional judgment (low).
|
|
72
|
+
|
|
73
|
+
## Anti-Patterns
|
|
74
|
+
|
|
75
|
+
- Substituting a prose paragraph for the block.
|
|
76
|
+
- Omitting the `## Iteration Summary` anchor — downstream agents and orchestrators locate the block by this header.
|
|
77
|
+
- Writing "None" reflexively without checking — list the uncertainty when in doubt.
|
|
78
|
+
- Inflating confidence — if you did not verify, say medium and name the unknown.
|
|
79
|
+
- Burying unverified work in `Done` — attempted-but-not-verified belongs in Not Done / Unverified.
|
|
80
|
+
|
|
81
|
+
## Reference
|
|
82
|
+
|
|
83
|
+
Confidence semantics: `agents/shared/quality-charter.md` §1.
|
|
@@ -5,6 +5,7 @@ description: Database migration and schema change patterns for the project
|
|
|
5
5
|
scope: "**/migrations/**,**/*migration*,**/migrate/**,**/seeds/**,**/seeders/**,**/prisma/migrations/**,**/drizzle/**,**/knex/**"
|
|
6
6
|
tags: [implementation, brownfield]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
cache_friendly: true
|
|
8
9
|
---
|
|
9
10
|
# Migrations
|
|
10
11
|
|