@boyingliu01/xp-gate 0.41.69 → 0.41.70
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/mattpocock-license-verdict.json +1 -1
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/dsh/package.json +1 -1
- package/plugins/dsh/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
- package/scripts/delphi-external-review.cjs +57 -18
- package/skills/delphi-review/AGENTS.md +1 -1
- package/skills/sprint-flow/AGENTS.md +1 -1
- package/skills/test-specification-alignment/AGENTS.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.70",
|
|
4
4
|
"description": "Deterministic quality gates for AI-generated code: 15 gates, Delphi review, sprint flow. Works with Claude Code, OpenCode, Qoder.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"xp-gate": "bin/xp-gate.js"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.70",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Claude Code. 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": {
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/plugins/dsh/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/dsh-plugin-xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.70",
|
|
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",
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.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.41.
|
|
3
|
+
"version": "0.41.70",
|
|
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": {
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -308,13 +308,48 @@ function checkPromptBudget({ systemPrompt, userPrompt, maxBytes }) {
|
|
|
308
308
|
return { ok: bytes <= maxBytes, bytes, maxBytes };
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
/**
|
|
312
|
+
* The structured over-budget note an orchestrator reads (#901).
|
|
313
|
+
*
|
|
314
|
+
* A function of its own so `preparePrompt` keeps the CCN it was recorded with:
|
|
315
|
+
* lizard scores `&&` as a branch, and both callers of this helper sit at their
|
|
316
|
+
* ceilings. Spread an empty object for the in-budget case rather than returning
|
|
317
|
+
* undefined, so the caller can always spread it.
|
|
318
|
+
*
|
|
319
|
+
* @param {{ok: boolean, bytes: number, maxBytes: number}} budget
|
|
320
|
+
* @returns {object} `{ budget_warning }`, or `{}` when within budget
|
|
321
|
+
*/
|
|
322
|
+
function budgetNoteFor(budget) {
|
|
323
|
+
return { ...(!budget.ok && { budget_warning: { over: true, bytes: budget.bytes, max_bytes: budget.maxBytes } }) };
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* The advisory shown when a review exceeds its seat's prompt budget (#901).
|
|
328
|
+
*
|
|
329
|
+
* ADVISORY, NOT A REFUSAL. Two facts made the old hard stop wrong:
|
|
330
|
+
*
|
|
331
|
+
* 1. Its premise was disproven. The text used to say the gateway "drops
|
|
332
|
+
* oversized requests without a diagnosable error"; measured 2026-12-03 with
|
|
333
|
+
* real source text, 3 MB returned 200 and latency was flat from 40 KB to
|
|
334
|
+
* 640 KB. The ceiling it defended no longer exists.
|
|
335
|
+
* 2. The seats can go and look. Each one carries read_file / grep / list_files
|
|
336
|
+
* confined to the repo root, so what is not in the prompt is no longer
|
|
337
|
+
* invisible to it -- a large diff is a cost, not a correctness boundary.
|
|
338
|
+
*
|
|
339
|
+
* What must NOT be dropped is the SIGNAL: the warning names the measured size,
|
|
340
|
+
* the configured ceiling, and both remedies. A silent over-budget run would be
|
|
341
|
+
* the fail-open this repository keeps closing.
|
|
342
|
+
*
|
|
343
|
+
* @param {{bytes: number, maxBytes: number, expert: string}} p
|
|
344
|
+
* @returns {string}
|
|
345
|
+
*/
|
|
311
346
|
function describePromptBudgetFailure({ bytes, maxBytes, expert }) {
|
|
312
347
|
return (
|
|
313
|
-
`Prompt for expert "${expert}" is ${bytes} bytes, over the ${maxBytes} byte budget. `
|
|
314
|
-
'The
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
348
|
+
`Prompt for expert "${expert}" is ${bytes} bytes, over the ${maxBytes} byte budget. `
|
|
349
|
+
+ 'The review will continue — the seats can read the repository themselves, so a larger '
|
|
350
|
+
+ 'prompt costs time, not correctness. '
|
|
351
|
+
+ 'To quiet this warning, either narrow the review range (fewer commits or files, or exclude '
|
|
352
|
+
+ 'vendored/lockfile content) or raise the seat\'s `max_prompt_bytes` in .delphi-config.json.'
|
|
318
353
|
);
|
|
319
354
|
}
|
|
320
355
|
|
|
@@ -688,6 +723,9 @@ async function callModelAPI(providerConfig, model, systemPrompt, userPrompt, opt
|
|
|
688
723
|
|
|
689
724
|
function buildReviewOutput(verdict, args, provenance) {
|
|
690
725
|
const parsed = parseExpertVerdict(verdict);
|
|
726
|
+
// Spread an object the CALLER built. No conditional here: lizard scores `?:`
|
|
727
|
+
// and `&&` as branches, and this function sits at its CCN ceiling.
|
|
728
|
+
const budgetNote = { ...provenance.budgetNote };
|
|
691
729
|
const output = {
|
|
692
730
|
expert_id: { architecture: 'A', technical: 'B', feasibility: 'C' }[args.expert],
|
|
693
731
|
expert_role: args.expert,
|
|
@@ -701,6 +739,7 @@ function buildReviewOutput(verdict, args, provenance) {
|
|
|
701
739
|
channel: provenance.channel,
|
|
702
740
|
round: args.round,
|
|
703
741
|
mode: args.mode,
|
|
742
|
+
...provenance.budgetNote,
|
|
704
743
|
};
|
|
705
744
|
if (!parsed.valid) {
|
|
706
745
|
return { ...output, result_type: 'delphi_expert_error', error: true, message: parsed.message };
|
|
@@ -885,20 +924,18 @@ function preparePrompt(args, expertConfig) {
|
|
|
885
924
|
maxBytes: resolvePromptBudgetBytes(expertConfig),
|
|
886
925
|
});
|
|
887
926
|
if (!budget.ok) {
|
|
927
|
+
// #901: WARN, do not refuse. The hard stop was defending a gateway ceiling
|
|
928
|
+
// that no longer exists (3 MB measured OK, 2026-12-03) and a blindness the
|
|
929
|
+
// read tools removed. Whether to pay for a large review is the operator's
|
|
930
|
+
// call, and they have the context this code does not.
|
|
931
|
+
//
|
|
932
|
+
// The signal still goes to BOTH channels on purpose: stderr is what a human
|
|
933
|
+
// reads, and the structured `budget_warning` field is what an orchestrator
|
|
934
|
+
// can act on without parsing prose.
|
|
888
935
|
const message = describePromptBudgetFailure({ ...budget, expert: args.expert });
|
|
889
|
-
console.error(`[delphi-review]
|
|
890
|
-
console.log(JSON.stringify({
|
|
891
|
-
error: true,
|
|
892
|
-
error_type: 'prompt_budget_exceeded',
|
|
893
|
-
expert_role: args.expert,
|
|
894
|
-
message,
|
|
895
|
-
bytes: budget.bytes,
|
|
896
|
-
max_bytes: budget.maxBytes,
|
|
897
|
-
retryable: false,
|
|
898
|
-
}));
|
|
899
|
-
process.exit(1);
|
|
936
|
+
console.error(`[delphi-review] WARNING: ${message}`);
|
|
900
937
|
}
|
|
901
|
-
return { systemPrompt, userPrompt, budget, seatCalibration };
|
|
938
|
+
return { systemPrompt, userPrompt, budget, seatCalibration, budgetNote: budgetNoteFor(budget) };
|
|
902
939
|
}
|
|
903
940
|
|
|
904
941
|
// ── Main execution ─────────────────────────────────────────────────────
|
|
@@ -910,7 +947,7 @@ async function main() {
|
|
|
910
947
|
|
|
911
948
|
const { expertConfig, provider } = resolveSeat(config, args.expert);
|
|
912
949
|
|
|
913
|
-
const { systemPrompt, userPrompt, budget, seatCalibration } = preparePrompt(args, expertConfig);
|
|
950
|
+
const { systemPrompt, userPrompt, budget, seatCalibration, budgetNote } = preparePrompt(args, expertConfig);
|
|
914
951
|
|
|
915
952
|
// Call API with retry; one schema-restating retry recovers malformed JSON
|
|
916
953
|
// without ever faking a verdict (#414 REQ-5).
|
|
@@ -939,6 +976,7 @@ async function main() {
|
|
|
939
976
|
provider: expertConfig.provider,
|
|
940
977
|
requested_model: expertConfig.model,
|
|
941
978
|
resolved_model: outcome.resolved_model,
|
|
979
|
+
budgetNote,
|
|
942
980
|
// This runner only ever reaches an external provider; local/offline
|
|
943
981
|
// fallbacks are recorded by a different path (#423).
|
|
944
982
|
channel: 'external',
|
|
@@ -966,6 +1004,7 @@ if (require.main !== module) {
|
|
|
966
1004
|
DEFAULT_TIMEOUT_MS,
|
|
967
1005
|
resolvePromptBudgetBytes,
|
|
968
1006
|
checkPromptBudget,
|
|
1007
|
+
budgetNoteFor,
|
|
969
1008
|
describePromptBudgetFailure,
|
|
970
1009
|
DEFAULT_PROMPT_BUDGET_BYTES,
|
|
971
1010
|
resolveSeatCalibration,
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
6
|
+
**Version:** 0.41.70.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.
|
|
@@ -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.
|
|
6
|
+
**Version:** 0.41.70.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|