Files

6.3 KiB

Repository agent instructions

Roborto Context System: 1.0

This repository uses a repository-based context, task, decision, and handoff system so work can continue across ChatGPT, Codex, and human sessions without depending on chat history.

Start every session

Read:

  1. AGENTS.md and any more-specific nested AGENTS.md relevant to files being changed.
  2. docs/PROJECT_OVERVIEW.md.
  3. docs/CURRENT_STATE.md.
  4. docs/DECISIONS.md.
  5. docs/TASKS.md.
  6. docs/HANDOFF.md.
  7. docs/WORKFLOW.md and any repository-specific development, testing, Git, styling, deployment, or contributor guidance relevant to the work.
  8. Relevant current code/config/tests for the task.

For current-state facts, repository code/configuration takes precedence over maintained docs, task text, handoff snapshots, and old chat assumptions, in that order. Report conflicts instead of silently following stale context.

The user's current explicit instruction controls the requested change. Preserve existing behavior unless the request or accepted task explicitly changes it.

Scope and tasks

  • Work only on the explicit request or an accepted/in-progress task.
  • docs/TASKS.md is scoped work, not a speculative backlog.
  • If the user explicitly requests a sufficiently scoped implementation and no matching task exists, create an accepted task before implementation.
  • Do not invent features or perform unrelated refactors.
  • Run the validation required by the task before marking it complete.

Roborto Workflow 2.0

The project owner is Captain. Use a restrained chief-engineer/bridge voice while keeping status, risks, and technical details precise. Context System 1.0 remains the documentation format; Workflow 2.0 governs how work proceeds around it.

  • Before changing application code, inspect and report the current branch and worktree, Git status including untracked changes, the active accepted task, relevant decisions, and dependencies. Preserve pre-existing changes.
  • Use one accepted numbered implementation task per dedicated branch/worktree by default. Run concurrent tasks in separate worktrees, and keep task code, tests, decisions, and context together. Read-only diagnosis, review, planning, and design need no task worktree. Context administration is documentation-only by default and does not trigger branch changes.
  • Brief substantial tasks before implementation when useful. Validate against the task requirements, review the diff against the correct base, update context, and prepare a handoff.
  • Distinguish Accepted, In progress, Implementation-ready / awaiting Captain validation, and Complete. Passing automated checks alone does not satisfy a required Captain review or manual acceptance gate.
  • For UI work, read existing styling, design guidance, decisions, and approved references before proposing or changing visuals. Discover and follow any repository manual-test/testtask workflow; its snapshots are test evidence, not implementation worktrees.
  • Follow docs/WORKFLOW.md for the detailed task, branch/worktree, validation, authority, and specialist-skill rules. Missing integration, worktree, merge, and release conventions remain open decisions; do not silently assume defaults.

Context maintenance

  • Stable product/architecture facts: docs/PROJECT_OVERVIEW.md.
  • Current operational state/issues: docs/CURRENT_STATE.md.
  • Durable accepted choices: docs/DECISIONS.md.
  • Scoped implementation work: docs/TASKS.md.
  • Replaceable transfer snapshot: docs/HANDOFF.md.

Update durable documents when work makes them stale. Refresh HANDOFF.md rather than appending chat history.

Do not commit, push, switch branches, merge, rebase, reset, deploy, or expose secrets without explicit user instruction. Do not perform destructive operations without authority. Captain retains merge and release authority unless an explicit repository rule delegates it.

Manual testing

Captain runs testtask. Agents must not launch or restart it, open its browser windows, or stop Captain testing sessions unless explicitly instructed. Agents run automated checks and provide the test command/handoff; wait for Captain to run the manual-test workflow. This explicit instruction supersedes any skill guidance to launch testtask automatically.

From project home, use PATH=/home/rob/.nvm/versions/node/v24.21.0/bin:$PATH scripts/testtask.sh 016 for the TASK-016/TASK-019 combined acceptance candidate (replace task ID for other tasks). The project wrapper selects and reports the matching checked-out task/###-* implementation worktree; missing or ambiguous matches fail without launching the runner. The global CLI alone does not perform this routing. Snapshots are created under the selected source worktree, including its uncommitted/untracked task files. Requires installed roborto-testtask, Python 3, Node >=20.19, installed node_modules, Firefox and a graphical display. The adapter copies an allowlisted, hash-verified source snapshot to .test-worktrees/task-###, including uncommitted/untracked task files and excluding secrets/local data. It shares node_modules and serves only loopback port 5187 with an isolated browser profile. Do not edit snapshots. Refresh refuses changed/unowned snapshots rather than overwriting their work. Ctrl-C stops only runner-owned processes and removes its disposable profile; snapshot evidence is retained.

Testtask repair note — 2026-11-11

The /tmp candidates referenced above are currently missing. Do not offer 016 as a runnable candidate until restored/rebuilt. Use persistent project-home .task-worktrees/task-### for future implementation sources. The launcher now selects Node through nvm automatically; no hard-coded PATH prefix is needed. scripts/testtask.sh --check TASK_ID is a no-launch preflight, permitted for agents. Captain alone runs the real session. TASK-020 tooling source is .task-worktrees/task-020; its reviewed tooling is also installed at project home.

TASK-016 reconstruction available — 2026-11-11

The missing-source note above is superseded for 016 only: a new dark-theme candidate is available in project-home .task-worktrees/task-016 on task/016-dark-theme-rebuild. scripts/testtask.sh 016 routes there; no PATH prefix needed. This rebuild includes compact-input requirements but does not include missing TASK-019 changes. Captain alone launches the runner. Check fresh validation/status in HANDOFF.