@sema-agent/core 7.68.3 → 7.68.4

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 (35) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/core/engine-notice.d.ts +5 -0
  3. package/dist/core/governance-codes.d.ts +3 -1
  4. package/dist/core/governance-codes.js +3 -0
  5. package/dist/core/mods/message-display.d.ts +3 -0
  6. package/dist/core/mods/message-display.js +2 -2
  7. package/dist/core/process-identity.d.ts +14 -2
  8. package/dist/core/process-identity.js +5 -3
  9. package/dist/core/runner/caller-stop-gate.d.ts +3 -3
  10. package/dist/core/runner/contracts.d.ts +2 -2
  11. package/dist/core/runner/end-of-run.d.ts +29 -0
  12. package/dist/core/runner/end-of-run.js +22 -0
  13. package/dist/core/runner/prepare-task.d.ts +4 -1
  14. package/dist/core/runner/prepare-task.js +3 -3
  15. package/dist/core/runner/run-notification-lane.d.ts +2 -0
  16. package/dist/core/runner/run-notification-lane.js +2 -2
  17. package/dist/core/runner/runtask.js +7 -2
  18. package/dist/core/task-spec.d.ts +2 -0
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/stores/file/data-root-declaration.d.ts +32 -0
  22. package/dist/stores/file/data-root-declaration.js +19 -0
  23. package/dist/stores/file/fs-atomic.d.ts +22 -2
  24. package/dist/stores/file/fs-atomic.js +63 -10
  25. package/dist/stores/file/index.d.ts +1 -0
  26. package/dist/stores/file/index.js +1 -0
  27. package/dist/stores/file/permission-rule-adopt.js +3 -3
  28. package/dist/stores/file/permission-rule-store.js +2 -2
  29. package/package.json +3 -2
  30. package/test/export-surface.snapshot.json +5 -1
  31. package/wire-changes/core-stores-sql@7.68.4.json +39 -0
  32. package/wire-changes/core@7.68.4.json +187 -0
  33. package/wire-changes/mods-kernel@7.68.4.json +39 -0
  34. package/wire-changes/primitives@7.68.4.json +39 -0
  35. package/wire-changes/wiki-gate@7.68.4.json +39 -0
@@ -1,7 +1,7 @@
1
1
  import { appendFileSync, closeSync, existsSync, fstatSync, ftruncateSync, linkSync, mkdirSync, openSync, readFileSync, readSync, renameSync, statSync, truncateSync, unlinkSync, writeFileSync, writeSync, fsyncSync, } from "node:fs";
2
2
  import { constants as bufferConstants } from "node:buffer";
3
3
  import { homedir } from "node:os";
4
- import { basename, dirname, join, resolve as resolvePath } from "node:path";
4
+ import { basename, dirname, join, resolve as resolvePath, sep } from "node:path";
5
5
  import { createHash } from "node:crypto";
6
6
  import { openExclusiveTemp, PRIVATE_FILE_MODE } from "../../core/exclusive-temp.js";
7
7
  import { physicalPathOf, physicalPathOfExisting } from "../../core/physical-path.js";
@@ -433,20 +433,61 @@ export class FileStoreLockError extends Error {
433
433
  lockPath;
434
434
  ownerPid;
435
435
  ownerUncheckable;
436
+ ownerFingerprintUnread;
436
437
  name = "FileStoreLockError";
437
- constructor(code, message, lockPath, ownerPid, ownerUncheckable) {
438
+ constructor(code, message, lockPath, ownerPid, ownerUncheckable, ownerFingerprintUnread) {
438
439
  super(message);
439
440
  this.code = code;
440
441
  this.lockPath = lockPath;
441
442
  this.ownerPid = ownerPid;
442
443
  this.ownerUncheckable = ownerUncheckable;
444
+ this.ownerFingerprintUnread = ownerFingerprintUnread;
443
445
  }
444
446
  }
447
+ export function rewordedLockRefusal(err, message, lockPath) {
448
+ return new FileStoreLockError(err.code, message, lockPath, err.ownerPid, err.ownerUncheckable, err.ownerFingerprintUnread);
449
+ }
450
+ function declarationSupplies(why, fingerprintUnread) {
451
+ return why === "pid_namespace_unrecorded" && fingerprintUnread !== true;
452
+ }
445
453
  export function uncheckableOwnerClause(err) {
446
454
  if (err.ownerUncheckable === undefined)
447
455
  return undefined;
448
456
  return (`its owner${err.ownerPid !== undefined ? ` (pid ${err.ownerPid})` : ""} cannot be checked from here — ` +
449
- `${uncheckableProcessText(err.ownerUncheckable)} — so it may still be running; if no process uses it, remove ${err.lockPath}`);
457
+ `${uncheckableProcessText(err.ownerUncheckable)} — so it may still be running; if no process uses it, remove ${err.lockPath}` +
458
+ (declarationSupplies(err.ownerUncheckable, err.ownerFingerprintUnread)
459
+ ? `, or, if every process that opens this data root runs in this one process table (no other container or host mounts it), ` +
460
+ `declare that with declareDataRoot(<data root>, { singleProcessTable: true }) and such a lock is judged by its pid`
461
+ : ""));
462
+ }
463
+ const singleProcessTableRoots = new Set();
464
+ export function holdSingleProcessTableRoot(physicalRoot) {
465
+ singleProcessTableRoots.add(physicalRoot);
466
+ }
467
+ function singleProcessTableRootOf(lockPath) {
468
+ if (singleProcessTableRoots.size === 0)
469
+ return undefined;
470
+ let dir;
471
+ try {
472
+ dir = physicalPathOf(dirnameOf(lockPath));
473
+ }
474
+ catch {
475
+ return undefined;
476
+ }
477
+ for (const root of singleProcessTableRoots) {
478
+ if (dir === root || dir.startsWith(root.endsWith(sep) ? root : `${root}${sep}`))
479
+ return root;
480
+ }
481
+ return undefined;
482
+ }
483
+ function announceReclaimOnDeclaration(lockPath, pid, root) {
484
+ deliverEngineNotice(undefined, {
485
+ code: "store.lock_reclaimed_on_declaration",
486
+ message: `[sema] file store: removed the lock ${lockPath} left by pid ${pid} — its record names no pid namespace, and it was judged in ` +
487
+ `this process table because the host declared that every process opening the data root ${root} runs in it ` +
488
+ `(declareDataRoot, singleProcessTable); the process it names is gone from this table.`,
489
+ detail: { path: lockPath, pid, root },
490
+ });
450
491
  }
451
492
  const MAX_RECLAIM_DEPTH = 8;
452
493
  const MAX_ACQUIRE_ATTEMPTS = 4;
@@ -467,7 +508,7 @@ function parseLockRecord(raw) {
467
508
  if (/^[1-9][0-9]*$/.test(raw)) {
468
509
  const barePid = Number.parseInt(raw, 10);
469
510
  return Number.isSafeInteger(barePid) && barePid > 0
470
- ? { pid: barePid, startedAtMs: null, startedSinceBootMs: null, host: null, pidNs: null }
511
+ ? { pid: barePid, startedAtMs: null, startedSinceBootMs: null, host: null, pidNs: null, fingerprintUnread: false }
471
512
  : null;
472
513
  }
473
514
  if (!raw.startsWith("{"))
@@ -492,6 +533,7 @@ function parseLockRecord(raw) {
492
533
  startedSinceBootMs: measure(rec.startedSinceBootMs),
493
534
  host: known && typeof rec.host === "string" && rec.host !== "" ? rec.host : null,
494
535
  pidNs: known && typeof rec.pidNs === "string" && rec.pidNs !== "" ? rec.pidNs : null,
536
+ fingerprintUnread: !known,
495
537
  };
496
538
  }
497
539
  function readLockRecord(lockPath) {
@@ -510,7 +552,8 @@ function sameOwner(a, b) {
510
552
  a.startedAtMs === b.startedAtMs &&
511
553
  a.startedSinceBootMs === b.startedSinceBootMs &&
512
554
  a.host === b.host &&
513
- a.pidNs === b.pidNs);
555
+ a.pidNs === b.pidNs &&
556
+ a.fingerprintUnread === b.fingerprintUnread);
514
557
  }
