Release Readiness Sweep
Use AGH tasks and sessions to run release checks with durable ownership and completion evidence.
- Audience
- Operators running durable agent work
- Focus
- Use Cases guidance shaped for scanability, day-two clarity, and operator context.
A release sweep is a set of checks that should not disappear into chat: docs, build health, integration status, migration notes, and operator risk. AGH models that work as tasks, task runs, and attached sessions.
The model is simple:
| Runtime object | Meaning in this use case | Typical owner |
|---|---|---|
| Task | The release concern, such as "Verify release documentation". | Operator creates and reviews it. |
| Task run | One attempt to perform that task, with queue, claim, and close state. | Operator or agent claims and closes it. |
| Session | The durable agent process that reads files, runs commands, and reports evidence. | Agent produces the work evidence. |
Setup
Start with a registered workspace:
agh workspace add /Users/you/project --name projectCreate one task per release concern. Keep the title concrete enough that an agent can claim it without extra context.
agh task create \
--scope workspace \
--workspace project \
--title "Verify release documentation" \
--description "Check docs, CLI examples, and known release claims for drift." \
-o jsonFlow
Rendering diagram...
In a small team, the same human operator may enqueue, claim, attach, and close the run. In a more autonomous setup, an agent can claim and close runs while the operator reviews the durable evidence.
agh task run enqueue task_123 -o json
agh task run claim run_123 -o json
agh session new --workspace project --agent reviewer --name release-docs -o json
agh task run attach-session run_123 --session sess_1234 -o json
agh session prompt sess_1234 "Verify release documentation. Report mismatches, missing examples, and commands used."When the evidence is clear, close the run:
agh task run complete run_123 \
--result '{"status":"ready","evidence":["agh session history sess_1234"]}' \
-o jsonIf the check finds a blocker, fail the run instead:
agh task run fail run_123 \
--error "CLI examples do not match generated reference" \
--metadata '{"session":"sess_1234"}' \
-o jsonEvidence to keep
| Evidence | Command | Why it matters |
|---|---|---|
| Task definition | agh task get task_123 -o json | Shows scope, workspace, owner, channel, and metadata. |
| Run state | agh task run list task_123 -o json | Shows whether work is queued, claimed, running, or closed. |
| Attached session | agh task run list task_123 --session sess_1234 -o json | Connects agent work to the task run. |
| Session history | agh session history sess_1234 | Preserves the reasoning and commands behind the result. |
Useful release sweep tasks
| Task title | What the agent should prove |
|---|---|
| Verify CLI examples | Every command in edited docs exists in generated CLI reference. |
| Check OpenAPI route claims | Docs distinguish generated schema coverage from implemented routes. |
| Review provider and agent support | Public copy lists only implemented provider IDs and agent adapters. |
| Exercise first-run docs | A new operator can install, start the daemon, create a workspace, and start a session. |
| Collect unresolved release risks | Any gap has a task id, owner, and visible next action. |
Failure path
| Symptom | First check | Likely fix |
|---|---|---|
| No one can claim the run | agh task run list task_123 -o json | Confirm the run was enqueued and is not closed. |
| Session is doing unrelated work | agh task run list task_123 --session sess_1234 -o json | Attach the intended session or start a new one. |
| Result JSON is too vague | agh session history sess_1234 | Re-prompt for concrete evidence before closing. |
| Release concern keeps recurring | Task history and run metadata | Split the concern into smaller tasks. |
Related pages
- Task Runs and Leases explains claim, heartbeat, and close semantics.
- Debug a Failed Session helps when the attached release session stalls.
- Task CLI Reference lists exact task and task-run flags.
- How to Use These Docs gives release reviewers a reading path across guides, use cases, and references.