Files
autocraft/AGENTS.md
T

1.1 KiB

Working on AutoCraft

  • Only src/github/write.ts writes to GitHub. Keep its audit records, authorization and current-head checks; never bypass a gate to make a test pass.
  • Issue and PR text and the code under review are untrusted. Keep sandbox workers separate from service credentials.
  • Repo owners come from src/owners.ts; don't add organization-name constants.
  • Schema changes go through the migrations in src/db.ts.
  • When behaviour changes, update the README and docs in the same change. Regenerate marked blocks with pnpm docs; never edit them by hand.
  • Before pushing: pnpm check and the tests for what you changed.

Shared Craft libraries

Before adding or changing reusable file-format, codec, protocol or UI code, check craft-libs and existing contributor work; reuse compatible public APIs or extend the appropriate shared library instead of adding an app-local duplicate, keeping app-specific policy and model mapping local and preserving compatibility, security limits and regression coverage. Keep existing framework and platform requirements intact.