← Back to Pull requests

fix(creator): complete count-in recording Pattern switches #2483

Closed
unknown closed this pull request without merging on Oct 24, 2026 03:51 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 03:29 UTC
Author

Summary

COUNT-IN 开录后,只有 Native Applied 且 opening 耐久确认完整时才开放箭头、GROOVE 和普通 Perform Launch。它们切换同一录音,保留原票据至真实消费;设置、网格和结构编辑继续锁定。

 COUNT-IN
- active -> 始终锁 Pattern
+ Applied + durable opening -> 可选择,原票据保留
+ 校验通过的 consume ACK -> 封闭旧取消通道,等待普通投影
+ 投影完成 -> 下一次 Record/Stop 使用普通 transport

Related Issue

Relates to #2112 and #2233. S5/I2c、版本与候选、完整故障组合/35屏/设备听感继续待验。

Evidence

  • Before: unchanged App 的 mounted regression 与两条 packaged COUNT-IN 用例均在开录后 selector 禁用处失败。首个修复产物 7a8f01be 四条用例3 PASS/1 FAIL,trace证明原票据正向消费后、ordinary projection未完成时重发旧cancel,导致原5s Stop断言失败。新 controller/mounted交接回归在旧实现2 FAIL。

  • After: 最终 producer/head 3dbcfeb414437aea19c5e0230fafee7e31c21e5c 完整 unit87文件/2046 PASS,正式ordinary产物完整 Chromium24/24 PASS。持有最终投影时显示 Finishing并禁用transport键,随后真实普通Stop;消费失败保留原身份重试。错票据回复由controller SDK seam单测证明,不冒充Native异常注入。
  • Verification

  • npm --prefix apps/creator-web test -- --run: 最终87文件/2046 PASS,103.002s;涵盖 opening ACK、phase/cancel/authoring gate、原票据、消费交接、wrong-ticket拒绝后的真正取消/消费。最终 TypeScript命令 npm --prefix apps/creator-web exec -- tsc --noEmit -p apps/creator-web/tsconfig.json PASS,1.587s。

  • scripts/creator-web.sh build / package: clean final source 3dbcfeb4 PASS,2.157/0.595s,固定Emscripten6.0.5、Node26,LMDJ_WEB_AUDIO_CONFORMANCE:BOOL=OFF。保留原动态导入/chunk警告。

  • owned官方分发服务启用现有 --test-audio-observer-file tests/platform/web/audio/count_in_pcm_probe.js,HTTP200与原探针逐字节相同。实际选择:npm --prefix tests/platform/web test -- --project=chromium --workers=1 --reporter=line,json creator/creator_web_recording_switch.spec.mjs creator/creator_web_count_in.spec.mjs creator/creator_web_metronome.spec.mjs,24/24 PASS,371.751s,无skip/flaky,最终13个声明输入、10个dist、双官方fixture和observer hash绑定;音频首尾built-in、无告警。

  • 完整4条S3:普通/COUNT-IN各终点A/B,真实Press、跨S Release、GROOVE与Perform、Record-off、Stop、整个Truth/revision77/Asset路径长度SHA及fresh reopen;32份成功JSON逐字节回读。两个COUNT-IN原票据各只正向消费一次,此后无旧cancel,Stop走普通transport。

  • 既有7条Native及13条Creator:PCM边界、强制cue、Master隔离/真实混音/重新采样、静音held duration、跨S真实Release、取消、偏好、物理键、完整Truth/字节清单与reopen均保留。成功JSON report保留4份Native原RPC证明(1052次请求/两次真实stall),原ID和1000ms预算均读回;其余3条在reopen后afterEach读不到旧window日志,原RPC附件未保留,此证据缺口明确保留,不计作7份raw证明。三条旅程及远端断言本身均实际通过。

  • scripts/docs-site.sh check: Task1 full PASS,64.447s,51路由/内部链接;当前三个Portal页自该轮不变。python3 tests/build/ci_change_scope_test.py: 每Task staged/committed77 PASS,最终committed77 PASS;Node26 syntax和whitespace通过。完整Creator/candidate-host/full lanes、故障组合、35屏、Safari/真机及真实听感未核销。
  • 保留先前真实结果:Task1完整2045 PASS;d962产物4/4及20/20 PASS均标为历史,不冒充最终产物。外部服务漏官方observer参数的一轮9 FAIL/11 PASS(178.236s)保留,生产worklet200/observer404有同服务对照;补参数后的6 FAIL/14 PASS(242.964s)也保留,六条Native均在idle/recording:false而publication_pending:true时早消费。Task2仅把真实 publication_pending === false 纳入原5s闭合谓词,保留legacy decode与genuine consume ACK。早一轮2044因过程中补源码只作诊断;首次fixture TypeScript窄类型失败已修正。旧1000ms live/control失败和Host TSan480s TIMEOUT继续保留。

    PR Review

    Current head: 3dbcfeb414437aea19c5e0230fafee7e31c21e5c.

    首头 GLM 40058497711/1 的一个 finding 已修正:accept 验证身份成功后才设置consumed,in-flight fence保留。新单测旧源码实际RED(0.846s),最终全unit2046及同源24条完整浏览器旅程通过。当前head独立审查和讨论处置仍须完成,之后才guarded merge;无owner waiver。

    CI Scope

    Expected mode: focused
    Expected selected lanes: creator docs_static portal
    Expected skipped lanes: ci_contract core_ubuntu core_asan core_coverage core_macos web_toolchain web_runtime_host web_runtime_lab deploy_contract package
    ci:full required: no
    Reason: 三项原子Task共13个声明文件,属于Creator、计划和三个Portal路由。creator batch_only仅ownership,未跑完整lane不计PASS。

    Version Management

    Version impact: Creator Host MINOR debt
    Reason: additive S3 COUNT-IN consumer;Task3内部fault-path PATCH被同域MINOR吸收,按#2237既有较高债去重,不降低已有债。无SDK/Facade/ABI/Contract/Project、manifest、Product Build或snapshot分配。

    Documentation Impact

    Documentation impact: required
    Affected portal pages: /hosts/creator-web/ /hosts/creator-interactions/ /platform/web-runtime/
    Reason: 修正撤回状态旧说明,记录Applied/opening和消费交接边界;保留owner原JS pre-arm/晚拒绝风险决定,拓扑未变。

    Pitfall Impact

    Pitfall impact: none — reason: 门禁/消费顺序与fixture readiness由产品源码及回归完整表达,既有官方observer参数已复用,无新流程规则。所有原预算、强断言及Stop/reopen腿保留。

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: 未触碰冻结workflow/发布脚本/release-evidence/release pages,无发版或部署。

    Merge Danger

    Door: two-way

    Blast Radius: Creator

    影响开录后的选择可达性及消费交接短暂键门禁;原票据身份、ACK、取消重试和作者锁保持严格。

    Transition authority

    Authorized transitions: push PR merge cleanup
    用户持续授权完成#2112及逐层合并,AGENTS standing Task authorization适用;清理仅覆盖已合、完整patch保留、干净且未使用的本Task工位。No tag, Release, deploy, publication, or Channel promotion is implied.

    Diff: 597 lines (+447 / -150) across 7 files Reviewer: endaye Review duration: 21m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 597 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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.383
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2483"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 50% (MEDIUM) · Higher = larger blast radius
    50%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 21.6% · Safe to merge
    21.6%
    Repository