@cleocode/core 2026.11.22 → 2026.11.23-rc.ci.740
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/.source-stamp.json +1 -1
- package/dist/build-provenance.json +2 -2
- package/dist/gateway-client/generated/index.d.ts +2 -2
- package/dist/gateway-client/generated/index.js +1 -1
- package/dist/gateway-client/generated/index.js.map +1 -1
- package/dist/gateway-client/generated/namespaces.gen.d.ts +1 -0
- package/dist/gateway-client/generated/namespaces.gen.js +2 -1
- package/dist/gateway-client/generated/namespaces.gen.js.map +1 -1
- package/dist/gateway-client/generated/sdk.gen.d.ts +5 -1
- package/dist/gateway-client/generated/sdk.gen.js +11 -0
- package/dist/gateway-client/generated/sdk.gen.js.map +1 -1
- package/dist/gateway-client/generated/types.gen.d.ts +30 -0
- package/dist/hygiene/census.js +5 -1
- package/dist/hygiene/census.js.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +2 -0
- package/dist/internal.js.map +1 -1
- package/dist/store/schema/cleo-global/agent-registry.d.ts +1 -1
- package/dist/worktree/in-use-probe.d.ts +4 -0
- package/dist/worktree/in-use-probe.js +24 -3
- package/dist/worktree/in-use-probe.js.map +1 -1
- package/dist/worktree/preserve-reports.d.ts +41 -0
- package/dist/worktree/preserve-reports.js +209 -0
- package/dist/worktree/preserve-reports.js.map +1 -0
- package/package.json +13 -13
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preserve stray worker reports in CLEO (T14694).
|
|
3
|
+
*
|
|
4
|
+
* Workers that ran before CLEO stored report digests left
|
|
5
|
+
* `temp/cleo-worker-report.txt` as the only copy of their report, so the
|
|
6
|
+
* disposal proof keeps their worktrees ("worker report not ingested by
|
|
7
|
+
* CLEO"). {@link preserveWorkerReports} stores each such file as a
|
|
8
|
+
* content-addressed blob attachment on the task its worktree is named for;
|
|
9
|
+
* {@link preservedWorkerReports} then proves, per checkout, that CLEO holds
|
|
10
|
+
* the file's exact bytes, which the disposal proof accepts like an ingested
|
|
11
|
+
* report digest. Nothing here deletes anything: disposal stays with
|
|
12
|
+
* `cleo worktree prune`.
|
|
13
|
+
*
|
|
14
|
+
* @task T14694
|
|
15
|
+
*/
|
|
16
|
+
import { createHash } from 'node:crypto';
|
|
17
|
+
import { realpathSync } from 'node:fs';
|
|
18
|
+
import { engineError, engineSuccess } from '@cleocode/contracts/engine-result.js';
|
|
19
|
+
import { readWorkerReport, WORKER_REPORT_PATH } from '@cleocode/worktree';
|
|
20
|
+
import { createAttachmentStore } from '../store/attachment-store.js';
|
|
21
|
+
import { enumerateWorktrees, isPrimaryWorktree, resolvePrimaryWorktreePath } from './list.js';
|
|
22
|
+
import { taskIdFromWorktreeDir } from './sentinel-index.js';
|
|
23
|
+
/** Label every preserved worker report attachment carries. */
|
|
24
|
+
const WORKER_REPORT_LABEL = 'worker-report';
|
|
25
|
+
/** Canonical form of a path for lookups (realpath when it resolves). */
|
|
26
|
+
function canonical(path) {
|
|
27
|
+
try {
|
|
28
|
+
return realpathSync(path);
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return path;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/** sha256 hex digest of some bytes. */
|
|
35
|
+
function sha256(bytes) {
|
|
36
|
+
return createHash('sha256').update(bytes).digest('hex');
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Whether the task store has this task, in any status (done, cancelled and
|
|
40
|
+
* archived tasks are valid owners). The attachment store does not check its
|
|
41
|
+
* owner, so a ref to an unknown id would hide the report from every task.
|
|
42
|
+
* A read error counts as unknown, so the worktree stays kept.
|
|
43
|
+
*/
|
|
44
|
+
async function taskKnown(projectRoot, taskId) {
|
|
45
|
+
const { taskExists } = await import('../tasks/show.js');
|
|
46
|
+
const result = await taskExists(projectRoot, taskId);
|
|
47
|
+
return result.success && result.data.exists;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Whether CLEO holds exactly these bytes for a task: a blob attachment with
|
|
51
|
+
* this sha256, referenced by the task, whose stored bytes read back and hash
|
|
52
|
+
* to it, and the task exists. Any failure is `null`, so the worktree stays kept.
|
|
53
|
+
*/
|
|
54
|
+
async function holdsReport(projectRoot, taskId, digest) {
|
|
55
|
+
try {
|
|
56
|
+
if (!(await taskKnown(projectRoot, taskId)))
|
|
57
|
+
return null;
|
|
58
|
+
const store = createAttachmentStore();
|
|
59
|
+
const held = await store.get(digest, projectRoot);
|
|
60
|
+
if (held === null || held.metadata.attachment.kind !== 'blob')
|
|
61
|
+
return null;
|
|
62
|
+
if (sha256(held.bytes) !== digest)
|
|
63
|
+
return null;
|
|
64
|
+
const refs = await store.listRefs(held.metadata.id, projectRoot);
|
|
65
|
+
return refs.some((r) => r.ownerType === 'task' && r.ownerId === taskId)
|
|
66
|
+
? held.metadata.id
|
|
67
|
+
: null;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The worker reports CLEO holds as preserved attachments, by checkout: for
|
|
75
|
+
* each candidate named for a task (`<worktrees>/<taskId>`), the sha256 of its
|
|
76
|
+
* current `temp/cleo-worker-report.txt` when that task holds a blob of exactly
|
|
77
|
+
* those bytes. A changed file hashes differently and is not listed, so the
|
|
78
|
+
* disposal proof keeps the worktree. Fail-closed: a foreign project, or any
|
|
79
|
+
* read error, yields none.
|
|
80
|
+
*
|
|
81
|
+
* @param projectRoot - Owning project (its store holds the attachments).
|
|
82
|
+
* @param candidates - Checkouts the caller will prove; empty opens nothing.
|
|
83
|
+
* @returns A lookup for `DisposeWorktreeOptions.ingestedReportDigests`.
|
|
84
|
+
* @task T14694
|
|
85
|
+
*/
|
|
86
|
+
export async function preservedWorkerReports(projectRoot, candidates) {
|
|
87
|
+
const byPath = new Map();
|
|
88
|
+
const none = () => [];
|
|
89
|
+
if (candidates.length === 0)
|
|
90
|
+
return none;
|
|
91
|
+
try {
|
|
92
|
+
// A foreign project's store is never opened (T14440).
|
|
93
|
+
const { isOwnProjectStore } = await import('./own-project.js');
|
|
94
|
+
if (!isOwnProjectStore(projectRoot))
|
|
95
|
+
return none;
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
return none;
|
|
99
|
+
}
|
|
100
|
+
for (const path of candidates) {
|
|
101
|
+
const taskId = taskIdFromWorktreeDir(path);
|
|
102
|
+
const bytes = taskId === null ? null : readWorkerReport(path);
|
|
103
|
+
if (taskId === null || bytes === null)
|
|
104
|
+
continue;
|
|
105
|
+
const digest = sha256(bytes);
|
|
106
|
+
if ((await holdsReport(projectRoot, taskId, digest)) !== null)
|
|
107
|
+
byPath.set(canonical(path), [digest]);
|
|
108
|
+
}
|
|
109
|
+
return (worktreePath) => byPath.get(canonical(worktreePath)) ?? [];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Store every worker report found in the project's worktrees as a blob
|
|
113
|
+
* attachment on its task, keyed by task and worktree. Idempotent: a report
|
|
114
|
+
* whose exact bytes the task already holds is reported `already-preserved`
|
|
115
|
+
* and gains no second ref. A dry run writes nothing. Never deletes.
|
|
116
|
+
*
|
|
117
|
+
* @param opts - Project root, dry run and actor.
|
|
118
|
+
* @returns What was preserved, already held or skipped, per worktree.
|
|
119
|
+
* @task T14694
|
|
120
|
+
*/
|
|
121
|
+
export async function preserveWorkerReports(opts) {
|
|
122
|
+
const { projectRoot } = opts;
|
|
123
|
+
const dryRun = opts.dryRun === true;
|
|
124
|
+
let paths;
|
|
125
|
+
try {
|
|
126
|
+
const primary = resolvePrimaryWorktreePath(projectRoot);
|
|
127
|
+
paths = enumerateWorktrees(projectRoot)
|
|
128
|
+
.map((entry) => entry.path)
|
|
129
|
+
.filter((p) => !isPrimaryWorktree(p, primary) && !isPrimaryWorktree(p, projectRoot));
|
|
130
|
+
}
|
|
131
|
+
catch (err) {
|
|
132
|
+
// @sync-invariant none:local-only git enumeration failed before any write
|
|
133
|
+
return engineError('E_GIT_FAILED', `Failed to enumerate worktrees: ${err instanceof Error ? err.message : String(err)}`, { fix: 'Run `git worktree list --porcelain` manually to diagnose.' });
|
|
134
|
+
}
|
|
135
|
+
const store = createAttachmentStore();
|
|
136
|
+
const reports = [];
|
|
137
|
+
for (const worktreePath of paths) {
|
|
138
|
+
const bytes = readWorkerReport(worktreePath);
|
|
139
|
+
if (bytes === null)
|
|
140
|
+
continue;
|
|
141
|
+
const taskId = taskIdFromWorktreeDir(worktreePath);
|
|
142
|
+
const digest = sha256(bytes);
|
|
143
|
+
const base = { worktreePath, taskId, sha256: digest, size: bytes.length };
|
|
144
|
+
if (taskId === null) {
|
|
145
|
+
reports.push({ ...base, status: 'skipped', reason: 'worktree directory names no task' });
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
if (!(await taskKnown(projectRoot, taskId))) {
|
|
149
|
+
reports.push({ ...base, status: 'skipped', reason: 'unknown task' });
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
const heldId = await holdsReport(projectRoot, taskId, digest);
|
|
153
|
+
if (heldId !== null) {
|
|
154
|
+
reports.push({ ...base, status: 'already-preserved', attachmentId: heldId });
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
// The blob row is content-addressed: identical bytes from another
|
|
158
|
+
// worktree already stored keep that row's description, so name it here.
|
|
159
|
+
let note = {};
|
|
160
|
+
try {
|
|
161
|
+
const existing = await store.getMetadata(digest, projectRoot);
|
|
162
|
+
const described = existing?.attachment.description ?? '';
|
|
163
|
+
if (existing !== null && !described.includes(worktreePath))
|
|
164
|
+
note = {
|
|
165
|
+
note: `identical bytes already stored (${described || existing.id}); its description does not name this worktree`,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
catch {
|
|
169
|
+
note = {};
|
|
170
|
+
}
|
|
171
|
+
if (dryRun) {
|
|
172
|
+
reports.push({ ...base, status: 'preserved', ...note });
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
try {
|
|
176
|
+
const attachment = {
|
|
177
|
+
kind: 'blob',
|
|
178
|
+
// Filled in by the store after hashing.
|
|
179
|
+
storageKey: '',
|
|
180
|
+
mime: 'text/plain',
|
|
181
|
+
size: bytes.length,
|
|
182
|
+
description: `Worker report ${WORKER_REPORT_PATH} from worktree ${worktreePath}`,
|
|
183
|
+
labels: [WORKER_REPORT_LABEL],
|
|
184
|
+
};
|
|
185
|
+
await store.put(bytes, attachment, 'task', taskId, opts.actor, projectRoot);
|
|
186
|
+
// Round-trip: the bytes must read back before the report counts as held.
|
|
187
|
+
const storedId = await holdsReport(projectRoot, taskId, digest);
|
|
188
|
+
reports.push(storedId !== null
|
|
189
|
+
? { ...base, status: 'preserved', attachmentId: storedId, ...note }
|
|
190
|
+
: { ...base, status: 'skipped', reason: 'stored bytes did not read back' });
|
|
191
|
+
}
|
|
192
|
+
catch (err) {
|
|
193
|
+
reports.push({
|
|
194
|
+
...base,
|
|
195
|
+
status: 'skipped',
|
|
196
|
+
reason: `store failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const count = (status) => reports.filter((r) => r.status === status).length;
|
|
201
|
+
return engineSuccess({
|
|
202
|
+
reports,
|
|
203
|
+
preservedCount: count('preserved'),
|
|
204
|
+
alreadyPreservedCount: count('already-preserved'),
|
|
205
|
+
skippedCount: count('skipped'),
|
|
206
|
+
dryRun,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=preserve-reports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserve-reports.js","sourceRoot":"","sources":["../../src/worktree/preserve-reports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQvC,OAAO,EAAE,WAAW,EAAE,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M,CAAC,CAAC;YAChE,OAAO,CAAC,IAAI,CACV,QAAQ,KAAK,IAAI;gBACf,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE;gBACnE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,gCAAgC,EAAE,CAC7E,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,IAAI,CAAC;gBACX,GAAG,IAAI;gBACP,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,iBAAiB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;aAC5E,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,MAAM,KAAK,GAAG,CAAC,MAAuC,EAAE,EAAE,CACxD,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,MAAM,CAAC;IACpD,OAAO,aAAa,CAAC;QACnB,OAAO;QACP,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC;QAClC,qBAAqB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QACjD,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;QAC9B,MAAM;KACP,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/core",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.23-rc.ci.740",
|
|
4
4
|
"description": "CLEO core business logic kernel — tasks, sessions, memory, orchestration, lifecycle, with bundled SQLite store",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -490,16 +490,16 @@
|
|
|
490
490
|
"write-file-atomic": "^7.0.1",
|
|
491
491
|
"yaml": "^2.8.3",
|
|
492
492
|
"zod": "4.3.6",
|
|
493
|
-
"@cleocode/adapters": "2026.11.
|
|
494
|
-
"@cleocode/agents": "2026.11.
|
|
495
|
-
"@cleocode/caamp": "2026.11.
|
|
496
|
-
"@cleocode/contracts": "2026.11.
|
|
497
|
-
"@cleocode/git-shim": "2026.11.
|
|
498
|
-
"@cleocode/lafs": "2026.11.
|
|
499
|
-
"@cleocode/nexus": "2026.11.
|
|
500
|
-
"@cleocode/paths": "2026.11.
|
|
501
|
-
"@cleocode/skills": "2026.11.
|
|
502
|
-
"@cleocode/worktree": "2026.11.
|
|
493
|
+
"@cleocode/adapters": "2026.11.23-rc.ci.740",
|
|
494
|
+
"@cleocode/agents": "2026.11.23-rc.ci.740",
|
|
495
|
+
"@cleocode/caamp": "2026.11.23-rc.ci.740",
|
|
496
|
+
"@cleocode/contracts": "2026.11.23-rc.ci.740",
|
|
497
|
+
"@cleocode/git-shim": "2026.11.23-rc.ci.740",
|
|
498
|
+
"@cleocode/lafs": "2026.11.23-rc.ci.740",
|
|
499
|
+
"@cleocode/nexus": "2026.11.23-rc.ci.740",
|
|
500
|
+
"@cleocode/paths": "2026.11.23-rc.ci.740",
|
|
501
|
+
"@cleocode/skills": "2026.11.23-rc.ci.740",
|
|
502
|
+
"@cleocode/worktree": "2026.11.23-rc.ci.740"
|
|
503
503
|
},
|
|
504
504
|
"engines": {
|
|
505
505
|
"node": ">=24.16.0"
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
"@types/proper-lockfile": "^4.1.4",
|
|
526
526
|
"@types/tar": "^6.1.13",
|
|
527
527
|
"@types/write-file-atomic": "^4.0.3",
|
|
528
|
-
"@cleocode/utils": "2026.11.
|
|
528
|
+
"@cleocode/utils": "2026.11.22"
|
|
529
529
|
},
|
|
530
530
|
"repository": {
|
|
531
531
|
"type": "git",
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"tree-sitter-ruby": "^0.23.1",
|
|
545
545
|
"tree-sitter-rust": "0.24.0",
|
|
546
546
|
"tree-sitter-typescript": "^0.23.2",
|
|
547
|
-
"@cleocode/studio": "^2026.11.
|
|
547
|
+
"@cleocode/studio": "^2026.11.23-rc.ci.740"
|
|
548
548
|
},
|
|
549
549
|
"scripts": {
|
|
550
550
|
"build": "tsc && node scripts/copy-selfimprove-fixtures.mjs && node scripts/write-build-provenance.mjs",
|