English
Missions (sending an agent)
Generated from docs/standards/missions.md · npm run docs:gen
Code: core/missions/missions.ts. Tests: tests/contracts.test.ts. Lot M builds the route (server/routes/missions.mjs, capability ask, already in the route table) and the feature.
Status: alpha. This format can still change before its 1.0; a change follows the versioning rules of the project and is announced in the changelog.
- Agents:
daemon(sent asmain:agentArg),architect,operator,reviewer,guardian. MissionRequest { agent, text, quest?, step?, target? (entity id) };checkMissionRequest(r)refuses an unknown agent, an empty text, a text overMAX_TEXT(4000).Mission { id, agent, state: "out"|"ok"|"failed", quest?, step?, key? (the step key it proves), target?, sentAt, backAt?, durationMs?, reply?, error?, archived? }; a reply is cut atMAX_REPLY(8000); a mission still out afterMISSION_TIMEOUT_MS(10 min) fails.estimate(past, agent): median duration of that agent's last missions, or null.missionsByKey(list)givesContext.missionsfor themissioncheck of alta-game-0.2.- Sending goes through the
agent.messageexecutor: the text is passed on stdin only (openclaw agent --agent <a> --message-file - --json), never in argv, never in a journal.