Repository navigation
Releases
v0.1.2
v0.1.2
Security:
- Codex: a JSON-RPC response that matches no pending request is no longer forwarded. The client receives only the fixed notice "Codex RPC response could not be correlated" (rpc_response_gap) (G-299).
- Claude: allowedTools and disallowedTools are passed as separate argument values. Malformed rules are refused with ClaudeToolRuleError (invalid_claude_tool_rule) before any process starts (G-305).
Other: the NDJSON framer no longer rescans pending lines; the reference review now covers the TypeScript package through 0.42.0.
No breaking changes.
v0.1.1
First stable release; API-key homes are verified before every use
This is the first stable release page. The 0.1.0 tag has the same code but reports an old version string; use 0.1.1.
Breaking changes
- An existing API-key home with unsafe permissions is now refused instead of being used. Every file and folder inside
credentials.homemust be owned by the current user and readable only by that user, SYSTEM or Administrators
(on POSIX: current owner, no group, other or special bits). Links refuse the whole home. The error is a typed
unsafe_directorynaming the remedy; see docs/credential-home-protection.md for the repair steps. Prism never
rewrites the permissions of a home you provided. Subscription authentication is unaffected.
Changes
- Security: a private parent folder does not make its contents private on Windows, because users can traverse into a
folder they cannot list. Verification therefore covers every descendant, at admission and again at each provider
handoff. It reads ownership and permission metadata only; stored file contents are never opened, read, copied or
hashed. - Bounded: verification stops at depth 16, 16,384 entries or 30 seconds, and refuses rather than skipping anything,
with a reason naming which limit was reached. - New homes are protected and independently verified. A failed removal reports a typed
cleanup_failed. - Fixed: a temporary Claude configuration or approval directory that could not be removed is now retried after the
process stops, for up to three seconds on Windows when only known files remain, and reported if it still fails.
The stop verdict is unchanged. - Windows only, for Claude and Codex: Linux and macOS process containment is not implemented, and those platforms are
refused before a provider starts.
v0.1.0-alpha.5
Claude permission prompts fail closed (security), and Windows parallel first launches
Security fix, ported from the TypeScript reference 0.30.0 and 0.32.0. The Claude permission hook ran "<PHP_BINARY>" approve.php. Under a non-CLI SAPI (php-fpm, CGI, phpdbg) PHP_BINARY is not the PHP CLI, and the fallback looked up php on PATH. Measured on Claude 2.1.310, Claude also runs a tool when a hook exits 0 silently or with malformed output, even with onFailure: "block".
BREAKING CHANGE: permission prompts from a non-CLI SAPI now require an explicit absolute trusted phpBinary, verified to be a PHP CLI; the implicit php lookup on PATH and the implicit phpdbg/CLI-server selection are removed. Claude permission prompts now require a stable Claude CLI of 2.1.295 or later (2.1.310 is the regression pin); a missing, malformed or older version refuses the session before any prompt is sent.
- The hook runs through a native, hash-verified approval adapter in exec form (paths are arguments, never shell text). A tool runs ONLY after the hook validates an explicit allow; a silent exit 0, malformed output, a runtime failure or a timeout blocks it. Inherited PHP ini files cannot inject hook code.
- Prompts and end-of-input are held until the initialize version is verified; a later system/init reporting a missing or different version ends the session.
- Windows: the process-tree supervisor and approval adapter are published as immutable, hash-verified generations behind an atomic pointer. Parallel first launches on a fresh cache no longer refuse with a hash mismatch (measured: 65 of 160 refused before, 0 of 160 after, with 8 distinct compiler outputs per round).
Verified: Windows PHP 8.2/8.4/8.5 and Linux matrices; 24 native Claude 2.1.310 cases with verified-empty process trees; php-fpm 8.3.6 refuses implicit selection; CLI/CGI/phpdbg measured on Windows PHP 8.4.24.
Still not in this port (PHP is behind the TypeScript reference, G-141): readRateLimits, MCP server status, AppContainer LOCAL transport, Codex nativeTools 'none' and its startup flags, replay markers and opt-out. Containment remains Windows-only; Apache and the built-in CLI server were not measured.
v0.1.0-alpha.4
Prism ACP for PHP 0.1.0-alpha.4
No breaking changes.
Add trusted app/tenant API-key authentication for both Windows drivers. Subscriptions remain the default. Applications supply ProviderCredentials with a separate absolute native configuration home; ACP requests and model output cannot select credentials.
Default, moved and canonical aliases of subscription homes are refused. New homes receive private permissions before the native CLI starts. Explicit home settings replace alternate-case inherited variables. Codex confirms API-key login before starting or resuming a thread and never falls back after refusal.
New Windows homes and native temporary directories clear prior explicit ACL grants as well as inherited grants before receiving sensitive material. The release includes a real explicit-Everyone control; marking a DACL protected alone is insufficient (G-118).
Claude's explicit key is redacted from stderr callbacks and stored diagnostics across chunk boundaries and at final flush, matching published TypeScript 0.25.1. If an earlier API-key integration retained provider stderr containing a real key, remove that retained material and rotate the exposed key.
The native provider can read the supplied credential. Codex intentionally persists it in its app home; applications own the permissions of existing homes. Separate homes do not share subscription settings or sessions. These are same-user native process controls, not an OS secret vault.
No runtime dependencies or CLI key arguments are added. Windows remains the supported process transport; POSIX containment, Laravel discovery, full G-98 parity and the recorded G-99/G-100 reference limitations remain outside this preview.
Validation includes the Windows/Ubuntu PHP 8.2/8.4/8.5 matrix, static/format/dependency gates, six published-reference oracles, native authentication and deterministic loopback Codex/MCP start/resume, hostile guard bypasses and verified empty process trees. Native authentication controls make no inference calls.
v0.1.0-alpha.3
v0.1.0-alpha.3 — subscription Codex on Windows, with MCP credential safeguards
No breaking changes.
- Codex driver for the Windows preview, run inside the same Job Object containment as Claude, using the signed-in Codex subscription: start and resume, paged transcript replay, typed prompts, model selection, tool and reasoning updates, usage, the five approval families, and cancellation that keeps the session. Its behaviour is checked against 92 scenarios generated by running the published @particle-academy/prism-acp 0.25.0 Codex driver.
- Session MCP credentials (as in prism-acp-ts 0.25.0): an explicit HTTP
Authorization: Beareris bound to a fresh per-process variable on both start and resume, so an inheritedbearer_token_env_varcannot win. It is kept out of the thread config and Codex shell snapshots, and out of model-run shell commands even under a permissive usershell_environment_policy. A usersetthat would restore it is refused. disabledMcpServersconstructor option on both drivers turns off named inherited MCP servers. It is host policy only, never accepted from ACP requests.- CLI:
--provider=claude|codexand--codex-binary. Claude remains the default.
Not in this release: API-key mode (next alpha), Linux and macOS.
v0.1.0-alpha.2
v0.1.0-alpha.2 — stdin relay diagnostics can no longer enter ACP input
No breaking changes.
- Windows: the stdin relay forwards the client's bytes on its stdout. It now runs with
display_errors=stderrandlog_errors=0, so a PHP notice raised while reading (the host's php.ini decides whether one appears) is not injected into the agent's ACP input stream as a non-JSON line. A regression test forces a real notice under the Job Object supervisor and checks the input byte-for-byte. - Releases now go through publish.yml. A tag publishes only after a successful CI run on that exact commit.
Version::VERSION, the CHANGELOG and the tag must agree. The release notes must declare whether anything breaks. The run then checks that Packagist serves the version.
v0.1.0-alpha.1: Windows Claude preview
Initial PHP ACP preview for Claude on Windows, with no third-party runtime dependencies.
- ACP sessions, prompts, cancellation, models and explicit turn failures.
- Tool approvals through the ACP client; unknown/cancelled decisions and hook failures deny.
- Job Object ownership of providers, detached descendants and the blocked stdin relay.
- Published TypeScript 0.24.1 golden comparisons and required Windows/Ubuntu PHP 8.2/8.4/8.5 CI.
This is an alpha. APIs may change. Codex, Linux/macOS provider containment, Laravel auto-discovery and transcript
replay are not implemented. Unsupported process containment is refused before spawn.
Release source: 06149dea5105ff0287fa99b3e79d087ad37cf846.
Verification: 810 Windows tests / 2449 assertions locally; all eight exact-SHA CI jobs and CodeQL scans pass.
No CI job signs in to a provider, makes a live model call or deploys the Lab.
Requires PHP 8.2+, ctype/json/mbstring and the .NET Framework 4 compiler on Windows.
Packagist first-time registration is a separate authenticated step; this GitHub release alone does not assert
registry availability. See README and docs/releasing.md for installation and consumer verification.