hatch3r 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +36 -0
  2. package/agents/hatch3r-a11y-auditor.md +1 -4
  3. package/agents/hatch3r-architect.md +1 -4
  4. package/agents/hatch3r-ci-watcher.md +1 -4
  5. package/agents/hatch3r-context-rules.md +1 -4
  6. package/agents/hatch3r-dependency-auditor.md +4 -7
  7. package/agents/hatch3r-devops.md +1 -4
  8. package/agents/hatch3r-docs-writer.md +1 -4
  9. package/agents/hatch3r-learnings-loader.md +146 -15
  10. package/agents/hatch3r-lint-fixer.md +1 -4
  11. package/agents/hatch3r-perf-profiler.md +1 -4
  12. package/agents/hatch3r-researcher.md +1 -6
  13. package/agents/hatch3r-reviewer.md +1 -4
  14. package/agents/hatch3r-security-auditor.md +1 -4
  15. package/agents/hatch3r-test-writer.md +1 -4
  16. package/agents/modes/architecture.md +44 -0
  17. package/agents/modes/boundary-analysis.md +45 -0
  18. package/agents/modes/codebase-impact.md +81 -0
  19. package/agents/modes/complexity-risk.md +40 -0
  20. package/agents/modes/coverage-analysis.md +44 -0
  21. package/agents/modes/current-state.md +52 -0
  22. package/agents/modes/feature-design.md +39 -0
  23. package/agents/modes/impact-analysis.md +45 -0
  24. package/agents/modes/library-docs.md +31 -0
  25. package/agents/modes/migration-path.md +55 -0
  26. package/agents/modes/prior-art.md +31 -0
  27. package/agents/modes/refactoring-strategy.md +55 -0
  28. package/agents/modes/regression.md +45 -0
  29. package/agents/modes/requirements-elicitation.md +68 -0
  30. package/agents/modes/risk-assessment.md +41 -0
  31. package/agents/modes/risk-prioritization.md +43 -0
  32. package/agents/modes/root-cause.md +39 -0
  33. package/agents/modes/similar-implementation.md +70 -0
  34. package/agents/modes/symptom-trace.md +39 -0
  35. package/agents/modes/test-pattern.md +61 -0
  36. package/agents/shared/external-knowledge.md +11 -0
  37. package/commands/hatch3r-board-shared.md +25 -0
  38. package/commands/hatch3r-context-health.md +22 -2
  39. package/commands/hatch3r-cost-tracking.md +14 -0
  40. package/commands/hatch3r-learn.md +68 -2
  41. package/dist/cli/index.js +2105 -379
  42. package/dist/cli/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/rules/hatch3r-agent-orchestration.md +12 -0
  45. package/skills/hatch3r-dep-audit/SKILL.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hatch3r",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
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
  "bin": {
@@ -260,6 +260,18 @@ When multiple agents need the same context (e.g., project structure, test result
260
260
  - Test suite results captured during implementation verification should be cached and forwarded to the reviewer and test-writer rather than re-running the full suite in each phase.
261
261
  - This reduces redundant file reads, avoids inconsistencies from reading files at different points in time, and conserves token budget across subagent prompts.
262
262
 
263
+ ### Cache Enforcement
264
+
265
+ The orchestrator MUST enforce caching at each phase transition. Caching is not optional guidance -- it is a pipeline invariant.
266
+
267
+ 1. **Pre-handoff cache check**: Before spawning any downstream subagent, the orchestrator MUST verify that all cacheable outputs from prior phases are stored in `PipelineContext`. If a cacheable output is missing, the orchestrator MUST populate it before proceeding. Cacheable outputs include:
268
+ - Phase 1: file lists, dependency maps, convention extractions, blast radius data
269
+ - Phase 2: test suite results, modified file list, build output
270
+ - Phase 3: reviewer findings, fixer diffs, resolved/unresolved finding status
271
+ 2. **No redundant reads**: If a subagent prompt would include context that exists in the cache, the orchestrator MUST pass the cached version. Subagents MUST NOT re-read files or re-run commands whose results are already cached and fresh (per Cache Verification above).
272
+ 3. **Cache population logging**: Log every cache write with the key and size: `"Cache WRITE <cache_key>: <token_estimate> tokens"`. This provides visibility into which data is being cached and its cost.
273
+ 4. **Enforcement violation**: If a subagent re-reads or re-computes data that was available in the cache, log a warning: `"Cache BYPASS detected: <agent> re-computed <cache_key> instead of using cached value"`. This warning is informational (severity INFO) and does not block the pipeline, but it flags an optimization gap for future runs.
274
+
263
275
  ### PipelineContext Usage
264
276
 
265
277
  1. **Initialization**: The orchestrator creates a `PipelineContext` at the start of Phase 1 with the `correlationId` and `phase` set to `"research"`. All other fields are initialized as empty arrays.
@@ -35,7 +35,7 @@ For critical and high vulnerabilities:
35
35
  - **GitHub:** GitHub Security Advisories (`gh api /repos/{owner}/{repo}/security-advisories`)
36
36
  - **Azure DevOps:** Azure Artifacts security scanning and Azure Boards advisory tracking
37
37
  - **GitLab:** GitLab Dependency Scanning (Security & Compliance → Vulnerability Report)
38
- - Prioritize: critical first, then high. Moderate/low can be batched.
38
+ - Prioritize: critical first, then high. Medium/low can be batched.
39
39
  - Note any packages with no fix available — document mitigation or deferral rationale.
40
40
 
41
41
  ## Step 3: Plan Upgrades