chainlesschain 0.166.147 → 0.166.149
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 +18 -4
- package/package.json +1 -1
- package/src/assets/linux-subreaper/linux-arm64/manifest.json +1 -1
- package/src/assets/linux-subreaper/linux-x64/manifest.json +1 -1
- package/src/commands/evolution-deployment.js +16 -0
- package/src/data/changelog.json +26 -0
- package/src/lib/evolution/evolution-deployment-config.js +27 -0
- package/src/lib/evolution/evolution-ledger-file-manifest-catalog.js +6 -0
- package/src/lib/evolution/evolution-ledger-file-manifest-head-store.js +8 -0
- package/src/lib/evolution/evolution-ledger-manifest-catalog.js +10 -1
- package/src/lib/evolution/evolution-ledger-manifest-head-store.js +15 -1
- package/src/lib/evolution/evolution-ledger-v2-journal.js +19 -1
- package/src/lib/evolution/evolution-ledger-v2-manifest-backend.js +11 -0
- package/src/lib/evolution/rrsi-observed-text-index.js +24 -2
- package/src/lib/evolution/rrsi-tenant-index-anchor-history.js +5 -0
package/README.md
CHANGED
|
@@ -2,13 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Command-line interface for installing, configuring, and managing [ChainlessChain](https://www.chainlesschain.com), including the coding agent, governed tools, sessions, memory, and IDE integrations.
|
|
4
4
|
|
|
5
|
-
## CLI 0.166.
|
|
5
|
+
## CLI 0.166.149 / IDE pairing candidate (2026-11-13)
|
|
6
6
|
|
|
7
|
-
This
|
|
7
|
+
This candidate binds retained observed-text and signed-anchor history to the genuine original catalog/head directory boundaries, including a recheck after final journal verification. Temporary reports add manifestDirectoryBoundaryDigest, manifestDirectoryBoundaryRechecked and manifestBoundaryScope; persistent schemas and signatures remain unchanged. Custom or wrapped backends cannot claim original-directory ownership. These are local directory metadata checks, not a complete runtime storage graph or promotion authority.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
CLI **0.166.149** is a release candidate; install `npm i -g chainlesschain@0.166.149 --registry https://registry.npmjs.org` only after the exact tag workflow publishes it. The paired candidates are VS Code **0.37.188** and JetBrains **0.4.203**. Exact-source CLI CI and Strict Sandbox on all configured operating systems, Actions OIDC publication and public readback must pass before IDE publication. Automatic promotion remains **HOLD**; no new model-task acceptance is claimed.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Public CLI 0.166.148 / verified IDE pairing (2026-11-13)
|
|
12
|
+
|
|
13
|
+
CLI **0.166.148** is public through [Actions OIDC](https://github.com/chainlesschain/chainlesschain/actions/runs/43314842279), including public archive/provenance and registry-only dependency verification. Exact source `146b3fbd438eece981aa14327d9481156683acd4` passed all 76 CLI CI and six Strict Sandbox jobs. Install `npm i -g chainlesschain@0.166.148 --registry https://registry.npmjs.org`, restart hosts, then run `cc --version` and `cc doctor`.
|
|
14
|
+
|
|
15
|
+
Open VSX **0.37.187** is public through its [official workflow](https://github.com/chainlesschain/chainlesschain/actions/runs/43319226240). JetBrains **0.4.202** completed its [official publication workflow](https://github.com/chainlesschain/chainlesschain/actions/runs/43323403954) and is now approved, listed and not hidden in the Marketplace API. Both recommend CLI **0.166.148**. Microsoft Marketplace remains unpublished. This release exposes the CLI-owned capability state; productionAuthority and runtimeEvidence remain false, and automaticPromotion remains HOLD.
|
|
16
|
+
|
|
17
|
+
## Public CLI 0.166.147 / IDE pairing (2026-11-12)
|
|
18
|
+
|
|
19
|
+
This version retains original manifest catalog/head ownership through Evolution Ledger factories, rejecting substituted directories and mixed head ports while preserving custom-backend behavior. These local storage capabilities do not grant promotion authority. The separate original 36-task plus nine-first-run evaluation retains fixed source, model, budgets and independent acceptance; preparation is not a new task-completion result.
|
|
20
|
+
|
|
21
|
+
CLI **0.166.147** is public through [Actions OIDC](https://github.com/chainlesschain/chainlesschain/actions/runs/42976618525). Exact source `32451e4d568e414acdb9c956208e5cff827cd6e0` passed all **76 CLI CI** and **6 Strict Sandbox** jobs. The [public readback](https://github.com/chainlesschain/chainlesschain/actions/runs/43032767673) verified npm provenance and byte identity with the official immutable tarball. Install `npm i -g chainlesschain@0.166.147 --registry https://registry.npmjs.org`, restart hosts, then run `cc --version` and `cc doctor`.
|
|
22
|
+
|
|
23
|
+
Open VSX **0.37.186** is public and byte-identical to the official VSIX, recommending CLI **0.166.147**. JetBrains **0.4.201** is awaiting completion of its official tag workflow; upload is not yet verified. Both new IDE versions recommend CLI **0.166.147**; their exact source `703b22e895bff2c0f40cd7f350aef0757dc3bdd5` passed the complete host and ARM64 gates. Session Core **0.3.27**, Protocol **0.1.13**, Agent SDK **0.2.18** and Context/Memory Kernel **0.1.12** are unchanged. [Download the public 0.37.186 VSIX](https://open-vsx.org/api/chainlesschain/chainlesschain-ide/0.37.186/file/chainlesschain.chainlesschain-ide-0.37.186.vsix).
|
|
24
|
+
|
|
25
|
+
The [upgrade and release-status guide](../../docs-site/docs/chainlesschain/cli-ide-update-2026-11-11-147.md) records each channel separately. Microsoft Marketplace was not published by this tag run; it requires an explicit exact-tag backfill and a configured VSCE_PAT. Public mobile/PC clients remain **v5.0.3.145**. Automatic promotion, independent business effects, invoice reconciliation and paid admission remain incomplete; **NOT_PAID_READY / NOT_ADMITTED / HOLD** remain. [Publication evidence](../../docs/research/cli/evidence/release147-public/README.md).
|
|
12
26
|
|
|
13
27
|
## Previous public CLI 0.166.146 / verified IDE pairing (2026-11-10)
|
|
14
28
|
|
package/package.json
CHANGED
|
@@ -27,6 +27,22 @@ function printStatus(status) {
|
|
|
27
27
|
chalk.yellow(" Warning: TEST ONLY — not production credentials"),
|
|
28
28
|
);
|
|
29
29
|
logger.log(` Auto promotion: HOLD (manual review required)`);
|
|
30
|
+
const policy = status.evolutionPolicy || {};
|
|
31
|
+
logger.log(
|
|
32
|
+
` Production auth: ${policy.productionAuthority === true ? "available" : "not available"}`,
|
|
33
|
+
);
|
|
34
|
+
logger.log(
|
|
35
|
+
` Runtime evidence: ${policy.runtimeEvidence === true ? "present" : "absent"}`,
|
|
36
|
+
);
|
|
37
|
+
const capabilities = status.evolutionStatus?.capabilities;
|
|
38
|
+
if (Array.isArray(capabilities) && capabilities.length) {
|
|
39
|
+
logger.log(" Capability state:");
|
|
40
|
+
for (const capability of capabilities) {
|
|
41
|
+
logger.log(
|
|
42
|
+
` ${capability.id}: ${capability.state} (wired=${capability.wired === true}, verified=${capability.verified === true})`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
30
46
|
logger.log(` Profile: ${status.profilePath}`);
|
|
31
47
|
if (status.descriptorPath)
|
|
32
48
|
logger.log(` Descriptor: ${status.descriptorPath}`);
|
package/src/data/changelog.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "CHANGELOG.md",
|
|
3
3
|
"releases": [
|
|
4
|
+
{
|
|
5
|
+
"productVersion": null,
|
|
6
|
+
"cliVersion": "0.166.149",
|
|
7
|
+
"cliVersions": ["0.166.149"],
|
|
8
|
+
"date": "2026-11-13",
|
|
9
|
+
"title": "",
|
|
10
|
+
"sections": [
|
|
11
|
+
{
|
|
12
|
+
"heading": "Added - cc CLI 0.166.149: retained-history manifest directory rechecks (candidate, 2026-11-13)",
|
|
13
|
+
"body": "- Bind observed-text and signed-anchor history reports to the genuine original journal catalog/head directory boundaries, with rechecks after capture, replay and final journal verification. Reject replaced directories and mixed or wrapped ownership without invoking caller callbacks.\n- Add temporary manifestDirectoryBoundaryDigest, manifestDirectoryBoundaryRechecked and manifestBoundaryScope report fields. Persistent schemas, signatures, CAS and localCompositionDigest remain unchanged; custom backends report this original-directory capability as unavailable.\n- Pair with VS Code/Open VSX 0.37.188 and JetBrains 0.4.203, both recommending CLI 0.166.149. Child package versions remain unchanged. Require exact-source three-OS CLI CI and Strict Sandbox, Actions OIDC publication and public readback before IDE publication.\n- Local focused validation: 138 passed and two existing platform-specific skips across nine files. This verifies local directory metadata only; independent installer/pins, complete runtime producer/storage graphs, A/B/C evaluation, business effects and automatic promotion remain incomplete. HOLD remains."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"productVersion": null,
|
|
19
|
+
"cliVersion": "0.166.148",
|
|
20
|
+
"cliVersions": ["0.166.148"],
|
|
21
|
+
"date": "2026-11-13",
|
|
22
|
+
"title": "",
|
|
23
|
+
"sections": [
|
|
24
|
+
{
|
|
25
|
+
"heading": "Added - cc CLI 0.166.148: self-evolution capability status projection (candidate, 2026-11-13)",
|
|
26
|
+
"body": "- Expose source-level self-evolution capability status and the governed deployment policy through the CLI deployment status command, making production authority, runtime evidence and automatic-promotion state explicit.\n- Pair with VS Code/Open VSX 0.37.187 and JetBrains 0.4.202; both IDEs surface the same CLI-owned capability state and recommend CLI 0.166.148. Publication remains gated on exact-source CI, host matrices and public readback.\n- Keep automatic promotion on HOLD: this release reports wiring evidence only and does not claim runtime producer/storage graphs, experiment acceptance or production promotion authority."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
4
30
|
{
|
|
5
31
|
"productVersion": null,
|
|
6
32
|
"cliVersion": "0.166.147",
|
|
@@ -14,6 +14,31 @@ import {
|
|
|
14
14
|
resolveEvolutionEnabled,
|
|
15
15
|
writeEvolutionEnabled,
|
|
16
16
|
} from "./evolution-enabled.js";
|
|
17
|
+
import {
|
|
18
|
+
CAPABILITY_MANIFEST,
|
|
19
|
+
buildEvolutionStatus,
|
|
20
|
+
} from "../capability-manifest.js";
|
|
21
|
+
|
|
22
|
+
// This is deliberately a static, fail-closed projection. Deployment
|
|
23
|
+
// verification proves that a signed host may be selected; it does not prove
|
|
24
|
+
// that a capability has produced a verified learning receipt or that active
|
|
25
|
+
// promotion is safe. Keep those claims separate so CLI and IDE clients cannot
|
|
26
|
+
// infer production readiness from a valid deployment alone.
|
|
27
|
+
const EVOLUTION_STATUS_PROJECTION = Object.freeze({
|
|
28
|
+
automaticPromotion: "hold",
|
|
29
|
+
productionAuthority: false,
|
|
30
|
+
runtimeEvidence: false,
|
|
31
|
+
scope: "cli-manifest-and-deployment-admission",
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// The CLI composition owns these capability seams. Marking them wired only
|
|
35
|
+
// records source-level composition; verification still requires a digest-bound
|
|
36
|
+
// receipt and therefore remains false until a real evaluator/producer emits it.
|
|
37
|
+
const EVOLUTION_WIRING_EVIDENCE = Object.freeze(
|
|
38
|
+
Object.fromEntries(
|
|
39
|
+
CAPABILITY_MANIFEST.evolutionCapabilities.map(({ id }) => [id, { wired: true }]),
|
|
40
|
+
),
|
|
41
|
+
);
|
|
17
42
|
|
|
18
43
|
function environmentSelection(env) {
|
|
19
44
|
const descriptorPath = env.CHAINLESSCHAIN_EVOLUTION_DEPLOYMENT_DESCRIPTOR;
|
|
@@ -155,6 +180,8 @@ export async function getEvolutionDeploymentStatus(options = {}) {
|
|
|
155
180
|
verified: false,
|
|
156
181
|
error: saved.error,
|
|
157
182
|
autoPromotion: "hold",
|
|
183
|
+
evolutionStatus: buildEvolutionStatus({ evidence: EVOLUTION_WIRING_EVIDENCE }),
|
|
184
|
+
evolutionPolicy: EVOLUTION_STATUS_PROJECTION,
|
|
158
185
|
};
|
|
159
186
|
if (!selected || saved.error) return withDeploymentReadiness(base);
|
|
160
187
|
try {
|
|
@@ -206,6 +206,12 @@ export function createEvolutionLedgerFileManifestCatalogBackend({
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/** Original local catalog directory only; structural wrappers are not owners. */
|
|
209
|
+
export function hasEvolutionLedgerFileManifestCatalogDirectoryBoundary(
|
|
210
|
+
backend,
|
|
211
|
+
) {
|
|
212
|
+
return DIRECTORY_BOUNDARIES.has(backend);
|
|
213
|
+
}
|
|
214
|
+
|
|
209
215
|
export function captureEvolutionLedgerFileManifestCatalogDirectoryBoundary(
|
|
210
216
|
backend,
|
|
211
217
|
) {
|
|
@@ -230,6 +230,14 @@ export function createEvolutionLedgerFileManifestHeadBackend({
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
/** A head-store factory must retain both original ports from the same backend. */
|
|
233
|
+
export function hasEvolutionLedgerFileManifestHeadPortsDirectoryBoundary(
|
|
234
|
+
load,
|
|
235
|
+
compareAndSet,
|
|
236
|
+
) {
|
|
237
|
+
const owner = LOAD_OWNERS.get(load);
|
|
238
|
+
return owner !== undefined && CAS_OWNERS.get(compareAndSet) === owner;
|
|
239
|
+
}
|
|
240
|
+
|
|
233
241
|
export function captureEvolutionLedgerFileManifestHeadPortsDirectoryBoundary(
|
|
234
242
|
load,
|
|
235
243
|
compareAndSet,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { types as utilTypes } from "node:util";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
captureEvolutionLedgerFileManifestCatalogDirectoryBoundary,
|
|
4
|
+
hasEvolutionLedgerFileManifestCatalogDirectoryBoundary,
|
|
5
|
+
} from "./evolution-ledger-file-manifest-catalog.js";
|
|
3
6
|
|
|
4
7
|
const ORIGINAL_BACKENDS = new WeakMap();
|
|
5
8
|
|
|
@@ -445,6 +448,12 @@ export function createEvolutionLedgerManifestCatalog(options = undefined) {
|
|
|
445
448
|
}
|
|
446
449
|
|
|
447
450
|
/** Reuse the exact backend retained by this factory, never its public path. */
|
|
451
|
+
export function hasEvolutionLedgerManifestCatalogDirectoryBoundary(value) {
|
|
452
|
+
return hasEvolutionLedgerFileManifestCatalogDirectoryBoundary(
|
|
453
|
+
ORIGINAL_BACKENDS.get(value),
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
|
|
448
457
|
export function captureEvolutionLedgerManifestCatalogDirectoryBoundary(value) {
|
|
449
458
|
if (arguments.length !== 1 || !ORIGINAL_BACKENDS.has(value))
|
|
450
459
|
throw new TypeError("one original manifest catalog is required");
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { types as utilTypes } from "node:util";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
captureEvolutionLedgerFileManifestHeadPortsDirectoryBoundary,
|
|
4
|
+
hasEvolutionLedgerFileManifestHeadPortsDirectoryBoundary,
|
|
5
|
+
} from "./evolution-ledger-file-manifest-head-store.js";
|
|
3
6
|
|
|
4
7
|
const ORIGINAL_PORTS = new WeakMap();
|
|
5
8
|
|
|
@@ -381,6 +384,17 @@ export function createEvolutionLedgerManifestHeadStore(options = undefined) {
|
|
|
381
384
|
}
|
|
382
385
|
|
|
383
386
|
/** Only the same original raw backend can own both captured head-store ports. */
|
|
387
|
+
export function hasEvolutionLedgerManifestHeadStoreDirectoryBoundary(value) {
|
|
388
|
+
const ports = ORIGINAL_PORTS.get(value);
|
|
389
|
+
return (
|
|
390
|
+
ports !== undefined &&
|
|
391
|
+
hasEvolutionLedgerFileManifestHeadPortsDirectoryBoundary(
|
|
392
|
+
ports.load,
|
|
393
|
+
ports.compareAndSet,
|
|
394
|
+
)
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
384
398
|
export function captureEvolutionLedgerManifestHeadStoreDirectoryBoundary(
|
|
385
399
|
value,
|
|
386
400
|
) {
|
|
@@ -10,13 +10,18 @@ import {
|
|
|
10
10
|
EVOLUTION_LEDGER_V2_MIGRATION_INTENT,
|
|
11
11
|
EVOLUTION_LEDGER_V2_CUTOVER_COMPLETED,
|
|
12
12
|
} from "./evolution-ledger.js";
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
captureEvolutionLedgerV2ManifestBackend,
|
|
15
|
+
captureEvolutionLedgerV2ManifestDirectoryBoundaries,
|
|
16
|
+
hasEvolutionLedgerV2ManifestDirectoryBoundaries,
|
|
17
|
+
} from "./evolution-ledger-v2-manifest-backend.js";
|
|
14
18
|
|
|
15
19
|
export const EVOLUTION_LEDGER_V2_JOURNAL_SCHEMA =
|
|
16
20
|
"chainlesschain.evolution-ledger-v2-journal/v2";
|
|
17
21
|
export const EVOLUTION_LEDGER_V2_FINALIZATION_SCHEMA =
|
|
18
22
|
"chainlesschain.evolution-ledger-v2-finalization/v2";
|
|
19
23
|
const JOURNALS = new WeakSet();
|
|
24
|
+
const MANIFEST_BACKENDS = new WeakMap();
|
|
20
25
|
const RESERVED = new Set([
|
|
21
26
|
EVOLUTION_LEDGER_V2_MIGRATION_INTENT,
|
|
22
27
|
EVOLUTION_LEDGER_V2_CUTOVER_COMPLETED,
|
|
@@ -518,9 +523,22 @@ export function createEvolutionLedgerV2Journal(options) {
|
|
|
518
523
|
});
|
|
519
524
|
locked(recover);
|
|
520
525
|
JOURNALS.add(journal);
|
|
526
|
+
MANIFEST_BACKENDS.set(journal, backend);
|
|
521
527
|
return journal;
|
|
522
528
|
}
|
|
523
529
|
|
|
530
|
+
/** Original factory components only. Custom ports remain usable but unclaimed. */
|
|
531
|
+
export function captureEvolutionLedgerV2JournalManifestDirectoryBoundaries(
|
|
532
|
+
value,
|
|
533
|
+
) {
|
|
534
|
+
if (arguments.length !== 1 || !MANIFEST_BACKENDS.has(value))
|
|
535
|
+
throw new TypeError("one original v2 journal is required");
|
|
536
|
+
const backend = MANIFEST_BACKENDS.get(value);
|
|
537
|
+
if (!hasEvolutionLedgerV2ManifestDirectoryBoundaries(backend)) return null;
|
|
538
|
+
// Do not catch identity/permission failures as merely unavailable ownership.
|
|
539
|
+
return captureEvolutionLedgerV2ManifestDirectoryBoundaries(backend);
|
|
540
|
+
}
|
|
541
|
+
|
|
524
542
|
export function isEvolutionLedgerV2Journal(value) {
|
|
525
543
|
return JOURNALS.has(value);
|
|
526
544
|
}
|
|
@@ -12,10 +12,12 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
captureEvolutionLedgerManifestHeadStore,
|
|
14
14
|
captureEvolutionLedgerManifestHeadStoreDirectoryBoundary,
|
|
15
|
+
hasEvolutionLedgerManifestHeadStoreDirectoryBoundary,
|
|
15
16
|
} from "./evolution-ledger-manifest-head-store.js";
|
|
16
17
|
import {
|
|
17
18
|
captureEvolutionLedgerManifestCatalog,
|
|
18
19
|
captureEvolutionLedgerManifestCatalogDirectoryBoundary,
|
|
20
|
+
hasEvolutionLedgerManifestCatalogDirectoryBoundary,
|
|
19
21
|
} from "./evolution-ledger-manifest-catalog.js";
|
|
20
22
|
import { captureEvolutionLedgerManifestWitnessAdapter } from "./evolution-ledger-manifest-witness-adapter.js";
|
|
21
23
|
|
|
@@ -618,6 +620,15 @@ export function createEvolutionLedgerV2ManifestBackend(options = undefined) {
|
|
|
618
620
|
}
|
|
619
621
|
|
|
620
622
|
/** Local metadata only. Capturing these components does not authenticate state. */
|
|
623
|
+
export function hasEvolutionLedgerV2ManifestDirectoryBoundaries(value) {
|
|
624
|
+
const components = ORIGINAL_MANIFEST_COMPONENTS.get(value);
|
|
625
|
+
return (
|
|
626
|
+
components !== undefined &&
|
|
627
|
+
hasEvolutionLedgerManifestCatalogDirectoryBoundary(components.catalog) &&
|
|
628
|
+
hasEvolutionLedgerManifestHeadStoreDirectoryBoundary(components.headStore)
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
|
|
621
632
|
export function captureEvolutionLedgerV2ManifestDirectoryBoundaries(value) {
|
|
622
633
|
if (arguments.length !== 1 || !ORIGINAL_MANIFEST_COMPONENTS.has(value))
|
|
623
634
|
throw new TypeError("one original v2 manifest backend is required");
|
|
@@ -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 { captureEvolutionLedgerV2JournalManifestDirectoryBoundaries } from "./evolution-ledger-v2-journal.js";
|
|
4
5
|
import { captureRrsiRegistryStorePolicy } from "./rrsi-registry-store-policy.js";
|
|
5
6
|
import {
|
|
6
7
|
captureEvolutionLedgerFileBackend,
|
|
@@ -605,7 +606,9 @@ export function createRrsiObservedTextIndex(input) {
|
|
|
605
606
|
)
|
|
606
607
|
hold("preparation declaration reference differs");
|
|
607
608
|
}
|
|
608
|
-
function load() {
|
|
609
|
+
function load(manifestBoundaries = null) {
|
|
610
|
+
manifestBoundaries?.catalog.recheck();
|
|
611
|
+
manifestBoundaries?.head.recheck();
|
|
609
612
|
sourceJournalBoundary.recheck();
|
|
610
613
|
artifactBoundary.recheck();
|
|
611
614
|
const before = head(methods.verify());
|
|
@@ -694,6 +697,8 @@ export function createRrsiObservedTextIndex(input) {
|
|
|
694
697
|
hold("text index journal changed during authenticated readback");
|
|
695
698
|
artifactBoundary.recheck();
|
|
696
699
|
sourceJournalBoundary.recheck();
|
|
700
|
+
manifestBoundaries?.head.recheck();
|
|
701
|
+
manifestBoundaries?.catalog.recheck();
|
|
697
702
|
return { head: before, events, records, entries, operations };
|
|
698
703
|
}
|
|
699
704
|
function historyPrefix(state, checkpoint) {
|
|
@@ -752,7 +757,15 @@ export function createRrsiObservedTextIndex(input) {
|
|
|
752
757
|
rrsiExact(request, ["checkpoints"], "observed history checkpoint request");
|
|
753
758
|
if (!Array.isArray(request.checkpoints) || request.checkpoints.length > 2)
|
|
754
759
|
hold("observed history requires at most two checkpoints");
|
|
755
|
-
const
|
|
760
|
+
const manifestBoundaries =
|
|
761
|
+
captureEvolutionLedgerV2JournalManifestDirectoryBoundaries(ledger);
|
|
762
|
+
const manifestDirectoryBoundaryDigest = manifestBoundaries
|
|
763
|
+
? rrsiHash("chainlesschain.rrsi-manifest-directory-boundaries/v1", {
|
|
764
|
+
catalog: manifestBoundaries.catalog.descriptor,
|
|
765
|
+
head: manifestBoundaries.head.descriptor,
|
|
766
|
+
})
|
|
767
|
+
: null;
|
|
768
|
+
const state = load(manifestBoundaries);
|
|
756
769
|
// Anchor v1 cannot represent the genuine null digest at sequence zero.
|
|
757
770
|
// Fresh v2 migration events are included in this nonempty event prefix.
|
|
758
771
|
const current = historyPrefix(state, state.head);
|
|
@@ -792,6 +805,11 @@ export function createRrsiObservedTextIndex(input) {
|
|
|
792
805
|
sourceJournalDirectoryBoundaryDigest,
|
|
793
806
|
sourceJournalDirectoryBoundaryRechecked: true,
|
|
794
807
|
sourceJournalBoundaryScope: "source-journal-four-directories",
|
|
808
|
+
manifestDirectoryBoundaryDigest,
|
|
809
|
+
manifestDirectoryBoundaryRechecked: manifestBoundaries !== null,
|
|
810
|
+
manifestBoundaryScope: manifestBoundaries
|
|
811
|
+
? "original-catalog-and-head-directories"
|
|
812
|
+
: null,
|
|
795
813
|
fullPhysicalStorageGraphVerified: false,
|
|
796
814
|
tenantWideIndexAuthorityVerified: false,
|
|
797
815
|
generationProvenanceVerified: false,
|
|
@@ -801,12 +819,16 @@ export function createRrsiObservedTextIndex(input) {
|
|
|
801
819
|
);
|
|
802
820
|
const recheck = () =>
|
|
803
821
|
guarded(() => {
|
|
822
|
+
manifestBoundaries?.catalog.recheck();
|
|
823
|
+
manifestBoundaries?.head.recheck();
|
|
804
824
|
sourceJournalBoundary.recheck();
|
|
805
825
|
artifactBoundary.recheck();
|
|
806
826
|
if (!same(state.head, head(methods.verify())))
|
|
807
827
|
hold("observed history head changed after prefix capture");
|
|
808
828
|
artifactBoundary.recheck();
|
|
809
829
|
sourceJournalBoundary.recheck();
|
|
830
|
+
manifestBoundaries?.head.recheck();
|
|
831
|
+
manifestBoundaries?.catalog.recheck();
|
|
810
832
|
return true;
|
|
811
833
|
});
|
|
812
834
|
recheck();
|
|
@@ -137,6 +137,11 @@ export function verifyRrsiTenantIndexAnchorHistory(input) {
|
|
|
137
137
|
snapshot.sourceJournalDirectoryBoundaryDigest,
|
|
138
138
|
sourceJournalDirectoryBoundaryRechecked: true,
|
|
139
139
|
sourceJournalBoundaryScope: "source-journal-four-directories",
|
|
140
|
+
manifestDirectoryBoundaryDigest:
|
|
141
|
+
snapshot.manifestDirectoryBoundaryDigest,
|
|
142
|
+
manifestDirectoryBoundaryRechecked:
|
|
143
|
+
snapshot.manifestDirectoryBoundaryRechecked,
|
|
144
|
+
manifestBoundaryScope: snapshot.manifestBoundaryScope,
|
|
140
145
|
previous: snapshot.prefixes[0],
|
|
141
146
|
current: snapshot.current,
|
|
142
147
|
signaturesVerifiedRelativeToExplicitKey: true,
|