@fro.bot/systematic 3.21.5 → 3.21.7
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/dist/cli.js +14 -12
- package/dist/{index-c17zm38x.js → index-99dtcz5j.js} +541 -539
- package/dist/index.js +366 -99
- package/dist/lib/opencode-workflow-guard.d.ts +16 -0
- package/dist/lib/workflow-guard.d.ts +7 -1
- package/package.json +7 -7
- package/skills/ce-review/scripts/validate-review.mjs +13 -11
- package/skills/using-systematic/SKILL.md +1 -1
|
@@ -28,13 +28,29 @@ export interface OpencodeWorkflowGuardOptions {
|
|
|
28
28
|
readonly sessionSalt?: Uint8Array;
|
|
29
29
|
readonly targetDirectory?: string;
|
|
30
30
|
readonly sessionLocation?: string;
|
|
31
|
+
/** Injectable clock (epoch milliseconds); defaults to `Date.now`. */
|
|
32
|
+
readonly now?: () => number;
|
|
31
33
|
}
|
|
32
34
|
export interface OpencodeWorkflowChildSession {
|
|
33
35
|
readonly sessionId: string;
|
|
34
36
|
readonly parentID?: string;
|
|
35
37
|
}
|
|
36
38
|
export interface OpencodeWorkflowHostReadback {
|
|
39
|
+
/**
|
|
40
|
+
* Lenient read, used for child-session rollup: a host error or malformed
|
|
41
|
+
* payload may be reported as `[]` (nothing to roll up), and only a thrown
|
|
42
|
+
* read marks the parent unavailable.
|
|
43
|
+
*/
|
|
37
44
|
readSessionParts(sessionID: string): Promise<ReadonlyArray<unknown>>;
|
|
45
|
+
/**
|
|
46
|
+
* Strict read of the session's OWN history, used for initialization and
|
|
47
|
+
* recovery. Must throw on a host error or malformed payload so a failed read
|
|
48
|
+
* can never be mistaken for empty history. Optional only so injected readers
|
|
49
|
+
* need no mass edits; when absent, initialization falls back to
|
|
50
|
+
* `readSessionParts`, which then carries the same obligation to throw on
|
|
51
|
+
* failure.
|
|
52
|
+
*/
|
|
53
|
+
readSessionPartsStrict?(sessionID: string): Promise<ReadonlyArray<unknown>>;
|
|
38
54
|
listChildren(sessionID: string): Promise<ReadonlyArray<OpencodeWorkflowChildSession>>;
|
|
39
55
|
}
|
|
40
56
|
export interface OpencodeWorkflowGuardHooks {
|
|
@@ -2,7 +2,7 @@ import { type ReceiptClassifier } from './receipt-classifier.js';
|
|
|
2
2
|
import type { ReceiptLedger, ReceiptOperation } from './receipt-ledger.js';
|
|
3
3
|
import type { ReceiptResourceScope } from './receipt-readback.js';
|
|
4
4
|
export type WorkflowMode = 'protected' | 'disabled' | 'unavailable';
|
|
5
|
-
export type WorkflowState = 'protected' | 'waiting' | 'rejected' | 'disabled' | 'unavailable';
|
|
5
|
+
export type WorkflowState = 'protected' | 'waiting' | 'rejected' | 'disabled' | 'unavailable' | 'inactive';
|
|
6
6
|
export type RepairKind = 'fresh-readback' | 'rerun-operation' | 'question-attestation';
|
|
7
7
|
export type TransitionTarget = 'unit' | 'epoch';
|
|
8
8
|
export type EpochFamily = 'work' | 'shipping';
|
|
@@ -141,6 +141,12 @@ export interface WorkflowGuard {
|
|
|
141
141
|
observeTrustedRecoveredOperation(input: unknown): Promise<EvidenceObservationResult>;
|
|
142
142
|
observeReadback(input: unknown): ReadbackObservationResult;
|
|
143
143
|
currentOperationContext(): CurrentOperationContext;
|
|
144
|
+
/**
|
|
145
|
+
* Read-only: whether the active unit already has a resource baseline for
|
|
146
|
+
* `operation` (declared on the unit, seeded, or propagated from PR
|
|
147
|
+
* creation). False when there is no active unit.
|
|
148
|
+
*/
|
|
149
|
+
hasResourceBaseline(operation: ReceiptOperation): boolean;
|
|
144
150
|
status(): WorkflowStatus;
|
|
145
151
|
prepareTransition(input: unknown): TransitionPrepareResult;
|
|
146
152
|
finalizeTransition(input: unknown): TransitionFinalizeResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.7",
|
|
4
4
|
"description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://fro.bot/systematic",
|
|
@@ -99,22 +99,22 @@
|
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@biomejs/biome": "2.5.15",
|
|
101
101
|
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
102
|
-
"@opencode-ai/plugin": "1.18.
|
|
103
|
-
"@opencode-ai/sdk": "1.18.
|
|
102
|
+
"@opencode-ai/plugin": "1.18.35",
|
|
103
|
+
"@opencode-ai/sdk": "1.18.35",
|
|
104
104
|
"@semantic-release/exec": "7.1.0",
|
|
105
105
|
"@tintinweb/pi-subagents": "0.14.3",
|
|
106
106
|
"@types/bun": "latest",
|
|
107
107
|
"@types/js-yaml": "4.0.9",
|
|
108
|
-
"@types/node": "26.6.
|
|
108
|
+
"@types/node": "26.6.4",
|
|
109
109
|
"agent-browser": "0.34.0",
|
|
110
110
|
"ajv": "8.20.0",
|
|
111
111
|
"ajv-formats": "3.0.1",
|
|
112
|
-
"conventional-changelog-conventionalcommits": "10.4.
|
|
112
|
+
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
113
113
|
"markdownlint-cli": "0.49.1",
|
|
114
114
|
"rimraf": "6.1.3",
|
|
115
115
|
"semantic-release": "25.0.9",
|
|
116
116
|
"semantic-release-export-data": "1.2.0",
|
|
117
|
-
"typebox": "1.3.
|
|
117
|
+
"typebox": "1.3.36",
|
|
118
118
|
"typescript": "7.0.2"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"brace-expansion": "^5.0.8",
|
|
130
130
|
"conventional-changelog-writer": ">=9",
|
|
131
131
|
"devalue": "^5.9.3",
|
|
132
|
-
"smol-toml": "~1.
|
|
132
|
+
"smol-toml": "~1.9.0"
|
|
133
133
|
},
|
|
134
134
|
"publishConfig": {
|
|
135
135
|
"access": "public",
|
|
@@ -18,6 +18,19 @@ var __export = (target, all) => {
|
|
|
18
18
|
})
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
// node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/iso.js
|
|
22
|
+
var exports_iso = {}
|
|
23
|
+
__export(exports_iso, {
|
|
24
|
+
ZodISODate: () => ZodISODate,
|
|
25
|
+
ZodISODateTime: () => ZodISODateTime,
|
|
26
|
+
ZodISODuration: () => ZodISODuration,
|
|
27
|
+
ZodISOTime: () => ZodISOTime,
|
|
28
|
+
date: () => date2,
|
|
29
|
+
datetime: () => datetime2,
|
|
30
|
+
duration: () => duration2,
|
|
31
|
+
time: () => time2,
|
|
32
|
+
})
|
|
33
|
+
|
|
21
34
|
// src/ce-review-validator.ts
|
|
22
35
|
import fs3 from 'node:fs'
|
|
23
36
|
import { fileURLToPath } from 'node:url'
|
|
@@ -6286,17 +6299,6 @@ function superRefine(fn, params) {
|
|
|
6286
6299
|
return _superRefine(fn, params)
|
|
6287
6300
|
}
|
|
6288
6301
|
// node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/iso.js
|
|
6289
|
-
var exports_iso = {}
|
|
6290
|
-
__export(exports_iso, {
|
|
6291
|
-
ZodISODate: () => ZodISODate,
|
|
6292
|
-
ZodISODateTime: () => ZodISODateTime,
|
|
6293
|
-
ZodISODuration: () => ZodISODuration,
|
|
6294
|
-
ZodISOTime: () => ZodISOTime,
|
|
6295
|
-
date: () => date2,
|
|
6296
|
-
datetime: () => datetime2,
|
|
6297
|
-
duration: () => duration2,
|
|
6298
|
-
time: () => time2,
|
|
6299
|
-
})
|
|
6300
6302
|
function datetime2(params) {
|
|
6301
6303
|
return _isoDateTime(ZodISODateTime, params)
|
|
6302
6304
|
}
|
|
@@ -114,4 +114,4 @@ The bootstrap inlines the active harness profile naming the exact mechanisms for
|
|
|
114
114
|
|
|
115
115
|
When a mechanism is unavailable, present numbered options in chat and wait for questions, maintain a visible list for task tracking, and dispatch delegation sequentially or do the work inline.
|
|
116
116
|
|
|
117
|
-
Check the workflow guard availability once per execution unit. If the guard reports `unavailable` or `guard-unavailable`, treat it as terminal for that unit: do not retry `systematic_workflow_start` or `systematic_workflow_complete`. Use the documented unguarded fallback only when authorized, and report the unavailable state once.
|
|
117
|
+
Check the workflow guard availability once per execution unit. Guard state is per session; a child session starts `inactive`. `inactive` (reason `no-active-epoch`) means no guarded workflow has started in this session. It is not unavailable and not terminal: load a guarded skill to begin, and do not call `systematic_workflow_start` or `systematic_workflow_complete` before one is active. If the guard reports `unavailable` or `guard-unavailable`, treat it as terminal for that unit: do not retry `systematic_workflow_start` or `systematic_workflow_complete`. Use the documented unguarded fallback only when authorized, and report the unavailable state once.
|