Add read-only prepared catalog semantic diff - #143
Merged
schickling-assistant merged 1 commit intoAug 1, 2026
Merged
Conversation
agent-session-id: ed878dac-3735-4276-b3e0-ea1b1cd65291 agent-tool: Codex CLI agent-tool-version: 0.145.0 agent-model: unknown agent-runtime-profile: /nix/store/mnx8agbdq3wiyb6vz63lhgscgazkrn98-coding-agent-runtime-profile/share/coding-agents/profile.json agent-skills-manifest: /nix/store/5r69m9k2llmri3na81518zx0a7y0d3cn-agent-skills-corpus/share/agent-skills/manifest.json tooling-profile: dotfiles@0fb7e03
schickling-assistant
marked this pull request as ready for review
August 1, 2026 14:24
schickling-assistant
marked this pull request as draft
August 1, 2026 14:24
schickling-assistant
marked this pull request as ready for review
August 1, 2026 14:24
Contributor
Author
|
Thanks @myobie for the careful guidance on the PTY boundary and for making the upstream primitives strong enough to keep this comparison policy-free. Merged cleanly! |
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.

Why
Transactional catalog consumers can prove the live declaration root, but they cannot currently inspect what a fully admitted prepared catalog would change without applying it. That forces downstream policy to infer semantics from bytes or duplicate Agent Spec parsing.
What
st2 catalog diff --prepared DIR --expect-sha256 HEX --jsonThe command is read-only: it does not initialize a catalog or write declarations, markers, generation state, runtime state, workspaces, or the prepared source.
Verification
cargo test --test catalog_diff: 14 passedcargo clippy --test catalog_diff -- --cap-lints warn: passed; only pre-existing library warnings remaincargo test --workspace --all-targets: remainder passed with the documented host-isolation skip after excluding four failures reproduced on the pristine base; one transient PTY registry test passed on isolated retryThe remaining effect-level path normalization and watcher consumption gap stays explicit in the Agent Spec VRS and is outside this policy-free primitive.