agent-recall-core 3.4.48 → 3.4.50
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/README.md +25 -0
- package/dist/digest/store.d.ts +15 -6
- package/dist/digest/store.d.ts.map +1 -1
- package/dist/digest/store.js +33 -20
- package/dist/digest/store.js.map +1 -1
- package/dist/embeddings/chunker.d.ts +102 -0
- package/dist/embeddings/chunker.d.ts.map +1 -0
- package/dist/embeddings/chunker.js +260 -0
- package/dist/embeddings/chunker.js.map +1 -0
- package/dist/embeddings/config.d.ts +93 -0
- package/dist/embeddings/config.d.ts.map +1 -0
- package/dist/embeddings/config.js +174 -0
- package/dist/embeddings/config.js.map +1 -0
- package/dist/embeddings/index-store.d.ts +61 -0
- package/dist/embeddings/index-store.d.ts.map +1 -0
- package/dist/embeddings/index-store.js +158 -0
- package/dist/embeddings/index-store.js.map +1 -0
- package/dist/embeddings/indexer.d.ts +75 -0
- package/dist/embeddings/indexer.d.ts.map +1 -0
- package/dist/embeddings/indexer.js +196 -0
- package/dist/embeddings/indexer.js.map +1 -0
- package/dist/embeddings/runtime.d.ts +66 -0
- package/dist/embeddings/runtime.d.ts.map +1 -0
- package/dist/embeddings/runtime.js +197 -0
- package/dist/embeddings/runtime.js.map +1 -0
- package/dist/helpers/associative-link.d.ts.map +1 -1
- package/dist/helpers/associative-link.js +26 -1
- package/dist/helpers/associative-link.js.map +1 -1
- package/dist/helpers/tokenize.d.ts +1 -0
- package/dist/helpers/tokenize.d.ts.map +1 -1
- package/dist/helpers/tokenize.js +18 -0
- package/dist/helpers/tokenize.js.map +1 -1
- package/dist/index.d.ts +27 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -5
- package/dist/index.js.map +1 -1
- package/dist/palace/awareness.d.ts +56 -10
- package/dist/palace/awareness.d.ts.map +1 -1
- package/dist/palace/awareness.js +279 -182
- package/dist/palace/awareness.js.map +1 -1
- package/dist/palace/consolidate.d.ts +1 -1
- package/dist/palace/consolidate.d.ts.map +1 -1
- package/dist/palace/consolidate.js +9 -9
- package/dist/palace/consolidate.js.map +1 -1
- package/dist/palace/decay-pass.d.ts +1 -1
- package/dist/palace/decay-pass.d.ts.map +1 -1
- package/dist/palace/decay-pass.js +2 -2
- package/dist/palace/decay-pass.js.map +1 -1
- package/dist/palace/fan-out.d.ts +1 -1
- package/dist/palace/fan-out.d.ts.map +1 -1
- package/dist/palace/fan-out.js +5 -5
- package/dist/palace/fan-out.js.map +1 -1
- package/dist/palace/index-manager.d.ts +1 -1
- package/dist/palace/index-manager.d.ts.map +1 -1
- package/dist/palace/index-manager.js +1 -1
- package/dist/palace/index-manager.js.map +1 -1
- package/dist/palace/insights-index.d.ts +19 -6
- package/dist/palace/insights-index.d.ts.map +1 -1
- package/dist/palace/insights-index.js +36 -13
- package/dist/palace/insights-index.js.map +1 -1
- package/dist/palace/keystone.d.ts +1 -1
- package/dist/palace/keystone.d.ts.map +1 -1
- package/dist/palace/keystone.js +2 -2
- package/dist/palace/keystone.js.map +1 -1
- package/dist/palace/rooms.d.ts +3 -3
- package/dist/palace/rooms.d.ts.map +1 -1
- package/dist/palace/rooms.js +34 -6
- package/dist/palace/rooms.js.map +1 -1
- package/dist/prompts/consolidation-prompt.d.ts.map +1 -1
- package/dist/prompts/consolidation-prompt.js +5 -0
- package/dist/prompts/consolidation-prompt.js.map +1 -1
- package/dist/retrieval/candidates.d.ts.map +1 -1
- package/dist/retrieval/candidates.js +17 -2
- package/dist/retrieval/candidates.js.map +1 -1
- package/dist/retrieval/query-memory.d.ts +65 -7
- package/dist/retrieval/query-memory.d.ts.map +1 -1
- package/dist/retrieval/query-memory.js +518 -78
- package/dist/retrieval/query-memory.js.map +1 -1
- package/dist/retrieval/semantic-leg.d.ts +74 -0
- package/dist/retrieval/semantic-leg.d.ts.map +1 -0
- package/dist/retrieval/semantic-leg.js +180 -0
- package/dist/retrieval/semantic-leg.js.map +1 -0
- package/dist/storage/archive-write.d.ts.map +1 -1
- package/dist/storage/archive-write.js +29 -8
- package/dist/storage/archive-write.js.map +1 -1
- package/dist/storage/capture-router.d.ts +1 -1
- package/dist/storage/capture-router.d.ts.map +1 -1
- package/dist/storage/capture-router.js +26 -9
- package/dist/storage/capture-router.js.map +1 -1
- package/dist/storage/consolidation-queue.d.ts +11 -2
- package/dist/storage/consolidation-queue.d.ts.map +1 -1
- package/dist/storage/consolidation-queue.js +45 -16
- package/dist/storage/consolidation-queue.js.map +1 -1
- package/dist/storage/corrections.d.ts +53 -5
- package/dist/storage/corrections.d.ts.map +1 -1
- package/dist/storage/corrections.js +412 -124
- package/dist/storage/corrections.js.map +1 -1
- package/dist/storage/dream-health.d.ts +56 -8
- package/dist/storage/dream-health.d.ts.map +1 -1
- package/dist/storage/dream-health.js +130 -35
- package/dist/storage/dream-health.js.map +1 -1
- package/dist/storage/dream-yield.d.ts +81 -0
- package/dist/storage/dream-yield.d.ts.map +1 -0
- package/dist/storage/dream-yield.js +77 -0
- package/dist/storage/dream-yield.js.map +1 -0
- package/dist/storage/durable-intent.d.ts.map +1 -1
- package/dist/storage/durable-intent.js +24 -1
- package/dist/storage/durable-intent.js.map +1 -1
- package/dist/storage/filelock.d.ts +92 -12
- package/dist/storage/filelock.d.ts.map +1 -1
- package/dist/storage/filelock.js +317 -47
- package/dist/storage/filelock.js.map +1 -1
- package/dist/storage/fs-utils.d.ts +20 -0
- package/dist/storage/fs-utils.d.ts.map +1 -1
- package/dist/storage/fs-utils.js +27 -0
- package/dist/storage/fs-utils.js.map +1 -1
- package/dist/storage/paths.d.ts +34 -0
- package/dist/storage/paths.d.ts.map +1 -1
- package/dist/storage/paths.js +71 -0
- package/dist/storage/paths.js.map +1 -1
- package/dist/storage/pending.d.ts +154 -0
- package/dist/storage/pending.d.ts.map +1 -0
- package/dist/storage/pending.js +454 -0
- package/dist/storage/pending.js.map +1 -0
- package/dist/storage/project.d.ts.map +1 -1
- package/dist/storage/project.js +68 -16
- package/dist/storage/project.js.map +1 -1
- package/dist/storage/session-card.d.ts +13 -0
- package/dist/storage/session-card.d.ts.map +1 -1
- package/dist/storage/session-card.js +34 -3
- package/dist/storage/session-card.js.map +1 -1
- package/dist/storage/unclaimed.d.ts +165 -0
- package/dist/storage/unclaimed.d.ts.map +1 -0
- package/dist/storage/unclaimed.js +442 -0
- package/dist/storage/unclaimed.js.map +1 -0
- package/dist/storage/working-memory.d.ts.map +1 -1
- package/dist/storage/working-memory.js +19 -1
- package/dist/storage/working-memory.js.map +1 -1
- package/dist/supabase/recall-backend.d.ts +28 -2
- package/dist/supabase/recall-backend.d.ts.map +1 -1
- package/dist/supabase/recall-backend.js +80 -23
- package/dist/supabase/recall-backend.js.map +1 -1
- package/dist/supabase/sync.d.ts.map +1 -1
- package/dist/supabase/sync.js +13 -0
- package/dist/supabase/sync.js.map +1 -1
- package/dist/tools-logic/alignment-check.js +1 -1
- package/dist/tools-logic/alignment-check.js.map +1 -1
- package/dist/tools-logic/awareness-update.d.ts.map +1 -1
- package/dist/tools-logic/awareness-update.js +25 -16
- package/dist/tools-logic/awareness-update.js.map +1 -1
- package/dist/tools-logic/check-action.js +1 -1
- package/dist/tools-logic/check-action.js.map +1 -1
- package/dist/tools-logic/check.d.ts +55 -1
- package/dist/tools-logic/check.d.ts.map +1 -1
- package/dist/tools-logic/check.js +230 -57
- package/dist/tools-logic/check.js.map +1 -1
- package/dist/tools-logic/confidence.d.ts +11 -6
- package/dist/tools-logic/confidence.d.ts.map +1 -1
- package/dist/tools-logic/confidence.js +11 -6
- package/dist/tools-logic/confidence.js.map +1 -1
- package/dist/tools-logic/context-synthesize.js +2 -2
- package/dist/tools-logic/context-synthesize.js.map +1 -1
- package/dist/tools-logic/digest-read.js +2 -2
- package/dist/tools-logic/digest-read.js.map +1 -1
- package/dist/tools-logic/digest-recall.js +1 -1
- package/dist/tools-logic/digest-recall.js.map +1 -1
- package/dist/tools-logic/dream-admission.d.ts +144 -0
- package/dist/tools-logic/dream-admission.d.ts.map +1 -0
- package/dist/tools-logic/dream-admission.js +537 -0
- package/dist/tools-logic/dream-admission.js.map +1 -0
- package/dist/tools-logic/insight-promotion.d.ts +19 -1
- package/dist/tools-logic/insight-promotion.d.ts.map +1 -1
- package/dist/tools-logic/insight-promotion.js +48 -14
- package/dist/tools-logic/insight-promotion.js.map +1 -1
- package/dist/tools-logic/journal-capture.js +3 -3
- package/dist/tools-logic/journal-capture.js.map +1 -1
- package/dist/tools-logic/journal-write.js +3 -3
- package/dist/tools-logic/journal-write.js.map +1 -1
- package/dist/tools-logic/knowledge-write.js +2 -2
- package/dist/tools-logic/knowledge-write.js.map +1 -1
- package/dist/tools-logic/palace-lint.js +1 -1
- package/dist/tools-logic/palace-lint.js.map +1 -1
- package/dist/tools-logic/palace-read.js +1 -1
- package/dist/tools-logic/palace-read.js.map +1 -1
- package/dist/tools-logic/palace-search.js +1 -1
- package/dist/tools-logic/palace-search.js.map +1 -1
- package/dist/tools-logic/palace-walk.js +3 -3
- package/dist/tools-logic/palace-walk.js.map +1 -1
- package/dist/tools-logic/palace-write.js +4 -4
- package/dist/tools-logic/palace-write.js.map +1 -1
- package/dist/tools-logic/predict-correction.js +1 -1
- package/dist/tools-logic/predict-correction.js.map +1 -1
- package/dist/tools-logic/recall-backend.d.ts +11 -2
- package/dist/tools-logic/recall-backend.d.ts.map +1 -1
- package/dist/tools-logic/recall-backend.js +2 -2
- package/dist/tools-logic/recall-backend.js.map +1 -1
- package/dist/tools-logic/resurrect.d.ts.map +1 -1
- package/dist/tools-logic/resurrect.js +9 -1
- package/dist/tools-logic/resurrect.js.map +1 -1
- package/dist/tools-logic/safety-consolidation.d.ts +15 -0
- package/dist/tools-logic/safety-consolidation.d.ts.map +1 -1
- package/dist/tools-logic/safety-consolidation.js +44 -31
- package/dist/tools-logic/safety-consolidation.js.map +1 -1
- package/dist/tools-logic/session-end-reflect.d.ts.map +1 -1
- package/dist/tools-logic/session-end-reflect.js +4 -1
- package/dist/tools-logic/session-end-reflect.js.map +1 -1
- package/dist/tools-logic/session-end.d.ts +8 -0
- package/dist/tools-logic/session-end.d.ts.map +1 -1
- package/dist/tools-logic/session-end.js +51 -13
- package/dist/tools-logic/session-end.js.map +1 -1
- package/dist/tools-logic/session-start.d.ts +23 -0
- package/dist/tools-logic/session-start.d.ts.map +1 -1
- package/dist/tools-logic/session-start.js +44 -1
- package/dist/tools-logic/session-start.js.map +1 -1
- package/dist/tools-logic/smart-recall.d.ts +185 -10
- package/dist/tools-logic/smart-recall.d.ts.map +1 -1
- package/dist/tools-logic/smart-recall.js +363 -85
- package/dist/tools-logic/smart-recall.js.map +1 -1
- package/dist/tools-logic/store-doctor.d.ts.map +1 -1
- package/dist/tools-logic/store-doctor.js +14 -5
- package/dist/tools-logic/store-doctor.js.map +1 -1
- package/dist/tools-logic/store-repair.js +1 -1
- package/dist/tools-logic/store-repair.js.map +1 -1
- package/dist/tools-logic/supersession.d.ts +1 -1
- package/dist/tools-logic/supersession.d.ts.map +1 -1
- package/dist/tools-logic/supersession.js +2 -2
- package/dist/tools-logic/supersession.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/vector/embedding.d.ts +8 -0
- package/dist/vector/embedding.d.ts.map +1 -1
- package/dist/vector/embedding.js +8 -0
- package/dist/vector/embedding.js.map +1 -1
- package/package.json +1 -1
package/dist/storage/paths.js
CHANGED
|
@@ -9,6 +9,59 @@ import * as fs from "node:fs";
|
|
|
9
9
|
import * as path from "node:path";
|
|
10
10
|
import { getRoot, getLegacyRoot } from "../types.js";
|
|
11
11
|
import { sanitizeName } from "./sanitize.js";
|
|
12
|
+
import { getSessionId } from "./session.js";
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
// _unclaimed staging namespace (fix5, 2026-09-11 — eval-standard S5 plan #5)
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
/**
|
|
17
|
+
* Root-level staging namespace for writes whose project resolution FAILED or
|
|
18
|
+
* carried zero confidence. Lives at `<AR_ROOT>/_unclaimed/` — deliberately a
|
|
19
|
+
* SIBLING of `projects/`, never inside it, so every scan that enumerates
|
|
20
|
+
* `projects/` (recall corpus, listAllProjects, the scoreboard script's
|
|
21
|
+
* ghost-dir census, ar-sync-status.py's wholesale registry regen) is
|
|
22
|
+
* structurally blind to it. The leading `_` is the same BY-NAME reserved-
|
|
23
|
+
* namespace convention the rest of the store already uses for infrastructure
|
|
24
|
+
* (`_index.md`, `_archive/`, fix4's `_pending/`/`_quarantine/` class):
|
|
25
|
+
* class-not-instance — one underscore rule, not one branch per known dir.
|
|
26
|
+
*/
|
|
27
|
+
export const UNCLAIMED_DIRNAME = "_unclaimed";
|
|
28
|
+
/**
|
|
29
|
+
* The staging SENTINEL slug `resolveProject()` returns when resolution fails
|
|
30
|
+
* (blocked cwd, deny-listed detection, zero-confidence guess). It is NOT a
|
|
31
|
+
* valid project slug on purpose (`isValidProjectSlug` rejects the `_`
|
|
32
|
+
* prefix), so nothing downstream can register it into a cwd-allowlist or
|
|
33
|
+
* treat it as a real project — and `projectSubPath()` below routes every
|
|
34
|
+
* path built for it into `_unclaimed/<session>/` instead of `projects/`,
|
|
35
|
+
* which is the single choke point that closes ALL ~20 project-dir writers
|
|
36
|
+
* at once (journal, palace, corrections, digest, handoff, …) without
|
|
37
|
+
* per-writer gates.
|
|
38
|
+
*/
|
|
39
|
+
export const UNCLAIMED_PROJECT = "_unclaimed";
|
|
40
|
+
/** Is this slug the staging sentinel? (Exact match — never a prefix test.) */
|
|
41
|
+
export function isUnclaimedProject(project) {
|
|
42
|
+
return project === UNCLAIMED_PROJECT;
|
|
43
|
+
}
|
|
44
|
+
/** `<AR_ROOT>/_unclaimed` — the staging namespace root. */
|
|
45
|
+
export function unclaimedRootDir() {
|
|
46
|
+
return path.join(getRoot(), UNCLAIMED_DIRNAME);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Per-session staging subdir: `<AR_ROOT>/_unclaimed/<sid>`. `sid` is
|
|
50
|
+
* UNTRUSTED (may arrive from hook stdin) → sanitized with the same
|
|
51
|
+
* `sanitizeSlug` grammar every other sid-derived path in this package uses.
|
|
52
|
+
*/
|
|
53
|
+
export function unclaimedSessionDir(sid) {
|
|
54
|
+
// fix5 review LOW-6 (2026-09-11): `sanitizeSlug` preserves leading
|
|
55
|
+
// underscores, so a hook-stdin sid like "_archive" would stage INTO the
|
|
56
|
+
// reserved `_`-prefixed infrastructure namespace — excluded BY NAME from
|
|
57
|
+
// session enumeration, hence invisible to the count line, `ar claim
|
|
58
|
+
// --list`, and the TTL sweep forever (a silent hiding spot). Strip the
|
|
59
|
+
// reserved prefix so every staged session dir is enumerable.
|
|
60
|
+
const safe = sanitizeSlug(sid).replace(/^[_.]+/, "") || "unnamed";
|
|
61
|
+
const resolved = path.join(unclaimedRootDir(), safe);
|
|
62
|
+
assertInsideRoot(resolved, getRoot(), `_unclaimed/${sid}`);
|
|
63
|
+
return resolved;
|
|
64
|
+
}
|
|
12
65
|
/**
|
|
13
66
|
* Sanitize a project name for safe use in path.join().
|
|
14
67
|
*
|
|
@@ -162,6 +215,24 @@ export function projectsRootDir() {
|
|
|
162
215
|
* root directory (`projects/<safe>`).
|
|
163
216
|
*/
|
|
164
217
|
export function projectSubPath(project, ...segments) {
|
|
218
|
+
// fix5 (2026-09-11) — staging-sentinel routing. This is THE creation-
|
|
219
|
+
// invariant choke point: every project-dir writer in this package builds
|
|
220
|
+
// its paths here (the F2 projects-literal guard forbids bypassing it), so
|
|
221
|
+
// routing the sentinel to `_unclaimed/<session>/` at this single seam
|
|
222
|
+
// means a failed/zero-confidence resolution can never mkdir
|
|
223
|
+
// `projects/<garbage>` through ANY of them — journal, palace, corrections,
|
|
224
|
+
// digest, handoff, all covered at once, including writers added later.
|
|
225
|
+
// Reads route identically, so a staged session's own write→read round trip
|
|
226
|
+
// (remember → recall within one unresolved session) keeps working.
|
|
227
|
+
//
|
|
228
|
+
// Deliberately NOT `sanitizeProject`-first: `sanitizeName` strips the `_`
|
|
229
|
+
// prefix ("_unclaimed" → "unclaimed"), which would silently mint a
|
|
230
|
+
// projects/unclaimed/ dir — exactly the class this sentinel exists to kill.
|
|
231
|
+
if (isUnclaimedProject(project)) {
|
|
232
|
+
const resolved = path.join(unclaimedSessionDir(getSessionId()), ...segments);
|
|
233
|
+
assertInsideRoot(resolved, getRoot(), project);
|
|
234
|
+
return resolved;
|
|
235
|
+
}
|
|
165
236
|
const root = getRoot();
|
|
166
237
|
const safe = resolveProjectDirName(root, project);
|
|
167
238
|
const resolved = path.join(root, PROJECTS_DIRNAME, safe, ...segments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/storage/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/storage/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE9C,8EAA8E;AAC9E,MAAM,UAAU,kBAAkB,C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AAO,IAAI,IAAI,SAAS,CAAC;AAC3B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,OAAe;IACvC,OAAO,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,OAAO,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,eAAe,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pending-corrections staging store — Fix #2 (dual-channel capture gate,
|
|
3
|
+
* 2026-09-11).
|
|
4
|
+
*
|
|
5
|
+
* Storage: ~/.agent-recall/projects/{project}/corrections/_pending/
|
|
6
|
+
* {id}.json — staged captures awaiting review
|
|
7
|
+
* _rejected.jsonl — hard-noise drops, cap evictions, TTL expiries, and
|
|
8
|
+
* explicit review rejections (append-only, capped)
|
|
9
|
+
* _resolved.jsonl — promotion audit trail (append-only, capped)
|
|
10
|
+
*
|
|
11
|
+
* WHY THIS EXISTS: every low-trust capture channel — check()'s legacy STRING
|
|
12
|
+
* human_correction, the CLI hook channel (correction-detector /
|
|
13
|
+
* hook-correction), and session_end insights that fail completeness
|
|
14
|
+
* validation — stages HERE instead of the active corrections ledger. The
|
|
15
|
+
* active ledger is reachable ONLY through check()'s validated STRUCTURED
|
|
16
|
+
* form {rule, why, applies_when} (or an explicit promote of a staged item).
|
|
17
|
+
*
|
|
18
|
+
* INVARIANTS
|
|
19
|
+
* - Nothing is silently dropped: a capture either becomes a *.json row here
|
|
20
|
+
* or an audit line in _rejected.jsonl, always with provenance.
|
|
21
|
+
* - Pending content NEVER enters the recall corpus, watch_for, session_start
|
|
22
|
+
* corrections, or any retrieval surface until promoted. Structurally
|
|
23
|
+
* guaranteed: readCorrections() readdirs the corrections dir non-recursively
|
|
24
|
+
* and `_pending` is a subdirectory (not a *.json file), so every existing
|
|
25
|
+
* reader skips it without modification.
|
|
26
|
+
* - Capped (PENDING_CAP) + TTL'd (PENDING_TTL_DAYS): the staging area can
|
|
27
|
+
* never grow unbounded; evictions/expiries are logged, not vanished.
|
|
28
|
+
* - Scrub-on-write: rows are written through corrections.ts's exported
|
|
29
|
+
* writeRecordAtomic — the SAME scrubForCloud choke point the active
|
|
30
|
+
* ledger uses (rider R2a) — and filenames derive from the already-scrubbed
|
|
31
|
+
* rule, mirroring writeCorrection's filename-leak fix.
|
|
32
|
+
* - Dedupe by DISTILLED rule identity (distillRuleIdentity — CJK-aware):
|
|
33
|
+
* a verbatim/reworded repeat bumps seen_count on the existing row instead
|
|
34
|
+
* of fanning out (the ×34 repeat exemplar dedupes to one row). seen_count
|
|
35
|
+
* is a pending-side visibility counter ONLY — it is never copied into
|
|
36
|
+
* proof_count on promote (proof accrual restarts from the active ledger's
|
|
37
|
+
* own consolidation rules).
|
|
38
|
+
*/
|
|
39
|
+
/** Hard cap on staged rows per project — oldest are evicted (logged) beyond it. */
|
|
40
|
+
export declare const PENDING_CAP = 200;
|
|
41
|
+
/** Days a staged row may await review before it expires (logged, pruned). */
|
|
42
|
+
export declare const PENDING_TTL_DAYS = 14;
|
|
43
|
+
export type PendingKind = "correction" | "insight";
|
|
44
|
+
export type PendingChannel = "check_string" | "check_structured_incomplete" | "hook" | "session_end_insight";
|
|
45
|
+
export interface PendingRecord {
|
|
46
|
+
id: string;
|
|
47
|
+
ts: string;
|
|
48
|
+
last_seen: string;
|
|
49
|
+
seen_count: number;
|
|
50
|
+
project: string;
|
|
51
|
+
kind: PendingKind;
|
|
52
|
+
channel: PendingChannel;
|
|
53
|
+
rule: string;
|
|
54
|
+
context: string;
|
|
55
|
+
severity: "p0" | "p1";
|
|
56
|
+
applies_when?: string[];
|
|
57
|
+
reason: string;
|
|
58
|
+
provenance: {
|
|
59
|
+
source: string;
|
|
60
|
+
mode: "told" | "observed";
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface StagePendingInput {
|
|
64
|
+
kind: PendingKind;
|
|
65
|
+
channel: PendingChannel;
|
|
66
|
+
/** Full captured text (becomes `context`; `rule` derives from it unless given). */
|
|
67
|
+
text: string;
|
|
68
|
+
/** Explicit title/rule (insights pass their title). */
|
|
69
|
+
rule?: string;
|
|
70
|
+
applies_when?: string[];
|
|
71
|
+
/** Why this capture is pending (validation failures, "string form", ...). */
|
|
72
|
+
reason: string;
|
|
73
|
+
/** Provenance source — session id / hook name. Defaults to the channel. */
|
|
74
|
+
source?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface StagePendingResult {
|
|
77
|
+
staged: boolean;
|
|
78
|
+
id?: string;
|
|
79
|
+
/** True when the capture folded into an existing staged row (seen_count++). */
|
|
80
|
+
merged?: boolean;
|
|
81
|
+
/** True when the capture was hard-noise and went straight to _rejected.jsonl. */
|
|
82
|
+
rejected?: boolean;
|
|
83
|
+
reason?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ResolvePendingResult {
|
|
86
|
+
success: boolean;
|
|
87
|
+
error?: string;
|
|
88
|
+
record?: PendingRecord;
|
|
89
|
+
}
|
|
90
|
+
export declare function pendingDir(project: string): string;
|
|
91
|
+
/**
|
|
92
|
+
* List staged rows, newest (last_seen) first. Runs the TTL/cap sweep first so
|
|
93
|
+
* a reader never sees an expired row. Never throws.
|
|
94
|
+
*/
|
|
95
|
+
export declare function listPendingCorrections(project: string): Promise<PendingRecord[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Stage a capture into _pending/. Hard-noise input (corrections.ts's
|
|
98
|
+
* dropHardNoise floor, checked on rule AND context) goes straight to
|
|
99
|
+
* _rejected.jsonl with provenance — it is not worth a review row, but it is
|
|
100
|
+
* never silently dropped. Repeats (same distilled rule identity, same kind)
|
|
101
|
+
* fold into the existing row (seen_count++).
|
|
102
|
+
*/
|
|
103
|
+
export declare function stagePendingCorrection(project: string, input: StagePendingInput): Promise<StagePendingResult>;
|
|
104
|
+
/**
|
|
105
|
+
* Resolve a staged row by id. "promote" removes the row and writes a
|
|
106
|
+
* promotion audit line (the ACTIVE write itself is the caller's job — check()
|
|
107
|
+
* runs the validated structured write first, then resolves). "reject" removes
|
|
108
|
+
* the row and appends it to _rejected.jsonl with the reviewer's reason.
|
|
109
|
+
*/
|
|
110
|
+
export declare function resolvePendingCorrection(project: string, id: string, action: "promote" | "reject", detail?: {
|
|
111
|
+
reason?: string;
|
|
112
|
+
correction_id?: string;
|
|
113
|
+
}): Promise<ResolvePendingResult>;
|
|
114
|
+
export interface CompletenessFailure {
|
|
115
|
+
field: "rule" | "title" | "why" | "evidence" | "applies_when";
|
|
116
|
+
reason: string;
|
|
117
|
+
}
|
|
118
|
+
export interface CompletenessResult {
|
|
119
|
+
ok: boolean;
|
|
120
|
+
failures: CompletenessFailure[];
|
|
121
|
+
/** Present when !ok — tells the caller exactly how to restructure. */
|
|
122
|
+
agent_instruction?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* True when `token` is a REAL context keyword: non-empty, no stray edge
|
|
126
|
+
* punctuation, not a bare connective/filler, not a single ASCII character.
|
|
127
|
+
* Multi-word phrases ("rate limiting") qualify when at least one word is
|
|
128
|
+
* real; CJK entries qualify on Han content.
|
|
129
|
+
*/
|
|
130
|
+
export declare function isRealAppliesWhenToken(token: string): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* L1 — check()'s structured human_correction {rule, why, applies_when}.
|
|
133
|
+
* rule must be an actionable IMPERATIVE rule sentence (the same
|
|
134
|
+
* isLikelyRealCorrection classifier the capture gate runs — a question or
|
|
135
|
+
* business/status sentence fails); why must be non-empty; applies_when must
|
|
136
|
+
* be real tokens.
|
|
137
|
+
*/
|
|
138
|
+
export declare function validateStructuredCorrection(candidate: {
|
|
139
|
+
rule?: string;
|
|
140
|
+
why?: string;
|
|
141
|
+
applies_when?: string[];
|
|
142
|
+
}): CompletenessResult;
|
|
143
|
+
/**
|
|
144
|
+
* L2 — session_end insights. Same completeness bar, calibrated for insight
|
|
145
|
+
* titles: a FULL-SENTENCE title (≥20 chars, ≥3 content tokens — declarative
|
|
146
|
+
* pattern statements qualify; fragments like "fixed bug" do not), non-empty
|
|
147
|
+
* evidence, and real applies_when tokens.
|
|
148
|
+
*/
|
|
149
|
+
export declare function validateInsightCompleteness(insight: {
|
|
150
|
+
title: string;
|
|
151
|
+
evidence: string;
|
|
152
|
+
applies_when: string[];
|
|
153
|
+
}): CompletenessResult;
|
|
154
|
+
//# sourceMappingURL=pending.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending.d.ts","sourceRoot":"","sources":["../../src/storage/pending.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAyBH,mFAAmF;AACnF,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,6EAA6E;AAC7E,eAAO,MAAM,gBAAgB,KAAK,CAAC;AASnC,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;AAEnD,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,6BAA6B,GAC7B,MAAM,GACN,qBAAqB,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAA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