Skip to content

fix(flow): cascade read-only stores and add UI fallbacks - #62

Open
google-labs-stitch[bot] wants to merge 3 commits into
mainfrom
stitch/cascade-verified-stores-lview-fallbacks-jm1-46887a9a-122a-4704-9ec3-04a904195143
Open

google-labs-stitch[bot] wants to merge 3 commits into
mainfrom
stitch/cascade-verified-stores-lview-fallbacks-jm1-46887a9a-122a-4704-9ec3-04a904195143

Conversation

@google-labs-stitch

@google-labs-stitch google-labs-stitch Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When Google Flow updates window.WIZ_global_data.cfb2h to a build label that is not yet in VERIFIED_BUILDS, read-only store operations and confirmed DOM fallbacks now continue to work while internal minified store mutations and component hooks stay gated on VERIFIED_BUILDS.

Synced with current main (v2.5.0, Google Flow build 20261202.00_p0, commit d34417e).

Changes

  • Cascaded read-only store discovery (ts/frontend_builds.ts, ts/state.ts, ts/project_store.ts, ts/discover_store.ts, ts/frontend_compatibility.ts):
    • Derive CASCADED_BUILDS and CASCADED_PROJECT_STORES from VERIFIED_BUILDS (including RECENT_BUILDS) in newest-to-oldest order ($P 20261202.00_p0 -> tQ 20261201.00_p0 -> LQ 20261129.06_p0 -> GO 20261120.00_p0 -> jO 20261118.14_p0 -> VN 20261117.10_p0).
    • Record runtimeState.storeFormat when binding a store and resolve snapshotFormat(), sceneTileFormat(), uploadMediaFields(), lContextViewFields(), and tileSlotKeys() from boundOrActiveBuild().
    • Validate cascaded tile readability in hasReadableCascadedTiles and stop immediately with unsupported_front_end and the active build label when tile fields change or no store class binds.
  • Strict VERIFIED_BUILDS write boundary (ts/frontend_builds.ts, ts/angular.ts, ts/character_ops.ts, ts/character_extra.ts, ts/character_media.ts, ts/character_preview.ts, ts/character_voices.ts, ts/projects_ops.ts, ts/scene_ops.ts):
    • Gate internal minified mutations, RPCs, and component-internal hooks (characterPreviewFormat, characterVoiceFormat, characterCreateFormat, projectTitleFormat, voiceConfirmation) on VERIFIED_BUILDS only.
    • Keep the bound read-only store installed when sceneOp blocks write actions on unverified builds.
  • Safe LView tile locator and target-bound trash dialog (ts/tile_dom.ts, ts/frontend_builds.ts, ts/angular.ts, src/tile_menu.rs):
    • Resolve tile input keys ("tile", "Ha", "Ia", "Oa") through tileSlotKeys() in ts/frontend_builds.ts and invoke zero-argument functions on LView slots only when isAngularSignal is true.
    • Match trash confirmation dialogs to the target tile ID and cap wait_trashed at 6 + 34 = 40 polls.
  • Confirmed DOM fallbacks and flat leaf modules (src/assets.rs, src/collections.rs, src/upload.rs, src/character_bio.rs, src/characters.rs, src/project.rs, src/projects_ops.rs, src/project_store.rs, ts/frontend_types.ts, ts/character_preview.ts):
    • Route collection IDs directly to ProjectStoreSession in rename_assets, add menu/form/header DOM fallbacks with store or DOM read-back confirmation for media rename/trash, workspace library upload, character bio/name edits, and project title edits, and share is_store_write_unavailable and snapshot_collections.
    • Split ts/frontend_types.ts, ts/character_preview.ts, and src/projects_ops.rs as flat leaf modules so every source file stays well below the 800-code-line limit.

Verification

  • cargo fmt --all -- --check
  • cargo xtask ci (fmt, license headers, LF line endings, 800-line limit, forbidden patterns, tsc --noEmit, xtask contracts, clippy --all-targets -- -D warnings, rustdoc --document-private-items -D warnings, cargo build --locked --workspace, cargo deny)
  • cargo deny --locked --workspace check
  • cargo xtask collect-licenses
  • RUSTFLAGS="-D warnings" cargo build --release --locked --bin flow-mcp
  • flow-mcp --headless doctor --json (flow-build: ok on boq_labs-ai-sandbox-frontend_20261202.00_p0)
  • Cascaded DECEMBER_02_STORE ($P), DECEMBER_01_STORE (tQ), NOVEMBER_29_STORE (LQ), and NOVEMBER_17_STORE (VN) runtime verification on unverified builds:

Runtime verification summary

- Cascade verified project stores from newest to oldest for reads
- Pair snapshot, scene, upload, and tile slot keys with bound store
- Gate internal store mutations and hooks on verified builds only
- Guard Angular LView tile locators with signal checks on slot keys
- Bind trash confirmation dialogs to target tiles with 40-poll cap
- Add confirmed DOM fallbacks for upload, character, and title edits
- Split frontend types, character preview, and project CRUD modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants