com um clique
checkpoint
Pipeline checkpoint management for resume, replay, and phase validation
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Pipeline checkpoint management for resume, replay, and phase validation
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Dispatch a background worker with role-templated prompt and auto-populated collision fences
Comprehensive system health monitoring — checks agent performance, database, Kafka topics, pattern discovery, and service status across the ONEX platform
Orchestrate a Claude Code agent team to autonomously work a Linear epic across multiple repos
Run DoD evidence checks against a ticket contract and generate a verification receipt
Autonomous per-ticket pipeline that chains ticket-work, local-review, PR creation, CI watching, PR review loop, integration verification gate, and auto-merge into a single unattended workflow with Slack notifications and policy guardrails
Full autonomous audit-debug-fix loop for all dashboard pages — Playwright recon, parallel systematic-debug, fix, PR, Linear ticket, re-audit, iterate until clean. Supports local and cloud targets with optional post-fix redeployment.
| name | checkpoint |
| description | Pipeline checkpoint management for resume, replay, and phase validation |
| version | 1.0.0 |
| level | advanced |
| debug | true |
| category | infrastructure |
| tags | ["checkpoint","pipeline","resume","replay","state"] |
| author | OmniClaude Team |
| args | [{"name":"operation","description":"Operation: write | read | validate | list","required":true},{"name":"--ticket-id","description":"Ticket identifier (e.g., OMN-2144)","required":true},{"name":"--run-id","description":"Pipeline run UUID (required for write, read, and validate; optional for list)","required":false},{"name":"--phase","description":"Pipeline phase: implement | local_review | create_pr | ready_for_merge","required":false},{"name":"--attempt","description":"Attempt number (default: 1)","required":false},{"name":"--repo-commit-map","description":"JSON object mapping repo names to commit SHAs","required":false},{"name":"--artifact-paths","description":"JSON array of relative artifact paths","required":false},{"name":"--payload","description":"JSON object with phase-specific payload fields","required":false}] |
Checkpoints record the successful completion of each pipeline phase. They are written after a phase finishes (never during) and enable:
Checkpoints are backed by the omnibase_infra checkpoint node infrastructure (OMN-2143) and managed through the checkpoint_manager.py CLI wrapper.
Announce at start: "I'm using the checkpoint skill to manage pipeline state."
Checkpoints are stored as YAML files under the user's home directory:
~/.claude/checkpoints/{ticket_id}/{run_id}/phase_{N}_{name}_a{attempt}.yaml
Where:
{ticket_id} -- Linear ticket identifier (e.g., OMN-2144){run_id} -- Pipeline run UUID{N} -- Phase ordinal (1-4){name} -- Phase value string{attempt} -- Monotonically increasing attempt counterExample:
~/.claude/checkpoints/OMN-2144/e3a1b2c4-d5f6-5a78-9bcd-ef1234567890/phase_1_implement_a1.yaml
~/.claude/checkpoints/OMN-2144/e3a1b2c4-d5f6-5a78-9bcd-ef1234567890/phase_2_local_review_a1.yaml
~/.claude/checkpoints/OMN-2144/e3a1b2c4-d5f6-5a78-9bcd-ef1234567890/phase_2_local_review_a2.yaml # retry
~/.claude/checkpoints/OMN-2144/e3a1b2c4-d5f6-5a78-9bcd-ef1234567890/phase_3_create_pr_a1.yaml
Note: Short run IDs (e.g.,
a1b2c3d4) are normalized to deterministic UUID v5 values on disk via_normalize_run_id(). The same short ID always maps to the same full UUID.
Writes are append-only: existing checkpoint files are never modified or overwritten.
Each checkpoint YAML file contains these fields:
| Field | Type | Description |
|---|---|---|
schema_version | string | Forward-compatibility version (currently "1.0.0") |
run_id | UUID | Pipeline run correlation ID |
ticket_id | string | Linear ticket identifier |
phase | enum | Pipeline phase that completed |
timestamp_utc | datetime | UTC timestamp of phase completion (explicitly injected) |
repo_commit_map | dict[str, str] | Mapping of repo name to commit SHA |
artifact_paths | tuple[str, ...] | Relative paths of output artifacts |
attempt_number | int (>=1) | Monotonically increasing attempt counter |
phase_payload | union | Phase-specific payload (discriminated on phase field) |
| Phase | Ordinal | Value |
|---|---|---|
| Implement | 1 | implement |
| Local Review | 2 | local_review |
| Create PR | 3 | create_pr |
| Ready for Merge | 4 | ready_for_merge |
| Field | Type | Description |
|---|---|---|
phase | literal "implement" | Discriminator |
branch_name | string | Git branch name created |
commit_sha | string (7-40 hex) | HEAD commit SHA after implementation |
files_changed | tuple[str, ...] | Relative paths of changed files |
| Field | Type | Description |
|---|---|---|
phase | literal "local_review" | Discriminator |
iteration_count | int (>=1) | Number of review-fix iterations |
issue_fingerprints | tuple[str, ...] | Fingerprints of issues found and resolved |
last_clean_sha | string (7-40 hex) | Commit SHA of the last clean state |
| Field | Type | Description |
|---|---|---|
phase | literal "create_pr" | Discriminator |
pr_url | string | Full URL of the created PR |
pr_number | int (>=1) | PR number on the remote |
head_sha | string (7-40 hex) | HEAD SHA pushed to the remote |
| Field | Type | Description |
|---|---|---|
phase | literal "ready_for_merge" | Discriminator |
label_applied_at | datetime | UTC timestamp when the merge-ready label was applied |
All operations use checkpoint_manager.py located at ${CLAUDE_PLUGIN_ROOT}/hooks/lib/checkpoint_manager.py.
python ${CLAUDE_PLUGIN_ROOT}/hooks/lib/checkpoint_manager.py write \
--ticket-id OMN-2144 \
--run-id a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--phase implement \
--attempt 1 \
--repo-commit-map '{"omniclaude": "a1b2c3d"}' \
--artifact-paths '["src/foo.py", "tests/test_foo.py"]' \
--payload '{"branch_name": "feat/OMN-2144", "commit_sha": "a1b2c3d", "files_changed": ["src/foo.py"]}'
Output:
{
"success": true,
"checkpoint_path": "OMN-2144/a1b2c3d4.../phase_1_implement_a1.yaml",
"correlation_id": "..."
}
python ${CLAUDE_PLUGIN_ROOT}/hooks/lib/checkpoint_manager.py read \
--ticket-id OMN-2144 \
--run-id a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--phase implement
Output:
{
"success": true,
"correlation_id": "...",
"checkpoint": { ... }
}
Reads the checkpoint and then performs structural validation (schema version, path normalization, commit SHA format, phase-payload agreement, timestamp sanity).
python ${CLAUDE_PLUGIN_ROOT}/hooks/lib/checkpoint_manager.py validate \
--ticket-id OMN-2144 \
--run-id a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--phase implement
Output:
{
"is_valid": true,
"success": true,
"errors": [],
"warnings": [],
"correlation_id": "...",
"checkpoint": { ... }
}
# All checkpoints for a ticket
python ${CLAUDE_PLUGIN_ROOT}/hooks/lib/checkpoint_manager.py list \
--ticket-id OMN-2144
# Scoped to a specific run
python ${CLAUDE_PLUGIN_ROOT}/hooks/lib/checkpoint_manager.py list \
--ticket-id OMN-2144 \
--run-id a1b2c3d4-e5f6-7890-abcd-ef1234567890
Output:
{
"success": true,
"count": 3,
"checkpoints": [ ... ],
"correlation_id": "..."
}
The ticket-pipeline skill writes checkpoints after each phase completes and validates them during --skip-to resume. See plugins/onex/skills/ticket-pipeline/prompt.md for the integration details.
All checkpoint operations in the pipeline context are non-blocking -- write failures log a warning but do not stop the pipeline.
ticket-pipeline skill (writes checkpoints after each phase)local-review skill (writes checkpoints after each iteration when --checkpoint is provided)omnibase_infra checkpoint nodes (OMN-2143: infrastructure implementation)