hatch3r 1.7.5 → 1.9.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.
- package/README.md +37 -56
- package/dist/cli/index.js +13554 -13329
- package/dist/cli/index.js.map +1 -1
- package/{agents → dist/content/agents}/hatch3r-a11y-auditor.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-ci-watcher.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-context-rules.md +25 -9
- package/{agents → dist/content/agents}/hatch3r-creator.md +17 -16
- package/{agents → dist/content/agents}/hatch3r-dependency-auditor.md +1 -1
- package/{agents → dist/content/agents}/hatch3r-devops.md +3 -3
- package/{agents → dist/content/agents}/hatch3r-fixer.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-handoff-loader.md +12 -12
- package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +7 -7
- package/{agents → dist/content/agents}/hatch3r-implementer.md +10 -2
- package/{agents → dist/content/agents}/hatch3r-learnings-loader.md +12 -12
- package/{agents → dist/content/agents}/hatch3r-lint-fixer.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-researcher.md +3 -3
- package/{agents → dist/content/agents}/hatch3r-reviewer.md +6 -4
- package/{agents → dist/content/agents}/hatch3r-security-auditor.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-test-writer.md +2 -2
- package/{agents → dist/content/agents}/shared/external-knowledge.md +1 -1
- package/{agents → dist/content/agents}/shared/injection-patterns.md +1 -1
- package/{agents → dist/content/agents}/shared/quality-charter.md +31 -3
- package/{agents → dist/content/agents}/shared/user-content-templates.md +41 -11
- package/{agents → dist/content/agents}/shared/user-question-protocol.md +2 -0
- package/{commands → dist/content/commands}/board/pickup-azure-devops.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-delegation-multi.md +4 -4
- package/{commands → dist/content/commands}/board/pickup-delegation.md +3 -3
- package/{commands → dist/content/commands}/board/pickup-github.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-gitlab.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-post-impl.md +2 -2
- package/{commands → dist/content/commands}/board/shared-azure-devops.md +1 -1
- package/{commands → dist/content/commands}/board/shared-github.md +2 -2
- package/{commands → dist/content/commands}/board/shared-gitlab.md +1 -1
- package/{commands → dist/content/commands}/hatch3r-api-spec.md +8 -1
- package/{commands → dist/content/commands}/hatch3r-benchmark.md +8 -1
- package/{commands → dist/content/commands}/hatch3r-board-fill.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-board-pickup.md +14 -6
- package/{commands → dist/content/commands}/hatch3r-bug-plan.md +12 -5
- package/{commands → dist/content/commands}/hatch3r-codebase-map.md +10 -2
- package/{commands → dist/content/commands}/hatch3r-create.md +68 -15
- package/{commands → dist/content/commands}/hatch3r-debug.md +18 -11
- package/{commands → dist/content/commands}/hatch3r-feature-plan.md +12 -5
- package/{commands → dist/content/commands}/hatch3r-handoff.md +16 -9
- package/{commands → dist/content/commands}/hatch3r-healthcheck.md +5 -1
- package/{commands → dist/content/commands}/hatch3r-hooks.md +16 -12
- package/{commands → dist/content/commands}/hatch3r-learn.md +27 -11
- package/{commands → dist/content/commands}/hatch3r-migration-plan.md +9 -2
- package/{commands → dist/content/commands}/hatch3r-onboard.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +16 -9
- package/{commands → dist/content/commands}/hatch3r-project-spec.md +11 -3
- package/{commands → dist/content/commands}/hatch3r-quick-change.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +11 -4
- package/{commands → dist/content/commands}/hatch3r-report.md +1 -1
- package/{commands → dist/content/commands}/hatch3r-revision.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-roadmap.md +10 -2
- package/{commands → dist/content/commands}/hatch3r-security-audit.md +6 -2
- package/{commands → dist/content/commands}/hatch3r-test-plan.md +12 -5
- package/{commands → dist/content/commands}/hatch3r-workflow.md +18 -10
- package/{commands → dist/content/commands}/revision/revision-delegation.md +2 -2
- package/{commands → dist/content/commands}/revision/revision-quality.md +2 -2
- package/{github-agents → dist/content/github-agents}/hatch3r-docs-agent.md +1 -1
- package/{github-agents → dist/content/github-agents}/hatch3r-lint-agent.md +1 -1
- package/{github-agents → dist/content/github-agents}/hatch3r-security-agent.md +1 -1
- package/{github-agents → dist/content/github-agents}/hatch3r-test-agent.md +1 -1
- package/{hooks → dist/content/hooks}/hatch3r-ci-failure.md +3 -3
- package/{hooks → dist/content/hooks}/hatch3r-file-save.md +3 -3
- package/{hooks → dist/content/hooks}/hatch3r-post-merge.md +1 -1
- package/{hooks → dist/content/hooks}/hatch3r-pre-commit.md +1 -1
- package/{hooks → dist/content/hooks}/hatch3r-pre-push.md +3 -3
- package/{hooks → dist/content/hooks}/hatch3r-session-start.md +3 -3
- package/{rules → dist/content/rules}/hatch3r-accessibility-standards.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-accessibility-standards.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.md +5 -2
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.mdc +4 -1
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration.md +27 -4
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration.mdc +26 -3
- package/{rules → dist/content/rules}/hatch3r-ai-evals.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-ai-evals.mdc +2 -1
- package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-api-versioning.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-api-versioning.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-auth-patterns.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-auth-patterns.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-browser-verification.md +6 -10
- package/{rules → dist/content/rules}/hatch3r-browser-verification.mdc +6 -10
- package/{rules → dist/content/rules}/hatch3r-ci-cd.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-ci-cd.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-code-standards.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-component-conventions.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-container-hardening.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-container-hardening.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-contract-testing.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-contract-testing.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-data-classification.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-data-classification.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-deep-context.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-dependency-management.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-dependency-management.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-design-system-detection.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-design-system-detection.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-git-conventions.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-handoff-readiness.md +4 -4
- package/{rules → dist/content/rules}/hatch3r-handoff-readiness.mdc +3 -3
- package/{rules → dist/content/rules}/hatch3r-i18n.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-iteration-summary.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-iteration-summary.mdc +2 -0
- package/{rules → dist/content/rules}/hatch3r-learning-consult.md +7 -7
- package/{rules → dist/content/rules}/hatch3r-learning-consult.mdc +6 -6
- package/{rules → dist/content/rules}/hatch3r-migrations.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-logging.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
- package/{rules/hatch3r-observability-tracing-detail.md → dist/content/rules/hatch3r-observability-tracing.md} +85 -10
- package/{rules/hatch3r-observability-tracing-detail.mdc → dist/content/rules/hatch3r-observability-tracing.mdc} +84 -9
- package/{rules → dist/content/rules}/hatch3r-operability.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-passkey-server.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +1 -1
- package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-secrets-management.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-security-patterns.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-testing.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-testing.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-theming.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +4 -4
- package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +3 -3
- package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +1 -0
- package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +2 -0
- package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +68 -0
- package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +1 -1
- package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +7 -16
- package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +62 -24
- package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +7 -16
- package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +13 -20
- package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-cli-gh/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +7 -3
- package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +3 -3
- package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +269 -0
- package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +18 -2
- package/{skills → dist/content/skills}/hatch3r-cost-tracking/SKILL.md +59 -7
- package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +6 -4
- package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +6 -2
- package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +3 -1
- package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/azure-devops.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-handoff-prepare/SKILL.md +9 -9
- package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-incident-response/SKILL.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-recipe/SKILL.md +82 -2
- package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-release/SKILL.md +35 -2
- package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +2 -0
- package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +3 -1
- package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +1 -1
- package/package.json +13 -22
- package/commands/hatch3r-agent-customize.md +0 -197
- package/commands/hatch3r-command-customize.md +0 -109
- package/commands/hatch3r-context-health.md +0 -142
- package/commands/hatch3r-cost-tracking.md +0 -163
- package/commands/hatch3r-dep-audit.md +0 -184
- package/commands/hatch3r-recipe.md +0 -190
- package/commands/hatch3r-release.md +0 -345
- package/commands/hatch3r-rule-customize.md +0 -129
- package/commands/hatch3r-skill-customize.md +0 -108
- package/prompts/hatch3r-bug-triage.md +0 -158
- package/prompts/hatch3r-code-review.md +0 -134
- package/prompts/hatch3r-pr-description.md +0 -176
- package/rules/hatch3r-observability-tracing.md +0 -87
- package/rules/hatch3r-observability-tracing.mdc +0 -82
- package/rules/hatch3r-observability.md +0 -20
- package/rules/hatch3r-observability.mdc +0 -14
- package/skills/hatch3r-agent-customize/SKILL.md +0 -13
- package/skills/hatch3r-cli-aichat/SKILL.md +0 -84
- package/skills/hatch3r-cli-ast-grep/SKILL.md +0 -85
- package/skills/hatch3r-cli-az-devops/SKILL.md +0 -89
- package/skills/hatch3r-cli-bat/SKILL.md +0 -85
- package/skills/hatch3r-cli-comby/SKILL.md +0 -85
- package/skills/hatch3r-cli-csvkit/SKILL.md +0 -84
- package/skills/hatch3r-cli-delta/SKILL.md +0 -86
- package/skills/hatch3r-cli-difftastic/SKILL.md +0 -84
- package/skills/hatch3r-cli-docker/SKILL.md +0 -89
- package/skills/hatch3r-cli-duckdb/SKILL.md +0 -84
- package/skills/hatch3r-cli-glab/SKILL.md +0 -89
- package/skills/hatch3r-cli-lazygit/SKILL.md +0 -78
- package/skills/hatch3r-cli-llm/SKILL.md +0 -84
- package/skills/hatch3r-cli-miller/SKILL.md +0 -84
- package/skills/hatch3r-cli-mods/SKILL.md +0 -84
- package/skills/hatch3r-cli-overview/SKILL.md +0 -60
- package/skills/hatch3r-cli-playwright/SKILL.md +0 -89
- package/skills/hatch3r-cli-podman/SKILL.md +0 -84
- package/skills/hatch3r-cli-rtk/SKILL.md +0 -91
- package/skills/hatch3r-cli-sd/SKILL.md +0 -85
- package/skills/hatch3r-cli-stagehand/SKILL.md +0 -79
- package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
- package/skills/hatch3r-cli-xsv/SKILL.md +0 -89
- package/skills/hatch3r-cli-yq/SKILL.md +0 -85
- package/skills/hatch3r-cli-zstd/SKILL.md +0 -85
- package/skills/hatch3r-command-customize/SKILL.md +0 -13
- package/skills/hatch3r-rule-customize/SKILL.md +0 -13
- package/skills/hatch3r-skill-customize/SKILL.md +0 -13
- /package/{agents → dist/content/agents}/hatch3r-architect.md +0 -0
- /package/{agents → dist/content/agents}/hatch3r-docs-writer.md +0 -0
- /package/{agents → dist/content/agents}/hatch3r-perf-profiler.md +0 -0
- /package/{agents → dist/content/agents}/modes/architecture.md +0 -0
- /package/{agents → dist/content/agents}/modes/boundary-analysis.md +0 -0
- /package/{agents → dist/content/agents}/modes/codebase-impact.md +0 -0
- /package/{agents → dist/content/agents}/modes/complexity-risk.md +0 -0
- /package/{agents → dist/content/agents}/modes/coverage-analysis.md +0 -0
- /package/{agents → dist/content/agents}/modes/current-state.md +0 -0
- /package/{agents → dist/content/agents}/modes/feature-design.md +0 -0
- /package/{agents → dist/content/agents}/modes/impact-analysis.md +0 -0
- /package/{agents → dist/content/agents}/modes/library-docs.md +0 -0
- /package/{agents → dist/content/agents}/modes/migration-path.md +0 -0
- /package/{agents → dist/content/agents}/modes/prior-art.md +0 -0
- /package/{agents → dist/content/agents}/modes/refactoring-strategy.md +0 -0
- /package/{agents → dist/content/agents}/modes/regression.md +0 -0
- /package/{agents → dist/content/agents}/modes/requirements-elicitation.md +0 -0
- /package/{agents → dist/content/agents}/modes/risk-assessment.md +0 -0
- /package/{agents → dist/content/agents}/modes/risk-prioritization.md +0 -0
- /package/{agents → dist/content/agents}/modes/root-cause.md +0 -0
- /package/{agents → dist/content/agents}/modes/similar-implementation.md +0 -0
- /package/{agents → dist/content/agents}/modes/symptom-trace.md +0 -0
- /package/{agents → dist/content/agents}/modes/test-pattern.md +0 -0
- /package/{agents → dist/content/agents}/modes/user-flows.md +0 -0
- /package/{agents → dist/content/agents}/shared/efficiency-patterns.md +0 -0
- /package/{agents → dist/content/agents}/shared/prompt-structure.md +0 -0
- /package/{checks → dist/content/checks}/README.md +0 -0
- /package/{checks → dist/content/checks}/accessibility.md +0 -0
- /package/{checks → dist/content/checks}/code-quality.md +0 -0
- /package/{checks → dist/content/checks}/performance.md +0 -0
- /package/{checks → dist/content/checks}/security.md +0 -0
- /package/{checks → dist/content/checks}/testing.md +0 -0
- /package/{commands → dist/content/commands}/board/pickup-modes.md +0 -0
- /package/{commands → dist/content/commands}/board/shared-board-overview.md +0 -0
- /package/{commands → dist/content/commands}/revision/revision-board-integration.md +0 -0
- /package/{commands → dist/content/commands}/revision/revision-modes.md +0 -0
- /package/{mcp → dist/content/mcp}/mcp.json +0 -0
- /package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-api-design.md +0 -0
- /package/{rules → dist/content/rules}/hatch3r-api-design.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-feature-flags.md +0 -0
- /package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-i18n.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +0 -0
- /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-theming.mdc +0 -0
- /package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Mandatory agent delegation, skill loading, and subagent usage directives for ALL tasks in ALL contexts
|
|
3
3
|
alwaysApply: true
|
|
4
|
+
precedence: high
|
|
4
5
|
---
|
|
5
6
|
# Agent Orchestration
|
|
6
7
|
|
|
@@ -98,6 +99,28 @@ Examples:
|
|
|
98
99
|
|
|
99
100
|
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
|
|
|
102
|
+
### End-of-Turn Delegation Attestation
|
|
103
|
+
|
|
104
|
+
When the turn is on a tracked task at Tier >= 2 AND caused at least one file mutation, the orchestrator MUST emit a closing block immediately before the Iteration Summary. The block enumerates every file mutated this turn, the spawning sub-agent invocation, and the `delegation_proof_id` returned by that sub-agent.
|
|
105
|
+
|
|
106
|
+
Format:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
[hatch3r-delegation-attestation]
|
|
110
|
+
files_mutated_this_turn:
|
|
111
|
+
- <relative path>: via <agent-name> (proof: <delegation_proof_id>)
|
|
112
|
+
mutating_subagent_invocations: <integer>
|
|
113
|
+
inline_edits_by_orchestrator: none | <carve-out: hatch3r-quick-change Tier-1 + queued re-delegation>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Rules:
|
|
117
|
+
|
|
118
|
+
- Each `files_mutated_this_turn` row MUST cite the spawning sub-agent invocation and quote the `delegation_proof_id` returned by that sub-agent verbatim. Unattributable rows are self-declared P8 B2 violations and the orchestrator MUST queue re-delegation in the next turn.
|
|
119
|
+
- `inline_edits_by_orchestrator: none` is the only acceptable value outside the `hatch3r-quick-change` Tier-1 carve-out declared in the "Inline implementation" definition above.
|
|
120
|
+
- Tier 1 read-only and chat-only turns are exempt — same scope as the Per-Turn Pipeline-State Header.
|
|
121
|
+
- Missing block on a Tier >= 2 mutating turn is a self-detectable drift signal — the user may halt the turn and re-ground per the same protocol as the missing-header signal.
|
|
122
|
+
- The block is consumed by reviewers and the next orchestrator turn; it sits beside the Iteration Summary, not inside it, preserving the existing 5-field iteration-summary contract verbatim.
|
|
123
|
+
|
|
101
124
|
### Mandatory Delegation Directive (No Inline Implementation)
|
|
102
125
|
|
|
103
126
|
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.
|
|
@@ -127,14 +150,14 @@ For multi-sub-task implementations, the implementer performs a lightweight mini-
|
|
|
127
150
|
|
|
128
151
|
1. Spawn `hatch3r-reviewer` with diff and acceptance criteria. Reviewer includes blast radius summary.
|
|
129
152
|
2. Critical/Warning findings: spawn `hatch3r-fixer` with full reviewer output.
|
|
130
|
-
3. Re-review after fixes. Repeat until 0 Critical + 0 Warning, or max
|
|
153
|
+
3. Re-review after fixes. Repeat until 0 Critical + 0 Warning, or max 4 iterations (matches `DEFAULT_MAX_REVIEW_ITERATIONS` in `src/pipeline/reviewLoop.ts`; raised from 3 to 4 in Cycle 7.5 W2B2 finding H26 so the oscillation detector becomes reachable in default config). The rule default and the code constant are kept in sync by `src/__tests__/pipeline/reviewLoop.test.ts` (CI-enforced).
|
|
131
154
|
4. **Confirmation pass** after clean review: lightweight re-review for fix-driven regressions and acceptance criteria completeness. The confirmation pass checks only: (a) no new test failures compared to Phase 2 baseline, (b) no type errors introduced, (c) acceptance criteria from the issue are still met. It does not re-run the full review checklist.
|
|
132
155
|
5. Max iterations reached: surface to user with a structured summary: iteration count, remaining Critical findings (with file:line), remaining Warning findings, and a recommendation (fix manually vs. accept risk). Never present raw reviewer output without summarization.
|
|
133
156
|
6. **Review gate confidence signal:** When the review loop exits with a clean verdict, record the iteration count in `PipelineContext.reviewResult.iterations`. Clean-on-first-pass (iteration 1) signals higher confidence than clean-after-multiple-iterations (iteration 2-3). Phase 4 specialists and the orchestrator should factor this into their risk assessment.
|
|
134
157
|
|
|
135
158
|
**Phase 4 — Final Quality** (after review loop is clean):
|
|
136
159
|
|
|
137
|
-
Launch parallel
|
|
160
|
+
Launch Phase 4 specialists in parallel, bounded by `max_phase4_parallel` (default `3`, override via `HATCH3R_MAX_PHASE4_PARALLEL` env var; valid range 1-16, values outside the range fall back to default with a logged warning). The bound exists to cap per-orchestrator concurrent context cost — it does not soften the P8 B2 directive that fan-out scales with task decomposition. When the number of applicable specialists exceeds `max_phase4_parallel`, batch them by severity-descending priority: `CRITICAL → HIGH → MEDIUM → LOW` (severity is the worst-case finding class the specialist is expected to surface, per the `hatch3r-test-writer` / `hatch3r-security-auditor` always-on baseline → CRITICAL, conditional UI/security/perf → HIGH, docs/lint → MEDIUM, low-impact specialists → LOW). Within the same severity bucket, dispatch order is the trigger-table order in the table above. Each batch runs to completion (all specialists return SUCCESS/PARTIAL/FAILED) before the next batch starts; the validation pass below runs once after the final batch.
|
|
138
161
|
|
|
139
162
|
- **Always** (except when Phase Skip Criteria applies — see below)**:** `hatch3r-test-writer`, `hatch3r-security-auditor`
|
|
140
163
|
- **Evaluate:** `hatch3r-docs-writer` (when APIs/architecture/UX affected)
|
|
@@ -343,6 +366,6 @@ All `scope: always` rules apply to every task including subagent work. Include r
|
|
|
343
366
|
- `hatch3r-dependency-management` -- dependency-auditor
|
|
344
367
|
|
|
345
368
|
**Tier 3 -- On-demand:**
|
|
346
|
-
- `hatch3r-api-design`, `hatch3r-secrets-management`, `hatch3r-data-classification`, `hatch3r-performance-budgets`, `hatch3r-browser-verification`, `hatch3r-component-conventions`, `hatch3r-i18n`, `hatch3r-theming`, `hatch3r-migrations`, `hatch3r-feature-flags`, `hatch3r-observability-logging`, `hatch3r-observability-metrics`, `hatch3r-observability-tracing
|
|
369
|
+
- `hatch3r-api-design`, `hatch3r-secrets-management`, `hatch3r-data-classification`, `hatch3r-performance-budgets`, `hatch3r-browser-verification`, `hatch3r-component-conventions`, `hatch3r-i18n`, `hatch3r-theming`, `hatch3r-migrations`, `hatch3r-feature-flags`, `hatch3r-observability-logging`, `hatch3r-observability-metrics`, `hatch3r-observability-tracing`
|
|
347
370
|
|
|
348
371
|
For limited context windows, Tier 1 is mandatory. Tier 2/3 included selectively by agent role and task scope.
|
|
@@ -4,6 +4,7 @@ type: rule
|
|
|
4
4
|
description: AI feature evaluation, prompt versioning, cost telemetry, prompt caching, model fallback, and hallucination-as-SLI for end-user projects shipping LLM features
|
|
5
5
|
scope: "**/ai/**,**/llm/**,**/chat/**,**/assistant/**,**/agents/**,**/copilot/**,**/evals/**,**/prompts/**,**/rag/**"
|
|
6
6
|
tags: [review, implementation, ai]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -67,7 +68,7 @@ Match the metric to the task class:
|
|
|
67
68
|
|
|
68
69
|
Every LLM call logs: `tokens_in`, `tokens_out`, `cache_hit` (boolean + cached_tokens count), `model`, `cost_usd`, `latency_ms`, `cost_center` (feature ID), `prompt_version`, `prompt_hash`, `user_id_hash`.
|
|
69
70
|
|
|
70
|
-
Aggregate dashboards in the observability stack — cross-reference `rules/hatch3r-observability-metrics.md` and `rules/hatch3r-observability-tracing
|
|
71
|
+
Aggregate dashboards in the observability stack — cross-reference `rules/hatch3r-observability-metrics.md` and `rules/hatch3r-observability-tracing.md` for the SLI/SLO vocabulary, and `skills/hatch3r-observability-verify` for the wiring checklist. Per-feature budget alerts fire at 50%, 75%, and 90% of monthly budget; abuse-detection alert at 10x user p99 cost over a 1-hour window.
|
|
71
72
|
|
|
72
73
|
## Prompt Caching (Anthropic)
|
|
73
74
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: AI feature evaluation, prompt versioning, cost telemetry, prompt caching, model fallback, and hallucination-as-SLI for end-user projects shipping LLM features
|
|
3
3
|
globs: ["**/ai/**", "**/llm/**", "**/chat/**", "**/assistant/**", "**/agents/**", "**/copilot/**", "**/evals/**", "**/prompts/**", "**/rag/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# AI Feature Evaluation and Cost Governance (2026)
|
|
7
8
|
|
|
@@ -63,7 +64,7 @@ Match the metric to the task class:
|
|
|
63
64
|
|
|
64
65
|
Every LLM call logs: `tokens_in`, `tokens_out`, `cache_hit` (boolean + cached_tokens count), `model`, `cost_usd`, `latency_ms`, `cost_center` (feature ID), `prompt_version`, `prompt_hash`, `user_id_hash`.
|
|
65
66
|
|
|
66
|
-
Aggregate dashboards in the observability stack — cross-reference `rules/hatch3r-observability-metrics.md` and `rules/hatch3r-observability-tracing
|
|
67
|
+
Aggregate dashboards in the observability stack — cross-reference `rules/hatch3r-observability-metrics.md` and `rules/hatch3r-observability-tracing.md` for the SLI/SLO vocabulary, and `skills/hatch3r-observability-verify` for the wiring checklist. Per-feature budget alerts fire at 50%, 75%, and 90% of monthly budget; abuse-detection alert at 10x user p99 cost over a 1-hour window.
|
|
67
68
|
|
|
68
69
|
## Prompt Caching (Anthropic)
|
|
69
70
|
|
|
@@ -3,7 +3,7 @@ id: hatch3r-ai-ux-patterns
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: 2026 AI/agentic UX patterns for end-user projects shipping AI features — streaming, tool-call UI, human-approval gates, cancel/abort/undo, citations
|
|
5
5
|
scope: "**/*.vue,**/*.jsx,**/*.tsx,**/*.svelte,**/ai/**,**/chat/**,**/assistant/**,**/agents/**,**/llm/**,**/copilot/**"
|
|
6
|
-
tags: [ux, ai, frontend]
|
|
6
|
+
tags: [implementation, floor:ui-ux, ux, ai, frontend]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
cache_friendly: true
|
|
9
9
|
---
|
|
@@ -4,6 +4,7 @@ type: rule
|
|
|
4
4
|
description: API versioning, deprecation lifecycle, and idempotency — RFC 9457 errors, RFC 9745 Deprecation header, RFC 8594 Sunset, OAuth 2.1, Idempotency-Key, semver vs CalVer for APIs
|
|
5
5
|
scope: "**/api/**,**/openapi*,**/asyncapi*,**/*.proto,**/routes/**,**/handlers/**,**/controllers/**"
|
|
6
6
|
tags: [implementation, devops]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: API versioning, deprecation lifecycle, and idempotency — RFC 9457 errors, RFC 9745 Deprecation header, RFC 8594 Sunset, OAuth 2.1, Idempotency-Key, semver vs CalVer for APIs
|
|
3
3
|
globs: ["**/api/**", "**/openapi*", "**/asyncapi*", "**/*.proto", "**/routes/**", "**/handlers/**", "**/controllers/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# API Versioning, Deprecation & Idempotency
|
|
7
8
|
|
|
@@ -3,7 +3,8 @@ id: hatch3r-auth-patterns
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Authentication and authorization patterns for end-user apps — OAuth 2.1, OIDC, DPoP, JWT rotation, cookie security, RBAC vs ABAC vs ReBAC rubric
|
|
5
5
|
scope: "**/auth/**,**/login/**,**/session/**,**/oauth/**,**/oidc/**,**/jwt/**,**/permissions/**,**/policies/**,**/middleware/**"
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [implementation, floor:security]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Authentication and authorization patterns for end-user apps — OAuth 2.1, OIDC, DPoP, JWT rotation, cookie security, RBAC vs ABAC vs ReBAC rubric
|
|
3
3
|
globs: ["**/auth/**", "**/login/**", "**/session/**", "**/oauth/**", "**/oidc/**", "**/jwt/**", "**/permissions/**", "**/policies/**", "**/middleware/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Authentication & Authorization Patterns
|
|
7
8
|
|
|
@@ -48,16 +48,12 @@ Browser verification is opt-in per command session. The orchestrator follows a s
|
|
|
48
48
|
| Supports Browser Verification | Does NOT Support |
|
|
49
49
|
| ------------------------------ | ---------------- |
|
|
50
50
|
| `hatch3r-workflow` | `hatch3r-board-fill` |
|
|
51
|
-
| `hatch3r-board-pickup` | `hatch3r-
|
|
52
|
-
| `hatch3r-quick-change` | `hatch3r-
|
|
53
|
-
| `hatch3r-revision` | `hatch3r-
|
|
54
|
-
| `hatch3r-debug` |
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
| | `hatch3r-rule-customize` |
|
|
58
|
-
| | `hatch3r-skill-customize` |
|
|
59
|
-
|
|
60
|
-
Commands in the "Does NOT Support" column are documentation-only, planning-only, or non-implementation commands. They MUST NOT prompt for browser verification.
|
|
51
|
+
| `hatch3r-board-pickup` | `hatch3r-roadmap` |
|
|
52
|
+
| `hatch3r-quick-change` | `hatch3r-refactor-plan` |
|
|
53
|
+
| `hatch3r-revision` | `hatch3r-security-audit` |
|
|
54
|
+
| `hatch3r-debug` | |
|
|
55
|
+
|
|
56
|
+
Commands in the "Does NOT Support" column are documentation-only, planning-only, or non-implementation commands. They MUST NOT prompt for browser verification. Skills (including `hatch3r-board-groom`, `hatch3r-board-refresh`, `hatch3r-release`) are invoked outside the orchestrator command lifecycle and therefore do not prompt for browser verification.
|
|
61
57
|
|
|
62
58
|
---
|
|
63
59
|
|
|
@@ -43,16 +43,12 @@ Browser verification is opt-in per command session. The orchestrator follows a s
|
|
|
43
43
|
| Supports Browser Verification | Does NOT Support |
|
|
44
44
|
| ------------------------------ | ---------------- |
|
|
45
45
|
| `hatch3r-workflow` | `hatch3r-board-fill` |
|
|
46
|
-
| `hatch3r-board-pickup` | `hatch3r-
|
|
47
|
-
| `hatch3r-quick-change` | `hatch3r-
|
|
48
|
-
| `hatch3r-revision` | `hatch3r-
|
|
49
|
-
| `hatch3r-debug` |
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
| | `hatch3r-rule-customize` |
|
|
53
|
-
| | `hatch3r-skill-customize` |
|
|
54
|
-
|
|
55
|
-
Commands in the "Does NOT Support" column are documentation-only, planning-only, or non-implementation commands. They MUST NOT prompt for browser verification.
|
|
46
|
+
| `hatch3r-board-pickup` | `hatch3r-roadmap` |
|
|
47
|
+
| `hatch3r-quick-change` | `hatch3r-refactor-plan` |
|
|
48
|
+
| `hatch3r-revision` | `hatch3r-security-audit` |
|
|
49
|
+
| `hatch3r-debug` | |
|
|
50
|
+
|
|
51
|
+
Commands in the "Does NOT Support" column are documentation-only, planning-only, or non-implementation commands. They MUST NOT prompt for browser verification. Skills (including `hatch3r-board-groom`, `hatch3r-board-refresh`, `hatch3r-release`) are invoked outside the orchestrator command lifecycle and therefore do not prompt for browser verification.
|
|
56
52
|
|
|
57
53
|
---
|
|
58
54
|
|
|
@@ -4,6 +4,7 @@ type: rule
|
|
|
4
4
|
description: CI/CD pipeline standards covering stage gates, deployment strategies, and rollback procedures
|
|
5
5
|
scope: "**/.github/workflows/**,**/Dockerfile*,**/docker-compose*,**/.gitlab-ci*,**/Jenkinsfile,**/azure-pipelines*,**/.circleci/**,**/deploy/**,**/*pipeline*"
|
|
6
6
|
tags: [devops]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: CI/CD pipeline standards covering stage gates, deployment strategies, and rollback procedures
|
|
3
3
|
globs: ["**/.github/workflows/**", "**/Dockerfile*", "**/docker-compose*", "**/.gitlab-ci*", "**/Jenkinsfile", "**/azure-pipelines*", "**/.circleci/**", "**/deploy/**", "**/*pipeline*"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# CI/CD Standards
|
|
7
8
|
|
|
@@ -3,7 +3,7 @@ id: hatch3r-code-standards
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: TypeScript typing discipline, naming, file size caps, Result types, barrel exports, import ordering, and monorepo boundary rules
|
|
5
5
|
scope: always
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [implementation, lang:typescript]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
cache_friendly: true
|
|
9
9
|
---
|
|
@@ -4,7 +4,7 @@ type: rule
|
|
|
4
4
|
description: Component structure, styling tokens, loading/error/empty states, form validation timing, and accessible label patterns for Vue, React, and JSX
|
|
5
5
|
scope: conditional
|
|
6
6
|
globs: "src/**/*.vue,src/**/*.tsx,src/**/*.jsx"
|
|
7
|
-
tags: [implementation, lang:typescript]
|
|
7
|
+
tags: [implementation, floor:ui-ux, lang:typescript]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
cache_friendly: true
|
|
10
10
|
---
|
|
@@ -3,7 +3,8 @@ id: hatch3r-container-hardening
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Container image hardening — digest pinning, distroless / Wolfi base, non-root user, SBOM-in-image, cosign signing + verification, multi-stage builds, CVE scanning
|
|
5
5
|
scope: "**/Dockerfile*,**/docker-compose*,**/*.containerfile,**/charts/**,**/k8s/**,**/kubernetes/**,**/manifests/**"
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [devops, floor:security]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Container image hardening — digest pinning, distroless / Wolfi base, non-root user, SBOM-in-image, cosign signing + verification, multi-stage builds, CVE scanning
|
|
3
3
|
globs: ["**/Dockerfile*", "**/docker-compose*", "**/*.containerfile", "**/charts/**", "**/k8s/**", "**/kubernetes/**", "**/manifests/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Container Hardening
|
|
7
8
|
|
|
@@ -4,6 +4,7 @@ type: rule
|
|
|
4
4
|
description: Consumer-driven and spec-driven contract testing between services — Pact, Schemathesis, Dredd, pact-broker can-i-deploy gate
|
|
5
5
|
scope: "**/contracts/**,**/pacts/**,**/api/**,**/openapi*,**/asyncapi*,**/*.proto,**/__tests__/contract/**"
|
|
6
6
|
tags: [review, implementation]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Consumer-driven and spec-driven contract testing between services — Pact, Schemathesis, Dredd, pact-broker can-i-deploy gate
|
|
3
3
|
globs: ["**/contracts/**", "**/pacts/**", "**/api/**", "**/openapi*", "**/asyncapi*", "**/*.proto", "**/__tests__/contract/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Contract Testing
|
|
7
8
|
|
|
@@ -3,7 +3,8 @@ id: hatch3r-data-classification
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Data classification standards covering PII handling, encryption, retention policies, and regulatory compliance
|
|
5
5
|
scope: "**/models/**,**/schemas/**,**/schema*,**/database/**,**/db/**,**/*model*,**/*entity*,**/prisma/**,**/drizzle/**,**/*migration*"
|
|
6
|
-
tags: [security]
|
|
6
|
+
tags: [floor:security]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Data classification standards covering PII handling, encryption, retention policies, and regulatory compliance
|
|
3
3
|
globs: ["**/models/**", "**/schemas/**", "**/schema*", "**/database/**", "**/db/**", "**/*model*", "**/*entity*", "**/prisma/**", "**/drizzle/**", "**/*migration*"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Data Classification Standards
|
|
7
8
|
|
|
@@ -3,7 +3,7 @@ id: hatch3r-deep-context
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Adaptive pre-implementation analysis — complexity scoring, requirements elicitation, similar implementation discovery, and transitive dependency tracing before coding
|
|
5
5
|
scope: always
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [orchestration, floor:protocol]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
cache_friendly: true
|
|
9
9
|
---
|
|
@@ -3,7 +3,8 @@ id: hatch3r-dependency-management
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Lockfile discipline, CVE scanning, transitive dependency audits, major version upgrade protocol, and bundle-size impact gates for package manifests
|
|
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
|
-
tags: [maintenance, security]
|
|
6
|
+
tags: [maintenance, floor:security]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Lockfile discipline, CVE scanning, transitive dependency audits, major version upgrade protocol, and bundle-size impact gates for package manifests
|
|
3
3
|
globs: ["**/package.json", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/Cargo.toml", "**/Cargo.lock", "**/requirements*.txt", "**/pyproject.toml", "**/go.mod", "**/go.sum", "**/Gemfile*"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Dependency Management
|
|
7
8
|
|
|
@@ -3,7 +3,8 @@ id: hatch3r-design-system-detection
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Mandatory detection of existing design tokens, theme primitives, and component library before AI agents author new UI components
|
|
5
5
|
scope: "**/*.vue,**/*.jsx,**/*.tsx,**/*.svelte,**/*.css,**/*.scss,**/components/**,**/tokens*,**/theme*,**/design-system/**,**/tailwind*"
|
|
6
|
-
tags: [ui, design-system, frontend]
|
|
6
|
+
tags: [implementation, floor:ui-ux, ui, design-system, frontend]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Mandatory detection of existing design tokens, theme primitives, and component library before AI agents author new UI components
|
|
3
3
|
globs: ["**/*.vue", "**/*.jsx", "**/*.tsx", "**/*.svelte", "**/*.css", "**/*.scss", "**/components/**", "**/tokens*", "**/theme*", "**/design-system/**", "**/tailwind*"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Design System Detection
|
|
7
8
|
|
|
@@ -4,6 +4,7 @@ type: rule
|
|
|
4
4
|
description: Event and message schema evolution patterns for Kafka / Kinesis / Pub-Sub / event store — backward + forward + full compatibility modes, schema registry, consumer-side defaults
|
|
5
5
|
scope: "**/events/**,**/schemas/**,**/*.avsc,**/*.proto,**/messaging/**,**/kafka/**,**/pubsub/**"
|
|
6
6
|
tags: [implementation, devops]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Event and message schema evolution patterns for Kafka / Kinesis / Pub-Sub / event store — backward + forward + full compatibility modes, schema registry, consumer-side defaults
|
|
3
3
|
globs: ["**/events/**", "**/schemas/**", "**/*.avsc", "**/*.proto", "**/messaging/**", "**/kafka/**", "**/pubsub/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Event Schema Evolution
|
|
7
8
|
|
|
@@ -3,7 +3,7 @@ id: hatch3r-git-conventions
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Conventional Commits type list, subject line rules, breaking-change footer format, and branch naming template for type/short-description
|
|
5
5
|
scope: "**/.git/**,**/.gitignore,**/.gitattributes,**/.gitmodules,**/COMMIT_EDITMSG"
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [orchestration]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
cache_friendly: true
|
|
9
9
|
---
|
|
@@ -3,15 +3,15 @@ id: hatch3r-handoff-readiness
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Handoff readiness checklist — pre-write validation before persisting a canonical handoff document.
|
|
5
5
|
scope: conditional
|
|
6
|
-
globs: .
|
|
6
|
+
globs: .hatch3r/handoffs/active/**/*.md
|
|
7
7
|
precedence: high
|
|
8
|
-
tags: [
|
|
8
|
+
tags: [orchestration, maintenance]
|
|
9
9
|
quality_charter: agents/shared/quality-charter.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
---
|
|
12
12
|
# Handoff Readiness Checklist
|
|
13
13
|
|
|
14
|
-
Before writing a handoff to `.
|
|
14
|
+
Before writing a handoff to `.hatch3r/handoffs/active/`, verify each criterion. Refuse the write if any **Required** criterion fails; warn on **Recommended** failures.
|
|
15
15
|
|
|
16
16
|
## Required (fail = refuse write)
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ The `hatch3r-handoff-preparer` agent applies this checklist before invoking `wri
|
|
|
39
39
|
|
|
40
40
|
## Cross-references
|
|
41
41
|
|
|
42
|
-
- Body sections schema: `.
|
|
42
|
+
- Body sections schema: `.hatch3r/handoffs/README.md`
|
|
43
43
|
- Iteration Summary contract (populates Work Done / Work Remaining / Blockers): `rules/hatch3r-iteration-summary.md`
|
|
44
44
|
- Injection-pattern catalog: `agents/shared/injection-patterns.md` Section B
|
|
45
45
|
- Quality charter (confidence levels): `agents/shared/quality-charter.md`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Handoff readiness checklist — pre-write validation before persisting a canonical handoff document.
|
|
3
|
-
globs: [".
|
|
3
|
+
globs: [".hatch3r/handoffs/active/**/*.md"]
|
|
4
4
|
alwaysApply: false
|
|
5
5
|
precedence: high
|
|
6
6
|
---
|
|
7
7
|
# Handoff Readiness Checklist
|
|
8
8
|
|
|
9
|
-
Before writing a handoff to `.
|
|
9
|
+
Before writing a handoff to `.hatch3r/handoffs/active/`, verify each criterion. Refuse the write if any **Required** criterion fails; warn on **Recommended** failures.
|
|
10
10
|
|
|
11
11
|
## Required (fail = refuse write)
|
|
12
12
|
|
|
@@ -34,7 +34,7 @@ The `hatch3r-handoff-preparer` agent applies this checklist before invoking `wri
|
|
|
34
34
|
|
|
35
35
|
## Cross-references
|
|
36
36
|
|
|
37
|
-
- Body sections schema: `.
|
|
37
|
+
- Body sections schema: `.hatch3r/handoffs/README.md`
|
|
38
38
|
- Iteration Summary contract (populates Work Done / Work Remaining / Blockers): `rules/hatch3r-iteration-summary.md`
|
|
39
39
|
- Injection-pattern catalog: `agents/shared/injection-patterns.md` Section B
|
|
40
40
|
- Quality charter (confidence levels): `agents/shared/quality-charter.md`
|
|
@@ -4,7 +4,7 @@ type: rule
|
|
|
4
4
|
description: Internationalization, localization, and RTL support conventions for the project
|
|
5
5
|
scope: conditional
|
|
6
6
|
globs: "src/**/*.vue,src/**/*.tsx,src/**/*.jsx,src/**/*.ts,**/locales/**,**/i18n/**,**/*i18n*,**/*locale*"
|
|
7
|
-
tags: [implementation, lang:typescript]
|
|
7
|
+
tags: [implementation, floor:ui-ux, lang:typescript]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
cache_friendly: true
|
|
10
10
|
---
|
|
@@ -3,7 +3,7 @@ id: hatch3r-iteration-summary
|
|
|
3
3
|
type: rule
|
|
4
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
5
|
scope: always
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [orchestration, floor:protocol]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
precedence: high
|
|
9
9
|
cache_friendly: true
|
|
@@ -67,6 +67,8 @@ Append only when they carry information. Do not include empty headers.
|
|
|
67
67
|
**Suggested Next Action:** {one line}
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
The **End-of-Turn Delegation Attestation** (defined in `hatch3r-agent-orchestration` -> End-of-Turn Delegation Attestation) is conditionally required and appears immediately BEFORE this Iteration Summary block. It applies when the turn is on a Tier >= 2 tracked task AND caused at least one file mutation. The Iteration Summary's 5-field contract is unchanged — the Attestation lives in a separate block to preserve backward compatibility for the 15 adapter outputs.
|
|
71
|
+
|
|
70
72
|
## Field Semantics
|
|
71
73
|
|
|
72
74
|
- **Outcome** is one sentence. The user should grasp what happened from this line alone.
|
|
@@ -62,6 +62,8 @@ Append only when they carry information. Do not include empty headers.
|
|
|
62
62
|
**Suggested Next Action:** {one line}
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
The **End-of-Turn Delegation Attestation** (defined in `hatch3r-agent-orchestration` -> End-of-Turn Delegation Attestation) is conditionally required and appears immediately BEFORE this Iteration Summary block. It applies when the turn is on a Tier >= 2 tracked task AND caused at least one file mutation. The Iteration Summary's 5-field contract is unchanged — the Attestation lives in a separate block to preserve backward compatibility for the 15 adapter outputs.
|
|
66
|
+
|
|
65
67
|
## Field Semantics
|
|
66
68
|
|
|
67
69
|
- **Outcome** is one sentence. The user should grasp what happened from this line alone.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-learning-consult
|
|
3
3
|
type: rule
|
|
4
|
-
description: Consult .
|
|
5
|
-
scope: "**/.
|
|
6
|
-
tags: [
|
|
4
|
+
description: Consult .hatch3r/learnings/ for pitfalls, patterns, and past decisions before implementation with frontmatter-first scan and priority ordering
|
|
5
|
+
scope: "**/.hatch3r/learnings/**,**/learnings/**"
|
|
6
|
+
tags: [orchestration]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
cache_friendly: true
|
|
9
9
|
---
|
|
10
10
|
# Learning Consultation
|
|
11
11
|
|
|
12
|
-
Before implementing any task, check `.
|
|
12
|
+
Before implementing any task, check `.hatch3r/learnings/` for relevant past learnings.
|
|
13
13
|
|
|
14
14
|
## Consultation Process
|
|
15
15
|
|
|
16
|
-
1. If `.
|
|
16
|
+
1. If `.hatch3r/learnings/` exists and contains files:
|
|
17
17
|
- Scan learning file frontmatter for matching `tags` or `area` that overlap with the current task.
|
|
18
18
|
- Read the `## Applies When` section of potential matches.
|
|
19
19
|
- Surface relevant learnings to the developer/agent before implementation begins.
|
|
@@ -23,7 +23,7 @@ Before implementing any task, check `.agents/learnings/` for relevant past learn
|
|
|
23
23
|
|
|
24
24
|
- During `hatch3r-board-pickup` Step 6: consult learnings before implementation delegation.
|
|
25
25
|
- During `hatch3r-board-fill` Step 4: consult learnings when scoping and estimating issues.
|
|
26
|
-
- During `hatch3r-board-groom` Step 4c: consult learnings when re-scoping or reclassifying existing issues.
|
|
26
|
+
- During the `hatch3r-board-groom` skill (Step 4c): consult learnings when re-scoping or reclassifying existing issues.
|
|
27
27
|
- During any skill execution: check for relevant pitfalls before coding.
|
|
28
28
|
|
|
29
29
|
## Learning Priority
|
|
@@ -39,4 +39,4 @@ To avoid excessive token usage during consultation:
|
|
|
39
39
|
1. **Scan frontmatter first.** Read only the YAML frontmatter (`tags`, `area`, `category`) of each learning file to determine relevance. Only read the full body of learnings that match the current task.
|
|
40
40
|
2. **Limit surfaced learnings.** Present at most 5 relevant learnings per consultation. If more are relevant, prioritize by confidence level (high > medium > low) and recency.
|
|
41
41
|
3. **Cache consultation results.** If consultation was already performed for this task (e.g., during board-pickup), do not re-consult during skill execution. The orchestrator passes relevant learnings to subagents as part of prompt enrichment.
|
|
42
|
-
4. **Skip when empty.** If `.
|
|
42
|
+
4. **Skip when empty.** If `.hatch3r/learnings/` has fewer than 3 files, consultation overhead exceeds value. Skip silently.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Consult .
|
|
3
|
-
globs: ["**/.
|
|
2
|
+
description: Consult .hatch3r/learnings/ for pitfalls, patterns, and past decisions before implementation with frontmatter-first scan and priority ordering
|
|
3
|
+
globs: ["**/.hatch3r/learnings/**", "**/learnings/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
5
|
---
|
|
6
6
|
# Learning Consultation
|
|
7
7
|
|
|
8
|
-
Before implementing any task, check `.
|
|
8
|
+
Before implementing any task, check `.hatch3r/learnings/` for relevant past learnings.
|
|
9
9
|
|
|
10
10
|
## Consultation Process
|
|
11
11
|
|
|
12
|
-
1. If `.
|
|
12
|
+
1. If `.hatch3r/learnings/` exists and contains files:
|
|
13
13
|
- Scan learning file frontmatter for matching `tags` or `area` that overlap with the current task.
|
|
14
14
|
- Read the `## Applies When` section of potential matches.
|
|
15
15
|
- Surface relevant learnings to the developer/agent before implementation begins.
|
|
@@ -19,7 +19,7 @@ Before implementing any task, check `.agents/learnings/` for relevant past learn
|
|
|
19
19
|
|
|
20
20
|
- During `hatch3r-board-pickup` Step 6: consult learnings before implementation delegation.
|
|
21
21
|
- During `hatch3r-board-fill` Step 4: consult learnings when scoping and estimating issues.
|
|
22
|
-
- During `hatch3r-board-groom` Step 4c: consult learnings when re-scoping or reclassifying existing issues.
|
|
22
|
+
- During the `hatch3r-board-groom` skill (Step 4c): consult learnings when re-scoping or reclassifying existing issues.
|
|
23
23
|
- During any skill execution: check for relevant pitfalls before coding.
|
|
24
24
|
|
|
25
25
|
## Learning Priority
|
|
@@ -35,4 +35,4 @@ To avoid excessive token usage during consultation:
|
|
|
35
35
|
1. **Scan frontmatter first.** Read only the YAML frontmatter (`tags`, `area`, `category`) of each learning file to determine relevance. Only read the full body of learnings that match the current task.
|
|
36
36
|
2. **Limit surfaced learnings.** Present at most 5 relevant learnings per consultation. If more are relevant, prioritize by confidence level (high > medium > low) and recency.
|
|
37
37
|
3. **Cache consultation results.** If consultation was already performed for this task (e.g., during board-pickup), do not re-consult during skill execution. The orchestrator passes relevant learnings to subagents as part of prompt enrichment.
|
|
38
|
-
4. **Skip when empty.** If `.
|
|
38
|
+
4. **Skip when empty.** If `.hatch3r/learnings/` has fewer than 3 files, consultation overhead exceeds value. Skip silently.
|
|
@@ -3,7 +3,8 @@ id: hatch3r-migrations
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Database migration and schema change patterns — expand-contract, online DDL, backfills, compatibility windows, reversibility, multi-region, tooling
|
|
5
5
|
scope: "**/migrations/**,**/*migration*,**/migrate/**,**/seeds/**,**/seeders/**,**/prisma/migrations/**,**/drizzle/**,**/knex/**"
|
|
6
|
-
tags: [implementation, brownfield]
|
|
6
|
+
tags: [implementation, ctx:brownfield-only]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Database migration and schema change patterns — expand-contract, online DDL, backfills, compatibility windows, reversibility, multi-region, tooling
|
|
3
3
|
globs: ["**/migrations/**", "**/*migration*", "**/migrate/**", "**/seeds/**", "**/seeders/**", "**/prisma/migrations/**", "**/drizzle/**", "**/knex/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Migrations
|
|
7
8
|
|
|
@@ -5,6 +5,7 @@ description: Structured logging and error reporting conventions for the project
|
|
|
5
5
|
scope: conditional
|
|
6
6
|
globs: "**/*log*,**/*logger*,**/*logging*,**/*error*,**/observability/**,**/routes/**,**/handlers/**,**/services/**,**/api/**,**/middleware/**,**/controllers/**,**/lib/**"
|
|
7
7
|
tags: [devops]
|
|
8
|
+
precedence: high
|
|
8
9
|
quality_charter: agents/shared/quality-charter.md
|
|
9
10
|
cache_friendly: true
|
|
10
11
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Structured logging and error reporting conventions for the project
|
|
3
3
|
globs: ["**/*log*", "**/*logger*", "**/*logging*", "**/*error*", "**/observability/**", "**/routes/**", "**/handlers/**", "**/services/**", "**/api/**", "**/middleware/**", "**/controllers/**", "**/lib/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Observability -- Logging & Error Reporting
|
|
7
8
|
|
|
@@ -5,6 +5,7 @@ description: Metrics, SLO/SLI definitions, alerting, and dashboard conventions f
|
|
|
5
5
|
scope: conditional
|
|
6
6
|
globs: "**/*metric*,**/*slo*,**/*sli*,**/*alert*,**/*dashboard*,**/observability/**,**/routes/**,**/handlers/**,**/services/**,**/api/**,**/middleware/**,**/controllers/**,**/lib/**"
|
|
7
7
|
tags: [devops]
|
|
8
|
+
precedence: high
|
|
8
9
|
quality_charter: agents/shared/quality-charter.md
|
|
9
10
|
cache_friendly: true
|
|
10
11
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Metrics, SLO/SLI definitions, alerting, and dashboard conventions for the project
|
|
3
3
|
globs: ["**/*metric*", "**/*slo*", "**/*sli*", "**/*alert*", "**/*dashboard*", "**/observability/**", "**/routes/**", "**/handlers/**", "**/services/**", "**/api/**", "**/middleware/**", "**/controllers/**", "**/lib/**"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Observability -- Metrics, SLOs & Alerting
|
|
7
8
|
|