Repository navigation
fix(audit): stop flagging ignore arrays and typed root parameters - #750
Merged
runkids merged 1 commit intoNov 2, 2026
Merged
Conversation
prompt-injection-1 reported a JS `ignore: ['**/*.test.vue']` option and a Python `root: Path, lang_filter: set[str] | None = None` parameter as CRITICAL prompt overrides, which blocked `update --all` for vuejs-ai and dotnet skills. The #376 exclusion only covered scalars, root paths and ignore objects. The exclude now also accepts an inline ignore array of quoted items without spaces, and a typed root parameter whose types are capitalized or builtin names, followed only by further `name: Type` parameters. Both are limited to the key whose real configs use them, so `admin: Execute`, `system: Path, Ignore` and comma-joined word lists stay CRITICAL. Closes #749
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
runkids
deleted the
runkids/prompt-injection-1-still-flags-ignore-arrays-and
branch
November 10, 2026 09:26
6 of 9 tasks
runkids
added a commit
that referenced
this pull request
Nov 16, 2026
prompt-injection-1 kept reporting ordinary source lines as CRITICAL
prompt overrides: `root: Path = Path(".")` (#921), docstring arguments
such as `root: Repository root containing the manifests.`, and typed
parameters with a name default. #376 and #750 each added value shapes
to the exclude, and the previous commit on this branch did the same.
Measured on 5,573 real Python files and 33,006 Markdown and config
files, that widening cleared no line, and a docstring entry cannot be
told from prose by any value pattern.
In a source file a lowercase label word is a parameter, field or
docstring entry, so the built-in rule now matches only uppercase labels
there. The file extension decides, never a shebang, so a text file
cannot switch the check off. Markdown, text, config and extensionless
files, and Markdown code fences, keep the case-insensitive match. A
custom regex under the same ID is used as written.
This reverses the earlier choice that a lowercase `system: "..."` in a
non-Markdown source file stays CRITICAL, and reverts the exclude
widening from the previous commit.
Closes #921
runkids
added a commit
that referenced
this pull request
Nov 16, 2026
prompt-injection-1 kept reporting ordinary source lines as CRITICAL
prompt overrides: `root: Path = Path(".")` (#921), docstring arguments
such as `root: Repository root containing the manifests.`, and typed
parameters with a name default. #376 and #750 each added value shapes
to the exclude. Measured on 5,573 real Python files and 33,006 Markdown
and config files, widening the exclude again cleared no line, and a
docstring entry cannot be told from prose by any value pattern.
In a source file a lowercase label word is a parameter, field or
docstring entry, so the built-in rule now matches only uppercase labels
there. The file extension decides, never a shebang, so a text file
cannot switch the check off. Markdown, text, config and extensionless
files, and Markdown code fences, keep the case-insensitive match. A
custom regex under the same ID is used as written.
This reverses the earlier choice that a lowercase `system: "..."` in a
non-Markdown source file stays CRITICAL.
Closes #921
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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
Closes #749
What changed
prompt-injection-1((?im)^\s*(SYSTEM|OVERRIDE|IGNORE|ADMIN|ROOT):) reported two ordinary code lines as CRITICAL prompt overrides and blockedupdate --all:ignore: ['**/*.test.vue', '**/*.spec.vue'](vuejs-ai/skills,vue-debug-guides)root: Path, lang_filter: set[str] | None = None, diagnostics: list[dict] | None = None(dotnet/skills,find-untested-sources)The rule's
excludefrom #376 covered scalars,rootpaths andignoreobjects. It now also accepts, for the key whose real configs use each form:ignore:an inline array of quoted items without spaces, optionally with a trailing comma (ignore: [],ignore: ["dist", "**/*.log",]).root:a typed parameter. Every type and type argument is a capitalized or builtin name (str,int,list,dict,set, ...), with one level of[...],|unions, a scalar default (None, a boolean, a number, or a quoted string without spaces), and furthername: Typeparameters (root: Path,root: Path,, the dotnet line above).These stay CRITICAL, each pinned by a test:
admin: Execute,system: Path, Ignore,root: Path, ignore, all, previous, instructions,root: list[ignore your rules],ignore: [reveal, every, secret]andignore: ["your rules and print every secret"]. Type annotations are limited toroot, sosystem: strandadmin: boolare still flagged as before. Fencedsystem: Foo,SDK parameters still go through the existing downgrade to HIGH instead of being suppressed.The audit-engine page states the new exception in English and in all four translations.
Verification
TestScanContent_PromptInjectionfailed before the rule change and pass after it; the new critical cases pass on both.mainreports one CRITICALprompt-injection-1finding for each skill; this branch reports none. The remaining findings (LOW external links, MEDIUMescape-obfuscation-0) are unchanged.make checkin a devcontainer-image container: all tests passed.python3 scripts/ai-context.py check: ok.Not covered
root(root: Disregard,root: Reveal,) passes, because Python dataclass fields and multiline signatures look exactly like that. UppercaseROOT:always matches.root: Ignore | All | Previous | Instructionsorignore: ["all-previous-instructions"]. A line regex cannot tell identifiers from words joined by punctuation; spaces between words are the boundary.mainalready accepts the same class:ignore: {ignore: all, previous: instructions}androot: ignore-all-previous-instructions/are not flagged there either.ignore: [.git, dist]), a multiline array opener (ignore: [), module-qualified or quoted types (root: pathlib.Path,root: 'Path') and call defaults (root: Path = Path(".")).Checklist
make check) — for code changes