Shared guidance for AI agents working with this repository.
Keel is an engine with strict constraints (see POLICY.md). Your primary responsibility is to execute tactical moves that advance the board state while maintaining 100% integrity.
- Gardening First: You MUST tend to the garden (fixing
doctorerrors, discharging automated backlog, and resolving structural drift) BEFORE notifying the human operator or requesting input. - Heartbeat Hygiene: Monitor the system's pulse via
keel heartbeatandkeel health --scene. The pacemaker is derived from repository activity; uncommitted energy in the worktree is tactical debt that should be closed autonomously by landing the sealing commit. - Notification Discipline: Ping the human operator ONLY when you need input on design direction or how the application behaves. Resolve technical drift and tactical moves autonomously.
Keel's operator rhythm is the Orient -> Inspect -> Pull -> Ship -> Close loop surfaced by keel turn.
- Orient: Inspect charge and board stability with
keel heartbeat,keel health --scene,keel flow --scene, andkeel doctor. - Inspect: Read current demand with
keel mission next --status,keel pulse,keel roles, andkeel next --role <role> --explainwhen routing is unclear. - Pull: Select one role-scoped slice with
keel next --role <role>. - Ship: Execute the slice, record proof, and advance lifecycle state.
- Close: Land the relevant transition and the sealing commit that clears open-loop energy.
When a human user opens the chat or "pokes" you (e.g., "Wake up", "I'm poking you"), you MUST immediately perform the Orient and Inspect halves of the turn loop by following the Human Interaction & Pokes workflow in INSTRUCTIONS.md:
- Heartbeat: Run
just keel heartbeatto inspect current charge and whether the worktree is carrying uncommitted energy. - Pulse: Run
just keel health --sceneto check subsystem stability. - Scan: Run
just keel mission next --statusandjust keel pulse. - Confirm: Run
just keel flow --sceneto verify whether the LIGHT IS ON or the board is idle waiting for fresh repository activity. - Diagnose: Run
just keel doctorto ensure board integrity before proceeding.
Follow the formal procedural loops and checklists defined in: 👉 INSTRUCTIONS.md
When faced with ambiguity, resolve decisions in this descending order:
- ADRs: Binding architectural constraints.
- CONSTITUTION: The philosophy of collaboration.
- POLICY: The engine's operational invariants.
- ARCHITECTURE: Source layout and technical boundaries.
- PLANNING: PRD/SRS/SDD authored for the current mission.
These define the constraints and workflow of the Keel environment:
README.md— Entrypoint and canonical document navigation.INSTRUCTIONS.md— Step-by-step procedural loops and checklists.POLICY.md— Operational invariants and engine constraints.CONSTITUTION.md— Collaboration philosophy and decision hierarchy.ARCHITECTURE.md— Implementation architecture and flow model.STAGE.md— Visual philosophy and scene rendering.PROTOCOL.md— Communications protocol and data contracts.CODE_WALKTHROUGH.md— Source layout, key abstractions, and data-flow orientation.CONFIGURATION.md— Role-based and config-driven topology.RELEASE.md— Release process and artifacts..keel/adrs/— Binding architecture decisions.
Use this order when interpreting constraints: ADRs → Constitution → Policy → Architecture → Configuration → Planning artifacts.