@boyingliu01/xp-gate 0.27.1 → 0.27.3
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/adapter-common.sh +0 -0
- package/adapters/cpp.sh +0 -0
- package/adapters/dart.sh +0 -0
- package/adapters/flutter.sh +0 -0
- package/adapters/gate-7.sh +22 -4
- package/adapters/go.sh +0 -0
- package/adapters/iac.sh +0 -0
- package/adapters/java.sh +68 -6
- package/adapters/kotlin.sh +0 -0
- package/adapters/objectivec.sh +0 -0
- package/adapters/plugins/book299-20132-python/scripts/install-gradle.sh +0 -0
- package/adapters/plugins/book299-20132-python/scripts/install-maven.sh +0 -0
- package/adapters/plugins/book299-4081-c/scripts/install-gradle.sh +0 -0
- package/adapters/plugins/book299-4081-c/scripts/install-maven.sh +0 -0
- package/adapters/plugins/book299-4083-javascriptes5/scripts/install-gradle.sh +0 -0
- package/adapters/plugins/book299-4083-javascriptes5/scripts/install-maven.sh +0 -0
- package/adapters/powershell.sh +0 -0
- package/adapters/python.sh +0 -0
- package/adapters/shell.sh +0 -0
- package/adapters/swift.sh +0 -0
- package/adapters/typescript.sh +0 -0
- package/bin/xp-gate.js +0 -0
- package/gate-10.sh +0 -0
- package/gate-3.sh +0 -0
- package/gate-4.sh +0 -0
- package/gate-7.sh +22 -4
- package/gate-8.sh +0 -0
- package/gate-9.sh +0 -0
- package/hooks/adapter-common.sh +0 -0
- package/hooks/gate-10.sh +0 -0
- package/hooks/gate-3.sh +0 -0
- package/hooks/gate-4.sh +0 -0
- package/hooks/gate-7.sh +22 -4
- package/hooks/gate-8.sh +0 -0
- package/hooks/gate-9.sh +0 -0
- package/hooks/post-merge +0 -0
- package/hooks/pre-commit +0 -0
- package/hooks/pre-push +0 -0
- package/hooks/sprint-gate.sh +0 -0
- package/lib/__tests__/doctor-delphi.test.js +244 -244
- package/lib/__tests__/sprint-audit.test.js +207 -207
- package/lib/mattpocock-license-verdict.json +1 -1
- package/lib/sprint-audit.js +235 -235
- package/mock-policy/AGENTS.md +3 -3
- package/mutation/AGENTS.md +3 -3
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/bin/delphi-review-guard.sh +0 -0
- package/plugins/claude-code/bin/xp-gate-check +0 -0
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/claude-code/skills/grill-with-docs/SKILL.md +1 -2
- package/plugins/claude-code/skills/grilling/SKILL.md +22 -5
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/dsh/lib/command.d.ts +32 -0
- package/plugins/dsh/lib/command.d.ts.map +1 -0
- package/plugins/dsh/lib/command.js +81 -0
- package/plugins/dsh/lib/delphi-config.d.ts +75 -0
- package/plugins/dsh/lib/delphi-config.d.ts.map +1 -0
- package/plugins/dsh/lib/delphi-config.js +183 -0
- package/plugins/dsh/lib/delphi-run.d.ts +24 -0
- package/plugins/dsh/lib/delphi-run.d.ts.map +1 -0
- package/plugins/dsh/lib/delphi-run.js +92 -0
- package/plugins/dsh/lib/delphi.d.ts +88 -0
- package/plugins/dsh/lib/delphi.d.ts.map +1 -0
- package/plugins/dsh/lib/delphi.js +161 -0
- package/plugins/dsh/lib/dialect.d.ts +24 -0
- package/plugins/dsh/lib/dialect.d.ts.map +1 -0
- package/plugins/dsh/lib/dialect.js +36 -0
- package/plugins/dsh/lib/gate-runner.d.ts +18 -0
- package/plugins/dsh/lib/gate-runner.d.ts.map +1 -0
- package/plugins/dsh/lib/gate-runner.js +46 -0
- package/plugins/dsh/lib/index.d.ts +5 -0
- package/plugins/dsh/lib/index.d.ts.map +1 -0
- package/plugins/dsh/lib/index.js +162 -0
- package/plugins/dsh/node_modules/.vite/vitest/results.json +1 -0
- package/plugins/dsh/package.json +1 -1
- package/plugins/dsh/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/dsh/skills/grill-with-docs/SKILL.md +1 -2
- package/plugins/dsh/skills/grilling/SKILL.md +22 -5
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/dsh/src/delphi-config-global-fallback.test.ts +87 -0
- package/plugins/dsh/src/delphi-config.ts +67 -28
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/opencode/skills/grill-with-docs/SKILL.md +1 -2
- package/plugins/opencode/skills/grilling/SKILL.md +22 -5
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/qoder/bin/sprint-flow-guard.sh +0 -0
- package/plugins/qoder/bin/xp-gate-check +0 -0
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +3 -3
- package/principles/AGENTS.md +3 -3
- package/scripts/delphi-external-review.cjs +26 -0
- package/skills/delphi-review/AGENTS.md +3 -3
- package/skills/grill-with-docs/SKILL.md +1 -2
- package/skills/grilling/SKILL.md +22 -5
- package/skills/sprint-flow/AGENTS.md +3 -3
- package/skills/test-specification-alignment/AGENTS.md +3 -3
- package/sprint-gate.sh +0 -0
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { readFileSync } from "node:fs"
|
|
15
|
-
import {
|
|
15
|
+
import { homedir } from "node:os"
|
|
16
|
+
import { join, resolve } from "node:path"
|
|
16
17
|
import type { ExpertSeat, DelphiOptions } from "./delphi.js"
|
|
17
18
|
import { validateSeats } from "./delphi.js"
|
|
18
19
|
|
|
@@ -99,32 +100,18 @@ function normalizeExperts(experts: RawProfile["experts"]): Array<{ raw: RawExper
|
|
|
99
100
|
return Object.entries(experts).map(([role, raw]) => ({ raw, role }))
|
|
100
101
|
}
|
|
101
102
|
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
): ResolvedDelphiConfig {
|
|
111
|
-
const profile = selectProfile(cfg)
|
|
112
|
-
const normalized = normalizeExperts(profile.experts)
|
|
113
|
-
|
|
114
|
-
// An expert may name its own provider; otherwise there must be a profile-wide
|
|
115
|
-
// default. Resolve base_url/api_key per provider so mixed setups work.
|
|
116
|
-
const providerNames = new Set(
|
|
117
|
-
normalized.map((e) => e.raw.provider ?? profile.provider).filter((p): p is string => !!p),
|
|
118
|
-
)
|
|
119
|
-
if (providerNames.size === 0) {
|
|
120
|
-
throw new DelphiSetupError(
|
|
121
|
-
'No provider configured. Set "provider" on the profile or on each expert.',
|
|
122
|
-
)
|
|
103
|
+
/** Resolve every referenced provider's base_url + api_key, failing loudly. */
|
|
104
|
+
function resolveProviders(
|
|
105
|
+
profile: RawProfile,
|
|
106
|
+
needed: Set<string>,
|
|
107
|
+
env: NodeJS.ProcessEnv,
|
|
108
|
+
): Map<string, { baseUrl: string; apiKey: string }> {
|
|
109
|
+
if (needed.size === 0) {
|
|
110
|
+
throw new DelphiSetupError('No provider configured. Set "provider" on the profile or on each expert.')
|
|
123
111
|
}
|
|
124
|
-
|
|
125
112
|
const providerTable = profile.providers ?? {}
|
|
126
|
-
const
|
|
127
|
-
for (const name of
|
|
113
|
+
const resolved = new Map<string, { baseUrl: string; apiKey: string }>()
|
|
114
|
+
for (const name of needed) {
|
|
128
115
|
const entry = providerTable[name]
|
|
129
116
|
if (!entry) {
|
|
130
117
|
throw new DelphiSetupError(
|
|
@@ -148,8 +135,29 @@ export function resolveConfig(
|
|
|
148
135
|
: `Provider "${name}" has no api_key.`,
|
|
149
136
|
)
|
|
150
137
|
}
|
|
151
|
-
|
|
138
|
+
resolved.set(name, { baseUrl, apiKey })
|
|
152
139
|
}
|
|
140
|
+
return resolved
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Turn raw config into a ready-to-run review setup.
|
|
145
|
+
* Fails loudly and specifically: a missing key or an unexpanded placeholder is
|
|
146
|
+
* the most common way a Delphi run silently degrades.
|
|
147
|
+
*/
|
|
148
|
+
export function resolveConfig(
|
|
149
|
+
cfg: RawDelphiConfig,
|
|
150
|
+
env: NodeJS.ProcessEnv = process.env,
|
|
151
|
+
): ResolvedDelphiConfig {
|
|
152
|
+
const profile = selectProfile(cfg)
|
|
153
|
+
const normalized = normalizeExperts(profile.experts)
|
|
154
|
+
|
|
155
|
+
// An expert may name its own provider; otherwise there must be a profile-wide
|
|
156
|
+
// default. Resolve base_url/api_key per provider so mixed setups work.
|
|
157
|
+
const providerNames = new Set(
|
|
158
|
+
normalized.map((e) => e.raw.provider ?? profile.provider).filter((p): p is string => !!p),
|
|
159
|
+
)
|
|
160
|
+
const resolvedProviders = resolveProviders(profile, providerNames, env)
|
|
153
161
|
|
|
154
162
|
const seats = normalized.map((e, i) => seatFromRaw(e.raw, i, e.role))
|
|
155
163
|
// Surface an unexpanded placeholder as a config error, not a provider 404.
|
|
@@ -162,6 +170,17 @@ export function resolveConfig(
|
|
|
162
170
|
}
|
|
163
171
|
validateSeats(seats)
|
|
164
172
|
|
|
173
|
+
return buildResult(profile, normalized, resolvedProviders, seats, cfg)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** Assemble the final result after seats and providers validated. */
|
|
177
|
+
function buildResult(
|
|
178
|
+
profile: RawProfile,
|
|
179
|
+
normalized: Array<{ raw: RawExpert; role: string }>,
|
|
180
|
+
resolvedProviders: Map<string, { baseUrl: string; apiKey: string }>,
|
|
181
|
+
seats: ExpertSeat[],
|
|
182
|
+
cfg: RawDelphiConfig,
|
|
183
|
+
): ResolvedDelphiConfig {
|
|
165
184
|
// All seats share one gateway in the supported setup; require agreement so a
|
|
166
185
|
// mixed list cannot silently send one seat's key to another host.
|
|
167
186
|
const chosen = resolvedProviders.get(normalized[0].raw.provider ?? profile.provider ?? "")
|
|
@@ -194,13 +213,33 @@ export function resolveConfig(
|
|
|
194
213
|
export function loadDelphiConfig(
|
|
195
214
|
cwd: string,
|
|
196
215
|
env: NodeJS.ProcessEnv = process.env,
|
|
216
|
+
globalPath: string = join(homedir(), ".config", "xp-gate", ".delphi-config.json"),
|
|
197
217
|
): ResolvedDelphiConfig {
|
|
218
|
+
// Global fallback (AC-DSH-016-03): the machine-wide config at
|
|
219
|
+
// ~/.config/xp-gate/.delphi-config.json is the single source of truth for
|
|
220
|
+
// every project. Without it, each repo needed its own copy — and reading a
|
|
221
|
+
// stale or differently-priced config from another project's directory caused
|
|
222
|
+
// real money loss (2026-10-03: an expensive overseas model burned the daily
|
|
223
|
+
// quota). A project-local config still wins, so per-project overrides work.
|
|
198
224
|
const path = resolve(cwd, ".delphi-config.json")
|
|
199
225
|
let raw: string
|
|
200
226
|
try {
|
|
201
227
|
raw = readFileSync(path, "utf8")
|
|
202
|
-
} catch {
|
|
203
|
-
|
|
228
|
+
} catch (projectError) {
|
|
229
|
+
// Fall back ONLY when the project file is genuinely absent (ENOENT); any
|
|
230
|
+
// other read error must surface rather than silently route this run to
|
|
231
|
+
// another config. Same semantics as delphi-external-review.cjs, which
|
|
232
|
+
// gates the fallback on existsSync (walkthrough R8 MA-01).
|
|
233
|
+
if ((projectError as NodeJS.ErrnoException)?.code !== "ENOENT") {
|
|
234
|
+
throw new DelphiSetupError(`Cannot read ${path}: ${(projectError as Error).message}`)
|
|
235
|
+
}
|
|
236
|
+
try {
|
|
237
|
+
raw = readFileSync(globalPath, "utf8")
|
|
238
|
+
} catch {
|
|
239
|
+
throw new DelphiSetupError(
|
|
240
|
+
`No .delphi-config.json found at ${path} or the global location ${globalPath}.`
|
|
241
|
+
)
|
|
242
|
+
}
|
|
204
243
|
}
|
|
205
244
|
let parsed: RawDelphiConfig
|
|
206
245
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grill-with-docs
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
|
|
5
4
|
disable-model-invocation: true
|
|
6
5
|
---
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
Call the Skill tool twice, for "grilling" and "domain-modeling".
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grilling
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
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
4
|
---
|
|
6
5
|
|
|
7
|
-
Interview
|
|
6
|
+
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
7
|
|
|
9
|
-
|
|
8
|
+
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
9
|
|
|
11
|
-
|
|
10
|
+
Format a round like so:
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
```
|
|
13
|
+
❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
14
|
+
|
|
15
|
+
➡️ <your recommended answer>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
20
|
+
|
|
21
|
+
➡️ <your recommended answer>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Word each question so "yes" accepts your recommended answer.
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
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.
|
|
29
|
+
|
|
30
|
+
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-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.3",
|
|
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,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/principles/AGENTS.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# PRINCIPLES CHECKER MODULE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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.
|
|
@@ -112,6 +112,32 @@ function validateProviders(providers, profileName) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
function readConfig(configPath, profileOverride) {
|
|
115
|
+
// Global fallback: a relative --config that this cwd does not have resolves
|
|
116
|
+
// to the machine-wide ~/.config/xp-gate/.delphi-config.json. This is what
|
|
117
|
+
// makes `--config .delphi-config.json` work from ANY project without each
|
|
118
|
+
// repo carrying its own (drifting, differently-priced) copy — reading a
|
|
119
|
+
// foreign project's config used to route calls to expensive models
|
|
120
|
+
// (2026-10-03 quota incident). An existing local file always wins.
|
|
121
|
+
// Fallback fires ONLY when the project file is genuinely absent: statSync
|
|
122
|
+
// distinguishes ENOENT from EACCES/EISDIR, and any other error aborts here
|
|
123
|
+
// rather than silently routing this run to another config — matching the
|
|
124
|
+
// TS loader's ENOENT-only semantics (walkthrough R10 FC-01).
|
|
125
|
+
const missingHere = (() => {
|
|
126
|
+
try { fs.statSync(configPath); return false; } catch (e) { return e.code === 'ENOENT'; }
|
|
127
|
+
})();
|
|
128
|
+
if (missingHere && !path.isAbsolute(configPath)) {
|
|
129
|
+
// r16 MA-01 disposition: XDG_CONFIG_HOME is an accepted override for the
|
|
130
|
+
// global config location. The CLI lib (shared-paths/doctor) intentionally
|
|
131
|
+
// pins ~/.config/xp-gate — overriding only this loader would make the two
|
|
132
|
+
// disagree. On Linux, $HOME/.config IS the XDG default, so behaviour there
|
|
133
|
+
// is identical; the env var only matters for non-default setups.
|
|
134
|
+
const configHome = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config');
|
|
135
|
+
const globalPath = path.join(configHome, 'xp-gate', '.delphi-config.json');
|
|
136
|
+
if (fs.existsSync(globalPath)) {
|
|
137
|
+
console.error(`[delphi-review] ${configPath} not found here — using global config ${globalPath}`);
|
|
138
|
+
configPath = globalPath;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
115
141
|
if (!fs.existsSync(configPath)) {
|
|
116
142
|
console.error(`[delphi-review] ERROR: Config file not found: ${configPath}`);
|
|
117
143
|
console.error('[delphi-review] Copy .delphi-config.json.example to .delphi-config.json and fill in your API keys.');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grill-with-docs
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
description: A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
|
|
5
4
|
disable-model-invocation: true
|
|
6
5
|
---
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
Call the Skill tool twice, for "grilling" and "domain-modeling".
|
package/skills/grilling/SKILL.md
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grilling
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
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
4
|
---
|
|
6
5
|
|
|
7
|
-
Interview
|
|
6
|
+
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
7
|
|
|
9
|
-
|
|
8
|
+
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
9
|
|
|
11
|
-
|
|
10
|
+
Format a round like so:
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
```
|
|
13
|
+
❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
14
|
+
|
|
15
|
+
➡️ <your recommended answer>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
20
|
+
|
|
21
|
+
➡️ <your recommended answer>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Word each question so "yes" accepts your recommended answer.
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
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.
|
|
29
|
+
|
|
30
|
+
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-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.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-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-10-17
|
|
4
|
+
**Commit:** b207e882
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.27.
|
|
6
|
+
**Version:** 0.27.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/sprint-gate.sh
CHANGED
|
File without changes
|