oficina / docs Public

Import a .docx, with an optional Google Drive chooser open

On branch feat/google-import

Import a .docx, with an optional Google Drive chooser

Branch feat/google-import, cut from origin/main 7d218bd. Spec: estilo implementation/google-drive-import.md, reviewed by Claude Fable 5.1 (claude-fable-5-1) with B1–B5/R1–R5 incorporated. The shared chooser is estilo googleimport, merged at estilo main 7a19588 (oficina/estilo #31) and pinned here at that commit.

What the branch does

  • Core (ABI 5). docs_core_build writes a document from a closed instruction list: paragraphs, headings with a level, and text runs whose marks are rows of fragment.rs's MARKS table. The whole list is checked before anything is written, then written in one transaction. The output matches what y-prosemirror writes, including a numeric heading level. The builder refuses to write under a client id above 2^53−1, which lib0 cannot decode. Runtime.Build, EncodeBuild. The wasm is rebuilt with the canonical Docker build.
  • Reader. docx.Import is a bounded token walk that replaces the old paragraph/font reader. It descends into hyperlink, table/row/cell (including nested tables), ins/moveTo, sdt, smartTag, customXml and fldSimple. It leaves out del/moveFrom, follows the style cascade with w:val toggles, turns tabs into spaces and breaks into paragraphs, and never reads relationships. Bounds: 1000 entries, duplicate names refused, 32/64 MiB of bytes actually decompressed, depth 256 counted on every element, DTDs refused, and 10,000 blocks / 40,000 runs / 2 MiB of text out. The report is closed metadata only (codes, counts, paragraph numbers); no source text and no face names.
  • App. GET/POST /import (member-only, scriptless multipart, no disk spill). The conversion is checked by replaying the update into a second handle and comparing its structure with what the reader produced. Store.CreateImported writes the row, the sealed update 1 and the sealed report in one transaction, with membership checked inside it and creation-token idempotence. Imports are refused until content sealing is activated. Reports use their own AAD kind byte (4) and are covered by the sealing migration and census (migration 0009). The report shows on arrival (?imported=1) and reopens at /d/{sqid}/import-report. Google config: DOCS_GOOGLE_CLIENT_ID/API_KEY/APP_ID, all three or none; partial config refuses to boot. The policy is extended on the import page only, with no COOP header.

Fixture provenance — stated plainly

  • No real Google Docs export has been supplied. Every .docx fixture on this branch is synthesized OOXML written in Google's shapes, and the tests say so. Agreement with Google's actual export is unproven beyond those shapes.
  • No live Google consent or export has been run. Paul chose to configure Google Cloud after this branch is reviewed. Google config stays off; the browser flow uses controlled Google responses, which prove the integration's behaviour and not live consent.
  • Old-reader regression: 11 of the 13 regression cases failed when run against the removed reader (its Read at 056b94d).

Ready for whole-branch review

  • Tip: b805ac42679bcd296e03754ed0f855c922d87928 (pushed; origin/feat/google-import matches)
  • Base: origin/main 7d218bdd3cc2406583c1a3e3bf3a44cefb31ed65 (merge-base; main has not moved)
  • Commits: 056b94d core builder (ABI 5) · 25fc493 bounded reader · e877ead closed report metadata + style cascade · be64677 app integration + chooser · 9adc935 sealed-only imports + route tests · b805ac4 US-English catalog + reader limits
  • estilo: pinned at main 7a19588 (googleimport, reviewed and merged in oficina/estilo #31)

Gates

  • Remote CI at b805ac4: passed. amadan ci status oficina/docs -branch feat/google-import exited 0. At 9adc935 it failed only TestTheCatalogIsWrittenInUSEnglish (colours/centred/colour), which b805ac4 fixes.
  • Local .amadan/ci.d/10-gate (at 9adc935). Passed: every fixtures node test, the editor bundle freshness check, rust fmt, clippy, the canonical Docker wasm build, the cargo tests, embedded wasm = fresh build, and wire compatibility in both directions. The Go step failed on four things: - The builder limit test overran its time limit under load. Fixed in b805ac4; reason below. - The catalog spelling. Fixed in b805ac4. - internal/shipped, environment only: this Mac's Homebrew Go 1.27.3 has no LICENSE file, and Homebrew rustc 1.92 is not the pinned 1.98. - cmd/docs unix-socket tests, environment only: macOS's long /var/folders TMPDIR runs past the socket path limit.
  • Local go test ./... at b805ac4 (short TMPDIR, DOCS_REQUIRE_WASM=1): passed, except internal/shipped (environment, as above) and one load flake, TestStoppingWithAnEditorOpenExitsAtOnce (6.4 s under the full parallel run). That test passed three times in a row alone, and this branch touches neither shutdown nor the stream hub.
  • Browser: the parent session's TestGoogleImportBrowserCreatesAnEditableDocument (-tags browser) passed in Chromium and WebKit, with sealing activated through MaintainContent and raw DB+WAL scans after real imports and edits. Google responses there are controlled, not live.

Artifacts

  • wasm: rebuilt. internal/core/testdata/docs_core.wasm is ABI 5, built by the canonical Docker build, and the gate's cmp against a fresh build passed.
  • Editor bundle: not rebuilt, not changed. No editor source changed and the gate's freshness check passed. The import UI is server-rendered: a server-opened <dialog> closed by method=dialog, with no script.

Reader limits: why they were lowered (measured)

The old limit was 10,000 blocks / 40,000 runs / 2 MiB of text. At that limit, replaying the built update took about 0.2 s in isolation. Under the full gate's parallel load it went past the existing 1 s guest-call limit (TestBuildAtTheReadersLimitFitsTheCallTimeout: "apply trapped or timed out"). Every later opening of an imported document replays it under that same limit, so 5× headroom was not enough.

The reader now stops at 5,000 blocks, 10,000 runs and 512 KiB of text: a quarter of the work, still about a 300-page document. The test holds the new limit to the same budget. Build alone gets 5× the call limit, because its instance is always thrown away.

Deploy caveat: ABI 5 and snapshots (no data loss)

Every existing doc_snapshots row was written by ABI 4. newestSnapshot selects only rows with abi_version = the core's, so after deploy those rows are ignored, not deleted: every document's update log stays complete and authoritative.

  • Until a document gets a new snapshot, each open rebuilds it from its full update log. reseedForReplay already handles logs past the 4096 retained updates. A long document's first opens therefore cost more.
  • A fresh ABI 5 snapshot is written on the next write to that document once at least 256 updates have accumulated since its last usable snapshot (ApplyUpdate, snapshotCadence), not merely on opening. writeSnapshot then removes that document's superseded rows.
  • Earlier ABI bumps behaved the same way.
  • Rollback (not verified): migration 0009 is additive, and I have not checked whether an older binary boots on a database whose migration ledger has a migration it doesn't know.

Fixture provenance and open gaps

  • No real Google Docs export has been supplied. Every .docx fixture is synthesized OOXML in Google's shapes, and each test file says so. Agreement with Google's real output is unproven beyond those shapes.
  • No live Google consent or export. Paul chose to configure Google Cloud after review. DOCS_GOOGLE_* stays unset and nothing has been deployed.
  • Old-reader regression: run against the removed Read (at 056b94d), 11 of the 13 regression cases failed. The other two guard the new walk.
  • Mutation-checked: - builder: string level, empty text, explicit-off inheritance; - interop: an unsafe 63-bit client id. Its first run was stopped by the test's own id assertion before Node ran; the run with that assertion disabled was not done.
  • Not mutation-checked: the report kind byte and the unsealed refusal. That run was stopped partway; the tree was restored from HEAD and the tests rerun green.

Earlier review concerns, resolved

  • Style-level bold/italic (e877ead). Bold and italic now flow through docDefaults → paragraph style chain → character style (w:rStyle) → run, as tri-state toggles, so an explicit off nearer the run wins. Underline, strike, colour, highlight, raise and caps carried by a style are reported as formatting lost for the paragraphs they reach. A style's centre or right alignment is reported unless the paragraph states its own. Headings take Docs' own heading look, and the import page says so.
  • Report metadata: the persisted report holds codes, counts and paragraph numbers only. No face names and no source text.
  • JS-safe client ids: imports write under a fresh uint32. Both Runtime.Build and the Rust builder refuse ids past 2^53−1. TestImportedUpdatesOpenInTheEditorUnchanged runs real converter output through Yjs and y-prosemirror with the editor's schema.
  • Sealed-only: imports are refused until content sealing is activated. The report has its own AAD kind byte (4).

docs feat/google-import: whole-branch code review Reviewer: Claude Fable 5.1 (claude-fable-5-1), 2026-11-01. Branch: feat/google-import at 9adc935, read as one diff against origin/main 7d218bd (merge base 7d218bd; five commits, 35 files, +4227/-171). Discussion oficina/docs #102 is the record. Read and tested in a review-only worktree (docs-review-google-import); the implementer's checkout was not touched.

VERDICT ON THE CODE: APPROVED at the corrected tip b805ac4. No blockers. Five non-blocking notes below. The review of 9adc935 found no blocker; b805ac4 adds the en-US spellings and lower reader limits (Addendum 2), and everything I could run is green there (Addendum 3).

MERGE GATE: hub CI at b805ac4 PASSED (checked independently by the parent session after this review's test runs). CI at 9adc935 had failed only the catalog guard, which b805ac4 fixes, and my own run of that test at b805ac4 passes. With CI green the branch meets all three of AGENTS.md's conditions: done, approved here, CI green. Code approval is not shipping approval: Google Cloud configuration, the deployed canary and live consent/export remain Paul's gate, and production DOCSGOOGLE* stays unset.

GATES, AS KNOWN TO ME Browser: DOCSIMPORTPLAYWRIGHT=... go test -tags browser -run TestGoogleImportBrowserCreatesAnEditableDocument in the review worktree: ok, 35 s, Chromium and WebKit, through rastrillo's production middleware; the bearer never reaches Docs, the external relationship target is never fetched, no CSP violation, the editor shows nested text with strong on the right run and no <a>, an edit saves and survives reload, the report reopens, the scriptless upload works, and the database and WAL hold neither content nor report codes in the clear. Go: a bare go test ./... in my worktree failed internal/shipped (Homebrew Go has no libexec/LICENSE; Homebrew rustc, not the pinned 1.98.0) and internal/export (node fixture without fixtures/nodemodules in a fresh worktree). Both are my environment, not the branch: the gate installs fixtures and sources ~/.cargo/env first. A re-run of internal/docs and internal/export after npm ci with the pinned toolchain is recorded in the addendum at the end. Reported by the parent, not run by me: the full .amadan/ci.d/10-gate locally (bundle freshness passed; clippy/wasm were running); hub CI at 9adc935 red on the catalog guard only. Still pending, by Paul's choice: Google Cloud configuration, a deployed canary and live consent/export. Production DOCSGOOGLE_* stays unset. Code approval is not shipping approval.

CHECKED AGAINST THE APPROVED SPEC (B1, B2, B3, R1, R2, R3, R4, R5) B1 Builder (core/src/build.rs, abi.rs, internal/core/core.go). A closed little-endian instruction list: paragraph or heading 1..6, runs of text with marks drawn from fragment.rs's MARKS table minus code and the retired sizes; one font and one size per run, no mark twice, text non-empty and free of control characters. Decoded and checked in full before the document is touched; written in one transaction into an empty root only; heading level stored as a number through the element's map, as y-prosemirror writes it; adjacent same-mark runs merged; empty blocks have no child. Inserts at index 0 in reverse so ten thousand blocks fit the call budget. Refuses a client id past 2^53-1 (lib0's varuint limit) on both sides. ABI bumped to 5, wasm rebuilt and committed. Go's Build runs in a throwaway instance with a 5x call allowance and returns the snapshot; EncodeBuild checks only field widths and leaves vocabulary to the builder. Rust tests cover every malformed shape with a snapshot-unchanged assertion, limits, NotEmpty, the unsafe id, and replay equality; Go tests cover the reader's maxima fitting the ordinary call limit on replay. Replay-equality (import.go convertImport): the update is applied to a second handle under a different id, rendered to JSON, parsed back and compared block by block with sorted marks and merged runs; a mismatch refuses. The interop test then hands twelve real convertImport outputs to Yjs and y-prosemirror under the editor's own schema and asserts the Yjs doc is not changed while reading (no schema clean-up), every client id is a safe integer, and root.check() passes. The gate exports DOCSREQUIREWASM=1 so that test cannot skip in CI. B1 Atomic CreateImported (import.go): row, first update at seq 1 sealed under the update kind, and report sealed under its own kind byte 4, in one transaction with requireMember inside it as CreateDraft has; creation token idempotence returns the existing document and writes nothing (tested: one row after a retried POST); sqid collision retried; ApplyUpdate's COALESCE(MAX(seq),0)+1 continues from 1. Content sealing inactive refuses GET, POST and the store call (tested, nothing written). Reports join readContentSealing, convertContent and requireSealedContent so docs-seal and the mixed-encoding boot check see them. Sealed-at-rest test reads the database and WAL for the marker text and report codes, and proves a report ciphertext does not open as an update. B2 Reader (internal/docx/read.go). Token walk over body, tbl/tr/tc (nested tables included), sdt/sdtContent at block and inline level, hyperlink, ins/moveTo kept and reported, del/moveFrom omitted and reported, smartTag, customXml, fldSimple, dir, bdo; AlternateContent, altChunk, drawing, pict, object, oMath reported as objects; footnote, endnote and comment references, headers and footers reported. Toggles honour w:val (0/false/off/none). Cascade: run rPr over character style over paragraph style chain (ten deep, loop-safe) over docDefaults, with explicit off stopping inheritance; what a style carries that Docs cannot hold is reported for the paragraphs it reaches. Headings by style id or name (Heading N, Title -> h1 reported, Subtitle -> paragraph reported) and take the level's look, keeping only face and run-stated marks. Tabs to spaces, br/cr to new blocks, page/column breaks likewise, each reported. Bounds: 1000 entries, 32 MiB per part and 64 MiB total counted on decompressed bytes, depth 256 counted in next(), DTD refused, duplicate part refused, 10,000 blocks, 40,000 runs, 2 MiB text. No relationship is read: hostile targets in rels never appear in output (tested). Report is closed metadata: codes, counts, first twenty paragraph numbers; no text and no face name (tested). Fuzz holds every output run builder-acceptable. The old reader's eleven losses are listed in the test that now catches them. B3 Route (import.go, app.go). GET/POST /import in the signed-in group under requireMemberRequest (guest 403 tested, cross-site POST 403 tested); MaxBytesReader at 10 MiB plus 64 KiB; MultipartReader part by part, at most eight parts, file into memory up to the bound, no disk; .docx extension and PK signature before the archive opens; two conversions at a time, a third told busy. Refusals are catalog keys with no file name, title or content on the page or in the log (tested with a marker and a secret filename). Title from the base name with separators of either kind stripped, control characters removed, 1024 bytes, else untitled. R1 CSP. Import page and its refused re-render carry exactly one policy equal to googleimport.Policy(ContentSecurityPolicy) with Google on, the app's own with Google off (and no "google" anywhere in the page), no COOP, no-store; the list keeps the app policy either way; served through rastrillo.Handler (tested). Script vendored from memory at a hashed path under /static/estilo/, linked only on a configured page. R2 Google constraints are the shared chooser's; Docs sets Kind docs and passes its form and input ids. Partial or malformed configuration refuses New (tested). R3 Docs copy English in its catalog; chooser labels via googleimport.Text(rastrillo.LocaleFrom(r)). R4 POST /import takes the same member check and transaction-side requireMember as POST /documents. R5 Report shown once on arrival (server-opened <dialog>, closed by a method=dialog form, no script), reopenable from the bar for anyone who can read the document, 404 for a stranger and for a document never imported (tested); the page states the supported subset first and that the list may be incomplete. go.mod pins estilo at merged main 7a19588.

NON-BLOCKING NOTES N1 internal/core/testdata/docscore.wasm, snapshots.go newestSnapshot, store.go replay and ApplyUpdate. The ABI bump to 5 means every stored snapshot (abiversion 4) is ignored, not deleted, from the first boot of this build. Reading never writes a snapshot (replay's comment, D3), so every open of an existing document replays its whole update log until that document's next ApplyUpdate, which writes an ABI 5 snapshot only if at least snapshotCadence (256) updates sit past the last usable one; a document with a shorter log never needed a snapshot and is unaffected. Long logs survive the full replay through reseedForReplay. So the cost is per read of a long document until its next write, not once on first open. Existing policy working as designed, not a defect; belongs in #102 and the deploy note in that form. (Corrected from an earlier wording that said the snapshot is rewritten on first open; the implementer's note in #102 is the accurate one.) N2 internal/docx/read.go run(): a hyperlink written as a complex field (fldChar begin, instrText HYPERLINK, separate, result runs, end) keeps its result text but is not reported under linktextkept. Google exports w:hyperlink, so this is a Word-origin gap only. N3 internal/docx/read.go root(): a document in the ISO Strict namespace (purl.oclc.org/ooxml/...) refuses as "not a Word document". Word's default is Transitional and Google exports Transitional; refusing beats misreading. Mention Strict in the notword copy if anyone ever hits it. N4 internal/docs/import.go importPost: the whole file is read into memory before the conversion slot is taken, so the slot bounds conversion memory (64 MiB decompressed, twice) but not upload buffers (10 MiB per in-flight request). Fine at this scale. N5 internal/docs/render.go catalog: colours, centred, colour are the three en-US guard failures. Fix is spelling only; no behaviour.

NOTED, NOT A FINDING All fixtures are synthesized OOXML in Google's shapes; read_test.go says so at the top. A real Google Docs export with a link, a table, a list, a suggestion and a bold-off run should join the corpus when Paul can supply one he is content to commit.

ADDENDUM 1: re-run at 9adc935 of internal/docs and internal/export with fixtures installed (npm ci) and the pinned toolchain on PATH internal/export: ok. internal/docs: one failure, TestTheCatalogIsWrittenInUSEnglish, on exactly the three strings hub CI named (colour, colours, centred). Nothing else failed. So my first run's other failures were my environment, and the branch's only red at 9adc935 was the spelling guard.

ADDENDUM 2: the corrected tip b805ac4, read as the full diff from 9adc935 Four files, +16/-18. Besides the three spellings it changes behaviour: internal/docx/read.go lowers the reader's limits from 10,000 blocks, 40,000 runs and 2 MiB of text to 5,000 blocks, 10,000 runs and 512 KiB of text; readtest.go's three refusal cases and internal/core/buildtest.go's budget case follow (5,000 blocks of two runs, about 508 KiB), and the toolarge copy now states the new limit. Assessment: acceptable and consistent. The builder's own limits (50,000 blocks, 500,000 runs, 8 MiB) still sit above the reader's, so the reader is the binding bound; the budget test still proves the reader's maximum builds within Build's allowance and replays within the ordinary call limit, which is the property every later open depends on; the user-facing limit and the refusal agree. 512 KiB of text is roughly a 150-page document, ample for the first slice, and the refusal is loud. The commit title says "replay headroom", which I read as the 10,000-block case sitting too close to the one-second call limit on a slower runner; #102 should say what was measured so the number has a reason attached. Not a condition. My own runs at b805ac4 are recorded in Addendum 3.

ADDENDUM 3: my runs at b805ac4 in the review worktree With fixtures installed, ~/.cargo/env sourced and DOCSREQUIREWASM=1: go test -count=1 ./internal/docs ok 111 s go test -count=1 ./internal/docx ok go test -count=1 ./internal/core ok 21 s go test -count=1 ./internal/export ok The catalog guard that was red at 9adc935 passes. The interop test (TestImportedUpdatesOpenInTheEditorUnchanged) ran rather than skipped, since DOCSREQUIREWASM=1 forbids the skip and the package passed. Browser: TestGoogleImportBrowserCreatesAnEditableDocument PASS (3.9 s, Chromium and WebKit, confirmed with -v that it ran). Not run by me: cargo test, clippy, the wasm freshness check and the rest of 10-gate; those are the parent's local gate and hub CI.

FINAL VERDICT ON THE CORRECTED TIP APPROVED on the code at b805ac4. Hub CI PASSED at that commit; my package and browser checks there are green (Addendum 3); no job of mine is still running. Merge may proceed under the usual squash-merge rule. Google Cloud configuration and the live canary remain a separate gate that this approval does not cover. Record in #102: the reviewed commits (9adc935, then b805ac4), this reviewer, the five notes, and the measured reason for the lower reader limits.

Local full gate at the exact tip b805ac4

TMPDIR=/tmp/dgt ./.amadan/ci.d/10-gate at b805ac42679b, clean tree:

  • Passed: every fixtures node test; the editor bundle matches a fresh build (unchanged); rust fmt; clippy; the canonical Docker wasm build; cargo build and test; the embedded docs_core.wasm matches a fresh build (ABI 5); wire compatibility in both directions; go vet (with and without the browser tag).
  • go test ./... passed: cmd/docs (now including the socket tests, with the short TMPDIR), internal/contract, internal/core (including TestBuildAtTheReadersLimitFitsTheCallTimeout at the new limits, under the gate's parallel load), internal/docs, principalstore, internal/docx, export, fonts, lint.
  • Only internal/shipped failed, and only because this machine's Homebrew Go 1.27.3 has no LICENSE file (open /opt/homebrew/Cellar/go/1.27.3/libexec/LICENSE). Rerun alone under go.mod's pinned toolchain (GOTOOLCHAIN=go1.26.5 go test ./internal/shipped), it passes.

So the local gate is green apart from the machine's Go install. The hub CI at b805ac4 passed (the parent session verified it independently). Google config stays off; nothing is deployed and nothing is merged.

The reader-limit reason and the ABI 5 deploy caveat are in the handoff above.

Live Google canary evidence at reviewed tip b805ac4: dedicated Google project configured; isolated canary https://google-import-docs.bds.oncarlos.com reports b805ac4 from /api/version. Its fresh database was explicitly initialized with docs-seal using the separately stored canary content key, then restarted; the replicated marker confirmed encoding 1 with zero prior updates/reports.

Real Google consent/account selection and Picker succeeded. The selected Google Doc exported, imported, opened in the editor, and produced its import report: two tables and six list items flattened, six comments omitted, one title normalized, and unsupported styling reported. A temporary browser-driven body edit survived reload. Its visible marker was removed and original heading text restored; the browser automation left one extra empty heading in the disposable imported copy, so this is not a claim of byte-identical post-test content. No source Google document was edited and no private export/content was committed as a fixture.

Google was configured only for the two isolated canary origins. Both app sign-ins use Paul's requested paul@rslw.com; Google consent uses paul@tito.io. Production remains unchanged; no merge. The previously recorded ABI-5 snapshot/replay deploy caveat still applies.

Final integration against current main 3f5b4b6 is in progress before merge. Main added delegated document operations and suite production since b805ac4. Conflict resolution retains both the rich import builder and delegated initialization/editing, bumps the core ABI to 7 and rebuilds wasm.

Independent GPT-6 Astra review caught two semantic interactions being fixed: imported documents must get the current team default, random initial revision and atomic suite-feed row; team import form/error responses must initialize and recheck emission authorization. Regression tests first failed on the merged code. Estilo also needs the nine catalog entries already used by Docs main combined with its Google chooser; a catalog-only prerequisite branch is under review/CI. No production change or Docs merge.

Integrated branch tip 6258314effad24140056279bf48703d4e53ddfe3 combines reviewed b805ac4 with current main 3f5b4b6. Rich import, delegated initialization and semantic editing coexist in rebuilt core ABI 7; the editor bundle is unchanged. Estilo pins merged main 62be5bc, with both the Google chooser and the catalog entries already required by main.

Review fixes: imports now use the current team sharing default and random initial revision, and announce in the same transaction as the document/update/report. Retries add no feed rows; a failed feed insert rolls everything back. Team import form/refusal responses initialize the emission guard and recheck membership. Existing report tests now check the team default and denial after making the document private. Both new regression tests failed on pre-fix code for the expected reasons. Targeted tests pass; Chromium and WebKit browser import test passes.

Independent GPT-6 Astra reviewed the full integration and fixes without remaining code blockers; exact-tip deployed review follows. Full local gate has passed fixture tests, Rust/clippy/canonical wasm, wire compatibility and vet, with Go tests still running; hub CI at 6258314 is pending. Canary release build is in progress. ABI 7 keeps the existing snapshot policy: older-ABI snapshots are ignored, so long documents replay on every read until a write creates a usable snapshot, not merely on first open. No production deployment.

Full local gate PASSED at integration tip 6258314 (Go1.26.5, pinned Rust, short TMPDIR). All Go packages including shipped pass; editor bundle freshness, canonical ABI7 wasm freshness, wire compatibility, vet and final build pass. Independent GPT-6 Astra APPROVED exact committed tip6258314; Chromium/WebKit import browser test also passes. Hub CI running; isolated canary update in progress. Prior real Google consent/export evidence remains in this thread; chooser code is unchanged.

Independent deployed-canary review by GPT-6 Astra APPROVED at 6258314: process version checked, existing real import and report opened without visible save errors, and the import form offers both upload and Google chooser. No private content was modified by the review. All checks are complete except exact-tip hub CI, which remains running and is the merge gate.

Exact-tip hub CI PASSED at 6258314effad24140056279bf48703d4e53ddfe3. Full local gate, Chromium/WebKit import test, independent GPT-6 Astra whole-branch review and independent deployed-canary review all passed. The original real Google consent/export tests are recorded above. All merge gates are satisfied; squash merge follows. Production remains unchanged.

Squash merged through the hub as main 02ac4cf. The isolated Docs canary remains at reviewed6258314; Sheets is merged as112e9b8 with its canary at798a353. Both main merges contain the verified import implementation. Google remains configured only for the isolated test origins; production is unchanged. Completed integration worktrees are being removed.