Skip to content

fix(publisher): retry one exact failed lift job - #2279

Open
branarakic wants to merge 1 commit into
codex/rfc64-swm-inventory-recoveryfrom
codex/publisher-exact-job-retry
Open

fix(publisher): retry one exact failed lift job#2279
branarakic wants to merge 1 commit into
codex/rfc64-swm-inventory-recoveryfrom
codex/publisher-exact-job-retry

Conversation

@branarakic

Copy link
Copy Markdown
Contributor

Impact

The async publisher admin boundary can now retry exactly one failed lift job by jobId. This lets the Blackbox harness recover a retryable VM publication without sweeping unrelated historical failures or submitting a second publish request.

Before

sequenceDiagram
    participant Harness
    participant Job as Failed VM job
    participant Publisher
    Harness->>Job: Poll status
    Job-->>Harness: failed and retryable
    Harness->>Harness: Keep polling until timeout
    Note over Publisher: Bulk retry selects every failed job
Loading

After

sequenceDiagram
    participant Harness
    participant API as Publisher API
    participant Job as Exact VM job
    Harness->>Job: Poll status
    Job-->>Harness: failed and retryable
    Harness->>API: Retry failed jobId only
    API->>Job: Reset exact job to accepted
    Job-->>Harness: finalized
Loading

Validation

  • Publisher queue E2E: 14 passed
  • CLI publisher boundary: 18 passed
  • Publisher dependency build: passed
  • CLI dependency build: passed
  • Diff check: passed

Live trigger

The Testnet 500/500 diagnostic run exposed a retryable VM job in failed state. The harness recognized it as retryable but had no safe exact-job retry endpoint, so it polled until timeout. The only existing API retried all failed jobs; this PR closes that safety gap.

Comment thread packages/cli/src/api-client.ts Outdated
Comment thread packages/publisher/src/async-lift-publisher-impl.ts Outdated
@branarakic
branarakic force-pushed the codex/publisher-exact-job-retry branch from a99c377 to 4c93034 Compare August 16, 2026 01:12
@branarakic

Copy link
Copy Markdown
Contributor Author

Review fixes are now in 4c93034. Exact and bulk retry are separate first-class operations; empty exact job IDs fail before HTTP; exact ApiClient serialization is covered. Validation: publisher recovery 14/14, CLI and API boundary 104/104, publisher build pass, CLI build pass, diff check pass.

Comment thread packages/publisher/src/async-lift-publisher-types.ts Outdated
Comment thread packages/cli/src/daemon/routes/publisher.ts
@branarakic
branarakic force-pushed the codex/publisher-exact-job-retry branch from 4c93034 to bcb83a9 Compare August 16, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants