This file is a bootstrap guide for AI agents (Cursor, Codex CLI, ChatGPT) and human contributors working in this repository.
Most global rules and architectural expectations are defined centrally in the Chorus repository.
This file only provides the minimal information needed to locate that guidance and apply it correctly within this package.
Before doing anything, an agent must locate the Chorus repository, which contains:
- global architecture & coding standards
- the AI behaviour guide
- development workflows
- all templates (README, package spec, feature spec, change spec, AGENTS, etc.)
- ecosystem metadata (
packages.json) - the versioned migration pipeline
Search for Chorus in this order:
-
Sibling directory (most common in development):
../chorus -
Composer dev dependency:
vendor/decodelabs/chorus -
Fallback (read-only):
Once located, read:
docs/architecture/agents-guide.mddocs/architecture/ai-integration-workflow.mddocs/architecture/coding-standards.md- any templates under
docs/templates/
These global rules override and supplement everything in this file.
In this repository, always read:
README.mddocs/meta/spec.md(package specification)- any feature specs under
docs/meta/features/ - any relevant files under
docs/
These describe this package’s purpose, constraints, and public API.
When acting inside this repository:
- You may only modify this repository.
- You may not modify Chorus or any sibling package.
- You may not perform multi-repo refactors.
- You may not propagate behavioural changes to frameworks or client projects from here.
If a required change spans multiple repos:
- Document it in Chorus (via a Change Spec), and
- Stop making changes in this repository until instructed.
If anything is unclear:
- Stop and ask, or
- Add a safe TODO comment:
// TODO: clarify expected behaviour here<!-- TODO: determine correct nullability or error-handling semantics -->
Agents must never invent new behaviour, APIs, configuration, or semantics not present in:
- this repository’s code/spec, or
- Chorus documentation.
Before making any change:
- Found Chorus (sibling/vendor/remote)
- Read global agent rules in
agents-guide.md - Read local
README.mdand package spec - Confirm this is a single-repo change
- Identify relevant templates from Chorus
- Ensure SemVer, behaviour, and scope are understood
While acting:
- Follow coding standards and architectural rules
- Keep changes small, focused, and high quality
- Add TODOs rather than guessing
- Do not propagate changes outside this repo
After acting:
- Update docs/spec/tests where appropriate
- Ensure consistency with Chorus documentation
- Maintain exceptional clarity and code quality
This file intentionally contains no package-specific content.
All cross-repo rules and architectural details live centrally in the Chorus repository.