antcolony
All repositories: gitoria
4.8 KB
{"$comment": "The worker report (docs/scheduler-agent.md §4) as JSON Schema — handed to `claude -p --json-schema` by `./colony work`. Keep in step with lib/report.hl validate(), which stays the authority (it also checks ticket/session against the session). Only keywords known to work with claude --json-schema are used (no maxLength / pattern / maxItems); report.hl enforces the limits (mission 027: result ≤ 120 characters, test 2–4 steps ≤ 90 characters, questions of ≤ 3 lines, decided one line ≤ 120) and a refused report gets ONE fix step.","type": "object","additionalProperties": false,"required": ["ticket","session","result","complete","test","done","verified","open","issues","questions","decided","running","refused"],"properties": {"ticket": {"type": "string","pattern": "^[^#]+#[1-9][0-9]*$","description": "<project>#<number>, exactly as given in the brief"},"session": {"type": "string","minLength": 1,"description": "the session id given in the brief"},"result": {"type": "string","minLength": 1,"description": "ONE plain sentence for the creator, one line, at most 120 characters: what is built (not 'live' — you do not deploy)"},"complete": {"type": "boolean","description": "true ONLY if the ticket's goal is reached AND what the creator should test is really in place (copied into the app, not only a work copy); else false (half done: the next worker continues — say in `open` what is missing and where the unfinished work is)"},"test": {"type": "array","items": {"type": "string","minLength": 1},"description": "2–4 short steps (one line, at most 90 characters each), shown as a numbered list, for the creator on the LIVE site named in the brief (or, without one, the real result) — never a work copy (.scratch) or a local address"},"done": {"type": "array","items": {"type": "string","minLength": 1},"description": "what was done (Markdown)"},"verified": {"type": "array","description": "every claim with the command you ran and the output you observed","items": {"type": "object","additionalProperties": false,"required": ["claim","command","output"],"properties": {"claim": {"type": "string","minLength": 1},"command": {"type": "string","minLength": 1},"output": {"type": "string","minLength": 1}}}},"open": {"type": "array","items": {"type": "string","minLength": 1},"description": "what is not done / not verified"},"issues": {"type": "array","description": "findings in ANOTHER project","items": {"type": "object","additionalProperties": false,"required": ["project","subject","repro","observed","expected","blocks"],"properties": {"project": {"type": "string","minLength": 1},"subject": {"type": "string","minLength": 1},"repro": {"type": "string","minLength": 1},"observed": {"type": "string","minLength": 1},"expected": {"type": "string","minLength": 1},"blocks": {"type": "boolean"}}}},"questions": {"type": "array","items": {"type": "object","additionalProperties": false,"required": ["title", "text"],"properties": {"title": { "type": "string", "minLength": 1, "description": "the short subject of the question's ticket, one line, at most 80 characters, plain words (e.g. 'how long should an ident login last?')" },"text": { "type": "string", "minLength": 1, "description": "the question, then the options; at most 3 short lines (≤ 300 characters)" }}},"description": "at most 3, only what changes what gets built; each { title, text }"},"decided": {"type": "array","items": {"type": "string","minLength": 1},"description": "small choices you made yourself (one line each, at most 120 characters) — shown to the creator as one line \"Decided: …\""},"running": {"type": "array","description": "what you leave running","items": {"type": "object","additionalProperties": false,"required": ["what","url","pid","log"],"properties": {"what": {"type": "string","minLength": 1},"url": {"type": "string"},"pid": {"type": "number"},"log": {"type": "string"}}}},"refused": {"type": "array","items": {"type": "string","minLength": 1},"description": "actions the permission system refused, not retried"}}}
Branches
- mainmain branch
Latest commits
- 7f9660eeState of 2026-09-27, before the move to gitoriamre