If you are an AI coding assistant (or a human picking up the repo), start here:
- Read
docs/context/CONTEXT_BOOTSTRAP.md. - Follow its routing map to load only task-relevant context docs.
- If this is a fresh non-repo session (for example ChatGPT), use
docs/context/prompt-bootstrap.md(paste the SHORT section first). - If you need historical rationale, read
docs/context/project-log.mdanddocs/context/archive/archive-readme.md.
Guardrails (v1 preview):
- Keep
kernel/deterministic and small (trusted seed). No LLM/agent logic in core. - Stay within v1-preview scope defined in
docs/context/architecture.md+docs/context/roadmap.md. - Treat parked work in
roadmap/ideas/*.mdas out-of-scope unless asked. - Prefer the two-file approach (generated skeleton + separate impl), use
bear fixfor generated-artifact repair, and deterministic enforcement viabear check.
Session hygiene:
- Update
docs/context/state.mdwhenever work progresses (Last Updated,Current Focus,Next Concrete Task, shortSession Notes). - Keep
docs/context/state.mdwithinContextDocsConsistencyTestbudgets; ifSession Notesapproaches/exceeds cap, move oldest notes todocs/context/archive/archive-state-history.mdand keep only recent operational notes instate.md. - Keep
docs/context/state.mdfocused on BEAR development handoff only; do not use it to store local tool, sandbox, editor, or terminal-diagnostics history unless that behavior changes BEAR development workflow. - Update
roadmap/board.md,roadmap/scope.md, and the relevantroadmap/features/*.mdorroadmap/ideas/*.mdfiles when roadmap status, ordering, or parked-item state changes. - Update
docs/context/project-log.mdonly for major architectural shifts/decisions. - Before ending a session, follow
docs/context/start-here.md->Session Close Protocol. - Exception: routine demo cleanup/reset operations do not require
docs/context/state.mdupdates unless cleanup policy/process changed.
Safety guardrails:
- Read
docs/context/safety-rules.mdbefore running any delete/cleanup command. - Never run recursive deletes outside the repository root.
- For temp cleanup, prefer
scripts/safe-clean-temp.ps1over ad-hocRemove-Item. - For demo branch cleanup, prefer
scripts/clean-demo-branch.ps1over ad-hoc cleanup + git commands.- Default mode resets the branch to committed HEAD while preserving committed BEAR-authored paths already on that branch.
- Add
-IncludeGreenfieldResetonly for spec-only greenfield branches wherebear.blocks.yaml,spec/, andsrc/main/java/blocks/should be cleared before restore.
The following repo-local skills can be used in this project:
- workflow-orchestration: plan-first, verification-heavy workflow adapted to BEAR context docs and guardrails. Trigger for non-trivial tasks (3+ steps), architectural/refactor work, bug investigations, or explicit user request. (file:
c:/Dev/rore/bear-cli/skills/workflow-orchestration/SKILL.md)
Default policy:
- For non-trivial tasks (3+ steps), load and follow
workflow-orchestrationbefore implementation.
For roadmap planning and roadmap file updates in the minimap workspace, follow tools/minimap/SKILL.md.
Treat roadmap/ as the canonical live planning surface for humans and agents:
roadmap/board.md: group names and canonical item orderroadmap/scope.md: current roadmap focus narrativeroadmap/features/*.md: committed, active, and completed roadmap workroadmap/ideas/*.md: parked or uncommitted roadmap ideas
Keep docs/context/roadmap.md for milestone definitions and scope guardrails, not live queue ownership.