claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
A customer running apps on the flagship needs a data processing agreement (GDPR Art. 28). Today the privacy policy says to email privacy@ for one. Paul asked (2026-11-25) for it to be built into the platform instead, and for every promise the policy and the DPA make to be built rather than kept by hand. Customers also set their own retention: indefinite by default, changeable for the whole account or per app.
Spec (rev 1): docs/superpowers/specs/2026-11-25-dpa-and-retention-design.md on this branch.
Decisions in the spec, open to Paul:
No approval step. Owners accept the standard DPA; the operator page is a read-only list. Negotiated DPAs stay outside the platform.
Only owners accept, behind step-up auth, like billing changes. Any member can view and print the record.
Logs: shorten only. Visitor statistics follow "indefinite by default" exactly. Logs and errors can be shortened, but not kept longer than the box's retention (7 days / 50 MiB per app per box on defaults), because longer logs are an uncharged storage cost. Longer log retention is the #1024 archive tier.
The 400-day statistics promise is withdrawn from the privacy policy, replaced by "as long as the app's owner chooses". The change goes out as a new policy version with 30 days' notice to owners.
Printable record, not a generated PDF. The console has no PDF renderer of its own.
Request records, mail events and backups keep their fixed retention.
Gaps the work closes: there is no way to delete a person today (the policy promises within 30 days), and no way to give owners 30 days' notice of a policy change (the policy promises that too).
DPA text: boilerplate for the flagship, drafted from what the platform does (AWS and Stripe as subprocessors; Ireland, London, Virginia, Sydney; SCCs outside the EU and UK). It needs a lawyer's read before it is relied on. It goes through copy review in the carloku repo.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Astra round 1: NOT READY, 4 P1 and 10 P2, all accepted. Spec rev 2 (f8c67930) answers each one. Round 2 is running.
The findings that matter beyond the spec:
Request records are not deleted after 7 days today, although the live privacy policy says they are. The box prunes chunks with a plain delete in the versioned deployment bucket, so each pruned chunk lives on as a noncurrent version forever, and chunks from retired boxes are never pruned. Rev 2 fixes this with a console-side sweep that deletes every version, for live and retired boxes alike, across analytics, logs and errors. The box change and its census are gone.
Mail events are pruned only when another mail event arrives, so an idle sender keeps them past 30 days. Rev 2 prunes hourly.
Logs and statistics are kept in the deployment bucket (Ireland on the flagship) whatever region the app runs in. The DPA text has to say so. Its draft (carloku branch dpa-page) says data stays in the app's region, and needs a fix before approval.
DPA versions take effect per account: 30 days after that account's notice was delivered, never just 30 days after publishing.
A deleted person could have a CLI token minted afterwards by a login they had already approved. Rev 2 makes issuance check that the person still exists.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Astra round 2 (CODEX-FINDINGS-dpa-and-retention-R2.md): NOT READY, 3 P1 and 5 P2. Eleven of round 1's 14 are resolved.
Stopping rule 2 applies. Two P1s are in a fault family for the second round running, so I am not writing a third fix without Paul's choice:
Deletion must revoke the authority to issue credentials (R1-2). An email sign-in that has consumed its code before the deletion commits can recreate the user when it resumes, because ResolveSignIn creates missing users (signinmethods_store.go:93).
A change must not apply before its notice (R1-4). For terms and privacy the console cannot hold back the website, so "explained" failures still let a change apply early.
A new P1: deleting an app that has an object store or email service never finishes on its own. The trash sweep refuses those apps (lifetimes_purge.go:236), and only the Trash page's manual purge tears them down (ownership.go:625). So the 30-day deletion promise fails if the customer just deletes and walks away.
P2s to fix without another round: console backups really last about 15 days, not 8, because console.db snapshots are kept 7 days (lease.go:95), so the live privacy policy is wrong there too; "always within a week" for the sweep is unenforced; the census still applies because internal/analytics is in the root binary; acceptance must bind the document id and digest the owner saw; incident notices need their own uncapped send path.
Paul also asked (2026-11-25) for the record as a PDF on headed paper. Rev 3 will add it, rendered by the PDF engine.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Flagship letterhead values, from teamtito.com (Paul: "get all that from teamtito.com", 2026-11-25). They go in the letterhead form at switch-on, not in code:
Entity: Team Tito Limited
Address: 27 Frederick Street South, Dublin D02 T254, Ireland (the site's footer address; it doesn't say it is the registered office)
Company number: 566334; VAT number: IE3384527RH (rev 4 adds an optional VAT field)
Branding: Team Tito. The site's header is the text "Team Tito", not an image, so the letterhead renders the entity name as a wordmark when no logo is set (rev 4 makes the logo optional).
Signatory: "For and on behalf of Team Tito Limited". The site names Paul as Co-founder and CEO without a surname, so a named signature waits for Paul.
DPA copy: approved by Paul with no edits. carloku branch dpa-page (32fd... see branch page), not deployed until switch-on.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Astra round 3 (CODEX-FINDINGS-dpa-and-retention-R3.md): NOT READY, 3 P1 and 5 P2. The round budget is spent, and all three P1s are in families from earlier rounds, so this goes to Paul (stopping rules 1 and 2).
Deletion vs in-flight sign-in (R1-2, third round). A Keymail sign-in keeps its attempt only in a browser cookie (server.go:3859), so there is no trusted start time for the identity gate. And the email-code HMAC key changes on every restart (store.go:87). Proposed cut: a plain cooldown. No identity is created for a deleted address for 1 hour, which is longer than every sign-in attempt lives (email code 15 min, authFlowTTL 10 min, CLIAuthTTL 10 min). It is enforced in the one gate, and the marker is keyed by the persistent signing key.
Notice before change (R1-4, third round). The first privacy row skips notice, but a policy is already live. Proposed fix: refuse it up front. The first terms or privacy row must record the policy already in force as a baseline, and every change after that is noticed.
Deleting an app never deletes its database backups (R2-3, third round). This is the big one. Replicas at instances/<host> and moves/<host>/ are left behind by design when a record is deleted (createleftovers.go:1-22, discussion #199: "the full fix is being designed separately"). The data bucket never expires current objects, so a deleted app's last database lives on indefinitely, today, for every customer.
P2s (fixed without another round): stopped console replicas need their own cleanup; the notice audience needs a cohort snapshotted at publish; the effective date must be max(published + 35 days, last delivery + 30 days); the letterhead id must be bound like the document, and the owner must see the stored agreement, with its canonical bytes hashed; the UI slices need the mockup-kit UX pass and copy review before build.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Paul's round 3 rulings (2026-11-25), now in spec rev 4 (12a744b6):
Deleted apps' database backups are split out to #199's "full fix". Until it lands, the DPA promises them deleted on request within 30 days, through a new operator action on /fleet/legal (§6.6).
Re-sign-in after deletion: a 1-hour cooldown in the one identity gate (§6.2).
The first terms or privacy row records the policy already in force; every change after it is noticed (§3.1).
A short, targeted round 4 is approved, limited to what rev 4 changes. It is running now.
The approved DPA copy said backups go within 30 days, so that one string is back in copy review.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Slice 1 (DPA acceptance) status: all 8 plan tasks done, each reviewed (Opus or Sonnet per task, Opus on every security boundary). Whole-branch Astra review: round 1 NOT READY (3 P1, 4 P2, all fixed in one wave), round 2 READY. CI first failed (a print class on the shared header, three census lists); fixed, and an independent Astra check of the census and pinned-bytes changes found nothing. CI passed at d19d8974.
Before merge: Paul's approval of one string, DPA-C98 "Too many requests. Wait a minute and try again."
Follow-ups recorded, not in this merge: fetch-error categories, removing a logo, a cap on stashed forms, one mixed-quote case in the SVG check, U+2028/U+2029 in single-line fields, a test for the short-digest guard.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Slice 1 merged: 9553905 on main (squash of dpa-and-retention at d470b73e, CI green there after merging main in). Branch kept for the later slices.
Not live anywhere until a release and roll. On the flagship it stays dark until the letterhead is set and a DPA is published at /fleet/legal (slice 6, Paul's go). Dev witness after the next dev roll: set a letterhead, publish from a dev-hosted fragment, accept from a test account, see /fleet/legal, open the record.
Next: plan 2, the PDF on headed paper (spec section 3.8).
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Follow-ups merged: 7a4e16e (all six). Paul ruled on the stash cap after two rounds in one fault family: an oversized form is never parked and no action is applied.
v0.43.8 released and rolled to dev only: tag f366fb7c, at main 95539056. Apt and the flagship were not touched.
Dev witness: waiting on Paul. Publishing and accepting both need a step-up that an agent can't do. - A test copy of the approved DPA is at https://tmp-psvjb3.bac.dev.oncarlos.com/dpa/1/, with the agreement at .../dpa/1/agreement.html. It is a temporary app (30 days) in dev account paul.
carloku dpa-page 470c73e: agreement.html links are now absolute. The fragment is rendered inside the console, where /terms/ would point at the console.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Dev witness: done by Paul 2026-11-26 on v0.43.8 (letterhead set, DPA v1 published from the tmp copy, accepted from a test account, record page and /fleet/legal checked).
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
Slice 2 (PDF on headed paper) is merged: 631f225 on main. Copy and mockup were approved by Paul, each task was reviewed, and Astra's whole-branch review came back READY AFTER FIXES; the fixes are in. CI is green.
Not released. The dev witness happens after the next dev roll: a member downloads the PDF for the account Paul accepted on 11-26, and every page gets checked, including the header with the logo and the entity.
Deferred follow-ups:
tests at exactly the 10 MiB cap and for a rejected engine URL
the mutable test deadline seam
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
v0.43.8 is fully rolled to the flagship (2026-11-26, 16:58Z), carrying DPA acceptance (slice 1).
Rolled: apt, every flagship box (including kepler, whose /etc check Paul ran), both US members, the console and bootstrap. Re-pin is carloku-infrastructure #73. Nothing was refused and nothing errored.
On carloku.com: acceptance stays dark until a letterhead is set and a DPA is published at /fleet/legal (slice 6, Paul's go).
Next: v0.43.10, carrying the PDF, rolls to dev for the PDF witness.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 260ddc60 · claude-code/2.1.321 · DOCS-T1
v0.43.10 is published and rolled to dev only. Tag bbbe3161 at main 62d4828c. It carries the DPA PDF (slice 2), and CARLOSPDFADDR is set on dev, so the download is live there.
Next is the PDF witness by Paul: any member of the test account opens its DPA record page, downloads the PDF, and checks every page, including the header with the logo and the entity.