← Back to Pull requests

test(creator): align recording switches with retained input frames #2482

Closed
unknown closed this pull request without merging on Oct 24, 2026 02:25 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 02:10 UTC
Author

Summary

Restore the existing ordinary recording-switch journeys after COUNT-IN returned. Use the actual Count-in Off control, then compute exact expected events from checksum-verified, losslessly parsed Journal input frames. Native queue-consumption frames remain genuine completion evidence with all identity/correlation assertions preserved.

 S3 preparation
-  assert COUNT-IN controls were withdrawn
+  select Count-in Off; assert pressed; retain zero count-in-request assertion
 expected recorded events
-  calculate from later Native queue-consumption frame
+  bind durable candidate to Native sequence/session/kind/slot
+  calculate exact ticks from its original recording ingress frame
   compare complete Truth -> Record-off -> Stop -> reopen + Asset identities

Two declared files: the existing browser spec and its Task plan. No product implementation, wire, clock policy, assertion tolerance or deadline changes.

Related Issue

Related issue: Relates to #2112 and #2233

Evidence

  • Before: unchanged journeys failed2 at the withdrawn-control assumption (expected0/actual1). After only selecting Off, the complete selection failed1/passed1 (61.825s), with expected199/actual194 onset ticks. That failed run did not retain its raw candidate, so no sole-cause repair claim follows.

  • After: both complete original cases PASS using the correct durable-input oracle. An independent literal Node probe distinguishes the actual old/new calculators: ingress1000/1250 vs consumption1028/1306 yields expected onset40/duration10; the legacy calculator yields41/11. Current successful browser pairs happen to have equal frames; the probe distinguishes the clock domains.
  • Verification

    Test source 3cbf930861036fcaf9869bac48f0b84278101d33, spec SHA256 a5922e85a62f02748f14bb96f5633b7367255c5d7c3b2f163db1bd2896fcb917; base 8dd263239292c66ad12419ed4b9d683fdd5cd1e0.

    Initial Task receipts below use source 593d0a76 / spec 5b08dcbc; the separate follow-up receipt below binds the current 3cbf9308 / a5922e85 test bytes.

  • python3 scripts/local-audio-output.py --lane creator -- python3 <retained-run_browser.py> s3-journal-clock creator/creator_web_recording_switch.spec.mjs: locked Chromium, workers1, complete 2/2 PASS, wrapper exit0/61.162s (browser60.648s). Both original terminal A and terminal B variants retain real Press/cross-S physical Release, genuine refusal/new explicit gesture handling, queued/applied S, target input, Perform return, Record-off, Stop, exact complete Truth/revisions and fresh reopen. Each case has five retained candidate/Native pairs; all successful path-backed JSON attachments match their originals, both complete Asset path/length/SHA inventories match, whole reopened Truth equals expected revision77. Original one-second input waits and all other budgets remain.

  • Reused the official ordinary #2481 production artifact: producer ede57774cccee9cb2c07b92b18f880d53b7e6cf3 has an entire source tree identical to current base; this commit changes only tests/plan. All10 distribution hashes and both original official fixture hashes match immutable retained inputs. This is reuse of a verified artifact, not a new build. Test bytes are bound separately. Both audio endpoints are built-in MacBook Pro Speakers with no warnings.

  • node --check tests/platform/web/creator/creator_web_recording_switch.spec.mjs: PASS on Node26. External clock-domain-probe.mjs extracts the actual calculators and checks independent literals: PASS. python3 tests/build/ci_change_scope_test.py: staged77 PASS, committed-range repeat before push. Whitespace PASS.
  • Review follow-up Task (second atomic commit, no published history rewrite): added explicit nonnegative segment-frame / ordered release guards and constructed the recording setup immutably from the observed App session. Full original two-case selection rerun on these exact test bytes: 2/2 PASS, wrapper62.466s / browser61.910s. All10 distribution/two fixture hashes, both complete Truth/Assets/reopen records and14 selected successful JSON attachments match. The literal calculator probe also refuses negative press/release deltas. Syntax PASS; committed-range ownership repeated before push.

    Retained gaps: COUNT-IN-enabled switching, packaged fault/restart composition, complete Creator/candidate-host lanes, physical devices and human listening remain unverified. Previous input-deadline failures, historical 1000ms live timeout and full Host TSan480s TIMEOUT are retained. This ordinary journey result does not complete either related Issue. No full lanes or portal build are claimed for this test-only Task.

    PR Review

    Current head: 3cbf930861036fcaf9869bac48f0b84278101d33. First-head DeepSeek 40053059265/1 raised four findings. Two frame-boundary/context observations are fixed in the second commit and verified above; the two session-filter observations have press / release source-based dispositions retaining fail-closed single-active-Journal checks. Independent exact-head GLM review 5636401833, run40053693935 attempt1, is authenticated by trusted current-main review_wait.py exit0/eligible=true, with no new inline findings. The two initial fixes have frame / context evidence; all four historical threads have actual dispositions and are resolved. No owner waiver. All remaining conversations, conflicts and live protection must pass before guarded squash.

    CI Scope

    Expected mode: focused
    Expected selected lanes: creator docs_static
    Expected skipped lanes: ci_contract core_asan core_coverage core_macos core_ubuntu deploy_contract package portal web_runtime_host web_runtime_lab web_toolchain
    ci:full required: no
    Reason: existing Creator browser test and explanatory Task plan; the creator batch-only lane is ownership information, not a full-lane pass.

    Version Management

    Version impact: none
    Reason: browser preparation/oracle and plan only; no product API, ABI, persistence, identity, manifest, Build or snapshot allocation.

    Documentation Impact

    Documentation impact: none
    Reason: tests follow the already documented restored Count-in Off behavior and original recording ingress timing; no current portal page or documented product fact changes.

    Pitfall Impact

    Pitfall impact: none — reason: the test premise and clock-domain oracle are visible in source and regression evidence; no new control-plane mechanism or gate.

    Merge Danger

    Door: two-way
    Blast Radius: verification

    Revert both test and plan together. Production behavior and the original complete journey assertions remain unchanged.

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: tests/plan only; frozen CI/release/evidence paths excluded.

    Transition authority

    Authorized transitions: push | PR | merge | cleanup
    Standing repository Task authorization and the user's #2112 integration/cleanup instructions apply after verification, exact-head independent review and protection checks. No tag, Release, deploy, publication, or Channel promotion is implied.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: endaye Review duration: 15m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.52) × (1 − Review Confidence (0.56)). 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: 95% · Reviewer familiarity: 35%
    55%
    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 #2482"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 55.5% 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: 55.5% · Lower = rushed or shallow review
    55.5%
    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: 23.1% · Safe to merge
    23.1%
    Repository