AGENTS.md (Simple)
Section titled “AGENTS.md (Simple)”What this repo is
Section titled “What this repo is”- This repository is the main home for NutsNews documentation.
- The original Technical documents live at the root or in
archive/,ios/,reports/, andupdates/. - Every original document has a Simple copy, a Technical copy, and a Mermaid diagram in the matching
audiences/anddiagrams/paths.
Which workflow to use
Section titled “Which workflow to use”- Documentation-only changes may go directly to
mainafter all wiki checks pass. - The protected merge-documentation workflow may automatically publish a complete documentation-only update after a NutsNews pull request is merged and every safety check passes.
- Changes to the site, tests, tools, dependencies, configuration, or GitHub Actions need a branch, a normal pull request, passing checks, and explicit approval before merge.
- A change that mixes docs and site code uses the pull-request workflow.
Keep the complete document set current
Section titled “Keep the complete document set current”- Update the original document, its Simple copy, its Technical copy, and its accessible diagram together.
- A real content change makes the old approval stale. Normal authoring requires human review. The merge workflow is the only automatic exception: Codex drafts the bundle without write access, then trusted checks record the repository, PR, merge commit, workflow run, and source hash.
- Codex cannot commit, push, or change workflows. Any unrelated file change blocks publication.
- Do not edit generated site files, test output, caches, or the generated inventory.
Exact commands
Section titled “Exact commands”For a new document:
npm run docs:new -- <canonical-source.md> --collection <collection> --section <section>npm run docs:prepare -- <canonical-source.md> --forceUse --force only for the blocked bundle just created by docs:new, not to replace unrelated existing work.
After human review:
npm run docs:approve -- <canonical-source.md> --reviewed-by "<human-reviewer>" --confirm-human-reviewThe separate docs:auto-approve command belongs only to the trusted merge workflow and is not a shortcut for manual work.
Before a documentation-only commit:
npm run wiki:preparenpm run validate:contentnpm run validate:linksnpm run validate:mermaidnpm run test:content-routesnpm run buildKeep secrets and local environment files out of documents and generated artifacts. Preserve unrelated work and every existing safety boundary.
