docs(agents): restructure script validation minimums

This commit is contained in:
Ryan Yin
2026-09-14 19:27:57 +08:00
parent d30cfe1543
commit 2ac1b30768
+8 -8
View File
@@ -125,14 +125,14 @@ agents MUST ask which state to use before editing.
### Script validation ### Script validation
- After creating or modifying persistent script files, agents MUST run available language-aware After creating or modifying persistent script files, agents MUST run available language-aware checks
checks and report unavailable validation. Python files MUST at minimum pass and report unavailable validation. Unless the project provides equivalent or stronger checks, agents
`python -m py_compile <file>` using the project-approved runtime unless existing checks are MUST run e.g.:
equivalent or stronger.
- Nushell files MUST pass `nu-check --debug`, treating `false` as failure and using `--as-module` - Python: `python -m py_compile <file>` using the project-approved runtime.
for modules. Non-trivial changes SHOULD also be inspected with `nu --ide-check 100 <file>`. - Nushell: `nu-check --debug`, treating `false` as failure and using `--as-module` for modules;
- POSIX shell scripts MUST pass `shellcheck` unless the project provides equivalent or stronger non-trivial changes SHOULD also be inspected with `nu --ide-check 100 <file>`.
checks. - POSIX shell: `shellcheck`.
### Script and job reliability ### Script and job reliability