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.
Files changed (234) hide show
  1. package/README.md +25 -0
  2. package/dist/digest/store.d.ts +15 -6
  3. package/dist/digest/store.d.ts.map +1 -1
  4. package/dist/digest/store.js +33 -20
  5. package/dist/digest/store.js.map +1 -1
  6. package/dist/embeddings/chunker.d.ts +102 -0
  7. package/dist/embeddings/chunker.d.ts.map +1 -0
  8. package/dist/embeddings/chunker.js +260 -0
  9. package/dist/embeddings/chunker.js.map +1 -0
  10. package/dist/embeddings/config.d.ts +93 -0
  11. package/dist/embeddings/config.d.ts.map +1 -0
  12. package/dist/embeddings/config.js +174 -0
  13. package/dist/embeddings/config.js.map +1 -0
  14. package/dist/embeddings/index-store.d.ts +61 -0
  15. package/dist/embeddings/index-store.d.ts.map +1 -0
  16. package/dist/embeddings/index-store.js +158 -0
  17. package/dist/embeddings/index-store.js.map +1 -0
  18. package/dist/embeddings/indexer.d.ts +75 -0
  19. package/dist/embeddings/indexer.d.ts.map +1 -0
  20. package/dist/embeddings/indexer.js +196 -0
  21. package/dist/embeddings/indexer.js.map +1 -0
  22. package/dist/embeddings/runtime.d.ts +66 -0
  23. package/dist/embeddings/runtime.d.ts.map +1 -0
  24. package/dist/embeddings/runtime.js +197 -0
  25. package/dist/embeddings/runtime.js.map +1 -0
  26. package/dist/helpers/associative-link.d.ts.map +1 -1
  27. package/dist/helpers/associative-link.js +26 -1
  28. package/dist/helpers/associative-link.js.map +1 -1
  29. package/dist/helpers/tokenize.d.ts +1 -0
  30. package/dist/helpers/tokenize.d.ts.map +1 -1
  31. package/dist/helpers/tokenize.js +18 -0
  32. package/dist/helpers/tokenize.js.map +1 -1
  33. package/dist/index.d.ts +27 -7
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +42 -5
  36. package/dist/index.js.map +1 -1
  37. package/dist/palace/awareness.d.ts +56 -10
  38. package/dist/palace/awareness.d.ts.map +1 -1
  39. package/dist/palace/awareness.js +279 -182
  40. package/dist/palace/awareness.js.map +1 -1
  41. package/dist/palace/consolidate.d.ts +1 -1
  42. package/dist/palace/consolidate.d.ts.map +1 -1
  43. package/dist/palace/consolidate.js +9 -9
  44. package/dist/palace/consolidate.js.map +1 -1
  45. package/dist/palace/decay-pass.d.ts +1 -1
  46. package/dist/palace/decay-pass.d.ts.map +1 -1
  47. package/dist/palace/decay-pass.js +2 -2
  48. package/dist/palace/decay-pass.js.map +1 -1
  49. package/dist/palace/fan-out.d.ts +1 -1
  50. package/dist/palace/fan-out.d.ts.map +1 -1
  51. package/dist/palace/fan-out.js +5 -5
  52. package/dist/palace/fan-out.js.map +1 -1
  53. package/dist/palace/index-manager.d.ts +1 -1
  54. package/dist/palace/index-manager.d.ts.map +1 -1
  55. package/dist/palace/index-manager.js +1 -1
  56. package/dist/palace/index-manager.js.map +1 -1
  57. package/dist/palace/insights-index.d.ts +19 -6
  58. package/dist/palace/insights-index.d.ts.map +1 -1
  59. package/dist/palace/insights-index.js +36 -13
  60. package/dist/palace/insights-index.js.map +1 -1
  61. package/dist/palace/keystone.d.ts +1 -1
  62. package/dist/palace/keystone.d.ts.map +1 -1
  63. package/dist/palace/keystone.js +2 -2
  64. package/dist/palace/keystone.js.map +1 -1
  65. package/dist/palace/rooms.d.ts +3 -3
  66. package/dist/palace/rooms.d.ts.map +1 -1
  67. package/dist/palace/rooms.js +34 -6
  68. package/dist/palace/rooms.js.map +1 -1
  69. package/dist/prompts/consolidation-prompt.d.ts.map +1 -1
  70. package/dist/prompts/consolidation-prompt.js +5 -0
  71. package/dist/prompts/consolidation-prompt.js.map +1 -1
  72. package/dist/retrieval/candidates.d.ts.map +1 -1
  73. package/dist/retrieval/candidates.js +17 -2
  74. package/dist/retrieval/candidates.js.map +1 -1
  75. package/dist/retrieval/query-memory.d.ts +65 -7
  76. package/dist/retrieval/query-memory.d.ts.map +1 -1
  77. package/dist/retrieval/query-memory.js +518 -78
  78. package/dist/retrieval/query-memory.js.map +1 -1
  79. package/dist/retrieval/semantic-leg.d.ts +74 -0
  80. package/dist/retrieval/semantic-leg.d.ts.map +1 -0
  81. package/dist/retrieval/semantic-leg.js +180 -0
  82. package/dist/retrieval/semantic-leg.js.map +1 -0
  83. package/dist/storage/archive-write.d.ts.map +1 -1
  84. package/dist/storage/archive-write.js +29 -8
  85. package/dist/storage/archive-write.js.map +1 -1
  86. package/dist/storage/capture-router.d.ts +1 -1
  87. package/dist/storage/capture-router.d.ts.map +1 -1
  88. package/dist/storage/capture-router.js +26 -9
  89. package/dist/storage/capture-router.js.map +1 -1
  90. package/dist/storage/consolidation-queue.d.ts +11 -2
  91. package/dist/storage/consolidation-queue.d.ts.map +1 -1
  92. package/dist/storage/consolidation-queue.js +45 -16
  93. package/dist/storage/consolidation-queue.js.map +1 -1
  94. package/dist/storage/corrections.d.ts +53 -5
  95. package/dist/storage/corrections.d.ts.map +1 -1
  96. package/dist/storage/corrections.js +412 -124
  97. package/dist/storage/corrections.js.map +1 -1
  98. package/dist/storage/dream-health.d.ts +56 -8
  99. package/dist/storage/dream-health.d.ts.map +1 -1
  100. package/dist/storage/dream-health.js +130 -35
  101. package/dist/storage/dream-health.js.map +1 -1
  102. package/dist/storage/dream-yield.d.ts +81 -0
  103. package/dist/storage/dream-yield.d.ts.map +1 -0
  104. package/dist/storage/dream-yield.js +77 -0
  105. package/dist/storage/dream-yield.js.map +1 -0
  106. package/dist/storage/durable-intent.d.ts.map +1 -1
  107. package/dist/storage/durable-intent.js +24 -1
  108. package/dist/storage/durable-intent.js.map +1 -1
  109. package/dist/storage/filelock.d.ts +92 -12
  110. package/dist/storage/filelock.d.ts.map +1 -1
  111. package/dist/storage/filelock.js +317 -47
  112. package/dist/storage/filelock.js.map +1 -1
  113. package/dist/storage/fs-utils.d.ts +20 -0
  114. package/dist/storage/fs-utils.d.ts.map +1 -1
  115. package/dist/storage/fs-utils.js +27 -0
  116. package/dist/storage/fs-utils.js.map +1 -1
  117. package/dist/storage/paths.d.ts +34 -0
  118. package/dist/storage/paths.d.ts.map +1 -1
  119. package/dist/storage/paths.js +71 -0
  120. package/dist/storage/paths.js.map +1 -1
  121. package/dist/storage/pending.d.ts +154 -0
  122. package/dist/storage/pending.d.ts.map +1 -0
  123. package/dist/storage/pending.js +454 -0
  124. package/dist/storage/pending.js.map +1 -0
  125. package/dist/storage/project.d.ts.map +1 -1
  126. package/dist/storage/project.js +68 -16
  127. package/dist/storage/project.js.map +1 -1
  128. package/dist/storage/session-card.d.ts +13 -0
  129. package/dist/storage/session-card.d.ts.map +1 -1
  130. package/dist/storage/session-card.js +34 -3
  131. package/dist/storage/session-card.js.map +1 -1
  132. package/dist/storage/unclaimed.d.ts +165 -0
  133. package/dist/storage/unclaimed.d.ts.map +1 -0
  134. package/dist/storage/unclaimed.js +442 -0
  135. package/dist/storage/unclaimed.js.map +1 -0
  136. package/dist/storage/working-memory.d.ts.map +1 -1
  137. package/dist/storage/working-memory.js +19 -1
  138. package/dist/storage/working-memory.js.map +1 -1
  139. package/dist/supabase/recall-backend.d.ts +28 -2
  140. package/dist/supabase/recall-backend.d.ts.map +1 -1
  141. package/dist/supabase/recall-backend.js +80 -23
  142. package/dist/supabase/recall-backend.js.map +1 -1
  143. package/dist/supabase/sync.d.ts.map +1 -1
  144. package/dist/supabase/sync.js +13 -0
  145. package/dist/supabase/sync.js.map +1 -1
  146. package/dist/tools-logic/alignment-check.js +1 -1
  147. package/dist/tools-logic/alignment-check.js.map +1 -1
  148. package/dist/tools-logic/awareness-update.d.ts.map +1 -1
  149. package/dist/tools-logic/awareness-update.js +25 -16
  150. package/dist/tools-logic/awareness-update.js.map +1 -1
  151. package/dist/tools-logic/check-action.js +1 -1
  152. package/dist/tools-logic/check-action.js.map +1 -1
  153. package/dist/tools-logic/check.d.ts +55 -1
  154. package/dist/tools-logic/check.d.ts.map +1 -1
  155. package/dist/tools-logic/check.js +230 -57
  156. package/dist/tools-logic/check.js.map +1 -1
  157. package/dist/tools-logic/confidence.d.ts +11 -6
  158. package/dist/tools-logic/confidence.d.ts.map +1 -1
  159. package/dist/tools-logic/confidence.js +11 -6
  160. package/dist/tools-logic/confidence.js.map +1 -1
  161. package/dist/tools-logic/context-synthesize.js +2 -2
  162. package/dist/tools-logic/context-synthesize.js.map +1 -1
  163. package/dist/tools-logic/digest-read.js +2 -2
  164. package/dist/tools-logic/digest-read.js.map +1 -1
  165. package/dist/tools-logic/digest-recall.js +1 -1
  166. package/dist/tools-logic/digest-recall.js.map +1 -1
  167. package/dist/tools-logic/dream-admission.d.ts +144 -0
  168. package/dist/tools-logic/dream-admission.d.ts.map +1 -0
  169. package/dist/tools-logic/dream-admission.js +537 -0
  170. package/dist/tools-logic/dream-admission.js.map +1 -0
  171. package/dist/tools-logic/insight-promotion.d.ts +19 -1
  172. package/dist/tools-logic/insight-promotion.d.ts.map +1 -1
  173. package/dist/tools-logic/insight-promotion.js +48 -14
  174. package/dist/tools-logic/insight-promotion.js.map +1 -1
  175. package/dist/tools-logic/journal-capture.js +3 -3
  176. package/dist/tools-logic/journal-capture.js.map +1 -1
  177. package/dist/tools-logic/journal-write.js +3 -3
  178. package/dist/tools-logic/journal-write.js.map +1 -1
  179. package/dist/tools-logic/knowledge-write.js +2 -2
  180. package/dist/tools-logic/knowledge-write.js.map +1 -1
  181. package/dist/tools-logic/palace-lint.js +1 -1
  182. package/dist/tools-logic/palace-lint.js.map +1 -1
  183. package/dist/tools-logic/palace-read.js +1 -1
  184. package/dist/tools-logic/palace-read.js.map +1 -1
  185. package/dist/tools-logic/palace-search.js +1 -1
  186. package/dist/tools-logic/palace-search.js.map +1 -1
  187. package/dist/tools-logic/palace-walk.js +3 -3
  188. package/dist/tools-logic/palace-walk.js.map +1 -1
  189. package/dist/tools-logic/palace-write.js +4 -4
  190. package/dist/tools-logic/palace-write.js.map +1 -1
  191. package/dist/tools-logic/predict-correction.js +1 -1
  192. package/dist/tools-logic/predict-correction.js.map +1 -1
  193. package/dist/tools-logic/recall-backend.d.ts +11 -2
  194. package/dist/tools-logic/recall-backend.d.ts.map +1 -1
  195. package/dist/tools-logic/recall-backend.js +2 -2
  196. package/dist/tools-logic/recall-backend.js.map +1 -1
  197. package/dist/tools-logic/resurrect.d.ts.map +1 -1
  198. package/dist/tools-logic/resurrect.js +9 -1
  199. package/dist/tools-logic/resurrect.js.map +1 -1
  200. package/dist/tools-logic/safety-consolidation.d.ts +15 -0
  201. package/dist/tools-logic/safety-consolidation.d.ts.map +1 -1
  202. package/dist/tools-logic/safety-consolidation.js +44 -31
  203. package/dist/tools-logic/safety-consolidation.js.map +1 -1
  204. package/dist/tools-logic/session-end-reflect.d.ts.map +1 -1
  205. package/dist/tools-logic/session-end-reflect.js +4 -1
  206. package/dist/tools-logic/session-end-reflect.js.map +1 -1
  207. package/dist/tools-logic/session-end.d.ts +8 -0
  208. package/dist/tools-logic/session-end.d.ts.map +1 -1
  209. package/dist/tools-logic/session-end.js +51 -13
  210. package/dist/tools-logic/session-end.js.map +1 -1
  211. package/dist/tools-logic/session-start.d.ts +23 -0
  212. package/dist/tools-logic/session-start.d.ts.map +1 -1
  213. package/dist/tools-logic/session-start.js +44 -1
  214. package/dist/tools-logic/session-start.js.map +1 -1
  215. package/dist/tools-logic/smart-recall.d.ts +185 -10
  216. package/dist/tools-logic/smart-recall.d.ts.map +1 -1
  217. package/dist/tools-logic/smart-recall.js +363 -85
  218. package/dist/tools-logic/smart-recall.js.map +1 -1
  219. package/dist/tools-logic/store-doctor.d.ts.map +1 -1
  220. package/dist/tools-logic/store-doctor.js +14 -5
  221. package/dist/tools-logic/store-doctor.js.map +1 -1
  222. package/dist/tools-logic/store-repair.js +1 -1
  223. package/dist/tools-logic/store-repair.js.map +1 -1
  224. package/dist/tools-logic/supersession.d.ts +1 -1
  225. package/dist/tools-logic/supersession.d.ts.map +1 -1
  226. package/dist/tools-logic/supersession.js +2 -2
  227. package/dist/tools-logic/supersession.js.map +1 -1
  228. package/dist/types.d.ts +1 -1
  229. package/dist/types.js +1 -1
  230. package/dist/vector/embedding.d.ts +8 -0
  231. package/dist/vector/embedding.d.ts.map +1 -1
  232. package/dist/vector/embedding.js +8 -0
  233. package/dist/vector/embedding.js.map +1 -1
  234. package/package.json +1 -1
