feat(middleware): Vibes-Coded trust guard — pre-settlement screening + signed action-receipts#21
Open
doteyeso-ops wants to merge 4 commits into
Open
Conversation
…erifiable accountability)
… nonexistent fields); verified mints receipt
…+ signed action-receipts Drop-in ag402 middleware that screens irreversible actions through Vibes-Coded's hosted pay-per-call guards (idempotency/spend/contract-pin/agent-state) before settlement, and mints a signed, offline-verifiable action-receipt on allow. Per LeoBchuk's direction (AetherCore-Dev#9): lands in core/ag402_core/middleware alongside budget_guard.py. Guard calls are x402 402s paid transparently by ag402's own payment middleware; commercial model is pay-per-call USDC, no seats/minimums.
Author
|
Friendly bump — this adds a pre-settlement Vibes-Coded trust guard (screening + signed action-receipts) that fits the ag402 middleware path. Happy to adjust naming/shape if you want it to match Observer/#20 conventions. Live endpoints + OpenAPI: https://vibes-coded.com/openapi.json · https://vibes-coded.com/llms.txt |
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
A drop-in middleware for
core/ag402_core/middleware(per @LeoBchuk's direction on #9) that turns Vibes-Coded's hosted pay-per-call trust layer into a first-class ag402 guard.VibesCodedGuard.screen(intent, payload):idempotency-guard,agent-state-guard,contract-pin-guard, etc.) — seeGUARD_ROUTES.action-refsuite).Why
The community framing on #4/#9 was: ag402 handles settlement, Observer (did:web identity) handles trust, Vibes-Coded provides the reliability/replay/receipt checks. This middleware is the seam where those compose — a single
screen()call gates an irreversible action on reliability + consent before money moves, then leaves an auditable receipt behind.Commercials
Pay-per-call x402 (Agent Economy > Vibes-Coded on vibes-coded.com): agents pay a tiny per-call USDC fee only when an action is actually screened — no seats, no minimums. Built so it composes with Observer Protocol's
did:webidentity check in the samescreen()pass.Test plan
payment_or_transferscreenWant this gated-by-default (screen every irreversible action) or opt-in on the first cut? Happy to adjust the default route map.