@conarium-ai/core 0.2.35 → 0.2.36

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.36 — 2026-08-20 — the lock that could be taken twice
4
+
5
+ The receipt sink had no lock of its own. `Audit` took one on the audit sink at
6
+ construct time, and receipts were written to a different path — so a receipt-only
7
+ install took no lock at all, and two processes with different audit sinks sharing
8
+ one receipt file took two locks over one file. Both configurations forked `seq`
9
+ and `prevHash`, and a forked chain does not verify. `log()` now takes every sink
10
+ path it is about to write, in lexicographic path order (one fixed order, so two
11
+ locks cannot deadlock), and re-reads the receipt tail under that lock instead of
12
+ trusting what the instance loaded at startup.
13
+
14
+ Fixing that exposed an older defect in the lock itself. The lock file is created
15
+ and the owner pid is written into it a syscall later; a second process arriving
16
+ inside that gap saw the file exist with an empty body, could not read an owner,
17
+ and treated it as abandoned — so it deleted a live process's lock and took the
18
+ sink. The guard added on 15 August to "reject a second OS process" therefore
19
+ rejected it most of the time, not always, and its test never landed in the gap.
20
+ An unreadable lock is now honoured rather than stolen until it is 30s old, which
21
+ still reclaims a lock whose owner died, and a lock naming a dead pid is still
22
+ reclaimed at once. The bounded cost is stated in the threat model: a process that
23
+ dies inside that same gap blocks its sink, and access with it, for those 30s.
24
+
25
+ Also: a check that compares what `standards/README.md` says about the draft with
26
+ what the IETF Datatracker says — unreachable is a printed SKIP, a mismatch is
27
+ red. Three sentences that had gone stale were rewritten to point at what holds
28
+ the state instead of restating it: outbound connections are now named with the
29
+ variables that disable them, draft status defers to the Datatracker, and the
30
+ receipt claim in `README.md` and in the package description says when receipts
31
+ are written rather than implying always.
32
+
3
33
  ## 0.2.35 — 2026-08-20 — two sentences that our own actions made false
4
34
 
5
35
  Nothing in the engine changed. This release exists because publishing 0.2.34
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
  <h1>Conarium</h1>
3
3
  <p><strong>The Third Eye for Your Company's Data.</strong></p>
4
- <p>A self-hosted, governed gateway that lets AI coding assistants (Cursor, Copilot, Claude) touch your real data under a policy you write—protected values masked before they leave—and hands you a signed, independently verifiable receipt of every access it mediates.</p>
4
+ <p>A self-hosted, governed gateway that lets AI coding assistants (Cursor, Copilot, Claude) touch your real data under a policy you write—protected values masked before they leave. When a receipt sink is configured it writes a signed, independently verifiable receipt of every access it mediates; <code>conarium-init</code> sets that sink, so the default layout does.</p>
5
5
 
6
6
  <p>
7
7
  <a href="https://www.npmjs.com/package/@conarium-ai/core"><img src="https://img.shields.io/npm/v/@conarium-ai/core?style=for-the-badge" alt="npm" /></a>
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,OAAO,EAIL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAMnE,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iFAAiF;IACjF,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;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CAAC,wBAAwB;IAWhC,OAAO,CAAC,eAAe;IASvB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,WAAW;IASnB,kEAAkE;IAClE,OAAO,CAAC,qBAAqB;IAY7B,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9B;IAED,OAAO,CAAC,QAAQ;IAiBhB,GAAG,CACD,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG;QACrE,6EAA6E;QAC7E,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,cAAc,CAAC,EAAE,cAAc,CAAA;KAChC,GACA,UAAU,CA2EZ;IAED,mEAAmE;IACnE,OAAO,CAAC,YAAY;IAiCpB,OAAO,CAAC,aAAa;CAkHtB"}
package/dist/audit.js CHANGED
@@ -150,7 +150,31 @@ function ensureLockExitHook() {
150
150
  }
151
151
  });
152
152
  }
153
- function acquireSinkLock(sink) {
153
+ function sleepSync(ms) {
154
+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
155
+ }
156
+ const LOCK_WAIT_MS = 10_000;
157
+ const LOCK_POLL_MS = 15;
158
+ // `wx` creates the lock file and the body lands in a second syscall, so a
159
+ // reader can catch it existing and empty. That reader cannot name an owner,
160
+ // and "owner unknown" is not "owner gone" — stealing there hands one sink to
161
+ // two live writers. Only age separates mid-creation (sub-millisecond) from a
162
+ // process that died inside that window, so an unreadable lock is honoured
163
+ // until it is this old. The cost is bounded: such a crash blocks the sink for
164
+ // LOCK_STALE_MS and, being fail-closed, blocks access with it.
165
+ const LOCK_STALE_MS = 30_000;
166
+ // A lock that vanished between the failed create and this call reads as
167
+ // infinitely old, which sends the caller down the retry path — the same place
168
+ // an expired lock lands, and the next create attempt is the one that decides.
169
+ function lockAgeMs(lockPath) {
170
+ try {
171
+ return Date.now() - statSync(lockPath).mtimeMs;
172
+ }
173
+ catch {
174
+ return Number.POSITIVE_INFINITY;
175
+ }
176
+ }
177
+ function acquireSinkLockOnce(sink) {
154
178
  if (!existsSync(dirname(sink)))
155
179
  return undefined;
156
180
  const lockPath = `${sink}.lock`;
@@ -188,6 +212,9 @@ function acquireSinkLock(sink) {
188
212
  if (otherPid != null && pidAlive(otherPid)) {
189
213
  throw new Error(`another process holds the audit sink lock (pid ${otherPid})`);
190
214
  }
215
+ if (otherPid == null && lockAgeMs(lockPath) < LOCK_STALE_MS) {
216
+ throw new Error('another process holds the audit sink lock (pid unreadable)');
217
+ }
191
218
  try {
192
219
  unlinkSync(lockPath);
193
220
  }
@@ -196,6 +223,51 @@ function acquireSinkLock(sink) {
196
223
  }
197
224
  throw new Error('another process holds the audit sink lock (pid unknown)');
198
225
  }
226
+ function acquireSinkLock(sink, opts = {}) {
227
+ if (!opts.wait)
228
+ return acquireSinkLockOnce(sink);
229
+ const deadline = Date.now() + LOCK_WAIT_MS;
230
+ for (;;) {
231
+ try {
232
+ return acquireSinkLockOnce(sink);
233
+ }
234
+ catch (err) {
235
+ const msg = err.message;
236
+ if (!msg.includes('another process holds'))
237
+ throw err;
238
+ if (Date.now() >= deadline) {
239
+ throw new Error(`Audit sink lock wait timed out: ${msg}`);
240
+ }
241
+ sleepSync(LOCK_POLL_MS);
242
+ }
243
+ }
244
+ }
245
+ /**
246
+ * Lock order is lexicographic on the sink *paths*, never declaration order.
247
+ * Taking audit then receipt on one path and receipt then audit on another
248
+ * deadlocks; a gateway that fail-closes on a held lock then admits nothing.
249
+ * Two locks, one global order. A single digest of "this process's sinks"
250
+ * would not serialize two processes that share only the receipt file.
251
+ */
252
+ function writeLockSinks(sink, receiptSink) {
253
+ return [...new Set([sink, receiptSink].filter((p) => Boolean(p)))].sort();
254
+ }
255
+ function acquireWriteLocks(sinks) {
256
+ const acquired = [];
257
+ try {
258
+ for (const sink of sinks) {
259
+ const lockPath = acquireSinkLock(sink, { wait: true });
260
+ if (lockPath)
261
+ acquired.push(lockPath);
262
+ }
263
+ return acquired;
264
+ }
265
+ catch (err) {
266
+ for (let i = acquired.length - 1; i >= 0; i--)
267
+ releaseSinkLock(acquired[i]);
268
+ throw err;
269
+ }
270
+ }
199
271
  function releaseSinkLock(lockPath) {
200
272
  const n = heldLocks.get(lockPath) ?? 0;
201
273
  if (n <= 1) {
@@ -395,45 +467,52 @@ export class Audit {
395
467
  if (full.governance != null) {
396
468
  full.governance = this.maskArgs(full.governance);
397
469
  }
398
- this.syncLastHashIfStale();
399
- full.prevHash = this.lastHash;
400
- // Strip sig/signature before hashing (mirrors exclusions in audit-hash).
401
- delete full.sig;
402
- delete full.signature;
403
- full.hash = computeEntryHash(full);
404
- if (this.hmacKey) {
405
- full.signature = createHmac('sha256', this.hmacKey).update(full.hash).digest('hex');
406
- }
407
- if (this.signingKey) {
408
- full.sig = {
409
- alg: 'Ed25519',
410
- keyId: this.signingKey.keyId,
411
- value: signHash(this.signingKey, full.hash),
412
- };
413
- }
414
- const line = JSON.stringify(full);
415
- console.error(`[conarium:audit] ${line}`);
416
- if (this.sink) {
417
- try {
418
- appendFileSync(this.sink, line + '\n');
419
- this.lastHash = full.hash;
420
- this.sinkSize = this.currentSinkSize();
470
+ const writeLocks = acquireWriteLocks(writeLockSinks(this.sink, this.receiptSink));
471
+ try {
472
+ this.syncLastHashIfStale();
473
+ full.prevHash = this.lastHash;
474
+ // Strip sig/signature before hashing (mirrors exclusions in audit-hash).
475
+ delete full.sig;
476
+ delete full.signature;
477
+ full.hash = computeEntryHash(full);
478
+ if (this.hmacKey) {
479
+ full.signature = createHmac('sha256', this.hmacKey).update(full.hash).digest('hex');
421
480
  }
422
- catch (err) {
423
- if (this.failClosed) {
424
- throw new Error(`Audit sink write failed: ${err.message}`);
481
+ if (this.signingKey) {
482
+ full.sig = {
483
+ alg: 'Ed25519',
484
+ keyId: this.signingKey.keyId,
485
+ value: signHash(this.signingKey, full.hash),
486
+ };
487
+ }
488
+ const line = JSON.stringify(full);
489
+ console.error(`[conarium:audit] ${line}`);
490
+ if (this.sink) {
491
+ try {
492
+ appendFileSync(this.sink, line + '\n');
493
+ this.lastHash = full.hash;
494
+ this.sinkSize = this.currentSinkSize();
495
+ }
496
+ catch (err) {
497
+ if (this.failClosed) {
498
+ throw new Error(`Audit sink write failed: ${err.message}`);
499
+ }
425
500
  }
426
501
  }
502
+ else {
503
+ this.lastHash = full.hash;
504
+ }
505
+ // Makbuz üretimi — opt-in (receiptSink yapılandırıldıysa).
506
+ // disclosurePayload audit satırına yazılmaz; yalnız makbuz hash'i için taşınır.
507
+ if (this.receiptSink) {
508
+ this.writeReceipt(disclosurePayload === undefined ? full : { ...full, disclosurePayload });
509
+ }
510
+ return full;
427
511
  }
428
- else {
429
- this.lastHash = full.hash;
430
- }
431
- // Makbuz üretimi — opt-in (receiptSink yapılandırıldıysa).
432
- // disclosurePayload audit satırına yazılmaz; yalnız makbuz hash'i için taşınır.
433
- if (this.receiptSink) {
434
- this.writeReceipt(disclosurePayload === undefined ? full : { ...full, disclosurePayload });
512
+ finally {
513
+ for (let i = writeLocks.length - 1; i >= 0; i--)
514
+ releaseSinkLock(writeLocks[i]);
435
515
  }
436
- return full;
437
516
  }
438
517
  /** AuditEntry'den makbuz üret, zincire ekle, receiptSink'e yaz. */
439
518
  writeReceipt(entry) {
@@ -444,6 +523,9 @@ export class Audit {
444
523
  throw new Error('Audit: cannot write receipt without an Ed25519 signing key — ' +
445
524
  'receipts require CONARIUM_AUDIT_SIGNING_KEY (HMAC is not sufficient).');
446
525
  }
526
+ // Another process may have appended since this instance loaded the tail.
527
+ // Reload under the write lock so seq/prevHash continue that file, not memory.
528
+ this.loadReceiptChainState();
447
529
  const chain = {
448
530
  seq: this.receiptSeq + 1,
449
531
  prevHash: this.receiptLastHash,
package/dist/audit.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,U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ACD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;gBACpD,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,MAAM,IAAI,KAAK,CACb,iDAAiD,KAAK,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,wBAAwB,CAC3G,CAAA;gBACH,CAAC;gBACD,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBACtD,MAAM,IAAI,KAAK,CACb,kEAAkE,KAAK,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,GAAG,CACvG,CAAA;gBACH,CAAC;YACH,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,GAAG,EAAE,CAAC;gBACrF,MAAM,IAAI,KAAK,CACb,kIAAkI,CACnI,CAAA;YACH,CAAC;YACD,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAA;QACvB,CAAC;IACH,CAAC;CACF"}
@@ -6,7 +6,9 @@ MCP made "connect an AI assistant to your data" a commodity. The durable value i
6
6
 
7
7
  1. **Ingestion** of messy internal sources (schemas today; docs, ADRs, APIs next).
8
8
  2. **Governance + audit** — what the AI may see, and a record of what it saw.
9
- 3. **Self-hosting** — the gateway runs in the customer's network and transmits nothing outward on its own. Raw protected values stay there; the policy-approved disclosure is what reaches the customer's AI client, and `disclosure.hash` binds exactly which bytes those were.
9
+ 3. **Self-hosting** — the gateway runs in the customer's network. Raw protected values stay there; the policy-approved disclosure is what reaches the customer's AI client, and `disclosure.hash` binds exactly which bytes those were. Protected values are not sent to us or to a vendor. Two outbound connections exist and are named so they can be checked, not because they carry those values:
10
+ - **npm version check** — `src/update-check.ts` `announceUpdate()`, called at start from both entry points, `src/index.ts` (stdio) and `src/http.ts` (HTTP gateway). Asks the public registry for `@conarium-ai/core`'s latest version number. Sends no installation identity. Disable with `CONARIUM_NO_UPDATE_CHECK=1`.
11
+ - **OpenTimestamps calendars** — production profile (`src/config.ts`) sets `CONARIUM_ANCHOR_SINK=opentimestamps` when the operator did not; that path submits a digest, not row values, to the public calendars listed in `src/ots/calendar.ts`. Set `CONARIUM_ANCHOR_SINK=none` to keep it off.
10
12
  4. **Freshness** — incremental re-index so context never goes stale.
11
13
 
12
14
  Conarium owns this layer and stays **tool-agnostic**: it speaks MCP, so it plugs into Cursor, Copilot, Claude Code, Windsurf, Continue.dev — whatever wins.
@@ -0,0 +1,152 @@
1
+ # Claims review — 0.2.36
2
+
3
+ - base: v0.2.35
4
+ - head: 7c4a424
5
+ - surface: sha256:4ddf21235110bec0c15f0a676a84aa21cbd406587a3856a869572871d616d72c
6
+ - verdict: pass
7
+ - reviewer: Claude (Opus 5)
8
+
9
+ Four surfaces changed. Three of them were sentences that had been true and
10
+ stopped being true; one is a threat-model paragraph rewritten twice in this
11
+ release, because the first rewrite described a lock that did not hold as tightly
12
+ as it said. The finding worth recording is not any single sentence but that two
13
+ of the four sat in files the claim gate could not see, and the reason it could
14
+ not see them was a rule about directory depth.
15
+
16
+ ## Findings
17
+
18
+ ### 1. src/audit.ts — the receipt sink had no lock, and the audit sink's lock could be taken twice
19
+
20
+ - Claim, as of 0.2.35: `docs/security/THREAT-MODEL.md` — *"Two OS processes
21
+ writing the same audit/receipt sink have no file lock."* Half stale (the audit
22
+ sink had one since 15 August), half true (the receipt sink did not).
23
+ - Mechanism: `acquireSinkLock` at construct time, against `this.sink` only, while
24
+ receipts are appended to `this.receiptSink` — a different path.
25
+ - Why it fell short: two configurations write one receipt file with no shared
26
+ lock — receipt-only installs (no audit sink, so no lock is taken at all) and
27
+ two gateways with separate audit sinks sharing one receipt file. Both fork
28
+ `seq` and `prevHash`, and a forked chain does not verify. Reproduced with two
29
+ OS processes: `duplicate seq: 1,2,3,4,5,1,6,7,8,2,3,4,5,6,7,8`.
30
+ - Disposition: fixed. `log()` now takes every sink path it is about to write, in
31
+ lexicographic path order — one fixed global order, so two locks cannot
32
+ deadlock — and `writeReceipt` re-reads the receipt tail under that lock rather
33
+ than trusting what the instance loaded at startup. A single digest over the
34
+ pair was rejected and the reason is in the code: `audit-a+receipt` and
35
+ `audit-b+receipt` hash to different lock files, which leaves the shared receipt
36
+ file unserialised, which is the bug.
37
+ - Second finding, inside the first: with that fix in place the regression test
38
+ still failed once in five runs. The lock file is created by `writeFileSync`
39
+ with `wx` and the owner pid lands in the next syscall; a second process
40
+ arriving in that gap saw the file exist with an empty body, could not read an
41
+ owner, fell past the `pidAlive` check because there was no pid to check, and
42
+ deleted a live process's lock. So the guard added on 15 August under the title
43
+ *"reject a second OS process on the audit sink lock"* rejected a second process
44
+ most of the time. Its test never landed in the window, and a test that has only
45
+ ever been green proves nothing about the case it was written for.
46
+ - Disposition: an unreadable lock is now honoured, not stolen, until it is 30s
47
+ old. `test/sink_lock_ownership.test.ts` states the window rather than racing
48
+ for it — it plants the empty lock file — and pins the two behaviours the fix
49
+ could have broken: a lock naming a dead pid is still reclaimed at once, and an
50
+ unreadable lock past the threshold is still reclaimed, so a process that dies
51
+ inside the gap does not wedge its sink forever. Red on all three before the
52
+ fix, green after, and the two-process test went 20/20 green where it had been
53
+ 1-in-5 red.
54
+ - Residual, stated in the threat model rather than left for a reader to find: a
55
+ process that dies inside that gap blocks its sink — and, being fail-closed,
56
+ blocks access — for those 30s.
57
+
58
+ ### 2. The claim gate could not see two of the four surfaces
59
+
60
+ - Claim: the release gate reviews the documents that carry promises.
61
+ - Mechanism: `test/denetci.mjs` — `SURFACES` is the reviewed list, and
62
+ `unlistedDocs()` warns about a changed document on neither list.
63
+ - Why it fell short: `unlistedDocs()` matched top-level `.md`/`.html` and
64
+ `docs/*.md` — one level. That reads as a rule about where promises live and is
65
+ a fact about where the function looked. `docs/security/NPM-PROVENANCE.md` was
66
+ reviewed because someone added it to `SURFACES` by hand;
67
+ `docs/security/THREAT-MODEL.md` beside it was on neither list, and nothing was
68
+ capable of saying so. `standards/README.md` was outside both patterns for the
69
+ same reason. Those are exactly the two files that carried stale claims into
70
+ 0.2.35 and were found by an outside reader, not by the gate.
71
+ - Disposition: working records are named as directories now instead of inferred
72
+ from depth, and anything under `docs/` or `standards/` that is neither listed
73
+ nor named trips the warning. Demonstrated failing first: a scratch file at
74
+ `docs/security/` depth 2 is reported by the new rule and is invisible to the
75
+ old one. Widening it immediately surfaced a third stale document nobody had
76
+ looked at — `docs/security/best-practices-badge.md` still said *"Do not submit
77
+ until they have been read once by a human"* four days after the badge was
78
+ filed and awarded. It now points at project 14160 and says it is not updated
79
+ when an answer changes there.
80
+ - Not fixed, recorded: `SURFACES` exists twice, in `test/denetci.mjs` (21 files)
81
+ and `test/claim_discipline.mjs` (12 files), both hand-maintained. Two
82
+ hand-written copies of one fact is the shape that produced most of this
83
+ release. Deriving one from the other is a change for its own release, not a
84
+ rider on this one.
85
+
86
+ ### 3. docs/ARCHITECTURE.md — "transmits nothing outward on its own"
87
+
88
+ - Claim: *"the gateway runs in the customer's network and transmits nothing
89
+ outward on its own."*
90
+ - Mechanism: `announceUpdate()` in `src/update-check.ts`, and the production
91
+ profile in `src/config.ts`.
92
+ - Why it fell short: false as written, and *"on its own"* made it worse rather
93
+ than hedging it — the version check is precisely the outbound call the operator
94
+ did not ask for. The production profile also sets
95
+ `CONARIUM_ANCHOR_SINK=opentimestamps` when the operator left it unset, which
96
+ submits digests to public calendars.
97
+ - Disposition: rewritten to keep the claim that survives measurement — protected
98
+ values do not leave — and to name both outbound connections with their source
99
+ file, what they send, and the variable that disables each. Verified against the
100
+ code rather than the diff: `CONARIUM_NO_UPDATE_CHECK` is read in
101
+ `src/update-check.ts`, `CONARIUM_ANCHOR_SINK` defaults to `none` in
102
+ `src/config.ts:111` and is set to `opentimestamps` at `:113`, and the calendar
103
+ hosts are in `src/ots/calendar.ts`. The first rewrite named `src/index.ts` as
104
+ the caller; `announceUpdate()` is also called from `src/http.ts:350`, and a
105
+ reader auditing outbound traffic needs both, so both are named.
106
+
107
+ ### 4. standards/README.md — draft status, and a warning that was deleted with it
108
+
109
+ - Claim: *"`-04` is being prepared here and has not been submitted."*
110
+ - Mechanism: the IETF Datatracker.
111
+ - Why it fell short: `-04` was posted on 18 August. Restating a status in a file
112
+ that does not hold it means the file is a copy that ages, which is the third
113
+ time in three releases the same shape has failed here.
114
+ - Disposition: the file now points at the Datatracker instead of restating it,
115
+ and the individual-submission limit — not an IETF standard, not adopted by a
116
+ working group — is kept. `test/datatracker_draft_status.mjs` enforces the
117
+ shape: the README must carry the canonical tracker URL, an unreachable
118
+ Datatracker is a printed SKIP rather than a silent green, and a reachable
119
+ mismatch is red. All three states measured here, not taken from the report:
120
+ red against a planted stale sentence, green against the current text, SKIP with
121
+ the endpoint pointed at a closed port.
122
+ - Recorded because it was a deletion, not a rewrite: the rewrite removed a
123
+ paragraph admitting this file had been wrong the same way about `-03`. Its
124
+ function — send the reader to the tracker — is now carried by the structure of
125
+ the file rather than by a warning, and the history is here. That is a
126
+ disposition, not an oversight.
127
+ - Known limit of the new check: the mismatch half matches a phrasing
128
+ (`-NN … has not been submitted`). A differently worded stale sentence slips
129
+ past it. The half that does not depend on phrasing is the requirement that the
130
+ tracker URL be present, and that is the half that makes restating the status
131
+ unnecessary in the first place.
132
+
133
+ ### 5. README.md and package.json — "a receipt of every access"
134
+
135
+ - Claim: the gateway *"hands you a signed, independently verifiable receipt of
136
+ every access it mediates."*
137
+ - Mechanism: `writeReceipt`, reached when `receiptSink` is configured.
138
+ - Why it fell short: unconditional as written. `conarium-init` configures the
139
+ sink, so the typical install does produce a receipt per access — the claim is
140
+ true of the default layout and not true as a property of the gateway.
141
+ - Disposition: both now state the condition and the default in the same
142
+ sentence. `package.json`'s `description` carried the same unconditional
143
+ wording and is corrected here; it was outside the scope given to the reviewer
144
+ who found the README instance, which is a scoping mistake worth naming — the
145
+ same sentence in two files, and only one of them was assigned.
146
+
147
+ ## What did not change
148
+
149
+ The policy gate, masking, the receipt format, the reconciliation tool and the
150
+ conformance vectors are untouched. The engine change is confined to when locks
151
+ are taken and to which paths. `npm run test:all`: 89 test files, 747 passed, 2
152
+ skipped, 52/52 checks.
@@ -100,10 +100,20 @@ Pending OpenTimestamps is disclosed as `pending`. Bitcoin upgrade is hours later
100
100
  - A shorter leftover chain still verifies. That is structural, not a bug.
101
101
  - Anchor calendars and `blockstream.info` are third parties. Unreachable →
102
102
  exit 15 ("could not check"), not exit 0.
103
- - Two OS processes writing the same audit/receipt sink have no file lock.
104
- In-process concurrent `log()` is synchronous and keeps the chain (measured:
105
- 50 queries, 0 `prevHash` breaks). Same-millisecond writers across processes
106
- can fork the chain. Single-process installs are the supported shape.
103
+ - The audit sink lock is taken at construct when `sink` is set. The receipt
104
+ sink was not: receipt-only installs, and two processes with different audit
105
+ sinks sharing one receipt file, could fork `seq` / `prevHash`. `log()` now
106
+ takes every sink path it will write, in lexicographic path order, and
107
+ reloads the receipt tail under that lock (see `src/audit.ts`). In-process
108
+ concurrent `log()` is still synchronous (measured: 50 queries, 0 `prevHash`
109
+ breaks). Cross-process writers of the same file are serialized; a lock wait
110
+ that times out throws and fail-closes. A lock file whose owner pid cannot be
111
+ read is honoured, not stolen, until it is 30s old — the window between
112
+ creating a lock and writing the pid into it is otherwise long enough for two
113
+ live writers to claim one sink. The bounded cost is the inverse case: a
114
+ process that dies inside that same window blocks its sink, and therefore
115
+ access, for those 30s. Same-file writers that do not go through `Audit.log`
116
+ (a hand-edited append, a second implementation) are still unsupported.
107
117
 
108
118
  ## Out of scope — the operator
109
119
 
@@ -1,8 +1,10 @@
1
1
  # OpenSSF Best Practices — draft answers
2
2
 
3
- Filing at <https://www.bestpractices.dev/> is a separate decision. These
4
- answers are what the public tree supports today. Do not submit until they
5
- have been read once by a human.
3
+ These were the answers prepared before filing. They were filed, and the filed
4
+ copy is the one that counts: <https://www.bestpractices.dev/projects/14160>.
5
+ Read that page for the current answers and the badge's current level — this
6
+ file is kept for provenance, is not updated when an answer changes there, and
7
+ says nothing about what the badge shows today.
6
8
 
7
9
  Project: Conarium (`@conarium-ai/core`)
8
10
  Homepage: https://conarium.dev
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conarium-ai/core",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "mcpName": "io.github.dogrucanemek-alt/conarium",
5
5
  "//files-artefakt": "examples/ altindaki uretilmis dosyalar (ozel anahtar, makbuz/denetim JSONL) ELENIR. .gitignore npm'i baglamaz: izin listesinde 'examples' oldugu icin demoyu kosturmus bir makinede 'npm publish' _keys/audit-ed25519.pem'i (OZEL ANAHTAR) ve makbuzlari yayinliyordu. test/pack_artefakt.mjs bunu kilitler. Elemeler examples/ ile SINIRLI: test-vectors/ altindaki receipts.jsonl ve .pub.pem YAYINLANMAK ZORUNDA, yoksa ucuncu taraf konformans vektorlerini kosturamaz.",
6
6
  "//files": "Pakete NE gireceginin izin listesi. Liste olmadan npm her seyi gonderiyordu: 296 dosya / 1.5 MB — CI workflowlari, gitleaks ayari, 137 KB pazarlama gorseli, sitenin api/chat.js dosyasi. Bir bankanin guvenlik ekibi tarball'i acip bunlari gorur. scripts/ BILEREK var: conarium-reconcile calisirken scripts/pg-snapshot.sql'e atif yapiyor, olmazsa kullanici destek maili yazar.",
@@ -33,7 +33,7 @@
33
33
  "LIMITATIONS.tr.md",
34
34
  "CHANGELOG.md"
35
35
  ],
36
- "description": "Governed MCP gateway for AI data access: policy enforcement and PII masking, an Ed25519-signed receipt per access that a third party verifies offline, coverage reconciliation against the database's own query counters to surface access that bypassed the gateway, and conformance vectors so the receipt format can be implemented without us. Self-hosted, MIT.",
36
+ "description": "Governed MCP gateway for AI data access: policy enforcement and PII masking, an Ed25519-signed receipt per mediated access that a third party verifies offline (written when a receipt sink is configured, which conarium-init sets), coverage reconciliation against the database's own query counters to surface access that bypassed the gateway, and conformance vectors so the receipt format can be implemented without us. Self-hosted, MIT.",
37
37
  "keywords": [
38
38
  "mcp",
39
39
  "ai",