@arnilo/prism 0.0.2 → 0.0.4

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 (99) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +32 -20
  3. package/dist/agent-loops.d.ts +8 -1
  4. package/dist/agent-loops.js +57 -11
  5. package/dist/agents.js +70 -17
  6. package/dist/checkpoints.d.ts +11 -0
  7. package/dist/checkpoints.js +144 -0
  8. package/dist/compaction.js +9 -1
  9. package/dist/content.d.ts +102 -0
  10. package/dist/content.js +410 -0
  11. package/dist/contracts.d.ts +142 -2
  12. package/dist/event-multiplexer.d.ts +23 -0
  13. package/dist/event-multiplexer.js +136 -0
  14. package/dist/execution-policy.d.ts +28 -0
  15. package/dist/execution-policy.js +24 -0
  16. package/dist/index.d.ts +17 -5
  17. package/dist/index.js +11 -4
  18. package/dist/input.js +11 -1
  19. package/dist/leases.d.ts +8 -0
  20. package/dist/leases.js +111 -0
  21. package/dist/node/agent-definitions.js +3 -5
  22. package/dist/node/config.d.ts +1 -0
  23. package/dist/node/config.js +5 -3
  24. package/dist/node/contribution-discovery.js +5 -8
  25. package/dist/node/session-store-jsonl.js +8 -5
  26. package/dist/node/settings.js +2 -2
  27. package/dist/node/trust.js +2 -4
  28. package/dist/observability.d.ts +3 -0
  29. package/dist/observability.js +18 -0
  30. package/dist/providers/media.d.ts +42 -0
  31. package/dist/providers/media.js +116 -0
  32. package/dist/providers/openai-compatible.js +18 -119
  33. package/dist/providers/openai-primitives.d.ts +9 -0
  34. package/dist/providers/openai-primitives.js +129 -0
  35. package/dist/providers/transport.d.ts +40 -0
  36. package/dist/providers/transport.js +221 -0
  37. package/dist/redaction.js +40 -13
  38. package/dist/resources.d.ts +5 -0
  39. package/dist/resources.js +4 -0
  40. package/dist/structured-output.d.ts +11 -0
  41. package/dist/structured-output.js +59 -0
  42. package/dist/testing/persistence-schema.d.ts +102 -0
  43. package/dist/testing/persistence-schema.js +457 -0
  44. package/dist/testing/provider-conformance.js +10 -1
  45. package/dist/testing/run-ledger-conformance.d.ts +33 -0
  46. package/dist/testing/run-ledger-conformance.js +172 -0
  47. package/dist/testing/session-store-conformance.d.ts +16 -0
  48. package/dist/testing/session-store-conformance.js +73 -0
  49. package/dist/tools.d.ts +17 -0
  50. package/dist/tools.js +29 -2
  51. package/docs/agent-events.md +13 -4
  52. package/docs/agent-loops.md +10 -4
  53. package/docs/agent-session-runtime.md +1 -0
  54. package/docs/cli-rpc.md +3 -0
  55. package/docs/coding-agent-tools.md +242 -0
  56. package/docs/coding-security.md +84 -0
  57. package/docs/credential-storage.md +177 -0
  58. package/docs/credentials-and-redaction.md +2 -1
  59. package/docs/database-persistence.md +44 -2
  60. package/docs/host-security.md +15 -1
  61. package/docs/index.md +28 -11
  62. package/docs/input-and-prompt-assembly.md +6 -5
  63. package/docs/mcp-tools.md +139 -0
  64. package/docs/middleware-hooks.md +2 -0
  65. package/docs/migration.md +21 -28
  66. package/docs/model-registry.md +5 -3
  67. package/docs/multimodal-content.md +148 -0
  68. package/docs/observability.md +163 -0
  69. package/docs/performance.md +40 -1
  70. package/docs/persistence-credentials-multimodality-primitives.md +303 -0
  71. package/docs/postgres-persistence.md +141 -0
  72. package/docs/provider-conformance.md +17 -0
  73. package/docs/provider-layer.md +1 -1
  74. package/docs/provider-primitives.md +281 -0
  75. package/docs/providers/kimi.md +1 -0
  76. package/docs/providers/neuralwatt.md +1 -0
  77. package/docs/providers/openai-compatible.md +2 -1
  78. package/docs/providers/openai.md +8 -1
  79. package/docs/providers/opencode-go.md +1 -0
  80. package/docs/providers/openrouter.md +1 -0
  81. package/docs/providers/zai.md +1 -0
  82. package/docs/public-contracts.md +9 -2
  83. package/docs/release-and-install.md +209 -23
  84. package/docs/resource-loading.md +14 -4
  85. package/docs/review-coverage-2026-07-14.md +260 -0
  86. package/docs/run-ledger-conformance.md +96 -0
  87. package/docs/runs-and-usage.md +2 -0
  88. package/docs/session-store-conformance.md +16 -0
  89. package/docs/session-stores-and-branching.md +1 -0
  90. package/docs/settings-auth-trust-security.md +2 -1
  91. package/docs/sqlite-persistence.md +122 -0
  92. package/docs/structured-output.md +9 -0
  93. package/docs/tool-conformance.md +1 -0
  94. package/docs/tool-execution-primitives.md +374 -0
  95. package/docs/tools.md +40 -1
  96. package/docs/workflow-orchestration-primitives.md +565 -0
  97. package/docs/workflow-tui-primitives.md +5 -0
  98. package/docs/workflows.md +219 -0
  99. package/package.json +34 -5
@@ -2,25 +2,37 @@
2
2
 
3
3
  ## What it does
4
4
 
5
- Prism is published as one core package plus eight first-party workspace packages and three umbrella convenience packages. This page describes how they are packed, what each tarball contains, how to install them, the required `@arnilo/prism` peer dependency, the release workflow, and the offline test budget.
5
+ Prism is published as one core package, seventeen first-party capability packages, and six pure-manifest family/profile packages. This page describes how they are packed, what each tarball contains, how to install them, the required `@arnilo/prism` peer dependency, the release workflow, and the offline test budget.
6
6
 
7
7
  Core package:
8
8
 
9
9
  - `@arnilo/prism` — the runtime, contracts, registries, streaming events, CLI, and the `/docs` hub. `files`: `dist` (with `!dist/__tests__` and `!dist/**/*.map` negations), `docs`, `CHANGELOG.md`. `bin`: `prism` -> `./dist/cli.js`. `sideEffects`: `["dist/cli.js"]`.
