The AI Project
Context Standard
Documented standards are not followed standards.
An AI session only obeys what is in its context. If your rules live in a wiki the agent never loads, they do not exist. If they live in per-project instruction fields you maintain by hand, every copy drifts — we have watched two hand-maintained copies of the same rule disagree within weeks. And when rules depend on the session "remembering" to check them, they fail exactly when it matters.
We run an entire company — products, client work, marketing sites — with AI agents doing the work. This standard is how our rules survive contact with reality.
Three rules drive everything.
The three layers.
| Layer | Lives in | Contains | Maintained by |
|---|---|---|---|
| 1 — Pointer | The AI tool's project-instruction field | One line: "This project = X. Follow the instruction file in the repo — it is the source of truth." | Set once. Never edited again. |
| 2 — Instructions | Instruction file in the repo | A synced standards block + project-specific rules | The AI agent, via your edit flow |
| 3 — Knowledge | Your knowledge base | The actual specs, decisions, build logs | The AI agent, per your KB rules |
A session reads layer 1, loads layer 2, and is directed to layer 3. When a rule changes, you change it once in the master — it syncs into layer 2 — and layer 1 never changes again.
The synced standards block.
<!-- STD-START v1.0 · synced from <master> on <date> · do NOT hand-edit --> …file-edit flow · integrity guards · secrets rule · which standards apply to THIS repo… <!-- STD-END -->
Version-numbered. The block carries a version number so any session can immediately see whether its copy is stale.
Project-specific rules live outside the markers. They belong to the project and are not touched by the sync.
When the master changes, bump the version and replace the block in every repo — mechanically, in the same session as the change. Not next week.
What goes in the block.
The instruction file template.
1. Title + what this project is (2–3 lines) 2. Read-first list — which knowledge-base files to load, every session 3. Current state + resume — what is shipped (do-not-redo) and what is next 4. SYNCED STANDARDS BLOCK — between markers, generated 5. Folders & write permissions 6. Project-specific hard rules — the non-negotiables, condensed 7. Deploy command (if applicable) 8. On completion: update the knowledge base — keep the spec current
When one project spans several repos.
Each repo keeps its own instruction file — never merge them, or the sync ritual breaks. The pointer names every repo and tells the session: read the instruction file of the repo you are touching, before any work.
The key discipline: the session knows which repo it is in before it does anything. The instruction file for that repo is the one that governs it. Cross-repo work is handled by the routing standard — see the companion resource below.
Measuring compliance.
Keep one compliance matrix in your standards index: rows = projects, columns = key standards, cells = pass / partial / gap, with the date last audited. Re-audit a project whenever you enter it for other work, or monthly.
New project checklist.
| 1 | Create the repo | With an instruction file per the template. Copy the synced block from any current repo and verify it is the latest version before you start. |
| 2 | Register the repo | In your standards index and compliance matrix. A project that is not in the matrix is not being governed. |
| 3 | Decide the applies-to list | Which standards bind this repo. That list becomes the block's applies-to section. |
| 4 | Set the pointer | The tool's project-instruction field: one line, points at the repo's instruction file. Done — never touch it again. |
Built for founders and teams running multiple projects with AI agents in Malaysia — anyone who has discovered that writing a standard and having it followed are two different problems.
Free. No form. No email.
Where work goes between projects.
This standard governs how rules stay consistent inside each project. The companion standard covers the other half: how work moves between projects — without you becoming the courier between your own AI sessions.