515
558
  export class BootLock {
516
559
  lockPath;
@@ -544,13 +587,19 @@ export class BootLock {
544
587
  this.pruneOwnAbandoned();
545
588
  return;
546
589
  }
547
- const verdict = processCensus().verdict(owner);
590
+ let verdict = processCensus().verdict(owner);
591
+ const declaredRoot = verdict.state === "uncheckable" && declarationSupplies(verdict.why, owner.fingerprintUnread)
592
+ ? singleProcessTableRootOf(this.lockPath)
593
+ : undefined;
594
+ if (declaredRoot !== undefined)
595
+ verdict = processCensus({ singleProcessTable: true }).verdict(owner);
548
596
  if (verdict.state === "running") {
549
597
  throw new FileStoreLockError("store.dir_in_use", `file store: another instance (pid ${owner.pid}) owns this data dir (${dirnameOf(this.lockPath)})`, this.lockPath, owner.pid);
550
598
  }
551
599
  if (verdict.state === "uncheckable") {
552
- const clause = uncheckableOwnerClause({ lockPath: this.lockPath, ownerPid: owner.pid, ownerUncheckable: verdict.why });
553
- throw new FileStoreLockError("store.dir_in_use", `file store: the lock on this data dir (${dirnameOf(this.lockPath)}): ${clause}`, this.lockPath, owner.pid, verdict.why);
600
+ const unread = owner.fingerprintUnread ? true : undefined;
601
+ const clause = uncheckableOwnerClause({ lockPath: this.lockPath, ownerPid: owner.pid, ownerUncheckable: verdict.why, ownerFingerprintUnread: unread });
602
+ throw new FileStoreLockError("store.dir_in_use", `file store: the lock on this data dir (${dirnameOf(this.lockPath)}): ${clause}`, this.lockPath, owner.pid, verdict.why, unread);
554
603
  }
555
604
  if (depth >= MAX_RECLAIM_DEPTH) {
556
605
  throw new FileStoreLockError("store.lock_unreadable", `file store: lock file at ${this.lockPath} is buried under ${depth} nested stale reclaim gates ` +
@@ -573,11 +622,15 @@ export class BootLock {
573
622
  try {
574
623
  const under = this.inspectLock();
575
624
  if (under.state === "owner" && sameOwner(under, owner)) {
625
+ let removed = false;
576
626
  try {
577
627
  unlinkSync(this.lockPath);
628
+ removed = true;
578
629
  }
579
630
  catch {
580
631
  }
632
+ if (removed && declaredRoot !== undefined)
633
+ announceReclaimOnDeclaration(this.lockPath, owner.pid, declaredRoot);
581
634
  }
582
635
  else if (under.state !== "absent") {
583
636
  continue;
@@ -724,7 +777,7 @@ export function acquireStoreDirLock(dir, opts) {
724
777
  const single = `This backend is SINGLE-WRITER per directory: a second process replays a private view (both sides can ` +
725
778
  `win a once-only decision) and its next compaction erases the records it never loaded.`;
726
779
  const unchecked = uncheckableOwnerClause(err);
727
- throw new FileStoreLockError(err.code, unchecked !== undefined
780
+ throw rewordedLockRefusal(err, unchecked !== undefined
728
781
  ?
729
782
  `file store: the ${opts.label} directory (${dir}) is locked and ${unchecked}. ${single}`
730
783
  : err.code === "store.lock_unreadable"
@@ -737,7 +790,7 @@ export function acquireStoreDirLock(dir, opts) {
737
790
  `process finishes and owns the directory, or it dies and the next start reclaims it.`
738
791
  : `file store: another OS process${who} is using the ${opts.label} directory (${dir}). ${single} Stop the ` +
739
792
  `other process, point this one at a different data root, or use the pg/tidb backend for real ` +
740
- `multi-process concurrency.`, err.code === "store.lock_unreadable" || unchecked !== undefined ? err.lockPath : lockPath, err.ownerPid, err.ownerUncheckable);
793
+ `multi-process concurrency.`, err.code === "store.lock_unreadable" || unchecked !== undefined ? err.lockPath : lockPath);
741
794
  }
742
795
  throw err;
743
796
  }
@@ -27,6 +27,7 @@ export { resolveDataRoot, sanitizeScope, sanitizePathComponent } from "./fs-atom
27
27
  export { FileStoreLockError, type FileStoreLockErrorCode } from "./fs-atomic.js";
28
28
  export { atomicWriteFile, writeThenLink, ensureDir, readJsonlRecords, AppendLog } from "./fs-atomic.js";
29
29
  export { processFingerprint, isProcessLive, type ProcessFingerprint } from "./fs-atomic.js";
30
+ export { declareDataRoot, type DataRootDeclaration } from "./data-root-declaration.js";
30
31
  export { AdoptionError, assertAdoptionBootGate, readRootAdoptionFile, writeRootAdoptionFile, ROOT_ADOPTION_FILE, type AdoptionErrorCode, type AdoptionReport, type AdoptionReceipt, type AdoptionLegReport, type AffectedDeploymentConfig, type RootAdoptionFile, } from "./adoption/marker.js";
31
32
  export { adoptLocalDataRoot, ackAdoptionConfig, witnessAdoptionConfig, listAdoptionQuarantine, readAdoptionStatus, type AdoptionStatus, type AdoptLocalDataRootOptions, type AdoptLocalDataRootResult, type AdoptionCarriageLeg, type AdoptionCarriageLegContext, type AdoptionConfigWitnessReceipt, } from "./adoption/adopt.js";
32
33
  /**
@@ -35,6 +35,7 @@ export { resolveDataRoot, sanitizeScope, sanitizePathComponent } from "./fs-atom
35
35
  export { FileStoreLockError } from "./fs-atomic.js";
36
36
  export { atomicWriteFile, writeThenLink, ensureDir, readJsonlRecords, AppendLog } from "./fs-atomic.js";
37
37
  export { processFingerprint, isProcessLive } from "./fs-atomic.js";
38
+ export { declareDataRoot } from "./data-root-declaration.js";
38
39
  export { AdoptionError, assertAdoptionBootGate, readRootAdoptionFile, writeRootAdoptionFile, ROOT_ADOPTION_FILE, } from "./adoption/marker.js";
39
40
  export { adoptLocalDataRoot, ackAdoptionConfig, witnessAdoptionConfig, listAdoptionQuarantine, readAdoptionStatus, } from "./adoption/adopt.js";
40
41
  const FILE_STORAGE_BACKEND_OPTION_KEYS = optionKeys()({ root: 0, evict: 0, checkpoint: 0, retention: 0, fileHistory: 0, sessionPolicy: 0, onCorruptRead: 0, sessions: 0, admit: 0 });
@@ -7,7 +7,7 @@ import { createPermissionRuleStoreProvider } from "../../core/permission-rule-pr
7
7
  import { syncPermissionRules } from "../../core/permission-rule-sync.js";
8
8
  import { thrownText } from "../../core/thrown-value.js";
9
9
  import { optionKeys, receiveMembers } from "../../core/own-property-receipt.js";
10
- import { FileStoreLockError, uncheckableOwnerClause } from "./fs-atomic.js";
10
+ import { FileStoreLockError, rewordedLockRefusal, uncheckableOwnerClause } from "./fs-atomic.js";
11
11
  import { FileDurableRulePartitionProvider, LOCAL_OWNER_FILE, principalRuleFileName, readRuleAdoptionFile, writeRuleAdoptionFile, } from "./permission-rule-store.js";
12
12
  const ADOPT_OPTION_KEYS = optionKeys()({ dir: 0, from: 0, toPrincipal: 0, transport: 0, now: 0, onError: 0 });
13
13
  export async function adoptFilePermissionRuleStore(opts) {
@@ -48,9 +48,9 @@ export async function adoptFilePermissionRuleStore(opts) {
48
48
  if (!(err instanceof FileStoreLockError))
49
49
  throw err;
50
50
  const unchecked = uncheckableOwnerClause(err);
51
- throw new FileStoreLockError(err.code, unchecked !== undefined
51
+ throw rewordedLockRefusal(err, unchecked !== undefined
52
52
  ? `the permission-rule writer lock ${err.lockPath} refuses the adoption (${err.code}): ${unchecked}, then run the adoption again`
53
- : `the permission-rule writer lock ${err.lockPath} refuses the adoption (${err.code}${err.ownerPid !== undefined ? `, held by pid ${err.ownerPid}` : ""}) — stop the live writer, then run the adoption again`, err.lockPath, err.ownerPid, err.ownerUncheckable);
53
+ : `the permission-rule writer lock ${err.lockPath} refuses the adoption (${err.code}${err.ownerPid !== undefined ? `, held by pid ${err.ownerPid}` : ""}) — stop the live writer, then run the adoption again`, err.lockPath);
54
54
  }
55
55
  if (lockProbe === undefined)
56
56
  throw new Error("the target store refused a write face");
@@ -9,7 +9,7 @@ import { PERMISSION_RULES_DAMAGED_BUCKET_CODE, PERMISSION_RULES_LATER_GRAMMAR_CO
9
9
  import { sameOrgPolicyContent } from "../../core/permission-rule-org.js";
10
10
  import { SESSION_RULES_GRAMMAR, readRuleGrammarStamp } from "../../core/session-policy-store.js";
11
11
  import { canonicalize, textContentHashOf } from "../../core/canonical-json.js";
12
- import { BootLock, FileStoreLockError, uncheckableOwnerClause } from "./fs-atomic.js";
12
+ import { BootLock, FileStoreLockError, rewordedLockRefusal, uncheckableOwnerClause } from "./fs-atomic.js";
13
13
  import { assertAdoptionBootGate } from "./adoption/marker.js";
14
14
  import { CONFIG_RECEIPT_MODE, optionKeys, receiptRefusal, receiveMembers, receiveOptions } from "../../core/own-property-receipt.js";
15
15
  import { describeFault, receive } from "../../core/mods/kernel/receive.js";
@@ -219,7 +219,7 @@ function writerLockRefusal(err, onError) {
219
219
  sentence = `the permission-rule store's writer lock refused (${String(unhandled)})`;
220
220
  }
221
221
  }
222
- return new FileStoreLockError(err.code, refusalText(onError, sentence, `${err.lockPath}: ${err.message}`), err.lockPath, err.ownerPid, err.ownerUncheckable);
222
+ return rewordedLockRefusal(err, refusalText(onError, sentence, `${err.lockPath}: ${err.message}`), err.lockPath);
223
223
  }
224
224
  function retireOnlyRefusal(rest) {
225
225
  return receiptRefusal(`a listed permission-rule bucket's handle only retires rows (a tighten-delete, and the nextDot its tombstone takes) — ${rest}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/core",
3
- "version": "7.68.3",
3
+ "version": "7.68.4",
4
4
  "description": "Stateless, task-oriented AI agent core",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",
@@ -107,6 +107,7 @@
107
107
  "gate:prompt-docs": "node scripts/gen-prompt-docs.mjs --check",
108
108
  "gen:prompt-docs": "node scripts/gen-prompt-docs.mjs",
109
109
  "gate:backlog-ledger": "node scripts/verify-backlog-ledger.mjs",
110
+ "gate:clearance": "node scripts/verify-clearance.mjs --gate --window",
110
111
  "gate:changelog-coverage": "node scripts/verify-changelog-coverage.mjs",
111
112
  "gate:changelog-released-blocks": "node scripts/verify-changelog-released-blocks.mjs",
112
113
  "gate:changelog-breaking": "node scripts/verify-changelog-breaking.mjs",
@@ -132,7 +133,7 @@
132
133
  "dependencies": {
133
134
  "@modelcontextprotocol/client": "2.4.0",
134
135
  "@modelcontextprotocol/core": "2.4.0",
135
- "@sema-agent/primitives": "7.68.3",
136
+ "@sema-agent/primitives": "7.68.4",
136
137
  "typebox": "1.1.39",
137
138
  "undici": "7.30.2"
138
139
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_comment": "design/87 L3 — frozen public export surface of src/index.ts (name -> kind). DO NOT edit by hand to silence a red test. A removed/changed entry = a BREAKING change: name every removed entry in the CHANGELOG's BREAKING lines (what was removed / who is hurt / what to read instead) and update this fixture in the SAME commit. Regenerate via REGEN in test/export-surface.test.ts.",
3
3
  "_tierComment": "#435 v1 — machine-readable layering of the public surface: stable = demonstrated by README.md / src/examples; internal = an `Internal`-marked name or a runner/engine deep-subtree declaration (the model seam src/engine/llm is excluded — it is the BYOM contract, not an engine internal); advanced = a supported export the front door does not walk you through. THIS IS AN INITIAL HEURISTIC, derived mechanically and expected to be refined ticket by ticket: no human reviewed these 1700+ entries one by one, and nothing here claims otherwise. Known bias: a short or English-word export name (ok, err, Result, Usage) can match ordinary prose in README.md and land `stable` on a coincidence. Every export MUST carry a tier — a new export with no row fails the gate in export-surface.test.ts.",
4
- "count": 3366,
4
+ "count": 3368,
5
5
  "exports": {
6
6
  "A2ATaskState": "type",
7
7
  "A2ATaskStateReversal": "type",
@@ -545,6 +545,7 @@
545
545
  "DamagedRowVerdict": "interface",
546
546
  "DamagedTaskListItem": "interface",
547
547
  "DamagedWorkflowRunSummary": "interface",
548
+ "DataRootDeclaration": "interface",
548
549
  "DecidedVia": "type",
549
550
  "DecisionReason": "type",
550
551
  "DeclarationFault": "interface",
@@ -2596,6 +2597,7 @@
2596
2597
  "decideAutoPromote": "function",
2597
2598
  "decisionText": "function",
2598
2599
  "declareClassAnswers": "function",
2600
+ "declareDataRoot": "function",
2599
2601
  "declareWithheldEnv": "function",
2600
2602
  "declaredOffSpelling": "function",
2601
2603
  "declaredPathTargetOf": "function",
@@ -3913,6 +3915,7 @@
3913
3915
  "DamagedRowVerdict": "advanced",
3914
3916
  "DamagedTaskListItem": "advanced",
3915
3917
  "DamagedWorkflowRunSummary": "advanced",
3918
+ "DataRootDeclaration": "advanced",
3916
3919
  "DecidedVia": "advanced",
3917
3920
  "DecisionReason": "advanced",
3918
3921
  "DeclarationFault": "advanced",
@@ -5964,6 +5967,7 @@
5964
5967
  "decideAutoPromote": "advanced",
5965
5968
  "decisionText": "advanced",
5966
5969
  "declareClassAnswers": "advanced",
5970
+ "declareDataRoot": "advanced",
5967
5971
  "declareWithheldEnv": "advanced",
5968
5972
  "declaredOffSpelling": "advanced",
5969
5973
  "declaredPathTargetOf": "advanced",
@@ -0,0 +1,39 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/core-stores-sql",
4
+ "version": "7.68.4",
5
+ "from": "fa1731c26e074819693e5096a112f87659e4b9bf",
6
+ "to": "v7.68.4",
7
+ "added": [],
8
+ "removed": [],
9
+ "changed": [],
10
+ "subpaths": [],
11
+ "subpathsUnread": [
12
+ "from",
13
+ "to"
14
+ ],
15
+ "narrowed": [],
16
+ "faces": {
17
+ "open": [],
18
+ "source": null
19
+ },
20
+ "closedSetMembers": [],
21
+ "closedSetsUnreadable": [],
22
+ "typeKeys": [],
23
+ "typeKeysUnreadableArms": [],
24
+ "typeKeysFlattenedCount": 3,
25
+ "signatures": [],
26
+ "versionLiterals": [],
27
+ "declarationMoves": [],
28
+ "mintMoves": [],
29
+ "criteriaObserves": [],
30
+ "consumersHint": {
31
+ "cli": [],
32
+ "server": [],
33
+ "sdk": [],
34
+ "note": "scanned cli@a51393fdd server@8e7211dbb sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
35
+ },
36
+ "breakingCount": 0,
37
+ "breakingItems": [],
38
+ "toResolvedAt": "8c9d91632ddb456da3f35c92856f4c2474d1717d"
39
+ }
@@ -0,0 +1,187 @@
1
+ {
2
+ "repo": "core",
3
+ "version": "7.68.4",
4
+ "from": "fa1731c26e074819693e5096a112f87659e4b9bf",
5
+ "to": "v7.68.4",
6
+ "added": [
7
+ {
8
+ "name": "DataRootDeclaration",
9
+ "kind": "interface",
10
+ "tier": "advanced",
11
+ "at": [
12
+ "src/index.ts:1147",
13
+ "src/stores/file/data-root-declaration.ts:18",
14
+ "src/stores/file/index.ts:76"
15
+ ],
16
+ "criteriaCovered": false,
17
+ "breaking": false
18
+ },
19
+ {
20
+ "name": "declareDataRoot",
21
+ "kind": "function",
22
+ "tier": "advanced",
23
+ "at": [
24
+ "src/index.ts:1146",
25
+ "src/stores/file/data-root-declaration.ts:40",
26
+ "src/stores/file/index.ts:76"
27
+ ],
28
+ "criteriaCovered": false,
29
+ "breaking": false
30
+ }
31
+ ],
32
+ "removed": [],
33
+ "changed": [],
34
+ "subpaths": [],
35
+ "narrowed": [],
36
+ "faces": {
37
+ "open": [
38
+ "TRACE_EVENT_KINDS",
39
+ "TraceEvent"
40
+ ],
41
+ "source": "src/core/contract-faces.ts"
42
+ },
43
+ "closedSetMembers": [
44
+ {
45
+ "set": "ENGINE_NOTICE_CODES",
46
+ "at": [
47
+ "src/core/governance-codes.ts:411"
48
+ ],
49
+ "newSet": false,
50
+ "added": [
51
+ "store.lock_reclaimed_on_declaration"
52
+ ],
53
+ "removed": [],
54
+ "breaking": false,
55
+ "criteriaCovered": true
56
+ }
57
+ ],
58
+ "closedSetsUnreadable": [],
59
+ "typeKeys": [
60
+ {
61
+ "type": "FileStoreLockError",
62
+ "at": [
63
+ "src/stores/file/fs-atomic.ts:748"
64
+ ],
65
+ "added": [
66
+ "ownerFingerprintUnread"
67
+ ],
68
+ "addedDetail": [
69
+ {
70
+ "key": "ownerFingerprintUnread",
71
+ "optional": true
72
+ }
73
+ ],
74
+ "addedRequired": [],
75
+ "removed": [],
76
+ "madeRequired": [],
77
+ "madeOptional": [],
78
+ "retyped": [],
79
+ "breaking": false,
80
+ "criteriaCovered": true
81
+ }
82
+ ],
83
+ "typeKeysUnreadableArms": [],
84
+ "typeKeysFlattenedCount": 305,
85
+ "signatures": [
86
+ {
87
+ "name": "FileStoreLockError.constructor",
88
+ "at": [
89
+ "src/stores/file/fs-atomic.ts:750"
90
+ ],
91
+ "from": [
92
+ "(code: FileStoreLockErrorCode, message: string, lockPath: string, ownerPid?: number, ownerUncheckable?: ProcessUncheckable)"
93
+ ],
94
+ "to": [
95
+ "(code: FileStoreLockErrorCode, message: string, lockPath: string, ownerPid?: number, ownerUncheckable?: ProcessUncheckable, ownerFingerprintUnread?: true)"
96
+ ],
97
+ "changes": [
98
+ {
99
+ "aspect": "param",
100
+ "detail": "+optional param `ownerFingerprintUnread?: true`",
101
+ "breaking": false
102
+ }
103
+ ],
104
+ "breaking": false,
105
+ "criteriaCovered": false
106
+ }
107
+ ],
108
+ "versionLiterals": [],
109
+ "declarationMoves": [],
110
+ "mintMoves": [],
111
+ "criteriaObserves": [
112
+ {
113
+ "kind": "engineNoticeCode",
114
+ "name": "store.lock_reclaimed_on_declaration",
115
+ "assertions": [
116
+ "G1.a"
117
+ ]
118
+ },
119
+ {
120
+ "kind": "typeMember",
121
+ "name": "FileStoreLockError.code",
122
+ "assertions": [
123
+ "G1.a",
124
+ "G2.a",
125
+ "G3.b"
126
+ ]
127
+ },
128
+ {
129
+ "kind": "typeMember",
130
+ "name": "FileStoreLockError.ownerFingerprintUnread",
131
+ "assertions": [
132
+ "G3.a"
133
+ ]
134
+ },
135
+ {
136
+ "kind": "typeMember",
137
+ "name": "FileStoreLockError.ownerPid",
138
+ "assertions": [
139
+ "G2.a"
140
+ ]
141
+ },
142
+ {
143
+ "kind": "typeMember",
144
+ "name": "FileStoreLockError.ownerUncheckable",
145
+ "assertions": [
146
+ "G1.a",
147
+ "G2.b",
148
+ "G3.a"
149
+ ]
150
+ },
151
+ {
152
+ "kind": "typeMember",
153
+ "name": "TaskResult.terminal.kind",
154
+ "assertions": [
155
+ "G4.a",
156
+ "G5.a",
157
+ "G5.b"
158
+ ]
159
+ },
160
+ {
161
+ "kind": "typeMember",
162
+ "name": "TaskSpec.signal",
163
+ "assertions": [
164
+ "G4.a",
165
+ "G4.b",
166
+ "G5.a"
167
+ ]
168
+ }
169
+ ],
170
+ "consumersHint": {
171
+ "cli": [
172
+ "ENGINE_NOTICE_CODES",
173
+ "FileStoreLockError"
174
+ ],
175
+ "server": [
176
+ "ENGINE_NOTICE_CODES",
177
+ "FileStoreLockError"
178
+ ],
179
+ "sdk": [
180
+ "ENGINE_NOTICE_CODES"
181
+ ],
182
+ "note": "scanned cli@a51393fdd server@8e7211dbb sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
183
+ },
184
+ "breakingCount": 0,
185
+ "breakingItems": [],
186
+ "toResolvedAt": "8c9d91632ddb456da3f35c92856f4c2474d1717d"
187
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/mods-kernel",
4
+ "version": "7.68.4",
5
+ "from": "fa1731c26e074819693e5096a112f87659e4b9bf",
6
+ "to": "v7.68.4",
7
+ "added": [],
8
+ "removed": [],
9
+ "changed": [],
10
+ "subpaths": [],
11
+ "subpathsUnread": [
12
+ "from",
13
+ "to"
14
+ ],
15
+ "narrowed": [],
16
+ "faces": {
17
+ "open": [],
18
+ "source": null
19
+ },
20
+ "closedSetMembers": [],
21
+ "closedSetsUnreadable": [],
22
+ "typeKeys": [],
23
+ "typeKeysUnreadableArms": [],
24
+ "typeKeysFlattenedCount": 1,
25
+ "signatures": [],
26
+ "versionLiterals": [],
27
+ "declarationMoves": [],
28
+ "mintMoves": [],
29
+ "criteriaObserves": [],
30
+ "consumersHint": {
31
+ "cli": [],
32
+ "server": [],
33
+ "sdk": [],
34
+ "note": "scanned cli@a51393fdd server@8e7211dbb sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
35
+ },
36
+ "breakingCount": 0,
37
+ "breakingItems": [],
38
+ "toResolvedAt": "8c9d91632ddb456da3f35c92856f4c2474d1717d"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/primitives",
4
+ "version": "7.68.4",
5
+ "from": "fa1731c26e074819693e5096a112f87659e4b9bf",
6
+ "to": "v7.68.4",
7
+ "added": [],
8
+ "removed": [],
9
+ "changed": [],
10
+ "subpaths": [],
11
+ "subpathsUnread": [
12
+ "from",
13
+ "to"
14
+ ],
15
+ "narrowed": [],
16
+ "faces": {
17
+ "open": [],
18
+ "source": null
19
+ },
20
+ "closedSetMembers": [],
21
+ "closedSetsUnreadable": [],
22
+ "typeKeys": [],
23
+ "typeKeysUnreadableArms": [],
24
+ "typeKeysFlattenedCount": 7,
25
+ "signatures": [],
26
+ "versionLiterals": [],
27
+ "declarationMoves": [],
28
+ "mintMoves": [],
29
+ "criteriaObserves": [],
30
+ "consumersHint": {
31
+ "cli": [],
32
+ "server": [],
33
+ "sdk": [],
34
+ "note": "scanned cli@a51393fdd server@8e7211dbb sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
35
+ },
36
+ "breakingCount": 0,
37
+ "breakingItems": [],
38
+ "toResolvedAt": "8c9d91632ddb456da3f35c92856f4c2474d1717d"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/wiki-gate",
4
+ "version": "7.68.4",
5
+ "from": "fa1731c26e074819693e5096a112f87659e4b9bf",
6
+ "to": "v7.68.4",
7
+ "added": [],
8
+ "removed": [],
9
+ "changed": [],
10
+ "subpaths": [],
11
+ "subpathsUnread": [
12
+ "from",
13
+ "to"
14
+ ],
15
+ "narrowed": [],
16
+ "faces": {
17
+ "open": [],
18
+ "source": null
19
+ },
20
+ "closedSetMembers": [],
21
+ "closedSetsUnreadable": [],
22
+ "typeKeys": [],
23
+ "typeKeysUnreadableArms": [],
24
+ "typeKeysFlattenedCount": 5,
25
+ "signatures": [],
26
+ "versionLiterals": [],
27
+ "declarationMoves": [],
28
+ "mintMoves": [],
29
+ "criteriaObserves": [],
30
+ "consumersHint": {
31
+ "cli": [],
32
+ "server": [],
33
+ "sdk": [],
34
+ "note": "scanned cli@a51393fdd server@8e7211dbb sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
35
+ },
36
+ "breakingCount": 0,
37
+ "breakingItems": [],
38
+ "toResolvedAt": "8c9d91632ddb456da3f35c92856f4c2474d1717d"
39
+ }