← Back to Pull requests

test(creator): prove manual Runtime recovery through the page #2485

Closed
unknown closed this pull request without merging on Oct 24, 2026 05:06 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 05:00 UTC
Author

Summary

已有:自动重建 → Project 重开
新增:耗尽自动重建 → 可见错误/System诊断 → 键盘 Retry runtime
     → 旧 Native owner 确认释放 → Project 恢复 → reload 后逐文件复核

补齐 #2229 手动恢复的页面证据。仅新增 spec 和计划;正式 proof 已按 tracked spec 清单自动发现该文件。

Related Issue

Relates to #2229
Relates to #2112

Evidence

  • Before: 自动重建有完整页面旅程,手动重试只有组件层覆盖;未声称存在产品回归。

  • After: 648×364/1440×900 完整手动恢复旅程通过;提示完整、动作至少44px、实际命中与键盘焦点正确,System诊断可达,New Project禁用。每次新factory前读取旧Native实际terminal release;恢复和reload后的完整revision-3 Truth与全部9文件path/length/SHA一致。
  • Verification

  • npm --prefix apps/creator-web test -- run test/project_takeover.test.ts test/project_takeover_workspace.test.tsx test/runtime_context.test.tsx test/workspace_shell.test.tsx test/error_messages.test.ts:5文件367 PASS;CSS parser/Node localStorage原告警保留。

  • 官方 owned-server/固定 Node26/Emscripten6.0.5 ordinary package,原完整17条 takeover/lifecycle/Sample/accessibility选择 PASS,137.495s;原spec未改且product inputs与最终head相同。首次漏传Sample fixture的15 PASS/2 setup FAIL单独保留。

  • 当前head 7f7c60698475861080ce7e89406a4b2692e75fe3:npm --prefix tests/platform/web test -- --project=chromium --workers=1 creator/creator_web_status.spec.mjs --reporter=line 2/2 PASS,10.449s;两个JSON及两个PNG与其框架附件逐字节一致。原17+本轮2分开记录,不声称组合19跑过。

  • node --check tests/platform/web/creator/creator_web_status.spec.mjs、staged/committed python3 tests/build/ci_change_scope_test.py各77 PASS、whitespace通过。音频首尾built-in,无告警。

  • 复用官方producer 3dbcfeb414437aea19c5e0230fafee7e31c21e5c;其tree等于base的parent f8a17a1c;base相对它只有#2484 spec/plan变化。10个dist、fixture与observer输入逐字节/hash绑定。本层没有新产品build。

  • 两次故障通知是明确的 reduced SDK consumer seam,不是Native故障/物理owner loss证明;原始requests、close、terminal release都走原Native。既有lifecycle真timeout证明保留。非COOK_FAILED恢复策略、其余#2229逐状态实页、候选/full、Safari/iPadOS/设备听感仍待,既有负向不核销。

  • 新测试首次因预期文案漏掉to restart it而2 FAIL,修正后通过;保留原trace,不将其当产品RED或弱化预算。
  • PR Review

    Current head: 7f7c60698475861080ce7e89406a4b2692e75fe3。等待独立current-head review;所有findings/threads须实际处置后才可合入。

    CI Scope

    Expected mode: focused
    Expected selected lanes: creator docs_static
    Expected skipped lanes: portal 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: 两个声明测试/计划文件;完整Creator/batch/candidate仍未验证。相关Task检查如上。

    Version Management

    Version impact: none
    Reason: 测试与计划,不改API/ABI、manifest、Build、Assembly或snapshot;既有#2237债保留。

    Documentation Impact

    Documentation impact: none
    Reason: 没有Architecture Portal页面或产品行为变化;declaration不适用不能记Portal PASS。

    Pitfall Impact

    Pitfall impact: none — reason: 应用既有完整旅程、模拟side-effects与path附件留存流程;无新过程不变量。

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: 冻结CI/发版路径未改,无Release/部署/Channel动作。

    Transition authority

    Authorized transitions: push PR merge cleanup
    Reason: owner既有#2112继续开发/逐一合入及合后安全清理授权,按AGENTS standing Task流程;保留独立review与live保护。#2112/#2229继续OPEN。

    Merge Danger

    Door: two-way

    Blast Radius: tests

    新spec会自动加入正式Creator proof;产品产物与恢复策略不变。

    Diff: 386 lines (+289 / -97) across 4 files Reviewer: endaye Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.43) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 386 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 66% · Reviewer familiarity: 35%
    48%
    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.356
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2485"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 48.3% 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: 43% (MEDIUM) · Higher = larger blast radius
    43%
    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: 48.3% · Lower = rushed or shallow review
    48.3%
    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: 22.2% · Safe to merge
    22.2%
    Repository