campaigns: store the state after every transition so `offing campaign run` resumes after a crash without repeating work

Open
#1,002 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, node.js, typescript
Domain
backend, cli

Research direction

Review the contribution guide, then inspect src/campaign/, src/commands/campaign.ts, and src/mcp/tools/campaign-status.ts; use the full file scope and public release check linked from #375. Check prerequisite issues #521 and #1000 before starting. Done when an interrupted run reuses persisted artifact and PR IDs without repeating completed transitions, and the focused checks produce an observable result for acc-campaigns.

Written by the indexing model from the issue text.

Description

area: core lane: strong-agent priority: P0 roadmap type: task

Work

Store the state after every transition so offing campaign run resumes after a crash without repeating work.

Starting point

Review Offing’s contribution guide. Start from src/campaign/, src/commands/campaign.ts, src/mcp/tools/campaign-status.ts. The tracker in #375 links the full file scope and the public release check.

Prerequisites and dependencies

  • #521 — add schemas/campaign.v1.schema.json and schemas/campaign-state.v1.schema.json with valid and invalid vectors.
  • #1000 — run in batches with a size, a concurrency limit and a minimum gap between batches, and respect content-creation rate limits.

Acceptance criteria

  • Interrupt after a persisted transition and restart. Verify the recorded artifact and PR IDs are reused and completed transitions are not repeated.
  • Run the focused checks for the affected path and capture the observable result for acc-campaigns.

Roadmap task · Epic #375

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
1h 26m
Merged PRs (30d)
73

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from velella-sh/offing

All issues in velella-sh/offing

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.