Repository navigation
feat: drive generation state via verified PromptState contracts - #37
Closed
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Normalize video_type to ingredients and reject square video aspect - Block characters and extra frame references in video frames mode - Add PromptComposerFormat for build 20261120.00_p0 and probeStore - Set mode, model family, aspect, and count directly on PromptState - Clear all seven ingredient chip types and block Rp disable codes
Contributor
|
|
byteland-app
deleted the
stitch/drive-generation-via-prompt-state-contracts-jm1-2b6cdf0b-1d3d-447f-9d13-263f884dfde6
branch
November 25, 2026 07:46
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.
Summary
This pull request drives manual composer state through verified
PromptState(_.fP) contracts on supported Google Flow front-end builds and adds pre-submit validation for generation inputs and prompt items.Changes
src/generation.rs,src/service.rs,docs/*/tools-reference.md):video_typein"video"mode to"ingredients"(VIDEO_INGREDIENTS/"VIDEO_REFERENCES").modelto"veo_3_1_lite"and map"veo-3.1-fast"to"veo_3_1_lite"."1:1"("square") aspect ratio in"video"mode before browser actions start.charactersand more than two frame references whenvideo_typeis"frames".PromptComposerFormatand runtime probe (ts/frontend_builds.ts,ts/frontend_compatibility.ts,xtask/src/contracts.rs):promptComposer?: PromptComposerFormattoFrontendBuildFieldsand populateNOVEMBER_20_PROMPT_COMPOSERonboq_labs-ai-sandbox-frontend_20261120.00_p0(promptState: "fP",setMode: "AQ",setModel: "BQ",setCount: "scc",aspectLabels: "NE",videoAspects: "$O",families: "Wqa",activeFamily: "ala",catalogFamilies: "jx",modelId: "hg",items: "oc",disableReason: "Rp",clearOutput: "lF").20261118.14_p0and20261117.10_p0compatible withoutpromptComposer."prompt_composer"verification toprobeStorewhen the active build definespromptComposer, and validatePromptComposerFormatinxtask/src/contracts.rs.PromptStatedirectly and retain anchored DOM fallback (ts/composer_state.ts,ts/composer.ts,ts/setup_generation.ts,ts/types.ts):QainresolveComposerControllersand set mode ("IMAGE","VIDEO_FRAMES","VIDEO_REFERENCES"), aspect ratio (Qa.setAspectRatio), exact model family (_.BQmatched againstQa.model.Wqa()andQa.model.jx()), and output count (_.scc) without opening settings or model menus.Select model familyDOM fallback when a build omitspromptComposer.Rpdisable codes (ts/attach_ingredients.ts,ts/submit_generation.ts):Qa.clear()and emitlF("all") on every non-edit run, withClear promptand all seven<flow-*-ingredient-chip>DOM fallbacks.Qa.oc.all()in bothattachIngredientsandsubmitGenerationand abort before clicking"Start generation"when any of the 11 liveRpdisable codes is present.Verification
cargo xtask ci(cargo fmt --check,check_license_headers,check_line_limits,check_doc_examples,check_forbidden_code+tsc --noEmit,check_flow_contracts,cargo clippy --workspace --all-targets -- -D warnings,cargo doc --no-deps,cargo build) andcargo deny --locked --workspace check.flow_statuswithprobe: true, directPromptStatemutations, omittedvideo_typemulti-ingredient + characterOcattachment, 7-chip cleanup, all 11Rpdisable codes, and20261118.14_p0anchored DOM fallback).Automated PR initiated by user @byteland-app via Stitch Loop.