audrey 1.0.0 → 1.0.2

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/CHANGELOG.md +54 -0
  2. package/README.md +30 -6
  3. package/benchmarks/adapter-self-test.mjs +6 -2
  4. package/benchmarks/adapters/example-allow.mjs +5 -2
  5. package/benchmarks/adapters/mem0-platform.mjs +19 -12
  6. package/benchmarks/adapters/zep-cloud.mjs +51 -27
  7. package/benchmarks/baselines.js +11 -6
  8. package/benchmarks/build-leaderboard.mjs +36 -23
  9. package/benchmarks/cases.js +24 -12
  10. package/benchmarks/create-conformance-card.mjs +12 -3
  11. package/benchmarks/create-submission-bundle.mjs +22 -8
  12. package/benchmarks/dry-run-external-adapters.mjs +24 -12
  13. package/benchmarks/guardbench.js +354 -124
  14. package/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +7 -7
  15. package/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  16. package/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  17. package/benchmarks/output/guardbench-conformance-card.json +12 -12
  18. package/benchmarks/output/guardbench-raw.json +243 -144
  19. package/benchmarks/output/guardbench-summary.json +354 -230
  20. package/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  21. package/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  22. package/benchmarks/output/submission-bundle/guardbench-conformance-card.json +12 -12
  23. package/benchmarks/output/submission-bundle/guardbench-raw.json +243 -144
  24. package/benchmarks/output/submission-bundle/guardbench-summary.json +354 -230
  25. package/benchmarks/output/submission-bundle/schemas/guardbench-raw.schema.json +21 -1
  26. package/benchmarks/output/submission-bundle/schemas/guardbench-summary.schema.json +23 -2
  27. package/benchmarks/output/submission-bundle/submission-manifest.json +15 -15
  28. package/benchmarks/output/submission-bundle/validation-report.json +1 -1
  29. package/benchmarks/output/summary.json +58 -58
  30. package/benchmarks/perf-snapshot.js +12 -9
  31. package/benchmarks/perf.bench.js +14 -6
  32. package/benchmarks/public-paths.mjs +11 -5
  33. package/benchmarks/reference-results.js +10 -5
  34. package/benchmarks/report.js +48 -27
  35. package/benchmarks/run-external-guardbench.mjs +47 -25
  36. package/benchmarks/run.js +112 -59
  37. package/benchmarks/schemas/guardbench-raw.schema.json +21 -1
  38. package/benchmarks/schemas/guardbench-summary.schema.json +23 -2
  39. package/benchmarks/validate-adapter-module.mjs +13 -10
  40. package/benchmarks/validate-adapter-registry.mjs +16 -5
  41. package/benchmarks/validate-guardbench-artifacts.mjs +76 -19
  42. package/benchmarks/verify-external-evidence.mjs +86 -31
  43. package/benchmarks/verify-publication-artifacts.mjs +34 -11
  44. package/benchmarks/verify-submission-bundle.mjs +9 -4
  45. package/dist/mcp-server/config.d.ts +1 -1
  46. package/dist/mcp-server/config.d.ts.map +1 -1
  47. package/dist/mcp-server/config.js +5 -3
  48. package/dist/mcp-server/config.js.map +1 -1
  49. package/dist/mcp-server/index.d.ts +4 -3
  50. package/dist/mcp-server/index.d.ts.map +1 -1
  51. package/dist/mcp-server/index.js +479 -172
  52. package/dist/mcp-server/index.js.map +1 -1
  53. package/dist/src/action-key.d.ts.map +1 -1
  54. package/dist/src/action-key.js +6 -2
  55. package/dist/src/action-key.js.map +1 -1
  56. package/dist/src/adaptive.d.ts.map +1 -1
  57. package/dist/src/adaptive.js +4 -2
  58. package/dist/src/adaptive.js.map +1 -1
  59. package/dist/src/affect.d.ts.map +1 -1
  60. package/dist/src/affect.js +8 -5
  61. package/dist/src/affect.js.map +1 -1
  62. package/dist/src/audrey.d.ts +11 -1
  63. package/dist/src/audrey.d.ts.map +1 -1
  64. package/dist/src/audrey.js +110 -53
  65. package/dist/src/audrey.js.map +1 -1
  66. package/dist/src/capsule.d.ts.map +1 -1
  67. package/dist/src/capsule.js +37 -15
  68. package/dist/src/capsule.js.map +1 -1
  69. package/dist/src/causal.d.ts +1 -1
  70. package/dist/src/causal.d.ts.map +1 -1
  71. package/dist/src/causal.js +4 -2
  72. package/dist/src/causal.js.map +1 -1
  73. package/dist/src/confidence.d.ts.map +1 -1
  74. package/dist/src/confidence.js +5 -5
  75. package/dist/src/confidence.js.map +1 -1
  76. package/dist/src/consolidate.d.ts.map +1 -1
  77. package/dist/src/consolidate.js +17 -9
  78. package/dist/src/consolidate.js.map +1 -1
  79. package/dist/src/context.js +1 -1
  80. package/dist/src/context.js.map +1 -1
  81. package/dist/src/controller.d.ts +17 -1
  82. package/dist/src/controller.d.ts.map +1 -1
  83. package/dist/src/controller.js +73 -23
  84. package/dist/src/controller.js.map +1 -1
  85. package/dist/src/db.d.ts.map +1 -1
  86. package/dist/src/db.js +78 -27
  87. package/dist/src/db.js.map +1 -1
  88. package/dist/src/decay.d.ts +1 -1
  89. package/dist/src/decay.d.ts.map +1 -1
  90. package/dist/src/decay.js +1 -1
  91. package/dist/src/decay.js.map +1 -1
  92. package/dist/src/embedding.d.ts +12 -4
  93. package/dist/src/embedding.d.ts.map +1 -1
  94. package/dist/src/embedding.js +18 -16
  95. package/dist/src/embedding.js.map +1 -1
  96. package/dist/src/encode.d.ts.map +1 -1
  97. package/dist/src/encode.js +5 -4
  98. package/dist/src/encode.js.map +1 -1
  99. package/dist/src/events.d.ts +3 -2
  100. package/dist/src/events.d.ts.map +1 -1
  101. package/dist/src/events.js +7 -3
  102. package/dist/src/events.js.map +1 -1
  103. package/dist/src/export.d.ts.map +1 -1
  104. package/dist/src/export.js +21 -7
  105. package/dist/src/export.js.map +1 -1
  106. package/dist/src/feedback.d.ts.map +1 -1
  107. package/dist/src/feedback.js +1 -1
  108. package/dist/src/feedback.js.map +1 -1
  109. package/dist/src/forget.d.ts.map +1 -1
  110. package/dist/src/forget.js +12 -6
  111. package/dist/src/forget.js.map +1 -1
  112. package/dist/src/fts.d.ts.map +1 -1
  113. package/dist/src/fts.js +20 -8
  114. package/dist/src/fts.js.map +1 -1
  115. package/dist/src/hybrid-recall.d.ts.map +1 -1
  116. package/dist/src/hybrid-recall.js +12 -6
  117. package/dist/src/hybrid-recall.js.map +1 -1
  118. package/dist/src/impact.d.ts.map +1 -1
  119. package/dist/src/impact.js +26 -10
  120. package/dist/src/impact.js.map +1 -1
  121. package/dist/src/import.d.ts.map +1 -1
  122. package/dist/src/import.js +11 -6
  123. package/dist/src/import.js.map +1 -1
  124. package/dist/src/index.d.ts +5 -4
  125. package/dist/src/index.d.ts.map +1 -1
  126. package/dist/src/index.js +4 -4
  127. package/dist/src/index.js.map +1 -1
  128. package/dist/src/interference.d.ts.map +1 -1
  129. package/dist/src/interference.js +10 -5
  130. package/dist/src/interference.js.map +1 -1
  131. package/dist/src/introspect.d.ts.map +1 -1
  132. package/dist/src/introspect.js +12 -6
  133. package/dist/src/introspect.js.map +1 -1
  134. package/dist/src/llm.d.ts +2 -2
  135. package/dist/src/llm.d.ts.map +1 -1
  136. package/dist/src/llm.js +6 -6
  137. package/dist/src/llm.js.map +1 -1
  138. package/dist/src/migrate.d.ts.map +1 -1
  139. package/dist/src/migrate.js +10 -4
  140. package/dist/src/migrate.js.map +1 -1
  141. package/dist/src/preflight.d.ts.map +1 -1
  142. package/dist/src/preflight.js +6 -8
  143. package/dist/src/preflight.js.map +1 -1
  144. package/dist/src/profile.d.ts.map +1 -1
  145. package/dist/src/profile.js.map +1 -1
  146. package/dist/src/promote.d.ts.map +1 -1
  147. package/dist/src/promote.js +16 -7
  148. package/dist/src/promote.js.map +1 -1
  149. package/dist/src/prompts.d.ts.map +1 -1
  150. package/dist/src/prompts.js +1 -2
  151. package/dist/src/prompts.js.map +1 -1
  152. package/dist/src/recall.d.ts.map +1 -1
  153. package/dist/src/recall.js +85 -18
  154. package/dist/src/recall.js.map +1 -1
  155. package/dist/src/redact.d.ts.map +1 -1
  156. package/dist/src/redact.js +9 -4
  157. package/dist/src/redact.js.map +1 -1
  158. package/dist/src/reflexes.d.ts.map +1 -1
  159. package/dist/src/reflexes.js +1 -7
  160. package/dist/src/reflexes.js.map +1 -1
  161. package/dist/src/rollback.d.ts.map +1 -1
  162. package/dist/src/rollback.js +4 -2
  163. package/dist/src/rollback.js.map +1 -1
  164. package/dist/src/routes.d.ts.map +1 -1
  165. package/dist/src/routes.js +37 -14
  166. package/dist/src/routes.js.map +1 -1
  167. package/dist/src/rules-compiler.d.ts.map +1 -1
  168. package/dist/src/rules-compiler.js +24 -2
  169. package/dist/src/rules-compiler.js.map +1 -1
  170. package/dist/src/server.js +2 -2
  171. package/dist/src/server.js.map +1 -1
  172. package/dist/src/tool-trace.d.ts +2 -2
  173. package/dist/src/tool-trace.d.ts.map +1 -1
  174. package/dist/src/tool-trace.js +12 -4
  175. package/dist/src/tool-trace.js.map +1 -1
  176. package/dist/src/types.d.ts.map +1 -1
  177. package/dist/src/ulid.js +1 -1
  178. package/dist/src/ulid.js.map +1 -1
  179. package/dist/src/utils.d.ts.map +1 -1
  180. package/dist/src/utils.js.map +1 -1
  181. package/dist/src/validate.d.ts.map +1 -1
  182. package/dist/src/validate.js +20 -10
  183. package/dist/src/validate.js.map +1 -1
  184. package/docs/paper/07-evaluation.md +5 -5
  185. package/docs/paper/audrey-paper-v1.md +6 -6
  186. package/docs/paper/evidence-ledger.md +1 -1
  187. package/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  188. package/docs/paper/output/arxiv/main.tex +6 -6
  189. package/docs/paper/output/arxiv-compile-report.json +3 -3
  190. package/docs/paper/output/submission-bundle/README.md +30 -6
  191. package/docs/paper/output/submission-bundle/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +7 -7
  192. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  193. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  194. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-conformance-card.json +12 -12
  195. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-raw.json +243 -144
  196. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-summary.json +354 -230
  197. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  198. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  199. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/submission-manifest.json +15 -15
  200. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/validation-report.json +1 -1
  201. package/docs/paper/output/submission-bundle/benchmarks/output/summary.json +52 -52
  202. package/docs/paper/output/submission-bundle/benchmarks/schemas/guardbench-raw.schema.json +21 -1
  203. package/docs/paper/output/submission-bundle/benchmarks/schemas/guardbench-summary.schema.json +23 -2
  204. package/docs/paper/output/submission-bundle/docs/paper/07-evaluation.md +5 -5
  205. package/docs/paper/output/submission-bundle/docs/paper/audrey-paper-v1.md +6 -6
  206. package/docs/paper/output/submission-bundle/docs/paper/evidence-ledger.md +1 -1
  207. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  208. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/main.tex +6 -6
  209. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv-compile-report.json +3 -3
  210. package/docs/paper/output/submission-bundle/package.json +18 -5
  211. package/docs/paper/output/submission-bundle/paper-submission-manifest.json +40 -40
  212. package/examples/fintech-ops-demo.js +12 -5
  213. package/examples/healthcare-ops-demo.js +8 -4
  214. package/examples/ollama-memory-agent.js +41 -13
  215. package/examples/stripe-demo.js +12 -5
  216. package/package.json +18 -5
  217. package/scripts/audit-release-completion.mjs +179 -101
  218. package/scripts/create-arxiv-source.mjs +20 -14
  219. package/scripts/create-paper-submission-bundle.mjs +6 -2
  220. package/scripts/finalize-release.mjs +111 -36
  221. package/scripts/prepare-release-cut.mjs +14 -6
  222. package/scripts/publish-release-bundle.mjs +62 -23
  223. package/scripts/publish-release-github-api.mjs +89 -24
  224. package/scripts/smoke-cli.js +26 -6
  225. package/scripts/sync-paper-artifacts.mjs +5 -1
  226. package/scripts/verify-arxiv-compile.mjs +52 -16
  227. package/scripts/verify-arxiv-source.mjs +45 -15
  228. package/scripts/verify-browser-launch-plan.mjs +28 -11
  229. package/scripts/verify-browser-launch-results.mjs +32 -14
  230. package/scripts/verify-paper-artifacts.mjs +539 -79
  231. package/scripts/verify-paper-claims.mjs +48 -20
  232. package/scripts/verify-paper-submission-bundle.mjs +22 -11
  233. package/scripts/verify-publication-pack.mjs +23 -9
  234. package/scripts/verify-release-readiness.mjs +250 -71
