← Back to Pull requests

fix(project-io): bound local project discovery #2439

Closed
unknown closed this pull request without merging on Oct 20, 2026 21:55 UTC
View on GitHub
unknown unknown commented on Oct 20, 2026 21:04 UTC
Author

Summary

Creator startup lists local Projects before reopening its remembered Project.
Discovery now hashes the complete canonical inventory through bounded64KiB
windows, so a saved345600056-byte recording can be discovered under the existing
512MiB Wasm heap. Summary keys and canonical identity remain unchanged; Bundle
import/copy retain their64MiB-entry/512MiB-payload limits.

The history guard spans load and hashing. When writer acquisition succeeds, its
lease spans the full scan. A foreign-busy Project retains the established
committed read-only path; it cannot make every other Project disappear from the
list. This path grants no recovery, mutation or transfer authority, or atomic
cross-owner filesystem snapshot. Explicit opening still refuses with the exact
public PROJECT_BUSY error.

Re-homes only original Draft #2410's five-file layer after #2438. The original
published stack is unchanged. Initial3f25339e is retained; the review correction
is a new follow-up commit, without amend or force push.

Related Issue

Related issue: Relates to #2135
Part of #2112. Refs #2237. Take consumer, full U08b/U08c, candidate and device
acceptance remain outstanding.

