Repository navigation
fix(harness): feed architecture violations back to the agent - #2511
Merged
Merged
Conversation
arch-guard exited 0 on real violations, and the Claude hook pointed at another machine. Fail those violations, check new lines for banned database and axios imports, and point Cursor and Claude at the same script. Co-authored-by: Cursor <cursoragent@cursor.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
scripts/arch-guard.sh的分层违规现在以退出码 1 结束,并把说明打回给模型。警告规则仍是退出码 0。import axios,以及 Platform 与 Client 互引。存量文件不会因为被碰到就失败。scripts/agent_hooks.py。git push --force、git reset --hard、--no-verify会被拒绝,新建分支会先询问。CLAUDE.md不再是AGENTS.md的符号链接,只保留指向全文的短指针。Test plan
bash scripts/harness-guard-selftest.sh通过sqlalchemy.JSON;当前脚本退出码 1,文件改为dialect_helpers.JsonType,git checkout -b返回ask且未执行postToolUse、stop、beforeShellExecution已加载harness-guard工作流跑的是本次变更文件Made with Cursor