chainlesschain 0.166.148 → 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 CHANGED
@@ -2,11 +2,17 @@
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.148 / IDE pairing candidate (2026-11-13)
5
+ ## CLI 0.166.149 / IDE pairing candidate (2026-11-13)
6
6
 
7
- This candidate carries the CLI-owned self-evolution capability status projection into deployment status and the paired IDE configuration surfaces. Publication remains gated on the exact CLI CI, Strict Sandbox, and OIDC workflow for this commit.
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
- CLI **0.166.148** is a release candidate; install it only after the exact tag workflow publishes it. The paired candidates are VS Code **0.37.187** and JetBrains **0.4.202**.
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
+
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.
10
16
 
11
17
  ## Public CLI 0.166.147 / IDE pairing (2026-11-12)
12
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chainlesschain",
3
- "version": "0.166.148",
3
+ "version": "0.166.149",
4
4
  "description": "CLI for ChainlessChain - install, configure, and manage your personal AI management system",
5
5
  "type": "module",
6
6
  "bin": {
@@ -6,5 +6,5 @@
6
6
  "imageDigest": "sha256:6395a47a5bd9b038303e94a5e93754258c8480dab64635460f973eb93dc6f4d8",
7
7
  "bytes": 778808,
8
8
  "linkage": "static",
9
- "commit": "146b3fbd438eece981aa14327d9481156683acd4"
9
+ "commit": "168a3d561b5a16e9d27b060944c63b2264c99df0"
10
10
  }
@@ -6,5 +6,5 @@
6
6
  "imageDigest": "sha256:f162e55ad3f3f72f8a52e9d7f12b5b8db44506c2ca66a14d7d62d5cd4f12498e",
7
7
  "bytes": 934160,
8
8
  "linkage": "static",
9
- "commit": "146b3fbd438eece981aa14327d9481156683acd4"
9
+ "commit": "168a3d561b5a16e9d27b060944c63b2264c99df0"
10
10
  }
@@ -1,6 +1,19 @@
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
+ },
4
17
  {
5
18
  "productVersion": null,
6
19
  "cliVersion": "0.166.148",
@@ -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 { captureEvolutionLedgerFileManifestCatalogDirectoryBoundary } from "./evolution-ledger-file-manifest-catalog.js";
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 { captureEvolutionLedgerFileManifestHeadPortsDirectoryBoundary } from "./evolution-ledger-file-manifest-head-store.js";
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 { captureEvolutionLedgerV2ManifestBackend } from "./evolution-ledger-v2-manifest-backend.js";
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 state = load();
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,