@boyingliu01/xp-gate 0.28.1 → 0.30.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 (47) hide show
  1. package/gate-3.sh +18 -1
  2. package/hooks/gate-3.sh +18 -1
  3. package/hooks/hook-module-resolution.sh +39 -0
  4. package/hooks/pre-commit +315 -38
  5. package/hooks/pre-push +26 -2
  6. package/lib/__tests__/doctor-module-resolution-parity.test.js +79 -11
  7. package/lib/__tests__/sprint-state-manager.test.js +31 -0
  8. package/lib/doctor.js +60 -27
  9. package/lib/hook-module-resolution.js +127 -0
  10. package/lib/mattpocock-license-verdict.json +1 -1
  11. package/lib/retro.js +24 -7
  12. package/lib/sprint-state-manager.js +14 -6
  13. package/mock-policy/AGENTS.md +3 -3
  14. package/mutation/AGENTS.md +3 -3
  15. package/package.json +1 -1
  16. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  17. package/plugins/claude-code/skills/delphi-review/AGENTS.md +3 -3
  18. package/plugins/claude-code/skills/grill-with-docs/SKILL.md +1 -0
  19. package/plugins/claude-code/skills/grilling/SKILL.md +1 -0
  20. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +3 -3
  21. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +3 -3
  22. package/plugins/dsh/package.json +1 -1
  23. package/plugins/dsh/skills/delphi-review/AGENTS.md +3 -3
  24. package/plugins/dsh/skills/grill-with-docs/SKILL.md +1 -0
  25. package/plugins/dsh/skills/grilling/SKILL.md +1 -0
  26. package/plugins/dsh/skills/sprint-flow/AGENTS.md +3 -3
  27. package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +3 -3
  28. package/plugins/opencode/package.json +1 -1
  29. package/plugins/opencode/skills/delphi-review/AGENTS.md +3 -3
  30. package/plugins/opencode/skills/grill-with-docs/SKILL.md +1 -0
  31. package/plugins/opencode/skills/grilling/SKILL.md +1 -0
  32. package/plugins/opencode/skills/sprint-flow/AGENTS.md +3 -3
  33. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +3 -3
  34. package/plugins/qoder/plugin.json +1 -1
  35. package/plugins/qoder/skills/batch-grill-me/SKILL.md +9 -2
  36. package/plugins/qoder/skills/delphi-review/AGENTS.md +3 -3
  37. package/plugins/qoder/skills/grill-with-docs/SKILL.md +2 -2
  38. package/plugins/qoder/skills/grilling/SKILL.md +23 -5
  39. package/plugins/qoder/skills/sprint-flow/AGENTS.md +3 -3
  40. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +3 -3
  41. package/principles/AGENTS.md +3 -3
  42. package/scripts/sync-package-content.js +3 -1
  43. package/skills/delphi-review/AGENTS.md +3 -3
  44. package/skills/grill-with-docs/SKILL.md +1 -0
  45. package/skills/grilling/SKILL.md +1 -0
  46. package/skills/sprint-flow/AGENTS.md +3 -3
  47. package/skills/test-specification-alignment/AGENTS.md +3 -3
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/opencode-plugin",
3
- "version": "0.28.1",
3
+ "version": "0.30.0",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "XP-Gate quality gates + AI workflow skills + Sprint Flow TUI sidebar for OpenCode",
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.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.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: grill-with-docs
3
+ version: 1.1.0
3
4
  description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
4
5
  disable-model-invocation: true
5
6
  ---
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: grilling
3
+ version: 1.1.0
3
4
  description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
4
5
  ---
5
6
 
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.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, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.28.1",
3
+ "version": "0.30.0",
4
4
  "displayName": "XP-Gate",
5
5
  "description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