10
10
 
11
- First-party workspace packages (each `peerDependencies: { "@arnilo/prism": "0.0.2" }`, non-optional; `sideEffects: false`):
11
+ First-party workspace packages (each `peerDependencies: { "@arnilo/prism": "0.0.4" }`, non-optional; `sideEffects: false`):
12
12
 
13
13
  - `@arnilo/prism-provider-openai`, `@arnilo/prism-provider-openrouter`, `@arnilo/prism-provider-kimi`, `@arnilo/prism-provider-zai`, `@arnilo/prism-provider-opencode-go`, `@arnilo/prism-provider-neuralwatt` — provider adapters.
14
14
  - `@arnilo/prism-compaction-llm` — optional LLM-backed compaction strategy.
15
15
  - `@arnilo/prism-compaction-observational-memory` — optional source-backed observational memory.
16
+ - `@arnilo/prism-observability-opentelemetry` — optional OpenTelemetry adapter for `AgentEvent` streams.
17
+ - `@arnilo/prism-tool-validator-json-schema` — bounded JSON Schema tool argument validation.
18
+ - `@arnilo/prism-mcp` — MCP transport/client bridge mapping remote tools into core dispatch.
19
+ - `@arnilo/prism-coding-agent` / `@arnilo/prism-coding-security` — optional host shell/filesystem tools plus approval, containment, and sandbox policy.
20
+ - `@arnilo/prism-session-store-sqlite` / `@arnilo/prism-session-store-postgres` — production persistence, checkpoints, and leases.
21
+ - `@arnilo/prism-credentials-node` — encrypted-file and keychain credential storage.
22
+ - `@arnilo/prism-workflows` — typed bounded DAG orchestration over sessions/tools/events/persistence.
16
23
 
17
- Umbrella packages (pure manifests, no code, no `dist`; ship only `README.md`; use hard `dependencies` to transitively install their family):
24
+ Family/profile packages (pure manifests, no code or `dist`; ship `README.md` and `CHANGELOG.md`; use exact hard `dependencies`):
18
25
 
19
- - `@arnilo/prism-providers` — depends on all 6 `@arnilo/prism-provider-*` packages.
20
- - `@arnilo/prism-compaction` — depends on both `@arnilo/prism-compaction-*` packages.
21
- - `@arnilo/prism-all` — depends on `@arnilo/prism` + `@arnilo/prism-providers` + `@arnilo/prism-compaction` (the full kit in one install).
26
+ - `@arnilo/prism-providers` — all 6 `@arnilo/prism-provider-*` packages.
27
+ - `@arnilo/prism-compaction` — both `@arnilo/prism-compaction-*` packages.
28
+ - `@arnilo/prism-base` — core + compaction family + JSON Schema validator; excludes providers, MCP, native credentials/storage, and coding tools.
29
+ - `@arnilo/prism-code` — base + coding-agent + coding-security + MCP; providers and persistence remain explicit choices.
30
+ - `@arnilo/prism-sdk` — base + workflows + MCP + Node credentials + OpenTelemetry; providers and persistence remain explicit choices.
31
+ - `@arnilo/prism-all` — code + SDK + providers + SQLite + PostgreSQL, transitively installing every first-party package. Installation alone activates no network, telemetry, database, MCP, shell, or filesystem capability.
22
32
 
23
- Each code package's `files` array is `["dist", "!dist/__tests__", "!dist/**/*.map", "README.md", "CHANGELOG.md"]`; `README.md`, `LICENSE`, and `CHANGELOG.md` ship in every code-package tarball, the core tarball also ships the `docs/` directory, and umbrella tarballs ship only `README.md` + `package.json`.
33
+ Profile footprint snapshot (Node 24/npm 11, lockfile graph, 2026-07-14): `base` reaches 6 first-party packages and one external dependency root (Ajv); `code` reaches 10 and three (Ajv, MCP SDK, diff); `sdk` reaches 11 and three (Ajv, MCP SDK, keyring); `all` reaches all 24 manifests and six (those plus better-sqlite3 and pg). Final clean-RC manifest tarballs are 998 B, 995 B, 1,001 B, and 1,393 B respectively, including their 0.0.4 changelogs. Native database drivers stay out of base/code/sdk; both appear only in all.
34
+
35
+ Each code package's `files` array is `["dist", "!dist/__tests__", "!dist/**/*.map", "README.md", "CHANGELOG.md"]`; `README.md`, `LICENSE`, and `CHANGELOG.md` ship in every code-package tarball, the core tarball also ships the `docs/` directory, and family/profile tarballs ship `README.md` + `CHANGELOG.md` + `package.json`.
24
36
 
25
37
  ## When to use it
26
38
 
@@ -34,13 +46,18 @@ Consumers install the core package for the runtime and add first-party packages
34
46
  | --- | --- |
35
47
  | Install core only | `npm install @arnilo/prism` |
36
48
  | Install core + all providers | `npm install @arnilo/prism @arnilo/prism-providers` |
37
- | Install core + compaction | `npm install @arnilo/prism @arnilo/prism-compaction` |
38
- | Install everything (core + providers + compaction) | `npm install @arnilo/prism-all` |
49
+ | Install minimal safe profile | `npm install @arnilo/prism-base` |
50
+ | Install coding-agent profile | `npm install @arnilo/prism-code @arnilo/prism-provider-openai` |
51
+ | Install application SDK profile | `npm install @arnilo/prism-sdk @arnilo/prism-provider-openai @arnilo/prism-session-store-sqlite` |
52
+ | Install everything | `npm install @arnilo/prism-all` |
39
53
  | Install core + a single provider | `npm install @arnilo/prism @arnilo/prism-provider-openai` |
40
54
  | Build everything (core + workspaces) | `npm run build` |
41
55
  | Run the default (network-free) test suite | `npm test` |
42
56
  | Dry-run pack core + every package | `npm run pack:dry-run` |
43
57
  | Local mirror of the release verify gate | `npm run release:dry-run` |
58
+ | Validate clean tag/version/ranges and reject registry collisions | `npm run release:check -- --version 0.0.4` |
59
+ | Preview deterministic publish order | `npm run release:publish -- --version 0.0.4 --dry-run --allow-dirty --allow-untagged` |
60
+ | Resume interrupted tagged publication | `npm run release:publish -- --version 0.0.4 --resume --report release-artifacts/publish-report.json` |
44
61
  | Full SDK readiness gate (typecheck + offline tests + pack) | `npm run sdk:ready` |
