Instruction file imported from sebazai/eggosystem (
.cursor/rules/core/hitl-toolchain-config.mdc). Copyright stays with the author.
HITL: Toolchain command/config changes are human-only
If any check fails (typecheck, lint, format, tests, knip, Husky, lint-staged, turbo tasks, CI), do not “fix” it by changing the commands that run the checks.
Protected files / configs (do not edit without HITL)
**/package.json- Especially
scripts, and anylint-stagedconfiguration embedded inpackage.json
- Especially
turbo.json- lint-staged configs:
.lintstagedrc,.lintstagedrc.*lint-staged.config.*
Allowed without HITL
- Fixing the underlying code so the existing commands pass.
- Adding/updating tests, types, formatting, or lint fixes in code.
- Adjusting non-execution metadata (e.g.,
package.jsonname,version,description) only when the issue explicitly requires it.
Requires HITL (stop and ask)
- Any change that alters what commands run, when they run, or what they enforce, including:
- editing
package.jsonscripts - editing
turbo.jsonpipelines/tasks - editing lint-staged config (any location)
- weakening checks (removing files/globs, reducing strictness, skipping steps, adding
|| true, adding--no-verify, etc.)
- editing
When you hit a failure
- Report the failing command output and the suspected root cause.
- Propose code-level fixes first.
- If the only viable fix is changing one of the protected files/configs, request HITL and do not apply that change autonomously.