6
6
  "author": {
@@ -1,10 +1,17 @@
1
1
  ---
2
2
  name: batch-grill-me
3
- version: 1.0.0
4
- description: A relentless interview that asks every frontier question at once, round by round.
3
+ version: 1.1.0
4
+ description: A relentless interview that asks every frontier question at once, round by round. Thin alias of `grilling` (#540) — upstream mattpocock/skills absorbed this protocol into grilling; XP-Gate keeps this name as the sprint-flow Phase 2 entry point so orchestration docs stay stable.
5
5
  disable-model-invocation: true
6
6
  ---
7
7
 
8
+ > **Disposition (#540):** upstream deleted the standalone batch-grill-me skill — its round-based
9
+ > frontier protocol now IS upstream `grilling`. This file is intentionally a thin alias: keep it
10
+ > as the canonical sprint-flow reference name; protocol changes land in `skills/grilling/SKILL.md`
11
+ > (the single source), not here.
12
+
13
+ The protocol is identical to [`grilling`](../grilling/SKILL.md): read and follow that skill. Summary:
14
+
8
15
  Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
9
16
 
10
17
  Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled — the questions you can ask *now* without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Then wait for the user's answers before the next round.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.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.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: grill-with-docs
3
- version: 1.0.0
3
+ version: 1.1.0
4
4
  description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
5
5
  disable-model-invocation: true
6
6
  ---
7
7
 
8
- Run a `/grilling` session, using the `/domain-modeling` skill.
8
+ Call the Skill tool twice, for "grilling" and "domain-modeling".
@@ -1,13 +1,31 @@
1
1
  ---
2
2
  name: grilling
3
- version: 1.0.0
3
+ version: 1.1.0
4
4
  description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
5
5
  ---
6
6
 
7
- Interview me relentlessly about every aspect of this until we reach a shared understanding. Walk down each branch of the decision tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
7
+ Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
8
8
 
9
- Ask the questions one at a time, waiting for feedback on each question before continuing. Asking multiple questions at once is bewildering.
9
+ Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled: the questions you can ask _now_ without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Then wait for the user's answers before the next round.
10
10
 
11
- If a *fact* can be found by exploring the environment (filesystem, tools, etc.), look it up rather than asking me. The *decisions*, though, are mine — put each one to me and wait for my answer.
11
+ Format a round like so:
12
12
 
13
- Do not act on it until I confirm we have reached a shared understanding.
13
+ ```
14
+ ❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
15
+
16
+ ➡️ <your recommended answer>
17
+
18
+ ---
19
+
20
+ ❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
21
+
22
+ ➡️ <your recommended answer>
23
+ ```
24
+
25
+ Word each question so "yes" accepts your recommended answer.
26
+
27
+ Each round the user answers reshapes the tree: settled decisions push the frontier outward and unblock questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a _later_ round, not this one.
28
+
29
+ Finding _facts_ is your job, never the user's. When a frontier question needs a fact from the environment (filesystem, tools, etc.), dispatch a sub-agent to find it; don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report; ask the rest of the frontier now. The _decisions_ are the user's: put each to them and wait.
30
+
31
+ The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Do not act on it until the user confirms you have reached a shared understanding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.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, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,9 +1,9 @@
1
1
  # PRINCIPLES CHECKER MODULE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Clean Code & SOLID principles checker — **Gate 4** of pre-commit. 14 rules × 9 language adapters, SARIF 2.1.0 output. Houses the **Boy Scout Rule** enforcement engine (Gate 6) and warning-baseline storage.
@@ -187,7 +187,9 @@ function syncHooks() {
187
187
  fs.copyFileSync(adapterCommonSrc, path.join(PKG_ROOT, 'adapter-common.sh'));
188
188
  }
189
189
 
190
- const HOOK_FILES = ['pre-commit', 'pre-push', 'post-merge', 'adapter-common.sh'];
190
+ // #505: hook-module-resolution.sh is GENERATED, but it must still ship beside
191
+ // pre-commit — the hook aborts with FATAL when it is missing, by design.
192
+ const HOOK_FILES = ['pre-commit', 'pre-push', 'post-merge', 'adapter-common.sh', 'hook-module-resolution.sh'];
191
193
  let copied = 0;
192
194
 
193
195
  for (const name of HOOK_FILES) {
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.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.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: grill-with-docs
3
+ version: 1.1.0
3
4
  description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
4
5
  disable-model-invocation: true
5
6
  ---
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: grilling
3
+ version: 1.1.0
3
4
  description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
4
5
  ---
5
6
 
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.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, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
2
2
 
3
- **Generated:** 2026-10-19
4
- **Commit:** 9b545de5
3
+ **Generated:** 2026-10-20
4
+ **Commit:** 81dd7464
5
5
  **Branch:** main
6
- **Version:** 0.28.1.0
6
+ **Version:** 0.30.0.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.