45
62
 
46
63
  Public core import specifiers (from the root `exports` map):
@@ -49,11 +66,16 @@ Public core import specifiers (from the root `exports` map):
49
66
  | --- | --- |
50
67
  | `@arnilo/prism` | `dist/index.{js,d.ts}` |
51
68
  | `@arnilo/prism/providers/openai-compatible` | `dist/providers/openai-compatible.{js,d.ts}` |
69
+ | `@arnilo/prism/providers/transport` | `dist/providers/transport.{js,d.ts}` |
70
+ | `@arnilo/prism/providers/openai` | `dist/providers/openai-primitives.{js,d.ts}` |
71
+ | `@arnilo/prism/providers/media` | `dist/providers/media.{js,d.ts}` |
52
72
  | `@arnilo/prism/testing/provider-conformance` | `dist/testing/provider-conformance.{js,d.ts}` |
53
73
  | `@arnilo/prism/testing/session-store-conformance` | `dist/testing/session-store-conformance.{js,d.ts}` |
54
74
  | `@arnilo/prism/testing/compaction-conformance` | `dist/testing/compaction-conformance.{js,d.ts}` |
55
75
  | `@arnilo/prism/testing/tool-conformance` | `dist/testing/tool-conformance.{js,d.ts}` |
56
76
  | `@arnilo/prism/testing/extension-conformance` | `dist/testing/extension-conformance.{js,d.ts}` |
77
+ | `@arnilo/prism/testing/persistence-schema` | `dist/testing/persistence-schema.{js,d.ts}` |
78
+ | `@arnilo/prism/testing/run-ledger-conformance` | `dist/testing/run-ledger-conformance.{js,d.ts}` |
57
79
  | `@arnilo/prism/node/config` | `dist/node/config.{js,d.ts}` |
58
80
  | `@arnilo/prism/node/settings` | `dist/node/settings.{js,d.ts}` |
59
81
  | `@arnilo/prism/node/trust` | `dist/node/trust.{js,d.ts}` |
@@ -68,10 +90,10 @@ Public core import specifiers (from the root `exports` map):
68
90
  A packed tarball contains only public compiled output and release files:
69
91
 
70
92
  - `dist/**` compiled `.js` and `.d.ts` for every exported subpath.
71
- - `README.md`, `LICENSE`, `CHANGELOG.md` in every package.
93
+ - Code packages ship `README.md`, `LICENSE`, and `CHANGELOG.md`; family/profile packages ship `README.md` and `CHANGELOG.md`.
72
94
  - The core tarball additionally ships the full `docs/` directory (the docs hub).
73
95
  - `dist/cli.js` and the `bin` link in core.
74
- - **Tarball filenames.** npm strips the `@scope/` prefix, so the core package `@arnilo/prism` produces a tarball named `arnilo-prism-0.0.2.tgz`; first-party packages produce `arnilo-prism-provider-<name>-0.0.2.tgz` / `arnilo-prism-compaction-<name>-0.0.2.tgz`; umbrella packages produce `arnilo-prism-providers-0.0.2.tgz` / `arnilo-prism-compaction-0.0.2.tgz` / `arnilo-prism-all-0.0.2.tgz`. The CLI bin name `prism` is unaffected by the package name (`npx prism` still works; npm allows the bin field to differ from the package name).
96
+ - **Tarball filenames.** npm strips the `@scope/` prefix, so the core package `@arnilo/prism` produces a tarball named `arnilo-prism-0.0.4.tgz`; first-party packages produce `arnilo-prism-provider-<name>-0.0.4.tgz` / `arnilo-prism-compaction-<name>-0.0.4.tgz` / `arnilo-prism-coding-agent-0.0.4.tgz`; family/profile packages produce `arnilo-prism-{providers,compaction,base,code,sdk,all}-0.0.4.tgz`. The CLI bin name `prism` is unaffected by the package name (`npx prism` still works; npm allows the bin field to differ from the package name).
75
97
 
76
98
  Excluded from every tarball by `files` negation:
77
99
 
@@ -88,9 +110,9 @@ Excluded from every tarball by `files` negation:
88
110
  "name": "host-app",
89
111
  "type": "module",
90
112
  "dependencies": {
91
- "@arnilo/prism": "0.0.2",
92
- "@arnilo/prism-provider-openai": "0.0.2",
93
- "@arnilo/prism-compaction-observational-memory": "0.0.2"
113
+ "@arnilo/prism": "0.0.4",
114
+ "@arnilo/prism-provider-openai": "0.0.4",
115
+ "@arnilo/prism-compaction-observational-memory": "0.0.4"
94
116
  }
95
117
  }
96
118
  ```
@@ -100,7 +122,7 @@ Installing the provider/compaction packages without `@arnilo/prism` present prod
100
122
  ```text
101
123
  npm error code ERESOLVE
102
124
  npm error Could not resolve dependency:
103
- npm error peer @arnilo/prism@"0.0.2" from @arnilo/prism-provider-openai@0.0.2
125
+ npm error peer @arnilo/prism@"0.0.4" from @arnilo/prism-provider-openai@0.0.4
104
126
  ```
105
127
 
106
128
  ## Implementation example
@@ -133,24 +155,161 @@ For SDK readiness, run the same one-command gate directly. It composes existing
133
155
  npm run sdk:ready
134
156
  ```
135
157
 
158
+ Release publication derives all 24 packages from the workspace once, validates exact `0.0.4` manifest/lockfile/internal ranges, then uses deterministic dependency order. `release:check` requires a clean commit tagged `v0.0.4` and rejects any existing registry version. `release:publish --resume` skips only registry versions whose internal dependency fingerprint matches the local manifest; conflicting versions fail closed. Each attempted package is written immediately to the JSON report, so a failed job can rerun safely. `--dry-run` still performs registry availability checks and invokes `npm publish --dry-run` with explicit public access, provenance, and `latest` tag.
159
+
160
+ ```bash
161
+ npm run release:check -- --version 0.0.4
162
+ npm run release:publish -- --version 0.0.4 --dry-run --allow-dirty --allow-untagged
163
+ ```
164
+
165
+ `--allow-dirty` and `--allow-untagged` exist only for local preview; real publication and CI never pass them. npm registry calls occur only in these release preflight/publication commands, never build/test/package discovery.
166
+
136
167
  Optional live smoke tests stay separate from SDK readiness because they require credentials and network access:
