audrey 1.1.0 → 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 (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +14 -7
  3. package/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +4 -4
  4. package/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  5. package/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  6. package/benchmarks/output/guardbench-conformance-card.json +9 -9
  7. package/benchmarks/output/guardbench-raw.json +104 -104
  8. package/benchmarks/output/guardbench-summary.json +163 -163
  9. package/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  10. package/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  11. package/benchmarks/output/submission-bundle/guardbench-conformance-card.json +9 -9
  12. package/benchmarks/output/submission-bundle/guardbench-raw.json +104 -104
  13. package/benchmarks/output/submission-bundle/guardbench-summary.json +163 -163
  14. package/benchmarks/output/submission-bundle/submission-manifest.json +10 -10
  15. package/benchmarks/output/submission-bundle/validation-report.json +1 -1
  16. package/benchmarks/output/summary.json +67 -67
  17. package/dist/mcp-server/config.d.ts +1 -1
  18. package/dist/mcp-server/config.js +1 -1
  19. package/dist/mcp-server/index.d.ts.map +1 -1
  20. package/dist/mcp-server/index.js +20 -19
  21. package/dist/mcp-server/index.js.map +1 -1
  22. package/dist/src/preflight.d.ts.map +1 -1
  23. package/dist/src/preflight.js +3 -3
  24. package/dist/src/preflight.js.map +1 -1
  25. package/docs/paper/07-evaluation.md +4 -4
  26. package/docs/paper/audrey-paper-v1.md +4 -4
  27. package/docs/paper/evidence-ledger.md +1 -1
  28. package/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  29. package/docs/paper/output/arxiv/main.tex +4 -4
  30. package/docs/paper/output/arxiv-compile-report.json +3 -3
  31. package/docs/paper/output/submission-bundle/README.md +14 -7
  32. package/docs/paper/output/submission-bundle/benchmarks/output/adapter-self-test/guardbench-adapter-self-test.json +4 -4
  33. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-dry-run.json +1 -1
  34. package/docs/paper/output/submission-bundle/benchmarks/output/external/guardbench-external-evidence.json +1 -1
  35. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-conformance-card.json +9 -9
  36. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-raw.json +104 -104
  37. package/docs/paper/output/submission-bundle/benchmarks/output/guardbench-summary.json +163 -163
  38. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.json +5 -5
  39. package/docs/paper/output/submission-bundle/benchmarks/output/leaderboard/guardbench-leaderboard.md +2 -2
  40. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/submission-manifest.json +10 -10
  41. package/docs/paper/output/submission-bundle/benchmarks/output/submission-bundle/validation-report.json +1 -1
  42. package/docs/paper/output/submission-bundle/benchmarks/output/summary.json +56 -56
  43. package/docs/paper/output/submission-bundle/docs/paper/07-evaluation.md +4 -4
  44. package/docs/paper/output/submission-bundle/docs/paper/audrey-paper-v1.md +4 -4
  45. package/docs/paper/output/submission-bundle/docs/paper/evidence-ledger.md +1 -1
  46. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/arxiv-manifest.json +4 -4
  47. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv/main.tex +4 -4
  48. package/docs/paper/output/submission-bundle/docs/paper/output/arxiv-compile-report.json +3 -3
  49. package/docs/paper/output/submission-bundle/package.json +7 -1
  50. package/docs/paper/output/submission-bundle/paper-submission-manifest.json +31 -31
  51. package/package.json +7 -1
  52. package/scripts/audit-release-completion.mjs +1 -1
  53. package/scripts/finalize-release.mjs +1 -1
  54. package/scripts/prepare-release-cut.mjs +1 -1
  55. package/scripts/publish-release-bundle.mjs +1 -1
  56. package/scripts/publish-release-github-api.mjs +1 -1
  57. package/scripts/verify-release-readiness.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.1.0 - 2026-07-09
4
12
 
5
13
  ### Audrey Autopilot
package/README.md CHANGED
@@ -34,10 +34,12 @@ The model does not have to remember that a memory tool exists. That is the point
34
34
  Install Audrey once, review the hooks once, and then use Codex or Claude Code normally.
35
35
 
36
36
  ```bash
37
- npm install -g audrey
37
+ npm install -g audrey --allow-scripts=better-sqlite3,onnxruntime-node,sharp,protobufjs
38
38
  audrey install --host auto
39
39
  ```
40
40
 
41
+ The explicit install-script list is for npm 12's safer dependency policy. It permits only the four packages Audrey needs for SQLite, local inference, and their generated runtime files. With npm 11 or earlier, the shorter `npm install -g audrey` is equivalent.
42
+
41
43
  `auto` configures whichever supported CLIs are installed. You can choose one explicitly:
42
44
 
43
45
  ```bash
@@ -76,7 +78,7 @@ This is more useful than “the vector search found a vaguely similar error.”
76
78
  Try the complete loop without an API key or network call:
77
79
 
78
80
  ```bash
79
- npx audrey demo --scenario repeated-failure
81
+ audrey demo --scenario repeated-failure
80
82
  ```
81
83
 
82
84
  ## What Audrey remembers
@@ -127,12 +129,10 @@ Vector candidates are partitioned by agent before nearest-neighbor ranking, so o
127
129
  ## See it before installing anything
128
130
 
129
131
  ```bash
130
- npx audrey doctor
131
- npx audrey demo
132
- npx audrey install --host auto --dry-run
132
+ npm exec --yes --package=audrey --allow-scripts=better-sqlite3,onnxruntime-node,sharp,protobufjs -- audrey demo --scenario repeated-failure
133
133
  ```
134
134
 
135
- The dry run prints the MCP and lifecycle-hook configuration for both hosts without changing files.
135
+ That command runs from the npm cache, exercises the full SQLite-backed Guard loop, and leaves host configuration unchanged.
136
136
 
137
137
  <div align="center">
138
138
  <img src="docs/assets/audrey-feature-grid.jpg" alt="Audrey memory continuity, recall, evidence, local storage, and memory-before-action" width="760">
@@ -165,6 +165,13 @@ npm install audrey
165
165
  pip install audrey-memory
166
166
  ```
167
167
 
168
+ For a project install with npm 12, approve Audrey's reviewed dependency scripts in the project root and rebuild once if npm reported that it blocked them:
169
+
170
+ ```bash
171
+ npm install-scripts approve better-sqlite3 onnxruntime-node sharp protobufjs
172
+ npm rebuild
173
+ ```
174
+
168
175
  For Autopilot, prefer a global or otherwise stable installation. Hook and MCP configuration pins the actual Node executable and Audrey entrypoint; an ephemeral `npx` cache is not a durable production runtime.
169
176
 
170
177
  ### Host configuration
@@ -381,7 +388,7 @@ npm run pack:check
381
388
  GuardBench currently contains ten local, deterministic pre-action scenarios covering repeated failures, procedures, scope changes, recovery, redaction, conflicting instructions, and noisy stores. The checked-in v1 methodology uses a mock 64-dimensional embedding provider and exists to catch regressions. A perfect local pass is not a claim about real-provider latency or production false-positive rates.
382
389
 
383
390
  <!-- guardbench-summary:start -->
384
- Latest local result in this checkout: 10/10 scenarios passed, 100% prevention rate, 0% false-block rate, 0 raw secret leaks, 0 published artifact leaks, and 3.501ms / 20.658ms p50/p95 Guard latency under the mock-provider methodology.
391
+ Latest local result in this checkout: 10/10 scenarios passed, 100% prevention rate, 0% false-block rate, 0 raw secret leaks, 0 published artifact leaks, and 3.075ms / 17.056ms p50/p95 Guard latency under the mock-provider methodology.
385
392
  <!-- guardbench-summary:end -->
386
393
 
387
394
  `benchmarks/perf-snapshot.js` measures encode and hybrid-recall p50/p95/p99 at configurable corpus sizes with machine and provider provenance. Run it on the hardware and embedding provider you plan to operate; hosted-provider latency is dominated by its network round trip.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "GuardBench adapter self-test",
4
- "generatedAt": "2026-07-10T15:00:46.455Z",
4
+ "generatedAt": "2026-07-10T15:19:16.097Z",
5
5
  "ok": true,
6
6
  "adapter": {
7
7
  "name": "Example Allow Adapter",
@@ -27,9 +27,9 @@
27
27
  "evidenceRecall": 0.1,
28
28
  "redactionLeaks": 0,
29
29
  "latency": {
30
- "p50Ms": 0.01,
31
- "p95Ms": 0.042,
32
- "maxMs": 0.042
30
+ "p50Ms": 0.015,
31
+ "p95Ms": 0.036,
32
+ "maxMs": 0.036
33
33
  }
34
34
  },
35
35
  "contract": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "GuardBench external adapter dry-run matrix",
4
- "generatedAt": "2026-07-10T15:00:47.009Z",
4
+ "generatedAt": "2026-07-10T15:19:16.549Z",
5
5
  "ok": true,
6
6
  "registry": "benchmarks/adapters/registry.json",
7
7
  "outRoot": "benchmarks/output/external",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "GuardBench external evidence verification",
4
- "generatedAt": "2026-07-10T15:00:47.285Z",
4
+ "generatedAt": "2026-07-10T15:19:16.769Z",
5
5
  "ok": true,
6
6
  "allowPending": true,
7
7
  "registry": "benchmarks/adapters/registry.json",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
3
  "suite": "GuardBench conformance card",
4
- "generatedAt": "2026-07-10T15:00:42.135Z",
4
+ "generatedAt": "2026-07-10T15:18:56.703Z",
5
5
  "sourceDir": "benchmarks/output",
6
6
  "manifestVersion": "0.2.0",
7
7
  "suiteId": "guardbench-local-comparative",
@@ -25,9 +25,9 @@
25
25
  "evidenceRecall": 1,
26
26
  "redactionLeaks": 0,
27
27
  "latency": {
28
- "p50Ms": 3.501,
29
- "p95Ms": 20.658,
30
- "maxMs": 20.658
28
+ "p50Ms": 3.075,
29
+ "p95Ms": 17.056,
30
+ "maxMs": 17.056
31
31
  }
32
32
  },
33
33
  "conformance": {
@@ -39,21 +39,21 @@
39
39
  "integrity": {
40
40
  "artifactHashes": {
41
41
  "guardbench-manifest.json": "57636ce19fdaa6e50fc3fc961d9e499a9f43632f588c713a9fefe8e8a6fa724c",
42
- "guardbench-summary.json": "88cd54e091e5aa89e7ef873a2e440430b3c35eb3f4664d963a56d197cc3691e9",
43
- "guardbench-raw.json": "1888c8524d54f10bb403ef09b923cec63376518bf6d202ef271ba895811d37d8"
42
+ "guardbench-summary.json": "420c3d8188cdc636459ad034d6e5ee3836bdf9e649aa3febe5ce087d681a98bb",
43
+ "guardbench-raw.json": "46026c7bd5add25bf7aed89357b958b012bcd46549dc7dd6d31362cef0a0e00f"
44
44
  },
45
45
  "externalRunMetadataHash": null
46
46
  },
47
47
  "provenance": {
48
- "generatedAt": "2026-07-10T15:00:41.781Z",
49
- "gitSha": "af2534b9dc5b980fb879e88ca63afd502480dd24",
48
+ "generatedAt": "2026-07-10T15:18:56.391Z",
49
+ "gitSha": "27632f13e6231ed526303640247343bb60af86a9",
50
50
  "gitDirty": false,
51
51
  "node": "v24.18.0",
52
52
  "v8": "13.6.233.17-node.50",
53
53
  "platform": "linux",
54
54
  "arch": "x64",
55
55
  "osRelease": "6.17.0-1018-azure",
56
- "cpuModel": "AMD EPYC 9V74 80-Core Processor",
56
+ "cpuModel": "INTEL(R) XEON(R) PLATINUM 8573C",
57
57
  "cpuCount": 4,
58
58
  "totalMemoryGb": 15.61,
59
59
  "embeddingProvider": "mock",