← Back to Pull requests

feat(web-runtime): expose typed tempo preview sessions #2457

Closed
unknown closed this pull request without merging on Oct 21, 2026 08:48 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 08:42 UTC
Author

Summary

Complete the public Web tempo preview protocol and typed RuntimeSession consumer on the actual Native parent #2455. A session validates the complete ticket and integer Native clock, serializes preview/cancel/save ownership, retains the original command through UNKNOWN, and observes the real ordinary-Suspend receipt through resume. The original AudioWorklet PCM/Truth/Artifact/Undo/reopen journeys accompany this consumer.

This is the second dependency Task for the complete corrected B3/Suspend source 40c78f9f28dd384529e5f6074cb68b01ebb16c09. Native parent #2455 is actually merged as 1718de2ff6ac228b9c0011ac4e904ed791ae1988; its entire merged tree equals independently reviewed source b1633eb512a8ee889622e7691fb2d3779e6bc0b0. This Task has exactly15 declared paths from the latest sections of the B3 and Suspend plans. All20 combined product/build/test files are byte-identical to the corrected candidate, with unrelated current main retained. No Native producer is reimplemented or included in this SDK delta.

The original combined #2447 could not produce a review in two attempts. Its authenticated complete input was measured offline at1,651,788 stock o200k tokens against configured1,048,576-token contexts; those are not provider-reported counts or a definitive backend error. The Native/SDK dependency partition preserves the complete original behavior and every original acceptance leg. It changes no review configuration, budget or gate. Native has now received its independent review; this SDK Task requires its own independent exact-head review.

Relates to #2112, #2235, #2237, #2418 and #2419. Original #2418/#2419 and replacement #2447 remain open until this second Task actually merges and the combined product/source retention is verified. Umbrella, version debt, Creator I2c/metronome/S7, COUNT-IN decision #2394/#2395, full candidate and physical/hearing acceptance remain separate.

Verification

Source head: c64cd50b76ba2b17fc0a592aea472570a3d2c4ce
Source tree: 765e54cf8a0f91614be12345f1f3fb9826edbfec
Actual parent: 1718de2ff6ac228b9c0011ac4e904ed791ae1988

  • Complete Node suite:752/752 PASS, no skips,2.224s. Creator TypeScript consumer PASS. Dependencies and staged ownership77/77 PASS. A parallel evidence wrapper initially contended for index.lock before starting TypeScript; the same actual compiler command subsequently exited0. No index lock or source was removed to proceed.

  • Official pinned Emscripten6.0.5 AudioRuntime Wasm build:PASS,92.611s. Browser evidence binds all three compiled artifacts plus SDK/spec/identity inputs by SHA256 and byte length.

  • Complete Chromium realtime-audio and realtime-failure specs: 38/38 PASS, no skips/retries,243.251s. Four exact tempo/Suspend JSON receipts retain actual137-BPM preview→120-BPM cancel, save/Undo/cold reopen, old ticket refusal and fresh ticket after same-Session resume; saved/cancelled restoration remains240/120 BPM respectively. The current long-WAV and busy-Project journeys also pass.

  • Three original isolated OPFS WebKit journeys: 3/3 PASS,40.181s, using isolated locked WebKit2361. Both actual SDK tempo PCM/save/Undo/reopen journeys and paused-OPFS executor/input ownership pass. Browser/source input inventories are unchanged, the verification wrapper exited0, and its owned server was stopped with SIGTERM (process exit-15). Initial browser setup stopped before starting a server or test because this fresh worktree lacked its isolated OPFS WebKit installer; official prepare-opfs-webkit.sh completed successfully. The failed setup inventory is retained separately.

  • Complete Portal: PASS,131.069s;179 tests,53 pages,10 diagram sources/20 outputs,51 built routes and internal links. All original pages, current snapshots, diagrams and route/link checks are required.

  • Native25, ASan/UBSan17 and TSan24 are actual parent evidence from #2455, not a new SDK run. The exact parent tree and unchanged Native source/build inputs are verified; all four owning stress cases remain in the parent selections. Its first loaded-host Control timeout and subsequent same-binary complete pass remain distinct receipts; no causal environmental repair is claimed.

  • Complete current-main browser prefix and every original tempo/Suspend test, strict assertion and deadline are retained. Browser/source inputs are verified before/after the complete selection. Device/hearing, Creator I2c, fixed/full candidate and all deferred batch lanes:UNRUN by this Task.
  • PR Review

    Independent current-head review: authenticated DeepSeek review run39571304119, attempt1 for c64cd50b76ba2b17fc0a592aea472570a3d2c4ce; trusted current-main helper returned eligible true. Both findings received individual source/test-backed dispositions and are resolved. The requested original-command equality guard already exists, and the ready-ticket queue behavior matches the documented effect-free begin plus original ownership regressions. No source change, self-review waiver or failed #2447 review is used as approval. The final complete conversation/protection/conflict readback still precedes expected-head squash.

    Main refreshed before commit to a8f1232066913490de982d1a744ae7a7d8e00864 (#2454). Its six release-tooling/skill/test paths do not overlap this Task or its Native/SDK build inputs; applicable Task governance is unchanged. They remain owned by that unrelated main change and will be retained in the merged tree.

    CI Scope

    Expected mode: focused
    Expected selected lanes: creator docs_static portal web_runtime_host web_toolchain
    Expected skipped lanes: ci_contract core_asan core_coverage core_macos core_ubuntu deploy_contract package web_runtime_lab
    ci:full required: no
    Reason: SDK/types/browser and current Portal changes; the Native parent owns the unchanged compiled producer. Existing conservative routing is unchanged.

    Scope is routing evidence, not execution of every selected complete lane. No workflow, release or deployment path is changed.

    Version Management

    Version impact: additive Web Runtime Platform MINOR debt, deduplicated with the parent Facade MINOR and ordinary-Suspend compatible PATCH under #2237; preserve all higher debt.
    Reason: public protocol/typed Session operations, without persisted-format or identity migration. No Product Build, Assembly, manifest, Channel or snapshot allocation.

    Documentation Impact

    Documentation impact: required
    Affected portal pages: /core/modules/application-facade/ /core/modules/web-runtime-platform/ /platform/web-runtime/
    Reason: document the actual strict protocol and public SDK consumer completing the Native parent, along with its real clock/ownership/terminal behavior; update the official Web Runtime architecture source and generated outputs.

    Pitfall Impact

    Pitfall impact: none — reason: original owning tests capture source, ticket, persistence and lifecycle invariants; no new universal process gate or policy exception is introduced. Original failure receipts and complete-journey requirements remain retained.

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: ordinary Task integration only.

    Transition authority

    Authorized commit, push, PR, independent current-head review and squash merge under the owner's19-PR integration request and AGENTS.md standing Task authorization. No release, deployment, Channel or cleanup.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: endaye Review duration: 5m
    All Vouch review confidence checks passed
    Residual risk 0.31 = Change Risk (0.52) × (1 − Review Confidence (0.40)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 34% · Reviewer familiarity: 35%
    39%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2457"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 39.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 39.7% · Lower = rushed or shallow review
    39.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 31.3% · Safe to merge
    31.3%
    Repository