137
168
 
138
169
  ```bash
139
170
  PRISM_LIVE_PROVIDER_TESTS=1 npm run test --workspaces --if-present
140
171
  ```
141
172
 
173
+ ### 0.0.4 publish handoff
174
+
175
+ **Decision: GO after operator prerequisites below.** Code, tests, package graph, registry availability, and clean-RC artifacts passed. No package was published during readiness work.
176
+
177
+ #### npm authentication prerequisite
178
+
179
+ The existing GitHub Actions secret `NPM_TOKEN` is used only by the publish step as `NODE_AUTH_TOKEN`, matching previous Prism releases. Confirm that token remains valid and can publish existing and new public packages under `@arnilo`; no additional secret or manual npm publish is required. The workflow also requests OIDC and always passes `--provenance`.
180
+
181
+ #### Release commit and tag
182
+
183
+ Merge through the protected release branch, then run these commands from a clean checkout of the protected merge commit. `git push origin v0.0.4` is the workflow dispatch; there is no manual publish command.
184
+
185
+ ```bash
186
+ # Prepare and push the release commit.
187
+ git diff --check
188
+ npm ci
189
+ npm run sdk:ready
190
+ git add -A
191
+ git diff --cached --check
192
+ git commit -S -m "Release 0.0.4"
193
+ git push origin HEAD
194
+
195
+ # Merge/confirm protected branch CI, then check out that exact clean merge commit.
196
+ test -z "$(git status --porcelain)"
197
+ npm ci
198
+ npm run release:check -- --version 0.0.4 --allow-untagged --report /tmp/prism-0.0.4-preflight.json
199
+
200
+ git tag -s v0.0.4 -m "Prism 0.0.4"
201
+ git verify-tag v0.0.4
202
+ test "$(git rev-parse HEAD)" = "$(git rev-list -n 1 v0.0.4)"
203
+ npm run release:check -- --version 0.0.4 --report /tmp/prism-0.0.4-tagged-preflight.json
204
+ git push origin v0.0.4
205
+ ```
206
+
207
+ The tag workflow's only publication command is `npm run release:publish -- --version "${GITHUB_REF_NAME#v}" --resume --report release-artifacts/publish-report.json`. Latest registry preflight returned `available` for all 24 `0.0.4` versions. Publisher order is stable and dependency-safe:
208
+
209
+ ```text
210
+ 1 @arnilo/prism
211
+ 2 @arnilo/prism-coding-agent
212
+ 3 @arnilo/prism-compaction-llm
213
+ 4 @arnilo/prism-compaction-observational-memory
214
+ 5 @arnilo/prism-credentials-node
215
+ 6 @arnilo/prism-mcp
216
+ 7 @arnilo/prism-observability-opentelemetry
217
+ 8 @arnilo/prism-provider-kimi
218
+ 9 @arnilo/prism-provider-neuralwatt
219
+ 10 @arnilo/prism-provider-openai
220
+ 11 @arnilo/prism-provider-opencode-go
221
+ 12 @arnilo/prism-provider-openrouter
222
+ 13 @arnilo/prism-provider-zai
223
+ 14 @arnilo/prism-session-store-postgres
224
+ 15 @arnilo/prism-session-store-sqlite
225
+ 16 @arnilo/prism-tool-validator-json-schema
226
+ 17 @arnilo/prism-workflows
227
+ 18 @arnilo/prism-coding-security
228
+ 19 @arnilo/prism-compaction
229
+ 20 @arnilo/prism-providers
230
+ 21 @arnilo/prism-base
231
+ 22 @arnilo/prism-code
232
+ 23 @arnilo/prism-sdk
233
+ 24 @arnilo/prism-all
234
+ ```
235
+
236
+ #### Interruption and resume
237
+
238
+ Do not create another tag or rerun packages manually. Re-run failed jobs for the same tag in GitHub Actions. The workflow invokes `release:publish --resume`: registry versions with matching names, versions, and internal dependency fingerprints are skipped; any mismatch stops the job. Retain `release-artifacts-v0.0.4` and `publish-report-v0.0.4` for audit.
239
+
240
+ #### Bounded post-publish smoke
241
+
242
+ Download the workflow artifact and run `sha256sum -c SHA256SUMS`. Then verify all registry versions/tags/integrity and install the complete profile in a fresh directory:
243
+
244
+ ```bash
245
+ while read -r package; do
246
+ test "$(npm view "$package@0.0.4" version)" = "0.0.4"
247
+ test "$(npm view "$package" dist-tags.latest)" = "0.0.4"
248
+ npm view "$package@0.0.4" dist.integrity >/dev/null
249
+ done <<'PACKAGES'
250
+ @arnilo/prism
251
+ @arnilo/prism-coding-agent
252
+ @arnilo/prism-compaction-llm
253
+ @arnilo/prism-compaction-observational-memory
254
+ @arnilo/prism-credentials-node
255
+ @arnilo/prism-mcp
256
+ @arnilo/prism-observability-opentelemetry
257
+ @arnilo/prism-provider-kimi
258
+ @arnilo/prism-provider-neuralwatt
259
+ @arnilo/prism-provider-openai
260
+ @arnilo/prism-provider-opencode-go
261
+ @arnilo/prism-provider-openrouter
262
+ @arnilo/prism-provider-zai
263
+ @arnilo/prism-session-store-postgres
264
+ @arnilo/prism-session-store-sqlite
265
+ @arnilo/prism-tool-validator-json-schema
266
+ @arnilo/prism-workflows
267
+ @arnilo/prism-coding-security
268
+ @arnilo/prism-compaction
269
+ @arnilo/prism-providers
270
+ @arnilo/prism-base
271
+ @arnilo/prism-code
272
+ @arnilo/prism-sdk
273
+ @arnilo/prism-all
274
+ PACKAGES
275
+
276
+ consumer="$(mktemp -d)"
277
+ cd "$consumer"
278
+ npm init -y >/dev/null
279
+ npm install --no-audit --no-fund @arnilo/prism-all@0.0.4
280
+ node --input-type=module <<'NODE'
281
+ for (const name of [
282
+ "@arnilo/prism", "@arnilo/prism-coding-agent", "@arnilo/prism-coding-security",
283
+ "@arnilo/prism-compaction-llm", "@arnilo/prism-compaction-observational-memory",
284
+ "@arnilo/prism-credentials-node", "@arnilo/prism-mcp", "@arnilo/prism-observability-opentelemetry",
285
+ "@arnilo/prism-provider-kimi", "@arnilo/prism-provider-neuralwatt", "@arnilo/prism-provider-openai",
286
+ "@arnilo/prism-provider-opencode-go", "@arnilo/prism-provider-openrouter", "@arnilo/prism-provider-zai",
287
+ "@arnilo/prism-session-store-postgres", "@arnilo/prism-session-store-sqlite",
288
+ "@arnilo/prism-tool-validator-json-schema", "@arnilo/prism-workflows",
289
+ ]) await import(name);
290
+ NODE
291
+ ./node_modules/.bin/prism --help >/dev/null
292
+ npm audit signatures --json --include-attestations > npm-signatures.json
293
+ ```
294
+
295
+ This smoke is bounded to registry metadata, imports, CLI startup, checksums, signatures, and provenance; do not rerun the full release suite after immutable publication.
296
+
297
+ #### Rollback limitations
298
+
299
+ npm publication is not transactional and published versions are immutable. Partial publication is a resume case, not rollback. For a confirmed systemic defect after completion, deprecate every affected `@0.0.4`; restore `latest` to `0.0.3` only for the 13 previously published packages, and remove `latest` from the 11 first-publication packages. Exact `0.0.4` installs remain possible, so publish a fixed version promptly. Do not unpublish except for a security/legal emergency under npm policy.
300
+
142
301
  ## Extension and configuration notes
