audrey 1.0.3 → 1.1.1

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 (175) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +307 -434
  3. package/SECURITY.md +3 -3
  4. package/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +4 -4
  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 +12 -12
  8. package/benchmarks/output/guardbench-raw.json +108 -108
  9. package/benchmarks/output/guardbench-summary.json +172 -172
  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 +12 -12
  13. package/benchmarks/output/submission-bundle/guardbench-raw.json +108 -108
  14. package/benchmarks/output/submission-bundle/guardbench-summary.json +172 -172
  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 +71 -71
  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 +5 -10
  28. package/dist/mcp-server/index.d.ts.map +1 -1
  29. package/dist/mcp-server/index.js +605 -302
  30. package/dist/mcp-server/index.js.map +1 -1
  31. package/dist/src/action-key.d.ts +1 -0
  32. package/dist/src/action-key.d.ts.map +1 -1
  33. package/dist/src/action-key.js +11 -13
  34. package/dist/src/action-key.js.map +1 -1
  35. package/dist/src/affect.d.ts +1 -0
  36. package/dist/src/affect.d.ts.map +1 -1
  37. package/dist/src/affect.js +9 -4
  38. package/dist/src/affect.js.map +1 -1
  39. package/dist/src/audrey.d.ts +11 -3
  40. package/dist/src/audrey.d.ts.map +1 -1
  41. package/dist/src/audrey.js +59 -25
  42. package/dist/src/audrey.js.map +1 -1
  43. package/dist/src/autopilot.d.ts +32 -0
  44. package/dist/src/autopilot.d.ts.map +1 -0
  45. package/dist/src/autopilot.js +997 -0
  46. package/dist/src/autopilot.js.map +1 -0
  47. package/dist/src/capsule.d.ts +2 -0
  48. package/dist/src/capsule.d.ts.map +1 -1
  49. package/dist/src/capsule.js +27 -12
  50. package/dist/src/capsule.js.map +1 -1
  51. package/dist/src/consolidate.d.ts +1 -1
  52. package/dist/src/consolidate.d.ts.map +1 -1
  53. package/dist/src/consolidate.js +14 -8
  54. package/dist/src/consolidate.js.map +1 -1
  55. package/dist/src/controller.d.ts +2 -0
  56. package/dist/src/controller.d.ts.map +1 -1
  57. package/dist/src/controller.js +18 -11
  58. package/dist/src/controller.js.map +1 -1
  59. package/dist/src/db.d.ts.map +1 -1
  60. package/dist/src/db.js +121 -33
  61. package/dist/src/db.js.map +1 -1
  62. package/dist/src/decay.d.ts +2 -1
  63. package/dist/src/decay.d.ts.map +1 -1
  64. package/dist/src/decay.js +14 -10
  65. package/dist/src/decay.js.map +1 -1
  66. package/dist/src/embedding.d.ts.map +1 -1
  67. package/dist/src/embedding.js.map +1 -1
  68. package/dist/src/encode.d.ts.map +1 -1
  69. package/dist/src/encode.js +4 -2
  70. package/dist/src/encode.js.map +1 -1
  71. package/dist/src/events.d.ts +2 -0
  72. package/dist/src/events.d.ts.map +1 -1
  73. package/dist/src/events.js +15 -1
  74. package/dist/src/events.js.map +1 -1
  75. package/dist/src/feedback.d.ts +1 -0
  76. package/dist/src/feedback.d.ts.map +1 -1
  77. package/dist/src/feedback.js +13 -9
  78. package/dist/src/feedback.js.map +1 -1
  79. package/dist/src/forget.d.ts.map +1 -1
  80. package/dist/src/forget.js.map +1 -1
  81. package/dist/src/impact.d.ts +1 -1
  82. package/dist/src/impact.d.ts.map +1 -1
  83. package/dist/src/impact.js +40 -30
  84. package/dist/src/impact.js.map +1 -1
  85. package/dist/src/import.d.ts.map +1 -1
  86. package/dist/src/import.js +13 -9
  87. package/dist/src/import.js.map +1 -1
  88. package/dist/src/index.d.ts +2 -0
  89. package/dist/src/index.d.ts.map +1 -1
  90. package/dist/src/index.js +1 -0
  91. package/dist/src/index.js.map +1 -1
  92. package/dist/src/interference.d.ts +2 -1
  93. package/dist/src/interference.d.ts.map +1 -1
  94. package/dist/src/interference.js +44 -17
  95. package/dist/src/interference.js.map +1 -1
  96. package/dist/src/llm.d.ts.map +1 -1
  97. package/dist/src/llm.js +12 -1
  98. package/dist/src/llm.js.map +1 -1
  99. package/dist/src/migrate.d.ts.map +1 -1
  100. package/dist/src/migrate.js +9 -9
  101. package/dist/src/migrate.js.map +1 -1
  102. package/dist/src/preflight.d.ts +2 -0
  103. package/dist/src/preflight.d.ts.map +1 -1
  104. package/dist/src/preflight.js +32 -15
  105. package/dist/src/preflight.js.map +1 -1
  106. package/dist/src/promote.d.ts +1 -0
  107. package/dist/src/promote.d.ts.map +1 -1
  108. package/dist/src/promote.js +12 -8
  109. package/dist/src/promote.js.map +1 -1
  110. package/dist/src/recall.d.ts.map +1 -1
  111. package/dist/src/recall.js +152 -100
  112. package/dist/src/recall.js.map +1 -1
  113. package/dist/src/reflexes.d.ts.map +1 -1
  114. package/dist/src/reflexes.js.map +1 -1
  115. package/dist/src/rollback.d.ts.map +1 -1
  116. package/dist/src/rollback.js.map +1 -1
  117. package/dist/src/routes.d.ts +1 -0
  118. package/dist/src/routes.d.ts.map +1 -1
  119. package/dist/src/routes.js +73 -20
  120. package/dist/src/routes.js.map +1 -1
  121. package/dist/src/server.d.ts +1 -0
  122. package/dist/src/server.d.ts.map +1 -1
  123. package/dist/src/server.js +2 -2
  124. package/dist/src/server.js.map +1 -1
  125. package/dist/src/types.d.ts +1 -0
  126. package/dist/src/types.d.ts.map +1 -1
  127. package/dist/src/utils.d.ts +2 -0
  128. package/dist/src/utils.d.ts.map +1 -1
  129. package/dist/src/utils.js +18 -0
  130. package/dist/src/utils.js.map +1 -1
  131. package/dist/src/validate.d.ts +1 -0
  132. package/dist/src/validate.d.ts.map +1 -1
  133. package/dist/src/validate.js +19 -10
  134. package/dist/src/validate.js.map +1 -1
  135. package/docs/AUDREY_PAPER_OUTLINE.md +6 -3
  136. package/docs/PRODUCTION_BACKLOG.md +47 -30
  137. package/docs/paper/06-implementation.md +5 -3
  138. package/docs/paper/07-evaluation.md +5 -5
  139. package/docs/paper/08-discussion-limitations.md +1 -1
  140. package/docs/paper/audrey-paper-v1.md +11 -9
  141. package/docs/paper/evidence-ledger.md +8 -8
  142. package/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  143. package/docs/paper/output/arxiv/main.tex +11 -9
  144. package/docs/paper/output/arxiv-compile-report.json +3 -3
  145. package/docs/paper/output/submission-bundle/README.md +307 -434
  146. package/docs/paper/output/submission-bundle/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +4 -4
  147. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  148. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  149. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-conformance-card.json +12 -12
  150. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-raw.json +108 -108
  151. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-summary.json +172 -172
  152. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  153. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  154. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/submission-manifest.json +11 -11
  155. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/validation-report.json +1 -1
  156. package/docs/paper/output/submission-bundle/benchmarks/output/summary.json +64 -64
  157. package/docs/paper/output/submission-bundle/docs/AUDREY_PAPER_OUTLINE.md +6 -3
  158. package/docs/paper/output/submission-bundle/docs/paper/06-implementation.md +5 -3
  159. package/docs/paper/output/submission-bundle/docs/paper/07-evaluation.md +5 -5
  160. package/docs/paper/output/submission-bundle/docs/paper/08-discussion-limitations.md +1 -1
  161. package/docs/paper/output/submission-bundle/docs/paper/audrey-paper-v1.md +11 -9
  162. package/docs/paper/output/submission-bundle/docs/paper/evidence-ledger.md +8 -8
  163. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  164. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/main.tex +11 -9
  165. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv-compile-report.json +3 -3
  166. package/docs/paper/output/submission-bundle/package.json +11 -2
  167. package/docs/paper/output/submission-bundle/paper-submission-manifest.json +40 -40
  168. package/package.json +11 -2
  169. package/scripts/audit-release-completion.mjs +8 -8
  170. package/scripts/finalize-release.mjs +1 -1
  171. package/scripts/prepare-release-cut.mjs +1 -1
  172. package/scripts/publish-release-bundle.mjs +8 -4
  173. package/scripts/publish-release-github-api.mjs +1 -1
  174. package/scripts/sync-paper-artifacts.mjs +4 -5
  175. package/scripts/verify-release-readiness.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1 - 2026-07-10
