mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-28 19:47:25 +00:00
1.8 KiB
1.8 KiB
Repository agent release rules
These rules are mandatory for every automated agent working in this repository.
Before changing code
- Run
git pull --ff-onlybefore starting. - Inspect branch, remote tracking, dirty state, and relevant release workflow.
- Preserve unrelated work and stage only reviewed paths.
Before claiming a release is ready
- Never treat a host macOS browser run as GitHub Linux parity.
- On a release branch, commit all intended changes and run:
npm run release:gate -- MAJOR.MINOR.PATCH --candidate - This command must use the official lockfile-matched Playwright image with
linux/amd64, Ubuntu Noble, andCI=1; it must run clean installs, full verification, all browser E2E tests, the relay image build, and health smoke. - A failed, interrupted, ARM64, skipped, or partial run is not a passing gate.
- Do not say "release-ready" until the candidate gate and PR required checks are green for the exact commit.
Before pushing a release tag
- Merge through a PR; resolve every review thread.
- Fast-forward local
mainand confirm a clean tree at exactorigin/main. - Wait for
verify,node20, ande2eon the mergedmaincommit. - Run the final gate:
npm run release:gate -- MAJOR.MINOR.PATCH. - Create an annotated tag only after the final gate succeeds.
- Confirm tag target equals
origin/main, then push the tag once. - Monitor the complete release workflow. Distinguish tag push, CI, draft assets, container publication, attestations, and public GitHub Release status.
- Never call a release complete while any job is pending, failed, or skipped.
The final gate deliberately simulates the release workflow seeing its own
in-progress preflight check. This is a permanent regression guard for the
failed first v3.1.5 release attempt.