audrey 1.0.2 → 1.1.0

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 (183) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +303 -429
  3. package/SECURITY.md +3 -3
  4. package/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +3 -3
  5. package/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  6. package/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  7. package/benchmarks/output/guardbench-conformance-card.json +11 -11
  8. package/benchmarks/output/guardbench-raw.json +105 -104
  9. package/benchmarks/output/guardbench-summary.json +169 -167
  10. package/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  11. package/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  12. package/benchmarks/output/submission-bundle/guardbench-conformance-card.json +11 -11
  13. package/benchmarks/output/submission-bundle/guardbench-raw.json +105 -104
  14. package/benchmarks/output/submission-bundle/guardbench-summary.json +169 -167
  15. package/benchmarks/output/submission-bundle/submission-manifest.json +11 -11
  16. package/benchmarks/output/submission-bundle/validation-report.json +1 -1
  17. package/benchmarks/output/summary.json +58 -58
  18. package/benchmarks/public-paths.mjs +14 -1
  19. package/dist/mcp-server/config.d.ts +4 -1
  20. package/dist/mcp-server/config.d.ts.map +1 -1
  21. package/dist/mcp-server/config.js +47 -7
  22. package/dist/mcp-server/config.js.map +1 -1
  23. package/dist/mcp-server/hooks.d.ts +41 -0
  24. package/dist/mcp-server/hooks.d.ts.map +1 -0
  25. package/dist/mcp-server/hooks.js +313 -0
  26. package/dist/mcp-server/hooks.js.map +1 -0
  27. package/dist/mcp-server/index.d.ts +8 -354
  28. package/dist/mcp-server/index.d.ts.map +1 -1
  29. package/dist/mcp-server/index.js +593 -565
  30. package/dist/mcp-server/index.js.map +1 -1
  31. package/dist/mcp-server/tool-schemas.d.ts +341 -0
  32. package/dist/mcp-server/tool-schemas.d.ts.map +1 -0
  33. package/dist/mcp-server/tool-schemas.js +248 -0
  34. package/dist/mcp-server/tool-schemas.js.map +1 -0
  35. package/dist/mcp-server/tool-validation.d.ts +17 -0
  36. package/dist/mcp-server/tool-validation.d.ts.map +1 -0
  37. package/dist/mcp-server/tool-validation.js +41 -0
  38. package/dist/mcp-server/tool-validation.js.map +1 -0
  39. package/dist/src/action-key.d.ts +1 -0
  40. package/dist/src/action-key.d.ts.map +1 -1
  41. package/dist/src/action-key.js +11 -13
  42. package/dist/src/action-key.js.map +1 -1
  43. package/dist/src/affect.d.ts +1 -0
  44. package/dist/src/affect.d.ts.map +1 -1
  45. package/dist/src/affect.js +9 -4
  46. package/dist/src/affect.js.map +1 -1
  47. package/dist/src/audrey.d.ts +11 -3
  48. package/dist/src/audrey.d.ts.map +1 -1
  49. package/dist/src/audrey.js +59 -25
  50. package/dist/src/audrey.js.map +1 -1
  51. package/dist/src/autopilot.d.ts +32 -0
  52. package/dist/src/autopilot.d.ts.map +1 -0
  53. package/dist/src/autopilot.js +997 -0
  54. package/dist/src/autopilot.js.map +1 -0
  55. package/dist/src/capsule.d.ts +2 -0
  56. package/dist/src/capsule.d.ts.map +1 -1
  57. package/dist/src/capsule.js +27 -12
  58. package/dist/src/capsule.js.map +1 -1
  59. package/dist/src/consolidate.d.ts +1 -1
  60. package/dist/src/consolidate.d.ts.map +1 -1
  61. package/dist/src/consolidate.js +14 -8
  62. package/dist/src/consolidate.js.map +1 -1
  63. package/dist/src/controller.d.ts +2 -0
  64. package/dist/src/controller.d.ts.map +1 -1
  65. package/dist/src/controller.js +18 -11
  66. package/dist/src/controller.js.map +1 -1
  67. package/dist/src/db.d.ts.map +1 -1
  68. package/dist/src/db.js +121 -33
  69. package/dist/src/db.js.map +1 -1
  70. package/dist/src/decay.d.ts +2 -1
  71. package/dist/src/decay.d.ts.map +1 -1
  72. package/dist/src/decay.js +14 -10
  73. package/dist/src/decay.js.map +1 -1
  74. package/dist/src/embedding.d.ts.map +1 -1
  75. package/dist/src/embedding.js.map +1 -1
  76. package/dist/src/encode.d.ts.map +1 -1
  77. package/dist/src/encode.js +4 -2
  78. package/dist/src/encode.js.map +1 -1
  79. package/dist/src/events.d.ts +2 -0
  80. package/dist/src/events.d.ts.map +1 -1
  81. package/dist/src/events.js +15 -1
  82. package/dist/src/events.js.map +1 -1
  83. package/dist/src/feedback.d.ts +1 -0
  84. package/dist/src/feedback.d.ts.map +1 -1
  85. package/dist/src/feedback.js +13 -9
  86. package/dist/src/feedback.js.map +1 -1
  87. package/dist/src/forget.d.ts.map +1 -1
  88. package/dist/src/forget.js.map +1 -1
  89. package/dist/src/impact.d.ts +1 -1
  90. package/dist/src/impact.d.ts.map +1 -1
  91. package/dist/src/impact.js +40 -30
  92. package/dist/src/impact.js.map +1 -1
  93. package/dist/src/import.d.ts.map +1 -1
  94. package/dist/src/import.js +13 -9
  95. package/dist/src/import.js.map +1 -1
  96. package/dist/src/index.d.ts +2 -0
  97. package/dist/src/index.d.ts.map +1 -1
  98. package/dist/src/index.js +1 -0
  99. package/dist/src/index.js.map +1 -1
  100. package/dist/src/interference.d.ts +2 -1
  101. package/dist/src/interference.d.ts.map +1 -1
  102. package/dist/src/interference.js +44 -17
  103. package/dist/src/interference.js.map +1 -1
  104. package/dist/src/llm.d.ts.map +1 -1
  105. package/dist/src/llm.js +12 -1
  106. package/dist/src/llm.js.map +1 -1
  107. package/dist/src/migrate.d.ts.map +1 -1
  108. package/dist/src/migrate.js +9 -9
  109. package/dist/src/migrate.js.map +1 -1
  110. package/dist/src/preflight.d.ts +2 -0
  111. package/dist/src/preflight.d.ts.map +1 -1
  112. package/dist/src/preflight.js +29 -12
  113. package/dist/src/preflight.js.map +1 -1
  114. package/dist/src/promote.d.ts +1 -0
  115. package/dist/src/promote.d.ts.map +1 -1
  116. package/dist/src/promote.js +12 -8
  117. package/dist/src/promote.js.map +1 -1
  118. package/dist/src/recall.d.ts.map +1 -1
  119. package/dist/src/recall.js +152 -100
  120. package/dist/src/recall.js.map +1 -1
  121. package/dist/src/reflexes.d.ts.map +1 -1
  122. package/dist/src/reflexes.js.map +1 -1
  123. package/dist/src/rollback.d.ts.map +1 -1
  124. package/dist/src/rollback.js.map +1 -1
  125. package/dist/src/routes.d.ts +1 -0
  126. package/dist/src/routes.d.ts.map +1 -1
  127. package/dist/src/routes.js +73 -20
  128. package/dist/src/routes.js.map +1 -1
  129. package/dist/src/server.d.ts +1 -0
  130. package/dist/src/server.d.ts.map +1 -1
  131. package/dist/src/server.js +2 -2
  132. package/dist/src/server.js.map +1 -1
  133. package/dist/src/types.d.ts +1 -0
  134. package/dist/src/types.d.ts.map +1 -1
  135. package/dist/src/utils.d.ts +2 -0
  136. package/dist/src/utils.d.ts.map +1 -1
  137. package/dist/src/utils.js +18 -0
  138. package/dist/src/utils.js.map +1 -1
  139. package/dist/src/validate.d.ts +1 -0
  140. package/dist/src/validate.d.ts.map +1 -1
  141. package/dist/src/validate.js +19 -10
  142. package/dist/src/validate.js.map +1 -1
  143. package/docs/AUDREY_PAPER_OUTLINE.md +6 -3
  144. package/docs/PRODUCTION_BACKLOG.md +47 -30
  145. package/docs/paper/06-implementation.md +5 -3
  146. package/docs/paper/07-evaluation.md +5 -5
  147. package/docs/paper/08-discussion-limitations.md +1 -1
  148. package/docs/paper/audrey-paper-v1.md +11 -9
  149. package/docs/paper/evidence-ledger.md +8 -8
  150. package/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  151. package/docs/paper/output/arxiv/main.tex +11 -9
  152. package/docs/paper/output/arxiv-compile-report.json +3 -3
  153. package/docs/paper/output/submission-bundle/README.md +303 -429
  154. package/docs/paper/output/submission-bundle/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +3 -3
  155. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  156. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  157. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-conformance-card.json +11 -11
  158. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-raw.json +105 -104
  159. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-summary.json +169 -167
  160. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  161. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  162. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/submission-manifest.json +11 -11
  163. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/validation-report.json +1 -1
  164. package/docs/paper/output/submission-bundle/benchmarks/output/summary.json +45 -45
  165. package/docs/paper/output/submission-bundle/docs/AUDREY_PAPER_OUTLINE.md +6 -3
  166. package/docs/paper/output/submission-bundle/docs/paper/06-implementation.md +5 -3
  167. package/docs/paper/output/submission-bundle/docs/paper/07-evaluation.md +5 -5
  168. package/docs/paper/output/submission-bundle/docs/paper/08-discussion-limitations.md +1 -1
  169. package/docs/paper/output/submission-bundle/docs/paper/audrey-paper-v1.md +11 -9
  170. package/docs/paper/output/submission-bundle/docs/paper/evidence-ledger.md +8 -8
  171. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  172. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/main.tex +11 -9
  173. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv-compile-report.json +3 -3
  174. package/docs/paper/output/submission-bundle/package.json +5 -2
  175. package/docs/paper/output/submission-bundle/paper-submission-manifest.json +41 -41
  176. package/package.json +5 -2
  177. package/scripts/audit-release-completion.mjs +8 -8
  178. package/scripts/finalize-release.mjs +1 -1
  179. package/scripts/prepare-release-cut.mjs +1 -1
  180. package/scripts/publish-release-bundle.mjs +8 -4
  181. package/scripts/publish-release-github-api.mjs +1 -1
  182. package/scripts/sync-paper-artifacts.mjs +4 -5
  183. package/scripts/verify-release-readiness.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0 - 2026-07-09
