/onex:dod_sweepfrom onex
Validates Definition of Done compliance across closed Linear tickets. Supports batch sweeps of recently completed tickets and targeted checks for specific epics or tickets.
Ships in onex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Validate Definition of Done compliance across closed epics/tickets. Operates in two modes: batch (retroactive sweep of recently completed tickets) and targeted (pre-close gate for a specific epic or ticket).
/dod-sweep): Query Linear for tickets completed in the lookback
window via tracker.list_issues, filter by completedAt./dod-sweep --since-last-cycle): Query Linear for
tickets completed since the last autopilot close-out cycle. Reads the last cycle
timestamp from $ONEX_STATE_DIR/autopilot/cycle-state.yaml field
last_cycle_id, which stores the cycle boundary timestamp. Falls back to
--since-days 7 if no prior cycle exists./dod-sweep <TICKET-ID>): If the target is an epic, expand child
tickets. If a single ticket, sweep just that one.When --per-ticket-verify is passed (or when invoked from autopilot as Step B1),
the sweep runs dod-verify individually against each discovered ticket instead of
delegating to the batch check_dod_compliance.py handler. This provides granular
evidence receipts per ticket.
Flow:
dod-verify skill logic:
$ONEX_CC_REPO_PATH/contracts/{ticket_id}.yamldod_evidence[], run evidence checks via the shared
runner at plugins/onex/skills/_lib/dod-evidence-runner/dod_evidence_runner.pyThe 6 per-ticket checks are organized into two confidence tiers:
Deterministic file existence and content parsing. If the file is there and parseable, the check is authoritative.
ls $ONEX_CC_REPO_PATH/contracts/{ticket_id}.yaml$ONEX_CC_REPO_PATH/.evidence/{ticket_id}/dod_report.json first, then
$ONEX_STATE_DIR as fallback. In targeted mode, also validate receipt
freshness -- receipt must be newer than the ticket's completedAt date.result.failed == 0.Depends on cross-repo search, SHA linkage, and drift artifact grep. Can produce UNKNOWN when linkage cannot be established cleanly.
python3 "${OMNI_PLUGIN_ROOT:?}"/skills/merge-drain/scripts/pr_state_local.py --find {ticket_id}
across repos. If no PR found, record UNKNOWN with detail "No merged PR found
matching ticket ID -- may indicate PR title/branch naming mismatch" rather than
hard FAIL.UNKNOWN.interfaces_touched, grep
$ONEX_CC_REPO_PATH/drift/integration/*.yaml for ticket_id. This verifies
presence of sweep evidence linked to the ticket, not substantive correctness
of every relevant integration surface. If no interfaces_touched, this check
is automatically PASS (not applicable).In targeted mode (pre-close gate), receipts must be associated with the completion being audited, not merely exist from some historical run:
completedAt date, OR receipt was
generated within the current session.$ONEX_CC_REPO_PATH/.evidence/{ticket_id}/dod_report.json) are preferred
over broad find discovery to prevent false association.UNKNOWN is not a single state. It may represent:
| Meaning | Example | Gate behavior |
|---|---|---|
| Exempt / not checked | Ticket predates contract system | Non-blocking |
| Inconclusive linkage | PR search found no match by ticket ID | Non-blocking if primary checks pass |
| Mixed check state | Some checks PASS, others UNKNOWN | Non-blocking but flagged |
| No evidence-backed passes | All tickets exempt | Non-blocking (rollout accommodation) |
| Primary checks | Supporting checks | Gate result | Action |
|---|---|---|---|
| Any FAIL | anything | BLOCK | Create follow-up tickets |
| All PASS | All PASS | ALLOW CLEAN | Mark epic Done |
| All PASS | Some UNKNOWN | ALLOW WITH WARNING | Mark epic Done, post warning |
| All PASS | Any FAIL | ALLOW WITH FOLLOW-UP | Mark epic Done, create follow-up |
| All exempt | n/a | ALLOW UNKNOWN-REVIEW | Mark epic Done (rollout accommodation) |
$ONEX_CC_REPO_PATH/dod_sweep_exemptions.yamlexpires_on if present -- expired exemptions are no longer validFor each failed ticket (when not --dry-run):
[dod-sweep-gap:{ticket_id}] marker in
description. If found and still open, update the existing ticket's description
with the current failed check set rather than creating a duplicate.Follow-up ticket format:
fix: DoD gap -- {ticket_id} -- {failed_check_names}Tickets with any of the following labels MUST have at least one rendered_output
evidence item in their dod_evidence[] array:
data_pipelinedashboarddisplayprojectionCheck logic:
dod_evidence[] contains at least one item with type: rendered_outputRENDERED_OUTPUT_MISSING in the sweep reportfix: DoD gap -- {ticket_id} -- missing rendered_output evidenceThis enforcement encodes the Visual Output Verification requirement into the automated DoD compliance pipeline.
ModelDodSweepResult YAML to
$ONEX_CC_REPO_PATH/drift/dod_sweep/{date}.yamldod.sweep.completed Kafka event (non-blocking)/loop 2h /onex:dod_sweep --dry-run
/loop daily /onex:dod_sweep
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (omninode-ai/omniclaude) — no native marketplace selected
npx claudepluginhub p/omninode-ai-onex-plugins-onex128 skills in this plugin
/adversarial_pipelineAdversarial PipelineAutonomous 3-stage adversarial plan-to-ticket pipeline — design_to_plan → hostile_reviewer gate (≥3 issues required) → plan_to_tickets. All stages run as background agents. Zero foreground work./agent_healthcheck/onex:agent_healthcheck — dispatch-only shimDispatch-only shim for agent stall detection and recovery. All detection and recovery logic lives in node_worker_stall_recovery (omnimarket). The skill parses args, builds the input envelope, dispatches to the node, and renders the receipt./aislop_sweep