143
302
 
144
- - **Required `@arnilo/prism` peer.** Every first-party package declares `peerDependencies: { "@arnilo/prism": "0.0.2" }` with no `peerDependenciesMeta` (non-optional). The range stays pinned to `0.0.2` for the 0.x series and will widen to `^1.0.0` at the 1.x stable release. Inside the workspace each package also declares `"@arnilo/prism": "file:../.."` in `devDependencies` so `npm install` resolves the peer locally; that devDependency is stripped from consumer installs and is not a runtime dependency.
145
- - **Public access.** All 12 manifests (9 code packages + 3 umbrellas) declare `"publishConfig": { "access": "public" }` so a manual `npm publish` of a scoped `@arnilo/prism-*` package defaults to public rather than `restricted` (paid). The `release.yml` flags (`npm publish --access public` + `npm publish --workspaces --access public`) are belt-and-suspenders backups.
303
+ - **Required `@arnilo/prism` peer.** Every first-party package declares `peerDependencies: { "@arnilo/prism": "0.0.4" }` with no `peerDependenciesMeta` (non-optional). The range stays pinned to `0.0.4` for the 0.x series and will widen to `^1.0.0` at the 1.x stable release. Inside the workspace each package also declares `"@arnilo/prism": "file:../.."` in `devDependencies` so `npm install` resolves the peer locally; that devDependency is stripped from consumer installs and is not a runtime dependency.
304
+ - **Public access.** All 24 manifests (18 code packages + 6 family/profile packages) declare `"publishConfig": { "access": "public" }`; the publisher also passes `--access public` explicitly because scoped packages otherwise default to restricted on first publish.
146
305
  - **Map retention knob.** Source maps are emitted locally but stripped from tarballs by `!dist/**/*.map`. Removing that `files` negation ships maps in releases (larger tarballs, better consumer stack traces).
147
- - **Release workflow.** `.github/workflows/release.yml` has three jobs. `verify` runs the full SDK readiness gate on Node 24: `npm ci`, then `npm run sdk:ready` (`npm run typecheck`, network-free `npm test`, and `npm run pack:dry-run`). `node20-compat` runs on Node 20: `npm ci`, `npm run build`, then imports every public root `exports` default target from `dist/`. This proves the published package basics under the declared `engines.node >=20` without running docs examples, which require Node >=22.6 native TypeScript stripping. `publish` runs only on `refs/tags/v*` after both `verify` and `node20-compat` succeed: `npm run build`, then `npm publish --access public` for core (first, because packages require the `@arnilo/prism` peer on the registry) and `npm publish --workspaces --access public`. With no `NPM_TOKEN` secret it runs `--dry-run` instead of a real publish. `permissions.id-token: write` is set so `--provenance` can be added later without re-architecting permissions. Local `npm run release:dry-run` delegates to the same `npm run sdk:ready` gate.
306
+ - **Release workflow.** `.github/workflows/release.yml` has four jobs. `verify` runs the full SDK readiness gate on Node 24: `npm ci`, then `npm run sdk:ready` (`npm run typecheck`, network-free `npm test`, and `npm run pack:dry-run`). `node20-compat` runs on Node 20: `npm ci`, `npm run build`, then imports every public root `exports` default target from `dist/`. This proves published-package basics under declared `engines.node >=20` without docs examples, which require Node >=22.6 native TypeScript stripping. `postgres-integration` runs the PostgreSQL suite against `postgres:16`. `publish` runs only for exact `v*` tags after all three gates, checks clean/tagged state and the complete 0.0.4 graph, then publishes in topological order through `scripts/release.mjs`. The existing `NPM_TOKEN` GitHub secret is exposed only to the publish step; `id-token: write` also enables OIDC where configured. npm receives `--provenance --access public --tag latest`; no credential value is placed in source or output. Before publishing, CI packs all 24 tarballs, generates `SHA256SUMS`, and retains both pack manifests and artifacts for 30 days. Registry state is the resume journal: matching published packages are skipped, mismatches stop publication, and an incremental package-status report is also retained for 30 days. Local `npm run release:dry-run` delegates to `npm run sdk:ready`; local PostgreSQL coverage is `PRISM_TEST_POSTGRES_URL=... npm run test:postgres`.
148
307
  - **Adding a package.** New workspace packages are picked up automatically by `npm run build --workspaces`, `npm test --workspaces`, `npm run pack:dry-run`, the packaging guard (`src/__tests__/packaging.test.ts`), and the install-smoke test (`src/__tests__/install-smoke.test.ts`) via the workspace glob; add the package to both tests' config arrays for explicit per-package assertions.
149
308
 
150
309
  ## Security and performance notes
151
310
 
152
311
  - **No secrets or fixtures in tarballs.** Tests, fixtures, `src/`, `plans/`, `.agents/`, `roadmap.md`, and `tsconfig` files are excluded. The `docs avoid real-looking secret examples` docs check and the packaging guard's deny list prevent secret-bearing fixtures from shipping.
153
- - **Live tests stay opt-in.** The default `npm test` is network-free by construction and never sets these vars. Three opt-in gate vars exist, each gating a different set of live smoke tests; none is set by default, in CI, or during release verification. Provider live tests are real smoke tests (text generation, tool-call loop, abort, no-secret-leak) that also require a provider-specific API key; compaction live tests remain empty placeholders awaiting provider-specific checks.
312
+ - **Live tests stay opt-in.** The default `npm test` is network-free by construction and never sets these vars. Provider/compaction live gates stay credential-gated and are not set by default or during `sdk:ready`. The PostgreSQL adapter live matrix is the exception that runs in CI via the dedicated `postgres-integration` job (still skipped in the default suite).
154
313
  - `PRISM_LIVE_PROVIDER_TESTS=1` — gates the six provider packages' `src/__tests__/live.test.ts` (`@arnilo/prism-provider-openai`, `provider-opencode-go`, `provider-openrouter`, `provider-zai`, `provider-kimi`, `provider-neuralwatt`). Each provider live test also requires its own API key env var and skips safely when it is missing:
155
314
  - `OPENAI_API_KEY` for `@arnilo/prism-provider-openai`
156
315
  - `OPENROUTER_API_KEY` for `@arnilo/prism-provider-openrouter`
@@ -160,14 +319,40 @@ PRISM_LIVE_PROVIDER_TESTS=1 npm run test --workspaces --if-present
160
319
  - `OPENCODE_API_KEY` for `@arnilo/prism-provider-opencode-go`
161
320
  - `PRISM_LIVE_COMPACTION_TESTS=1` — gates `@arnilo/prism-compaction-llm`'s live summary-provider smoke test (placeholder).
162
321
  - `PRISM_LIVE_OBSERVATIONAL_MEMORY_TESTS=1` — gates `@arnilo/prism-compaction-observational-memory`'s live worker/provider checks (placeholder).
322
+ - `PRISM_TEST_POSTGRES_URL` — gates `@arnilo/prism-session-store-postgres` integration tests (`runSessionStoreConformance` / `runRunLedgerConformance` against a real database). Local: `PRISM_TEST_POSTGRES_URL=... npm run test:postgres`. CI: `postgres-integration` job.
323
+ - `PRISM_TEST_KEYCHAIN=1` — gates `@arnilo/prism-credentials-node` system-keychain round-trips (requires a working OS keychain backend; skipped by default).
163
324
  - Provider live tests read the API key from the env only when both gates are set; the key is used as a bearer token and never logged. `assertNoSecretLeak` verifies the key value does not appear in any streamed event. The compaction placeholders still carry no real credentials.
164
325
  - Enforced by `network-free-guard.test.ts` (default suite stays network-free) and by source-scanning meta-tests that assert each `live.test.ts` keeps its `skip:` guard.
165
- - **Install smoke is offline.** The install-smoke test packs core + every package into a temp dir and installs the tarballs with `--offline --no-audit --no-fund` into a fresh temp project; zero registry fetches happen because Prism has no runtime dependencies.
326
+ - **Install smoke is offline.** The install-smoke test packs core + every package into a temp dir and installs tarballs with `--offline --no-audit --no-fund` into a fresh project. External dependencies are satisfied from the lockfile-backed npm cache prepared by `npm ci`; any attempted uncached registry fetch fails the gate.
166
327
  - **Offline test budget.** The default `npm test` (no `PRISM_LIVE_PROVIDER_TESTS`) is pinned at **< 60s on Node 20** with a measured local baseline of ~45s (build ~18s + network-free tests/workspace tests/packaging smoke ~27s). The full CI `sdk:ready` gate runs on Node 24 because docs tests execute `examples/*.ts` via native TypeScript stripping. `npm run sdk:ready` also runs typecheck and pack dry-run, so it is allowed to exceed the `npm test` budget while remaining network-free. The CI `sdk:ready` step has `timeout-minutes: 5` as a hang backstop; the separate Node 20 compatibility step has `timeout-minutes: 3`. The budget was raised from 30s after the default suite grew to include every first-party package, offline install smoke, packaging guards, docs examples, and workspace tests; optimize before raising it again.
167
328
 
329
+ ### 0.0.4 dependency audit decision (2026-07-14)
330
+
331
+ `npm audit --audit-level=high` reports 0 vulnerabilities and `npm ls --all` is clean. Lockfile registry entries all carry integrity hashes and resolved registry URLs; direct/runtime dependency licenses are permissive. `@types/node` was updated within its declared Node 22 range from 22.19.21 to 22.20.1. No runtime dependency changed.
332
+
333
+ Major updates are deliberately deferred from this feature release: `diff` 8.0.4 → 9 requires coding-tool compatibility review, TypeScript 5.9.3 → 7 requires compiler/output review, and `@types/node` 22 → 26 would exceed the project's Node 20 support target. Revisit each in a dedicated dependency update after 0.0.4; none addresses a current audit finding. Native `better-sqlite3` is the sole dependency with an install hook and remains isolated in the opt-in SQLite package.
334
+
335
+ ### 0.0.4 release-candidate verification — 2026-07-15
336
+
337
+ Release candidate was copied from the current repository file set into a fresh Git repository, committed, and verified from a clean tree. `npm ci` completed in 1 s and all build/test/pack operations left zero generated or modified files.
338
+
339
+ | Gate | Result |
340
+ | --- | --- |
341
+ | Node 24 full matrix | `npm test` 28.209 s; `npm run sdk:ready` 51.500 s; 1,475 tests (1,450 pass, 25 explicit live skips, 0 fail). The `< 60s` `npm test` budget and 5-minute SDK hang backstop hold. |
342
+ | Node 20 compatibility | Node 20.20.2 clean `npm ci` + build; all 20 root export targets imported. Node 24.18.0 repeated the same 20-import smoke. |
343
+ | PostgreSQL | Fresh `postgres:16` container; all 15 adapter integration tests passed with 0 skips/failures. |
344
+ | Packed consumer | All 24 exact RC tarballs installed offline; 37 code-package/root-subpath imports loaded (six family/profile packages are manifest-only); `prism --help` exited successfully. |
345
+ | Artifact contents | 24 tarballs, 539,285 packed bytes / 2,044,155 unpacked bytes. Core: 342,328 B; base/code/sdk/all: 998/995/1,001/1,393 B. Zero tests, source maps, source, plans, internal reports, fixtures, lockfiles, credential files, unsafe paths, or version/range/access mismatches. The small profile differences from the earlier working-tree snapshot are gzip-level only; unpacked sizes are unchanged. |
346
+ | Reproducibility | A second clean tagged dry-run produced the same SHA-1 tarball shasum for all 24 packages. Registry preflight reported all 24 versions available. |
347
+ | Supply chain | `npm audit --audit-level=high`: 0 vulnerabilities; `npm ls --all`: clean. CycloneDX 1.5 SBOM contains root plus 173 components with no missing/prohibited licenses. Pack manifests include SHA-1 and SHA-512 integrity; 28 SHA-256 checksums cover 24 tarballs, two pack manifests, RC manifest, and SBOM and all re-verify. Source/artifact private-key/token scans found 0 matches. |
348
+ | Provenance | Clean exact `v0.0.4` publication dry-run completed 24/24 with explicit public/latest/provenance arguments and no publish. Signed npm provenance attestation is intentionally generated only by the OIDC publish job because creating it requires real registry publication. |
349
+ | Performance baselines | Task 2 release measurements remain within ceilings: 500-delta ledger 1.19 ms; 500 JSONL appends 141.10 ms; cached schema validation 0.99 µs; six delayed tools 121.12 ms sequential / 60.92 ms at concurrency 2; SQLite 1,000 appends 31.84 ms; redaction 10,000 objects 4.79 ms; default scrypt/AES 48.09 ms; 1,000-node workflow 27.68 ms. |
350
+
351
+ RC manifests, SBOM, checksums, and tarballs are retained as CI artifacts rather than committed generated files.
352
+
168
353
  ## Release checklist
