Repository navigation
M5.5 Phase 6: replay a Gmail write session - #48
Merged
Merged
Conversation
The UIDs and hrefs of new contacts, events and tasks, and the new names that restores and splits take, come from Deps.NewUID, else random UUIDs as before. A replay test gives the names a recorded session used, so its PUTs go to the recorded paths. Restore IDs never reach a server and stay random. Co-Authored-By: Claude Opus 5.5 <[email protected]>
internal/davsession scripts the session: a single event made, moved, deleted and restored; a daily series changed in each scope, This Event restored at once; an all-day event; a contact changed, given a photo, deleted and restored; then everything deleted. Each step is one write and the pass that sends it. tools/davsession recorded it against the throwaway Gmail account into a new store, on a stopped clock, and davrec scrubbed the trace. TestGoogleWriteReplay replays it exchange by exchange. TestGoogleSessionOnDavtest runs the script against davtest, so a broken script fails before it reaches Google. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 13, 2026
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.
M5.5 Phase 6 (plan 0009), the part that can land now: a Gmail write session recorded and replayed in
make check. The phase itself finishes after the week of your own edits with verify clean (through 2026-10-21). A daily read-only verify is scheduled for that week.Scope
On your choice, there is no iCloud recording. The repo is public, and a scrubbed trace still keeps dates and counts, while the only iCloud account is yours. Only the throwaway Gmail account is recorded. The plan's done-when now says "Google's write session replays".
Changes
engine.Deps.NewUIDnames the objects maild creates: the UIDs and hrefs of new contacts, events and tasks, and the names that restores and splits take. Without it, names are random UUIDs, as before. Restore IDs stay random.internal/davsessionscripts the write session. Each step is one write through the engine and the pass that sends it:It finds what it made again by times and IDs, which scrubbing keeps, never by names.
tools/davsessionrecords a script against the provider as one of maild's accounts:# recordedline.The trace:
testdata/replay/google-writes.tracewas recorded 2026-10-15 against the throwaway and scrubbed withdavrec. Google answered all 208 requests as expected (including its CardDAV 400 on a sync without a token), and the session deleted everything it made.Tests:
TestGoogleWriteReplayreplays the trace exchange by exchange on the recording's clock, withNewUIDtaking the names of the recording's creating PUTs.TestGoogleSessionOnDavtestruns the script againstdavtest, so a broken script fails before it reaches Google.Docs:
docs/design/testing.mddescribes scripted write sessions, and plan 0009 records Phase 6's scope and evidence so far.Tests
make checkpasses.Also
davrecleft one location in the trace, "Room 4", because ROOM is an iCalendar word (aCUTYPEvalue). It's the session's own text, so nothing personal leaked, but text made of such words passes the scrubber.🤖 Generated with Claude Code