Problem
Typed JSON queries return TypedJsonIndexNotMaterialised immediately when the index has no first generation, even when the caller supplies a non-zero lag_timeout_ms. Worka can successfully install an index and write source objects, then race the asynchronous first build.
Scope
- Wait up to
lag_timeout_ms for the first typed-field segment.
- Preserve immediate failure when the timeout is zero.
- Return
TypedJsonIndexNotMaterialised only after the deadline.
- Add regression coverage for the initial-materialization lifecycle.
- Verify Worka’s real Anvil device capability contract on a fresh bucket.
Acceptance criteria
A query issued before the first generation either succeeds when materialization completes inside its declared lag timeout or returns the existing failed-precondition error after that timeout.
Problem
Typed JSON queries return
TypedJsonIndexNotMaterialisedimmediately when the index has no first generation, even when the caller supplies a non-zerolag_timeout_ms. Worka can successfully install an index and write source objects, then race the asynchronous first build.Scope
lag_timeout_msfor the first typed-field segment.TypedJsonIndexNotMaterialisedonly after the deadline.Acceptance criteria
A query issued before the first generation either succeeds when materialization completes inside its declared lag timeout or returns the existing failed-precondition error after that timeout.