test: add integrity CLI round-trip and tamper detection tests#1756
Merged
imran-siddique merged 2 commits intomainfrom May 6, 2026
Merged
test: add integrity CLI round-trip and tamper detection tests#1756imran-siddique merged 2 commits intomainfrom
imran-siddique merged 2 commits intomainfrom
Conversation
…ctions.md Add high-level architecture overview (package map, SDK paths) and build/test/lint commands for all languages (Python, TypeScript, Rust, .NET, MCP server, docs) including single-test invocations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
9 tests covering: - Generate creates valid JSON manifest - Generate then verify round-trip passes - Generate output format (file/function counts) - Generate overwrites existing manifests - Tampered hash fails verification - Removed module detected in regeneration - JSON output structure on success and failure - No-args live verification Guards against regressions in the agent-governance integrity CLI used by Agency Playground plugin signing pipeline. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🤖 AI Agent: security-scanner — View detailsNo security issues found. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
🤖 AI Agent: code-reviewer — View detailsTL;DR: 0 blockers, 1 warning. Tests are well-structured and comprehensive, but a minor improvement is suggested for future consideration.
Action items: None. Warnings (fine as follow-up PRs):
|
🤖 AI Agent: test-generator — `agent-governance-python/agent-compliance/tests/test_integrity_cli_roundtrip.py`
|
🤖 AI Agent: docs-sync-checker — Docs SyncDocs Sync
|
🤖 AI Agent: breaking-change-detector — API CompatibilityAPI CompatibilityNo breaking changes detected. |
PR Review Summary
Verdict: |
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.
Adds 9 tests for the agent-governance integrity CLI subcommand covering generate/verify round-trip and tamper detection.
Tests:
Guards against regressions in the CLI used by Agency Playground plugin signing.