pi-spine 2.19.0 → 2.21.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/README.md +7 -5
- package/bin/spine-batch.mjs +15 -5
- package/bin/spine-gate.mjs +18 -3
- package/bin/spine-status.mjs +45 -0
- package/package.json +8 -8
- package/skills/spine-autonomous-operator/references/agent-shell-batch-policy.md +2 -0
- package/skills/spine-orchestrate-waves/SKILL.md +2 -0
- package/skills/spine-release-operator/SKILL.md +26 -10
- package/skills/spine-release-operator/references/issue-intake-checklist.md +46 -0
- package/skills/spine-release-operator/references/release-manifest-template.md +12 -0
- package/skills/spine-release-operator/references/release-profiles.md +6 -2
- package/skills/spine-release-operator/scripts/collect-release-intake.sh +44 -0
- package/src/batch/contract-exec.mjs +19 -18
- package/src/batch/engine-lanes/commit.mjs +6 -0
- package/src/batch/engine-lanes/matrix-run.mjs +238 -22
- package/src/batch/engine-lanes/matrix.mjs +33 -2
- package/src/batch/gate-posture-approve.mjs +16 -2
- package/src/batch/lane-commit.mjs +27 -12
- package/src/batch/readers/spine-state.mjs +4 -0
- package/src/batch/resume-multi-lanes.mjs +31 -0
- package/src/batch/resume.mjs +79 -59
- package/src/batch/retry-row.mjs +328 -0
- package/src/batch/retry.mjs +114 -44
- package/src/batch/state-guards.mjs +4 -5
- package/src/batch/state-io.mjs +2 -2
- package/src/batch/worker-host.mjs +3 -0
- package/src/batch/worker-spawn.mjs +14 -0
- package/src/cli/wait.mjs +163 -1
- package/src/metrics/quota-probes.mjs +44 -0
- package/src/tasks/packet/parse-prompt.mjs +17 -0
- package/src/tasks/packet/validate-contract.mjs +1 -0
|
@@ -30,6 +30,7 @@ export const CONTRACT_FIELD_NAMES = Object.freeze([
|
|
|
30
30
|
"artifactsMustExist",
|
|
31
31
|
"stallTimeoutMinutes",
|
|
32
32
|
"extendGraceOnFileScope",
|
|
33
|
+
"matrixMaxParallel",
|
|
33
34
|
]);
|
|
34
35
|
|
|
35
36
|
const CONTRACT_KNOWN_FIELDS = new Set(CONTRACT_FIELD_NAMES);
|
|
@@ -286,6 +287,7 @@ function collectDuplicateStepNumberErrors(steps) {
|
|
|
286
287
|
* artifactsMustExist: string[],
|
|
287
288
|
* stallTimeoutMinutes: number | null,
|
|
288
289
|
* extendGraceOnFileScope: boolean | null,
|
|
290
|
+
* matrixMaxParallel: number | null,
|
|
289
291
|
* rawTableValid: boolean,
|
|
290
292
|
* errors: string[],
|
|
291
293
|
* unknownFields: string[],
|
|
@@ -309,6 +311,7 @@ export function parseContract(markdown) {
|
|
|
309
311
|
artifactsMustExist: [],
|
|
310
312
|
stallTimeoutMinutes: null,
|
|
311
313
|
extendGraceOnFileScope: null,
|
|
314
|
+
matrixMaxParallel: null,
|
|
312
315
|
rawTableValid: false,
|
|
313
316
|
errors: [],
|
|
314
317
|
unknownFields: [],
|
|
@@ -509,6 +512,20 @@ function applyContractField(parsed, field, rawValue) {
|
|
|
509
512
|
parsed.errors.push("Contract extendGraceOnFileScope must be true or false");
|
|
510
513
|
return;
|
|
511
514
|
}
|
|
515
|
+
case "matrixMaxParallel": {
|
|
516
|
+
const rawParallel = parseContractScalar(value);
|
|
517
|
+
if (!/^\d+$/.test(rawParallel)) {
|
|
518
|
+
parsed.errors.push("Contract matrixMaxParallel must be a positive integer");
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
const parallel = Number(rawParallel);
|
|
522
|
+
if (parallel < 1) {
|
|
523
|
+
parsed.errors.push("Contract matrixMaxParallel must be a positive integer");
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
parsed.matrixMaxParallel = parallel;
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
512
529
|
default:
|
|
513
530
|
return;
|
|
514
531
|
}
|
|
@@ -219,6 +219,7 @@ function isContractTableEmpty(parsed) {
|
|
|
219
219
|
parsed.fileScopeMustNotChange.length === 0 &&
|
|
220
220
|
parsed.minLineCoverage === null &&
|
|
221
221
|
parsed.artifactsMustExist.length === 0 &&
|
|
222
|
+
parsed.matrixMaxParallel === null &&
|
|
222
223
|
(parsed.unknownFields?.length ?? 0) === 0
|
|
223
224
|
);
|
|
224
225
|
}
|