You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d6a4257
Browse filesBrowse the repository at this point in the historyBrowse files
Rename agent instruction files to AGENTS.md and remove redundant
CLAUDE.md import shims. Update documentation links and the
instruction-audit workflow to use the new names.
Mono-RevId: c9f48a907fc75e7e43f1d5bc801c2d986ce27ee1
Copy file name to clipboardExpand all lines: .claude/REVIEW.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Reserve 🔴 for things that would page someone or block a rollback. In this cod
11
11
- A Redis data shape used by both versions changes in place. New shapes need a new key namespace.
12
12
- A migration is not backward-compatible with the prior image.
13
13
-**Schema / migration safety.** Prisma migrations must be backward-compatible with the prior deploy. Adding NOT NULL without a default, dropping a column an old image still reads, renaming a column — all 🔴.
14
-
-**ClickHouse migration ordering + idempotency.** Goose runs in strict mode in the deploy pipeline and refuses to apply a missing version below the current version — slotting a new file in below the latest already-applied version blocks the deploy. New ClickHouse migration files MUST use the next available number (`max(files in internal-packages/clickhouse/schema/) + 1`); if main has added migrations while you've been on a branch, renumber yours. DDL must also be idempotent (`ADD COLUMN IF NOT EXISTS`, `DROP COLUMN IF EXISTS`, `CREATE TABLE IF NOT EXISTS`, `ADD INDEX IF NOT EXISTS`) so a partial / `--allow-missing` apply elsewhere doesn't fail on retry. Either fault is 🔴 — both break test/prod deploys. Rules live in `internal-packages/clickhouse/CLAUDE.md`.
14
+
-**ClickHouse migration ordering + idempotency.** Goose runs in strict mode in the deploy pipeline and refuses to apply a missing version below the current version — slotting a new file in below the latest already-applied version blocks the deploy. New ClickHouse migration files MUST use the next available number (`max(files in internal-packages/clickhouse/schema/) + 1`); if main has added migrations while you've been on a branch, renumber yours. DDL must also be idempotent (`ADD COLUMN IF NOT EXISTS`, `DROP COLUMN IF EXISTS`, `CREATE TABLE IF NOT EXISTS`, `ADD INDEX IF NOT EXISTS`) so a partial / `--allow-missing` apply elsewhere doesn't fail on retry. Either fault is 🔴 — both break test/prod deploys. Rules live in `internal-packages/clickhouse/AGENTS.md`.
15
15
-**Queue / concurrency correctness.** RunQueue, MarQS (V1, legacy), redis-worker — any change to enqueue / dequeue / locking semantics. Re-derive the invariant on paper before flagging or accepting.
16
16
-**Missing index on a hot table.** New Prisma queries against `TaskRun`, `TaskRunExecutionSnapshot`, `JobRun`, `Project`, etc. must use an existing index. Check `internal-packages/database/prisma/schema.prisma` for the relevant `@@index` lines — don't guess and don't propose `EXPLAIN`.
17
17
-**Recovery-path queries.** Any `TaskRun.findFirst` / `findMany` added to a schedule, run-recovery, or restart loop. Recovery fan-outs (Redis crash, restart storms) turn "rare indexed query" into a DB incident. 🔴 even if indexed.
@@ -32,7 +32,7 @@ Every PR gets a performance pass — not just the ones that look perf-sensitive.
32
32
33
33
**Hot paths — extra scrutiny on any added query or work:**
34
34
35
-
-**Trigger + batch trigger** (`triggerTask.server.ts`, `batchTriggerV3.server.ts`) — see `apps/webapp/CLAUDE.md`; do not add DB queries to these.
35
+
-**Trigger + batch trigger** (`triggerTask.server.ts`, `batchTriggerV3.server.ts`) — see `apps/webapp/AGENTS.md`; do not add DB queries to these.
36
36
-**Dequeue / RunQueue** (`dequeueSystem.ts`, run-queue read/lock paths) — runs on every execution.
37
37
-**Execution-snapshot creation in the run engine** — any engine function that writes a `TaskRunExecutionSnapshot` runs per state transition; a new query there multiplies by run volume.
@@ -75,7 +75,7 @@ Every PR gets a performance pass — not just the ones that look perf-sensitive.
75
75
76
76
## Things V1/legacy that should NOT block a PR
77
77
78
-
The `apps/webapp/app/v3/` directory name is misleading — most code there is V2. Only specific files are V1-only legacy: `MarQS` queue, `triggerTaskV1`, `cancelTaskRunV1`, and a handful of others (see `apps/webapp/CLAUDE.md` for the exact list). Don't flag "you should refactor this to use V2" on those — they're frozen.
78
+
The `apps/webapp/app/v3/` directory name is misleading — most code there is V2. Only specific files are V1-only legacy: `MarQS` queue, `triggerTaskV1`, `cancelTaskRunV1`, and a handful of others (see `apps/webapp/AGENTS.md` for the exact list). Don't flag "you should refactor this to use V2" on those — they're frozen.
Copy file name to clipboardExpand all lines: .github/workflows/claude-md-audit.yml
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,13 @@ jobs:
52
52
53
53
In this repo:
54
54
- Root shared agent guidance lives in `AGENTS.md`.
55
-
- Root `CLAUDE.md` is only a Claude Code adapter that imports `AGENTS.md`.
56
-
- Subdirectories may still have scoped `CLAUDE.md` files.
55
+
- Subdirectories may have scoped `AGENTS.md` files.
57
56
- `.claude/rules/` contains additional Claude Code guidance.
58
57
59
58
## Your task
60
59
61
60
1. Run `git diff origin/main...HEAD --name-only` to see which files changed in this PR.
62
-
2. For each changed directory, check the applicable instruction files: root `AGENTS.md`, any `CLAUDE.md` in that directory or a parent directory, and relevant `.claude/rules/` files.
61
+
2. For each changed directory, check the applicable instruction files: root `AGENTS.md`, any `AGENTS.md` in that directory or a parent directory, and relevant `.claude/rules/` files.
63
62
3. Determine if any instruction file should be updated based on the changes. Consider:
64
63
- New files/directories that aren't covered by existing documentation
65
64
- Changed architecture or patterns that contradict current agent guidance
@@ -75,9 +74,9 @@ jobs:
75
74
If updates ARE needed, respond with a short list:
76
75
📝 **Agent instruction updates suggested:**
77
76
- `AGENTS.md`: [what should be added/changed]
78
-
- `path/to/CLAUDE.md`: [what should be added/changed]
77
+
- `path/to/AGENTS.md`: [what should be added/changed]
79
78
- `.claude/rules/file.md`: [what should be added/changed]
80
79
81
80
Keep suggestions specific and brief. Only flag things that would actually mislead agents in future sessions.
82
81
Do NOT suggest updates for trivial changes (bug fixes, small refactors within existing patterns).
83
-
Do NOT suggest creating new CLAUDE.md files - only updates to existing instruction files.
82
+
Do NOT suggest creating new AGENTS.md files - only updates to existing instruction files.
Copy file name to clipboardExpand all lines: AGENTS.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# AGENTS.md
2
2
3
-
This file provides guidance to Claude Code when working with this repository. Subdirectory CLAUDE.md files provide deeper context when you navigate into specific areas.
3
+
This file provides guidance to Claude Code when working with this repository. Subdirectory AGENTS.md files provide deeper context when you navigate into specific areas.
4
4
5
5
## Build and Development Commands
6
6
@@ -167,11 +167,11 @@ User API call -> Webapp routes -> Services -> RunEngine -> Redis Queue -> Superv
167
167
168
168
### v3 (engine V1) removed
169
169
170
-
v3 (engine V1: MarQS + Graphile worker) is end-of-life and its execution code has been removed. The `apps/webapp/app/v3/` directory name is historical - everything there now serves V2 (Run Engine 2.0, `@internal/run-engine` + redis-worker). There is no V1 execution path: a `RunEngineVersion``V1` branch only rejects or finalizes gracefully so v3 clients get a clean 4xx, never a 5xx. Do not reintroduce V1. See `apps/webapp/CLAUDE.md` and `.claude/rules/legacy-v3-code.md`.
170
+
v3 (engine V1: MarQS + Graphile worker) is end-of-life and its execution code has been removed. The `apps/webapp/app/v3/` directory name is historical - everything there now serves V2 (Run Engine 2.0, `@internal/run-engine` + redis-worker). There is no V1 execution path: a `RunEngineVersion``V1` branch only rejects or finalizes gracefully so v3 clients get a clean 4xx, never a 5xx. Do not reintroduce V1. See `apps/webapp/AGENTS.md` and `.claude/rules/legacy-v3-code.md`.
171
171
172
172
### Documentation
173
173
174
-
Docs live in `docs/` as a Mintlify site (MDX format). See `docs/CLAUDE.md` for conventions.
174
+
Docs live in `docs/` as a Mintlify site (MDX format). See `docs/AGENTS.md` for conventions.
0 commit comments