Skip to content

Coordinate shared custom persistent cache namespaces - #71

Merged
Jason-Doyle merged 3 commits into
mainfrom
experiment/shared-persistent-namespace-ordering
Dec 3, 2026
Merged

Jason-Doyle merged 3 commits into
mainfrom
experiment/shared-persistent-namespace-ordering

Conversation

@Jason-Doyle

Copy link
Copy Markdown
Owner

Change

Coordinate NamespacedPersistentObjectCache wrappers sharing the exact same immediate delegate object and encoded namespace in one loaded module. Serialise registry updates, order complete same-key mutations, and use namespace cleanup barriers. Failed cleanup drains started deletes and preserves the first observed original rejection reason before releasing its barrier. Idle coordination state is removed.

The default IndexedDB path, bounded-custom-delegate rejection, public options, stored formats and dependency manifests are unchanged.

Qualification

The prospective protocol was published before production edits. Source and collector were pushed before the detached 768-row capture against exact merged baseline e615fda1ef8c091070e9c2970fa86ffe7b32e887.

  • Declared contracts: historical 120/384, candidate 384/384. The distinct-delegate scope control intentionally retains uncoordinated orphans.
  • Focused cases: historical 44 pass/98 expected failures; candidate 142/142 plus 354 existing controls pass.
  • Native coverage: 54/54 across Chromium, Firefox and WebKit, including six connection-factory cases; two additional packed cleanup probes pass.
  • Independent replay verifies all 9,552 primitives, 384 pairs, logical/cold states, memory accounting, CSV and graph. All 81 source inputs match committed blobs.
  • Work-phase calls and memory copies remain 3,264 and 696 per arm. Correctly tracked verification cleanup performs 48 additional payload deletes.
  • Types, package/export consumer checks, canonical documentation and repository links pass. Normal exact-head CI and CodeQL remain required.

Report, exact tables, graph and raw evidence

Merge-worthiness: 92/100 against the predeclared 85/100 threshold, subject to all hard gates and review. This is an engineering judgement, not a probability.

Scope and costs

Shared registry contention, queued references, cleanup barriers and failure-drain delay are real costs. Delegates need accurate completion promises and non-reentrant mutation behaviour; inputs must remain stable until settlement. Distinct delegate identities, module copies, tabs, direct writes, reads, shared-memory invalidation and durable logout remain outside the guarantee. No latency, throughput, heap or production-frequency benefit is claimed.

Fix prospective state, isolation, progress, failure-drain, active-bookkeeping and evidence gates for cooperating wrappers sharing one custom delegate object.
@Jason-Doyle
Jason-Doyle merged commit 7184ef9 into main Dec 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant