Repository navigation
fix(browser): bound memory namespace bookkeeping - #68
Merged
Jason-Doyle merged 3 commits intoDec 3, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Bound the recognised built-in memory namespace path by resident keys instead
of access/write history. Private weak capabilities compose namespace prefixes
and snapshot the root's resident keys once per clear.
Clearing now includes objects created by same-namespace peer or previous
wrappers. Other namespaces, unrelated raw keys and nested siblings remain
isolated. Unknown subclasses and other module instances keep delegated
tracked-key cleanup, including failed-delete retry behaviour.
Only
src/browser/cache.tschanges in production: 54 insertions and ninedeletions. Public options, default limits, accounting, policies, persistence
operations and stored formats are unchanged.
Evidence
The prospective protocol was published before production edits. Source and
collector were published at
f755744322f0cdf979a01bd93f08dd163808bd11beforethe first and only comparative capture, which ran from that detached commit.
The baseline's 168 history-resource failures are not corrupted reads.
Another 48 trials fail the intentionally strengthened namespace-cleanup
contract. All 48 custom-subclass controls preserve legacy forwarding/retry
behaviour. Work-phase root operation digests and copy work match in every pair.
The qualification report
contains exact tables, a graph, limits and reproduction commands. The
raw capture
retains all 768 rows, 384 pairs and 78 verified source inputs.
Local qualification passed 33 focused cases plus 242 existing controls,
54 Chromium/Firefox/WebKit cases, types, package build/exports, canonical
documentation and website repository-link checks. The expanded exact
historical suite reproduces 15 expected failures of 33; its initial 32-case
pre-edit reproduction is retained separately.
Costs and merge assessment
Score: 91/100 against the published 85/100 threshold. All local mandatory
gates pass; normal repository CI and human review remain required.
Clear scans the whole shared root and allocates a temporary key array, so
small or empty scopes can do more work. Weak registration and conditional
tracking checks add local bookkeeping. Custom fallback history remains
potentially unbounded. Other instances' pending fills are not fenced.
No heap, garbage-collection timing, latency or production-frequency benefit
is claimed.