Repository navigation
feat(prism-code): finish prism.containers and prism.volumes, SDK and CLI (Part of #443) - #620
Merged
Merged
Conversation
…ainer (Part of #443, #445) containers.dispatch, inspect, logs and stop by id; the allowUnverified bypass recorded on prism/container/1; a volumes option on create that goes through prism.volumes and keeps the typed host-effects refusal on the record; real Volume and Container types; container.stop on DK-43, a new conformance case for the containers module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5
Member
Author
|
The node 22 and node 24 jobs fail only on Generated by Claude Code |
afflom
marked this pull request as ready for review
November 12, 2026 04:55
…es it (Part of #443) The developer view of #347 keeps the Docker word stop until Prism can stop a run (#350), so prism.containers has no stop verb and no container.stop code yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5
…-a1cnc3 # Conflicts: # sdk/npm/prism-code/CHANGELOG.md
…(Part of #443) prism.containers.list and prism.containers.logs have the behaviour the developer view's glossary reserved for #350, so the words are available now; stop still waits for #350. Regenerated with bindings-package and check-developer-view --write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5
…-a1cnc3 # Conflicts: # sdk/npm/prism-code/CHANGELOG.md
prism-code containers create|inspect|logs|ps|rm|run|start and prism-code volumes create|inspect|ls|rm, in src/cli/ through the group dispatch of #441. volumes reads a project's capability grant and provider declarations, and create prints variable names, never values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5
…and the skill (Part of #443) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5
…-a1cnc3 # Conflicts: # CONFORMANCE.md # SPEC.md # features/suites/sdk.feature # model/ids.toml # sdk/npm/prism-code/developer-surface.json # sdk/npm/prism-code/src/cli/index.mjs # sdk/npm/prism-code/test/fixtures/package-files.json
…iner store (Part of #443) get re-reads the record on every call, so a cached Container takes another client's start, exit or removal instead of the record it first read. A run in progress in this process keeps its own record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5
…-a1cnc3 # Conflicts: # CHANGELOG.md
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Alex · project thread
v0.5 workstream WS3. Part of #443 and #445.
Why
#443 asks for every
prism.containersverb in both the SDK and the CLI, with any bypass of the run gate explicit and recorded on the container. #445 asks for volumes to be declarable, creatable and inspectable through the SDK and the CLI, and for calls that need host effects to raise a typed error naming #216 and #217.What
SDK
containers.dispatch(image, input, options)runs once and returns the output, as a call. The container is removed unlessrm: false, and a failed run rejects with its typed error. A refused image never runs.containers.inspect(id)andlogs(id)take an id or a unique prefix, and are also onContainer.logsis served from the stored output, so a container read back fromPRISM_HOMEstill has its logs.prism/container/1recordsallowUnverified. When a start runs past a refusing check, it also recordsunverified: { at, warning, code, check }.createtakesvolumes. Each name goes throughattachVolume. Each refusal is kept on the record asvolumes: [{ name, attached, refusal }], and the guest never starts.allowUnverifieddoes not bypass this.Volume,CreatedVolume,Volumes,ContainerVolumeandVolumeRefusaltypes.CLI (through the group dispatch of #625)
prism-code containers create|inspect|logs|ps|rm|run|start.createprints the id and takes--volume.pstakes--alland--json. The store never keeps the input, sostartcan only run a container that was created in the same process. Started from another process, it raisescontainer.state.prism-code volumes create|inspect|ls|rm --project <dir>reads the project's capability grant and provider declarations and runs providers throughproviders.mjs.createprints the names of the variables it provisions, never their values.Model and conformance
Developer.lex.tex):psandlogsare available now, andlsis new.stopstays reserved for Long-running holos as containers: run -d, ps, stop, rm, logs and exec #350, so it is not added. Regenerated withcargo xtask bindings-package --writeandcheck-developer-view --write.container.*codes move from DK-41 to the new DK-43, the containers conformance case (containers.test.mjs, 43 tests). DK-40 now counts 28 tests.scripts/package-allowances/containers-volumes.json). The package is 1653369 bytes against a 1660928-byte cap.Test
npm teston main with feat(prism-code): check the developer surface against the developer view's glossary (#347) #614 and feat(prism-code): CLI groups named after the modules (Part of #441) #625 merged in: 876 pass, 1 fails. The failure isreference-archives, which fails locally on main too.cargo xtask check-developer-view: 162 names, all in the glossary.cargo test -p repo-conformance --test conformance -- conformance_dk_40 conformance_dk_43: 2 of 2 pass.🤖 Generated with Claude Code
https://claude.ai/code/session_013Asa3P9bd1FaiHnChhEcZ5