@inerrata-corporation/errata 2.0.0-dev.85 → 2.0.0-dev.87
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 +25 -0
- package/errata.mjs +7316 -5
- package/package.json +1 -1
- package/pass-worker.mjs +28 -1
package/package.json
CHANGED
package/pass-worker.mjs
CHANGED
|
@@ -65,6 +65,13 @@ var init_castalia = __esm({
|
|
|
65
65
|
"Paradigm",
|
|
66
66
|
"DataStructure",
|
|
67
67
|
"AgentModel",
|
|
68
|
+
// An OS executable / CLI program (`powercfg`, `git`, `docker` — SP-tooltopic).
|
|
69
|
+
// NAME-keyed identity (`toolCanonicalId`), deliberately unversioned: `powercfg`
|
|
70
|
+
// is one node across Windows builds; OS scoping rides `RUNS_ON`, packaging rides
|
|
71
|
+
// `PROVIDED_BY → Package`. Registry-verified before public minting (tldr-pages
|
|
72
|
+
// is the deps.dev analog) — an unverifiable name (typo, org-internal CLI) is
|
|
73
|
+
// skipped, never minted, so the verifier doubles as the privacy membrane.
|
|
74
|
+
"Tool",
|
|
68
75
|
// An OPAQUE anchor identity in a project's stratum (PJ-anchors · plan §6c).
|
|
69
76
|
// Deliberately NOT one of the CODE_NODE_LABELS below — those are the local code
|
|
70
77
|
// graph and never cross. A cloud `Symbol` carries the salted `sym_` id and a
|
|
@@ -109,6 +116,9 @@ var init_castalia = __esm({
|
|
|
109
116
|
"PROVIDED_BY",
|
|
110
117
|
"SUPPORTS",
|
|
111
118
|
"RUNS_ON",
|
|
119
|
+
// Tool spine (SP-tooltopic): knowledge → Tool anchor ("before calling X
|
|
120
|
+
// consider Y"). Hub-suppressed like OCCURS_IN — see EDGE_RULES for endpoints.
|
|
121
|
+
"CONCERNS",
|
|
112
122
|
"IMPLEMENTATION_OF",
|
|
113
123
|
"SUPERSEDED_BY",
|
|
114
124
|
// canonical direction (older → newer) — Finding 1 fixed
|
|
@@ -299,6 +309,9 @@ var init_castalia = __esm({
|
|
|
299
309
|
PROVIDED_BY: 0.4,
|
|
300
310
|
SUPPORTS: 0.4,
|
|
301
311
|
RUNS_ON: 0.4,
|
|
312
|
+
// Tool spine (SP-tooltopic): knowledge → Tool anchor, hub-suppressed like
|
|
313
|
+
// OCCURS_IN — a `git` node collects hundreds of anchors like `typescript` does.
|
|
314
|
+
CONCERNS: 0.3,
|
|
302
315
|
IMPLEMENTATION_OF: 0.5,
|
|
303
316
|
SUPERSEDED_BY: 0,
|
|
304
317
|
WRITTEN_IN: 0.3,
|
|
@@ -15028,6 +15041,15 @@ var init_edge_rules = __esm({
|
|
|
15028
15041
|
OCCURS_IN: { to: ["Language"] },
|
|
15029
15042
|
OCCURS_ON: { to: ["OperatingSystem"] },
|
|
15030
15043
|
RUNS_ON: { to: ["OperatingSystem"] },
|
|
15044
|
+
// ── Tool spine (SP-tooltopic) ──
|
|
15045
|
+
// CONCERNS is the knowledge→executable anchor ("before calling X consider Y"):
|
|
15046
|
+
// a Claim/Problem/Solution about a Tool hangs off its Tool node so it can be
|
|
15047
|
+
// recalled at the moment of invocation. New type, so constraining it invents
|
|
15048
|
+
// nothing. NOTE: `PROVIDED_BY` (Tool → Package packaging join) is deliberately
|
|
15049
|
+
// NOT ruled here — the type pre-exists with broader extractor senses, and a
|
|
15050
|
+
// new rule on an old type would reject legitimate live flows (reject-never-flip
|
|
15051
|
+
// cuts both ways: only rule types you introduce or senses that are documented).
|
|
15052
|
+
CONCERNS: { from: ["Problem", "Solution", "RootCause", "Claim", "Pattern"], to: ["Tool"] },
|
|
15031
15053
|
OPERATES_ON: { from: ["Algorithm"], to: ["DataStructure"] },
|
|
15032
15054
|
INVOLVES: { from: ["Problem", "Solution"], to: ["DataStructure"] },
|
|
15033
15055
|
// ── Taxonomy (Track 4 Stream C: MITRE CWE `ChildOf` → `Weakness —IS_A→ Weakness`) ──
|
|
@@ -15102,6 +15124,9 @@ var init_wire = __esm({
|
|
|
15102
15124
|
"Triage",
|
|
15103
15125
|
"Claim",
|
|
15104
15126
|
"AntiPattern",
|
|
15127
|
+
// Tool spine (SP-tooltopic): OS executables, minted by the stream-T importer
|
|
15128
|
+
// (tldr-verified) and referenced by agent CONCERNS anchors.
|
|
15129
|
+
"Tool",
|
|
15105
15130
|
// PJ-anchors (§6c): the OPAQUE project anchor identity — salted `sym_` id +
|
|
15106
15131
|
// coarse kind, no path, no qualified name. Writable ONLY on a batch with a
|
|
15107
15132
|
// verified projectId; the ingest door rejects it outright otherwise, so its
|
|
@@ -25951,9 +25976,11 @@ function buildSnapshot(opts) {
|
|
|
25951
25976
|
};
|
|
25952
25977
|
const langNodes = opts.store.findNodesByLabel("Language");
|
|
25953
25978
|
const pkgNodes = opts.store.findNodesByLabel("Package");
|
|
25979
|
+
const toolNodes = opts.store.findNodesByLabel("Tool").sort((a, b) => (b.cumulativeHits ?? 0) - (a.cumulativeHits ?? 0)).slice(0, 5);
|
|
25954
25980
|
const profileContext = {
|
|
25955
25981
|
languages: opts.profile.languages.map((name2) => ({ name: name2, node: matchNode(langNodes, name2) })),
|
|
25956
|
-
packages: opts.profile.stack.map((name2) => ({ name: name2, node: matchNode(pkgNodes, pkgBase(name2)) }))
|
|
25982
|
+
packages: opts.profile.stack.map((name2) => ({ name: name2, node: matchNode(pkgNodes, pkgBase(name2)) })),
|
|
25983
|
+
tools: toolNodes.map((node) => ({ name: String(node.attrs["name"] ?? node.description), node }))
|
|
25957
25984
|
};
|
|
25958
25985
|
const causalNudge = recent.length >= 2 && recent.every(
|
|
25959
25986
|
(r) => opts.store.outEdges(r.node.id, ["CAUSED_BY"]).length === 0 && opts.store.inEdges(r.node.id, ["CAUSED_BY"]).length === 0
|