← Back to Pull requests

test(creator): prove recording switches across held OPFS I/O #2488

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

Summary

The separate Creator OPFS proof previously held only opening and admit writes. Add four complete immediate/COUNT-IN × Record-off/Stop journeys using real Creator gestures, two admitted Native publications and the original blocked segment flush.

Creator choices → real Native B → C → cutoff F
                      original admission-switch write [held]
                      real flush → ordered segments → Truth → full reopen

A conformance-only observer copies the actual closing receipt before its ordinary ACK. This distinguishes prompt Native F from the later durable recording=false state. Private hook additions compile only under the existing explicit Web conformance define; ordinary production behavior and APIs stay unchanged.

Related Issue

Relates to #2233. Relates to #2112. Relates to #2237.
Full fault/restart combinations, candidate/version allocation and device acceptance remain separate work.

Evidence

  • Before: unchanged base f0b9f0fc5742d39eac023c5acf34d6c707113fd1 passes the original three journeys. The final four new tests against that original official package fail at unsupported segment action 4 (33.812s). This is a coverage control, not a product-defect claim.

  • After: clean source db644bfef393b6aa928b51f51a48bdd9c8218cac passes all 7/7 complete journeys (91.593s browser; 116.286s official entrypoint), zero skips/retries/expected failures. Four named JSON files and path attachments match byte-for-byte; actual committed project.inspect responses match the independent expected Truth, and every complete 33-file OPFS inventory survives reopen unchanged. The browser also asserts full reopened Truth; a separate raw reopened-Truth snapshot is not retained.

  • Ordinary clean package startup passes: frozen Session, one actual two-output Native node at 48kHz; gate/input/cutoff observer exports all undefined. Ordinary cache is conformance OFF and Application compile flags have no testing define. This startup/absence check does not establish complete ordinary Creator acceptance.
  • Verification

  • scripts/creator-count-in-io-proof.sh proof: PASS on exact clean head; official ordinary OFF and separate conformance ON builds, official package/manifest bindings, owned PID/nonce loopback server, locked full Chromium, original 3 plus new 4 cases.

  • New cases retain actual B/C/S/F, original input correlations/authority, real held flush, third-choice refusal before further Native admission, no automatic resend, actual Releases after S2, original observer expiry, one-second Native cutoff, genuine flush/ordered reconciliation, COUNT-IN original A/S0 and actual terminal C identities, exact event/revision oracle and full reopen/file hashes.

  • Native closing receipt is observed where the controller copies the actual receipt before ACK; no response or owner is manufactured. The selected I/O worker copies bounded original press-admit fields for the independent 48kHz/120BPM onset oracle. New code is entirely test/conformance guarded.

  • The original three cases retain the strict legacy/current SDK comparison unchanged. Mounted Creator cases use the actual frozen Session SDK return, with saved Session/Native identity checked on every inspection and all original raw RPCs retained separately. No timestamp-based response attribution is used; one-second inspect bounds remain.

  • Node syntax / Bash syntax / actual conformance C++ rebuild: PASS. Staged and committed python3 tests/build/ci_change_scope_test.py: 77/77 PASS. Exact nine-file scope, whitespace and clean worktree inspected.

  • scripts/creator-web.sh package: ordinary clean package PASS; actual-browser observer-export absence PASS.

  • Retained nonzero diagnostics distinguish incorrect initial overlay/preparation/timing/navigation/recording-state test premises from product failures. The missing test-only type forward declaration was fixed and rebuilt. No existing test budget, journey or assertion was removed. Actual BAR apply uses the original C4 five-second bound; input/inspect/cutoff remain one second, closure five seconds, existing per-test 150s, no retries.

  • The held-input composition stays in Sequence because real workspace navigation releases physical input. Earlier mixed-source Perform C4 journeys remain separate evidence. Exact Core capacity reason is owned by the existing Native case; this Host may refuse preparation earlier, so the new cases also assert unchanged Native current/origin/epoch and no pending publication.

  • Complete full13/candidate lanes, remaining fault/restart combinations, broader Creator/35-screen/Safari/device/listening acceptance and historical failures remain unverified by this Task.
  • PR Review

    Exact head: db644bfef393b6aa928b51f51a48bdd9c8218cac. Authenticated exact-head GLM review 40075860315/1 is eligible (helper exit 0); no waiver. The initial 1210420a review (40074384940/1) had four findings: negative-onset and append-lifetime claims were rejected with the actual guards/call graph; timestamp attribution was removed, and fresh-document rebinding plus repeated original Session/Native checks address the other observations. All four original findings have verified replies and resolved threads. The new review adds one flush-selector finding, rejected with the exact append implementation (one post-write flush), separate awaited preparation call, and serial worker ownership. Its reply and resolved flag are verified. No clean-review claim is made; final live conversations, protection and head checks remain required.

    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: deterministic floor upgrades three expensive families (core, creator, web-runtime). All paths are owned. This is ownership selection, not execution of full13 or a universal merge gate.

    Version Management

    Version impact: none
    Reason: private observation is compiled only in the existing explicit Web conformance link. No production API/ABI/Contract/persistence or manifest/Product/Assembly/Build/snapshot allocation; existing #2237 debts remain.

    Documentation Impact

    Documentation impact: none
    Reason: test observation, cases and separate proof selection; no Portal product behavior, documented identities or diagrams change.

    Pitfall Impact

    Pitfall impact: none — reason: bounded test observation and fixture corrections expressed by their real journeys; existing complete-journey, original-identity and named-artifact procedures apply.

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: local conformance outputs only; no frozen CI/release control-plane path changes.

    Merge Danger

    Door: two-way

    Blast Radius: Conformance

    Ordinary builds exclude all added Facade hooks and test exports. The independent proof retains its original three journeys and adds the four compositions.

    Transition authority

    Authorized transitions: commit, push, PR, current-head review, guarded squash merge; separately authorized safe worktree/local-branch cleanup after complete retained-patch proof. Standing AGENTS.md Task authority and the user's ordinary feature/fix/test thaw apply.
    No tag, Release, deploy, publication or Channel promotion is implied.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: endaye Review duration: 31m
    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 #2488"
    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