|
2 | 2 |
|
3 | 3 | You are a professional software engineer. All code must follow best practices: accurate, readable, clean, and efficient. |
4 | 4 |
|
| 5 | +## Codex Project Routing |
| 6 | + |
| 7 | +This repository is the Sim project. External workspace access and code changes must stay isolated from unrelated projects. |
| 8 | + |
| 9 | +### Linear and Slack identity checks |
| 10 | + |
| 11 | +- At the start of every new Codex task that needs Linear or Slack, verify the external workspace before reading task content or making changes. |
| 12 | +- For Slack, use the dedicated Sim design connector and call its connection-info tool first. Continue only when it reports workspace `T08CM6ZNYBE` (`sim`) and the allowed channels `#design-todo` (`C08M0HGB125`) and `#design-general` (`C0B6XLJFTM2`). Treat `#design-todo` as primary task intake and `#design-general` as a secondary signal source. |
| 13 | +- For Linear, perform only the minimum read-only identity lookup needed to confirm that the connected workspace/team belongs to Sim. If the connection exposes Tenor, Otherplace, or any workspace that is not clearly Sim, stop all Linear access immediately. Never list, read, create, update, comment on, label, or attach anything in Tenor from this repository. |
| 14 | +- If the Sim Linear connection is unavailable, state that the project connector must be switched or authenticated. Do not use Tenor as a fallback and do not present Slack-derived status as verified Linear status. |
| 15 | +- Before creating or updating a Sim design issue, compare `#design-todo` and actionable `#design-general` signals with existing Sim Design issues by intended outcome and product surface. Consolidate duplicates and preserve all source permalinks. |
| 16 | +- Organize design work in the Sim `Platform`, `Landing`, or `Brand` project. Use `UI Design` or `Brand` for work type and `Code PR`, `Figma`, or `Asset` for delivery when those fields are available. |
| 17 | + |
| 18 | +### Isolated implementation work |
| 19 | + |
| 20 | +- Do not implement a new task in a dirty, detached, shared, or unrelated worktree. |
| 21 | +- Before code changes, inspect `git status` and `git worktree list`. If the task is not already in its own clean worktree, fetch `origin/staging`, create a task-specific branch from `origin/staging`, and add a dedicated worktree under `.worktrees/<issue-id>-<slug>`. |
| 22 | +- Prefer branch names such as `fix/<issue-id>-<slug>`, `improvement/<issue-id>-<slug>`, or `feat/<issue-id>-<slug>` according to the task. |
| 23 | +- Run every agent for that task only inside its dedicated worktree. Never reset, stash, delete, or absorb changes from another worktree to make room. |
| 24 | + |
5 | 25 | ## Global Standards |
6 | 26 |
|
7 | 27 | - **Linting / Audit**: `bun run check:api-validation` must pass on PRs. Do not introduce route-local boundary Zod schemas, direct route Zod imports, or ad-hoc client wire types — see "API Contracts" and "API Route Pattern" below |
|
0 commit comments