Use typed metadata as the only store name source. Remove retired metadata
slots, descriptor projection, swallowed writes and the mutable index marker;
classify cursor sources by their native wrapper kind.
Make queue scope types explicit, exercise StoreId in admission tests, and
centralize renderer metadata lookup by schema ID. Retain failed schema
handle attributes and immutable metadata needed for rollback.
Use the persisted StoreId and IndexId in SQL commands, transaction scopes and renderer handles. Reserve IDs without waiting for the SQL owner and recover their counters with committed disk metadata.
Remove name-based request targets, separate renderer identity tokens and cursor name refresh. Cover concurrent reservations, abort, idle reconnect, catalog recovery, restart, stale IDs and old-name reuse.
Release synthetic blocking work only when its guard is dropped, including during unwinding. Exercise real maintenance timers with flat SQLite files so unrelated catalog publication does not consume the observation window, and assert that the held owner remains live.
Report completed preparation stages to the parent and apply the existing ten-second inactivity watchdog between them. Retain forced termination and reaping while avoiding an aggregate budget for process startup and durable filesystem setup.
The Windows persistence test compared a lifetime maintenance submission
counter with one. Startup maintenance could already have completed before
the database hold was established, so an old completed check plus one
pending check failed the assertion even with correct owner deduplication.
Stop the startup maintenance producer and drain the owner's FIFO through
the hold before recording a baseline and starting the observed timer.
Keep the exact one-new-check assertion and later-round reclamation of a
database created after the blocked round.
Add a case with a completed check before blocking to exercise nonzero
startup history deterministically, using the existing timer and budgets.
Snapshot database clients before waiting for owner callbacks. Holding the
registry guard across those waits can block maintenance on the single SQL
scheduler, preventing the callbacks from running.
Add a forced maintenance-overlap regression for the connection inventory;
retain the existing timeouts and physical-connection assertions.
Defer rejected Blob read completions until the owner's existing close
receipt. Resolve the saved bytes or preservation error on a blocking
worker so sealing a mailbox cannot expose a transient Closed error.
Cover Bucket clear, Service shutdown, preservation failures and reads
queued after database deletion with deterministic barriers.
Exercise native SQLite and IndexedDB directly in Windows persistent-storage CI, including doctests and complete-suite failure reporting. Normalize the catalog fixture root to the canonical Windows path.
Return immutable stored Blob/File sources without eagerly reading their bodies. Keep metadata, clone and slice lazy; route consumption through the owner, stream in chunks, and preserve handed-out data before destructive changes or retirement.
Adapt FileReader, Clipboard, WebSocket and OPFS together with the source representation. Share Fetch/XHR object-body extraction and propagate Blob and multipart read failures instead of string coercion. Preserve cancellation, ordering, backpressure, quota, permission/error semantics and realm cleanup across consumers.
Replace fixed worker shards and Lane locks with one async worker and one FIFO owner per database. Move synchronous SQL, connection work and catalog operations to the blocking pool. Drain accepted work and await final owner receipts before retirement or runtime teardown.
Use a single maintenance task with a short idle grace and at most one pending check per database, so slow owners cannot stall later rounds. Retry transient open failures in the same prepared generation while preserving terminal missing-file checks. Cover lifecycle races, low-FD creation and recovery, and single-worker host shutdown without new shared resource budgets.
Seek through bounded native result pages while preserving one JavaScript result and request FIFO. Cover key-only reads, index ordering, large values, and cancellation.
Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast.
Carry store and index names as IndexedDbName code units through WebIDL DOMString16 conversion, transaction scopes/admission, metadata, queued operations, cursors and DOMStringList. Store labels as ordered UTF-16BE BLOBs in SQLite schema v3; migrate known v1/v2 tables transactionally while preserving stable ids, records, indexes, generators and logical usage. Reuse the database-name codec and existing SQL command FIFO. Add exact surrogate/replacement/NUL/astral name operations in Window, iframe and Worker, plus native disk restart and malformed-label migration rollback/retry tests. This prerequisite supplies the lossless name model needed by the separate index/store rename setters.
Preserve database DOMString names as IndexedDbName code units across derived WebIDL conversion, native connection FIFO, SQL service identity, IDBDatabase.name and databases() results. Store database names as UTF-16BE BLOBs in SQLite schema v2. Migrate v1 TEXT metadata inside one SQL transaction after owner/name/generation validation, keeping records, stable ids, generators and logical quota accounting. Extend the existing generation-path hash with canonical WTF-8 so legacy Unicode directory paths remain unchanged. Retain the complete original Window/iframe/Worker conversion, independent-record/version, abort, deletion and cross-agent matrix. Add real disk-profile restart plus legacy migration/failure, exact queue identity, path compatibility and quota-rollback regressions. This database-name topic is independent of object-store/index rename and readonly schema attributes.
Add native SQL-owner commands for object-store and index renaming during a versionchange transaction. Resolve accepted names after preceding CREATE commands on the existing FIFO, then update only the stable store/index id label; records, index entries and key generators retain their identities. Keep name usage accounting inside the request SAVEPOINT, preserve committed snapshots until COMMIT, and let SQLite roll back aborts and quota failures. Cover duplicate and missing names, no-op/empty names, name reuse, queued create/write/rename ordering without an id round trip, and a real disk catalog restart. This is a direct-main prerequisite for the separate Web API rename work; store/index names retain the existing native TEXT model in this PR.
Keep IndexedDbManager as the owner of a required SQLite service, with committed usage and shutdown access. Remove the synchronous storage API, legacy persistence and transaction data copies.
Delete bucket IDB owner-key imports while preserving durable bucket identities, pending deletion and CacheStorage recovery. Port storage fixtures and the native benchmark to actual SQL connections and commands; retain generic key/direction tests and port cold-reopen and invalid-key transaction contracts to SQLite.
Validation: cargo fmt --all; workspace Clippy with all targets/features and -D warnings; nextest 21,815 passed,19 skipped;229 native/storage tests passed all20 stress iterations;memory/disk benchmark smoke passed.
Remove synchronous factory and transaction lifecycle fallbacks and the legacy blocked-open coordinator. Require SQL clients when creating database wrappers and refresh metadata directly from the committed snapshot.
Route exact Window and popup retirement to native SQL connections through weak references. Closing a shared-realm popup now releases its upgrade blockers without closing the opener or retaining collected wrappers.
Validation: cargo fmt --all; workspace Clippy with all targets/features and -D warnings; nextest 21,858 passed, 19 skipped; 495 related tests passed all 20 stress iterations. Preserved independent protocol baseline failures in local evidence.
Route the public manager constructor through the SQLite service, including protocol ephemeral browser contexts. Match injected bucket owners and run existing storage fixtures through native completions and the Page task dispatcher.
Reserve bounded cleanup work before dispatch, serialize duplicate tombstones under the existing quota coordinator, and resolve the accepting Page or Worker promise after SQLite and OPFS cleanup. Keep accepted deletion alive after Page retirement and protect same-name replacement buckets with their exact identity.
Publish native connection closure after notification unregistration so versionchange checkpoints cannot latch a stale blocked event. Route rejected inline cancellation through rollback and abort delivery for live owners, keeping request errors before transaction aborts.
Reserve bounded cleanup metadata and one control slot before fencing an owner. Close each database on its SQL lane, retire generation directories, cancel accepted factory requests and only then allow a new generation. Return logical connection retirement capacity at the native close receipt even when callers retain closed wrappers.
Check request SAVEPOINTs and COMMIT against committed bucket usage shared with CacheStorage and OPFS. Acquire quota on the storage worker, retain reservations through publication, and finish rejected deferred submissions only after native rollback confirmation.
Cover maximum exact WebIDL versions through native transaction rollback,
regular writes, catalog recovery and real factory events and reopens.
Assert synchronous rejection above 2^53-1 and preserve the native overflow
guard, original generation and stored records.
Resolve open/delete through the native connection FIFO and owner completion
tasks. Bind actual Page/Worker database lifetimes to native connections and
retain request leases through their event microtask checkpoint.
Separate the worker-owning Service from clonable ServiceClient handles. Wake
all factory requests on shutdown, and wait for an in-flight close receipt
before acknowledging versionchange to avoid spurious blocked events.
Roll back failed or interrupted upgrades before following opens proceed,
preserve explicit COMMIT, and cover real web APIs, Worker retirement, disk
restart, legacy-directory isolation and native shutdown failures.
Share schema snapshots in SQL writes and charge key buffers, multiEntry deduplication, and output capacity to their existing task permit. Refund failed conversions and temporary traversal state while preserving ordinary getter exceptions and inline-key rollback semantics.
Lease shared map, store and index definitions from the native metadata budget and release database mirrors with their wrappers. Preserve FIFO schema failure events, roll back failed materialization, and promote successful SQL upgrades without allocating a new mirror.