feat: implement capsule.compose@1 residual and validator - #1263
Merged
Conversation
…-layer refactor(ato): separate computation core from protocol v1
Koh0920
marked this pull request as ready for review
August 13, 2026 11:16
Koh0920
changed the base branch from
base/nightly-before-computation-compatibility
to
nightly
August 13, 2026 11:22
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.
Summary
CompositeResidual v1selected bycapsule.compose@1, including stable NodeId/Endpoint/Connection types, a 1 MiB bound, BLAKE3 ContentRef derivation, and golden vectorscapsule.compose@1explicitly linear and single-binding: one child endpoint may be used by at most one connection or export; fan-out requires an explicit Hub/Router Computationvalidation resource limit exceededfrom semantic invalidity and stop before a CAS read that would exceed the aggregate byte budgetgreetingis exposed by one unchanged ComputationObjectScope boundaries
This PR implements canonical residual structure and structural conformance only.
BoundaryVisibility::Internalmeans a connection is hidden from the parent boundary; it does not claim that complementary child actions synchronized or that atautransition occurred.This PR does not add or change PortGrant, live PortRef, Evaluator, small-step execution, Trace, Contract, Snapshot, materialization, or the Core ComputationObject shape. Runtime evolution,
tau, and resealing remain follow-up work.Verification
Passed locally at HEAD:
cargo test -p capsule-compose --locked(14 tests: 3 codec + 11 structural/integration)cargo check --workspace --lockedcargo fmt --all -- --checkcargo clippy -p capsule-compose --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --locked -- -D warningsbash scripts/check-dep-direction.shThe earlier full
cargo test --workspace --no-fail-fastrun passed compose, Protocol v1 compatibility, Workspace PTY, Ready-State, and all other completed targets, but exited non-zero on the existingshare_interactive_e2eandshare_run_e2efixtures because their committedshare.spec.json/share.lock.jsonpair fails the pre-existing digest check. A serial rerun reproduced that unrelated fixture failure.cargo clippy --workspace --all-targets --all-featuresremains blocked by the existing nacellecapsule_syncunresolved import under all-features; default-feature workspace Clippy passes.