Add cross-operator delegation offline example and verify-dag CLI command#44
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Bridges part of the offline gap tracked in #43: adds a
ca2a verify-dagCLI command and an honest, self-contained offline example.What this adds
ca2a verify-dagCLI command (src/ca2a_runtime/cli.py) — mirrorsverify-chain: same argparse style, same fail-closed non-zero exit on any violation, ASCII/UTF-8-safe JSON output. Loads a provenance DAG (--dag) and runsprovenance.verify_dag; with an optional--chainit additionally runsprovenance.cross_check_chainto bind the DAG to the signed delegation chain.examples/cross-operator-delegation/— productizesexperiments/claim6-cross-operator-attestation/run.pyinto example shape (README + config + Cedar policy +demo.py), following theexamples/minimalconventions. Story: a Parent in trust domain A delegates a scoped task to a Child in domain B; the operators hold independent keys and mutually attest; each attestation binds that side's channel key; the task is sealed to the Child's attested key; the Child enforces delegated scope ∩ local policy ({task:read,task:write}∩{task:read,task:audit}={task:read}); a silently swapped binary is rejected on measurement mismatch; per-hop provenance records form a hash-linked DAG. The demo ends by re-verifying the committedchain.json/dag.jsonthroughca2a verify-chainandca2a verify-dag.Honest labeling (per #43 and LIMITATIONS.md)
Tested (venv with
ca2a-runtimeinstalled editable,PYTHONUTF8=1)python -m ca2a_runtime.cli --helplistsverify-dag.python examples/cross-operator-delegation/demo.pyexits 0 (12/12 checks OK).ca2a validate-config,ca2a verify-chain, andca2a verify-dag(with and without--chain) on the committed artifacts all exit 0.ruff checkandmypypass on the changed files.Advances the first two boxes under "Deliverables tracked here" in #43. Does not touch the runtime/transport work (Tier 2/3).
🤖 Generated with Claude Code