@inerrata-corporation/errata 2.0.2-dev.513 → 2.0.2-dev.530
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 +14 -4
- package/errata.mjs +690 -237
- package/package.json +1 -1
- package/pass-worker.mjs +108 -29
package/consolidate-worker.mjs
CHANGED
|
@@ -16639,6 +16639,10 @@ var SqliteGraphStore = class {
|
|
|
16639
16639
|
if (!live) return null;
|
|
16640
16640
|
const version2 = live.version ?? 1;
|
|
16641
16641
|
const frozenId = `${liveId}@v${version2}`;
|
|
16642
|
+
if (this.getNode(frozenId)) {
|
|
16643
|
+
this.stmts.advanceLive.run({ live_id: liveId, t });
|
|
16644
|
+
return frozenId;
|
|
16645
|
+
}
|
|
16642
16646
|
this.stmts.freezeCopy.run({ frozen_id: frozenId, live_id: liveId, t });
|
|
16643
16647
|
this.mergeEdge({
|
|
16644
16648
|
id: `edge_superseded_${frozenId}`,
|
|
@@ -16697,6 +16701,7 @@ var CAUSAL_FAMILY = [
|
|
|
16697
16701
|
|
|
16698
16702
|
// ../../packages/local-graph/src/justification.ts
|
|
16699
16703
|
init_src();
|
|
16704
|
+
init_src2();
|
|
16700
16705
|
|
|
16701
16706
|
// ../../packages/local-graph/src/credit.ts
|
|
16702
16707
|
init_src2();
|
|
@@ -17008,7 +17013,8 @@ init_src();
|
|
|
17008
17013
|
init_src();
|
|
17009
17014
|
init_src();
|
|
17010
17015
|
init_src2();
|
|
17011
|
-
function semNode(id, label, description, ts, attrs) {
|
|
17016
|
+
function semNode(store, id, label, description, ts, attrs) {
|
|
17017
|
+
const seq = SEMANTIC_NODE_LABELS.includes(label) ? store.nextIngestSeq() : void 0;
|
|
17012
17018
|
return {
|
|
17013
17019
|
id,
|
|
17014
17020
|
label,
|
|
@@ -17026,6 +17032,7 @@ function semNode(id, label, description, ts, attrs) {
|
|
|
17026
17032
|
isLandmark: false,
|
|
17027
17033
|
community: null,
|
|
17028
17034
|
stability: "unstable",
|
|
17035
|
+
...seq !== void 0 ? { createdAtSeq: seq, lastReinforcedAtSeq: seq } : {},
|
|
17029
17036
|
attrs
|
|
17030
17037
|
};
|
|
17031
17038
|
}
|
|
@@ -17056,7 +17063,7 @@ function recordTriageObservation(l2, obs, ts) {
|
|
|
17056
17063
|
const buckets = [...triageContextBuckets(canonicalizeContext(obs.context)), TRIAGE_GLOBAL_BUCKET];
|
|
17057
17064
|
l2.transaction(() => {
|
|
17058
17065
|
if (!l2.getNode(presentingId)) {
|
|
17059
|
-
l2.mergeNode(semNode(presentingId, "Problem", statement, ts, { scope: {} }));
|
|
17066
|
+
l2.mergeNode(semNode(l2, presentingId, "Problem", statement, ts, { scope: {} }));
|
|
17060
17067
|
}
|
|
17061
17068
|
const tri = l2.getNode(triageId);
|
|
17062
17069
|
const seen = {
|
|
@@ -17070,7 +17077,7 @@ function recordTriageObservation(l2, obs, ts) {
|
|
|
17070
17077
|
});
|
|
17071
17078
|
} else {
|
|
17072
17079
|
l2.mergeNode(
|
|
17073
|
-
semNode(triageId, "Triage", `differential for: ${statement}`, ts, {
|
|
17080
|
+
semNode(l2, triageId, "Triage", `differential for: ${statement}`, ts, {
|
|
17074
17081
|
statement,
|
|
17075
17082
|
perContextSeen: seen
|
|
17076
17083
|
})
|
|
@@ -17082,7 +17089,7 @@ function recordTriageObservation(l2, obs, ts) {
|
|
|
17082
17089
|
}
|
|
17083
17090
|
if (!l2.getNode(obs.causeId)) {
|
|
17084
17091
|
l2.mergeNode(
|
|
17085
|
-
semNode(obs.causeId, obs.causeLabel ?? "RootCause", obs.causeDescription ?? "(cause)", ts, {
|
|
17092
|
+
semNode(l2, obs.causeId, obs.causeLabel ?? "RootCause", obs.causeDescription ?? "(cause)", ts, {
|
|
17086
17093
|
scope: {}
|
|
17087
17094
|
})
|
|
17088
17095
|
);
|
|
@@ -17468,6 +17475,9 @@ init_src();
|
|
|
17468
17475
|
// ../../packages/local-graph/src/principle-sync.ts
|
|
17469
17476
|
init_src2();
|
|
17470
17477
|
|
|
17478
|
+
// ../../packages/local-graph/src/mechanism-liveness.ts
|
|
17479
|
+
var STALL_MIN_SPAN_MS = 60 * 60 * 1e3;
|
|
17480
|
+
|
|
17471
17481
|
// src/reconcile.ts
|
|
17472
17482
|
init_src3();
|
|
17473
17483
|
function isLive(n) {
|