@@ -24,13 +24,13 @@ These numbers measure Audrey's local call path under an in-process mock embeddin
24
24
 
25
25
  ## Behavioral Regression Result
26
26
 
27
- The current `benchmarks/output/summary.json` was generated on 2026-05-13T08:33:24.917Z with command `node benchmarks/run.js --provider mock --dimensions 64` (Ledger: E24). It reports:
27
+ The current `benchmarks/output/summary.json` was generated on 2026-05-29T03:45:32.997Z with command `node benchmarks/run.js --provider mock --dimensions 64` (Ledger: E24). It reports:
28
28
 
29
29
  | System | Score Percent | Pass Rate | Average Duration Ms |
30
30
  |---|---:|---:|---:|
31
- | Audrey | 100 | 100 | 15.083333333333334 |
32
- | Vector Only | 41.66666666666667 | 25 | 0.25 |
33
- | Keyword + Recency | 41.66666666666667 | 25 | 0.5 |
31
+ | Audrey | 100 | 100 | 15.416666666666666 |
32
+ | Vector Only | 41.66666666666667 | 25 | 0.3333333333333333 |
33
+ | Keyword + Recency | 41.66666666666667 | 25 | 0.6666666666666666 |
34
34
  | Recent Window | 37.5 | 25 | 0 |
