feat(poll): add persisted Drive and Docs polling#751
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 11, 2026, 10:29 PM ET / 02:29 UTC. Summary Reproducibility: not applicable. as a bug reproduction; this feature has focused API-path tests and an exact-head live Google E2E report covering delivery, hooks, persistence, and duplicate suppression. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Ship the focused polling commands with their current atomic versioned state, at-least-once delivery, sequential stdin hooks, and explicit single-writer and trusted-command documentation once maintainers accept those interfaces and exact-head required checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; this feature has focused API-path tests and an exact-head live Google E2E report covering delivery, hooks, persistence, and duplicate suppression. Is this the best way to solve the issue? Yes. The PR reuses established Drive and Docs API primitives and adds a narrow persistence and orchestration layer rather than creating a competing provider path; maintainer acceptance of the public state and hook contracts remains appropriate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3f653c724656. Label changesLabel changes:
Label justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
bebd261 to
b1e5d49
Compare
|
Maintainer verification on rebased head
Waiting for exact-head GitHub CI before merge. |
Closes #690.
Summary
gog drive changes pollwith atomic persisted page-token state, optional file filtering, bounded iterations, and sequential batch hooksgog docs comments pollwith an inclusive-safe modified-time watermark, sequential per-comment hooks, and resolved-comment filteringdrive changes list --allso terminalnewStartPageTokenis returned instead of followed as another pageBehavior decisions
changes.startPageToken; missing/empty Docs state starts at the current time, avoiding existing-history replayVerification
make ci0600, filtering, NDJSON, deterministic hook order, inclusive timestamps, excluded resolved comments, hook retry, and cancellationA real Google smoke with
clawdbot@gmail.comwas attempted using the configured file keyring and--no-input. The account could not be unlocked becauseGOG_KEYRING_PASSWORDis unavailable in this shell. No GUI/keychain prompt was triggered. The local HTTP API tests exercise the real Drive client request/response path and hook/state behavior.