Skip to content

Commit 6d0ed5c

Browse files
committed
Document local->staging->production release workflow
1 parent f8da28e commit 6d0ed5c

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# LinkSim Agent Rules
22

33
- Always update `docs/BACKLOG.md` before and after implementation batches.
4+
- Default environment workflow:
5+
- Unless the user explicitly says otherwise, work in local test environment.
6+
- After local verification, deploy to live test/staging for verification.
7+
- Only promote to production after explicit user approval, using the same verified commit.
48
- Prefer stabilization work (consistency, hardening, tests, UX cleanup) over net-new features unless explicitly requested.
59
- Ship in batches: implement, run `npm test` and `npm run build`, then commit and push.
610
- Never commit or push directly to `main`; always create/use a separate branch for changes and push that branch.
@@ -11,3 +15,4 @@
1115
- Do not leave backlog tasks in ambiguous state. Use `[x]` only when code and verification are done.
1216
- Do not start user-added backlog items without explicit user confirmation in the current thread.
1317
- After every live deploy, monitor Cloudflare Pages deployment status (`wrangler pages deployment list --project-name linksim`) and explicitly notify the user when deployment is complete.
18+
- Follow and maintain `docs/release-flow.md` as the source of truth for release promotion steps.

docs/release-flow.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Release Flow
2+
3+
## Default rule
4+
- Unless explicitly stated otherwise, work in the local test environment.
5+
6+
## Delivery sequence
7+
1. Local test
8+
- Implement changes locally.
9+
- Run verification (`npm test`, `npm run build`, and manual local checks).
10+
11+
2. Live test (staging)
12+
- Push code and deploy to staging.
13+
- Verify the same commit in the live test environment.
14+
15+
3. Production
16+
- Promote only after explicit user approval.
17+
- Deploy the exact verified staging commit to production (no extra code changes in between).
18+
19+
## Guardrails
20+
- No direct production hotfixes unless explicitly requested by the user.
21+
- Always report deployed commit SHA for staging and production.
22+
- Keep clear non-production indicators enabled for local/staging environments.

0 commit comments

Comments
 (0)