Purpose
Define the bootstrap files required to initialize and run one openboa agent. Bootstrap files are the agent’s stable operating inputs for:- identity
- behavior
- mandate
- workspace operating rules
Scope
In scope:- required bootstrap file set
- per-file role/responsibility
- missing/empty/oversized handling
- first-run bootstrap flow
- GUI bootstrap editors
- centralized profile registry service
- mandatory external storage for bootstrap files
Location
Bootstrap files are per-agent and live in:<workspaceRoot>/agents/<agentId>/workspace/
Required Bootstrap Files
AGENT.mdPROFILE.mdMANDATE.mdTOOLS.mdIDENTITY.mdBOOTSTRAP.md(first-run only)
USER.mdMEMORY.mdmemory/.learnings/
File Roles
AGENT.md
Operational rules for how this agent works:
- workflow rules
- reporting style
- execution boundaries
PROFILE.md
Behavior/persona baseline:
- tone
- response style
- default behavioral preferences
MANDATE.md
Responsibility contract:
- scope
- success criteria
- non-goals and boundaries
TOOLS.md
Environment/tool notes:
- local tool conventions
- command gotchas
- machine-specific usage hints
IDENTITY.md
Identity metadata:
- name
- short descriptor
- symbolic identity fields (optional)
BOOTSTRAP.md
First-run initialization script-like guidance:
- used when workspace is first initialized
- can be removed after initialization is completed
Runtime Consumption Rules
For each turn, runtime may read these files when assembling prompt/context. Handling policy:- missing required file -> inject safe marker + continue
- empty file -> skip
- oversized file -> deterministic trim + truncation marker
First-Run Flow
- create agent workspace if missing
- create default bootstrap file templates if missing
- execute first-run guidance from
BOOTSTRAP.md - persist initialization status in runtime state
- subsequent runs treat
BOOTSTRAP.mdas optional legacy artifact
Bootstrap and Chat Boundary
Bootstrap files are agent-local configuration inputs. They are separate from chat data:- bootstrap source:
agents/<agentId>/workspace/* - chat SOT:
.openboa/chat/chats/<chatId>.jsonl
Acceptance Criteria
- required bootstrap file set is validated per agent
- file-role responsibilities are documented and enforced
- missing/empty/oversized behavior is deterministic
- first-run bootstrap can complete without external systems
- bootstrap inputs and chat SOT remain clearly separated
Reference Notes (inline)
- OpenClaw bootstrap-file injection behavior was referenced as practical baseline.
- openboa uses its own file taxonomy (
PROFILE,MANDATE,AGENT) and per-agent workspace boundary.