4
+
5
+ ### npm 12 install compatibility
6
+
7
+ - Documents and emits a least-privilege global install command that explicitly allows only Audrey's four required dependency lifecycle scripts. This keeps SQLite and local inference working under npm 12's new default-deny install-script policy without enabling arbitrary package scripts.
8
+ - Adds pinned project-level npm 12 approvals for Audrey's current native/runtime dependencies and regression coverage for the CLI guidance.
9
+ - Pins the trusted npm publisher to npm 11.14.1 so the immutable 1.1.0 tag can be recovered safely after npm 12 withheld `better-sqlite3`'s native binding during its first publish attempt.
10
+
11
+ ## 1.1.0 - 2026-07-09
12
+
13
+ ### Audrey Autopilot
14
+
15
+ - 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.
16
+ - 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.
17
+ - 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.
18
+ - `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`.
19
+
20
+ ### Isolation and retrieval correctness
21
+
22
+ - 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.
23
+ - Cross-agent and legacy mixed-agent contradictions are excluded from scoped capsules. Explicit `scope: "shared"` remains available where cross-agent recall is intentional.
24
+ - 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.
25
+ - 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.
26
+ - 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.
27
+
28
+ ### Guard and provider compatibility
29
+
30
+ - 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.
31
+ - Adds `AUDREY_LLM_MODEL` plumbing to generated MCP environments.
32
+ - 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.
33
+ - Refreshes Hono and the affected `protobufjs`, `qs`, and `tar` dependency chain to patched releases; the production dependency audit is clean at the release cut.
34
+ - MCP server instructions describe the memory capsule and Guard receipt loop for hosts where lifecycle hooks are unavailable.
35
+
36
+ ### Documentation
37
+
38
+ - 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.
39
+ - Updates the supported security release lines for 1.x.
40
+
3
41
  ## 1.0.3 - 2026-05-28
4
42
 
5
43
  Housekeeping release. Nothing about how Audrey behaves has changed — this is