|
| 1 | +# OPERATIONAL ORDERS FOR Codex |
| 2 | + |
| 3 | +## CROSS-REFERENCE |
| 4 | + |
| 5 | +- Code standards and contribution workflow: [CONTRIBUTING.md](CONTRIBUTING.md) |
| 6 | +- Documentation map and canonical docs: [docs/README.md](docs/README.md) |
| 7 | +- CLI/user reference: [GUIDE.md](GUIDE.md) |
| 8 | + |
| 9 | +## FORBIDDEN ACTIONS |
| 10 | + |
| 11 | +- **NEVER** circumvent git hooks |
| 12 | +- **NEVER** use `git add -A` — always stage changes intentionally |
| 13 | +- **NEVER** commit files that contain secrets (.env, credentials, etc.) |
| 14 | +- **NEVER** commit directly to `main` — always work on a feature branch and merge via PR |
| 15 | + |
| 16 | +## ENCOURAGED ACTIONS |
| 17 | + |
| 18 | +- **USE SEQUENTIAL THINKING** if you're planning, doing recon, or find yourself thrashing |
| 19 | +- **DROP A DEVLOG** as often as you'd like |
| 20 | +- **PRESENT A SITREP** as situations evolve |
| 21 | +- **SEEK CLARITY** if you are given confusing orders |
| 22 | +- **SPEAK FREELY** at all times |
| 23 | + |
| 24 | +## REQUIRED BEHAVIOR |
| 25 | + |
| 26 | +- **YOU MUST** tag all memories saved to your memory banks with at least `#git-mind` |
| 27 | +- **YOU MUST** include the POSIX timestamp (via `$(date +%s)`) in memory file names |
| 28 | +- **YOU MUST** document significant decisions or events |
| 29 | +- **YOU MUST** reference a GitHub issue in every commit message |
| 30 | + |
| 31 | +--- |
| 32 | + |
| 33 | +## 1. BOOT UP SEQUENCE |
| 34 | + |
| 35 | +1. Access your memory banks and scan for recent activity (latest SITREP or relevant notes) |
| 36 | +2. Read the README |
| 37 | +3. State your current understanding of what we last worked on and your next moves |
| 38 | +4. **AWAIT ORDERS** after you deliver your initial SITREP |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +## 2. JOBS |
| 43 | + |
| 44 | +> All work should have a GitHub issue associated with it. If there isn't one, find or create one. Every commit message must reference an issue. |
| 45 | +
|
| 46 | +### 2.1. PLAN THE JOB |
| 47 | + |
| 48 | +1. Before starting, use sequential thinking to make a plan |
| 49 | +2. Explain your plan to the user and await approval |
| 50 | +3. Commit your approved plan to your memory banks |
| 51 | +4. **Create a feature branch** — `git checkout -b feat/<topic>` — before writing any code |
| 52 | + |
| 53 | +### 2.2. DO THE JOB |
| 54 | + |
| 55 | +1. Green the builds, green the tests |
| 56 | +2. Drop micro-commits as you complete steps — always use conventional commit format |
| 57 | +3. Drop a SITREP if you hit a snag or need input |
| 58 | +4. Drop a DEVLOG for ideas, observations, or anything you want to remember |
| 59 | +5. Use your memory banks freely |
| 60 | + |
| 61 | +> **ALWAYS** overwrite files, **NEVER** create secondary copies — that creates confusion and tech debt. |
| 62 | +
|
| 63 | +### 2.3. FINISH THE JOB |
| 64 | + |
| 65 | +1. Green the builds, green the tests |
| 66 | +2. Git commit (do NOT use `git add -A`) |
| 67 | +3. Ask the user if they want you to push and open a PR |
| 68 | +4. Drop a SITREP as you finish |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +## 3. SITREPs |
| 73 | + |
| 74 | +A briefing covering: |
| 75 | +- Current tasks and situation understanding |
| 76 | +- Relevant stats, files, issues, PRs |
| 77 | +- Intel the user can use to make decisions |
| 78 | +- Options and recommendations, then await orders |
| 79 | + |
| 80 | +## 4. DEVLOGs |
| 81 | + |
| 82 | +Your space. Write about whatever you want: |
| 83 | +- Ideas that came up while working |
| 84 | +- Problems you notice |
| 85 | +- Insights about collaboration |
| 86 | +- Anything you want to remember later |
| 87 | + |
| 88 | +--- |
| 89 | + |
| 90 | +## 5. TECH STACK REFERENCE |
| 91 | + |
| 92 | +- **Runtime**: Node.js >= 20, ES modules |
| 93 | +- **Core dependency**: `@git-stunts/git-warp` (local path, CRDT graph on Git) |
| 94 | +- **Plumbing**: `@git-stunts/plumbing` (must be installed as direct dependency) |
| 95 | +- **Tests**: vitest |
| 96 | +- **Style**: Plain JS with JSDoc, no TypeScript |
| 97 | +- **CLI**: Manual argv parsing, no CLI frameworks |
| 98 | +- **Formatting**: chalk + figures for terminal output |
0 commit comments