4
+
5
+ ### Audrey Autopilot
6
+
7
+ - Adds one normalized lifecycle runtime for current Codex and Claude Code hooks. Session and prompt hooks inject bounded memory context; pre-tool hooks run exact-action Guard checks; post-tool hooks close the matching receipt by `session_id + tool_use_id`; explicitly reported failures form redacted durable memories; stop/compact hooks run due-only consolidation. Opaque Codex Bash results without exit status remain `unknown` rather than being mislabeled as success.
8
+ - Adds deterministic capture for explicit durable user language such as “remember that…”, “I prefer…”, and “from now on…”. Raw prompt events remain hash-only, secrets are rejected, and injected memory is redacted and labeled as evidence rather than authority.
9
+ - Adds host-specific, idempotent hook configuration for Codex and Claude Code with documented scopes, exact side-effectful tool matchers, timeouts, Windows-safe commands, legacy Audrey-hook replacement, private backups, dry runs, and owned-hook uninstall.
10
+ - `audrey install` now defaults to `--host auto`, configures installed Codex and/or Claude Code CLIs, installs Autopilot hooks, warms the pinned local runtime, and rolls MCP configuration back if registration fails. Scope validation happens before any host mutation, and MCP-only installs no longer claim Autopilot readiness. Uninstall has a non-mutating preview, understands Claude's project-keyed local registration, preserves hooks in MCP-only mode, and propagates real CLI failures instead of reporting false success. Codex still requires one-time trust through `/hooks`.
11
+
12
+ ### Isolation and retrieval correctness
13
+
14
+ - Agent ownership now scopes validation, reinforcement, contradiction detection, interference, affective resonance, recent failures, capsules, greetings, preflight, Guard outcome actors, consolidation, and agent-routed REST calls inside a shared store.
15
+ - Cross-agent and legacy mixed-agent contradictions are excluded from scoped capsules. Explicit `scope: "shared"` remains available where cross-agent recall is intentional.
16
+ - Agent-scoped vector retrieval now uses native `sqlite-vec` partition keys before nearest-neighbor ranking, with a single bounded partition-local retry. Existing vector stores migrate losslessly and transactionally. Agent FTS no longer requests 10,000 candidates.
17
+ - Explicit cross-agent REST recall is disabled unless `AUDREY_ENABLE_SHARED_SCOPE=1` or admin routes are enabled; the agent-selection header remains routing metadata rather than an authentication boundary.
18
+ - Semantic and procedural retrieval bookkeeping now updates only final results actually yielded. Hidden, deduplicated, over-limit, and unconsumed stream candidates no longer gain authority merely because a query ran.
19
+
20
+ ### Guard and provider compatibility
21
+
22
+ - Automatic tool outcomes inherit the Guard action fingerprint, so exact failed actions block, successful recovery clears stale failure behavior, and parallel tool calls retain correct lineage. Retrieval queries remain bounded for large prompts and writes while exact identity hashes the full normalized, redacted action rather than a truncated prefix.
23
+ - Adds `AUDREY_LLM_MODEL` plumbing to generated MCP environments.
24
+ - OpenAI chat completions use `max_completion_tokens` with reasoning headroom for GPT-5 and o-series models while retaining `max_tokens` for older chat models.
25
+ - Refreshes Hono and the affected `protobufjs`, `qs`, and `tar` dependency chain to patched releases; the production dependency audit is clean at the release cut.
26
+ - MCP server instructions describe the memory capsule and Guard receipt loop for hosts where lifecycle hooks are unavailable.
27
+
28
+ ### Documentation
29
+
30
+ - Rewrites the README as a human-first product landing page, moves implementation detail into a technical reference, documents honest install/trust boundaries, and states current production limitations explicitly.
31
+ - Updates the supported security release lines for 1.x.
32
+
33
+ ## 1.0.3 - 2026-05-28
34
+
35
+ Housekeeping release. Nothing about how Audrey behaves has changed — this is
36
+ all under-the-hood tidying plus a friendlier README. Safe to upgrade from 1.0.2
37
+ without touching anything.
38
+
39
+ ### Cleaner code under the hood
40
+
41
+ - Started breaking up the big `mcp-server/index.ts` file (it had grown to ~3,600
42
+ lines that did everything at once). The memory-tool input schemas and the
43
+ shared validation helpers now live in their own small files
44
+ (`tool-schemas.ts`, `tool-validation.ts`). Same behavior, just easier to read
45
+ and work on. More of this tidying will follow.
46
+
47
+ ### More reliable tests
48
+
49
+ - The test suite used to need a slow, multi-step "build all the benchmark and
50
+ paper files first" step before it could run. It now sets those up
51
+ automatically, so `npm test` (or a plain `vitest run`) just works from a fresh
52
+ checkout. 785 tests pass with nothing extra to remember.
53
+
54
+ ### Friendlier docs
55
+
56
+ - The README now opens with a short "In Plain English" section that explains
57
+ what Audrey is for in everyday language, before diving into the technical
58
+ detail.
59
+
3
60
  ## 1.0.2 - 2026-05-28
4
61
 
5
62
  Maintenance and engineering-quality release. No runtime behavior change — the