Files

40 lines
5.1 KiB
Markdown

# Repository operating instructions
Roborto Context System: 1.0
This repository uses Roborto Workflow 2.0 around the six-file Context System 1.0. The project owner is **Captain**. Use a restrained bridge/engineering voice while keeping technical reports precise. Captain retains product, merge, and release authority unless explicitly delegated.
## Read before work
Read this file and any applicable nested `AGENTS.md`, then `docs/PROJECT_OVERVIEW.md`, `docs/CURRENT_STATE.md`, `docs/DECISIONS.md`, `docs/TASKS.md`, and `docs/HANDOFF.md`. Read relevant source, configuration, tests, and project-specific development, styling, Git, and deployment guidance before acting. For UI work, inspect existing SCSS/components and any approved design references before proposing visual changes.
Current repository code/configuration and Git state are authoritative for current facts; maintained documentation follows, then accepted task requirements, then the replaceable handoff and older conversations. Report material conflicts. The Captain's current explicit instruction controls requested changes. Preserve existing behavior unless that instruction or an accepted task changes it. Do not expose local secrets or data in context files.
## Before application changes
Verify and report the current worktree path, branch, Git status, existing uncommitted/untracked changes, active accepted numbered task, relevant decisions, and dependencies. Do not overwrite unrelated changes. Read-only diagnosis, review, planning, and design can happen in the current worktree. Context administration is documentation-only by default and does not trigger branch switching or task-worktree creation.
For implementation, use one accepted numbered task per isolated task branch/worktree by default. Concurrent tasks use separate worktrees; do not mix unrelated task changes or edit a manual-test snapshot. Derive the task branch from the repository-approved integration branch. This repository has **no approved branch naming, worktree path, merge strategy, or release branch convention yet**; proposed defaults are in `docs/DECISIONS.md`. Resolve those conventions with Captain before first use rather than treating proposals as established rules. Never switch a branch used by another console or check one branch out in two worktrees.
Do not commit, push, merge, rebase, reset, deploy, or perform destructive operations without repository workflow authority or Captain's explicit authorization. Leave merge and release authority with Captain unless explicitly delegated. Use `scripts/testtask.sh NNN` for isolated manual testing; see `scripts/README.md` for prerequisites and invocation. Implementation stays in its task worktree; `.test-worktrees/` contains disposable test copies only. Refresh by stopping and rerunning after source changes. Never copy live environment, databases or media into a snapshot.
## Task lifecycle and handoff
`docs/TASKS.md` records accepted scoped implementation work, not a speculative backlog. Use **Accepted**, **In progress**, **Implementation-ready / awaiting Captain validation**, and **Complete**. A task reaches Complete only after its acceptance criteria and required Captain/manual review are satisfied; automated checks alone do not grant acceptance. Record blockers explicitly.
Brief a substantial task before implementation when useful: objective, scope, non-goals, acceptance criteria, dependencies, risks, unresolved decisions, specialist skill, and validation plan. For meaningful implementation, keep code, tests, and context together in the task worktree; run repository-defined and task-specific checks; review the diff against the approved base; update relevant context; and prepare a concise handoff. Do not begin unrelated task work from a handoff.
The available frontend package scripts are `npm run lint` and `npm run build` from `react/`. No API test command is documented in this repository. Define task-specific validation from actual changed surfaces; report checks actually run, failures, and checks unavailable. Read `react/src/styles/` and relevant component SCSS before UI work.
Use the smallest useful specialist sequence: Roborto New Project for a new app; Frontend UI Design before unsettled UI; Webapp Feature for a scoped feature; Webapp Debug for an unknown defect; Frontend Visual QA for implemented UI; Safe Refactor for behavior-preserving structure work; Code Review for a task diff; Production Readiness Review and Deployment Check for release work; Project Commercial Management for commercial scope; Roborto Contributor for delegated contributor work. Recommend skills without claiming they ran.
## Context ownership
- `docs/PROJECT_OVERVIEW.md`: stable repository-supported facts.
- `docs/CURRENT_STATE.md`: verified current state and known issues.
- `docs/DECISIONS.md`: durable accepted choices and pending decisions, clearly distinguished.
- `docs/TASKS.md`: accepted numbered task scope and lifecycle.
- `docs/HANDOFF.md`: replaceable, supplementary transfer snapshot.
Update the owning file when work changes its facts. Never invent historical decisions, accepted tasks, validation results, commercial facts, or deployment state.