35
35
 
36
36
  This output is a regression-gate result. The baselines are toy local baselines used to catch retrieval and lifecycle regressions in the Audrey codebase. They are not external systems, not tuned competitor implementations, and not GuardBench baselines (Ledger: E23-E24). The current suite covers retrieval and operation families such as information extraction, knowledge updates, multi-session reasoning, conflict resolution, procedural learning, privacy boundary, overwrite, delete-and-abstain, semantic merge, and procedural merge (Ledger: E23-E24).
@@ -55,7 +55,7 @@ It reports local adapters only, not external-system comparisons (Ledger: E46):
55
55
  | Evidence recall | 100% |
56
56
  | Redaction leaks | 0 |
57
57
  | Recall-degradation detection | 100% |
58
- | Guard latency p50 / p95 | 3.214 ms / 21.395 ms |
58
+ | Guard latency p50 / p95 | 2.916 ms / 21.17 ms |
59
59
  | Published artifact raw-secret leaks | 0 |
60
60
  | Audrey Guard decision accuracy | 100% |
61
61
  | No-memory decision accuracy | 10% |
@@ -344,7 +344,7 @@ The deterministic demo, `audrey demo --scenario repeated-failure`, constructs a
344
344
 
345
345
  The current paper version has two implemented empirical anchors. First, `benchmarks/snapshots/perf-0.22.2.json` reports canonical local performance under the mock-provider methodology: generated on 2026-05-01 from git SHA `e2e821b`, using mock 64-dimensional in-process embeddings, hybrid recall limit 5, and corpus sizes 100, 1,000, and 5,000 on Node 25.5.0 with a 24-core Ryzen 9 7900X3D and 62.9 GB RAM (Ledger: E20). Under that methodology, hybrid recall p95 is 1.82 ms, 2.364 ms, and 3.417 ms for those three sizes, and encode p95 is 0.589 ms, 2.147 ms, and 1.838 ms (Ledger: E21-E22).
346
346
 
347
- Second, `bench:memory:check` is wired into the release gate and enforces retrieval/lifecycle benchmark guardrails against weak local baselines (Ledger: E23). The current checked-in output reports a 2026-05-08 mock-provider run in which Audrey scores 100% with 100% pass rate, while the strongest listed local baselines score 41.67% with 25% pass rate in that output (Ledger: E24). These numbers support regression-gate honesty; they do not replace GuardBench.
347
+ Second, `bench:memory:check` is wired into the release gate as an **internal regression suite**, not a competitive benchmark. It exists to catch retrieval/lifecycle regressions in Audrey itself. The suite includes hand-tuned weak local baselines (vector-only, keyword-plus-recency, recent-window) whose role is to anchor a relative pass margin — they are not stand-ins for production memory systems, and their scores should not be cited as comparative claims about any external system (Ledger: E23). The current checked-in output reports a 2026-05-08 mock-provider run in which Audrey scores 100% with 100% pass rate and the listed local stub baselines score in the 25-42% range in that same run (Ledger: E24). These numbers support regression-gate honesty inside this repository; they are not cross-system results and they do not replace GuardBench.
348
348
 
349
349
  The README benchmark table currently differs from the canonical JSON snapshot, so the paper quotes only the JSON snapshot and tracks the README correction as a follow-up (Ledger: E28).
350
350
 
@@ -895,13 +895,13 @@ These numbers measure Audrey's local call path under an in-process mock embeddin
895
895
 
896
896
  ### Behavioral Regression Result
897
897
 
898
- The current `benchmarks/output/summary.json` was generated on 2026-05-13T08:33:24.917Z with command `node benchmarks/run.js --provider mock --dimensions 64` (Ledger: E24). It reports:
898
+ The current `benchmarks/output/summary.json` was generated on 2026-05-29T03:45:32.997Z with command `node benchmarks/run.js --provider mock --dimensions 64` (Ledger: E24). It reports:
899
899
 
900
900
  | System | Score Percent | Pass Rate | Average Duration Ms |
901
901
  |---|---:|---:|---:|
902
- | Audrey | 100 | 100 | 15.083333333333334 |
903
- | Vector Only | 41.66666666666667 | 25 | 0.25 |
904
- | Keyword + Recency | 41.66666666666667 | 25 | 0.5 |
902
+ | Audrey | 100 | 100 | 15.416666666666666 |
903
+ | Vector Only | 41.66666666666667 | 25 | 0.3333333333333333 |
904
+ | Keyword + Recency | 41.66666666666667 | 25 | 0.6666666666666666 |
905
905
  | Recent Window | 37.5 | 25 | 0 |
906
906
 
907
907
  This output is a regression-gate result. The baselines are toy local baselines used to catch retrieval and lifecycle regressions in the Audrey codebase. They are not external systems, not tuned competitor implementations, and not GuardBench baselines (Ledger: E23-E24). The current suite covers retrieval and operation families such as information extraction, knowledge updates, multi-session reasoning, conflict resolution, procedural learning, privacy boundary, overwrite, delete-and-abstain, semantic merge, and procedural merge (Ledger: E23-E24).
@@ -924,7 +924,7 @@ It reports local adapters only, not external-system comparisons (Ledger: E46):
924
924
  | Evidence recall | 100% |
925
925
  | Redaction leaks | 0 |
926
926
  | Recall-degradation detection | 100% |
927
- | Guard latency p50 / p95 | 3.214 ms / 21.395 ms |
927
+ | Guard latency p50 / p95 | 2.916 ms / 21.17 ms |
928
928
  | Published artifact raw-secret leaks | 0 |
929
929
  | Audrey Guard decision accuracy | 100% |
