campaigns: stop the campaign automatically when the failure rate of the last batch passes the configured limit, and print why

Open
#1,007 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
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, typescript
Domain
backend, cli

Research direction

Review the contribution guide, then read src/campaign/, src/commands/campaign.ts, and src/mcp/tools/campaign-status.ts; use tracker #375 to find the full file scope and public release check. First resolve prerequisites #1000 and #1002, then trace how campaign batches track failures and transitions. Done when a boundary test confirms the next batch stops above the configured failure limit, the summary reports both values, and focused checks capture the 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

Stop the campaign automatically when the failure rate of the last batch passes the configured limit, and print why.

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

  • #1000 — run in batches with a size, a concurrency limit and a minimum gap between batches, and respect content-creation rate limits.
  • #1002 — store the state after every transition so offing campaign run resumes after a crash without repeating work.

Acceptance criteria

  • Test the boundary of the allowed failed fraction. When exceeded, the next batch does not start and the summary gives the measured and configured values.
  • 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.