@inerrata-corporation/errata 2.0.2-dev.125 → 2.0.2-dev.133

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.
@@ -133,7 +133,14 @@ var init_castalia = __esm({
133
133
  "SOLVED_BY",
134
134
  "MITIGATES",
135
135
  "REPORTED_FAILURE",
136
- "CONTRADICTS"
136
+ "CONTRADICTS",
137
+ // Motif twin-faces (KN-twin-faces): failure-face motif → remedy-face motif
138
+ // across layers (AntiPattern/Weakness ↔ Technique/Pattern). Same
139
+ // problem→fix direction as FIXED_BY/SOLVED_BY. Minted by the nightly LLM
140
+ // twin-face pass — these are the near-identical cross-layer pairs the
141
+ // polarity gate (finding 5) correctly refuses to FUSE; the link carries
142
+ // what fusion can't.
143
+ "REMEDIED_BY"
137
144
  ];
138
145
  CONCEPTUAL_EDGES = [
139
146
  "INSTANCE_OF",
@@ -223,6 +230,10 @@ var init_castalia = __esm({
223
230
  CAUSED_BY: 3,
224
231
  FIXED_BY: 3,
225
232
  SOLVED_BY: 3,
233
+ // Twin-face link (failure motif → remedy motif, KN-twin-faces) — causal-grade
234
+ // but a notch below witnessed FIXED_BY/SOLVED_BY: the pairing is an LLM
235
+ // judgment over descriptions, not an agent-witnessed resolution.
236
+ REMEDIED_BY: 2.5,
226
237
  MANIFESTS_AS: 2,
227
238
  ESCALATES_TO: 1.5,
228
239
  AFFECTS: 1.2,
@@ -15304,6 +15315,15 @@ var init_wire = __esm({
15304
15315
  /** Canonical human-readable description (no raw paths — daemon scrubs; server rechecks). */
15305
15316
  description: external_exports.string().min(1).max(4e3),
15306
15317
  attrs: external_exports.record(external_exports.string(), external_exports.unknown()).default({}),
15318
+ /** One-way origin key of the SESSION that minted this node (`ws_…`, a
15319
+ * truncated digest — never the raw session id). Stamped onto the created
15320
+ * node as `authoringSession`, which is the independence unit for the
15321
+ * evidence channels: the session that authored a claim may not corroborate
15322
+ * or refute it, while a DIFFERENT session on the same checkout may (alyssa,
15323
+ * 2026-07-31 — the workspace key made every witness on a single-checkout
15324
+ * deployment a self-corroboration). Optional + additive: absent leaves the
15325
+ * gate fail-open for that node, exactly today's behaviour. */
15326
+ originSession: external_exports.string().min(3).max(64).optional(),
15307
15327
  extractionSource: external_exports.enum(INGEST_EXTRACTION_SOURCES),
15308
15328
  validationSource: external_exports.enum(VALIDATION_SOURCES).optional(),
15309
15329
  /** Org-membrane (M2): the daemon's anchor tag — it owns the lockfile, so it
@@ -15404,7 +15424,7 @@ var init_canonicalize = __esm({
15404
15424
 
15405
15425
  // ../../packages/shared/src/nlp/triage-canon.ts
15406
15426
  function canonicalizeToken(t) {
15407
- const base = t.trim().toLowerCase().replace(/[@\s].*$/, "");
15427
+ const base = t.trim().toLowerCase().replace(/(?!^)@.*$|\s.*$/, "");
15408
15428
  if (!base) return "";
15409
15429
  return resolveCanonicalId(base) ?? base;
15410
15430
  }