feat(examples): add compliance-lint GitHub Action reference (Phase 3 of #1172)#1180
Merged
feat(examples): add compliance-lint GitHub Action reference (Phase 3 of #1172)#1180
Conversation
#1172) Reference workflow at examples/governance/compliance-lint/ that loads the agentv-compliance skill and lints governance: blocks in changed *.eval.yaml files on pull_request events. Posts violations as PR comments; exits non-zero on pass: false. Uses claude-haiku-4-5 (~3c/10-file PR). Closes #1172 (Phase 3) Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
Phase 3 of #1172 — additive, no core changes.
Ships a reference GitHub Action that uses the
agentv-complianceskill (landed in Phase 1, #1178) to lintgovernance:blocks in changed*.eval.yamlfiles on pull_request events.Files:
examples/governance/compliance-lint/compliance-lint.yml— reusable workflow; triggers on**/*.eval.yamlpath changes; posts PR comment; exits non-zero on violationsexamples/governance/compliance-lint/script/lint.py— extracts governance blocks, callsclaude-haiku-4-5with the skill loaded, returns{ pass, violations[] }JSONexamples/governance/compliance-lint/README.md— adoption guide (5-minute setup, cost estimate, mandatory-gate instructions, customization)Design choices:
anthropicSDK: lightest CI setup, no Bun/Node dependency on CI runnersclaude-haiku-4-5: ~$0.03 per 10-file PR (well under the 5¢ target documented in README)GITHUB_TOKEN/PR_NUMBER/REPOare absent)Test plan
lint.pyagainstllm01-prompt-injection.eval.yaml(passes with no violations)super_high→risk_tier_valueviolation with suggestion)Closes #1172 (Phase 3, final)