930
930
  | No-memory decision accuracy | 10% |
@@ -49,7 +49,7 @@ Every implementation claim in the paper should point to one or more ledger IDs i
49
49
  | E43 - Audrey exposes a Claude Code hook generator, guarded settings apply path, and hook-mode Guard command: `hook-config claude-code` emits hooks, `hook-config claude-code --apply --scope project|user` merges them into Claude Code settings with backup/idempotence, `guard --hook --fail-on-warn` consumes PreToolUse JSON and returns `hookSpecificOutput.permissionDecision`, and `observe-tool` records post-tool events. Codex hook wiring remains pending on a stable host hook surface. | Hook integration boundary | README.md; mcp-server/index.ts; tests/mcp-server.test.js | Yes, focused Vitest and CLI hook smoke passed on 2026-05-12 |
50
50
  | E44 - Audrey preflight events now persist `preflight_evidence_ids` and `audrey_guard_action_key`; `memory_validate` accepts optional `preflight_event_id`, action key, and evidence ids, persists them on the validation audit event, and rejects validation lineage when the memory id was not evidence for that preflight. | Validation lineage implementation | src/action-key.ts; src/controller.ts; src/preflight.ts; src/audrey.ts; mcp-server/index.ts; tests/controller.test.js | Yes, focused Vitest passed on 2026-05-12 |
51
51
  | E45 - Preflight risk scoring uses a fixed severity map (`info=0.1`, `low=0.25`, `medium=0.55`, `high=0.85`), sorts warnings by severity, and strict mode blocks on high-severity warnings; the scoring path does not consume validation feedback. | Fixed risk scoring boundary | src/preflight.ts:6-60,291-299,332-338; src/feedback.ts:3-18,70-163 | Yes, 2026-05-08 |
52
- | E46 - `benchmarks/guardbench.js` runs ten local comparative GuardBench scenarios across Audrey Guard, no-memory, recent-window, vector-only, and FTS-only adapters and writes `benchmarks/output/guardbench-summary.json`, `benchmarks/output/guardbench-manifest.json`, and `benchmarks/output/guardbench-raw.json`; the latest local run has Audrey Guard passing 10/10 scenarios with 100% prevention rate, 0% false-block rate, 100% evidence recall, zero decision-output redaction leaks, zero published artifact raw-secret leaks, 100% recall-degradation detection, 100% decision accuracy, and 3.214ms/21.395ms p50/p95 guard latency under the mock-provider methodology. Baseline decision accuracy was no-memory 10%, recent-window 60%, vector-only 40%, and FTS-only 10%, with 0% full-contract pass rate for each baseline. | GuardBench local comparative results | benchmarks/guardbench.js; benchmarks/output/guardbench-summary.json; benchmarks/output/guardbench-manifest.json; benchmarks/output/guardbench-raw.json; package.json | Yes, `npm run bench:guard:check` passed on 2026-05-13 |
52
+ | E46 - `benchmarks/guardbench.js` runs ten local comparative GuardBench scenarios across Audrey Guard, no-memory, recent-window, vector-only, and FTS-only adapters and writes `benchmarks/output/guardbench-summary.json`, `benchmarks/output/guardbench-manifest.json`, and `benchmarks/output/guardbench-raw.json`; the latest local run has Audrey Guard passing 10/10 scenarios with 100% prevention rate, 0% false-block rate, 100% evidence recall, zero decision-output redaction leaks, zero published artifact raw-secret leaks, 100% recall-degradation detection, 100% decision accuracy, and 2.916ms/21.17ms p50/p95 guard latency under the mock-provider methodology. Baseline decision accuracy was no-memory 10%, recent-window 60%, vector-only 40%, and FTS-only 10%, with 0% full-contract pass rate for each baseline. | GuardBench local comparative results | benchmarks/guardbench.js; benchmarks/output/guardbench-summary.json; benchmarks/output/guardbench-manifest.json; benchmarks/output/guardbench-raw.json; package.json | Yes, `npm run bench:guard:check` passed on 2026-05-13 |
53
53
  | E47 - GuardBench accepts external ESM adapters through `--adapter`, supports `default`, `adapter`, or `createGuardBenchAdapter()` exports, withholds `expectedDecision` and `requiredEvidence` during adapter execution, then scores adapter output against the same full-contract decision/evidence/redaction checks. | GuardBench external adapter contract | benchmarks/guardbench.js; tests/guardbench.test.js; package.json | Yes, `node scripts/run-vitest.mjs run tests/guardbench.test.js` passed on 2026-05-12 |
54
54
  | E48 - Audrey ships a Mem0 Platform GuardBench adapter that uses the current Mem0 REST shape: V3 async memory add with event polling, V2 filtered memory search, and user-entity cleanup. It requires runtime `MEM0_API_KEY` and is not run by default. | First external-system GuardBench adapter | benchmarks/adapters/mem0-platform.mjs; tests/guardbench.test.js; README.md | Import/contract and mocked REST-flow tests passed on 2026-05-12; live Mem0 run not yet executed |
55
55
  | E49 - GuardBench ships a credential-free example external adapter and a `bench:guard:adapter-smoke` script so the adapter loader can be exercised through the real CLI path without external credentials. | External adapter smoke path | benchmarks/adapters/example-allow.mjs; package.json; README.md; tests/guardbench.test.js | Yes, `npm run bench:guard:adapter-smoke` passed on 2026-05-12 |
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "Audrey arXiv source package",
4
- "generatedAt": "2026-05-13T23:33:56.985Z",
4
+ "generatedAt": "2026-05-29T03:45:42.097Z",
5
5
  "sourceMarkdown": "docs/paper/audrey-paper-v1.md",
6
6
  "publicationPack": "docs/paper/publication-pack.json",
7
7
  "sourceHashes": {
8
- "sourceMarkdown": "3f9c807f0e0e82b0f19018b83900b62efecc17ff9bcee5b493a5d4fe0528ad7a",
8
+ "sourceMarkdown": "f2afc1cda24b1ba91cf39429e7836ead97c7a1c815b294b3d623bb20d8f5e7e6",
9
9
  "publicationPack": "a1a523d5938faea72be568b843ac3890e61cea6070b0cfa46acf22ad3d2fb974",
10
10
  "referencesBib": "c0bfcaf7bfe37d6933c812e46352be8a95397eaa430a0f5bc94037600a53f654"
11
11
  },
@@ -13,8 +13,8 @@
13
13
  {
14
14
  "path": "main.tex",
15
15
  "source": "docs/paper/audrey-paper-v1.md",
16
- "bytes": 122247,
17
- "sha256": "b0122e625380ad9a6aff78e2acbd5984b558c054962f8774f77fee70e6588d06"
16
+ "bytes": 122667,
17
+ "sha256": "e3ee98ea8c523e8f394b8fbbc73e206f0d6126b7349df5669206d4d48d9feea6"
18
18
  },
