feat(runtime): add host adapter gate#12
Merged
Merged
Conversation
Why: - Provide a canonical Rust boundary for host pre-execution gating. - Keep Python wrappers as launchers only while v0 input semantics stay aligned with the runtime request contract. What changed: - Add a cak-host-adapter crate that maps runtime decisions to host-facing outcomes. - Add cakrt gate --proposal with optional enforced deny exit code. - Add a thin Python launcher plus docs and tests for the adapter boundary. Testing: - cargo fmt --check - cargo clippy --workspace --all-targets -- -D warnings - cargo test --workspace - python3 scripts/check_docs.py - python3 -m pytest Not tested: - Live host integration with Codex/Claude/Aider/Vibe adapters is not wired yet. Risk: - narrow - v0 proposal input intentionally reuses EvalRequest; a future host-specific schema may need a compatibility adapter.
Why: - PR python-checks failed because local verification skipped the CI ruff and mypy path. - Add a single local gate so future commits can run the same check surface before push. What changed: - Add a local prek config that mirrors docs, Python, Rust, and demo smoke CI checks. - Fix the new Python shim test to satisfy the existing ruff rules. Testing: - python3 -m ruff check src tests scripts examples - python3 -m mypy src --show-error-codes --pretty - prek validate-config .pre-commit-config.yaml - prek run --all-files Risk: - narrow - local hooks use system tools, so contributors need the same Python/Rust tooling installed to run the full gate.
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
Issue
Test plan
CI