@inerrata-corporation/errata 2.0.2-dev.346 → 2.0.2-dev.352
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/errata.mjs +13 -2
- package/package.json +1 -1
- package/pass-worker.mjs +1 -0
package/errata.mjs
CHANGED
|
@@ -21405,6 +21405,7 @@ function buildSnapshot(opts) {
|
|
|
21405
21405
|
recentResolved,
|
|
21406
21406
|
recentConstraints,
|
|
21407
21407
|
...causalNudge ? { causalNudge } : {},
|
|
21408
|
+
...opts.selfCiteSkips && opts.selfCiteSkips > 0 ? { selfCiteSkips: opts.selfCiteSkips } : {},
|
|
21408
21409
|
...domainNudge ? { domainNudge } : {},
|
|
21409
21410
|
motifs,
|
|
21410
21411
|
reviewCount: opts.reviewCount,
|
|
@@ -21552,6 +21553,12 @@ function renderSnapshot(s) {
|
|
|
21552
21553
|
lines.push("");
|
|
21553
21554
|
}
|
|
21554
21555
|
const tagOf = (n) => s.edgeElicitation ? ` \`[${priorHandle(n)}]\`` : "";
|
|
21556
|
+
if (s.selfCiteSkips) {
|
|
21557
|
+
lines.push(
|
|
21558
|
+
`_**${s.selfCiteSkips} of your citations last turn were dropped** \u2014 they named priors this same session captured, and corroboration counts independent sessions, so citing your own capture is void by construction. It still records the link; it just cannot corroborate. To corroborate, cite a prior you were SHOWN (the collective block, or a problem from an earlier session) \u2014 that is the evidence the graph is short of._`
|
|
21559
|
+
);
|
|
21560
|
+
lines.push("");
|
|
21561
|
+
}
|
|
21555
21562
|
lines.push("### Recently observed problems in this workspace");
|
|
21556
21563
|
if (s.recentProblems.length === 0 && s.recentResolved.length === 0 && s.recentConstraints.length === 0) {
|
|
21557
21564
|
lines.push("- _none yet \u2014 errata is still building its model_");
|
|
@@ -53236,7 +53243,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
53236
53243
|
}
|
|
53237
53244
|
|
|
53238
53245
|
// src/engine.ts
|
|
53239
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
53246
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.352" : "2.0.0-alpha.0";
|
|
53240
53247
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
53241
53248
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
53242
53249
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -53549,6 +53556,7 @@ function createWorkspaceEngine(opts) {
|
|
|
53549
53556
|
const REMOTE_REFRESH_MS = 5 * 6e4;
|
|
53550
53557
|
let ctxRefreshInFlight = false;
|
|
53551
53558
|
let ctxRefreshQueued = false;
|
|
53559
|
+
let lastSelfCiteSkips = 0;
|
|
53552
53560
|
const refreshContextNow = () => {
|
|
53553
53561
|
void refreshContextAsync().catch((err2) => {
|
|
53554
53562
|
console.warn("[errata] context refresh failed:", err2 instanceof Error ? err2.message : err2);
|
|
@@ -53578,7 +53586,8 @@ function createWorkspaceEngine(opts) {
|
|
|
53578
53586
|
reviewCount: pendingCount(paths),
|
|
53579
53587
|
reviewUiUrl: opts.reviewUrl(),
|
|
53580
53588
|
workingFile: workingFiles.mostRecent() ?? void 0,
|
|
53581
|
-
skills: readSkillManifest(paths.skillsManifest)
|
|
53589
|
+
skills: readSkillManifest(paths.skillsManifest),
|
|
53590
|
+
...lastSelfCiteSkips > 0 ? { selfCiteSkips: lastSelfCiteSkips } : {}
|
|
53582
53591
|
};
|
|
53583
53592
|
const prebuilt = passWorker ? await passWorker.snapshot(snapOpts).catch(() => null) : null;
|
|
53584
53593
|
const doneRender = prebuilt ? null : markPass(`context-render-inline:${profile.name}`);
|
|
@@ -54285,6 +54294,8 @@ function createWorkspaceEngine(opts) {
|
|
|
54285
54294
|
if (skipped > 0) {
|
|
54286
54295
|
console.log(`[errata] corroborate: ${skipped} skipped (this session authored the node)`);
|
|
54287
54296
|
appendWitnessLedger(paths.configDir, { ts: Date.now(), channel: "corroborate", clientSelfSkipped: skipped });
|
|
54297
|
+
lastSelfCiteSkips = skipped;
|
|
54298
|
+
refreshContextNow();
|
|
54288
54299
|
}
|
|
54289
54300
|
await sendWitnesses(
|
|
54290
54301
|
"corroborate",
|
package/package.json
CHANGED
package/pass-worker.mjs
CHANGED
|
@@ -26396,6 +26396,7 @@ function buildSnapshot(opts) {
|
|
|
26396
26396
|
recentResolved,
|
|
26397
26397
|
recentConstraints,
|
|
26398
26398
|
...causalNudge ? { causalNudge } : {},
|
|
26399
|
+
...opts.selfCiteSkips && opts.selfCiteSkips > 0 ? { selfCiteSkips: opts.selfCiteSkips } : {},
|
|
26399
26400
|
...domainNudge ? { domainNudge } : {},
|
|
26400
26401
|
motifs,
|
|
26401
26402
|
reviewCount: opts.reviewCount,
|