@arnilo/prism 0.5.3 → 0.5.5
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.
- package/CHANGELOG.md +13 -0
- package/README.md +10 -10
- package/dist/agent-run-state.d.ts +3 -2
- package/dist/agent-run-state.js +1 -2
- package/dist/agent-session/session/assemble.js +4 -2
- package/dist/contracts-core/run-limits.d.ts +30 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/run-limits.d.ts +27 -8
- package/dist/run-limits.js +93 -29
- package/docs/agent-session-runtime.md +1 -1
- package/docs/credential-storage.md +1 -1
- package/docs/graft.md +1 -1
- package/docs/{0.1.0-readiness.md → history/0.1.0-readiness.md} +8 -8
- package/docs/history/README.md +11 -0
- package/docs/{migrate-to-0.4.md → history/migrate-to-0.4.md} +4 -4
- package/docs/history/migration-0.0.md +738 -0
- package/docs/history/migration-0.1.md +151 -0
- package/docs/history/migration-0.2.md +173 -0
- package/docs/history/migration-0.3.md +39 -0
- package/docs/history/migration-0.4.md +6 -0
- package/docs/{persistence-credentials-multimodality-primitives.md → history/persistence-credentials-multimodality-primitives.md} +13 -13
- package/docs/history/release-handoffs.md +848 -0
- package/docs/{workflow-orchestration-primitives.md → history/workflow-orchestration-primitives.md} +11 -11
- package/docs/host-security.md +1 -1
- package/docs/index.md +157 -143
- package/docs/migrate-to-0.5.md +11 -1
- package/docs/migration.md +19 -1042
- package/docs/multimodal-content.md +1 -1
- package/docs/performance.md +1 -1
- package/docs/postgres-persistence.md +1 -1
- package/docs/provider-packages.md +20 -20
- package/docs/release-and-install.md +57 -842
- package/docs/runs-and-usage.md +2 -2
- package/docs/session-stores-and-branching.md +1 -122
- package/docs/sqlite-persistence.md +1 -1
- package/docs/workflows.md +1 -1
- package/package.json +1 -1
- /package/docs/{workflow-tui-primitives.md → history/workflow-tui-primitives.md} +0 -0
package/docs/{workflow-orchestration-primitives.md → history/workflow-orchestration-primitives.md}
RENAMED
|
@@ -16,7 +16,7 @@ Interactive TUI (**C-012**) is **out of scope** for Plan 057 and deferred. Workf
|
|
|
16
16
|
|
|
17
17
|
## When to use it
|
|
18
18
|
|
|
19
|
-
- **Workflow package authors** should start here, then follow [Agent/session runtime](agent-session-runtime.md), [Agent loops](agent-loops.md), [Runs and usage ledger](runs-and-usage.md), [CLI/RPC](cli-rpc.md), and [Database persistence](database-persistence.md).
|
|
19
|
+
- **Workflow package authors** should start here, then follow [Agent/session runtime](../agent-session-runtime.md), [Agent loops](../agent-loops.md), [Runs and usage ledger](../runs-and-usage.md), [CLI/RPC](../cli-rpc.md), and [Database persistence](../database-persistence.md).
|
|
20
20
|
- **Host authors** use CLI/RPC and `CommandDefinition` as the non-interactive control seam for start/status/cancel/resume.
|
|
21
21
|
- **Core maintainers** own generic `CheckpointStore` and `EventMultiplexer`; workflow node/DAG vocabulary remains outside core.
|
|
22
22
|
- **Security reviewers** use the threat model and design matrix on this page as the acceptance baseline for Plan 057 Tasks 2–7.
|
|
@@ -593,14 +593,14 @@ await session.run("Hi", { signal: AbortSignal.timeout(60_000) });
|
|
|
593
593
|
|
|
594
594
|
## Related APIs
|
|
595
595
|
|
|
596
|
-
- [Agent/session runtime](agent-session-runtime.md): single-session run surface workflow nodes call.
|
|
597
|
-
- [Agent loops](agent-loops.md): within-node validate/revise; custom `AgentLoopStrategy` for function-equivalent behavior.
|
|
598
|
-
- [Agent events](agent-events.md): per-session stream workflow may observe/merge.
|
|
599
|
-
- [CLI/RPC](cli-rpc.md): non-interactive host seam for optional workflow commands.
|
|
600
|
-
- [Runs and usage ledger](runs-and-usage.md): durable audit for workflow and agent runs.
|
|
601
|
-
- [Database persistence](database-persistence.md): optional generic `CheckpointStore` capability implemented by first-party persistence adapters.
|
|
596
|
+
- [Agent/session runtime](../agent-session-runtime.md): single-session run surface workflow nodes call.
|
|
597
|
+
- [Agent loops](../agent-loops.md): within-node validate/revise; custom `AgentLoopStrategy` for function-equivalent behavior.
|
|
598
|
+
- [Agent events](../agent-events.md): per-session stream workflow may observe/merge.
|
|
599
|
+
- [CLI/RPC](../cli-rpc.md): non-interactive host seam for optional workflow commands.
|
|
600
|
+
- [Runs and usage ledger](../runs-and-usage.md): durable audit for workflow and agent runs.
|
|
601
|
+
- [Database persistence](../database-persistence.md): optional generic `CheckpointStore` capability implemented by first-party persistence adapters.
|
|
602
602
|
- [Persistence, credentials, and multimodality primitives](persistence-credentials-multimodality-primitives.md): Plan 056 inventory baseline.
|
|
603
|
-
- [Tool execution primitives](tool-execution-primitives.md): `ExecutionPolicy` and approval pattern.
|
|
604
|
-
- [Host security guide](host-security.md): fail-closed checklist for workflow hosts.
|
|
605
|
-
- [Performance limits](performance.md): subscriber queue defaults workflow tightens.
|
|
606
|
-
- [Review coverage (2026-07-14)](_evidence/review-coverage-2026-07-14.md): C-009/C-012 traceability.
|
|
603
|
+
- [Tool execution primitives](../tool-execution-primitives.md): `ExecutionPolicy` and approval pattern.
|
|
604
|
+
- [Host security guide](../host-security.md): fail-closed checklist for workflow hosts.
|
|
605
|
+
- [Performance limits](../performance.md): subscriber queue defaults workflow tightens.
|
|
606
|
+
- [Review coverage (2026-07-14)](../_evidence/review-coverage-2026-07-14.md): C-009/C-012 traceability.
|
package/docs/host-security.md
CHANGED
|
@@ -214,7 +214,7 @@ PostgreSQL TLS/network policy, MCP endpoint trust/credentials and egress policy
|
|
|
214
214
|
- **Named threat-suites leg.** `npm run security:threat-suites` aggregates the Phase 8–11 conformance suites (durable-loop/HITL approval, coding sandbox/egress/forge, ACP protocol, OIDC/OPA/MCP-OAuth/OpenAPI/artifact) into one named 0.1.0 security evidence leg — same scripts as `npm test`, no rewrite; the Phase 7 tenant-isolation suite is its protected counterpart under `npm run test:postgres` (missing `PRISM_TEST_POSTGRES_URL` is a named blocked gate). The dev-inspector leg (`scripts/phase40-security.test.mjs`, plan 040 Task 5) exercises the `@arnilo/prism-coding-tools/dev` local playground through built public entrypoints: D1 non-loopback binds refuse before any listener exists (`ERR_PRISM_DEV_REMOTE_BIND`) and loopback is the only bindable surface; D2 the host redactor scrubs secret literals from server-rendered replay payloads; D3 replay selectors outside the `resolveRun` seam's ownership fail closed 404 and replay without a durable event_source is a documented 404, never a re-execution; D4 unknown decision outcome discriminants reject `400` without consuming a run version or executing the tool, and a valid `allow_once` applies exactly once.
|
|
215
215
|
- **Dev-surface boundary (plan 040 Task 5).** The `@arnilo/prism-coding-tools/dev` inspector is a developer-time tool: loopback-only by default, non-loopback requires an explicit programmatic `remoteAuthorize` callback plus a real authorizer (the CLI/bin offers no remote-bind flag at all), and it must never be the production API boundary (that stays `@arnilo/prism-core/runtime/server` under host authorization). It carries no credential storage — the host agent config owns credentials and the inspector never reads environment secrets; rendered tool args/results pass the host redactor on both the live and replay paths, and HITL decision resume composes the core `createAgentRunLifecycle` validation (fail-closed on unknown discriminants/versions/runs).
|
|
216
216
|
- **Supply-chain negative fixtures.** `scripts/release-gate.test.mjs` verifies the tarball deny list rejects tampered content (plans/reviews/maps/tests), unexpected file types and credential material (native binaries, `.pem`/`.key`/`.p12`), and that a provenance flag suppressed in CI is detectable in the `release.mjs` publish dry-run arguments (`--provenance` mandatory under `GITHUB_ACTIONS`, never claimed on local OIDC-less publishes).
|
|
217
|
-
- **Mandatory gate stack.** CodeQL/SAST, PR dependency review (fail on high), secret scan (source + unpacked tarballs), SPDX SBOM + license policy, tarball allow/deny content checks, and provenance (npm OIDC + GitHub build attestations on tarballs and SBOM) all run in `security.yml`/`release.yml`; evidence for the 0.1.0 tree is recorded in [0.1.0 readiness](0.1.0-readiness.md).
|
|
217
|
+
- **Mandatory gate stack.** CodeQL/SAST, PR dependency review (fail on high), secret scan (source + unpacked tarballs), SPDX SBOM + license policy, tarball allow/deny content checks, and provenance (npm OIDC + GitHub build attestations on tarballs and SBOM) all run in `security.yml`/`release.yml`; evidence for the 0.1.0 tree is recorded in [0.1.0 readiness](history/0.1.0-readiness.md).
|
|
218
218
|
- **CodeQL query suite.** `.github/codeql/codeql-config.yml` selects the `security-extended` suite for `javascript-typescript` (with the default suite) on push/PR/schedule in `security.yml` (10-minute job bound; measured runtime ~3m22s on the audited SHA, last successful main run `33059128198`). The ignore list covers only generated `dist`, `node_modules`, and release/security artifact directories — first-party packages, threat suites, and fixtures that ship or execute are always scanned, so new alerts enter the same plan-038 ledger/remediation loop (config + guardrails asserted in `scripts/phase38-codeql-regression.test.mjs`). Local Task 6 gates (typecheck/lint/format/threat suites/audit/secret scan/SBOM) pass on the remediations; GitHub `state=open` stays non-zero until those remediations are the analyzed head. Groups G (`js/insufficient-password-hash` on RFC 7636 S256) and H (`js/incomplete-url-substring-sanitization` on a negative docs assertion) are maintainer-reviewed false positives queued for narrow dismissal after that analyze, not code changes.
|
|
219
219
|
- **Live canaries are blocked gates, not skips.** The `live-canaries` and `sandbox-browser` workflows always set their gate env (`PRISM_LIVE_CANARIES=1`), so absent credentials fail the job loudly with a named owner (the workflow + dispatching operator) and retained `canary-report.json` evidence; the local silent-skip path exists only when the gate env is not set.
|
|
220
220
|
|