oficina / docs Public

Docs native: rastrillo/native a18c32b (stale grant-ended fix) open

On branch native/kit-a18c32b

Moves Docs' pin of the shared sign-in kit from 1e36aac9 to a18c32b3.

Why. Codex GPT-6-Astra, reviewing Equipo's adoption of the same kit, found that a late grantEnded could remove a newer sign-in of the same identity. That happens in the same app (a team refresh outstanding across sign-out and sign-in) and across apps (Sheets re-signing the identity before Docs hears of it), and it signed both apps out. Docs pinned the same revision, so it had the same bug.

The kit fix (rastrillo/native fix/refresh-teams-stale-grant-ended, landed as a18c32b after four Astra rounds; Paul approved landing with kit CI matching main's three pre-existing failures):

  • grant-ended handling is bound to the model's epoch and to the grant the call used;
  • identity keychain items are stamped with their grant ID (kSecAttrComment), and removal or relabel is conditional on the stamp in one keychain call;
  • older unstamped items change only by persistent reference;
  • unreadable records are kept.

This branch only moves the revision in Package.swift, Package.resolved, both project.yml files and notices provenance (the kit's LICENSE is unchanged), and regenerates Colophon.json with go run ./cmd/docs-colophon. Docs uses only the kit's own keychain and memory stores, so the new OficinaSecureStore requirements behave as intended.

Checks. native/scripts/check-native.sh and go test ./internal/shipped pass locally; CI passed at 759122a7. Fable 5.2 review pending.