@boyingliu01/xp-gate 0.41.72 → 0.41.74

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 (50) hide show
  1. package/adapters/java.sh +153 -10
  2. package/adapters/typescript.sh +5 -2
  3. package/hooks/gate-entries/gate-12b-entry.sh +8 -0
  4. package/hooks/gate-entries/gate-2-entry.sh +16 -10
  5. package/hooks/gate-entries/gate-5-entry.sh +41 -11
  6. package/hooks/gate-entries/gate-6-entry.sh +3 -0
  7. package/hooks/hook-module-resolution.sh +1 -0
  8. package/hooks/lib/validate-code-walkthrough.cjs +9 -1
  9. package/lib/hook-module-resolution.js +11 -0
  10. package/lib/mattpocock-license-verdict.json +1 -1
  11. package/mutation/AGENTS.md +9 -5
  12. package/package.json +1 -1
  13. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  14. package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
  15. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
  16. package/plugins/claude-code/skills/sprint-flow/references/phase-3-build.md +3 -3
  17. package/plugins/claude-code/skills/sprint-flow/references/phase-overview.md +2 -2
  18. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
  19. package/plugins/dsh/lib/evidence.d.ts +15 -0
  20. package/plugins/dsh/lib/evidence.d.ts.map +1 -1
  21. package/plugins/dsh/lib/evidence.js +28 -0
  22. package/plugins/dsh/lib/index.d.ts.map +1 -1
  23. package/plugins/dsh/lib/index.js +25 -8
  24. package/plugins/dsh/package.json +1 -1
  25. package/plugins/dsh/skills/delphi-review/AGENTS.md +1 -1
  26. package/plugins/dsh/skills/sprint-flow/AGENTS.md +1 -1
  27. package/plugins/dsh/skills/sprint-flow/references/phase-3-build.md +3 -3
  28. package/plugins/dsh/skills/sprint-flow/references/phase-overview.md +2 -2
  29. package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +1 -1
  30. package/plugins/dsh/src/evidence-reviewed-paths.test.ts +63 -0
  31. package/plugins/dsh/src/evidence.ts +42 -0
  32. package/plugins/dsh/src/index.ts +33 -8
  33. package/plugins/opencode/package.json +1 -1
  34. package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
  35. package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
  36. package/plugins/opencode/skills/sprint-flow/references/phase-3-build.md +3 -3
  37. package/plugins/opencode/skills/sprint-flow/references/phase-overview.md +2 -2
  38. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
  39. package/plugins/qoder/plugin.json +1 -1
  40. package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
  41. package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
  42. package/plugins/qoder/skills/sprint-flow/references/phase-3-build.md +3 -3
  43. package/plugins/qoder/skills/sprint-flow/references/phase-overview.md +2 -2
  44. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
  45. package/scripts/sync-package-content.js +11 -1
  46. package/skills/delphi-review/AGENTS.md +1 -1
  47. package/skills/sprint-flow/AGENTS.md +1 -1
  48. package/skills/sprint-flow/references/phase-3-build.md +3 -3
  49. package/skills/sprint-flow/references/phase-overview.md +2 -2
  50. package/skills/test-specification-alignment/AGENTS.md +1 -1
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.41.72.0
6
+ **Version:** 0.41.74.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.41.72.0
6
+ **Version:** 0.41.74.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -18,7 +18,7 @@
18
18
  |------|------|------|
19
19
  | Gate 5 | 单元测试 + 覆盖率 | 全部通过 + ≥80% 覆盖率 |
20
20
  | Gate 5a-BLOCK | 新增 .ts/.tsx 文件测试强制 | 新增 .ts/.tsx 文件无对应测试文件 → BLOCK;修改文件 → WARNING |
21
- | Gate M2 | Mock 密度检查 | 30% WARNING (Phase 1); 可配置 via `.mockpolicyrc` |
21
+ | Gate 5b | Mock 密度检查(Gate 5 的一个子步骤) | 30% advisory,不阻断 |
22
22
 
23
23
  ---
24
24
 
@@ -350,12 +350,12 @@ tools: [Read, Grep, Glob] # 只读 — 禁止 Write/Edit/Bash 写操作
350
350
  - **修改已有文件**仅触发 WARNING(不阻断)
351
351
  - **Escape valve**: 非 main/master 分支可设置 `SKIP_GATE_5A_BLOCK=1` 跳过阻断(仅 WARNING)
352
352
 
353
- ### Gate M2: Mock 密度阈值调整
353
+ ### Gate 5b: Mock 密度阈值调整
354
354
 
355
355
  - Mock 密度阈值从 50% 降低至 **30%**
356
356
  - **Phase 1**: WARNING 模式(仅告警,不阻断)
357
357
  - **Phase 2**: 将在基线分析后启用 BLOCK 模式
358
- - 可通过 `.mockpolicyrc` 配置阈值和行为
358
+ - Mock 密度的阈值写在 Gate 5 的 adapter 里;`.mockpolicyrc` 配置的是 **Gate ML(Mock 分层策略)**,不是本节
359
359
 
360
360
  ### Escape Valve
361
361
 
@@ -29,7 +29,7 @@ Sprint Flow is NOT just a sequential launcher of existing skills. Here's what ma
29
29
  | **Gate Enforcement** | No enforcement — easy to skip Delphi, skip TDD, skip UAT | HARD-GATE: design must be APPROVED (≥90% Delphi consensus) before coding; UAT is mandatory (no bypass) |
30
30
  | **Context Growth** | Linear context accumulation across phases — one growing shared context | Ralph-loop default: each REQ starts from a clean context instead of inheriting everything before it |
31
31
  | **Emergent Requirements** | Discovered late, silently ignored or merged | Phase 6 CLOSE explicitly captures emergent issues via template; triggers Sprint 2 for critical issues |
32
- | **Quality Ecosystem** | No integration with quality gates | Integrated with xp-gate's full quality ecosystem: Gate 5 (coverage), Gate M2 (mock density), Delphi code-walkthrough |
32
+ | **Quality Ecosystem** | No integration with quality gates | Integrated with xp-gate's full quality ecosystem: Gate 5 (coverage + mock density, as Gate 5b), Delphi code-walkthrough |
33
33
  | **Progress Tracking** | Ad-hoc, memory-based | `.sprint-state/` persistence with phase history, timing, and metrics — `--status` renders progress dashboard |
34
34
 
35
35
  ### Key Differentiators
@@ -40,7 +40,7 @@ Sprint Flow is NOT just a sequential launcher of existing skills. Here's what ma
40
40
 
41
41
  3. **Emergent Requirements Acknowledgment**: Based on research showing 78% of failures are invisible to AI (arXiv study), Phase 6 CLOSE includes mandatory manual UAT verification — cannot be automated, skipped, or bypassed.
42
42
 
43
- 4. **XP-Gate Quality Ecosystem Integration**: Sprint Flow is part of the broader xp-gate ecosystem. Phase 3 BUILD integrates with Gate 5 (test coverage ≥80%), Gate M2 (mock density ≤30%), and Gate MW (code-walkthrough validation). Phase 4 VERIFY runs Delphi code-walkthrough that generates `.code-walkthrough-result.json` for pre-push enforcement.
43
+ 4. **XP-Gate Quality Ecosystem Integration**: Sprint Flow is part of the broader xp-gate ecosystem. Phase 3 BUILD integrates with Gate 5 (test coverage; threshold is in `vitest.config.ts`) and its Gate 5b mock-density advisory, and with Gate MW (code-walkthrough validation). Phase 4 VERIFY runs Delphi code-walkthrough that generates `.code-walkthrough-result.json` for pre-push enforcement.
44
44
 
45
45
  5. **Full Lifecycle Coverage**: From worktree isolation (PREP) to cleanup (CLOSE), sprint-flow covers the entire development lifecycle — not just the "write code" part. PREP (Phase 1/6) prevents over-engineering by routing lightweight changes through simplified workflows.
46
46
 
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.41.72.0
6
+ **Version:** 0.41.74.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.