Evidence

  • Range hashing preserves complete bytes, canonical path order/offsets/total,

  • pre/post lengths, EOF, short-read progress, file-count and uint64 overflow
    checks. A present reader's error never falls back to whole-file allocation.
    Small legacy complete reads remain compatible; oversized legacy input refuses
    before allocation. Discovery identity is separate from transfer eligibility.
  • Native observer uses97-byte short reads and an independently constructed full

  • bundle digest. Actual rebuilt unchanged-source RED occurs at
    complete_recording_reads == 0 after digest agreement; exact fix rebuilds
    GREEN. When a lease is available, a competing writer stays excluded on every
    range read until summary return. Fault/growth/EOF/legacy refusal cases remain.
  • Review found a real busy-project regression in initial3f25339e. A separate

  • two-Project Native probe passes on main5ec03d71 and fails after rebuilding3f;
    initial3f formal Chromium also fails at successful listing. The correction
    preserves Store's existing committed-read contract. Native and real OPFS
    regressions independently verify both complete digests, successful free open,
    exact busy refusal and retained original owner, with all pages closed.

    Verification

    Head: 27e8afd12710d9b1de93d0e6d63e194dc56085ad

    Four non-plan source/test/Portal hashes were recorded and compared with the
    commit. Formal browser proof is bound by staged C++/spec/Wasm/JS hashes; the
    separate clean-head production package uses actual HEAD and source hashes,
    without an invented manifest revision field.

  • Full owning Native persistence/component/writer-stress selection 12/12

  • PASS29.172s
    , retaining all original import/copy/publication/recovery and
    recording cases. Actual baseline/candidate RED and rebuilt correction GREEN
    are retained.
    ctest --test-dir build/core/dev --output-on-failure -R
    '^project_io\.(project_bundle_transfer|project_store|authoring_history|fault_matrix|performance_recording_verification|performance_recording_scan|performance_lifecycle|performance_rebase|performance_journal|storage_platform|session_mutual_exclusion|performance_writer_lease_stress)$'
    .
  • Official pinned Emscripten6.0.5 formal build-audio-runtime PASS50.359s after

  • the correction; Node26 and unchanged536870912-byte heap.
    Complete Chromium 5/5 PASS 107.255 s and supported OPFS WebKit
    4/4 PASS 154.474 s, no skips/flaky/retries. Every original metadata,
    live-Control, Save/bind and two-reopen journey remains. Each browser retains
    9 metadata reports,6 complete long-file inventory comparisons,4 fresh-page
    pre-open lists and18 closed pages including the new three-page busy case.
    All startup digests equal the unchanged fixture's independently computed
    complete inventory. WAV SHA/header/tail/345600056 bytes/86400000frames at
    48kHz/stereo remain exact. The new case compares returned IDs with independently
    enumerated pre-existing OPFS directories plus both new Projects, and verifies
    both new full digests against browser Crypto.
  • Full Portal 179 tests/53 pages/51 routes and links PASS 50.676 s.

  • Dependencies, Runtime and explicit-root Host source boundaries pass.
    Committed ownership 76/76 and final13-lane classification pass.
  • Clean-head official Creator production configure, build, package pass

  • on 27e8afd12710d9b1de93d0e6d63e194dc56085ad. All8 manifest assets' lengths/digests and full10-file
    inventory read back; compiled and packaged Wasm match, heap remains512MiB,
    conformanceOFF and test global absent. Clean HEAD/source hashes are unchanged
    before and after these commands.

    Initial3f's Native12/Chromium4/WebKit3/Portal/production passes remain historical;
    they did not cover the discovered busy regression. The first new Chromium test
    incorrectly checked a lower-level storage field instead of the established exact
    public error. The next WebKit test incorrectly assumed an empty profile, though
    that supported browser retains earlier fixtures in this run; its trace is kept.
    Both test corrections retain complete inventory, ownership and original journeys.
    Earlier fixture-ID failure, actual allocation RED, Save/discovery OOMs and B0
    WebKit lifecycle negative evidence are retained separately.

    Built-in speaker endpoints were observed at start/end without warnings; controlled
    OPFS fixtures and endpoint observations are not captured PCM or hearing. Complete
    Core/Creator/Runtime/coverage/sanitizer/package/batch/candidate lanes remain
    unexecuted unless listed. No limit, deadline, floor, assertion or journey is
    reduced to obtain a pass; RPC30s/long-case180s budgets remain.

    PR Review

    Initial authenticated GLM5591733351/run39497355277 found the valid foreign-busy
    regression above. Its valid thread was left open for synchronize automatic repair
    recheck and is now resolved by the authenticated publisher, not by the author. The second mutex finding was reasonedly rejected: the per-instance
    transfer lock already spans full hashing on main5ec03d71 and initial3f, byte for
    byte. Full hashing still serializes that instance's transfer operations; no
    nonblocking promise is added. Only that genuinely wrong finding was resolved.
    DeepSeek's one-call malformed YAML and GLM's initial finding evidence are kept.

    Authenticated current-head GLM review5592211829/run39503243637 attempt1 is
    eligible with zero findings. The signed repair receipt for original comment
    4330314506 has verdict=resolved/resolved=true and request digest
    c1b1ec133978e37e6fa16eecf04657e708eda337491aa6103fdab1aecaff1ea2;
    the publisher's repair reply
    resolves that exact thread on27e8afd12710d9b1de93d0e6d63e194dc56085ad.
    Complete paginated review/thread readback finds both original threads resolved,
    with actual dispositions; the recheck verifies source only, not test execution.
    This run's DeepSeek one-call invalid YAML(line52/col1/4114bytes) and GLM's
    one-call complete-input review are both retained. Eligibility, conflicts and
    live protection still receive the final premerge check.

    CI Scope

    Expected mode: full
    Expected selected lanes: ci_contract core_asan core_coverage core_macos core_release_stress core_tsan_stress core_ubuntu creator deploy_contract docs_static package portal web_runtime_host web_runtime_lab web_toolchain
    ci:full required: no
    Reason: compiled storage and consumers establish the deterministic floor.
    No workflow, selector, required gate, threshold or scheduling change.
    The committed local quick classification has13 lanes; the authenticated remote
    scope has15, additionally core_release_stress/core_tsan_stress. AI test:none did
    not subtract the deterministic full floor. Neither scope count establishes
    complete passing lanes. Deferred sanitizer, full candidate and device debt
    remains.

    Version Management

    Version impact: compatible internal Project I/O PATCH debt under #2237, retaining
    higher same-domain MINOR debt and deduplicating existing compatibility work.
    No public ABI/Contract/keys, dependencies, manifests, Product/Assembly/Build,
    Channel or snapshot allocation.

    Documentation Impact

    Documentation impact: required
    Affected portal pages: /core/modules/project-io/
    Reason: complete local inventory versus transfer eligibility, conditional
    writer/history ownership, committed busy reads and remaining Take consumer.

    Pitfall Impact

    Pitfall impact: none
    Reason: product allocation/ownership behavior and public error/inventory facts
    are covered by Native/actual OPFS regressions. Existing independent-oracle,
    complete-journey, fresh-rebuild, storage-custody and sequential build guidance
    applies; these product facts do not add a process-ledger entry.

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: ordinary feature fix; release-owned paths remain frozen.

    Transition authority

    User authorizes sequential protected main integration and safe postmerge cleanup.
    Retain original stack refs/WTs needed downstream and pending #2430 owner exception.
    No auto-merge, tag, Release, Runtime deployment or Channel operation.

    Merge Danger

    Door: two-way

    Compatible internal collector change without a persisted migration.

    Blast Radius: storage

    Complete discovery can fail on storage errors and never grants transfer
    eligibility. A foreign writer's concurrent mutation is not an atomic snapshot;
    observed length/EOF/read errors fail closed. Legacy oversized input requires
    bounded capability. Take/capture/UI and physical acceptance remain separate.

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