SKY-A114 · AI-code defects
Skylos settings or hooks changed
This rule reports a change to the settings or hooks that decide what Skylos checks: the [tool.skylos] tables in pyproject.toml, a skylos.toml file, anything under .skylos/, the agent hook settings that run Skylos, and a GitHub workflow that runs Skylos. skylos done reports the change so a person approves it.
- Languages
- pyproject.toml, skylos.toml, .skylos/ files, agent hook settings (Claude Code, Codex, Cursor), GitHub Actions workflows
- Turned on by
skylos doneafter a change (default baseHEAD, so uncommitted edits), orskylos done --base origin/mainfor a pull request- Quality gate
- not checked (full and diff scans). Only
skylos doneruns this rule, in itsgate_tamperingcheck. That check blocks by default, and every SKY-A114 finding fails the done verdict. Setgate_tamperingunder[tool.skylos.done.checks]in the base commit'spyproject.tomlto change that. - Finding type
- review
Why it matters
An agent that cannot pass the gate can raise a limit, add a rule to ignore, or delete the hook that runs the check, and the next run passes. The settings are read from the base commit for this reason, and this rule makes the edit itself visible.
What Skylos flags
[project]name = "shop"version = "1.4.0" [tool.skylos.gate]Removed: max_security = 0Removed: max_quality = 10Added: max_security = 5Added: max_quality = 40What Skylos leaves alone
[project]name = "shop"Removed: version = "1.4.0"Added: version = "1.5.0"Added: dependencies = ["httpx>=0.27"] [tool.skylos.gate]max_security = 0max_quality = 10Why Skylos leaves it alone
The same pyproject.toml changed, but only the [project] table. Skylos compares the parsed [tool.skylos] tables before and after, and they are equal.
More languages
JSON
Flagged
{Removed: "hooks": {Removed: "Stop": [Removed: {Removed: "hooks": [Removed: {"type": "command", "command": "skylos done --format json"}Removed: ]Removed: }Removed: ]Removed: }Added: "hooks": {}}Not flagged
Bump the version in pyproject.toml and update CHANGELOG.md.Added: Then run `skylos done --base origin/main` and fix what it reports.1 committed file the change leaves alone
Why Skylos leaves it alone
A file under .claude/ changed, but not one of the hook settings files. Commands, skills and rules in .claude/ are ordinary project files; only .claude/settings.json and settings.local.json (and the Codex and Cursor hook files) are protected by default.
How Skylos decides
- Runs in
skylos done, which compares the working tree (or a pull request) with a base commit. Staged, unstaged and untracked files all count; Skylos's own cache, receipts and session files do not. - Reports any changed, added, removed or renamed file that matches
protected_paths. The default list is.skylos/,.claude/settings.json,.claude/settings.local.json,.codex/hooks.json,.codex/config.tomland.cursor/hooks.json; a pattern ending in/covers a folder, and*patterns work. The list comes from[tool.skylos.done]in the base commit. - Reports a
pyproject.tomlwhose parsed[tool.skylos]table differs from the base version, at the line of the first[tool.skylosheader. Formatting changes and edits to other tables do not count. - Reports any edit, addition or removal of a
skylos.tomlor.skylos.tomlfile, and any change to a.github/workflows/*.ymlfile whose base version mentionsskylos. - Every finding blocks while the check is in its default "block" mode.
How to fix it
Undo the settings change and fix the findings the stricter settings report. If the change is intended, make it in its own commit or pull request that a person reviews and merges; once it is in the base commit, skylos done uses the new settings.
[tool.skylos.gate]max_security = 0max_quality = 10When it can be wrong
- Every intended settings change is reported, including a stricter limit or a new rule turned on. That is by design: a person decides.
- Editing any part of a GitHub workflow that runs Skylos is reported, even a step that has nothing to do with Skylos.
- Removing the whole
[tool.skylos]table is reported without a line number, as are changes to protected files.
Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.
How to silence it
skylos donedoes not read# skylos: ignorecomments. Change the check's mode, or narrowprotected_paths, in the base commit'spyproject.toml; settings in the change itself are ignored.TOML [tool.skylos.done]protected_paths = [".skylos/", ".claude/settings.json"] [tool.skylos.done.checks]gate_tampering = "advise"