pi-spine 2.27.0 → 2.27.1
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/bin/spine-worker-runner.mjs +1 -0
- package/package.json +1 -1
- package/skills/create-spine-tasks/SKILL.md +60 -33
- package/skills/create-spine-tasks/references/authoring-evidence.md +58 -0
- package/skills/create-spine-tasks/references/contract-template.md +52 -7
- package/skills/create-spine-tasks/references/prompt-template.md +72 -8
- package/skills/spine-release-operator/SKILL.md +30 -51
- package/skills/spine-release-operator/references/issue-intake-checklist.md +3 -1
- package/skills/spine-release-operator/references/pi-async-orchestration.md +13 -9
- package/skills/spine-release-operator/references/post-integrate-regression-gate.md +8 -1
- package/skills/spine-release-operator/references/publish-recovery.md +62 -0
- package/src/batch/diagnosis-alternatives.mjs +16 -1
- package/src/batch/diagnosis-pending-lane.mjs +18 -0
- package/src/batch/diagnosis-review-infra.mjs +144 -0
- package/src/batch/diagnosis-suggested-command.mjs +9 -0
- package/src/batch/diagnosis.mjs +19 -20
- package/src/batch/engine-lanes/merge.mjs +0 -8
- package/src/batch/engine-lanes/review-poll.mjs +4 -1
- package/src/batch/engine-lanes.mjs +0 -1
- package/src/batch/gate-posture-approve.mjs +154 -15
- package/src/batch/integrate-path-delete.mjs +85 -0
- package/src/batch/integrate-worktree.mjs +20 -27
- package/src/batch/provider-quota.mjs +1 -1
- package/src/batch/reconcile-diagnosis.mjs +24 -77
- package/src/batch/review-artifacts.mjs +3 -2
- package/src/batch/review-level-effective.mjs +19 -0
- package/src/batch/review-spawn.mjs +12 -1
- package/src/batch/review-step-run.mjs +14 -2
- package/src/batch/reviewer-provider-error.mjs +153 -0
- package/src/batch/worker-prompt.mjs +5 -2
- package/src/config/cursor-rules/discover.mjs +38 -1
- package/src/config/settings-fields.mjs +5 -0
- package/src/config/spine-config-schema.mjs +38 -0
- package/src/doctor/pi-extension-hooks.mjs +322 -0
- package/src/doctor/run-doctor-checks.mjs +14 -1
- package/src/tasks/packet/validate-prompt.mjs +11 -1
- package/src/tasks/validate-contract-warn.mjs +16 -0
- package/templates/spine-config.json +1 -1
|
@@ -31,6 +31,7 @@ import { buildAgentModelInheritDoctorCheck, buildReviewerPerTypePinsDoctorCheck
|
|
|
31
31
|
import { buildInheritProviderAuthDoctorCheck } from "./agents-model-inherit.mjs";
|
|
32
32
|
import { buildAgentModelIdsDoctorCheck } from "./agent-models.mjs";
|
|
33
33
|
import { buildPiExtensionConflictDoctorCheck } from "./pi-extension-conflict.mjs";
|
|
34
|
+
import { buildContextHookExtensionDoctorCheck } from "./pi-extension-hooks.mjs";
|
|
34
35
|
import { buildSupervisorConfigDoctorCheck } from "./supervisor.mjs";
|
|
35
36
|
import { buildAttachedOrphanRiskDoctorCheck } from "./attached-orphan-risk.mjs";
|
|
36
37
|
import { buildQuotaRiskDoctorCheck } from "./quota-risk.mjs";
|
|
@@ -343,7 +344,20 @@ export function runDoctorChecks(projectRoot = process.cwd()) {
|
|
|
343
344
|
projectRoot,
|
|
344
345
|
}),
|
|
345
346
|
);
|
|
347
|
+
// Load config once here so the advisory SP-822 check (pushed right after
|
|
348
|
+
// the extension-conflict check) and the config-driven checks below share it.
|
|
349
|
+
const configResult = loadSpineConfig(projectRoot);
|
|
346
350
|
checks.push(buildPiExtensionConflictDoctorCheck({ projectRoot }));
|
|
351
|
+
// Advisory only (SP-822): warn when installed pi packages register
|
|
352
|
+
// context-rewriting hooks (context, context_with_system,
|
|
353
|
+
// before_provider_request) while reviewers load user extensions
|
|
354
|
+
// (agents.reviewer.loadUserExtensions). Never hard-fails.
|
|
355
|
+
checks.push(
|
|
356
|
+
buildContextHookExtensionDoctorCheck({
|
|
357
|
+
projectRoot,
|
|
358
|
+
config: configResult.config,
|
|
359
|
+
}),
|
|
360
|
+
);
|
|
347
361
|
checks.push(buildAttachedOrphanRiskDoctorCheck());
|
|
348
362
|
|
|
349
363
|
const piVersionText = getVersion("pi");
|
|
@@ -404,7 +418,6 @@ export function runDoctorChecks(projectRoot = process.cwd()) {
|
|
|
404
418
|
warning: modelCheck.warning,
|
|
405
419
|
});
|
|
406
420
|
|
|
407
|
-
const configResult = loadSpineConfig(projectRoot);
|
|
408
421
|
if (configResult.error) {
|
|
409
422
|
record(".spine/spine-config.json valid", false, {
|
|
410
423
|
detail: configResult.error.message,
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
validatePrompt as validatePromptStructure,
|
|
13
13
|
} from "./parse-prompt.mjs";
|
|
14
14
|
import { validateContract } from "./validate-contract.mjs";
|
|
15
|
+
import { collectExecuteReviewLevelWarnings } from "../validate-contract-warn.mjs";
|
|
16
|
+
import { parseReviewLevel } from "../../batch/review-shared.mjs";
|
|
15
17
|
|
|
16
18
|
/** Operator-facing hint when fileScopeMustChange may already be satisfied on main. */
|
|
17
19
|
export const STALE_FILE_SCOPE_AMENDMENT_HINT =
|
|
@@ -46,10 +48,18 @@ export function validatePrompt(markdown, options = {}) {
|
|
|
46
48
|
|
|
47
49
|
errors.push(...contractValidation.errors);
|
|
48
50
|
|
|
51
|
+
const warnings = [...contractValidation.warnings];
|
|
52
|
+
warnings.push(
|
|
53
|
+
...collectExecuteReviewLevelWarnings({
|
|
54
|
+
type: structure.prompt.type,
|
|
55
|
+
reviewLevel: parseReviewLevel(markdown),
|
|
56
|
+
}),
|
|
57
|
+
);
|
|
58
|
+
|
|
49
59
|
return {
|
|
50
60
|
ok: errors.length === 0,
|
|
51
61
|
errors,
|
|
52
|
-
warnings
|
|
62
|
+
warnings,
|
|
53
63
|
prompt: structure.prompt,
|
|
54
64
|
contract,
|
|
55
65
|
};
|
|
@@ -22,6 +22,22 @@ export const TEST_COMMAND_LINT_MISSING_FIX_HINT =
|
|
|
22
22
|
const PATCH_TASK_SIZES = new Set(["S", "M"]);
|
|
23
23
|
const LINT_IN_TEST_COMMAND_RE = /\b(?:lint|eslint|analyze)\b/;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Warn when an execute packet declares a Review Level above 0 (SP-827 / #336):
|
|
27
|
+
* execute tasks run no reviewers, so the declared level is misleading.
|
|
28
|
+
*
|
|
29
|
+
* @param {{ type: string, reviewLevel: number }} options
|
|
30
|
+
* @returns {string[]}
|
|
31
|
+
*/
|
|
32
|
+
export function collectExecuteReviewLevelWarnings({ type, reviewLevel }) {
|
|
33
|
+
if (type !== "execute" || reviewLevel <= 0) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
return [
|
|
37
|
+
`Type: execute task declares Review Level ${reviewLevel}; execute tasks run no reviewers — set Review Level 0.`,
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
|
|
25
41
|
/**
|
|
26
42
|
* @param {string | null | undefined} testCommand
|
|
27
43
|
* @returns {boolean}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"workerOutputMaxBytes": 262144,
|
|
37
37
|
"workerOutputTailLines": 200,
|
|
38
38
|
"retainWorkerOutputOnSuccess": false,
|
|
39
|
-
"streamWorkerOutputLive":
|
|
39
|
+
"streamWorkerOutputLive": true,
|
|
40
40
|
"workerLiveLogMaxBytes": 262144,
|
|
41
41
|
"stallTimeoutMinutes": 120,
|
|
42
42
|
"stallGraceAfterProgressMinutes": 30,
|