Repository navigation
feat(skills): add background-work-and-delivery - #701
Closed
DanielMcSheehy wants to merge 1 commit into
Closed
DanielMcSheehy wants to merge 1 commit into
DanielMcSheehy wants to merge 1 commit into
Conversation
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>
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-designalready 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.Neighbors that stay neighbors:
observability-and-instrumentationdecides which signals to emit once the semantics are fixed.debugging-and-error-recoveryfinds why a duplicate already happened.security-and-hardeningauthenticates the webhook before this skill runs.deprecation-and-migrationbatches schema backfills. That is not a message handler.test-driven-developmentis 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.mdhas 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
The fixture's own
node --testpasses 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, andsecurity-and-hardening, so a contract, a telemetry, or an audit prompt does not land here.Also updated
using-agent-skillsrouter and quick reference