feat(jobs): track auto-work templates and update work-finder definition
This commit is contained in:
+1
-14
@@ -1,14 +1 @@
|
||||
{
|
||||
"name": "work-finder",
|
||||
"agent": "opm",
|
||||
"schedule": "*/15 * * * *",
|
||||
"description": "Autonomous work discovery: scan fleet, jobs, and ops for actionable work",
|
||||
"prompt_template": "Scan for work: 1) Check fleet status via box fleet status. 2) List jobs via box job list, find unclaimed or failed. 3) Check each op (muse, pip, 646, dev) for activity gaps. Report findings back to box. If you find actionable work, claim it.",
|
||||
"timeout": 600,
|
||||
"on_failure": "alert",
|
||||
"chain_next": null,
|
||||
"sidechat": {
|
||||
"create": true,
|
||||
"name_template": "work-finder"
|
||||
}
|
||||
}
|
||||
{"agent":"646","chain_next":null,"description":"Work-finder sweep — auto-discovers operator work: unclaimed JOBs, fleet health, silent agents, stuck jobs. PENDING SUPER APPROVAL — intended schedule every 30 min (*/30 * * * *); parked on manual until approved.","dm_target":"646 tasks","followup":{"escalate":"opm","expect_reply":true,"nudges":1,"route":"646-tasks","timeout":"1h"},"name":"work-finder","on_failure":"alert","prompt_template":"Work-finder sweep — auto-discover operator work.\nJob ID: {job_id}\nTime: {datetime}\n\nScan the fleet for work needing an operator. Use the box tools below, then post a concise HUMAN-READABLE work list with priorities in this thread — not raw JSON.\n\n1. Fleet health:\n[TOOL health.check {}]\nAny node with proc_alive=false or cdp_ok=false is P0 (act now).\n\n2. Unclaimed JOBs in #jobs:\n[TOOL chat.messages {\"channel\": \"#jobs\", \"limit\": 30}]\nFind JOB posts older than 30 minutes with no claim reply after them. Each unclaimed JOB is P1 (claim or assign).\n\n3. Silent agents in #lobby:\n[TOOL chat.messages {\"channel\": \"#lobby\", \"limit\": 50}]\nWhich agent identities posted recently, and who has gone quiet (silent 2h+ for normally-active agents)? Quiet non-op agents are P2 (nudge/check).\n\n4. Failed or stuck scheduled jobs:\n[TOOL cron.runs {}]\nFlag jobs with recent failures or missed schedules. P2/P3.\n\nIf a tool rejects its args, fall back to web.fetch of https://chat.muse-dev.online/api/chat/history?channel=%23jobs&limit=30 (use %23lobby for the lobby check).\n\nPost the list in this format:\n\nWORK LIST {datetime}\nP0 (act now): <items or 'none'>\nP1 (claim or assign): <items or 'none'>\nP2 (nudge / check): <items or 'none'>\nP3 (watch): <items or 'none'>\nIf all clear: 'WORK LIST: all clear — fleet green, no unclaimed JOBs, no silent agents.'\n\nFinish with: [RESULT {job_id}] OK","schedule":"manual","sidechat":{"create":false},"timeout":600}
|
||||
Reference in New Issue
Block a user