169
354
 
170
- Every release gate maps to an exact enforcement test or command, so the checklist is executable rather than manual. Run `npm run sdk:ready` for the full local SDK readiness gate: `npm run typecheck`, network-free `npm test`, and `npm run pack:dry-run`. `npm run release:dry-run` is an alias for the same gate. The GitHub Actions `verify` job runs `npm ci` and `npm run sdk:ready` on Node 24; `node20-compat` runs `npm ci`, `npm run build`, and public export imports on Node 20.
355
+ Every release gate maps to an exact enforcement test or command, so the checklist is executable rather than manual. Run `npm run sdk:ready` for the full local SDK readiness gate: `npm run typecheck`, network-free `npm test`, and `npm run pack:dry-run`. `npm run release:dry-run` is an alias for the same gate. The GitHub Actions `verify` job runs `npm ci` and `npm run sdk:ready` on Node 24; `node20-compat` runs `npm ci`, `npm run build`, and public export imports on Node 20; `postgres-integration` runs the opt-in PostgreSQL adapter suite against a CI Postgres service.
171
356
 
172
357
  | Gate | Enforcement |
173
358
  | --- | --- |
@@ -175,10 +360,11 @@ Every release gate maps to an exact enforcement test or command, so the checklis
175
360
  | Package exports/subpaths resolve to built output | `public-export-contract.test.ts` asserts every `exports`/`main`/`types`/`bin` target resolves to a built file under `dist/` with a sibling `.d.ts`, and no target escapes `dist/` (no `src/` or `examples/` leak). CI `node20-compat` also imports every public root `exports` default target on Node 20. |
176
361
  | Public-API drift | `public-export-contract.test.ts` `phase39_public_protocol_exports_and_types_do_not_drift` pins the runtime protocol (`providerToolCallDelta`, `ToolCallDeltaContent`), the `/testing/provider-conformance` subpath shape, and the observational-memory runtime `.d.ts` surface. |
177
362
  | Root SDK export surface freeze | `public-export-contract.test.ts` `root export surface is frozen` snapshots every value and type export of `src/index.ts` (107 value + 69 type) so any add/remove is a deliberate test update; `every frozen value export resolves at runtime` rebuilds `dist/index.js` and asserts each value export is present (catches build drift), and `every frozen type export appears in the built type declarations` asserts each type export is in `dist/index.d.ts`. |
178
- | Examples compile and are listed | `npm run typecheck` runs `tsc -p examples --noEmit`; `docs.test.ts` `examples_files_exist_and_index_links_examples` and Phase 48 release gates check every example file exists and the cache-aware + NeuralWatt examples are listed in `examples/README.md`. |
363
+ | Examples compile and are listed; runnable demos execute | `npm run typecheck` runs `tsc -p examples --noEmit`; `docs.test.ts` checks every `examples/*.ts` file is listed in `examples/README.md`, then runs demos offline and scans output for secrets. |
179
364
  | Examples run to completion with no secret leakage | `docs.test.ts` `examples_demos_run_to_completion_and_emit_no_secret` runs each demo (Node strips TypeScript types natively) with exit-0 and real-secret scans; `external_app_example_*` pins the DB-backed adapter reference exercising the `RunLedger`, branch-handle checkout, fork, and prior-run resume. |
180
- | Tarball excludes built tests, source maps, and source | `packaging.test.ts` deny list rejects `dist/__tests__/`, `*.map`, `src/`, `plans/`, and internal files per package; confirms `README.md`/`LICENSE`/`CHANGELOG.md` ship, the core tarball ships `docs/` + `dist/cli.js`, every `exports` target is present as compiled output, and the Phase 48 NeuralWatt release gate pins `@arnilo/prism-provider-neuralwatt` `dist/index.js` + `dist/index.d.ts` plus umbrella membership. |
365
+ | Tarball excludes built tests, source maps, and source | `packaging.test.ts` rejects `dist/__tests__/`, `*.map`, `src/`, `plans/`, and internal files; confirms every package ships README/changelog (and code packages ship LICENSE), core ships docs + CLI, exported targets exist (`dist/index.js` + `dist/index.d.ts` for NeuralWatt), and `prism-all` transitively reaches all 24 manifests. |
181
366
  | NeuralWatt package/docs/examples release gate | `packaging.test.ts` pins `@arnilo/prism-provider-neuralwatt` package exports/type declarations and `@arnilo/prism-providers`/`@arnilo/prism-all` membership; `docs.test.ts` asserts `docs/index.md` links `providers/neuralwatt.md` and `provider-caching.md`, and that `examples/cache-aware-prompt-assembly.ts` plus `examples/neuralwatt-agent-run.ts` exist and are listed. |
