@mindexed/cfact 1.1.11 → 1.1.14

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.
Files changed (2) hide show
  1. package/bin/cfact.js +126 -3
  2. package/package.json +77 -8
package/bin/cfact.js CHANGED
@@ -279,9 +279,8 @@ Usage:
279
279
  npx @mindexed/cfact init [consumer-path] [--version <v>] [options]
280
280
  npx @mindexed/cfact update [consumer-path] [--version <v>] [options]
281
281
 
282
- Also resolvable as @mindexed/claude-factory (the deprecated legacy name) --
283
- frozen at its last published version as of ADR-0287 and never updated again;
284
- install @mindexed/cfact for anything published from here on.
282
+ (The legacy name @mindexed/claude-factory is deleted, ADR-0486 -- install
283
+ @mindexed/cfact instead; it is no longer resolvable at all.)
285
284
 
286
285
  Materialises .claude/engine as REAL FILES at a pinned version (never a clone or
287
286
  symlink of the private repo), then wires the consumer (pointer-symlinks, the
@@ -403,6 +402,119 @@ function writePin(consumerRoot, pin) {
403
402
  info(`✅ pinned engine version ${pin.version} in .claude/engine.pin.json`);
404
403
  }
405
404
 
405
+ // --- store protocol map (CHG-560/ADR-0594) -----------------------------------
406
+ // The pin records the store protocol version of the engine it installed, read from that engine's own docs/cfact/store-protocol.json,
407
+ // so a consumer (or the app) can ask what a vendored engine speaks without opening the tree. FAIL SOFT: an unreadable or malformed
408
+ // engine file omits the key and prints one notice. The map is an observation of THIS install: when the installed engine publishes
409
+ // nothing readable, the pin records NO protocols (it never carries an earlier engine's number forward, since that would claim a
410
+ // version the installed engine never published). Not a persisted flag.
411
+ function readEngineProtocols(enginePath) {
412
+ try {
413
+ const doc = JSON.parse(fs.readFileSync(path.join(enginePath, 'docs', 'cfact', 'store-protocol.json'), 'utf8'));
414
+ if (doc && doc.schema === 'store-protocol/1' && Number.isInteger(doc.store) && doc.store >= 1 && doc.store <= Number.MAX_SAFE_INTEGER) {
415
+ return { store: doc.store };
416
+ }
417
+ } catch (_) { /* fall through */ }
418
+ return null;
419
+ }
420
+
421
+ function resolveProtocols(enginePath, pin) { // eslint-disable-line no-unused-vars
422
+ const read = readEngineProtocols(enginePath);
423
+ if (read) return { protocols: read, notice: null };
424
+ const notice = 'ℹ️ the installed engine publishes no readable docs/cfact/store-protocol.json; the pin records no protocols.';
425
+ return { protocols: null, notice };
426
+ }
427
+
428
+ // --- pin `requires` block (CHG-543/ADR-0595) ---------------------------------
429
+ // An OPTIONAL maintainer-authored block: { engine: {min, max?}, tresia: {min, max?} }, the bound shape of hooks/tresia-manifest-lib.js.
430
+ // engine: compared on the INTEGER MAJOR of the staged engine's matrix.json version (a release id is `<matrix>.<N>`, never an integer).
431
+ // tresia: compared on the installed CLI's published `tresia.stateContractVersion`.
432
+ // THREE states, never two (ADR-0174): compatible proceeds; incompatible REFUSES before the engine is swapped, naming the remedy;
433
+ // cannot-evaluate (no CLI, unreadable manifest, no lib in the staged engine, unreadable matrix) proceeds with ONE notice, never a guessed
434
+ // pass. A pin without `requires` behaves exactly as before; an existing block is carried forward by a bare update.
435
+ // The bound reader is the STAGED engine's own hooks/tresia-manifest-lib.js, because the published installer ships bin/ only.
436
+ // The CLI's npm package name, from packages/tresia-cli/package.template.json in the Tresia repository.
437
+ const TRESIA_CLI_PACKAGE = '@mindexed/tresia';
438
+
439
+ function resolveRequires(pin) {
440
+ const r = pin && pin.requires;
441
+ return r && typeof r === 'object' && !Array.isArray(r) ? r : null;
442
+ }
443
+
444
+ function loadManifestLib(engineDir) {
445
+ try { return require(path.join(engineDir, 'hooks', 'tresia-manifest-lib.js')); } catch (_) { return null; }
446
+ }
447
+
448
+ /** Pure-ish: returns { state, problems[], cannot[] } . `lib` is the manifest lib (or null). */
449
+ function evaluateRequires({ requires, lib, matrixVersion, consumerRoot }) {
450
+ const out = { state: 'compatible', problems: [], cannot: [] };
451
+ if (!requires) return out;
452
+ const known = Object.keys(requires).filter((k) => k !== 'engine' && k !== 'tresia');
453
+ if (!lib) { out.cannot.push('the staged engine has no hooks/tresia-manifest-lib.js to read the bounds with'); }
454
+ else {
455
+ for (const k of ['engine', 'tresia']) {
456
+ if (!Object.prototype.hasOwnProperty.call(requires, k)) continue;
457
+ const p = lib.boundProblem(requires[k], `requires.${k}`);
458
+ if (p) out.cannot.push(`the pin's ${p}`);
459
+ }
460
+ if (known.length) out.cannot.push(`the pin's requires has unknown key ${JSON.stringify(known[0])}`);
461
+ }
462
+ if (out.cannot.length) { out.state = 'cannot-evaluate'; return out; }
463
+ if (requires.engine) {
464
+ const major = /^\d+(\.|$)/.test(String(matrixVersion || '')) ? parseInt(String(matrixVersion), 10) : null;
465
+ if (major === null) out.cannot.push('the staged engine has no readable matrix version to compare requires.engine against');
466
+ else if (lib.outside(major, requires.engine)) {
467
+ out.problems.push({
468
+ what: 'engine', range: lib.fmt(requires.engine), found: `matrix major ${major} (matrix ${matrixVersion})`,
469
+ fix: `install an engine release whose matrix major is ${lib.fmt(requires.engine)}: npx @mindexed/cfact update --version <release>` +
470
+ ' (or correct requires.engine in .claude/engine.pin.json)',
471
+ });
472
+ }
473
+ }
474
+ if (requires.tresia) {
475
+ // CHG-569: walk UP from the consumer root (a hoisted or workspace install keeps node_modules in a parent); first hit wins.
476
+ let m = { error: 'not found' };
477
+ for (let dir = path.resolve(consumerRoot); ;) {
478
+ const pkgFile = path.join(dir, 'node_modules', ...TRESIA_CLI_PACKAGE.split('/'), 'package.json');
479
+ if (fs.existsSync(pkgFile)) {
480
+ try { m = lib.extractManifest(JSON.parse(fs.readFileSync(pkgFile, 'utf8')), []); } catch (_) { m = { error: 'not readable' }; }
481
+ break;
482
+ }
483
+ const up = path.dirname(dir);
484
+ if (up === dir) break;
485
+ dir = up;
486
+ }
487
+ if (!m || m.error) out.cannot.push(`no readable tresia manifest at node_modules/${TRESIA_CLI_PACKAGE}/package.json in the consumer root or any parent directory (${m && m.error})`);
488
+ else if (lib.outside(m.stateContractVersion, requires.tresia)) {
489
+ out.problems.push({
490
+ what: 'tresia', range: lib.fmt(requires.tresia), found: `stateContractVersion ${m.stateContractVersion}`,
491
+ fix: `install a ${TRESIA_CLI_PACKAGE} CLI whose stateContractVersion is ${lib.fmt(requires.tresia)}: npm install ${TRESIA_CLI_PACKAGE}@<version>` +
492
+ ' (or correct requires.tresia in .claude/engine.pin.json)',
493
+ });
494
+ }
495
+ }
496
+ out.state = out.problems.length ? 'incompatible' : out.cannot.length ? 'cannot-evaluate' : 'compatible';
497
+ return out;
498
+ }
499
+
500
+ /** Enforce: die (non-zero) on incompatible, ONE notice on cannot-evaluate. Called BEFORE the staged engine is swapped in. */
501
+ function enforceRequires({ requires, stageDir, consumerRoot }) {
502
+ if (!requires) return null;
503
+ const ev = evaluateRequires({
504
+ requires, lib: loadManifestLib(stageDir), matrixVersion: engineMatrixVersion(stageDir), consumerRoot,
505
+ });
506
+ if (ev.state === 'incompatible') {
507
+ die(
508
+ 'the pin requires a compatibility range this install does not meet; nothing was changed.\n' +
509
+ ev.problems.map((p) => ` - ${p.what}: required ${p.range}, found ${p.found}\n fix: ${p.fix}`).join('\n')
510
+ );
511
+ }
512
+ if (ev.state === 'cannot-evaluate') {
513
+ info(`ℹ️ could not evaluate the pin's requires (${ev.cannot[0]}); proceeding without that check.`);
514
+ }
515
+ return ev;
516
+ }
517
+
406
518
  // --- wiring flags (ADR-0178) -------------------------------------------------
407
519
  // WHICH setup-local.sh flags survive a run, and — the half that decides the
408
520
  // whole design — which must NOT.
@@ -1810,6 +1922,7 @@ async function materialise(opts) {
1810
1922
  die('extracted tarball has no matrix.json at its root — it is not a valid engine tarball.');
1811
1923
  }
1812
1924
 
1925
+ enforceRequires({ requires: resolveRequires(pin), stageDir, consumerRoot });
1813
1926
  installStagedEngine({ enginePath, stageDir, tmpDir });
1814
1927
 
1815
1928
  // THE PIN RECORDS THE RELEASE THAT WAS FETCHED, NOT THE ENGINE'S MATRIX
@@ -1926,6 +2039,8 @@ async function materialise(opts) {
1926
2039
  // BEFORE writePin, because writePin rewrites the file wholesale and the pin's
1927
2040
  // own previous value is one of the inputs.
1928
2041
  const wiring = resolveWiringFlags(opts, pin, consumerRoot);
2042
+ const protoResolved = resolveProtocols(enginePath, pin);
2043
+ if (protoResolved.notice) info(protoResolved.notice);
1929
2044
  writePin(consumerRoot, {
1930
2045
  version: installedVersion,
1931
2046
  channel: offChannel ? source.via : explicitLabel || inheritedLabel || source.via,
@@ -1937,6 +2052,8 @@ async function materialise(opts) {
1937
2052
  // `channelUrl` follows, and what keeps this change additive for the majority
1938
2053
  // of consumers that pass no wiring flags at all.
1939
2054
  ...(wiring.length ? { wiring } : {}),
2055
+ ...(protoResolved.protocols ? { protocols: protoResolved.protocols } : {}),
2056
+ ...(resolveRequires(pin) ? { requires: resolveRequires(pin) } : {}),
1940
2057
  checksum: `sha256:${actual}`,
1941
2058
  resolution: 'vendored',
1942
2059
  // PROVENANCE — what produced this install, not what it installed (ADR-0184).
@@ -2094,6 +2211,12 @@ module.exports = {
2094
2211
  isDefaultRepo,
2095
2212
  PERSISTED_WIRING_FLAGS,
2096
2213
  resolveWiringFlags,
2214
+ readEngineProtocols,
2215
+ resolveProtocols,
2216
+ resolveRequires,
2217
+ evaluateRequires,
2218
+ enforceRequires,
2219
+ TRESIA_CLI_PACKAGE,
2097
2220
  normalizeBearer,
2098
2221
  malformedBearerReason,
2099
2222
  readDotenvValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindexed/cfact",
3
- "version": "1.1.11",
3
+ "version": "1.1.14",
4
4
  "description": "Clean Orthogonal Architecture Software Factory Framework",
5
5
  "bin": {
6
6
  "claude-factory": "bin/cfact.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/Mindexed/cfact/issues"
22
22
  },
23
23
  "engines": {
24
- "node": ">=18"
24
+ "node": "^24.15.0 || >=26.0.0"
25
25
  },
26
26
  "scripts": {
27
27
  "gate:matrix-sync": "node scripts/check-matrix-sync.js",
@@ -43,6 +43,7 @@
43
43
  "gate:adr-template-edges": "node scripts/check-adr-template-edges.js",
44
44
  "gate:installer-publish-drift": "node scripts/check-installer-publish-drift.js",
45
45
  "gate:private-names": "node scripts/check-private-names.js --cannot-evaluate-ok",
46
+ "gate:workflows": "node scripts/check-workflows.js",
46
47
  "gate:changelog": "node scripts/generate-changelog.js --check",
47
48
  "test:dc-generator": "node scripts/generate-dependency-cruiser-config.js --self-test",
48
49
  "test:substance-generator": "node scripts/generate-substance-eslint-config.js --self-test",
@@ -53,6 +54,7 @@
53
54
  "test:installer-wiring": "node scripts/test-installer-wiring.js",
54
55
  "test:tar-invocation": "node scripts/test-tar-invocation.js",
55
56
  "test:framework-agents-mcp": "node scripts/test-framework-agents-mcp.js",
57
+ "test:tresia-mcp-entry": "node scripts/test-tresia-mcp-entry.js",
56
58
  "test:controller-gates": "node scripts/test-controller-gates.js",
57
59
  "test:controller-single-file-attribution": "node scripts/test-controller-single-file-attribution.js",
58
60
  "test:parse-ast": "node skills/ast-parser/scripts/test-parse-ast.js",
@@ -60,12 +62,16 @@
60
62
  "test:secrets-two-stage": "node scripts/test-secrets-two-stage.js",
61
63
  "test:harmful-code": "node scripts/test-harmful-code-check.js",
62
64
  "test:migration-grants-check": "node scripts/test-migration-grants-check.js",
65
+ "test:migration-append-only-check": "node scripts/test-migration-append-only-check.js",
63
66
  "test:profile-paths": "node scripts/verify-profiles.js",
64
67
  "test:registry-gate": "node scripts/test-registry-gate.js",
65
68
  "test:capability-schema": "node scripts/test-capability-schema.js",
66
69
  "test:integrations-registry": "node scripts/test-integrations-registry.js",
67
70
  "test:claim-schema": "node scripts/test-claim-schema.js",
68
71
  "test:engine-health": "node scripts/test-engine-health.js",
72
+ "test:attestation": "node scripts/test-attestation.js",
73
+ "test:verify-attestation": "node scripts/test-verify-attestation.js",
74
+ "test:node-floor": "node scripts/test-node-floor.js",
69
75
  "test:session-binding-schema": "node scripts/test-session-binding-schema.js",
70
76
  "test:budget-schema": "node scripts/test-budget-schema.js",
71
77
  "test:runner-launch-schema": "node scripts/test-runner-launch-schema.js",
@@ -77,12 +83,12 @@
77
83
  "test:resolver-topology": "node scripts/test-resolver-topology.js",
78
84
  "test:graph-strip": "node scripts/test-graph-frontmatter-strip.js",
79
85
  "test:graph-registry": "node scripts/test-graph-registry.js",
86
+ "test:graph-adr-cannot-evaluate": "node scripts/test-graph-adr-cannot-evaluate.js",
80
87
  "test:graph-memory-substrate": "node scripts/test-graph-memory-substrate.js",
81
88
  "test:document-freshness": "node scripts/test-document-freshness.js",
82
89
  "test:frontmatter-readers": "node scripts/test-frontmatter-readers.js",
83
90
  "test:tarball-reproducible": "node scripts/test-tarball-reproducible.js",
84
91
  "test:release-version": "node scripts/test-release-version-lib.js",
85
- "test:consumer-checklist": "node scripts/test-consumer-checklist.js",
86
92
  "test:engine-host": "node scripts/test-engine-host.js",
87
93
  "test:zone-coverage": "node scripts/test-zone-coverage.js",
88
94
  "test:workflow-spine": "node scripts/test-workflow-spine.js",
@@ -93,6 +99,7 @@
93
99
  "test:artifact-timestamps": "node scripts/test-artifact-timestamps.js",
94
100
  "test:regen-writes-nothing": "node scripts/test-regen-writes-nothing.js",
95
101
  "test:map-fingerprint": "node scripts/test-map-fingerprint.js",
102
+ "test:derived-map-contract": "node scripts/test-derived-map-contract.js",
96
103
  "test:engine-write-lock": "node scripts/test-engine-write-lock.js",
97
104
  "test:engine-lock-wiring": "node scripts/test-engine-lock-wiring.js",
98
105
  "test:installer-publish-drift": "node scripts/test-installer-publish-drift.js",
@@ -105,6 +112,15 @@
105
112
  "test:relay-fallback": "node scripts/test-relay-fallback.js",
106
113
  "test:feature-record": "node scripts/test-feature-record.js",
107
114
  "test:feature-store": "node scripts/test-feature-store.js",
115
+ "test:feature-store-port": "node scripts/test-feature-store-port.js",
116
+ "test:approval-hash": "node scripts/test-approval-hash.js",
117
+ "test:write-contract": "node scripts/test-write-contract.js",
118
+ "test:id-floor-contract": "node scripts/test-id-floor-contract.js",
119
+ "test:feature-field-classes": "node scripts/test-feature-field-classes.js",
120
+ "test:bench-store-read": "node scripts/test-bench-store-read.js",
121
+ "test:feature-store-samples": "node scripts/test-feature-store-samples.js",
122
+ "test:sync-relay-quiet": "node scripts/test-sync-relay-quiet.js",
123
+ "test:sync-relay-cli": "node scripts/test-sync-relay-cli.js",
108
124
  "test:feature-record-v2": "node scripts/test-feature-record-v2.js",
109
125
  "test:feature-initial": "node scripts/test-feature-initial.js",
110
126
  "test:feature-v2-switch": "node scripts/test-feature-v2-switch.js",
@@ -121,6 +137,10 @@
121
137
  "test:audit-sot-brand-source": "node scripts/test-audit-sot-brand-source.js",
122
138
  "test:audit-sot-surfaces": "node scripts/test-audit-sot-surfaces.js",
123
139
  "test:audit-sot-tenancy-model": "node scripts/test-audit-sot-tenancy-model.js",
140
+ "test:audit-sot-completeness": "node scripts/test-audit-sot-completeness.js",
141
+ "test:audit-sot-placeholder": "node scripts/test-audit-sot-placeholder.js",
142
+ "test:sot-ladder": "node scripts/test-sot-ladder.js",
143
+ "test:sot-design-promotion": "node scripts/test-sot-design-promotion.js",
124
144
  "test:screen-binding": "node scripts/test-screen-binding.js",
125
145
  "test:flow-step-action": "node scripts/test-flow-step-action.js",
126
146
  "test:feature-history": "node scripts/test-feature-history.js",
@@ -141,10 +161,11 @@
141
161
  "test:generate-capability-map": "node scripts/test-generate-capability-map.js",
142
162
  "test:capability-catalogue-gate": "node scripts/test-capability-catalogue-gate.js",
143
163
  "publish:release": "node maintainer-hooks/publish-release.js",
144
- "gate:consistency": "npm run gate:matrix-sync && npm run gate:compliance && npm run gate:doc-links && npm run gate:command-metadata && npm run gate:tracked-symlinks && npm run gate:agents-md-sync && npm run gate:ripple-coverage && npm run gate:profile-docs && npm run gate:registry && npm run gate:rule-records && npm run gate:integrations && npm run gate:graph-coverage && npm run gate:adr-template-edges && npm run gate:installer-publish-drift && npm run gate:private-names",
164
+ "gate:consistency": "npm run gate:matrix-sync && npm run gate:compliance && npm run gate:doc-links && npm run gate:command-metadata && npm run gate:tracked-symlinks && npm run gate:agents-md-sync && npm run gate:ripple-coverage && npm run gate:profile-docs && npm run gate:registry && npm run gate:rule-records && npm run gate:integrations && npm run gate:graph-coverage && npm run gate:adr-template-edges && npm run gate:installer-publish-drift && npm run gate:private-names && npm run gate:workflows",
145
165
  "gate:boundaries": "bash hooks/check-matrix.sh domain && bash hooks/check-matrix.sh components && bash hooks/check-matrix.sh controllers && bash hooks/check-matrix.sh secrets",
146
166
  "ci": "npm run gate:consistency && npm run gate:boundaries && npm run gate:profile-coverage && npm run gate:document-freshness && npm test",
147
167
  "test:gate-three-state": "node scripts/test-gate-three-state.js",
168
+ "test:check-doc-links-vendored": "node scripts/test-check-doc-links-vendored.js",
148
169
  "test:refresh-compliance": "node scripts/test-refresh-compliance.js",
149
170
  "test:gate-coverage": "node scripts/test-gate-coverage.js",
150
171
  "test:policy-lib": "node scripts/test-policy-lib.js",
@@ -156,12 +177,15 @@
156
177
  "test:rule-record-core-check": "node scripts/test-rule-record-core-check.js",
157
178
  "test:external-standard-drift": "node scripts/test-external-standard-drift.js",
158
179
  "test:session-branch": "node scripts/test-session-branch.js",
180
+ "test:git-lock": "node scripts/test-git-lock.js",
159
181
  "test:consumer-docs-migration": "node scripts/test-consumer-docs-migration.js",
160
182
  "test:sot-templates-pointer": "node scripts/test-sot-templates-pointer.js",
161
- "test:npm-deprecation": "node scripts/test-npm-deprecation.js",
183
+ "test:sot-template-schemas": "node scripts/test-sot-template-schemas.js",
162
184
  "test:generate-erd": "node scripts/test-generate-erd.js",
163
185
  "test:surfaces-layerpaths": "node scripts/test-surfaces-layerpaths.js",
186
+ "test:electron-shell-zones": "node scripts/test-electron-shell-zones.js",
164
187
  "test:surfaces-hostmodules": "node scripts/test-surfaces-hostmodules.js",
188
+ "test:three-state-reads": "node scripts/test-three-state-reads.js",
165
189
  "test:list-feature-files": "node scripts/test-list-feature-files.js",
166
190
  "test:generate-project-analysis": "node scripts/test-generate-project-analysis.js",
167
191
  "test:generate-feature-card": "node scripts/test-generate-feature-card.js",
@@ -177,10 +201,11 @@
177
201
  "test:grants-definer-declaration": "node scripts/test-grants-definer-declaration.js",
178
202
  "test:default-ship-pipeline": "node scripts/test-default-ship-pipeline.js",
179
203
  "test:credential-slots": "node scripts/test-credential-slots.js",
180
- "test": "npm run test:dc-generator && npm run test:substance-generator && npm run test:json-flush && npm run test:installer-exit && npm run test:installer-channel && npm run test:installer-update-messaging && npm run test:installer-wiring && npm run test:tar-invocation && npm run test:framework-agents-mcp && npm run test:controller-gates && npm run test:controller-single-file-attribution && npm run test:parse-ast && npm run test:git-tree-sweep && npm run test:secrets-two-stage && npm run test:harmful-code && npm run test:migration-grants-check && npm run test:profile-paths && npm run test:registry-gate && npm run test:capability-schema && npm run test:integrations-registry && npm run test:claim-schema && npm run test:session-binding-schema && npm run test:budget-schema && npm run test:engine-health && npm run test:runner-launch-schema && npm run test:approval-vocabulary && npm run test:human-only-verbs && npm run test:rule-resolver && npm run test:adr-template-edges && npm run test:adr-path-constants && npm run test:resolver-topology && npm run test:graph-strip && npm run test:graph-registry && npm run test:graph-memory-substrate && npm run test:document-freshness && npm run test:frontmatter-readers && npm run test:tarball-reproducible && npm run test:release-version && npm run test:consumer-checklist && npm run test:engine-host && npm run test:zone-coverage && npm run test:workflow-spine && npm run test:architecture-size-gate && npm run test:size-gate-attribution && npm run test:command-shape && npm run test:change-record && npm run test:engine-write-lock && npm run test:engine-lock-wiring && npm run test:installer-publish-drift && npm run test:grants-authored && npm run test:test-capability && npm run test:installer-lifecycle && npm run test:outside-consumer-mcp-gate && npm run test:relay-fallback && npm run test:gate-three-state && npm run test:refresh-compliance && npm run test:gate-coverage && npm run test:policy-lib && npm run test:validate-zone-denylist-bypass && npm run test:validate-zone-ledger-score && npm run test:rules-carrier-schema && npm run test:rule-record-schema && npm run test:rule-record-concerns-check && npm run test:rule-record-core-check && npm run test:external-standard-drift && npm run test:session-branch && npm run test:installer-shadowing && npm run test:installer-latest && npm run test:feature-record && npm run test:feature-store && npm run test:feature-record-v2 && npm run test:feature-initial && npm run test:feature-v2-switch && npm run test:feature-completeness && npm run test:experience-context && npm run test:feature-scope-merge && npm run test:feature-mint-contract && npm run test:org-manifest && npm run test:org-manifest-denies && npm run test:intake-seed && npm run test:intake-seed-prefill && npm run test:design-brief-from-seed && npm run test:design-brief-regeneration && npm run test:audit-sot-brand-source && npm run test:audit-sot-surfaces && npm run test:audit-sot-tenancy-model && npm run test:screen-binding && npm run test:flow-step-action && npm run test:feature-history && npm run test:feature-rekey && npm run test:agent-note-dispatch && npm run test:subagent-reply-guard && npm run test:migrations-block && npm run test:stage-loop-next-action && npm run test:transition-phase-flags && npm run test:workflow-flag-allowlist && npm run test:check-record-text &&npm run test:consumer-docs-migration && npm run test:npm-deprecation && npm run test:sot-templates-pointer && npm run test:test-command-gate && npm run test:changelog-adr-refs && npm run test:generate-ci && npm run test:verification-targets && npm run test:known-frictions-staleness && npm run test:artifact-timestamps && npm run test:regen-writes-nothing && npm run test:map-fingerprint && npm run test:generate-flow-map && npm run test:generate-zone-map && npm run test:generate-infra-map && npm run test:generate-legal-map && npm run test:generate-erd && npm run test:surfaces-layerpaths && npm run test:surfaces-hostmodules && npm run test:list-feature-files && npm run test:feature-write-guard && npm run test:feature-write-lock && npm run test:trailer-lib && npm run test:ci-parity && npm run test:context-subject && npm run test:generate-project-analysis && npm run test:generate-feature-card && npm run test:zone-view && npm run test:generate-codex-agents && npm run test:generate-agent-cards && npm run test:generate-capability-map && npm run test:capability-catalogue-gate && npm run test:generate-framework-graph && npm run test:unrecorded-scope && npm run test:profile-reinstated-zones && npm run test:contract-claims && npm run test:plan-crosscheck && npm run test:consumer-alignment && npm run test:check-consumer-alignment && npm run test:design-levels && npm run test:pre-push-unit-ref && npm run test:pre-push-gate-reach && npm run test:git-identity-check && npm run test:mcp-server-name-constant && npm run test:design-audit && npm run test:grants-definer-declaration && npm run test:default-ship-pipeline && npm run test:credential-slots && npm run test:licence-holder && npm run test:engine-promotion-rungs-workflow && npm run test:engine-release-workflows && npm run test:split-acceptance && npm run test:private-names && npm run test:migrate-feature-records && npm run test:depends-on-enforcement && npm run test:integration-adapters && npm run test:sync-env-registry && npm run test:design-audit-gate && npm run test:candidate-flows && npm run test:mcp-auth-probe && npm run test:design-motion-audit && npm run test:design-screens && npm run test:feature-source-notes && npm run test:code-review-log-schema && npm run test:note-alignment && npm run test:design-motion-inputs && npm run test:requirement-promotion && npm run test:programme-note-admission && npm run test:ux-baseline && npm run test:note-promotion-gate && npm run test:proposal-acceptance-mint && npm run test:maintainer-screen-judge && npm run test:ux-qa-review-gate",
204
+ "test": "npm run test:dc-generator && npm run test:substance-generator && npm run test:json-flush && npm run test:installer-exit && npm run test:installer-channel && npm run test:installer-update-messaging && npm run test:installer-wiring && npm run test:tar-invocation && npm run test:framework-agents-mcp && npm run test:tresia-mcp-entry && npm run test:controller-gates && npm run test:controller-single-file-attribution && npm run test:parse-ast && npm run test:git-tree-sweep && npm run test:secrets-two-stage && npm run test:harmful-code && npm run test:migration-grants-check && npm run test:migration-append-only-check && npm run test:profile-paths && npm run test:registry-gate && npm run test:capability-schema && npm run test:integrations-registry && npm run test:claim-schema && npm run test:session-binding-schema && npm run test:budget-schema && npm run test:engine-health && npm run test:attestation && npm run test:verify-attestation && npm run test:node-floor && npm run test:runner-launch-schema && npm run test:approval-vocabulary && npm run test:human-only-verbs && npm run test:rule-resolver && npm run test:adr-template-edges && npm run test:adr-path-constants && npm run test:resolver-topology && npm run test:graph-strip && npm run test:graph-registry && npm run test:graph-adr-cannot-evaluate && npm run test:graph-memory-substrate && npm run test:document-freshness && npm run test:frontmatter-readers && npm run test:tarball-reproducible && npm run test:release-version && npm run test:engine-host && npm run test:zone-coverage && npm run test:workflow-spine && npm run test:architecture-size-gate && npm run test:size-gate-attribution && npm run test:command-shape && npm run test:change-record && npm run test:engine-write-lock && npm run test:engine-lock-wiring && npm run test:installer-publish-drift && npm run test:grants-authored && npm run test:test-capability && npm run test:installer-lifecycle && npm run test:outside-consumer-mcp-gate && npm run test:relay-fallback && npm run test:gate-three-state && npm run test:check-doc-links-vendored && npm run test:refresh-compliance && npm run test:gate-coverage && npm run test:policy-lib && npm run test:validate-zone-denylist-bypass && npm run test:validate-zone-ledger-score && npm run test:rules-carrier-schema && npm run test:rule-record-schema && npm run test:rule-record-concerns-check && npm run test:rule-record-core-check && npm run test:external-standard-drift && npm run test:session-branch && npm run test:installer-shadowing && npm run test:installer-latest && npm run test:feature-record && npm run test:feature-store && npm run test:feature-store-port && npm run test:approval-hash && npm run test:write-contract && npm run test:id-floor-contract && npm run test:feature-field-classes && npm run test:bench-store-read && npm run test:feature-store-samples && npm run test:sync-relay-quiet && npm run test:sync-relay-cli && npm run test:feature-record-v2 && npm run test:feature-initial && npm run test:feature-v2-switch && npm run test:fresh-project-mint-layout && npm run test:feature-completeness && npm run test:experience-context && npm run test:feature-scope-merge && npm run test:feature-mint-contract && npm run test:org-manifest && npm run test:org-manifest-denies && npm run test:intake-seed && npm run test:intake-seed-prefill && npm run test:design-brief-from-seed && npm run test:design-brief-regeneration && npm run test:audit-sot-brand-source && npm run test:audit-sot-surfaces && npm run test:audit-sot-tenancy-model && npm run test:audit-sot-completeness && npm run test:audit-sot-placeholder && npm run test:sot-ladder && npm run test:sot-design-promotion && npm run test:screen-binding && npm run test:flow-step-action && npm run test:feature-history && npm run test:feature-rekey && npm run test:agent-note-dispatch && npm run test:subagent-reply-guard && npm run test:migrations-block && npm run test:stage-loop-next-action && npm run test:transition-phase-flags && npm run test:workflow-flag-allowlist && npm run test:check-record-text &&npm run test:consumer-docs-migration && npm run test:sot-templates-pointer && npm run test:sot-template-schemas && npm run test:test-command-gate && npm run test:changelog-adr-refs && npm run test:generate-ci && npm run test:verification-targets && npm run test:known-frictions-staleness && npm run test:generate-known-frictions && npm run test:artifact-timestamps && npm run test:regen-writes-nothing && npm run test:map-fingerprint && npm run test:derived-map-contract && npm run test:generate-flow-map && npm run test:generate-zone-map && npm run test:generate-infra-map && npm run test:generate-legal-map && npm run test:generate-erd && npm run test:surfaces-layerpaths && npm run test:surfaces-hostmodules && npm run test:three-state-reads && npm run test:list-feature-files && npm run test:feature-write-guard && npm run test:feature-write-lock && npm run test:trailer-lib && npm run test:ci-parity && npm run test:context-subject && npm run test:generate-project-analysis && npm run test:generate-feature-card && npm run test:zone-view && npm run test:generate-codex-agents && npm run test:generate-agent-cards && npm run test:generate-capability-map && npm run test:capability-catalogue-gate && npm run test:generate-framework-graph && npm run test:unrecorded-scope && npm run test:profile-reinstated-zones && npm run test:contract-claims && npm run test:plan-crosscheck && npm run test:consumer-alignment && npm run test:check-consumer-alignment && npm run test:design-levels && npm run test:pre-push-unit-ref && npm run test:pre-push-gate-reach && npm run test:git-identity-check && npm run test:mcp-server-name-constant && npm run test:design-audit && npm run test:grants-definer-declaration && npm run test:default-ship-pipeline && npm run test:credential-slots && npm run test:licence-holder && npm run test:engine-promotion-rungs-workflow && npm run test:engine-release-workflows && npm run test:split-acceptance && npm run test:private-names && npm run test:migrate-feature-records && npm run test:depends-on-enforcement && npm run test:v2-depends-on && npm run test:record-artifacts-removal && npm run test:feature-queue && npm run test:design-approval-completeness && npm run test:approach-task-shape && npm run test:record-caps-all-at-once && npm run test:local-stack-probe && npm run test:machine-sessions && npm run test:integration-adapters && npm run test:sync-env-registry && npm run test:design-audit-gate && npm run test:candidate-flows && npm run test:design-motion-audit && npm run test:design-screens && npm run test:feature-source-notes && npm run test:code-review-log-schema && npm run test:note-alignment && npm run test:design-motion-inputs && npm run test:requirement-promotion && npm run test:programme-note-admission && npm run test:ux-baseline && npm run test:note-promotion-gate && npm run test:proposal-acceptance-mint && npm run test:maintainer-screen-judge && npm run test:ux-qa-review-gate && npm run test:ui-touch-import-only && npm run test:git-lock && npm run test:hook-blocking-exit-code && npm run test:depends-on-revision-form && npm run test:dependency-edit-keeps-approval && npm run test:add-subtopic && npm run test:zone-entry-merge && npm run test:revision-flag-agreement && npm run test:workflow-capabilities && npm run test:workflow-verb-state && npm run test:run-test-chain && npm run test:check-workflows && npm run test:subtopic-origin-narrowing && npm run test:record-artifacts-status-and-unit && npm run test:evidence-owed-and-no-change && npm run test:recorded-by-feat-qualified && npm run test:git-committed-claims-and-renames && npm run test:sot-amendment && npm run test:audit-sot-out-idempotent && npm run test:wiring-check && npm run test:escalation-dedupe && npm run test:failure-attribution && npm run test:record-note-retraction && npm run test:delegate-config-reader && npm run test:delegate-exemption && npm run test:org-provenance && npm run test:moved-tool-docs && npm run test:engine-release && npm run test:tresia-manifest && npm run test:pin-requires && npm run test:store-protocol && npm run test:feature-store-acyclic && npm run test:state-reader-slice && npm run test:agent-on-grant-guidance && npm run test:plan-commands-ask-first && npm run test:tracking-state-matches-prose && npm run test:electron-shell-zones",
181
205
  "test:test-command-gate": "node scripts/test-test-command-gate.js",
182
206
  "test:changelog-adr-refs": "node scripts/test-changelog-adr-refs.js",
183
207
  "test:known-frictions-staleness": "node scripts/test-known-frictions-staleness.js",
208
+ "test:generate-known-frictions": "node scripts/test-generate-known-frictions.js",
184
209
  "test:generate-flow-map": "node scripts/test-generate-flow-map.js",
185
210
  "test:generate-zone-map": "node scripts/test-generate-zone-map.js",
186
211
  "test:generate-infra-map": "node scripts/test-generate-infra-map.js",
@@ -198,13 +223,34 @@
198
223
  "test:engine-release-workflows": "node scripts/test-engine-release-workflows.js",
199
224
  "test:split-acceptance": "node scripts/test-split-acceptance.js",
200
225
  "test:private-names": "node scripts/test-private-names.js",
226
+ "test:check-workflows": "node scripts/test-check-workflows.js",
227
+ "test:subtopic-origin-narrowing": "node scripts/test-subtopic-origin-narrowing.js",
228
+ "test:record-artifacts-status-and-unit": "node scripts/test-record-artifacts-status-and-unit.js",
229
+ "test:evidence-owed-and-no-change": "node scripts/test-evidence-owed-and-no-change.js",
230
+ "test:recorded-by-feat-qualified": "node scripts/test-recorded-by-feat-qualified.js",
201
231
  "test:migrate-feature-records": "node scripts/test-migrate-feature-records.js",
202
232
  "test:depends-on-enforcement": "node scripts/test-depends-on-enforcement.js",
233
+ "test:v2-depends-on": "node scripts/test-v2-cross-feature-depends-on.js",
234
+ "test:record-artifacts-removal": "node scripts/test-record-artifacts-removal.js",
235
+ "test:feature-queue": "node scripts/test-feature-queue.js",
236
+ "test:design-approval-completeness": "node scripts/test-design-approval-completeness.js",
237
+ "test:approach-task-shape": "node scripts/test-approach-task-shape.js",
238
+ "test:record-caps-all-at-once": "node scripts/test-record-caps-all-at-once.js",
239
+ "test:depends-on-revision-form": "node scripts/test-depends-on-revision-form.js",
240
+ "test:dependency-edit-keeps-approval": "node scripts/test-dependency-edit-keeps-approval.js",
241
+ "test:add-subtopic": "node scripts/test-add-subtopic.js",
242
+ "test:zone-entry-merge": "node scripts/test-zone-entry-merge.js",
243
+ "test:revision-flag-agreement": "node scripts/test-revision-flag-agreement.js",
244
+ "test:workflow-capabilities": "node scripts/test-workflow-capabilities.js",
245
+ "test:workflow-verb-state": "node scripts/test-workflow-verb-state.js",
246
+ "test:run-test-chain": "node scripts/test-run-test-chain.js",
247
+ "run:test-chain": "node scripts/run-test-chain.js",
248
+ "test:local-stack-probe": "node scripts/test-local-stack-probe.js",
249
+ "test:machine-sessions": "node scripts/test-machine-sessions.js",
203
250
  "test:integration-adapters": "node scripts/test-integration-adapters.js",
204
251
  "test:sync-env-registry": "node scripts/test-sync-env-registry.js",
205
252
  "test:design-audit-gate": "node scripts/test-design-audit-gate.js",
206
253
  "test:candidate-flows": "node scripts/test-candidate-flows.js",
207
- "test:mcp-auth-probe": "node scripts/test-mcp-auth-probe.js",
208
254
  "test:design-motion-audit": "node scripts/test-design-motion-audit.js",
209
255
  "test:design-screens": "node scripts/test-design-screens.js",
210
256
  "test:feature-source-notes": "node scripts/test-feature-source-notes.js",
@@ -215,10 +261,33 @@
215
261
  "test:programme-note-admission": "node scripts/test-programme-note-admission.js",
216
262
  "test:ux-baseline": "node scripts/test-ux-baseline.js",
217
263
  "test:note-promotion-gate": "node scripts/test-note-promotion-gate.js",
264
+ "test:sot-amendment": "node scripts/test-sot-amendment.js",
265
+ "test:audit-sot-out-idempotent": "node scripts/test-audit-sot-out-idempotent.js",
266
+ "test:wiring-check": "node scripts/test-wiring-check.js",
267
+ "test:escalation-dedupe": "node scripts/test-escalation-dedupe.js",
268
+ "test:delegate-config-reader": "node scripts/test-delegate-config-reader.js",
269
+ "test:delegate-exemption": "node scripts/test-delegate-exemption.js",
270
+ "test:org-provenance": "node scripts/test-org-provenance.js",
271
+ "test:moved-tool-docs": "node scripts/test-moved-tool-docs.js",
272
+ "test:engine-release": "node scripts/test-engine-release.js",
273
+ "test:agent-on-grant-guidance": "node scripts/test-agent-on-grant-guidance.js",
274
+ "test:plan-commands-ask-first": "node scripts/test-plan-commands-ask-first.js",
275
+ "test:tracking-state-matches-prose": "node scripts/test-tracking-state-matches-prose.js",
276
+ "test:failure-attribution": "node scripts/test-failure-attribution.js",
277
+ "test:tresia-manifest": "node scripts/test-tresia-manifest.js",
278
+ "test:pin-requires": "node scripts/test-pin-requires.js",
279
+ "test:store-protocol": "node scripts/test-store-protocol.js",
280
+ "test:feature-store-acyclic": "node scripts/test-feature-store-acyclic.js",
281
+ "test:state-reader-slice": "node scripts/test-state-reader-slice.js",
282
+ "test:record-note-retraction": "node scripts/test-record-note-retraction.js",
218
283
  "test:proposal-acceptance-mint": "node scripts/test-proposal-acceptance-mint.js",
219
284
  "test:maintainer-screen-judge": "node scripts/test-maintainer-screen-judge.js",
220
285
  "test:ux-qa-review-gate": "node scripts/test-ux-qa-review-gate.js",
221
- "acceptance:split": "node scripts/split-acceptance.js"
286
+ "test:ui-touch-import-only": "node scripts/test-ui-touch-import-only.js",
287
+ "test:fresh-project-mint-layout": "node scripts/test-fresh-project-mint-layout.js",
288
+ "test:git-committed-claims-and-renames": "node scripts/test-git-committed-claims-and-renames.js",
289
+ "acceptance:split": "node scripts/split-acceptance.js",
290
+ "test:hook-blocking-exit-code": "node scripts/test-hook-blocking-exit-code.js"
222
291
  },
223
292
  "keywords": [],
224
293
  "author": "Jose Brenes",