← Back to Pull requests

test(web): preserve saved Sample through native read failure #2493

Closed
unknown closed this pull request without merging on Oct 24, 2026 15:07 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 14:46 UTC
Author

Summary

Relates to #2229 and #2112. Add a genuine Native producer failure journey to the existing complete Host suite:

real Sample commit -> move committed manifest -> original filesystem failure receipt
-> exact manifest repair -> saved Truth/playback -> explicit Native snapshot.retry
-> unchanged complete files -> fresh Runtime reopen

Related Issue

Relates to #2229

Evidence

  • Before: #2490's IO_ERROR page fixture proves consumer handling by replacing a successful producer receipt. The existing Native timeout/quota cases cover other committed-failure receipts. Do not reimplement their product behavior.

  • After: the actual native filesystem path becomes absent after its durable manifest names revision 3. The unmodified producer returns committed_revision=3, runtime_revision=2, runtime_published=false and INVALID_PROJECT; repair, explicit Native preparation and a fresh owner retain the independently expected whole Truth, saved mute and all nine complete files byte-for-byte. Original WAV bytes are checked independently. No error/result is synthesized, and no production hook is added.
  • Verification

  • Clean-base scripts/core.sh configure dev and cmake --build build/core/dev --target lmdj_web_control_runtime_tests -j 6: PASS.

  • Baseline original ctest --test-dir build/core/dev --output-on-failure -R '^host.web_control_runtime$': complete existing Host suite PASS, 87.70s CTest.

  • Rebuilt changed target and ctest --test-dir build/core/dev --output-on-failure -V -R '^host.web_control_runtime$': complete original suite plus new default-main journey PASS, 90.02s CTest / 90.11s wrapper, unchanged 120s budget. The original registration/binary and every existing case remain.

  • Initial new run failed at an incorrect assumed IO_ERROR code. The original Project I/O layout contract wraps an unreadable manifest as INVALID_PROJECT; the corrected exact expectation matches that contract. Retain the nonzero run; it is not a product regression or weakened assertion.

  • Separate capture-only ordinary Chromium experiment: changing another Asset before mutation causes the real MISSING_ASSET precommit refusal and preserves complete revision-47 Truth after exact byte restoration. Its PASS is not an after-commit failure proof. Built-in audio at both ends, no warnings; #2358 remains open.

  • python3 tests/build/ci_change_scope_test.py: 77/77 PASS on both staged declared files and the committed range before push. Staged diff inspection and git diff --cached --check: PASS. Exact PR-body lint and declaration are checked before publication.

  • Native binary/source identities, source bundle/patch, complete logs, prior negative run and raw ordinary-browser experiment are retained with Task evidence. The fault acts at the native decorator's original delegated path access, not a supplied error return.

  • Explicit gaps: no physical disk failure, Wasm/OPFS after-commit failure, Native IO_ERROR snapshot producer, full Creator/candidate, full13, sanitizer or device acceptance. The existing Native snapshot.retry capability does not choose Creator's non-COOK_FAILED retry policy. Existing debts stay open.
  • PR Review

    Current head 55a135f22182a7a9b4c705e617e699d708d10fa6: authenticated GLM 40103985080/1, original unmodified helper eligible/exit 0. One structured finding is retained with a source-bound rejection: this direct synchronous dispatch fixture has no concurrent storage callback; nested reads finish before dispatch returns. The thread is resolved. No waiver. One earlier invalid/unavailable authentication observation is retained separately; the same unmodified helper subsequently authenticates the original artifact. Live comments, conversations and protection are rechecked before the guarded squash.

    CI Scope

    Expected mode: full
    Expected selected lanes: ci_contract core_asan core_coverage core_macos core_ubuntu creator deploy_contract docs_static package portal web_runtime_host web_runtime_lab web_toolchain
    Expected skipped lanes: none
    ci:full required: no
    Reason: the floor is already full without a manual ci:full override; deterministic full13 ownership closure through core, creator and web-runtime expensive families. It does not claim execution of thirteen complete lanes or add a full-CI merge gate. Task verification is the complete owning Native Host suite.

    Version Management

    Version impact: none
    Reason: test and plan only; no production/API/ABI/Contract, manifest, Product Build, Assembly or snapshot allocation. #2237 remains open.

    Documentation Impact

    Documentation impact: none
    Reason: no Architecture Portal fact, diagram or product behavior changes; the plan records acceptance evidence and its exact limits.

    Pitfall Impact

    Pitfall impact: none — reason: fresh-premise, real-side-effect and complete-identity procedures applied; the initial error-code assumption is contradicted by existing source, not a new process mechanism.

    Merge Danger

    Door: two-way
    Blast Radius: tests

    The added default-main journey fails on lost committed Truth, untruthful producer success/failure, mutation replay during preparation or changed files at reopen. The fault only moves a file in its own TempDirectory; all original timeouts and production behavior remain.

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: acceptance-only Task; no release-state mutation.

    Transition authority

    Authorized transitions: push PR merge cleanup
    Standing Task authority in AGENTS.md and the user's #2112 continuation / safe post-merge cleanup. Task verification, current-head independent review, findings, conversations, conflicts, live protection and release freeze remain required. No tag, Release, deploy, publication, Channel or manual remote branch deletion.

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