Enforce the cumulative duration of an Omni extension chain

An extension budget belongs to the whole scene, not to each request. If an editor resets its duration counter every time it receives a new video artifact, it can keep offering “extend” after the documented chain limit has been reached.

In its August 27 announcement of Gemini Omni 1.1 Flash, Google says videos can be extended in 10-second increments up to a total cumulative length of 40 seconds. The same “Extend scenes for longer storytelling” section describes up to 10 seconds of prior context. These are different constraints: prior context is not a fresh duration allowance, nor a promise that the model sees the entire accumulated scene.

Count remaining increments, not requests

For an eligible chain with confirmed cumulative duration D, the arithmetic budget is:

remaining_extensions = floor((40 - D) / 10)

Apply this only after checking that D is known and within the documented range, and that the input is eligible for extension in the interface being used. The formula does not establish which input lengths the API accepts.

For example, starting with an eligible 10-second scene:

Confirmed chain duration Whole extensions remaining
10 seconds 3
20 seconds 2
30 seconds 1
40 seconds 0

That is three additional extensions, not four. Forty seconds is the total, not forty seconds of extra footage.

A conservative admission runbook

The following is an application-side design recommendation, not a description of Google API fields or guarantees.

  1. Persist the chain identity and confirmed duration. Keep each accepted output linked to its parent. A new artifact identifier must not reset the accumulated duration.
  2. Allow only one unresolved extension per chain. Atomically check that another 10 seconds fits, then reserve that increment before dispatch. Two workers should not independently spend the same final increment.
  3. Advance only on a verified result. Match the result to the pending parent and check its duration before updating the chain. Keep pending reservations separate from confirmed footage.
  4. Treat an unknown outcome as unresolved, not failed. After a timeout, use whatever status or result lookup the actual interface supports before retrying. If the outcome cannot be established, stop that chain for reconciliation rather than sending another extension blindly.
  5. Close the extension path at the cap. At 40 seconds, disable further extension for that chain and explain the limit. A new creative branch should not silently erase the duration of its inherited scene.

Useful application signals are confirmed cumulative seconds, reserved seconds, pending request age, and admission-denial reason. Unknown duration, an unexpected result duration, or a result linked to the wrong parent should stop automatic advancement and go to the integration owner. A cap denial is an expected product boundary, not a transient failure to retry.

What this does not establish

The announcement supports the increment and cumulative limit; it does not specify transaction semantics, idempotency, error codes, or a complete input-eligibility contract. Verify those details against the interface you actually use before implementing recovery. This runbook has not been validated against live requests, and it makes no claim about other providers’ support.

The practical boundary test is simple: an eligible 30-second chain can reserve one more increment; a 40-second chain cannot; and an unresolved final extension must block a second worker from spending that same budget.

A duration reservation does not tell an autonomous editor whether the extension is still wanted. I would add a separate creative-intent revision to the application-side workflow—not as a claimed Google API feature.

For example, an extension starts from the approved parent, then the user changes the scene brief while it is running. The result can match the parent and fit the duration budget yet still answer an obsolete instruction. Parent identity and duration checks alone would accept it.

Before dispatch, bind the pending work to the approved brief revision as well as the parent. On completion, reconcile the execution outcome regardless of whether the brief has changed, but promote the artifact into the active edit only if that revision is still approved. Otherwise, retain it as an unselected result and pause for a decision. Do not let an obsolete completion trigger the next automatic extension.

This separates two decisions: “did the requested work complete?” and “may this result advance the current plan?” Rejecting it creatively must not be treated as proof that no request ran, or as permission to reset the inherited duration. A useful local test would change the brief while the final extension is pending and check that the returned artifact is accounted for without being automatically selected or extended again. That tests plan freshness, rather than just the arithmetic cap.