patchwork-os 1.2.0-beta.2.canary.789 → 1.2.0-beta.2.canary.790
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.
|
@@ -37,6 +37,16 @@ import type { GradedOutcome } from "./errandOutcomeGrader.js";
|
|
|
37
37
|
* up by accident.
|
|
38
38
|
*/
|
|
39
39
|
export declare const SHADOW_LOG_BASENAME = "butler_outcome_shadow.jsonl";
|
|
40
|
+
/**
|
|
41
|
+
* Record level (ADR-0025's `rv` protocol; ADR-0027 for this ledger).
|
|
42
|
+
*
|
|
43
|
+
* 1: every row is written through `appendChained` and carries `iseq` and
|
|
44
|
+
* `prev`, stamped by the writer from the file's tail under the lock. At
|
|
45
|
+
* `rv >= 1` their absence is a WRITER DEFECT. Rows with no `rv` predate the
|
|
46
|
+
* chain; they are never re-stamped, and the `chain-start` marker commits to
|
|
47
|
+
* them as a block. Never default it on read.
|
|
48
|
+
*/
|
|
49
|
+
export declare const SHADOW_OUTCOME_RV = 1;
|
|
40
50
|
export declare function shadowLogPath(override?: string): string;
|
|
41
51
|
export interface ShadowOutcomeRow {
|
|
42
52
|
/**
|
|
@@ -58,6 +68,11 @@ export interface ShadowOutcomeRow {
|
|
|
58
68
|
* withholding rule and risk deriving it differently.
|
|
59
69
|
*/
|
|
60
70
|
wouldCountAsEvidence: boolean;
|
|
71
|
+
/** Writer-stamped record level. Absent on rows that predate the chain. */
|
|
72
|
+
rv?: number;
|
|
73
|
+
/** ADR-0027 integrity position and previous-line hash (rv >= 1). */
|
|
74
|
+
iseq?: number;
|
|
75
|
+
prev?: string;
|
|
61
76
|
}
|
|
62
77
|
/** `unknown` is withheld by the fold; the other two are evidence. */
|
|
63
78
|
export declare function wouldCountAsEvidence(d: OutcomeDisposition): boolean;
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
* the join key to be right (`ref` = `"<tool>:<id>"`, see `actionRef.ts`) and a
|
|
30
30
|
* measured before/after on the real log, exactly as #1319 required.
|
|
31
31
|
*/
|
|
32
|
-
import {
|
|
32
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
33
33
|
import path from "node:path";
|
|
34
|
+
import { appendChained, isChainMarker } from "../ledgerChain.js";
|
|
34
35
|
import { patchworkHome } from "../patchworkHome.js";
|
|
35
36
|
/**
|
|
36
37
|
* Filename. Deliberately NOT `outcome-log.jsonl` and deliberately not in a
|
|
@@ -38,6 +39,16 @@ import { patchworkHome } from "../patchworkHome.js";
|
|
|
38
39
|
* up by accident.
|
|
39
40
|
*/
|
|
40
41
|
export const SHADOW_LOG_BASENAME = "butler_outcome_shadow.jsonl";
|
|
42
|
+
/**
|
|
43
|
+
* Record level (ADR-0025's `rv` protocol; ADR-0027 for this ledger).
|
|
44
|
+
*
|
|
45
|
+
* 1: every row is written through `appendChained` and carries `iseq` and
|
|
46
|
+
* `prev`, stamped by the writer from the file's tail under the lock. At
|
|
47
|
+
* `rv >= 1` their absence is a WRITER DEFECT. Rows with no `rv` predate the
|
|
48
|
+
* chain; they are never re-stamped, and the `chain-start` marker commits to
|
|
49
|
+
* them as a block. Never default it on read.
|
|
50
|
+
*/
|
|
51
|
+
export const SHADOW_OUTCOME_RV = 1;
|
|
41
52
|
export function shadowLogPath(override) {
|
|
42
53
|
return path.join(override ?? patchworkHome(), SHADOW_LOG_BASENAME);
|
|
43
54
|
}
|
|
@@ -53,9 +64,15 @@ export function appendShadowOutcome(row, opts = {}) {
|
|
|
53
64
|
const full = {
|
|
54
65
|
...row,
|
|
55
66
|
wouldCountAsEvidence: wouldCountAsEvidence(row.disposition),
|
|
67
|
+
// Stamped AFTER the caller's fields so a caller cannot claim a level.
|
|
68
|
+
rv: SHADOW_OUTCOME_RV,
|
|
56
69
|
};
|
|
57
70
|
try {
|
|
58
|
-
|
|
71
|
+
// ADR-0027: locked, chained append. The old bare `appendFileSync` had no
|
|
72
|
+
// lock (two bridges could tear a row) and a failed append left the same
|
|
73
|
+
// bytes as a quiet day. The primitive counts the failure in the
|
|
74
|
+
// `.write_failed` sidecar and rethrows; the swallow below is unchanged.
|
|
75
|
+
appendChained(shadowLogPath(opts.dir), full, { mode: 0o600 });
|
|
59
76
|
}
|
|
60
77
|
catch {
|
|
61
78
|
// Swallowed on purpose. See above: an unwritable shadow ledger must not
|
|
@@ -95,6 +112,10 @@ export function firstSeenByRef(opts = {}) {
|
|
|
95
112
|
catch {
|
|
96
113
|
continue;
|
|
97
114
|
}
|
|
115
|
+
// ADR-0027 marker rows are metadata, never an observation — skipped by
|
|
116
|
+
// KIND, so a marker that happened to carry a ref could not sneak in.
|
|
117
|
+
if (isChainMarker(row))
|
|
118
|
+
continue;
|
|
98
119
|
if (typeof row.ref !== "string" || typeof row.gradedAt !== "number") {
|
|
99
120
|
continue;
|
|
100
121
|
}
|
|
@@ -214,6 +235,10 @@ export function parseShadowRows(text) {
|
|
|
214
235
|
catch {
|
|
215
236
|
continue;
|
|
216
237
|
}
|
|
238
|
+
// ADR-0027 marker rows are metadata, never a graded row — by KIND, so a
|
|
239
|
+
// future marker shape carrying a ref and a disposition is still excluded.
|
|
240
|
+
if (isChainMarker(row))
|
|
241
|
+
continue;
|
|
217
242
|
if (row.disposition !== "confirmed" &&
|
|
218
243
|
row.disposition !== "junk" &&
|
|
219
244
|
row.disposition !== "unknown") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outcomeShadowLog.js","sourceRoot":"","sources":["../../src/butler/outcomeShadowLog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"outcomeShadowLog.js","sourceRoot":"","sources":["../../src/butler/outcomeShadowLog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO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QACX,CAAC;QACD,IAAI,OAAO,GAAG,CAAC,GAAG,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG;YAAE,SAAS;QACtD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,yDAAyD;AACzD,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,MAAM,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IAC9B,IAAI,CAAC;QACH,OAAO,eAAe,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
package/dist/evidenceVerify.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `patchwork evidence verify` — is the evidence spine internally intact?
|
|
3
3
|
*
|
|
4
4
|
* The offline reader ADR-0027 pairs with `appendChained`. Walks every ledger
|
|
5
|
-
* on `
|
|
5
|
+
* on `VERIFIED_LEDGERS` through `verifyLedgerChain` and reduces to one verdict.
|
|
6
6
|
*
|
|
7
7
|
* Unlike `patchwork evidence`, this one GATES: `ok: false` and exit 1 on any
|
|
8
8
|
* break, on a legacy-prefix mismatch, on a head sidecar that says the file
|
|
@@ -24,5 +24,16 @@ export interface EvidenceVerification {
|
|
|
24
24
|
ok: boolean;
|
|
25
25
|
ledgers: LedgerVerification[];
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* What `evidence verify` walks: the spine PLUS chained ledgers that are not
|
|
29
|
+
* on it. Kept SEPARATE from `SPINE_LEDGERS` on purpose — that list is the
|
|
30
|
+
* correlation/coverage set behind `patchwork evidence`'s denominators, and a
|
|
31
|
+
* ledger that carries no run id has no business in a "rows carry a run id"
|
|
32
|
+
* count. Wave 2 of ADR-0027 appends here, one ledger per PR.
|
|
33
|
+
*/
|
|
34
|
+
export declare const VERIFIED_LEDGERS: ReadonlyArray<{
|
|
35
|
+
key: string;
|
|
36
|
+
file: string;
|
|
37
|
+
}>;
|
|
27
38
|
export declare function verifyEvidenceChains(dir?: string): EvidenceVerification;
|
|
28
39
|
export declare function formatEvidenceVerify(r: EvidenceVerification): string;
|
package/dist/evidenceVerify.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `patchwork evidence verify` — is the evidence spine internally intact?
|
|
3
3
|
*
|
|
4
4
|
* The offline reader ADR-0027 pairs with `appendChained`. Walks every ledger
|
|
5
|
-
* on `
|
|
5
|
+
* on `VERIFIED_LEDGERS` through `verifyLedgerChain` and reduces to one verdict.
|
|
6
6
|
*
|
|
7
7
|
* Unlike `patchwork evidence`, this one GATES: `ok: false` and exit 1 on any
|
|
8
8
|
* break, on a legacy-prefix mismatch, on a head sidecar that says the file
|
|
@@ -17,9 +17,20 @@ import path from "node:path";
|
|
|
17
17
|
import { SPINE_LEDGERS } from "./evidenceCoverage.js";
|
|
18
18
|
import { verifyLedgerChain } from "./ledgerChain.js";
|
|
19
19
|
import { patchworkHome } from "./patchworkHome.js";
|
|
20
|
+
/**
|
|
21
|
+
* What `evidence verify` walks: the spine PLUS chained ledgers that are not
|
|
22
|
+
* on it. Kept SEPARATE from `SPINE_LEDGERS` on purpose — that list is the
|
|
23
|
+
* correlation/coverage set behind `patchwork evidence`'s denominators, and a
|
|
24
|
+
* ledger that carries no run id has no business in a "rows carry a run id"
|
|
25
|
+
* count. Wave 2 of ADR-0027 appends here, one ledger per PR.
|
|
26
|
+
*/
|
|
27
|
+
export const VERIFIED_LEDGERS = [
|
|
28
|
+
...SPINE_LEDGERS,
|
|
29
|
+
{ key: "butler outcome shadow", file: "butler_outcome_shadow.jsonl" },
|
|
30
|
+
];
|
|
20
31
|
export function verifyEvidenceChains(dir = patchworkHome()) {
|
|
21
32
|
const ledgers = [];
|
|
22
|
-
for (const { key, file } of
|
|
33
|
+
for (const { key, file } of VERIFIED_LEDGERS) {
|
|
23
34
|
const v = verifyLedgerChain(path.join(dir, file));
|
|
24
35
|
ledgers.push({ ...v, key, file });
|
|
25
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidenceVerify.js","sourceRoot":"","sources":["../src/evidenceVerify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAA0B,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAcnD,MAAM,UAAU,oBAAoB,CAClC,GAAG,GAAG,aAAa,EAAE;IAErB,MAAM,OAAO,GAAyB,EAAE,CAAC;IACzC,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"evidenceVerify.js","sourceRoot":"","sources":["../src/evidenceVerify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAA0B,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAcnD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAiD;IAC5E,GAAG,aAAa;IAChB,EAAE,GAAG,EAAE,uBAAuB,EAAE,IAAI,EAAE,6BAA6B,EAAE;CACtE,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAClC,GAAG,GAAG,aAAa,EAAE;IAErB,MAAM,OAAO,GAAyB,EAAE,CAAC;IACzC,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,gBAA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AAC,CAAC,EAAE;QACF,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,yFAAyF,CAC9F,CAAC;IACF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACX,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchwork-os",
|
|
3
|
-
"version": "1.2.0-beta.2.canary.
|
|
3
|
+
"version": "1.2.0-beta.2.canary.790",
|
|
4
4
|
"description": "Your personal AI runtime, local-first. Patchwork OS gives any AI model a consistent set of tools, YAML recipes, a delegation policy with approval queue, and a durable trace memory — all on your machine, all under your policy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|