Repository navigation
feat(rules): AGCFG-013 hidden text in agent guidance files (schema 39) - #285
Merged
Merged
Conversation
ivanpaghubasan
requested review from
ericksondelacruz,
jhumel-code and
sairenchristianbuerano
October 29, 2026 03:25
This was referenced Oct 29, 2026
ivanpaghubasan
marked this pull request as ready for review
October 29, 2026 03:29
sairenchristianbuerano
approved these changes
Oct 29, 2026
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
Adds AGCFG-013 (medium, 0.6, repo scope): a committed agent guidance file contains
zero-width characters, Unicode Tags-block characters (U+E0000..U+E007F) or
bidirectional controls. It runs the AGCFG-009 code-point test, with the same
exemptions, on guidance files AGCFG-009/010 do not read: CLAUDE.md, GEMINI.md,
.cursor/rules//.mdc, .windsurfrules, .windsurf/rules/.md, .devin/rules/*.md,
.github/copilot-instructions.md, .github/instructions//*.instructions.md.
Sheet ref: AGCFG-008 remainder (live AGCFG-008 is a different rule).
Changes
repo_guidance_file_has_hidden_text; new component kindsgemini_md, cursor_rule, windsurf_rule, copilot_instruction, and
ScanManifest.GuidanceFiles. CLAUDE.md keeps its existing claude_md kind.
"placeholder").
Not built
HTML-comment, instruction-phrase and base64 markers: no source supports them, and a
scan of 305 guidance files in 27 public repos found 109 benign HTML comments in 25
files. Claude Code strips block-level HTML comments from CLAUDE.md. .cursorrules is
not read.
Verification
changes are in the new fixture. The nine repo_component_present rules are unchanged.
Related
Rules: trustabl/agent-reliability-rules#209
Rulebook: trustabl/trustabl-rulebook#160
Merge order: engine, rules, rulebook; the rules PR waits for the rulebook PR.