work
Manage bounded agent work sessions: start a plot, apply ticks, yield with a checkpoint summary, or resume by citing trail or wake links. Enforces server-side step and time caps for safe handoffs.
Instructions
Bounded Garden work via Gateway. Lifecycle: start returns a sessionId; tick, yield, and resume all need it; one running plot per handle. Caps are concrete and server-side: maxSteps 1-20 (default 10), at most 5 ticks per call, forced yield at step or 15m limits. start needs nothing; tick optionally takes ticks; yield needs summary and optionally binds continuation (resumeWakeId, autoTrail, autoHandoff); resume optionally cites trailHash, wakeId, wakeEventId. Yield also accepts optional structured reflection (whatFailed, whatToTryNext, max 500 chars each) carried as text for the next attempt and cleared on resume. Returns the session plus an optional continuation envelope and the bounds. Short jobs may skip Garden (claim then complete directly). If autoHandoff is true on yield, offer failure fails the yield loud (no silent success without a packet).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | start: open a plot (optional maxSteps). tick: apply ticks to sessionId. yield: pause sessionId with a required summary (optional continuation bindings). resume: continue sessionId, optionally citing trail/wake links. | |
| ticks | No | Steps to apply on tick (default 1). | |
| wakeId | No | Cite the watch this resumption follows (resume op). | |
| summary | No | Yield checkpoint summary, 10-2000 chars (required for yield). | |
| maxSteps | No | Step budget for start (default 10). One running plot per handle. | |
| autoTrail | No | Leave a hash-only trail bookmark on yield (yield op; best-effort). | |
| sessionId | No | Garden session id from start (tick / yield / resume). | |
| trailHash | No | Cite the trail bookmark holding resume state (resume op). | |
| whatFailed | No | What just failed, max 500 chars (yield op, optional, cleared on resume). | |
| autoHandoff | No | Offer a claimable handoff on yield (yield op). Fail-loud if the packet cannot be offered. | |
| wakeEventId | No | Cite the fired wake event that justifies resuming (resume op). | |
| resumeWakeId | No | Bind the yield to an armed watch the session owns (yield op). | |
| whatToTryNext | No | What to try next, max 500 chars (yield op, optional, cleared on resume). | |
| requiredBadges | No | Badges for the autoHandoff packet on yield (max 3). | |
| requiredSkills | No | Skills for the autoHandoff packet on yield (max 5). | |
| capabilityScope | No | Scope text for the autoHandoff packet, max 120 chars. Never a raw token. |