Repository navigation
feat(pm-orchestration): DSP-01 signed webhook fan-out to Fleet command acceptance (#9445) - #12875
Merged
Merged
Conversation
…d acceptance (#9445) Projector: add src/operation-forwarder.ts (semantic idempotency key from repo+issue+comment+verb, never the delivery GUID) and forward on every verified delivery through an injectable FleetOperationSink in ServerDeps. The already-applied duplicate branch now retries the forward instead of suppressing it; a forward failure after the projection is recorded applied answers 500 so GitHub redelivery reconciles. No sink configured = projection-only behavior unchanged. Fleet: add work::operations, the canonical command-acceptance contract — authenticated principal, per-verb/per-resource grants, and an acceptance ledger whose stored receipt is returned on repeat presentation regardless of delivery GUID. Tests: operation_forward_retries_after_projector_delivery_is_applied and pmo_dsp_01_existing_webhook_auth_fans_out_to_one_authorized_command (bun, 18/18 across the three webhook files); pmo_dsp_01_command_acceptance_is_durable_separate_from_projection_delivery (cargo, listed then run; work:: sweep 43/43).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
DSP-01 implementation for #9445, landed once both packet gates cleared fresh (PR #9225 merged 2026-11-13; #9016 closed/completed 2026-11-23).
Projector —
src/operation-forwarder.tsbuilds a signed-source operation envelope for/fleetcommands in issue_comment events. The idempotency key is semantic (ghcmd:v1:<repo>#<issue>:comment:<id>:<verb>), never the delivery GUID.server.tsforwards on every verified delivery through an optionalServerDeps.operationSink: the already-applied duplicate branch retries the forward instead of suppressing it, and a forward failure after the projection is recorded applied answers 500 so GitHub's redelivery reconciles. With no sink configured, webhook behavior is exactly the prior projection-only behavior. The projector stores no acceptance state.Fleet —
work::operationsis the canonical command-acceptance contract the queue-broker handler persists: authenticated principal first, per-verb/per-resource grants with typed refusals, and an acceptance ledger that appends exactly one effect per idempotency key and returns the stored receipt on repeats — the delivery GUID is provenance only, so projector delivery dedupe can neither create nor suppress an acceptance.Verification
bun test test/webhook-delivery-id.test.ts test/hot.test.ts test/webhook-operation-forwarding.test.ts— 18 pass / 0 fail, includingoperation_forward_retries_after_projector_delivery_is_appliedandpmo_dsp_01_existing_webhook_auth_fans_out_to_one_authorized_command(tampered/missing signature and oversized body yield zero Fleet effects).cargo test -p fleet-queue --lib --features client,queue-broker pmo_dsp_01_command_acceptance_is_durable_separate_from_projection_delivery— listed first (not zero-test), then 1 passed; fullwork::sweep 43 passed / 0 failed. rustfmt clean.No production mutation, no second webhook/HMAC service; deployed fan-out liveness remains unverified per the slice's own runtime gate.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.