367
+ | Version graph and resumable publication | `release.test.ts` covers exact package/lock/range validation, topological order, registry collisions, dry-run, interrupted reports/resume, clean tagged git state, provenance/public/tag arguments, and token-safe errors. `release:check` and `release:publish` derive the workspace graph without a manual package list. |
182
368
  | Network-free + offline test budget | `network-free-guard.test.ts` keeps the default suite network-free; budget pinned `< 60s` (measured baseline above). Install-smoke is offline (`--offline --no-audit --no-fund`, zero registry fetches). |
183
369
  | Core security invariants reaffirmed | Runtime/docs tests hold the trust boundary: **no built-in app tools** (hosts register tools; the core ships only the mock provider and contract helpers), **no hidden provider/credential globals** (providers/credentials are host-owned `AgentConfig` fields, resolved via explicit `providerSource`/`CredentialResolver`), **no auto package discovery** (provider/tool/skill packages are opt-in and individually installed; contribution discovery is realpath-contained and emits inert envelopes the host registers), and **no secret persistence in core** (redaction applies before any `RunLedger`/`SessionStore` append; the ledger gate asserts each message event is written exactly once and redacted). |
184
370
 
@@ -2,10 +2,11 @@
2
2
 
3
3
  ## What it does
4
4
 
5
- Resource helpers decode text, JSON objects, and Prism manifests through a caller-provided `ResourceLoader`.
5
+ Resource helpers decode text, JSON objects, binary payloads, and Prism manifests through a caller-provided `ResourceLoader`.
6
6
 
7
7
  APIs:
8
8
 
9
+ - `loadBinaryResource()`
9
10
  - `loadTextResource()`
10
11
  - `loadJsonResource()`
11
12
  - `loadManifestResource()`
@@ -13,13 +14,14 @@ APIs:
13
14
 
14
15
  ## When to use it
15
16
 
16
- Use these helpers when a host already has a resource loader and wants small decoding helpers for prompts, skills, manifests, or package resources.
17
+ Use these helpers when a host already has a resource loader and wants small decoding helpers for prompts, skills, manifests, binary attachments, or package resources.
17
18
 
18
19
  Do not use them for filesystem access, network access, package discovery, URI routing, caching, trust policy, dynamic imports, or agent/session runtime startup. The host-provided loader owns all I/O and trust decisions.
19
20
 
20
21
  ## Inputs / request
21
22
 
22
23
  ```ts
24
+ loadBinaryResource(loader, uri, context?, options?)
23
25
  loadTextResource(loader, uri, context?)
24
26
  loadJsonResource(loader, uri, context?)
25
27
  loadManifestResource(loader, uri, context?)
@@ -32,9 +34,11 @@ Inputs:
32
34
  | `loader` | `ResourceLoader` | Host-owned loader called once for the requested URI. |
33
35
  | `uri` | `string` | Resource identifier chosen by the host/package. |
34
36
  | `context` | `ResourceLoadContext` | Optional abort signal and metadata forwarded to the loader. |
37
+ | `options` | `LoadBinaryResourceOptions` | Optional `maxItemBytes` override for `loadBinaryResource()`. |
35
38
 
36
39
  ## Outputs / response / events
37
40
 
41
+ - `loadBinaryResource()` returns `resource.data` or UTF-8 encoded `resource.text`, rejecting payloads above `maxItemBytes` (default `DEFAULT_MAX_MEDIA_ITEM_BYTES`).
38
42
  - `loadTextResource()` returns `resource.text` or decodes `resource.data` with `TextDecoder`.
39
43
  - `loadJsonResource()` parses text as JSON and returns a JSON object.
40
44
  - `loadManifestResource()` parses a JSON object and validates it with `parsePrismManifest()`.
@@ -55,7 +59,7 @@ Inputs:
55
59
  ## Implementation example
56
60
 
57
61
  ```ts
58
- import { loadManifestResource, loadTextResource, type ResourceLoader } from "@arnilo/prism";
62
+ import { loadBinaryResource, loadManifestResource, loadTextResource, type ResourceLoader } from "@arnilo/prism";
59
63
 
60
64
  const loader: ResourceLoader = {
61
65
  async load(uri, context) {
@@ -63,14 +67,18 @@ const loader: ResourceLoader = {
63
67
  if (uri.endsWith("prism.manifest.json")) {
64
68
  return { uri, mediaType: "application/json", text: '{"name":"demo-package"}' };
65
69
  }
70
+ if (uri.endsWith(".pdf")) {
71
+ return { uri, mediaType: "application/pdf", data: pdfBytes };
72
+ }
66
73
  return { uri, mediaType: "text/markdown", text: "Prompt text" };
67
74
  },
68
75
  };
69
76
 
77
+ const bytes = await loadBinaryResource(loader, "package://demo/report.pdf");
70
78
  const manifest = await loadManifestResource(loader, "package://demo/prism.manifest.json");
71
79
  const prompt = await loadTextResource(loader, "package://demo/prompt.md");
72
80
 
73
- console.log(manifest.name, prompt);
81
+ console.log(bytes.byteLength, manifest.name, prompt);
74
82
  ```
75
83
 
76
84
  ## Extension and configuration notes
@@ -84,12 +92,14 @@ console.log(manifest.name, prompt);
84
92
 
85
93
  - The caller-provided loader owns URI trust, permissions, filesystem/network access, and credential boundaries.
86
94
  - Node hosts can use `@arnilo/prism/node/trust` (`createPathTrustPolicy`) to guard filesystem paths. It resolves symlinks on the trusted root and target and rejects paths whose realpath escapes the root; missing roots or realpath errors fail closed.
95
+ - `loadBinaryResource()` enforces `ResourceLoadContext.permission` and a finite byte ceiling per call.
87
96
  - Helpers call `loader.load()` once per helper call and do not cache, scan, list, watch, poll, or discover packages.
88
97
  - JSON parsing fails closed for invalid JSON or non-object JSON.
89
98
  - Do not put resolved credential values, tokens, headers, or executable code in loaded config, manifests, prompts, skills, or metadata.
90
99
 
91
100
  ## Related APIs
92
101
 
102
+ - [Multimodal content](multimodal-content.md): bounded `resolveMediaContentBlock()` and SSRF/MIME policy for URL/resource/binary sources.
93
103
  - [Configuration and manifests](configuration-and-manifests.md): data-only manifests and manifest resource declarations.
94
104
  - [Contribution registries](contribution-registries.md): host-owned registries can store resource loaders.
95
105
  - [Public contracts](public-contracts.md): base `ResourceLoader`, `Resource`, and `ResourceLoadContext` contracts.