AGENTS.md@scripts · git:20260829.aea3b6c · 2026-08-29 · sha256 932306cc642542a6

AGENTS.md@scripts git:20260829.aea3b6cA

Immutable. This exact content never changes and is served at /api/v1/blob/932306cc642542a6.

# Contents

- `merge-main.ts` – the stateless optimistic serializer for validated direct pushes to `origin/main`.
- `merge-main.test.ts` – argument, environment, safety, and local bare-repository integration coverage.
- `editorial-images-docs.test.ts` – deterministic discoverability and contract checks for the optional editorial-image guide.

# Guidelines

- Keep the serializer stateless and dependency-free. Coordinate concurrent submissions through ordinary Git fast-forward behavior, then rebuild on the latest `origin/main` when another submission wins the race.
- Resolve submitted refs before integration, reject merge commits, sanitize inherited Git repository overrides, and do all replay and validation work in a task-owned detached temporary worktree.
- Validate with the frozen Bun install and root check. Push only the exact clean commit that passed validation, disable followed-tag publication, then fetch again and prove it is reachable from `origin/main`.
- Keep documentation checks focused on durable links and required boundaries rather than exact prose or formatting.
- Do not add queue databases, background workers, locks, priority, status, provider delivery, or force-push behavior. Repositories that protect `main` should use their provider's pull-request merge queue.