@inerrata-corporation/errata 2.0.0-dev.59 → 2.0.0-dev.60
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/consolidate-worker.mjs +6 -0
- package/errata.mjs +11 -3
- package/package.json +1 -1
package/consolidate-worker.mjs
CHANGED
|
@@ -16853,6 +16853,12 @@ function recordTriageObservation(l2, obs, ts) {
|
|
|
16853
16853
|
} else {
|
|
16854
16854
|
l2.mergeEdge(semEdge(routeId, triageId, obs.causeId, wantType, ts, attrs));
|
|
16855
16855
|
}
|
|
16856
|
+
if (obs.causal && (obs.causeLabel ?? "RootCause") === "RootCause" && obs.causeId !== presentingId) {
|
|
16857
|
+
const cbId = `edge_cb_${presentingId}_${obs.causeId}`;
|
|
16858
|
+
if (!l2.getEdge(cbId)) {
|
|
16859
|
+
l2.mergeEdge(semEdge(cbId, presentingId, obs.causeId, "CAUSED_BY", ts, { witnessed: true }));
|
|
16860
|
+
}
|
|
16861
|
+
}
|
|
16856
16862
|
});
|
|
16857
16863
|
return { triageId, routeId };
|
|
16858
16864
|
}
|
package/errata.mjs
CHANGED
|
@@ -19452,6 +19452,12 @@ function recordTriageObservation(l2, obs, ts) {
|
|
|
19452
19452
|
} else {
|
|
19453
19453
|
l2.mergeEdge(semEdge(routeId, triageId, obs.causeId, wantType, ts, attrs));
|
|
19454
19454
|
}
|
|
19455
|
+
if (obs.causal && (obs.causeLabel ?? "RootCause") === "RootCause" && obs.causeId !== presentingId) {
|
|
19456
|
+
const cbId = `edge_cb_${presentingId}_${obs.causeId}`;
|
|
19457
|
+
if (!l2.getEdge(cbId)) {
|
|
19458
|
+
l2.mergeEdge(semEdge(cbId, presentingId, obs.causeId, "CAUSED_BY", ts, { witnessed: true }));
|
|
19459
|
+
}
|
|
19460
|
+
}
|
|
19455
19461
|
});
|
|
19456
19462
|
return { triageId, routeId };
|
|
19457
19463
|
}
|
|
@@ -19713,7 +19719,8 @@ function harvestTriageFences(l2, text, opts) {
|
|
|
19713
19719
|
...f.test ? { discriminator: f.test } : {},
|
|
19714
19720
|
...f.drift ? { driftKind: f.drift } : {},
|
|
19715
19721
|
context: opts.context,
|
|
19716
|
-
...opts.contributor ? { contributor: opts.contributor } : {}
|
|
19722
|
+
...opts.contributor ? { contributor: opts.contributor } : {},
|
|
19723
|
+
causal: true
|
|
19717
19724
|
},
|
|
19718
19725
|
opts.ts
|
|
19719
19726
|
);
|
|
@@ -42855,7 +42862,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
42855
42862
|
}
|
|
42856
42863
|
|
|
42857
42864
|
// src/engine.ts
|
|
42858
|
-
var DAEMON_VERSION = true ? "2.0.0-dev.
|
|
42865
|
+
var DAEMON_VERSION = true ? "2.0.0-dev.60" : "2.0.0-alpha.0";
|
|
42859
42866
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
42860
42867
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
42861
42868
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -43577,7 +43584,8 @@ function createWorkspaceEngine(opts) {
|
|
|
43577
43584
|
...tr.causeDescription ? { causeDescription: tr.causeDescription } : {},
|
|
43578
43585
|
context: { stack: profile.stack, domain: profile.domains[0] },
|
|
43579
43586
|
contributor: sessionId,
|
|
43580
|
-
evidence
|
|
43587
|
+
evidence,
|
|
43588
|
+
causal: true
|
|
43581
43589
|
},
|
|
43582
43590
|
t
|
|
43583
43591
|
);
|