19
19
  {
20
20
  "path": "references.bib",
@@ -385,7 +385,7 @@ The deterministic demo, \texttt{audrey demo --scenario repeated-failure}, constr
385
385
 
386
386
  The current paper version has two implemented empirical anchors. First, \texttt{benchmarks/snapshots/perf-0.22.2.json} reports canonical local performance under the mock-provider methodology: generated on 2026-05-01 from git SHA \texttt{e2e821b}, using mock 64-dimensional in-process embeddings, hybrid recall limit 5, and corpus sizes 100, 1,000, and 5,000 on Node 25.5.0 with a 24-core Ryzen 9 7900X3D and 62.9 GB RAM (Ledger: E20). Under that methodology, hybrid recall p95 is 1.82 ms, 2.364 ms, and 3.417 ms for those three sizes, and encode p95 is 0.589 ms, 2.147 ms, and 1.838 ms (Ledger: E21-E22).
387
387
 
388
- Second, \texttt{bench:memory:check} is wired into the release gate and enforces retrieval/lifecycle benchmark guardrails against weak local baselines (Ledger: E23). The current checked-in output reports a 2026-05-08 mock-provider run in which Audrey scores 100\% with 100\% pass rate, while the strongest listed local baselines score 41.67\% with 25\% pass rate in that output (Ledger: E24). These numbers support regression-gate honesty; they do not replace GuardBench.
388
+ Second, \texttt{bench:memory:check} is wired into the release gate as an **internal regression suite**, not a competitive benchmark. It exists to catch retrieval/lifecycle regressions in Audrey itself. The suite includes hand-tuned weak local baselines (vector-only, keyword-plus-recency, recent-window) whose role is to anchor a relative pass margin — they are not stand-ins for production memory systems, and their scores should not be cited as comparative claims about any external system (Ledger: E23). The current checked-in output reports a 2026-05-08 mock-provider run in which Audrey scores 100\% with 100\% pass rate and the listed local stub baselines score in the 25-42\% range in that same run (Ledger: E24). These numbers support regression-gate honesty inside this repository; they are not cross-system results and they do not replace GuardBench.
389
389
 
390
390
  The README benchmark table currently differs from the canonical JSON snapshot, so the paper quotes only the JSON snapshot and tracks the README correction as a follow-up (Ledger: E28).
391
391
 
@@ -729,13 +729,13 @@ These numbers measure Audrey's local call path under an in-process mock embeddin
729
729
 
730
730
  \subsection{Behavioral Regression Result}
731
731
 
732
- The current \texttt{benchmarks/output/summary.json} was generated on 2026-05-13T08:33:24.917Z with command \texttt{node benchmarks/run.js --provider mock --dimensions 64} (Ledger: E24). It reports:
732
+ The current \texttt{benchmarks/output/summary.json} was generated on 2026-05-29T03:45:32.997Z with command \texttt{node benchmarks/run.js --provider mock --dimensions 64} (Ledger: E24). It reports:
733
733
 
734
734
  \begin{verbatim}
735
735
  | System | Score Percent | Pass Rate | Average Duration Ms |
736
- | Audrey | 100 | 100 | 15.083333333333334 |
737
- | Vector Only | 41.66666666666667 | 25 | 0.25 |
738
- | Keyword + Recency | 41.66666666666667 | 25 | 0.5 |
736
+ | Audrey | 100 | 100 | 15.416666666666666 |
737
+ | Vector Only | 41.66666666666667 | 25 | 0.3333333333333333 |
738
+ | Keyword + Recency | 41.66666666666667 | 25 | 0.6666666666666666 |
739
739
  | Recent Window | 37.5 | 25 | 0 |
740
740
  \end{verbatim}
741
741
 
@@ -759,7 +759,7 @@ It reports local adapters only, not external-system comparisons (Ledger: E46):
759
759
  | Evidence recall | 100% |
760
760
  | Redaction leaks | 0 |
761
761
  | Recall-degradation detection | 100% |
762
- | Guard latency p50 / p95 | 3.214 ms / 21.395 ms |
762
+ | Guard latency p50 / p95 | 2.916 ms / 21.17 ms |
763
763
  | Published artifact raw-secret leaks | 0 |
764
764
  | Audrey Guard decision accuracy | 100% |
765
765
  | No-memory decision accuracy | 10% |
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "Audrey arXiv compile check",
4
- "generatedAt": "2026-05-13T23:33:57.318Z",
4
+ "generatedAt": "2026-05-29T03:45:42.412Z",
5
5
  "source": {
6
6
  "sourceDir": "docs/paper/output/arxiv",
7
7
  "manifest": "docs/paper/output/arxiv/arxiv-manifest.json",
8
- "manifestSha256": "386121a5f6234f56a370c5c54bde4ff12fc462921e7e5770d6968a4710271df8",
8
+ "manifestSha256": "6364c368755a4188d5b2deea9e3fe80201f5fa55658e6ae570141e54c5293bc6",
9
9
  "mainTex": "docs/paper/output/arxiv/main.tex",
10
- "mainTexSha256": "b0122e625380ad9a6aff78e2acbd5984b558c054962f8774f77fee70e6588d06",
10
+ "mainTexSha256": "e3ee98ea8c523e8f394b8fbbc73e206f0d6126b7349df5669206d4d48d9feea6",
11
11
  "referencesBib": "docs/paper/output/arxiv/references.bib",
12
12
  "referencesBibSha256": "c0bfcaf7bfe37d6933c812e46352be8a95397eaa430a0f5bc94037600a53f654"
13
13
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "audrey",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Local-first memory runtime for AI agents with recall, consolidation, memory reflexes, contradiction detection, and tool-trace learning",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -71,10 +71,10 @@
71
71
  "pretest": "npm run build && npm run test:artifacts",
72
72
  "test": "node scripts/run-vitest.mjs",
73
73
  "test:watch": "node scripts/run-vitest.mjs watch",
74
- "test:artifacts": "npm run bench:perf && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run paper:arxiv && npm run paper:arxiv:verify && npm run paper:arxiv:compile && npm run paper:bundle && npm run paper:bundle:verify",
75
- "release:gate": "npm run typecheck && npm test && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-registry:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run bench:guard:adapter-module:validate && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:validate && npm run bench:guard:publication:verify && npm run python:release:check && npm run smoke:cli && npm run security:audit && npm run pack:check",
76
- "release:gate:sandbox": "npm run build && npm run typecheck && npm run bench:perf && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-registry:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run bench:guard:adapter-module:validate && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:validate && npm run bench:guard:publication:verify && npm run python:release:check && npm run smoke:cli && npm run security:audit && npm run pack:check",
77
- "release:gate:paper": "npm run build && npm run typecheck && npm run bench:perf && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-registry:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run bench:guard:adapter-module:validate && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:validate && npm run bench:guard:publication:verify && npm run python:release:check && npm run paper:sync && npm run paper:arxiv && npm run paper:arxiv:verify && npm run paper:arxiv:compile && npm run paper:launch-plan && npm run paper:launch-results && npm run paper:bundle && npm run paper:bundle:verify && npm run paper:verify && npm run release:readiness && npm run smoke:cli && npm run security:audit && npm run pack:check",
74
+ "test:artifacts": "npm run bench:perf && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run paper:sync && npm run paper:arxiv && npm run paper:arxiv:verify && npm run paper:arxiv:compile && npm run paper:bundle && npm run paper:bundle:verify && npm run paper:verify",
75
+ "release:gate": "npm run typecheck && npm run lint && npm run format:check && npm test && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-registry:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run bench:guard:adapter-module:validate && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:validate && npm run bench:guard:publication:verify && npm run python:release:check && npm run smoke:cli && npm run security:audit && npm run pack:check",
76
+ "release:gate:sandbox": "npm run build && npm run typecheck && npm run lint && npm run format:check && npm run bench:perf && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-registry:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run bench:guard:adapter-module:validate && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:validate && npm run bench:guard:publication:verify && npm run python:release:check && npm run smoke:cli && npm run security:audit && npm run pack:check",
77
+ "release:gate:paper": "npm run build && npm run typecheck && npm run lint && npm run format:check && npm run bench:perf && npm run bench:memory:check && npm run bench:guard:check && npm run bench:guard:card && npm run bench:guard:bundle && npm run bench:guard:bundle:verify && npm run bench:guard:leaderboard && npm run bench:guard:adapter-registry:validate && npm run bench:guard:external:dry-run && npm run bench:guard:external:evidence && npm run bench:guard:adapter-module:validate && npm run bench:guard:adapter-self-test && npm run bench:guard:adapter-self-test:validate && npm run bench:guard:validate && npm run bench:guard:publication:verify && npm run python:release:check && npm run paper:sync && npm run paper:arxiv && npm run paper:arxiv:verify && npm run paper:arxiv:compile && npm run paper:launch-plan && npm run paper:launch-results && npm run paper:bundle && npm run paper:bundle:verify && npm run paper:verify && npm run release:readiness && npm run smoke:cli && npm run security:audit && npm run pack:check",
78
78
  "release:cut:plan": "node scripts/prepare-release-cut.mjs --json",
79
79
  "release:cut:apply": "node scripts/prepare-release-cut.mjs --apply",
80
80
  "release:readiness": "node scripts/verify-release-readiness.mjs --allow-pending",
@@ -135,6 +135,10 @@
135
135
  "paper:sync": "node scripts/sync-paper-artifacts.mjs",
136
136
  "paper:verify": "node scripts/verify-paper-artifacts.mjs",
137
137
  "typecheck": "tsc --noEmit",
138
+ "lint": "eslint .",
139
+ "lint:fix": "eslint . --fix",
140
+ "format": "prettier --write \"src/**/*.ts\" \"mcp-server/**/*.ts\" \"tests/**/*.js\" \"benchmarks/**/*.{js,mjs}\" \"scripts/**/*.{js,mjs}\" \"examples/**/*.js\" \"*.{js,mjs}\" \".prettierrc.json\"",
141
+ "format:check": "prettier --check \"src/**/*.ts\" \"mcp-server/**/*.ts\" \"tests/**/*.js\" \"benchmarks/**/*.{js,mjs}\" \"scripts/**/*.{js,mjs}\" \"examples/**/*.js\" \"*.{js,mjs}\" \".prettierrc.json\"",
138
142
  "serve": "node dist/mcp-server/index.js serve",
139
143
  "docker:build": "docker build -t audrey:local .",
140
144
  "docker:up": "docker compose up -d --build",
@@ -200,11 +204,20 @@
200
204
  "zod": "^4.4.3"
201
205
  },
202
206
  "devDependencies": {
207
+ "@eslint/js": "^10.0.1",
203
208
  "@types/better-sqlite3": "^7.6.13",
204
209
  "@types/node": "^25.6.2",
210
+ "eslint": "^10.4.0",
211
+ "eslint-config-prettier": "^10.1.8",
212
+ "globals": "^17.6.0",
213
+ "prettier": "^3.8.3",
205
214
  "typescript": "^6.0.3",
215
+ "typescript-eslint": "^8.60.0",
206
216
  "vitest": "^4.1.5"
207
217
  },
218
+ "overrides": {
219
+ "qs": "^6.15.2"
220
+ },
208
221
  "directories": {
209
222
  "example": "examples",
210
223
  "test": "tests"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "Audrey paper submission bundle",
4
- "generatedAt": "2026-05-13T23:33:57.713Z",
4
+ "generatedAt": "2026-05-29T03:45:42.799Z",
5
5
  "sourceRoot": ".",
6
6
  "outDir": "docs/paper/output/submission-bundle",
7
7
  "claimVerification": {
@@ -17,33 +17,33 @@
17
17
  "scenarios": 10,
18
18
  "redactionLeaks": 0,
19
19
  "artifactLeaks": 0,
20
- "latencyP50Ms": 3.097,
21
- "latencyP95Ms": 29.711
20
+ "latencyP50Ms": 2.916,
21
+ "latencyP95Ms": 21.17
22
22
  },
23
23
  "files": [
24
24
  {
25
25
  "path": "benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json",
26
26
  "source": "benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json",
27
- "bytes": 1261,
28
- "sha256": "b9fa6d2343c56a8231c1f2d12330676ac760c7d7157d2479e5fbd345c09baacd"
27
+ "bytes": 1266,
28
+ "sha256": "5e17a9311141e22d1df5e86a802c29981d9bd6427de3ed3af00bee3d75f2011c"
29
29
  },
30
30
  {
31
31
  "path": "benchmarks/output/external/guardbench-external-dry-run.json",
32
32
  "source": "benchmarks/output/external/guardbench-external-dry-run.json",
33
33
  "bytes": 1831,
34
- "sha256": "988dc23a7d4724bd76f7e1a01c89bf1c7708e38d24dcae0baafed5ea37e6aa20"
34
+ "sha256": "32eaacbacf59ad6046e442bae6ab72920806f8607a1439170203ef46b6f18d7c"
35
35
  },
36
36
  {
37
37
  "path": "benchmarks/output/external/guardbench-external-evidence.json",
38
38
  "source": "benchmarks/output/external/guardbench-external-evidence.json",
39
39
  "bytes": 1638,
40
- "sha256": "685572d86fb30ac6a6249f0cd1b6a6058b10d6784d88a4a25e0fc17136637379"
40
+ "sha256": "617e4f00748b5c563a9c0a146b91712369854b6b00d4a72fe0375a37260966e8"
41
41
  },
42
42
  {
43
43
  "path": "benchmarks/output/guardbench-conformance-card.json",
44
44
  "source": "benchmarks/output/guardbench-conformance-card.json",
45
- "bytes": 1735,
46
- "sha256": "0709bb4d93a797764e4ed5655c575390a57554a42625398d378c8ec0f23bd2b4"
45
+ "bytes": 1733,
46
+ "sha256": "a32ce0a46b2f031e827caa0896fdd6a870acf92f6bccb481ca661a3ea4b74a79"
47
47
  },
48
48
  {
49
49
  "path": "benchmarks/output/guardbench-manifest.json",
@@ -54,44 +54,44 @@
54
54
  {
55
55
  "path": "benchmarks/output/guardbench-raw.json",
56
56
  "source": "benchmarks/output/guardbench-raw.json",
57
- "bytes": 39429,
58
- "sha256": "c5b9c68cf946478fbfba617f17717e05ea3e01301089de19153d59e77e674bc6"
57
+ "bytes": 43407,
58
+ "sha256": "15b39fd1a65709a89455fbfcaf815daf364b204fa526d5065cc12fcaed281d28"
59
59
  },
60
60
  {
61
61
  "path": "benchmarks/output/guardbench-summary.json",
62
62
  "source": "benchmarks/output/guardbench-summary.json",
63
- "bytes": 64381,
64
- "sha256": "2a6d5ee83cce2502135fb0442ef8cd3f2679fdc38c84207612c22a800a7a113a"
63
+ "bytes": 69260,
64
+ "sha256": "e8669cd6c80dc3dc849b3c4fcc473ea706eb3a760bced69682d0dc2396b2e233"
65
65
  },
66
66
  {
67
67
  "path": "benchmarks/output/leaderboard/guardbench-leaderboard.json",
68
68
  "source": "benchmarks/output/leaderboard/guardbench-leaderboard.json",
69
- "bytes": 2798,
70
- "sha256": "55c6fabf3e4ccf399650aadf7d34e83d4bcdd5cfe26439e3d50a7cf9dac0ec66"
69
+ "bytes": 2796,
70
+ "sha256": "4468365e70f156f01e202721644f5e6d273b8482bc740e15b484484acde33ef9"
71
71
  },
72
72
  {
73
73
  "path": "benchmarks/output/leaderboard/guardbench-leaderboard.md",
74
74
  "source": "benchmarks/output/leaderboard/guardbench-leaderboard.md",
75
- "bytes": 364,
76
- "sha256": "d04ac3106b4b4d5563b9cdddb1f5816ff62ad0636836d29f8b91af1d80755458"
75
+ "bytes": 363,
76
+ "sha256": "e492fd96572fa8b2464357aad7b3f3c7e321ad42a11a18b9a343b23b349fc4be"
77
77
  },
78
78
  {
79
79
  "path": "benchmarks/output/submission-bundle/submission-manifest.json",
80
80
  "source": "benchmarks/output/submission-bundle/submission-manifest.json",
81
- "bytes": 3986,
82
- "sha256": "2c37a32eab5dba72b197971ed7a63173d7a395d0e65707a5490a7a868b332c6f"
81
+ "bytes": 3984,
82
+ "sha256": "cc43138aef6db9998079d5b7b638861af497f43e737f731f52fc0fd4abd00da8"
83
83
  },
84
84
  {
85
85
  "path": "benchmarks/output/submission-bundle/validation-report.json",
86
86
  "source": "benchmarks/output/submission-bundle/validation-report.json",
87
87
  "bytes": 739,
88
- "sha256": "9734a26b31a7511fbba361f22245dd6325b65fe47d1072fa59df7eeb15d724a1"
88
+ "sha256": "6f6c385d8db108b1a5e30de389a1131bece70ccb18c552a5f005f7dbe377d695"
89
89
  },
90
90
  {
91
91
  "path": "benchmarks/output/summary.json",
92
92
  "source": "benchmarks/output/summary.json",
93
- "bytes": 100749,
94
- "sha256": "75d778ce194cf9122b3e58bd361b2e15ecc5c1597aa62c060f567011af73963e"
93
+ "bytes": 100748,
94
+ "sha256": "8ad41efec05b0f099a818e64fd191707be5bf6317d41fc353869df10c18918c7"
95
95
  },
96
96
  {
97
97
  "path": "benchmarks/schemas/guardbench-adapter-registry.schema.json",
@@ -150,8 +150,8 @@
150
150
  {
151
151
  "path": "benchmarks/schemas/guardbench-raw.schema.json",
152
152
  "source": "benchmarks/schemas/guardbench-raw.schema.json",
153
- "bytes": 5057,
154
- "sha256": "f419685932a5549d5efef611b1dbbe585300365de3c977fcfedf174672f6bc3a"
153
+ "bytes": 5653,
154
+ "sha256": "2893204554696b69e4e1478f0d147cb95603b5f698ff112ebe9de45904b44045"
155
155
  },
156
156
  {
157
157
  "path": "benchmarks/schemas/guardbench-submission-manifest.schema.json",
@@ -162,8 +162,8 @@
162
162
  {
163
163
  "path": "benchmarks/schemas/guardbench-summary.schema.json",
164
164
  "source": "benchmarks/schemas/guardbench-summary.schema.json",
165
- "bytes": 7331,
166
- "sha256": "ac70b448c730fb8b01899615477a167a64734d16304c39d661b2b3130e8aa1da"
165
+ "bytes": 8004,
166
+ "sha256": "2545b83cdd1d5d5d9abd535950779b5bbf3e5a2b04c3a36c35c2bbacc5efd9d9"
167
167
  },
168
168
  {
169
169
  "path": "docs/AUDREY_PAPER_OUTLINE.md",
@@ -216,8 +216,8 @@
216
216
  {
217
217
  "path": "docs/paper/07-evaluation.md",
218
218
  "source": "docs/paper/07-evaluation.md",
219
- "bytes": 11240,
220
- "sha256": "8062c2f8b2a50af7d921a0358db85f9e65bee742f4c8e2244cadb8756c4fe703"
219
+ "bytes": 11268,
220
+ "sha256": "4e712ef36a936df5034c67aff5c0167013aeb0b843067b6499ab7f47c2cb39e7"
221
221
  },
222
222
  {
223
223
  "path": "docs/paper/08-discussion-limitations.md",
@@ -252,8 +252,8 @@
252
252
  {
253
253
  "path": "docs/paper/audrey-paper-v1.md",
254
254
  "source": "docs/paper/audrey-paper-v1.md",
255
- "bytes": 116195,
256
- "sha256": "3f9c807f0e0e82b0f19018b83900b62efecc17ff9bcee5b493a5d4fe0528ad7a"
255
+ "bytes": 116616,
256
+ "sha256": "f2afc1cda24b1ba91cf39429e7836ead97c7a1c815b294b3d623bb20d8f5e7e6"
257
257
  },
258
258
  {
259
259
  "path": "docs/paper/browser-launch-plan.json",
@@ -294,26 +294,26 @@
294
294
  {
295
295
  "path": "docs/paper/evidence-ledger.md",
296
296
  "source": "docs/paper/evidence-ledger.md",
297
- "bytes": 61844,
298
- "sha256": "2a376be83b65df3a7038ddbd684e809d538ef35cbe34d91eb309773502bb5920"
297
+ "bytes": 61843,
298
+ "sha256": "3dbf5d3b80937b468da063df7b884ba2d8a0d1e52d2c0d27a3a60f287cfdd9a2"
299
299
  },
300
300
  {
301
301
  "path": "docs/paper/output/arxiv-compile-report.json",
302
302
  "source": "docs/paper/output/arxiv-compile-report.json",
303
303
  "bytes": 924,
304
- "sha256": "11018bea60272ce8467675cf6491e9a7dbfeb3a774ee502dd1adc8ba5d3b1112"
304
+ "sha256": "245aef38f5f4edca073731ed0c35560a7a3f67b0be52571e0bee172d155d7b99"
305
305
  },
306
306
  {
307
307
  "path": "docs/paper/output/arxiv/arxiv-manifest.json",
308
308
  "source": "docs/paper/output/arxiv/arxiv-manifest.json",
309
309
  "bytes": 1316,
310
- "sha256": "386121a5f6234f56a370c5c54bde4ff12fc462921e7e5770d6968a4710271df8"
310
+ "sha256": "6364c368755a4188d5b2deea9e3fe80201f5fa55658e6ae570141e54c5293bc6"
311
311
  },
312
312
  {
313
313
  "path": "docs/paper/output/arxiv/main.tex",
314
314
  "source": "docs/paper/output/arxiv/main.tex",
315
- "bytes": 122247,
316
- "sha256": "b0122e625380ad9a6aff78e2acbd5984b558c054962f8774f77fee70e6588d06"
315
+ "bytes": 122667,
316
+ "sha256": "e3ee98ea8c523e8f394b8fbbc73e206f0d6126b7349df5669206d4d48d9feea6"
317
317
  },
318
318
  {
319
319
  "path": "docs/paper/output/arxiv/README-arxiv.txt",
@@ -366,14 +366,14 @@
366
366
  {
367
367
  "path": "package.json",
368
368
  "source": "package.json",
369
- "bytes": 11668,
370
- "sha256": "0892c9cdc5bab8f5036a12ef3cad5eb0b509eea86813f5d49cda29f6d38653c2"
369
+ "bytes": 12529,
370
+ "sha256": "08eed72a235182d32ee495c7fea7f98d5641d855ef387f36f8a57adfbd10eb4e"
371
371
  },
372
372
  {
373
373
  "path": "README.md",
374
374
  "source": "README.md",
375
- "bytes": 24693,
376
- "sha256": "f7c5ac813046ad9f3def5fea67bbae8f1f817b38201d57f9a3565b04470681c6"
375
+ "bytes": 26368,
376
+ "sha256": "4a0c524c65557c042f1752d29c668dfa3656fba6c53be335e50adefc8e9d3597"
377
377
  }
378
378
  ]
379
379
  }
@@ -11,7 +11,8 @@ async function demo() {
11
11
 
12
12
  console.log('--- Encoding payment-operations incidents ---');
13
13
  await brain.encode({
14
- content: 'Processor X returned HTTP 429 when payout retries exceeded 120 requests per minute for marketplace merchants.',
14
+ content:
15
+ 'Processor X returned HTTP 429 when payout retries exceeded 120 requests per minute for marketplace merchants.',
15
16
  source: 'direct-observation',
16
17
  salience: 0.9,
17
18
  tags: ['payments', 'payouts', 'rate-limit'],
@@ -19,7 +20,8 @@ async function demo() {
19
20
  });
20
21
 
21
22
  await brain.encode({
22
- content: 'On-call notes show payout incident volume drops after retry batches are capped at 50 merchants per worker.',
23
+ content:
24
+ 'On-call notes show payout incident volume drops after retry batches are capped at 50 merchants per worker.',
23
25
  source: 'tool-result',
24
26
  salience: 0.8,
25
27
  tags: ['payments', 'payouts', 'ops'],
@@ -27,7 +29,8 @@ async function demo() {
27
29
  });
28
30
 
29
31
  await brain.encode({
30
- content: 'Risk operations requested automatic escalation when payout failures affect more than three merchants in the same hour.',
32
+ content:
33
+ 'Risk operations requested automatic escalation when payout failures affect more than three merchants in the same hour.',
31
34
  source: 'told-by-user',
32
35
  salience: 0.7,
33
36
  tags: ['payments', 'escalation', 'risk'],
@@ -39,9 +42,13 @@ async function demo() {
39
42
  minClusterSize: 3,
40
43
  similarityThreshold: -0.3,
41
44
  extractPrinciple: () => ({
42
- content: 'When payout retries spike, cap retry batches and escalate once multiple merchants are affected in the same hour.',
45
+ content:
46
+ 'When payout retries spike, cap retry batches and escalate once multiple merchants are affected in the same hour.',
43
47
  type: 'procedural',
44
- conditions: ['payout failures > 3 merchants per hour', 'processor returns 429 or throttling errors'],
48
+ conditions: [
49
+ 'payout failures > 3 merchants per hour',
50
+ 'processor returns 429 or throttling errors',
51
+ ],
45
52
  }),
46
53
  });
47
54
 
@@ -11,7 +11,8 @@ async function demo() {
11
11
 
12
12
  console.log('--- Encoding care-coordination observations ---');
13
13
  await brain.encode({
14
- content: 'Referral queue delays drop when missing imaging notes are requested before prior-authorization submission.',
14
+ content:
15
+ 'Referral queue delays drop when missing imaging notes are requested before prior-authorization submission.',
15
16
  source: 'direct-observation',
16
17
  salience: 0.9,
17
18
  tags: ['healthcare-ops', 'prior-auth', 'referrals'],
@@ -19,7 +20,8 @@ async function demo() {
19
20
  });
20
21
 
21
22
  await brain.encode({
22
- content: 'Scheduling team reports the highest callback completion rate between 4pm and 6pm for discharge follow-up.',
23
+ content:
24
+ 'Scheduling team reports the highest callback completion rate between 4pm and 6pm for discharge follow-up.',
23
25
  source: 'tool-result',
24
26
  salience: 0.8,
25
27
  tags: ['healthcare-ops', 'follow-up', 'scheduling'],
@@ -27,7 +29,8 @@ async function demo() {
27
29
  });
28
30
 
29
31
  await brain.encode({
30
- content: 'Care coordinators want interpreter requirements captured in every handoff note before outreach starts.',
32
+ content:
33
+ 'Care coordinators want interpreter requirements captured in every handoff note before outreach starts.',
31
34
  source: 'told-by-user',
32
35
  salience: 0.7,
33
36
  tags: ['healthcare-ops', 'handoff', 'interpreter'],
@@ -39,7 +42,8 @@ async function demo() {
39
42
  minClusterSize: 3,
40
43
  similarityThreshold: -0.3,
41
44
  extractPrinciple: () => ({
42
- content: 'For care-coordination workflows, collect missing documentation and communication preferences before outreach or prior-auth submission.',
45
+ content:
46
+ 'For care-coordination workflows, collect missing documentation and communication preferences before outreach or prior-auth submission.',
43
47
  type: 'procedural',
44
48
  conditions: ['prior-auth missing documentation', 'handoff note lacks outreach constraints'],
45
49
  }),