@boyingliu01/dsh-plugin-xp-gate 0.20.2 → 0.24.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/lib/command.d.ts.map +1 -1
- package/lib/command.js +9 -1
- package/lib/command.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +68 -43
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/delphi-review/.delphi-config.json.example +24 -1
- package/skills/delphi-review/AGENTS.md +4 -4
- package/skills/delphi-review/SKILL.md +43 -0
- package/skills/sprint-flow/AGENTS.md +4 -4
- package/skills/test-specification-alignment/AGENTS.md +4 -4
package/lib/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,cAAc,CAAA;AAI5D,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEhF,0DAA0D;AAC1D,eAAO,MAAM,gBAAgB,8FACgE,CAAA;AAE7F;;;;GAIG;AACH,eAAO,MAAM,cAAc,uGASjB,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,OAAO,GAAG,YAAY,GAAG,MAAM,CAAA;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,cAAc,CAAA;AAI5D,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEhF,0DAA0D;AAC1D,eAAO,MAAM,gBAAgB,8FACgE,CAAA;AAE7F;;;;GAIG;AACH,eAAO,MAAM,cAAc,uGASjB,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,OAAO,GAAG,YAAY,GAAG,MAAM,CAAA;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AA+BD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAmBjE;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAElE"}
|
package/lib/command.js
CHANGED
|
@@ -45,7 +45,15 @@ function buildInner(options, dialect) {
|
|
|
45
45
|
tokens.push(q(target));
|
|
46
46
|
return tokens.join(" ");
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
// subcommand === "arch" — the only remaining member of the union.
|
|
49
|
+
// #447: the default path runs the pinned local @archlinter/cli with its
|
|
50
|
+
// built-in rules — no config needed. Forcing `--config architecture.yaml`
|
|
51
|
+
// (the old default) hit the pre-0.16 schema that archlint itself rejects.
|
|
52
|
+
// Only forward an explicitly provided config, via the opt-in --use-config.
|
|
53
|
+
const tokens = ["xp-gate", "arch"];
|
|
54
|
+
if (config !== undefined)
|
|
55
|
+
tokens.push("--use-config", q(config));
|
|
56
|
+
return tokens.join(" ");
|
|
49
57
|
}
|
|
50
58
|
/**
|
|
51
59
|
* Build a single guarded shell command: runs `xp-gate …` when the global CLI
|
package/lib/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAqB,UAAU,EAAE,MAAM,cAAc,CAAA;AAE5D,6EAA6E;AAC7E,8CAA8C;AAC9C,OAAO,EAAqB,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEhF,0DAA0D;AAC1D,MAAM,CAAC,MAAM,gBAAgB,GAC3B,2FAA2F,CAAA;AAE7F;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,cAAc;IACd,KAAK;IACL,SAAS;IACT,MAAM;CACE,CAAA;AAIV,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAQ,cAAoC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AAC7D,CAAC;AAcD,SAAS,UAAU,CAAC,OAA4B,EAAE,OAAqB;IACrE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IACrD,MAAM,CAAC,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACvD,IAAI,UAAU,KAAK,OAAO,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QACnC,IAAI,MAAM,KAAK,SAAS;YAAE,MAAM,CAAC,IAAI,CAAC,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;IAC1E,0EAA0E;IAC1E,2EAA2E;IAC3E,MAAM,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IAClC,IAAI,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAChE,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACzB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,OAA4B;IACvD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAA;IAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC1C,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC;QACxB,OAAO,+CAA+C,KAAK,yBAAyB,UAAU,CAC5F,gBAAgB,EAChB,OAAO,CACR,MAAM,CAAA;IACT,CAAC;IACD,uEAAuE;IACvE,8EAA8E;IAC9E,wDAAwD;IACxD,EAAE;IACF,0EAA0E;IAC1E,+BAA+B;IAC/B,OAAO,4DAA4D,KAAK,0BAA0B,UAAU,CAC1G,gBAAgB,EAChB,OAAO,CACR,IAAI,CAAA;AACP,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,GAAW;IACxD,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;AAC9D,CAAC"}
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAOlD,eAAO,MAAM,IAAI,iBAAiB,CAAA;AAClC,eAAO,MAAM,MAAM,UAAqB,CAAA;AAuKxC,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,OAAY,GAAG,IAAI,CAS/D"}
|
package/lib/index.js
CHANGED
|
@@ -6,12 +6,21 @@ import { formatOutcome, runReview } from "./delphi-run.js";
|
|
|
6
6
|
export const name = "tool-xp-gate";
|
|
7
7
|
export const inject = ["tools", "shell"];
|
|
8
8
|
const DEFAULT_TIMEOUT_MS = 120_000;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
// Multi-round reviews over large inputs are slow; the transport applies its
|
|
10
|
+
// own per-request timeout on top of this ceiling.
|
|
11
|
+
const DELPHI_TIMEOUT_MS = 900_000;
|
|
12
|
+
// Boy Scout (#447): gate-check's `gates` parameter nests one level too deep
|
|
13
|
+
// inline (parameters → gates → items), so the schema lives at module scope.
|
|
14
|
+
const GATES_PARAMETER = {
|
|
15
|
+
type: "array",
|
|
16
|
+
items: { type: "string", enum: GATE_WHITELIST },
|
|
17
|
+
description: "Optional gate subset to run (e.g. ['principles', 'arch']).",
|
|
18
|
+
};
|
|
19
|
+
// Boy Scout (#447): apply() used to inline four register(defineTool({...}))
|
|
20
|
+
// blocks (149 lines, 5 brace levels). Each tool now lives in its own factory;
|
|
21
|
+
// apply() is pure wiring.
|
|
22
|
+
function gateCheckTool(shell, dialect) {
|
|
23
|
+
return defineTool({
|
|
15
24
|
name: "gate-check",
|
|
16
25
|
description: "Run XP-Gate quality gates (xp-gate check) on a file or directory and return the gate report. Prefers the global xp-gate CLI and degrades to an actionable install hint when it is absent.",
|
|
17
26
|
parameters: {
|
|
@@ -20,11 +29,7 @@ export function apply(ctx, _config = {}) {
|
|
|
20
29
|
required: true,
|
|
21
30
|
description: "File or directory path to check (absolute or relative to the workspace).",
|
|
22
31
|
},
|
|
23
|
-
gates:
|
|
24
|
-
type: "array",
|
|
25
|
-
items: { type: "string", enum: GATE_WHITELIST },
|
|
26
|
-
description: "Optional gate subset to run (e.g. ['principles', 'arch']).",
|
|
27
|
-
},
|
|
32
|
+
gates: GATES_PARAMETER,
|
|
28
33
|
},
|
|
29
34
|
output: {
|
|
30
35
|
schema: { type: "string" },
|
|
@@ -37,8 +42,10 @@ export function apply(ctx, _config = {}) {
|
|
|
37
42
|
const command = buildCommand({ subcommand: "check", target, gates: args.gates, dialect });
|
|
38
43
|
return runXpGate(shell, exec.signal, command, cwd, DEFAULT_TIMEOUT_MS);
|
|
39
44
|
},
|
|
40
|
-
})
|
|
41
|
-
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function gatePrinciplesTool(shell, dialect) {
|
|
48
|
+
return defineTool({
|
|
42
49
|
name: "gate-principles",
|
|
43
50
|
description: "Run the 14 Clean Code / SOLID rules (xp-gate principles, Gate 4) on a file or directory and return the principles report.",
|
|
44
51
|
parameters: {
|
|
@@ -59,14 +66,16 @@ export function apply(ctx, _config = {}) {
|
|
|
59
66
|
const command = buildCommand({ subcommand: "principles", target, dialect });
|
|
60
67
|
return runXpGate(shell, exec.signal, command, cwd, DEFAULT_TIMEOUT_MS);
|
|
61
68
|
},
|
|
62
|
-
})
|
|
63
|
-
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function gateArchTool(shell, dialect) {
|
|
72
|
+
return defineTool({
|
|
64
73
|
name: "gate-arch",
|
|
65
|
-
description: "Run architecture validation (xp-gate arch, Gate 6)
|
|
74
|
+
description: "Run architecture validation (xp-gate arch, Gate 6) with the pinned local @archlinter/cli built-in rules and baseline ratchet, and return the architecture report. Pass a config file only to opt into archlint's own --config path (pre-0.16 schemas are rejected by archlint itself).",
|
|
66
75
|
parameters: {
|
|
67
76
|
config: {
|
|
68
77
|
type: "string",
|
|
69
|
-
description: "
|
|
78
|
+
description: "Optional architecture config file (opts into archlint --config; the default built-in-rules path needs none).",
|
|
70
79
|
},
|
|
71
80
|
},
|
|
72
81
|
output: {
|
|
@@ -79,15 +88,35 @@ export function apply(ctx, _config = {}) {
|
|
|
79
88
|
const command = buildCommand({ subcommand: "arch", config: args.config, dialect });
|
|
80
89
|
return runXpGate(shell, exec.signal, command, cwd, DEFAULT_TIMEOUT_MS);
|
|
81
90
|
},
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Delphi multi-model cross-review.
|
|
94
|
+
//
|
|
95
|
+
// DSH's own subagents cannot do this: they inherit one host-configured model,
|
|
96
|
+
// so three "experts" would be three instances of the same model, and Delphi's
|
|
97
|
+
// value rests entirely on the reviewers being DIFFERENT models. This tool
|
|
98
|
+
// therefore calls an external OpenAI-compatible provider directly, with one
|
|
99
|
+
// distinct model per seat.
|
|
100
|
+
// Boy Scout (#447): the review body used to sit inline in execute() at 5 brace
|
|
101
|
+
// levels (defineTool → execute → try → runReview options). Module scope keeps
|
|
102
|
+
// the try/catch semantics identical while dropping two levels.
|
|
103
|
+
async function runDelphiReview(subject, addressed, maxRounds, cwd) {
|
|
104
|
+
try {
|
|
105
|
+
const cfg = loadDelphiConfig(cwd);
|
|
106
|
+
const outcome = await runReview({ ...toDelphiOptions(cfg), maxRounds: maxRounds ?? cfg.maxRounds }, subject, addressed);
|
|
107
|
+
const seats = cfg.seats.map((s) => s.model).join(", ");
|
|
108
|
+
return `${formatOutcome(outcome)}\n\nProvider: ${cfg.provider}\nSeats: ${seats}`;
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
// Config problems are the common failure; report them as guidance
|
|
112
|
+
// rather than a stack trace.
|
|
113
|
+
if (e instanceof DelphiSetupError)
|
|
114
|
+
return `Delphi review not started: ${e.message}`;
|
|
115
|
+
throw e;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function delphiReviewTool() {
|
|
119
|
+
return defineTool({
|
|
91
120
|
name: "delphi-review",
|
|
92
121
|
description: "Run a Delphi cross-review of a subject (a diff, a design, a spec) using three DISTINCT models from an external OpenAI-compatible provider configured in .delphi-config.json. Round 1 is anonymous and concurrent; later rounds feed back the aggregate until the approval ratio reaches the configured threshold (default 90%) or the round cap (default 5). Use this whenever a change needs independent multi-model review rather than a single model's opinion.",
|
|
93
122
|
parameters: {
|
|
@@ -113,25 +142,21 @@ export function apply(ctx, _config = {}) {
|
|
|
113
142
|
schema: { type: "string" },
|
|
114
143
|
render: (_args, value) => [{ type: "text", text: value }],
|
|
115
144
|
},
|
|
116
|
-
|
|
117
|
-
// its own per-request timeout on top of this ceiling.
|
|
118
|
-
timeoutMs: 900_000,
|
|
145
|
+
timeoutMs: DELPHI_TIMEOUT_MS,
|
|
119
146
|
async execute(args, exec) {
|
|
120
147
|
const cwd = args.cwd ?? exec.agent?.session?.header?.cwd ?? process.cwd();
|
|
121
|
-
|
|
122
|
-
const cfg = loadDelphiConfig(cwd);
|
|
123
|
-
const outcome = await runReview({ ...toDelphiOptions(cfg), maxRounds: args.maxRounds ?? cfg.maxRounds }, args.subject, args.addressed ?? "");
|
|
124
|
-
const seats = cfg.seats.map((s) => s.model).join(", ");
|
|
125
|
-
return `${formatOutcome(outcome)}\n\nProvider: ${cfg.provider}\nSeats: ${seats}`;
|
|
126
|
-
}
|
|
127
|
-
catch (e) {
|
|
128
|
-
// Config problems are the common failure; report them as guidance
|
|
129
|
-
// rather than a stack trace.
|
|
130
|
-
if (e instanceof DelphiSetupError)
|
|
131
|
-
return `Delphi review not started: ${e.message}`;
|
|
132
|
-
throw e;
|
|
133
|
-
}
|
|
148
|
+
return runDelphiReview(args.subject, args.addressed ?? "", args.maxRounds, cwd);
|
|
134
149
|
},
|
|
135
|
-
})
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
export function apply(ctx, _config = {}) {
|
|
153
|
+
// DSH runs a POSIX shell off-Windows and PowerShell on Windows; generating the
|
|
154
|
+
// wrong dialect makes every tool fail to parse rather than degrade gracefully.
|
|
155
|
+
const dialect = detectDialect();
|
|
156
|
+
const shell = ctx.shell;
|
|
157
|
+
ctx.tools.register(gateCheckTool(shell, dialect));
|
|
158
|
+
ctx.tools.register(gatePrinciplesTool(shell, dialect));
|
|
159
|
+
ctx.tools.register(gateArchTool(shell, dialect));
|
|
160
|
+
ctx.tools.register(delphiReviewTool());
|
|
136
161
|
}
|
|
137
162
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE1D,MAAM,CAAC,MAAM,IAAI,GAAG,cAAc,CAAA;AAClC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AAExC,MAAM,kBAAkB,GAAG,OAAO,CAAA;AAClC,4EAA4E;AAC5E,kDAAkD;AAClD,MAAM,iBAAiB,GAAG,OAAO,CAAA;AAEjC,4EAA4E;AAC5E,4EAA4E;AAC5E,MAAM,eAAe,GAAG;IACtB,IAAI,EAAE,OAAO;IAC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AA;AACJ,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,GAAY,EAAE,UAAmB,EAAE;IACvD,+EAA+E;IAC/E,+EAA+E;IAC/E,MAAM,OAAO,GAAG,aAAa,EAAE,CAAA;IAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAA;IACvB,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IACjD,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IACtD,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IAChD,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAA;AACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/dsh-plugin-xp-gate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "XP-Gate deterministic quality gates + AI workflow skills as a DeepSeek Harness (DSH) native plugin: gate-check / gate-principles / gate-arch tools + 12 SKILL.md skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -66,5 +66,28 @@
|
|
|
66
66
|
"max_review_rounds": 5,
|
|
67
67
|
"distinct_models_required": true,
|
|
68
68
|
"cross_provider_required": true
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
"$comment_seat_fields": [
|
|
72
|
+
"Optional per-seat fields (#481). The prompt ceiling is a seat x model route",
|
|
73
|
+
"property, not a global constant: max_prompt_bytes (UTF-8 bytes, default 40000)",
|
|
74
|
+
"is the hard pre-send gate; prompt_calibration carries the measured bounds used",
|
|
75
|
+
"to classify a pre-response drop as SIZE_EXCEEDED instead of a network fault.",
|
|
76
|
+
"Recalibrate (binary search 3-5 probes in [last_pass, last_fail]) whenever the",
|
|
77
|
+
"model or gateway changes. See docs/plans/2026-10-14-sprint-c-design.md section 2.",
|
|
78
|
+
"Example expert entry:",
|
|
79
|
+
" \"architecture\": {",
|
|
80
|
+
" \"provider\": \"bailian-tp\",",
|
|
81
|
+
" \"model\": \"qwen-plus\",",
|
|
82
|
+
" \"seat_id\": \"architecture\",",
|
|
83
|
+
" \"max_prompt_bytes\": 26624,",
|
|
84
|
+
" \"prompt_calibration\": {",
|
|
85
|
+
" \"measured_at\": \"2026-10-05\",",
|
|
86
|
+
" \"model_id\": \"qwen-plus\",",
|
|
87
|
+
" \"gateway\": \"bailian\",",
|
|
88
|
+
" \"last_pass_bytes\": 26624,",
|
|
89
|
+
" \"last_fail_bytes\": 36897",
|
|
90
|
+
" }",
|
|
91
|
+
" }"
|
|
92
|
+
]
|
|
70
93
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.
|
|
3
|
+
**Generated:** 2026-10-14
|
|
4
|
+
**Commit:** e466ce16
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.24.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.
|
|
@@ -329,6 +329,15 @@ Each round MUST output a structured round marker:
|
|
|
329
329
|
|
|
330
330
|
#### Qoder 平台(Custom Agent 模式 — 只能做到同模型三角色)
|
|
331
331
|
|
|
332
|
+
**通道契约(native-first + external fallback,#414)**:每轮评审开始先探测 native 通道——三个 Custom Agent(`delphi-architecture/technical/feasibility`)是否存在且绑定互异(`xp-gate doctor delphi` 一条命令给出全部判定)。但 **native 通道已被实测证伪**(见下):subagent 派发采纳 agent 提示词、丢弃 model 绑定,三席永远是会话模型。因此 Qoder 的通道决策表实际收敛为:
|
|
333
|
+
|
|
334
|
+
| 探测结果 | 通道 | 处置 |
|
|
335
|
+
|---|---|---|
|
|
336
|
+
| 需要 distinct-models 证据的评审 | **external** | `.delphi-config.json` + `scripts/delphi-external-review.cjs`(外部 provider 三模型) |
|
|
337
|
+
| 仅需同模型三角色自查(不计入共识证据) | native | 三 Custom Agent 并行,报告中注明「同模型自查,不构成多模型凭据」 |
|
|
338
|
+
|
|
339
|
+
降级证据落盘 `delphi-reviewed.json`:`channel`(native/external)、`fallback_reason`(如 `qoder_native_drops_model_binding`)、`probe_evidence`(doctor/日志摘录)。两通道同不变量:三专家齐全、`requested_model` 互异(external)、consensus ≥90%、**无单专家路径**。
|
|
340
|
+
|
|
332
341
|
Qoder 的内置模型**没有本地推理端点**:推理请求由 Qoder 客户端经服务端代理发出,凭证是一次性 job token。所以不能照搬 OpenCode 的 `base_url + api_key` 直连方式;Qoder 侧内置模型的唯一入口是 **Custom Agent** —— 每个专家一个独立 agent 文件,frontmatter 用 `model` 字段声明模型。
|
|
333
342
|
|
|
334
343
|
**契约结论(先说结论)**:这条路径**不满足**"三个不同可执行模型 ID"契约。2026-09-23 做过一次排除混杂因素的复测:先把 `~/.qoder/agents/delphi-*.md` 三份文件绑成三个不同的 0.1× 内置模型(`qfmodel` / `dfmodel` / `gfmodel`;架构角与会话模型同名,所以真正有判别力的是技术角与可行性角),**再**新开会话——新 CLI 进程,`session.config.loaded` 记录 `model: "qfmodel"`,注册表加载的必然是已修好的绑定——然后只派发三个 subagent,各回一句话、不调工具。结果:三个独立的 `is_subagent: true` turn,`turn.started` / `model.request.started` / `model.response.completed` 三处的 `model` 全为会话模型 `qfmodel`,`dfmodel` / `gfmodel` 出现 0 次;同时三份回复分别命中架构 / 技术 / 可行性视角,说明角色提示词确实生效、agent 也确实被加载。即 `subagent_type` 派发路径采纳 Custom Agent 的提示词,但**丢弃**它的 `model` 绑定。
|
|
@@ -408,6 +417,20 @@ delphi-review(
|
|
|
408
417
|
> (1) `dsh-tool-subagent` 的 `modelSelectionSettings: true`(仅能力开关),
|
|
409
418
|
> (2) 宿主设置 `SubagentModelSelectionConfig.enabled = true` 且 `allowedModels` ≥3 个不同模型。
|
|
410
419
|
> 该路线依赖宿主配置,CI / 一次性会话不可靠,故不作为默认路径。
|
|
420
|
+
|
|
421
|
+
**DSH 双通道契约(native-first + external fallback,#443)**:评审开始先探测 native 通道,两层开关缺一不可——
|
|
422
|
+
|
|
423
|
+
| 探测步骤 | 方法 | 判定 |
|
|
424
|
+
|---|---|---|
|
|
425
|
+
| ① 工具 schema | 当前会话 `subagent` 工具的参数里是否暴露 `provider` / `model` 字段 | 无 → native 不可用(`enabled` 默认 `false`) |
|
|
426
|
+
| ② 模型清单 | `list_subagent_models` 工具是否注册;可用时返回条数是否 ≥3 且互异 | 未注册或 <3 条 → native 不可用 |
|
|
427
|
+
| ③ 运行时兜底 | 上述任一不满足时调用 subagent 会抛 `child model selection is disabled` | 直接判定,不试错 |
|
|
428
|
+
|
|
429
|
+
- **native 可用**:三个专家并行派发,每个显式传 `model`(取自 `allowedModels` 三个互异条目);`resolved_model` 以平台日志/回执为准,无日志时按 #437 过渡标准注明「执行层验证待平台支持」。
|
|
430
|
+
- **native 不可用**:降级 **external**(本 skill 的 `delphi-review` 插件工具,或 `.delphi-config.json` + `scripts/delphi-external-review.cjs`)。缺 API key 时必须给出明确指引(导出环境变量),不得静默失败。
|
|
431
|
+
- 降级证据落盘 `delphi-reviewed.json`:`channel`、`fallback_reason`(如 `dsh_subagent_model_selection_disabled`)、`probe_evidence`(①②③ 的实测摘录)。
|
|
432
|
+
- 两通道同不变量:三专家齐全、`requested_model` 互异、consensus ≥90%、**无单专家路径**。
|
|
433
|
+
- 可用性探测可用 `xp-gate doctor delphi` 复核(DSH 环境下含 `subagentModelSelection` 持久化设置检查)。
|
|
411
434
|
#### WorkBuddy 平台(Expert 团队模式)
|
|
412
435
|
|
|
413
436
|
WorkBuddy 侧以 Team 型专家团(示例:`delphi-review-team`,安装在 `~/.workbuddy/plugins/marketplaces/my-experts/plugins/`,创建方式见 [docs/platform-workbuddy.md](../../docs/platform-workbuddy.md))承载评审,触发本技能后按此路由执行:
|
|
@@ -432,6 +455,26 @@ WorkBuddy 侧以 Team 型专家团(示例:`delphi-review-team`,安装在 `
|
|
|
432
455
|
|
|
433
456
|
**成本**:3 专家合计 x0.17/轮;主理人选 local 会话模型则零 credits。
|
|
434
457
|
|
|
458
|
+
### 席位 prompt 上限与降序裁剪(强制 — #481)
|
|
459
|
+
|
|
460
|
+
prompt 字节上限是 **席位×模型路由 属性**,不是全局安全值(2026-10-05 实测:同一网关下
|
|
461
|
+
`g-glm-5.3-flash` 席 32-39KB 连续 6 次断连,他席 36KB 一次通过)。编排规则:
|
|
462
|
+
|
|
463
|
+
1. **发送前硬闸**:runner 按 expert 条目的 `max_prompt_bytes`(默认 40000 字节,UTF-8 计)
|
|
464
|
+
拒发超限请求,输出 `error_type: "prompt_budget_exceeded"`。
|
|
465
|
+
2. **失败分类**:响应前断连且字节数超过该席位标定的 `last_pass_bytes` →
|
|
466
|
+
`error_type: "SIZE_EXCEEDED"`(不是网络故障,重试同一 payload 无意义);
|
|
467
|
+
其余失败输出 `network_error` / `retryable_error`,编排层按 `error_type` 字段断言,不解析散文。
|
|
468
|
+
3. **超限时按降序裁剪,每步只做一步**:
|
|
469
|
+
① 去附录(探针填充、日志附录、非必需长引用)→ ② 去非本轮 AC 原文 →
|
|
470
|
+
③ 去测试清单(枚举 → 计数)→ ④ 拆分两次调用(按 diff 对半,同报告合并)→
|
|
471
|
+
⑤ 仍失败 → `PROCESS_BLOCK` 交人裁定。**不得以两席结果冒充 3/3 共识。**
|
|
472
|
+
4. **标定**:上限按「固定语义核心 + 确定性填充附录」构造探针,在
|
|
473
|
+
`[last_pass, last_fail]` 区间二分 3-5 次测得;记录行含
|
|
474
|
+
`seat_id × model_id × gateway × max_passing_bytes × measured_at`;
|
|
475
|
+
模型或网关变更即重标。协议全文与种子标定表见
|
|
476
|
+
[docs/plans/2026-10-14-sprint-c-design.md](../../docs/plans/2026-10-14-sprint-c-design.md) §2。
|
|
477
|
+
|
|
435
478
|
### 共识阈值
|
|
436
479
|
|
|
437
480
|
| 阈值 | 说明 |
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-10-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.
|
|
3
|
+
**Generated:** 2026-10-14
|
|
4
|
+
**Commit:** e466ce16
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.24.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-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.
|
|
3
|
+
**Generated:** 2026-10-14
|
|
4
|
+
**Commit:** e466ce16
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.24.0.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|