Skip to content

docs: document orphan-YAML gate + --allow-new-files in README and AGENTS#31

Merged
dhruva-reddy merged 1 commit into
mainfrom
docs/new-file-gate-docs
May 13, 2026
Merged

docs: document orphan-YAML gate + --allow-new-files in README and AGENTS#31
dhruva-reddy merged 1 commit into
mainfrom
docs/new-file-gate-docs

Conversation

@dhruva-reddy
Copy link
Copy Markdown
Contributor

Summary

Followup to PR #30. The orphan-YAML pre-flight gate landed in the engine but neither README.md nor AGENTS.md mentioned the new default-on behavior or the --allow-new-files override. Agents and human operators reading those docs would hit the gate unexpectedly.

This PR adds:

README.md:

  • Push command-table row updated to mention the gate + flag
  • New "Creating new resources after the first push (orphan-YAML gate)" section under Suggested Workflows, explaining the three cases (new / rename / cruft), the --allow-new-files override, and the AI-agent caveat
  • Documents the automatic suppressions (--bootstrap, .vapi-ignore, selective-push scope)

AGENTS.md:

  • Common commands table row for "Push with new resources" with the --allow-new-files flag + explicit AI-agent caveat
  • New "Orphan-YAML gate" subsection under "npm run push" explaining gate behavior, override flag, AI-agent guidance, and suppression rules. Notes that the same gate fires inside apply and the flag propagates through
  • New bash command-block lines for npm run push --allow-new-files and npm run apply --allow-new-files

Test plan

  • Docs-only PR — no code or test changes
  • Eyeballed table formatting, pipe alignment, code-fence rendering

Skipping test-writer/code-reviewer per the always-apply rule for docs-only PRs.

Followup to PR #30 (orphan-YAML pre-flight gate). The gate landed in
the engine but neither README.md nor AGENTS.md mentioned the new
default-on behavior or the --allow-new-files override. Agents and
human operators reading those docs would hit the gate unexpectedly.

README.md:
- Updated push command-table row to mention the gate + flag
- New "Creating new resources after the first push (orphan-YAML gate)"
  section under Suggested Workflows, explaining the three cases (new /
  rename / cruft), the --allow-new-files override, and the AI-agent
  caveat (do NOT auto-pass without confirming)
- Documents the automatic suppressions (--bootstrap, .vapi-ignore,
  selective-push scope)

AGENTS.md:
- Common commands table row for "Push with new resources" with the
  --allow-new-files flag + explicit AI-agent caveat
- New "Orphan-YAML gate" subsection under "npm run push" explaining
  the gate behavior, override flag, AI-agent guidance, and suppression
  rules. Notes that the same gate fires inside `apply` and the flag
  propagates through `apply --allow-new-files`
- New bash command-block lines for `npm run push --allow-new-files`
  and `npm run apply --allow-new-files`

Docs-only PR. Skipping test-writer and code-reviewer per the
always-apply rule for docs-only changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant