chainlesschain 0.166.156 → 0.166.159
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 +33 -29
- package/package.json +3 -1
- package/scripts/dmm-business-acceptance-drill.mjs +304 -0
- package/src/assets/linux-subreaper/linux-arm64/manifest.json +3 -3
- package/src/assets/linux-subreaper/linux-arm64/supervisor +0 -0
- package/src/assets/linux-subreaper/linux-x64/manifest.json +3 -3
- package/src/assets/linux-subreaper/linux-x64/supervisor +0 -0
- package/src/assets/web-panel/.build-hash +1 -1
- package/src/data/changelog.json +39 -0
- package/src/lib/evolution/evolution-deployment-loader.js +15 -18
- package/src/lib/evolution/evolution-ledger-storage-audit.js +222 -0
- package/src/lib/evolution/rrsi-observed-text-index.js +16 -0
- package/src/lib/lk-model-catalog.json +202 -619
package/src/data/changelog.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "CHANGELOG.md",
|
|
3
3
|
"releases": [
|
|
4
|
+
{
|
|
5
|
+
"productVersion": null,
|
|
6
|
+
"cliVersion": "0.166.159",
|
|
7
|
+
"cliVersions": ["0.166.159"],
|
|
8
|
+
"date": "2026-11-21",
|
|
9
|
+
"title": "",
|
|
10
|
+
"sections": [
|
|
11
|
+
{
|
|
12
|
+
"heading": "Fixed - cc CLI 0.166.159: restore supported macOS release gates (candidate, 2026-11-21)",
|
|
13
|
+
"body": "- Restore macOS 15 for the complete CLI CI and Strict Sandbox matrices. GitHub rejected macOS 14 ARM64 before assigning a runner; earlier macOS 15 attempts were cancelled by superseding branch runs.\n- Carry the DMM-09 native SQLite acceptance drill from unpublished candidate 0.166.158. Preserve its immutable tag and require a new exact-source three-platform validation for this candidate.\n- Advance the fixture clock with completed task timestamps so independent verification does not correctly reject a future source. Count rejected and falsely completed checks from stored records, and close SQLite on failure.\n- Pair Open VSX 0.37.194 and JetBrains 0.4.209 with CLI 0.166.159 only after Actions OIDC publication and public npm readback. Child npm versions remain unchanged."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"productVersion": null,
|
|
19
|
+
"cliVersion": "0.166.158",
|
|
20
|
+
"cliVersions": ["0.166.158"],
|
|
21
|
+
"date": "2026-11-20",
|
|
22
|
+
"title": "",
|
|
23
|
+
"sections": [
|
|
24
|
+
{
|
|
25
|
+
"heading": "Added - cc CLI 0.166.158: DMM-09 independent business acceptance drill (candidate, 2026-11-20)",
|
|
26
|
+
"body": "- Add a deterministic native SQLite business acceptance drill that refuses incomplete outcomes, records independent completion evidence, survives process reopen and replays the same request idempotently.\n- Include the drill in the CLI release package and exact-source CI evidence.\n- Pair VS Code 0.37.194 and JetBrains 0.4.209 only after the CLI OIDC publication, public readback and complete IDE gates."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"productVersion": null,
|
|
32
|
+
"cliVersion": "0.166.157",
|
|
33
|
+
"cliVersions": ["0.166.157"],
|
|
34
|
+
"date": "2026-11-19",
|
|
35
|
+
"title": "",
|
|
36
|
+
"sections": [
|
|
37
|
+
{
|
|
38
|
+
"heading": "Added - cc CLI 0.166.157: governed evolution storage audit (candidate, 2026-11-19)",
|
|
39
|
+
"body": "- Add a read-only audit binding the original evolution journal, witnesses, manifest chain, retained segments and artifact inventory to one verified head.\n- Expose it only through authenticated deployment factories; copied objects, missing components, changed files and interrupted WAL state remain HOLD.\n- Publication requires the exact commit's CLI CI, Strict Sandbox, OIDC and public registry readback."
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
4
43
|
{
|
|
5
44
|
"productVersion": null,
|
|
6
45
|
"cliVersion": "0.166.156",
|
|
@@ -225,6 +225,7 @@ async function loadBuiltInFactories(commandName) {
|
|
|
225
225
|
ledgerBackend,
|
|
226
226
|
artifactStore,
|
|
227
227
|
manifest,
|
|
228
|
+
storageAudit,
|
|
228
229
|
] = await Promise.all([
|
|
229
230
|
import("./skill-runtime-revalidation.js"),
|
|
230
231
|
import("./skill-runtime-revalidation-ledger-adapter.js"),
|
|
@@ -234,6 +235,7 @@ async function loadBuiltInFactories(commandName) {
|
|
|
234
235
|
import("./evolution-ledger-file-backend.js"),
|
|
235
236
|
import("../artifact-store.js"),
|
|
236
237
|
import("./skill-execution-manifest.js"),
|
|
238
|
+
import("./evolution-ledger-storage-audit.js"),
|
|
237
239
|
]);
|
|
238
240
|
Object.assign(factories, {
|
|
239
241
|
createSkillRuntimeRevalidationAuthority:
|
|
@@ -247,6 +249,8 @@ async function loadBuiltInFactories(commandName) {
|
|
|
247
249
|
new artifactPorts.EvolutionArtifactPorts(options),
|
|
248
250
|
createEvolutionLedgerFileBackend:
|
|
249
251
|
ledgerBackend.createEvolutionLedgerFileBackend,
|
|
252
|
+
captureEvolutionLedgerStorageAudit:
|
|
253
|
+
storageAudit.captureEvolutionLedgerStorageAudit,
|
|
250
254
|
createArtifactStore: (options) =>
|
|
251
255
|
new artifactStore.ArtifactStore(options),
|
|
252
256
|
buildSkillRuntimeManifest: manifest.buildSkillRuntimeManifest,
|
|
@@ -623,9 +627,7 @@ async function loadBuiltInFactories(commandName) {
|
|
|
623
627
|
import("./evolution-eval-process-supervisor.js"),
|
|
624
628
|
import("./governed-skill-synthesis-attestor-trust-approval-client.js"),
|
|
625
629
|
import("./governed-skill-synthesis-attestor-trust-operations-client.js"),
|
|
626
|
-
import(
|
|
627
|
-
"./governed-skill-synthesis-attestor-trust-operations-cli-host.js"
|
|
628
|
-
),
|
|
630
|
+
import("./governed-skill-synthesis-attestor-trust-operations-cli-host.js"),
|
|
629
631
|
]);
|
|
630
632
|
factories.createEvolutionWorkbenchCliHost = createEvolutionWorkbenchCliHost;
|
|
631
633
|
factories.createEvolutionWorkbenchReviewRuntime =
|
|
@@ -1037,16 +1039,14 @@ export async function loadEvolutionDeploymentCommandDependencies(
|
|
|
1037
1039
|
// Unsupported commands (including read-only session show) need no deployment
|
|
1038
1040
|
// configuration. Loading it eagerly also loads secret-store and the full
|
|
1039
1041
|
// process broker/platform sandbox graph before this early return.
|
|
1040
|
-
const { readEvolutionEnabled, resolveEvolutionEnabled } =
|
|
1041
|
-
"./evolution-enabled.js"
|
|
1042
|
-
);
|
|
1042
|
+
const { readEvolutionEnabled, resolveEvolutionEnabled } =
|
|
1043
|
+
await import("./evolution-enabled.js");
|
|
1043
1044
|
const localModelDependencies = () =>
|
|
1044
1045
|
dependencies(
|
|
1045
1046
|
{
|
|
1046
1047
|
evolutionCompositionFactory: async (context) => {
|
|
1047
|
-
const { initializeDefaultLocalUiEvolutionDeployment } =
|
|
1048
|
-
"./local-ui-evolution-deployment.js"
|
|
1049
|
-
);
|
|
1048
|
+
const { initializeDefaultLocalUiEvolutionDeployment } =
|
|
1049
|
+
await import("./local-ui-evolution-deployment.js");
|
|
1050
1050
|
await initializeDefaultLocalUiEvolutionDeployment({ env, cwd });
|
|
1051
1051
|
const admitted = await loadEvolutionDeploymentCommandDependencies(
|
|
1052
1052
|
commandName,
|
|
@@ -1080,9 +1080,8 @@ export async function loadEvolutionDeploymentCommandDependencies(
|
|
|
1080
1080
|
)
|
|
1081
1081
|
return null;
|
|
1082
1082
|
if (choice === true && currentProfile.profile?.enabled === false) {
|
|
1083
|
-
const { setEvolutionDeploymentProfileEnabled } =
|
|
1084
|
-
"./evolution-deployment-profile.js"
|
|
1085
|
-
);
|
|
1083
|
+
const { setEvolutionDeploymentProfileEnabled } =
|
|
1084
|
+
await import("./evolution-deployment-profile.js");
|
|
1086
1085
|
await setEvolutionDeploymentProfileEnabled(true, { env, cwd });
|
|
1087
1086
|
}
|
|
1088
1087
|
if (
|
|
@@ -1091,9 +1090,8 @@ export async function loadEvolutionDeploymentCommandDependencies(
|
|
|
1091
1090
|
!descriptorPath &&
|
|
1092
1091
|
!trustRootPath
|
|
1093
1092
|
) {
|
|
1094
|
-
const { initializeDefaultLocalUiEvolutionDeployment } =
|
|
1095
|
-
"./local-ui-evolution-deployment.js"
|
|
1096
|
-
);
|
|
1093
|
+
const { initializeDefaultLocalUiEvolutionDeployment } =
|
|
1094
|
+
await import("./local-ui-evolution-deployment.js");
|
|
1097
1095
|
await initializeDefaultLocalUiEvolutionDeployment({ env, cwd });
|
|
1098
1096
|
}
|
|
1099
1097
|
let fromSavedProfile = false;
|
|
@@ -1221,9 +1219,8 @@ export async function loadEvolutionDeploymentCommandDependencies(
|
|
|
1221
1219
|
const builtIn = await loadBuiltInFactories(commandName);
|
|
1222
1220
|
let localFactories = null;
|
|
1223
1221
|
if (localProfile) {
|
|
1224
|
-
const { createLocalUiEvolutionComposition } =
|
|
1225
|
-
"./local-ui-evolution-runtime.js"
|
|
1226
|
-
);
|
|
1222
|
+
const { createLocalUiEvolutionComposition } =
|
|
1223
|
+
await import("./local-ui-evolution-runtime.js");
|
|
1227
1224
|
localFactories = {
|
|
1228
1225
|
createLocalUiEvolutionComposition: (options = {}) =>
|
|
1229
1226
|
createLocalUiEvolutionComposition({
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/** Explicit, read-only composition of the original local v2 storage checks. */
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { isProxy } from "node:util/types";
|
|
4
|
+
import {
|
|
5
|
+
captureEvolutionLedgerFileBackend,
|
|
6
|
+
captureEvolutionLedgerFileBackendBinding,
|
|
7
|
+
captureEvolutionLedgerFileBackendSourceDirectoryBoundary,
|
|
8
|
+
captureEvolutionLedgerFileBackendWitnessDirectoryBoundaries,
|
|
9
|
+
} from "./evolution-ledger-file-backend.js";
|
|
10
|
+
import {
|
|
11
|
+
captureEvolutionLedgerArtifactResolverBinding,
|
|
12
|
+
captureEvolutionArtifactStoreDirectoryBoundary,
|
|
13
|
+
captureEvolutionArtifactStoreLocalInventory,
|
|
14
|
+
} from "./evolution-artifact-ports.js";
|
|
15
|
+
import {
|
|
16
|
+
isEvolutionLedgerV2Journal,
|
|
17
|
+
captureEvolutionLedgerV2JournalManifestDirectoryBoundaries,
|
|
18
|
+
captureEvolutionLedgerV2JournalWitnessDirectoryBoundaries,
|
|
19
|
+
captureEvolutionLedgerV2JournalRetainedSegmentDirectoryBoundary,
|
|
20
|
+
captureEvolutionLedgerV2JournalLocalRetentionInventory,
|
|
21
|
+
captureEvolutionLedgerV2JournalSourceConsistency,
|
|
22
|
+
} from "./evolution-ledger-v2-journal.js";
|
|
23
|
+
|
|
24
|
+
export const EVOLUTION_LEDGER_STORAGE_AUDIT_SCHEMA =
|
|
25
|
+
"chainlesschain.evolution-local-storage-audit/v1";
|
|
26
|
+
export const EVOLUTION_LEDGER_STORAGE_AUDIT_HELD_CODE =
|
|
27
|
+
"CC_EVOLUTION_STORAGE_AUDIT_HELD";
|
|
28
|
+
|
|
29
|
+
function held(message, cause) {
|
|
30
|
+
throw Object.assign(new Error(message, cause ? { cause } : undefined), {
|
|
31
|
+
code: EVOLUTION_LEDGER_STORAGE_AUDIT_HELD_CODE,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function canonical(value) {
|
|
36
|
+
if (value === null || typeof value !== "object") return JSON.stringify(value);
|
|
37
|
+
if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
|
|
38
|
+
return `{${Object.keys(value)
|
|
39
|
+
.sort()
|
|
40
|
+
.map((key) => `${JSON.stringify(key)}:${canonical(value[key])}`)
|
|
41
|
+
.join(",")}}`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function digest(value) {
|
|
45
|
+
return `sha256:${createHash("sha256")
|
|
46
|
+
.update(`${EVOLUTION_LEDGER_STORAGE_AUDIT_SCHEMA}\0`)
|
|
47
|
+
.update(canonical(value))
|
|
48
|
+
.digest("hex")}`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function frozen(value) {
|
|
52
|
+
if (value && typeof value === "object") {
|
|
53
|
+
Object.values(value).forEach(frozen);
|
|
54
|
+
Object.freeze(value);
|
|
55
|
+
}
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function ports(input) {
|
|
60
|
+
const keys = ["backend", "artifactPorts", "ledgerArtifactResolver"];
|
|
61
|
+
if (
|
|
62
|
+
!input ||
|
|
63
|
+
isProxy(input) ||
|
|
64
|
+
Object.getPrototypeOf(input) !== Object.prototype ||
|
|
65
|
+
Reflect.ownKeys(input).length !== keys.length
|
|
66
|
+
)
|
|
67
|
+
throw new TypeError("storage audit requires exactly three original ports");
|
|
68
|
+
return Object.fromEntries(
|
|
69
|
+
keys.map((key) => {
|
|
70
|
+
const field = Object.getOwnPropertyDescriptor(input, key);
|
|
71
|
+
if (!field?.enumerable || !("value" in field))
|
|
72
|
+
throw new TypeError("storage audit ports must be own data properties");
|
|
73
|
+
return [key, field.value];
|
|
74
|
+
}),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* No caller paths, inventory filters, recovery, installation or trust defaults.
|
|
80
|
+
* Separate component read windows do not constitute an atomic disk snapshot.
|
|
81
|
+
*/
|
|
82
|
+
export function captureEvolutionLedgerStorageAudit(input) {
|
|
83
|
+
if (arguments.length !== 1)
|
|
84
|
+
throw new TypeError("storage audit takes one original composition");
|
|
85
|
+
const options = ports(input);
|
|
86
|
+
const backend = captureEvolutionLedgerFileBackend(options.backend);
|
|
87
|
+
const binding = captureEvolutionLedgerFileBackendBinding(backend);
|
|
88
|
+
const resolver = captureEvolutionLedgerArtifactResolverBinding(
|
|
89
|
+
options.ledgerArtifactResolver,
|
|
90
|
+
);
|
|
91
|
+
const journal = backend.ledger;
|
|
92
|
+
if (
|
|
93
|
+
!binding.matchesArtifactResolver(options.ledgerArtifactResolver) ||
|
|
94
|
+
!resolver.matchesArtifactPorts(options.artifactPorts)
|
|
95
|
+
)
|
|
96
|
+
held("storage audit requires the same original backend and artifact ports");
|
|
97
|
+
if (!isEvolutionLedgerV2Journal(journal))
|
|
98
|
+
held("storage audit requires an original v2 journal");
|
|
99
|
+
if (
|
|
100
|
+
resolver.tenantId !== journal.descriptor.artifactTenantId ||
|
|
101
|
+
resolver.audience !== journal.descriptor.audience ||
|
|
102
|
+
resolver.purpose !== "evolution-ledger"
|
|
103
|
+
)
|
|
104
|
+
held("storage audit artifact scope differs from the original journal");
|
|
105
|
+
|
|
106
|
+
function capture() {
|
|
107
|
+
const sourceBoundary =
|
|
108
|
+
captureEvolutionLedgerFileBackendSourceDirectoryBoundary(backend);
|
|
109
|
+
const sourceWitnessBoundary =
|
|
110
|
+
captureEvolutionLedgerFileBackendWitnessDirectoryBoundaries(backend);
|
|
111
|
+
const manifestBoundaries =
|
|
112
|
+
captureEvolutionLedgerV2JournalManifestDirectoryBoundaries(journal);
|
|
113
|
+
const manifestWitnessBoundary =
|
|
114
|
+
captureEvolutionLedgerV2JournalWitnessDirectoryBoundaries(journal);
|
|
115
|
+
const retentionBoundary =
|
|
116
|
+
captureEvolutionLedgerV2JournalRetainedSegmentDirectoryBoundary(journal);
|
|
117
|
+
const artifactBoundary = captureEvolutionArtifactStoreDirectoryBoundary(
|
|
118
|
+
options.artifactPorts,
|
|
119
|
+
);
|
|
120
|
+
if (!manifestBoundaries || !manifestWitnessBoundary || !retentionBoundary)
|
|
121
|
+
held(
|
|
122
|
+
"storage audit requires original physical manifest and retention ports",
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
const boundaries = [
|
|
126
|
+
sourceBoundary,
|
|
127
|
+
sourceWitnessBoundary,
|
|
128
|
+
manifestBoundaries.catalog,
|
|
129
|
+
manifestBoundaries.head,
|
|
130
|
+
manifestWitnessBoundary,
|
|
131
|
+
retentionBoundary,
|
|
132
|
+
artifactBoundary,
|
|
133
|
+
];
|
|
134
|
+
const recheckDirectories = () => {
|
|
135
|
+
for (const boundary of boundaries) boundary.recheck();
|
|
136
|
+
};
|
|
137
|
+
recheckDirectories();
|
|
138
|
+
// These explicit readers never call journal.verify()/recover(), take a
|
|
139
|
+
// source lock, advance a witness or finalize an outstanding WAL suffix.
|
|
140
|
+
const source = captureEvolutionLedgerV2JournalSourceConsistency(journal);
|
|
141
|
+
if (source === null)
|
|
142
|
+
held("storage audit requires a finalized read-only source/v2 history");
|
|
143
|
+
const retention =
|
|
144
|
+
captureEvolutionLedgerV2JournalLocalRetentionInventory(journal);
|
|
145
|
+
const artifacts = captureEvolutionArtifactStoreLocalInventory(
|
|
146
|
+
options.artifactPorts,
|
|
147
|
+
);
|
|
148
|
+
if (retention === null || artifacts === null)
|
|
149
|
+
held("storage audit cannot substitute custom or incomplete inventories");
|
|
150
|
+
|
|
151
|
+
const head = source.snapshot.manifestHead;
|
|
152
|
+
if (
|
|
153
|
+
canonical(head) !== canonical(retention.snapshot.head) ||
|
|
154
|
+
artifacts.snapshot.tenantId !== journal.descriptor.artifactTenantId ||
|
|
155
|
+
artifacts.snapshot.audience !== journal.descriptor.audience
|
|
156
|
+
)
|
|
157
|
+
held("storage audit components do not share one journal head and scope");
|
|
158
|
+
|
|
159
|
+
// Re-read all three components rather than trusting their reported hashes.
|
|
160
|
+
// Retention includes unreferenced files; artifacts includes the full index.
|
|
161
|
+
source.recheck();
|
|
162
|
+
retention.recheck();
|
|
163
|
+
artifacts.recheck();
|
|
164
|
+
recheckDirectories();
|
|
165
|
+
const core = frozen({
|
|
166
|
+
schema: EVOLUTION_LEDGER_STORAGE_AUDIT_SCHEMA,
|
|
167
|
+
scope: "original-v2-source-witnesses-local-retention-and-artifact-store",
|
|
168
|
+
tenantId: journal.descriptor.tenantId,
|
|
169
|
+
artifactTenantId: journal.descriptor.artifactTenantId,
|
|
170
|
+
audience: journal.descriptor.audience,
|
|
171
|
+
head,
|
|
172
|
+
directories: {
|
|
173
|
+
source: sourceBoundary.descriptor,
|
|
174
|
+
sourceWitness: sourceWitnessBoundary.descriptor,
|
|
175
|
+
manifestCatalog: manifestBoundaries.catalog.descriptor,
|
|
176
|
+
manifestHead: manifestBoundaries.head.descriptor,
|
|
177
|
+
manifestWitness: manifestWitnessBoundary.descriptor,
|
|
178
|
+
retention: retentionBoundary.descriptor,
|
|
179
|
+
artifacts: artifactBoundary.descriptor,
|
|
180
|
+
},
|
|
181
|
+
source: source.snapshot,
|
|
182
|
+
retention: retention.snapshot,
|
|
183
|
+
artifacts: artifacts.snapshot,
|
|
184
|
+
readOnlyOpen: true,
|
|
185
|
+
recoveryPerformed: false,
|
|
186
|
+
originalCompositionVerified: true,
|
|
187
|
+
sourceEventsExactlyMirrored: true,
|
|
188
|
+
localRetentionInventoryVerified: true,
|
|
189
|
+
localArtifactInventoryVerified: true,
|
|
190
|
+
independentInstallationVerified: false,
|
|
191
|
+
crossProcessRollbackProtectionVerified: false,
|
|
192
|
+
atomicSnapshotVerified: false,
|
|
193
|
+
fullPhysicalStorageGraphVerified: false,
|
|
194
|
+
externalWormVerified: false,
|
|
195
|
+
productionAuthorityVerified: false,
|
|
196
|
+
generationProvenanceVerified: false,
|
|
197
|
+
grantsMutationOrPromotionAuthority: false,
|
|
198
|
+
decision: "HOLD",
|
|
199
|
+
});
|
|
200
|
+
return frozen({ ...core, storageAuditDigest: digest(core) });
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function guardedCapture() {
|
|
204
|
+
try {
|
|
205
|
+
return capture();
|
|
206
|
+
} catch (cause) {
|
|
207
|
+
if (cause?.code === EVOLUTION_LEDGER_STORAGE_AUDIT_HELD_CODE) throw cause;
|
|
208
|
+
held("original local storage audit could not be authenticated", cause);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const snapshot = guardedCapture();
|
|
212
|
+
return Object.freeze({
|
|
213
|
+
snapshot,
|
|
214
|
+
recheck(...args) {
|
|
215
|
+
if (args.length)
|
|
216
|
+
throw new TypeError("storage audit takes no replacement context");
|
|
217
|
+
if (guardedCapture().storageAuditDigest !== snapshot.storageAuditDigest)
|
|
218
|
+
held("original local storage changed after audit capture");
|
|
219
|
+
return true;
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Retained observations and prohibitions, never proof of causal generation. */
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { isProxy } from "node:util/types";
|
|
4
|
+
import { captureEvolutionLedgerStorageAudit } from "./evolution-ledger-storage-audit.js";
|
|
4
5
|
import {
|
|
5
6
|
captureEvolutionLedgerV2JournalManifestDirectoryBoundaries,
|
|
6
7
|
captureEvolutionLedgerV2JournalWitnessDirectoryBoundaries,
|
|
@@ -1201,6 +1202,14 @@ export function createRrsiObservedTextIndex(input) {
|
|
|
1201
1202
|
},
|
|
1202
1203
|
});
|
|
1203
1204
|
}),
|
|
1205
|
+
captureStorageAudit: () =>
|
|
1206
|
+
guarded(() =>
|
|
1207
|
+
captureEvolutionLedgerStorageAudit({
|
|
1208
|
+
backend,
|
|
1209
|
+
artifactPorts: options.artifactPorts,
|
|
1210
|
+
ledgerArtifactResolver: options.ledgerArtifactResolver,
|
|
1211
|
+
}),
|
|
1212
|
+
),
|
|
1204
1213
|
}),
|
|
1205
1214
|
);
|
|
1206
1215
|
return index;
|
|
@@ -1218,3 +1227,10 @@ export function captureRrsiObservedTextArtifactInventory(value) {
|
|
|
1218
1227
|
throw new TypeError("one original observed text index is required");
|
|
1219
1228
|
return INDEXES.get(value).captureArtifactInventory();
|
|
1220
1229
|
}
|
|
1230
|
+
|
|
1231
|
+
/** Explicit full local component audit; ordinary text reads stay unchanged. */
|
|
1232
|
+
export function captureRrsiObservedTextStorageAudit(value) {
|
|
1233
|
+
if (arguments.length !== 1 || !INDEXES.has(value))
|
|
1234
|
+
throw new TypeError("one original observed text index is required");
|
|
1235
|
+
return INDEXES.get(value).captureStorageAudit();
|
|
1236
|
+
}
|