Repository navigation
fix(googlechat): prevent oversized attachments from blocking durable ingress - #118986
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:02 PM ET / 22:02 UTC. ClawSweeper reviewWhat this changesThe branch marks oversized Google Chat attachment downloads as permanent size failures, preserves the message caption with an unavailable-media notice, and lets later messages in that durable conversation lane run. Merge readinessKeep this PR open for the explicit maintainer landing decision required by its protected Priority: P1 Review scores
Verification
How this fits togetherA Google Chat webhook is durably admitted per account and space before the plugin processes its message and attachment. Attachment download results become inbound media facts and an agent turn, so a permanent media-size failure must be handled after authorization without leaving the queued conversation blocked. flowchart LR
A[Google Chat webhook] --> B[Durable per-space queue]
B --> C[Google Chat monitor]
C --> D[Attachment download]
D --> E{Media result}
E -->|Usable| F[Inbound agent turn]
E -->|Too large| G[Caption plus unavailable notice]
G --> F
Decision needed
Why: The patch has no concrete correctness blocker, but the Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +20, Tests +230. Total +250 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge the narrow producer-to-monitor repair: retain generic retries for network/auth/download failures, adopt only the typed size-limit failure after authorization, and preserve the SQLite lane-recovery regression coverage. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main emits generic errors for both size-overflow producers, while the durable ingress monitor only treats explicit permanent failures as non-retryable. The branch’s focused SQLite regression directly models the blocked-lane sequence without executing repository tests in this read-only review. Is this the best way to solve the issue? Yes. Classifying the known permanent failure at the Google Chat media producer and handling it after authorization is safer than teaching the shared queue to infer failure text, and it preserves retries for all non-size failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 65fa1f9a7bd1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (90 commits) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) feat(sms): add Twilio MMS support (#118664) test(gateway): prove TLS certificate pinning (#118812) test(qa): cover tool policy and sandbox gates (#118925) fix(cli): keep update dry-run state immutable (#118856) fix(scripts): honor last repeated CLI flag value (#118710) ... # Conflicts: # pnpm-workspace.yaml
…r-admin-20260803 * origin/main: (89 commits) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) ...
…ansports-20260803 * origin/main: (120 commits) test(ui): add service-worker update primary QA proof (#118805) test(qa): cover CLI onboarding and plugin install sources (#118882) test(qa): cover remote logging boundaries (#118951) fix(sms): retry transient MMS failures before durable adoption (#118994) test(qa): cover video generation invocation (#118864) test(qa): cover media reference intake (#118858) test(qa): cover image generation task lifecycle (#118915) feat(sms): track Twilio delivery status (#118665) test(tasks): cover TaskFlow registry lifecycle (#118983) test(gateway): verify SSH tunnel fallback (#118818) fix(security): harden network tool output at canonical owner boundaries (#118984) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) ...
Root cause
Google Chat attachment download raised an untyped permanent failure for either an oversized Content-Length header or streamed body. The shared durable per-space ingress queue then retried the impossible message and prevented all later messages in that conversation from running until the 24-hour dead-letter threshold.
Canonical owner-boundary repair
MediaFetchError("max_bytes")contract.Real behavior proof
{ "transport": "real Google Chat ingress through actual per-account SQLite durable queue", "before": { "oversizedAttachment": "permanently retried", "laterSameSpaceMessage": "blocked", "retryHorizon": "at least 24 hours" }, "after": { "oversizedAttachment": "accepted once with existing safe media-unavailable notice", "originalCaption": "preserved", "laterSameSpaceMessage": "processed", "pendingEvents": 0, "outstandingClaims": 0 }, "oversizeProducers": [ "Content-Length", "streamed body" ], "transientFailures": "still retry", "authorization": "completed before permanent-error adoption" }monitor.test.ts,monitor.lifecycle.test.ts, andtargets.test.ts: 74/74 passed, including real SQLite poisoned-lane recovery and merged webhook-readiness coverage.