A patch release with no new rules; the catalog stays at 787. It is about the automatic fixes. CDX-004 reported an unknown TOML table in .codex/config.toml on line 1, and --fix-unsafe then deleted line 1 of the file; the correction was contributed in #1970. An audit of every fix (97 sites) then changed the fixes of more than forty rules; 29 of them had the same two failure modes, a wrong target or a partial removal. Among them were a safe fix that could delete the opening --- of a Cursor rule's frontmatter and hook fixes that left JSON that no longer parsed. Each fix now edits the reported entry in full, located from the parsed file, or is not offered. Apart from the line CDX-004 reports and the suggestion of KR-HK-005 when two keys lead to the same trigger, the findings, their messages and their levels are the same as in 0.65.0. rules.json described the fix of 16 rules wrongly (safe where the code creates an unsafe fix, or a fix that does not exist) and now matches the code, so the number of rules with an automatic fix is 117, not 125.
Fixed
- CDX-004 now reports an unknown
[table]or[[table]]in
.codex/config.toml(such as a mistyped[mcp_server]) on its header
line, and a dottedkey.sub = valuekey on its line, instead of on line 1.
The "Remove unknown config key" fix is only offered for a single
key = valueline: before,--fix-unsafedeleted line 1 of the file,
which could be a valid setting, and left the unknown table in place. - CC-MEM-012: the "Remove unknown frontmatter key" fix now removes the
whole entry of a.claude/rules/*.mdfile. Before,--fix-unsafedeleted
only the key line, so a block scalar (notes: |), a nested map or a list
left its value lines behind and the frontmatter no longer parsed. The fix
is offered only when re-parsing shows that nothing but that key is gone. - CUR-007: the "Remove redundant globs field" fix now removes the
globs
entry that the parser sees. Before,--fixtook the first line that starts
withglobs:, which can be text inside adescription: |block; with a
quoted"globs":key it found no line and deleted the opening---
of the frontmatter; and for a list written at the key's own indentation it
deletedglobs:and left the- "*.ts"items. The fix is offered only
when re-parsing shows that nothing butglobsis gone. - CC-HK-013, CC-HK-015 and CC-HK-018: the fixes that remove
async,
modelormatchernow remove that member of the reported hook, with
one separating comma. Before,--fixdeleted the only line in the file
that holds such a member: when it was the last member of its object the
comma before it stayed and the JSON no longer parsed, and when the
reported hook was written on one line the deleted line belonged to
something else (a valid"async": trueof a command hook, or the
top-level"model"setting ofsettings.json). Two hooks with the same
field now each get their own fix; before, neither got one. A removed
member no longer takes the blank line below it or the indentation of a
line it shares; the same holds for the AMP-004 fix, which uses the same
removal. - REF-003: the "Remove duplicate import" fix is now offered only when the
line holds nothing but that import (alone, or behind a list, task or block
quote marker). A list item is removed only when nothing after it can
belong to it: no indented or quoted line, and no paragraph line right
below it. Before,--fix-unsafedeleted the whole line, so in
See @docs/setup.md and @docs/api.md for details.the sentence and the
import ofdocs/api.mdwent too. - AMP-001: the "Remove unknown key" fix of an Amp check now removes a list
written at the key's own indentation with its key. Before,--fix-unsafe
deletedowners:and left the- aliceitems, and the frontmatter no
longer parsed. The fix is offered only when re-parsing shows that nothing
but that key is gone. - KR-AG-015: removing the empty
allowedToolsortoolsSettingskeys of a
Kiro agent whose object holds nothing else now also removes the comma
after the last one. Before,{ "allowedTools": [], }became{ , }. - The fixes that replace one frontmatter value (AS-004, AS-005, AS-006,
AS-009, CC-SK-001, CC-SK-002, CC-SK-005, CC-AG-003, CC-AG-004, CC-AG-008,
CC-AG-014, CC-AG-015, COP-005, COP-009, CUR-008) now edit the top-level
value the parser sees, and are offered only when re-parsing the edited
frontmatter shows that exactly that value changed. Before, the value was
taken from the first line that readskey: ..., so with a line such as
model: ...inside adescription: |block, or a nested key of the
same name above the real one, the fix rewrote that line and left the
reported value as it was; forexcludeAgent: Agentit rewrote letters of
the key. For AS-009 a folded or continued description (description: >)
got the stripped text written over its first line and kept the old lines,
so the text was there twice. A fixed name that YAML would read as a number
(name: 1.2.3, fixed to123) is now written in quotes; before, the
skill had an integer for a name after the fix. - CC-SK-004: the "Add 'context: fork'" fix is no longer offered next to an
emptycontext:key. Before,--fix-unsafeinserted a secondcontext
key and the frontmatter no longer parsed. - CC-SK-007: the "Bash(git:*)" fix now edits the bare
Bashentry of the
allowed-toolsvalue. Before, with a quoted"allowed-tools":key the
search started at the top of the frontmatter and--fix-unsaferewrote
the word "Bash" in the description; and for
allowed-tools: Bash(echo Bash), Bashit rewrote the word inside
echo Bash. The fix is offered when the value is written on the key's
line; forallowed-toolswritten as a YAML list it is not offered any
more. - CUR-011: the fix that renames an unknown Cursor hook event now renames the
key underhooks. Before, it renamed the first key of that name in the
file, which can be a key outsidehooks. - CC-HK-001, CUR-011 and KR-HK-005: the fixes that rename a hook event or
trigger key are no longer offered when the corrected name is already a key
of the same object (KR-HK-005 already checked that), or when two unknown
keys lead to the same name. Before,
with"pretooluse"next to"PreToolUse"(or"beforeShellExec"next to
"beforeShellExecution"), the fix left the object with that key twice,
and a JSON reader keeps only one of the two hook lists. - CC-PL-007: the "Prepend './'" fix now edits the reported path where the
parsed manifest has it, also when the field is a list. Before, for
"commands": ["cmds/run.md"]the entry of the list got no fix, and when
another object held a"commands": "..."string,--fixwrote
./cmds/run.mdover that string. - The fixes that remove an unknown frontmatter key (COP-004, COP-008,
COP-014, CUR-005, CUR-007, CLN-003, CC-MEM-012, AMP-001) leave an indented
comment line that follows the removed value in place; before, the comment
was deleted with the key. Where the rule reports them, the fix is now also
offered for an unquoted key that YAML reads as a number or a boolean
(123:,true:) and in a frontmatter whose keys are all indented alike. - AS-002, AS-003, CC-SK-006, CC-AG-001 and CC-AG-002: the fixes that add a
missingname,descriptionordisable-model-invocationline to the
frontmatter now give the line the indentation of the keys already there,
and are offered only when re-parsing shows the frontmatter with that key
added. Before, in a frontmatter whose keys are all indented
(description: ...),--fix-unsafeput the new line at column 0 and
the frontmatter no longer parsed; and next to a key that is there with no
value (name:,description:,name: "") or a
disable-model-invocation: falseit added a second key of the same name,
which is a YAML error. In a Gemini skill whose opening line has spaces
after the dashes (---), the new key was written on that line
(---description: ...); it now goes below it. - Fix metadata of 16 rules now matches the fixes agnix creates.
rules.json
and the rule pages listed the fixes of AS-001, AS-002, AS-003, AS-009,
CC-AG-002, CDX-004, CUR-011 and CUR-013 as safe; they are applied only with
--fix-unsafe. CC-HK-005, CC-HK-022, CC-HK-024, CC-SK-018 and CDX-CFG-024
to CDX-CFG-027 were listed with an automatic fix and have none. The count
of rules with an automatic fix goes from 125 to 117. - CDX-PL-003 and CC-PL-005: the "Set plugin name" fix now edits the
top-levelnamewhere the parsed manifest has it, and is offered only
when thatnameis an empty or blank string. Before, in a Codex plugin
manifest with nonameand an"author": { "name": "Jane Doe" },
--fix-unsafereplaced the author's name withmy-codex-plugin; and a
manifest with a blanknameand anauthor.namegot no fix from either
rule. - CDX-CFG-035: the fix for an unknown built-in
default_permissionsnow
edits the top-level value. Before, with the top-level value in single
quotes and a table holding the same key and value in double quotes,
--fix-unsaferewrote the value of that key in the table.