Skip to content

feat(skills): add background-work-and-delivery - #701

Closed
DanielMcSheehy wants to merge 1 commit into
addyosmani:mainfrom
DanielMcSheehy:feat/background-work-and-delivery
Closed

DanielMcSheehy wants to merge 1 commit into
addyosmani:mainfrom
DanielMcSheehy:feat/background-work-and-delivery

Conversation

@DanielMcSheehy

@DanielMcSheehy DanielMcSheehy commented Oct 17, 2026 •

Copy link
Copy Markdown

What this adds

A Build-phase skill, background-work-and-delivery, for code that runs more than once: queue consumers, webhook handlers, scheduled jobs, and outbox publishers.

The workflow is claim, effect, record, then ack. It covers where the acknowledgement sits, how an outbound message shares a transaction with the state change, how timeouts stay unknown instead of becoming a new attempt, how poison messages are capped and dead-lettered, and the six tests that show a second delivery does not apply the effect again.

Why this isn't covered by an existing skill

api-and-interface-design already owns the HTTP idempotency contract: unique claim, payload hash, in-flight duplicates, and retention longer than a dead-letter replay. This skill points at that section and does not restate it. What that section does not specify is the consumer around the claim.

  • The ack, delete, or "mark processed" has to come after the outcome is committed. Ack-first loses the message; effect-then-ack without a durable claim double-applies after a crash.
  • A row commit and a broker publish are not one operation. The outbox row is what survives the gap.
  • A timeout after the bytes were sent is unknown. Retrying it under a new id is a second effect.
  • A cron's identity is the period or the entity, not the wall-clock start. A second replica has to exit.
  • The proof is six deliveries (sequential, crash-before-ack, overlap, timeout, permanent failure, payload mismatch), not a single happy-path test.

Neighbors that stay neighbors:

  • observability-and-instrumentation decides which signals to emit once the semantics are fixed.
  • debugging-and-error-recovery finds why a duplicate already happened.
  • security-and-hardening authenticates the webhook before this skill runs.
  • deprecation-and-migration batches schema backfills. That is not a message handler.
  • test-driven-development is how the six tests get written. This skill names which cases have to exist.

I checked open PRs. The closest is #512 (partial outcomes when a dependency stalls at design time). It says what to specify when a call does not finish. It does not say how a consumer records that unknown and refuses to ack. #687, #566, #523, #492, and #429 are sandbox permissions, a task ledger, skill supply-chain audit, schema design, and repository memory. None of them are delivery.

evals/skill-impact.md has no rejected rows. Closed proposals #540, #520, and #386 were vendor products or generated infra packs. This skill names no broker, provider, or product.

CONTRIBUTING asks for the gap in the PR description. It does not require a linked issue for a new skill, and recent skills (#472, #223, #164) merged without one.

Validation

node scripts/validate-skills.js                 # 26 skills and 4 personas, 0 errors, 0 warnings
node scripts/validate-reference-links.js        # 26 skills, 0 errors
node scripts/validate-versions.js               # all manifests 0.6.13
node scripts/validate-commands.js               # 9 commands, 0 errors
node scripts/validate-artifact-paths.js         # 14 files, 0 errors
node scripts/run-evals.js --min-rank1 95        # 151 checks passed, rank-1 100% (96/96)
node --test scripts/*-test.js scripts/lib/*-test.js
                                                # 213 passed, 0 failed
bash hooks/session-start-test.sh                # session-start JSON payload OK

The fixture's own node --test passes its single happy-path case. That case is the bug the behavioral eval is supposed to outgrow: one delivery, ack not yet proven against a redelivery.

Routing negatives are owned by api-and-interface-design, observability-and-instrumentation, and security-and-hardening, so a contract, a telemetry, or an audit prompt does not land here.

Also updated

  • using-agent-skills router and quick reference
  • README catalog and skill counts (25 → 26), plus the same count in the setup docs and the Codex manifest
  • Skill-gap issue form, so the new skill can be selected

Consumers, crons, and outbox publishers need a delivery order the HTTP idempotency contract does not specify: claim, effect, record, then ack.

Co-authored-by: Cursor <cursoragent@cursor.com>
@addyosmani

Copy link
Copy Markdown
Owner

Thanks, this is careful work and the fixtures are good. I'm going to pass on adding it, though. Idempotent consumers and outboxes are a real topic, but they're backend architecture rather than a workflow every team needs from an agent, and I'm keeping the catalog small ahead of 1.0 (I closed #752 and #609 for the same reason). It would make a good standalone skill that installs with the skills CLI. Closing.

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