Skip to content

fix: require verified GBrain write receipts - #8

Merged
irresi merged 1 commit into
mainfrom
fix/strict-gbrain-receipts
Jul 30, 2026
Merged

fix: require verified GBrain write receipts#8
irresi merged 1 commit into
mainfrom
fix/strict-gbrain-receipts

Conversation

@irresi

@irresi irresi commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • require a documented successful GBrain put_page receipt before committing a durable inbox event
  • accept created_or_updated and idempotent skipped; fail closed on malformed or unknown responses
  • classify Composio webhook authentication/replay errors using the actual typed error codes
  • keep signed malformed payloads as HTTP 400 while authentication failures return a generic HTTP 401

Verification

  • bun run check — Biome, TypeScript, 51 tests, production build
  • bun audit — no vulnerabilities
  • gitleaks git --staged --redact --no-banner — no leaks
  • targeted tests demonstrate RED before implementation and GREEN after

Scope

No Composio, Gmail, GBrain data, trigger, OAuth, or deployment configuration changed.

@irresi
irresi enabled auto-merge (squash) July 30, 2026 15:56
@irresi
irresi merged commit ec908fa into main Jul 30, 2026
2 checks passed
@irresi
irresi deleted the fix/strict-gbrain-receipts branch July 30, 2026 15:56
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.

1 participant