@@ -0,0 +1,81 @@
1
+ /**
2
+ * dream-yield.ts — per-night YIELD accounting for the dreaming pipeline (fix10).
3
+ *
4
+ * Why this exists: dream-health.ts historically measured UPTIME only ("did the
5
+ * log say Dream complete") — 22 consecutive zero-output nights were all green
6
+ * because the broken admission math (`(obs/7) × recency ≤ 0.85` — see
7
+ * tools-logic/dream-admission.ts) silently discarded every candidate and
8
+ * nothing recorded that a candidate had even been seen.
9
+ *
10
+ * This module is the structural fix for the SILENCE half of that bug: every
11
+ * dream-admission run writes one DreamYieldRecord per night, and every
12
+ * candidate appears in it with an explicit outcome + reason. A zero-output
13
+ * night is now CLASSIFIABLE:
14
+ *
15
+ * "empty-corpus" — the corpus genuinely produced no candidates
16
+ * "filtered" — candidates were seen but the math rejected them (RED —
17
+ * this is exactly the failure mode that ran silent for
18
+ * 22 nights)
19
+ * "already-known" — candidates were seen but every one was already counted
20
+ * or already promoted (nothing NEW, but nothing hidden)
21
+ * "errored" — the run recorded errors (ledger corruption/write
22
+ * failure, promotion-pass failure, …) and produced no
23
+ * yield; never benign (fix10 review MEDIUM-2 — errors[]
24
+ * used to be invisible to classification)
25
+ * "no-yield-data" — the run log says the dream completed but no yield
26
+ * record exists (instrumentation gap — e.g. the SOP has
27
+ * not been repointed to `ar dream admit` yet). Flagged,
28
+ * never treated as healthy.
29
+ *
30
+ * File location: <root>/dreams/yield-YYYY-MM-DD.json — co-located with the
31
+ * dream reports the nightly agent writes to <root>/dreams/YYYY-MM-DD.md.
32
+ */
33
+ /** One candidate's final disposition inside a night's yield record. */
34
+ export interface DreamYieldDecision {
35
+ title: string;
36
+ /** Final disposition after ledger dedup + index recording + promotion. */
37
+ outcome: "promoted" | "already-promoted" | "admitted" | "already-counted" | "rejected";
38
+ /** Distinct (day, project) observations inside the trailing window. */
39
+ observations_in_window: number;
40
+ /** Observations that were NEW tonight (not counted on a previous night). */
41
+ new_observations: number;
42
+ /** ALWAYS non-empty. A silent discard is structurally impossible. */
43
+ reason: string;
44
+ }
45
+ export interface DreamYieldCorpus {
46
+ journal_files?: number;
47
+ journal_bytes?: number;
48
+ corrections_new?: number;
49
+ notes?: string;
50
+ }
51
+ export interface DreamYieldRecord {
52
+ version: 1;
53
+ /** Run date (local calendar day the dream ran), YYYY-MM-DD. */
54
+ date: string;
55
+ generated_at: string;
56
+ candidates_seen: number;
57
+ admitted: number;
58
+ promoted: number;
59
+ already_known: number;
60
+ rejected: number;
61
+ /** reason → count, over every non-yield outcome (rejected + already-counted). */
62
+ discarded_by_reason: Record<string, number>;
63
+ decisions: DreamYieldDecision[];
64
+ /** Full list of titles promoteConfirmedInsights promoted this run (may
65
+ * include index insights confirmed by the ONLINE path, not just tonight's
66
+ * candidates — promotion is shared machinery). */
67
+ promoted_titles: string[];
68
+ corpus?: DreamYieldCorpus;
69
+ errors?: string[];
70
+ }
71
+ export type NightYieldClass = "productive" | "empty-corpus" | "filtered" | "already-known" | "errored" | "no-yield-data";
72
+ export declare function dreamsDir(): string;
73
+ export declare function dreamYieldPath(date: string): string;
74
+ export declare function writeDreamYield(record: DreamYieldRecord): void;
75
+ export declare function readDreamYield(date: string): DreamYieldRecord | null;
76
+ /**
77
+ * Classify one night. `null` = the night ran but left no yield record
78
+ * ("no-yield-data" — an instrumentation gap is a finding, not health).
79
+ */
80
+ export declare function classifyNight(record: DreamYieldRecord | null): NightYieldClass;
81
+ //# sourceMappingURL=dream-yield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dream-yield.d.ts","sourceRoot":"","sources":["../../src/storage/dream-yield.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAOH,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MA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AED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAKpE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,GAAG,eAAe,CAa9E"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * dream-yield.ts — per-night YIELD accounting for the dreaming pipeline (fix10).
3
+ *
4
+ * Why this exists: dream-health.ts historically measured UPTIME only ("did the
5
+ * log say Dream complete") — 22 consecutive zero-output nights were all green
6
+ * because the broken admission math (`(obs/7) × recency ≤ 0.85` — see
7
+ * tools-logic/dream-admission.ts) silently discarded every candidate and
8
+ * nothing recorded that a candidate had even been seen.
9
+ *
10
+ * This module is the structural fix for the SILENCE half of that bug: every
11
+ * dream-admission run writes one DreamYieldRecord per night, and every
12
+ * candidate appears in it with an explicit outcome + reason. A zero-output
13
+ * night is now CLASSIFIABLE:
14
+ *
15
+ * "empty-corpus" — the corpus genuinely produced no candidates
16
+ * "filtered" — candidates were seen but the math rejected them (RED —
17
+ * this is exactly the failure mode that ran silent for
18
+ * 22 nights)
19
+ * "already-known" — candidates were seen but every one was already counted
20
+ * or already promoted (nothing NEW, but nothing hidden)
21
+ * "errored" — the run recorded errors (ledger corruption/write
22
+ * failure, promotion-pass failure, …) and produced no
23
+ * yield; never benign (fix10 review MEDIUM-2 — errors[]
24
+ * used to be invisible to classification)
25
+ * "no-yield-data" — the run log says the dream completed but no yield
26
+ * record exists (instrumentation gap — e.g. the SOP has
27
+ * not been repointed to `ar dream admit` yet). Flagged,
28
+ * never treated as healthy.
29
+ *
30
+ * File location: <root>/dreams/yield-YYYY-MM-DD.json — co-located with the
31
+ * dream reports the nightly agent writes to <root>/dreams/YYYY-MM-DD.md.
32
+ */
33
+ import * as path from "node:path";
34
+ import { getRoot } from "../types.js";
35
+ import { ensureDir, readJsonSafe, writeJsonAtomic } from "./fs-utils.js";
36
+ export function dreamsDir() {
37
+ return path.join(getRoot(), "dreams");
38
+ }
39
+ export function dreamYieldPath(date) {
40
+ return path.join(dreamsDir(), `yield-${date}.json`);
41
+ }
42
+ export function writeDreamYield(record) {
43
+ ensureDir(dreamsDir());
44
+ writeJsonAtomic(dreamYieldPath(record.date), record);
45
+ }
46
+ export function readDreamYield(date) {
47
+ const rec = readJsonSafe(dreamYieldPath(date));
48
+ if (!rec || typeof rec !== "object")
49
+ return null;
50
+ if (typeof rec.date !== "string" || typeof rec.candidates_seen !== "number")
51
+ return null;
52
+ return rec;
53
+ }
54
+ /**
55
+ * Classify one night. `null` = the night ran but left no yield record
56
+ * ("no-yield-data" — an instrumentation gap is a finding, not health).
57
+ */
58
+ export function classifyNight(record) {
59
+ if (!record)
60
+ return "no-yield-data";
61
+ if (record.promoted + record.admitted > 0)
62
+ return "productive";
63
+ // MEDIUM-2: a zero-yield night that recorded errors is NEVER benign — a
64
+ // ledger reset or failed promotion pass must not read as "corpus thin" or
65
+ // "already known".
66
+ if ((record.errors?.length ?? 0) > 0)
67
+ return "errored";
68
+ if (record.candidates_seen === 0)
69
+ return "empty-corpus";
70
+ // Zero yield with candidates present: if the MATH rejected anything, the
71
+ // math is the cause; only when nothing was rejected is "everything was
72
+ // already known" the honest read.
73
+ if (record.rejected > 0)
74
+ return "filtered";
75
+ return "already-known";
76
+ }
77
+ //# sourceMappingURL=dream-yield.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dream-yield.js","sourceRoot":"","sources":["../../src/storage/dream-yield.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAwDzE,MAAM,UAAU,SAAS;IACvB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,C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version":3,"file":"durable-intent.d.ts","sourceRoot":"","sources":["../../src/storage/durable-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,MAAM,CAczD,CAAC;AAkDF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,mBAAmB,GAAG,MAAM,CAgB5F"}
1
+ {"version":3,"file":"durable-intent.d.ts","sourceRoot":"","sources":["../../src/storage/durable-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,MAAM,CAczD,CAAC;AAyEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,mBAAmB,GAAG,MAAM,CAgB5F"}
@@ -53,8 +53,31 @@ export const DURABLE_INTENT_PATTERNS = [
53
53
  * unhedged save directive is NOT demoted ("Actually wait, save this." stays 'explicit-save'
54
54
  * because the split-sentence logic of the caller would see "save this" in fragment 2).
55
55
  * This function tests the WHOLE text, so we rely on hedging being in the first clause.
56
+ *
57
+ * CJK ADDITIONS (TOW2-326 class): the English-only hedge list meant a Chinese
58
+ * hedge/reminder ("提醒我保存一下这个" — "remind me to save this") was NOT
59
+ * demoted, while its English equivalent ("remind me to save this") was — the
60
+ * OPPOSITE of the drop-CJK-corrections failure mode elsewhere in this class,
61
+ * but still an asymmetry: a CJK-primary user's hedge/scheduling phrasing would
62
+ * over-trigger the explicit-save lane where an English speaker's would not.
63
+ * CJK has no \b word boundaries, so these are bare substring alternatives
64
+ * anchored inside the same `^[\s\S]{0,60}?` opener window as the English rows.
65
+ *
66
+ * PRE-SHIP GATE FIX (2026-09-09, C-3): the 也许/或许/可能 branch's gap to the
67
+ * save verb was `[^\n]{0,6}` — ANY 0-6 characters, wide enough to reach
68
+ * across a comma into an entirely DIFFERENT clause. "这个方案也许更好,请保存
69
+ * 这个进度" ("this plan might be better, please save this progress") has
70
+ * "也许" modifying "更好" (4-char gap "更好,请") — its OWN clause ends there —
71
+ * yet the old window still spanned into the unrelated, later "保存" directive
72
+ * and wrongly demoted a genuine explicit-save. Fixed: the hedge opener may
73
+ * now be followed by AT MOST one bounded modal word (应该/会/要/可以) before
74
+ * the save verb — mirroring the English row's own `i\s+should\s+(?:probably\s+)?
75
+ * (?:save|...)` shape, which allows exactly one optional adverb insert, never
76
+ * an arbitrary span. "也许应该记录一下" (应该 is in the allowed set) and "或许
77
+ * 可以保存这个" (可以 is in the allowed set) still correctly demote; "也许更好,
78
+ * 请保存" (更好,请 is not in the allowed set, and is not empty) no longer does.
56
79
  */
57
- const HEDGE_DEMOTE_PATTERN = /^[\s\S]{0,60}?\b(remind\s+me\s+to|maybe\s+(?:remember|save|checkpoint|log)\b|perhaps\s+(?:remember|save|log)\b|i\s+should\s+(?:probably\s+)?(?:save|remember|checkpoint|log)\b|i\s+might\s+want\s+to\s+(?:save|remember|log)\b|we\s+(?:should|might|could)\s+(?:probably\s+)?(?:save|checkpoint|remember|log)\b|don'?t\s+forget\s+to\b|note\s+to\s+self\b|(?:i|you|one)\s+could\s+(?:save|remember|log|checkpoint)\b|you\s+might\s+want\s+to\s+(?:save|remember|log)\b)/i;
80
+ const HEDGE_DEMOTE_PATTERN = /^[\s\S]{0,60}?(?:\b(?:remind\s+me\s+to|maybe\s+(?:remember|save|checkpoint|log)\b|perhaps\s+(?:remember|save|log)\b|i\s+should\s+(?:probably\s+)?(?:save|remember|checkpoint|log)\b|i\s+might\s+want\s+to\s+(?:save|remember|log)\b|we\s+(?:should|might|could)\s+(?:probably\s+)?(?:save|checkpoint|remember|log)\b|don'?t\s+forget\s+to\b|note\s+to\s+self\b|(?:i|you|one)\s+could\s+(?:save|remember|log|checkpoint)\b|you\s+might\s+want\s+to\s+(?:save|remember|log)\b)|(?:提醒我[^\n]{0,6}(?:保存|记录|记住|存档)|(?:也许|或许|可能)(?:应该|会|要|可以)?\s*(?:保存|记录一下|记住这个|存档)|记得提醒我[^\n]{0,6}(?:保存|记录|记住)))/i;
58
81
  /**
59
82
  * Correction-signal vocabulary — behavioral corrections from check.ts / hook-correction.
60
83
  * Kept in sync with the CORRECTION_PATTERNS in packages/cli/src/index.ts:969-993.
@@ -1 +1 @@
1
- {"version":3,"file":"durable-intent.js","sourceRoot":"","sources":["../../src/storage/durable-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,8EAA8E;AAC9E,0EAA0E;AAC1E,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA0B;IAC5D,mCAAmC;IACnC,wCAAwC;IACxC,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,6BAA6B;IAC7B,sBAAsB;IACtB,+BAA+B;IAC/B,2CAA2C;IAC3C,sBAAsB;IACtB,iBAAiB;IACjB,+BAA+B;IAC/B,yBAAyB;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,oBAAoB,GACxB,0cAA0c,CAAC;AAE7c;;;;GAIG;AACH,MAAM,0BAA0B,GAA0B;IACxD,mBAAmB;IACnB,sBAAsB;IACtB,4CAA4C;IAC5C,iDAAiD;IACjD,kBAAkB;IAClB,mCAAmC;IACnC,iDAAiD;IACjD,wBAAwB;IACxB,6CAA6C;IAC7C,4CAA4C;IAC5C,mBAAmB;IACnB,IAAI;IACJ,IAAI;IACJ,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,KAAK;IACL,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;CACP,CAAC;AAEF,8EAA8E;AAC9E,2DAA2D;AAC3D,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY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).
2
+ * File-based locking for shared store files (awareness, insights-index,
3
+ * corrections, digest, palace index/rooms, journal, pipeline, feedback,
4
+ * alignment).
3
5
  *
4
- * Uses mkdir atomicity: mkdir fails if dir already exists, which is
5
- * atomic on all platforms. No external dependencies.
6
+ * Uses mkdir atomicity: mkdir fails if dir already exists, which is atomic
7
+ * on all platforms. No external dependencies.
6
8
  *
7
- * Lock timeout: 5 seconds. Stale lock cleanup: 30 seconds.
9
+ * fix6-locks redesign (2026-09-11, S6 remediation):
10
+ *
11
+ * 1. WAITING IS ASYNC. The old primitive busy-wait spun the CPU and blocked
12
+ * the event loop for up to 5 s. `acquireLock`/`withLock` now await a
13
+ * setTimeout-based backoff, so a waiting process keeps serving its event
14
+ * loop (timers, MCP traffic, hook I/O) while contended.
15
+ *
16
+ * 2. NO STEALING FROM A LIVE HOLDER. The old primitive force-broke the lock
17
+ * unconditionally at timeout (rmdir+mkdir while the holder could be
18
+ * mid-write — silent corruption). The lock dir now records the holder's
19
+ * pid + acquisition timestamp (`owner.json`); a contender may reclaim
20
+ * ONLY when the holder process is provably dead (`process.kill(pid, 0)`
21
+ * probe). A dead holder is reclaimed immediately (no reason to wait out
22
+ * the timeout on a corpse); a live holder is NEVER stolen from — at
23
+ * timeout the contender gets a descriptive `LockContentionError` that
24
+ * callers handle explicitly (log + best-effort skip, or propagate),
25
+ * never silent corruption. Boot-time guard (review MEDIUM-1): a lock
26
+ * whose acquired_at predates the current boot is reclaimed even if its
27
+ * recorded pid probes alive — pids recycle across reboots, and no lock
28
+ * legitimately survives one.
29
+ *
30
+ * 3. RECLAIM IS RACE-SAFE. Reclaim renames the lock dir aside before
31
+ * removing it — rename is atomic, so when several contenders spot the
32
+ * same dead holder, exactly one wins the rename; the rest simply retry
33
+ * mkdir. (The old rmdir+mkdir reclaim let two contenders both "win".)
34
+ *
35
+ * 4. LEGACY/CRASH FALLBACK. A lock dir with no readable owner.json (created
36
+ * by pre-fix code, or a holder that died between mkdir and the owner
37
+ * write) falls back to the old mtime rule: reclaimable once older than
38
+ * STALE_LOCK_MS.
39
+ *
40
+ * CRITICAL SECTIONS: keep them synchronous wherever possible — hold times
41
+ * stay bounded by one synchronous block. An async fn is permitted ONLY for
42
+ * the documented lock nesting below (awareness-state → awareness); a critical
43
+ * section must NEVER await anything that acquires the SAME lock (the lock is
44
+ * not reentrant — that is a guaranteed 5 s stall + LockContentionError).
45
+ * Cross-process safety does not depend on the fn being sync: the mkdir lock
46
+ * itself excludes concurrent critical sections either way.
47
+ *
48
+ * LOCK ORDERING (deadlock discipline — the complete nesting set):
49
+ * "awareness-state" → "awareness"
50
+ * "dream-admission" → "insights-index"
51
+ * "dream-admission" → "awareness-state" → "awareness"
52
+ * awareness.ts acquires "awareness" (awareness.md render) while holding
53
+ * "awareness-state" (awareness-state.json + awareness-archive.json RMW).
54
+ * fix10: dream-admission.ts wraps its whole nightly run (a long async
55
+ * critical section) in "dream-admission" and acquires "insights-index"
56
+ * (addIndexedInsight) and "awareness-state" (addInsight via
57
+ * promoteConfirmedInsights / the cap fallback) inside it. "dream-admission"
58
+ * has a SINGLE acquirer and is always the outermost lock — no cycle.
59
+ * Never acquire "awareness-state" while holding "awareness", and never
60
+ * acquire "dream-admission" while holding any other lock. Same-name
61
+ * nesting is a deadlock (the lock is NOT reentrant): modules expose
62
+ * *Unlocked internals for use inside their own critical sections instead.
63
+ *
64
+ * fix9 (2026-09-12): the synchronous twin (`acquireLockSync`/`withLockSync`,
65
+ * Atomics.wait-based — no CPU spin, but it parked the whole event loop) is
66
+ * RETIRED. It existed only to pin the published sync SDK signature
67
+ * `AgentRecall.digestInvalidate(): void`; the owner approved converting that
68
+ * signature to async, so the last sanctioned caller is gone. The async
69
+ * `withLock` is the only locking primitive.
8
70
  */
9
71
  /**
10
- * A lock dir older than this (by mtime) is considered stale and force-broken on
11
- * the next acquire. Exported so the read-only store-doctor scans `.lock-*` dirs
12
- * against the SAME threshold the locker uses (single source of truth — no drift).
72
+ * A lock dir with NO readable owner.json (legacy pre-pid code, or a crash in
73
+ * the mkdir→owner-write window) older than this (by mtime) is considered
74
+ * stale and reclaimed on the next acquire. Locks WITH a live owner pid are
75
+ * never age-reclaimed. Exported so the read-only store-doctor scans
76
+ * `.lock-*` dirs against the SAME threshold the locker uses (single source
77
+ * of truth — no drift).
13
78
  */
14
79
  export declare const STALE_LOCK_MS = 30000;
80
+ /** Thrown when the lock timeout elapses while the holder process is still
81
+ * alive. NEVER a signal to force-break the lock: the holder may be mid-write.
82
+ * Callers either propagate (surfacing an explicit tool error) or catch it for
83
+ * advisory writes (log + best-effort skip) — silent corruption is not an
84
+ * option the primitive offers. */
85
+ export declare class LockContentionError extends Error {
86
+ readonly lockName: string;
87
+ readonly holderPid: number | null;
88
+ readonly heldForMs: number | null;
89
+ constructor(lockName: string, holderPid: number | null, heldForMs: number | null);
90
+ }
15
91
  /**
16
- * Acquire a named lock. Retries with backoff until timeout.
17
- * Returns a release function.
92
+ * Acquire a named lock. Retries with async (event-loop-friendly) backoff
93
+ * until LOCK_TIMEOUT_MS; reclaims dead-holder / legacy-stale locks; throws
94
+ * LockContentionError if the holder is alive at timeout.
95
+ * Returns a release function (idempotent).
18
96
  */
19
- export declare function acquireLock(name: string): () => void;
97
+ export declare function acquireLock(name: string): Promise<() => void>;
20
98
  /**
21
99
  * Execute a function while holding a lock.
22
- * Lock is always released, even on error.
100
+ * Lock is always released, even on error. Prefer a synchronous fn (bounded
101
+ * hold); an async fn is allowed only for the documented awareness nesting —
102
+ * see the header's lock-ordering section.
23
103
  */
24
- export declare function withLock<T>(name: string, fn: () => T): T;
104
+ export declare function withLock<T>(name: string, fn: () => T | Promise<T>): Promise<T>;
25
105
  //# sourceMappingURL=filelock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filelock.d.ts","sourceRoot":"","sources":["../../src/storage/filelock.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH;;;;GAIG;AACH,eAAO,MAAM,aAAa,QAAQ,CAAC;AAMnC;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,IAAI,CA0CpD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAOxD"}
1
+ {"version":3,"file":"filelock.d.ts","sourceRoot":"","sources":["../../src/storage/filelock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AASH;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,QAAQ,CAAC;AAgBnC;;;;kCAIkC;AAClC,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;gBAEtB,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAoBjF;AA6LD;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAyBnE;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAOpF"}