Skip to content

release: v3.15.0 - scope api.remove() to one module's node via an… - #308

Merged
Shinrai merged 40 commits into
masterfrom
next
Aug 26, 2026
Merged

Shinrai merged 40 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Slothlet v3.15.0 Changelog

Release Date: August 2026
Release Type: Minor
Branch: release/3.15.0


Overview

Version 3.15.0 hardens and extends slothlet's runtime API-mutation surface (api.slothlet.api.add() / remove() / reload()). The headline change makes a module's moduleID character-safe: a colon — and now every other character — round-trips through add / leaves / remove / reload, closing a silent-corruption bug where an id like vine:abc mounted fine but could never be enumerated or removed (#303). Alongside it, remove() gains a surgical scoped form — remove(moduleID, apiPath) — that detaches only the nodes one module owns under a path, and both scoped removals and synthetic (in-memory) adds now survive reload().

Two correctness fixes round out the release: api.add() now refuses prototype-polluting mount-path segments (#302), and reading a built-in function member (.apply / .call / .bind) off a callable leaf no longer materializes it as a child endpoint or corrupts the leaf's record (#304).

No public API signature changed and there are no breaking changes; the runtime-mutation surface is a strict superset of 3.14.0's.


✨ Features

Character-safe moduleID resolution (#303)

A moduleID may now contain any character — :, /, ., -, everything — and still round-trip through every lifecycle operation. Previously : doubled as slothlet's internal moduleID:apiPath composite-key separator, so a namespaced id such as vine:abc or plugin:opensearch:v1 was silently unmanageable: add() returned the exact id, the leaf resolved, but leaves(id) returned [] and remove(id) / reload(id) couldn't find the mount — the ownership index was keyed under a :-truncated prefix. A consumer adopting a vine: / plugin: namespacing convention got mounts that leaked.

The internal composite key now joins with a reserved multi-character token (MODULE_ID_SEPARATOR, the string __slothlet_sep__) instead of :, and the raw base id is stored verbatim (baseModuleID) rather than recovered by splitting. Because the delimiter is a token no ordinary id contains, : — and every other character — is free. The one thing a moduleID (or an apiPath) may not contain is that reserved token itself; add() refuses it up front with a named error (MODULE_ID_RESERVED_SEPARATOR for a supplied or auto-generated id, INVALID_CONFIG_API_PATH_INVALID for an apiPath), and the guards coerce non-string ids so a numeric moduleID can't slip past. See docs/RELOAD.md.

Scoped removal: remove(moduleID, apiPath)

remove() gains an optional second argument that removes only the nodes a single module owns at or under apiPath, leaving other modules — and that same module's other mounts — untouched:

  • remove(apiPath) — removes the whole subtree at that path, regardless of which module owns each node.
  • remove(moduleID) — removes every path that module owns, anywhere.
  • remove(moduleID, apiPath) (new) — the surgical middle ground: removes/reverts only that module's nodes under the path.

It is a recursive per-node detach pinned to one module: a node the module solely owns is deleted; a shared node reverts to the owner it had before; a container is kept while another module still holds descendants under it — so remove("modA", "shop") where modA owns shop.a and modB owns shop.b drops shop.a and leaves both shop.b and the shop container standing. It never blanket-deletes the path — that stays the job of remove(apiPath). See docs/RELOAD.md.

Scoped removals and synthetic adds survive reload()

Full-instance reload() replays the operation history, and that replay now faithfully reproduces two operations it previously dropped:

  • Scoped removals are recorded with their moduleID and replayed as the two-argument remove(moduleID, apiPath) form (a module's id survives a reload — the add op records options.moduleID and it is reused on re-add), so a scoped removal stays applied after reload instead of the module reappearing.
  • Synthetic / in-memory adds (an inline function, an export map, or the { exports, … } shorthand) record their original inline value as the replay source, so reload() re-runs the identical synthetic add — a synthetic mount is no longer lost on a base reload, and it stays removable by its moduleID afterward.

See docs/RELOAD.md.


🐛 Fixes

api.add() refuses prototype-polluting mount-path segments (#302)

A mount path (and any runtime self.X = … write) whose segment is __proto__, constructor, or prototype is now refused with a validation error (INVALID_CONFIG_API_PATH_INVALID / LOOSE_SET_RESERVED_KEY) before it can assign onto the API root's prototype chain. This closes a prototype-pollution vector in add() and the self-assign surface, using the same blocked-segment set the metadata and builder layers already enforce.

Callable leaf built-in members are no longer materialized as endpoints (#304)

Reading a function's built-in members — .apply, .call, .bind, and other non-enumerable own members — off a callable leaf no longer routes through the child-wrapper path that materialized them as fake child endpoints and corrupted the leaf's ownership record. Those members now return the function's real values directly, so a leaf that is itself a function behaves like a plain function under member access.

Additional hardening

  • A scoped removal that empties a module survives a lazy reload — a materialization race during replay (tearing down a lazy node registered previously-unregistered descendants after the removal's target list was fixed) that intermittently resurrected the removed subtree is closed; the emptied module is also cleared from the ownership endpoint map, so no stale endpoint leaks until the next reload.
  • Internal coverage honesty: several /* v8 ignore */ markers justified as "never in tests" were replaced with reachability-based tests or honest, precisely-scoped ignores (the covered restore path is now exercised, not hidden).

🧪 Tests


📚 Documentation

  • NEW: docs/changelog/v3/v3.15.0.md — this changelog.
  • docs/RELOAD.md — documents the new remove(moduleID, apiPath) scoped form, character-safe moduleIDs and the reserved internal separator, and that scoped removals and synthetic adds now replay across reload().
  • README — refreshed What's New.

🔧 Dependencies


Upgrade notes

  • No breaking changes. The runtime add/remove/reload surface is a strict superset of 3.14.0. remove(pathOrModuleId) and remove(pathOrModuleId, apiPath) are both accepted; existing one-argument calls are unchanged.
  • Colon (and any character) is now safe in a moduleID. If you worked around the old bug by switching namespaced ids to hyphens (vine-abc) or adding post-remove verification, you can drop the workaround — vine:abc now round-trips through leaves/remove/reload. The only reserved token is the internal __slothlet_sep__, which a moduleID or apiPath may not contain.
  • add() is stricter about mount paths. Paths whose segment is __proto__/constructor/prototype, or which contain the reserved separator, are now rejected with a validation error rather than silently mounting. Legitimate paths are unaffected.
  • Scoped removals and synthetic adds now persist across a base reload(). If you relied on the old behavior where a scoped removal was undone (or a synthetic add was dropped) by reload(), note that both are now faithfully replayed.
👥 Contributors

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · 733b37b · Node lts/*

Shinrai and others added 15 commits August 24, 2026 04:25
A dotted or array mount path passed to api.slothlet.api.add() was split into
segments and written into the api tree without guarding prototype-chain segment
names. A path containing __proto__, constructor, or prototype therefore mutated
Object.prototype / Function.prototype globally instead of the api tree — classic
prototype pollution — with no error raised.

normalizeApiPath now refuses any of these three names in any segment position
(both the dotted-string and array path forms) with INVALID_CONFIG_API_PATH_INVALID
and the new API_PATH_REASON_UNSAFE_SEGMENT reason, mirroring the existing
reserved-name guard. Adds the reason string to all 12 language packs and
coverage for both path forms plus a no-pollution assertion.

This corrects never-intended behavior (a silent global write), so it ships as a
patch — no legitimate consumer mounts at __proto__/constructor/prototype.

Fixes #302
…reload

`:` is slothlet's internal composite "moduleID:apiPath" separator. A user (or
internal) moduleID that itself contained a colon — e.g. a `vine:abc` namespaced
convention — mounted and resolved fine and add() returned the exact id, but the
id could not be removed or reloaded by that id: removeApiComponent split the
argument on `:` and looked up only the first segment, and child wrappers of a
multi-child mount were attributed to the truncated base, so remove() left the
subtree behind. The mount was silently unmanageable.

- removeApiComponent now resolves an exact registered moduleID verbatim before
  falling back to the split-based "<base>_<hash>" / composite heuristic, and the
  no-ownership branch no longer truncates the id on ":".
- Base-id recovery no longer splits the composite: tagSystemMetadata stores the
  raw owning-module id as baseModuleID alongside the composite moduleID, and the
  two unified-wrapper recovery sites (impl:changed event, child attribution) read
  it verbatim. This also corrects internal `versionDispatcher:<path>` base ids,
  which were previously truncated to `versionDispatcher`.

The composite stays the per-path user-metadata key; only the fragile colon-split
recovery is removed. Adds colon-moduleID round-trip coverage (remove, leaves,
reload, reload-then-remove, synthetic, multi-colon, hyphen control).

Fixes #303
…dpoints

The wrapper get trap resolved a property read to `impl[prop]` and, for any
function-valued result, wrapped it as a child endpoint and registered ownership.
On a callable leaf, that meant merely READING an inherited Function.prototype
member — `apply`, `call`, `bind`, `constructor` — (or the non-enumerable own
`prototype` slot) rewrote the leaf's loader record: it flipped from
kind "function" to "namespace" and grew a phantom child (`leaf.apply`, …). A
later leaves() or re-composition then surfaced Function.prototype.apply in place
of the leaf. `leaf.apply(thisArg, args)` — a common forwarding idiom — silently
corrupted the served surface (Reflect.apply was the only safe workaround).

The get trap now returns the function's own built-in members directly instead of
wrapping them: for a function impl, a property that is not a user-added
ENUMERABLE own property is returned as-is. Genuine enumerable own children of a
callable still materialize as endpoints. Covered in eager and lazy modes,
including a callable that carries a real user child.

Fixes #304
The prototype-pollution guard added to normalizeApiPath preempted the dedicated
LOOSE_SET_RESERVED_KEY error that setOwnedProperty raises for `self.<key> = …`
assignments: setOwnedProperty calls normalizeApiPath first, so a
`self.prototype = {}` / `self['__proto__'] = obj` now threw the generic
INVALID_CONFIG_API_PATH_INVALID instead, breaking
runtime/self-assign-prototype-pollution.

Run the reserved-segment check (LOOSE_SET_RESERVED_KEY) before normalizeApiPath
so the self-assign surface keeps its own error while the api.add() mount-path
surface keeps the new unsafe-segment error. Both guards stay reachable and tested.
Address Copilot review on #305:
- The "__-prefixed still accepted" test mounted at "plugins", so it never
  exercised a __-prefixed segment. Mount "__config.value" and a
  ["prototypeName","leaf"] substring path instead, proving the guard matches
  whole segments (only __proto__/constructor/prototype), not prefixes/substrings.
- Capitalize the ru-ru API_PATH_REASON_UNSAFE_SEGMENT string to match that
  locale's sentence-cased sibling messages.
Address Copilot review on #306. The verbatim-first match resolves an exact
registered id, but the fallback still did `pathOrModuleId.split(":")[0]`, which
truncated on ':': `remove("vine:abc")` with only a "vine" module registered
matched "vine" and wrongly removed it (returned true, tore down the wrong mount).

Match the auto-generated "<id>_<hash>" form of the WHOLE id instead of a
':'-truncated prefix, so a colon-containing id never collides with a shorter
base. Adds a regression test asserting remove("vine:abc") leaves a registered
"vine" mount untouched (and the real id still removes it).
remove(id) removes every path a module owns and remove(apiPath) removes that
path's whole subtree regardless of which module owns each node, so neither can
surgically remove a single module's node at a shared path — e.g. two modules
mounted under the same namespace, or one moduleID reused across mounts.

Add an optional second argument: remove(moduleID, apiPath) resolves the first
argument strictly as a moduleID, verifies it owns apiPath, and removes only that
node — sibling modules sharing the mount and the module's other mounts are left
intact. Returns whether anything was removed; the single-argument forms are
unchanged. Routes through the existing single-node removal path.
…port

Address Copilot review on #307: add an afterAll that removes the per-run temp
fixture dir under tmp/ (it was left behind on every run), and drop the unused
`dirname` import.
…dProperty

Address Copilot review on #305: the loose-set prototype-pollution guard
allocated a fresh Set on every call and coerced via a template literal, which
throws a raw TypeError on a Symbol instead of the intended SlothletError path.
Reuse the module-level UNSAFE_PATH_SEGMENTS and coerce with String() — branchless
and Symbol-safe.
…ng on ':'

The previous fallback dropped colon handling entirely to stop remove("vine:abc")
from truncating to a registered "vine". But a leaf's __metadata.moduleID is the
internal composite "<moduleID>:<apiPath-with-slashes>", and remove(meta.moduleID)
is a supported call — dropping the split broke removing a module by that
composite (metadata-collision-modes).

Restore composite resolution safely: match a registered module whose id is the
':'-delimited prefix ONLY when it actually owns the apiPath encoded in the
suffix. That ownership check distinguishes a real composite (base owns the path)
from a bare user id that merely contains ':' (a "vine:abc" whose "abc" no "vine"
owns still resolves to nothing, not to "vine"). Verbatim and "<id>_<hash>"
matches still run first.
…h composite

Replace ':' as slothlet's internal composite separator with a reserved token
(MODULE_ID_SEPARATOR = "__slothlet_sep__"). A ':' is common in real module ids —
a `vine:abc` namespacing convention, the internal `versionDispatcher:<path>` id —
so using it as the splitter made those ids un-round-trippable and forced fragile
disambiguation. With a reserved token no module id may contain, the composite is
always unambiguous to split and ':' (and every other character) is free.

- metadata.mjs builds the composite with MODULE_ID_SEPARATOR (exported).
- add() refuses a moduleID containing the separator (MODULE_ID_RESERVED_SEPARATOR,
  all 12 locales) — the only token a module id may not contain.
- removeApiComponent recovers the base by splitting on the separator: a plain id
  (which cannot contain it) is preserved intact, a composite strips to its base.
  Drops the earlier ':'-specific verbatim/ownership-verified workarounds.
- Update the metadata format tests (system-metadata, user-metadata) that pinned
  the old `prefix:apiPath` shape to the new separator; they now assert structure
  via the imported constant. __metadata.moduleID reads e.g.
  "modm__slothlet_sep__m/leaf".

Fixes #303
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: dependencies Relates to dependency updates, version bumps, or package management labels Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

🔒 Dependency Review

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses
  • ✅ 0 denied package(s)
  • ✅ 0 package(s) with OpenSSF Scorecard score < 3

Full job summary

@cldmv-bot

cldmv-bot Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Bundle size increased

File Raw Δ Raw Gzipped Δ Gzipped
dist/lib/builders/api-assignment.mjs 15.5 kB — 3.4 kB —
dist/lib/builders/api_builder.mjs 49.0 kB +217 B (+0.4%) 9.9 kB +30 B
dist/lib/builders/builder.mjs 2.7 kB — 1.2 kB —
dist/lib/builders/modes-processor.mjs 40.6 kB — 6.9 kB —
dist/lib/errors.mjs 4.4 kB — 1.7 kB —
dist/lib/factories/component-base.mjs 1.7 kB — 866 B —
dist/lib/factories/context.mjs 1010 B — 525 B —
dist/lib/handlers/api-cache-manager.mjs 3.4 kB — 1.4 kB —
dist/lib/handlers/api-manager.mjs 59.6 kB +3.4 kB (+6.1%) ⚠️ 12.3 kB +677 B
dist/lib/handlers/context-async.mjs 4.0 kB — 1.4 kB —
dist/lib/handlers/context-live.mjs 7.0 kB — 2.2 kB —
dist/lib/handlers/framework-internals.mjs 1.1 kB — 611 B —
dist/lib/handlers/hook-manager.mjs 19.6 kB — 4.9 kB —
dist/lib/handlers/lifecycle-token.mjs 959 B — 540 B —
dist/lib/handlers/lifecycle.mjs 2.2 kB — 1010 B —
dist/lib/handlers/materialize-manager.mjs 1.2 kB — 672 B —
dist/lib/handlers/metadata.mjs 12.3 kB +119 B (+1.0%) 3.2 kB +38 B
dist/lib/handlers/module-manager.mjs 9.3 kB — 3.0 kB —
dist/lib/handlers/ownership.mjs 6.4 kB +105 B (+1.6%) 2.1 kB +18 B
dist/lib/handlers/permission-manager.mjs 15.9 kB — 4.0 kB —
dist/lib/handlers/trusted-root.mjs 3.1 kB — 1.2 kB —
dist/lib/handlers/unified-wrapper.mjs 74.6 kB +21 B (+0.0%) 13.2 kB −13 B
dist/lib/handlers/version-manager.mjs 14.4 kB — 3.7 kB —
dist/lib/helpers/caller-pinning.mjs 804 B — 496 B —
dist/lib/helpers/class-instance-wrapper.mjs 2.7 kB — 1.1 kB —
dist/lib/helpers/config.mjs 14.5 kB — 3.8 kB —
dist/lib/helpers/eventemitter-context.mjs 9.0 kB — 1.8 kB —
dist/lib/helpers/eventtarget-context.mjs 3.3 kB — 1.2 kB —
dist/lib/helpers/generate-manifest.mjs 10.6 kB — 3.3 kB —
dist/lib/helpers/hint-detector.mjs 1.3 kB — 756 B —
dist/lib/helpers/manifest-resolver.mjs 1004 B — 611 B —
dist/lib/helpers/modes-utils.mjs 1.1 kB — 696 B —
dist/lib/helpers/module-discovery.mjs 7.5 kB — 2.5 kB —
dist/lib/helpers/module-manifest-validator.mjs 8.7 kB — 1.9 kB —
dist/lib/helpers/module-sort.mjs 1.0 kB — 593 B —
dist/lib/helpers/pattern-matcher.mjs 2.6 kB — 1.2 kB —
dist/lib/helpers/platform.mjs 1.8 kB — 953 B —
dist/lib/helpers/resolve-from-caller.mjs 3.0 kB — 1.3 kB —
dist/lib/helpers/sanitize.mjs 7.7 kB — 2.3 kB —
dist/lib/helpers/scheduler-context.mjs 1.9 kB — 876 B —
dist/lib/helpers/utilities.mjs 1.7 kB — 909 B —
dist/lib/i18n/languages/de-de.json 64.9 kB +655 B (+1.0%) ⚠️ 18.6 kB +239 B
dist/lib/i18n/languages/en-gb.json 57.3 kB +581 B (+1.0%) ⚠️ 16.1 kB +171 B
dist/lib/i18n/languages/en-us.json 57.2 kB +581 B (+1.0%) ⚠️ 16.1 kB +174 B
dist/lib/i18n/languages/es-es.json 64.4 kB +600 B (+0.9%) ⚠️ 18.0 kB +212 B
dist/lib/i18n/languages/es-mx.json 64.4 kB +600 B (+0.9%) ⚠️ 18.0 kB +213 B
dist/lib/i18n/languages/fr-fr.json 65.4 kB +628 B (+0.9%) ⚠️ 18.0 kB +196 B
dist/lib/i18n/languages/hi-in.json 108.0 kB +1.0 kB (+1.0%) ⚠️ 20.3 kB +279 B
dist/lib/i18n/languages/ja-jp.json 77.1 kB +738 B (+0.9%) ⚠️ 19.0 kB +242 B
dist/lib/i18n/languages/ko-kr.json 66.8 kB +690 B (+1.0%) ⚠️ 18.1 kB +223 B
dist/lib/i18n/languages/pt-br.json 63.6 kB +601 B (+0.9%) ⚠️ 17.7 kB +210 B
dist/lib/i18n/languages/ru-ru.json 78.8 kB +964 B (+1.2%) ⚠️ 19.2 kB +250 B
dist/lib/i18n/languages/zh-cn.json 56.1 kB +519 B (+0.9%) ⚠️ 17.6 kB +197 B
dist/lib/i18n/translations.mjs 5.0 kB — 1.8 kB —
dist/lib/modes/eager.mjs 2.0 kB — 1006 B —
dist/lib/modes/lazy.mjs 2.5 kB — 1.2 kB —
dist/lib/processors/flatten.mjs 9.9 kB — 2.4 kB —
dist/lib/processors/loader.mjs 12.3 kB — 4.0 kB —
dist/lib/processors/type-generator.mjs 6.7 kB — 2.6 kB —
dist/lib/processors/typescript.mjs 10.7 kB — 4.0 kB —
dist/lib/runtime/runtime-asynclocalstorage.mjs 3.0 kB — 1.1 kB —
dist/lib/runtime/runtime-livebindings.mjs 3.1 kB — 1.1 kB —
dist/lib/runtime/runtime.mjs 2.2 kB — 800 B —
dist/lib/typegen/typegen.mjs 2.1 kB — 1.0 kB —
dist/slothlet.mjs 18.0 kB +93 B (+0.5%) 5.1 kB +11 B
Total 1.30 MB +12.0 kB 348.9 kB +3.3 kB

📊 Generated by bundle-size. Brotli sizes also measured but omitted from the table for brevity.

…rator)

Address Copilot review on #306. The doc block still described a Promise<void>
return and an underscore-based moduleID heuristic. Document the boolean return,
the options argument (scopedApiPath / recordHistory), and that the argument is
resolved by splitting on the reserved composite separator — matching the current
behavior.
…d separator

Address Copilot review on #306. add() rejected a user-supplied moduleID
containing MODULE_ID_SEPARATOR, but a default moduleID is derived from the
apiPath (buildDefaultModuleId), so mounting at an apiPath whose segment carries
the separator produced an auto-generated id containing it — breaking the "no
moduleID contains the separator" invariant that remove()/metadata splitting rely
on. Check the effective moduleID (user-supplied or auto-generated) once it is
finalized and refuse it with MODULE_ID_RESERVED_SEPARATOR. Adds a regression
test for the no-moduleID (apiPath-carries-separator) case.
Shinrai and others added 13 commits August 24, 2026 20:09
…ot the path

The previous attempt deleted the whole subtree at apiPath, which is wrong: the
two-argument form must remove only THAT module's contribution across the path,
never the entire path (that is what remove(apiPath) is for).

Scoped removal now walks every path the module owns at or under apiPath,
deepest-first, and for each either removes it (when this module was its sole
owner) or reverts it to the module that owned it before (when the node is
shared). A node still holding another module's descendant is left standing —
a container is deleted only once nothing remains under it and it is unowned. So
remove(modA, "svc.a") drops modA's leaf and keeps a sibling's svc.b;
remove(modA, "shop") on a shared container reverts the container and keeps
modB's shop.b; and a module that solely owns a subtree has the whole subtree
removed with no orphaned ownership. Tests cover the leaf, shared-container, and
sole-owned-subtree cases.
…full-path)

Address Copilot review on #306. The scoped remove(moduleID, apiPath) branch
pushed {type:"remove", apiPath} to operationHistory, but reload replay re-runs a
"remove" op as a single-argument removeApiComponent(apiPath) — a whole-path
removal — which would over-delete other modules sharing the path. A module-scoped
replay is not expressible either: replay regenerates moduleIDs, so the original
id could never be matched. Recording a whole-path remove is worse than not
recording, so drop the push (which also stops it from ignoring recordHistory). A
scoped removal therefore does not persist across a reload — documented inline; a
follow-up could add moduleID-stable replay if scoped removals need to survive
reload.
A module's id survives a reload — the "add" op records options.moduleID and
addApiComponent reuses it on re-add (user-supplied and auto-generated
<path>_<hash> ids alike; the "replay_<hash>" param the replay passed was dead,
addApiComponent has no top-level moduleID param). So a scoped removal CAN be
replayed by id, contrary to the earlier assumption.

Record scoped removals as {type:"remove", apiPath, scopedModuleID} (honoring
recordHistory), and replay them via the two-argument
removeApiComponent(scopedModuleID, {scopedApiPath}) so only that module's nodes
go — not the whole path. Verified end-to-end: after a reload, remove(modA,"shop")
keeps modA's subtree gone while modB's survives (no over-delete). Also drop the
dead replay_<hash> param and correct the replay comment. Adds a reload-
persistence test.
…estore revert

Synthetic (in-memory) adds — an inline function, an export map, or a
`{ exports, ...options }` object — now record their original inline value as the
replay folderPath instead of the internal `synthetic:<path>` sentinel, which a
full-instance reload() would otherwise resolve as a filesystem path and fail on.
A synthetic add (and a scoped removal of one) now survives reload(), keeping its
moduleID so it stays removable afterward. restoreApiPath re-adds via the same
recorded folderPath, so ownership rollback of a synthetic mount is consistent too.

Also cover the scoped-removal restore branch that had no test: a shadowed-node
case drives the revert-to-previous-owner path, and the dead else fallback now
uses `/* v8 ignore else */` with an honest unreachability comment (a node whose
removePath returns "restore" always has a concrete current value, so the else
never runs) instead of a `never exercised in tests` justification.
…with honest, reachability-based ones

The removeApiComponent apiPath+moduleID restore path was hidden behind a whole-block
`/* v8 ignore */` labelled "never triggered in tests", but its restore branch IS reachable
and already covered by the stacked-remove-by-apiPath tests — the ignore was burying tested
code. Expose it and ignore only the genuinely-dead parts precisely: `/* v8 ignore else */`
on the always-true action and value checks, and a scoped ignore on the none/return-false
tail that cannot run (in that branch moduleID is always the path's current owner, so
removePath yields "delete" or "restore", never "none").

The apiPath-only restore block and restoreApiPath are genuinely unreachable, but were
justified with "tests never trigger" wording. Restate the real reasons: the apiPath-only
branch runs only when the ownership handler is absent, which forces action "none"; and
restoreApiPath's four call sites are all in unreachable branches (each restore fallback,
which never fires because a restored node always resolves to a concrete value, and the
reload zero-affected-caches path, guarded by an INVALID_API_PATH throw and the always-present
base "." module). Consolidate restoreApiPath's scattered per-line ignores into one honest
whole-body ignore.

No behaviour change; full coverage remains 100% (the exposed restore path is covered).
…ly the moduleID (#306 review)

A user-supplied clean moduleID let a separator-bearing apiPath slip past the moduleID-only
guards, so `add("x__slothlet_sep__y", fn, { moduleID: "clean" })` was accepted and a later
`remove("seg__slothlet_sep__y")` split the argument on the reserved separator and removed the
wrong module ("seg"). Reject an apiPath containing MODULE_ID_SEPARATOR at add-time: when an
explicit moduleID is supplied the offending token is the path itself, so it surfaces as
INVALID_CONFIG_API_PATH_INVALID with a new API_PATH_REASON_RESERVED_SEPARATOR reason (added to
all 12 locales) rather than the moduleID-framed error, which the auto-generated-id guard still
covers for the no-moduleID case. Regression test added.

Also fix the pt-br HINT_MODULE_ID_RESERVED_SEPARATOR, which uniquely began with a lowercase
article ("o slothlet"); drop it so the hint starts with the brand token like the other 11
locales (the fleet convention), rather than capitalizing it.
… reload

A scoped remove(moduleID, apiPath) that empties the module intermittently failed to persist
across a reload under lazy mode: the removed subtree reappeared on next access. Root cause is a
materialization race in the reload replay. When the replayed add re-mounts a directory under
lazy, only the eagerly-known paths register (e.g. shop, shop.a, shop.a.interop and the leaf
branches); a lazy submodule's own leaves (shop.a.interop.interopCjs.*) are not yet registered.
The scoped remove computes its target list from the module's owned paths, then walks it — and
tearing down the lazy shop.a.interop node materializes it, which registers those previously-
unregistered descendants AFTER the target list was fixed. On a reload replay those late
registrations leak back and resurrect the subtree.

Fix: when a scoped removal empties the module (it owns nothing outside the scoped path), block it
from further registration BEFORE the walk via a new ownership.markUnregistered(), so register()
rejects the late materialization-driven registrations. Gated to full removals only: a partial
removal keeps sibling paths outside the scoped node that must still be able to materialize, so it
is not blocked. Reverts of shared nodes use the previous owner's id and are unaffected. Cleared on
the next reload (ownership.clear()), matching the moduleID-only remove's async-race guard.

Verified: the remove-scoped suite is 0/16 across repeated runs (was ~1/12), and a 300-iteration
in-process reload loop is clean across 8 runs (~2400 iterations) where it previously failed within
3-17 iterations every run. Eager was never affected. Full coverage remains 100%.
…non-string moduleID (#306 review)

Both add-time reserved-separator guards were gated on `typeof restOptions.moduleID === "string"`.
add() coerces moduleID with String(...) later, so a non-string truthy moduleID (e.g. a number)
skipped the guards — a separator-bearing apiPath would then slip through and reintroduce the
wrong-module removal on remove(). Coerce to string and gate on presence instead: the moduleID guard
checks String(moduleID).includes(separator) (and reports the coerced value), and the apiPath guard
fires whenever a moduleID is supplied regardless of its type. Regression test added.
Bumps the vitest group with 4 updates: [@vitest/browser](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser), [@vitest/browser-playwright](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser-playwright), [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@vitest/browser` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/browser)

Updates `@vitest/browser-playwright` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/browser-playwright)

Updates `@vitest/coverage-v8` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/coverage-v8)

Updates `vitest` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/browser"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: "@vitest/browser-playwright"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: vitest
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 10.8.1 to 10.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v10.8.1...v10.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 10.8.1 to 10.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.9.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/08de88e50294c4e01f6cae97eceeb578da55792b"><code>08de88e</code></a>
feat: handle underflow in no-loss-of-precision (<a
href="https://redirect.github.com/eslint/eslint/issues/21218">#21218</a>)
(Rithish S)</li>
<li><a
href="https://github.com/eslint/eslint/commit/55db4791120ae591d88089c43127b7b0e16866d4"><code>55db479</code></a>
feat: add checkConditionalExpressions to
<code>no-unmodified-loop-condition</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21175">#21175</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/2ba302554e7a24e9909bbdd026fd0c2d1d0d8638"><code>2ba3025</code></a>
fix: prevent unsafe <code>no-var</code> autofix with hoisted functions
(<a
href="https://redirect.github.com/eslint/eslint/issues/21213">#21213</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/8e6962219a605c5f5add10953aa31027da839194"><code>8e69622</code></a>
fix: Prevent no-var autofix when var is shadowed by catch parameter (<a
href="https://redirect.github.com/eslint/eslint/issues/21204">#21204</a>)
(Yang Hyeonjong)</li>
<li><a
href="https://github.com/eslint/eslint/commit/684b57972e1ddf25e076fb36189c60bbcacee635"><code>684b579</code></a>
fix: prefer-template invalid autofix creates a tagged template call (<a
href="https://redirect.github.com/eslint/eslint/issues/21207">#21207</a>)
(김채영)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/9ef407a3b051e74f50dc7fb8914e2bd89b3e5e53"><code>9ef407a</code></a>
docs: use eslint.config.* wherever config file names are listed (<a
href="https://redirect.github.com/eslint/eslint/issues/21216">#21216</a>)
(Marry (Subin Yang))</li>
<li><a
href="https://github.com/eslint/eslint/commit/87f66f4435c4df7f4f6815c939d153196ec03e3c"><code>87f66f4</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/585ef37516c0dc29ddb91ce2a2cdcc46fdbbd610"><code>585ef37</code></a>
docs: update architecture documentation (<a
href="https://redirect.github.com/eslint/eslint/issues/21112">#21112</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f3993b0547bace7370e9728ee7408af49d367d76"><code>f3993b0</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/ffc87d6234b2aa4335eec069e5c4d6ac04832b9e"><code>ffc87d6</code></a>
docs: fix broken links in Further Reading sections (<a
href="https://redirect.github.com/eslint/eslint/issues/21203">#21203</a>)
(Minsu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1a761e1d11b011fcb6bee181231a51010c500e4d"><code>1a761e1</code></a>
docs: update moved JSX specification links (<a
href="https://redirect.github.com/eslint/eslint/issues/21198">#21198</a>)
(Imran Mustafa)</li>
<li><a
href="https://github.com/eslint/eslint/commit/4d00ca4064ae0d1a75b604a16c68ab9f386ad388"><code>4d00ca4</code></a>
docs: update ESLint peer dependency to <code>^10.0.0</code> in shareable
configs (<a
href="https://redirect.github.com/eslint/eslint/issues/21202">#21202</a>)
(lumir)</li>
<li><a
href="https://github.com/eslint/eslint/commit/510d1a2e87bc197219f42e195ddb638d2b183a5a"><code>510d1a2</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/899dbf131ce12a194b394bb8d67307df23509d17"><code>899dbf1</code></a>
chore: update github/codeql-action action to v4.37.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21243">#21243</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/9aa38732177935bd1d7f1493732c0b67666be28a"><code>9aa3873</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21235">#21235</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/dc1e7a8416937edefe04cf836ee202a6fc03bedd"><code>dc1e7a8</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21208">#21208</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f878d212e9622da9513bcd60d2aedb2e8bb4fc8b"><code>f878d21</code></a>
ci: bump pnpm/action-setup from 6.0.9 to 6.0.10 (<a
href="https://redirect.github.com/eslint/eslint/issues/21200">#21200</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/4891e50aceadb0e886ad7d8ab5ae2beab563de85"><code>4891e50</code></a>
ci: bump github/codeql-action from 4.37.4 to 4.37.6 (<a
href="https://redirect.github.com/eslint/eslint/issues/21199">#21199</a>)
(dependabot[bot])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/c27bc926e496985eb7911c09eb60914b2e4b5d0f"><code>c27bc92</code></a>
10.9.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/fa831d95b326e6d23671d9b2df1ea5dbc64f6f34"><code>fa831d9</code></a>
Build: changelog update for 10.9.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/899dbf131ce12a194b394bb8d67307df23509d17"><code>899dbf1</code></a>
chore: update github/codeql-action action to v4.37.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21243">#21243</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/08de88e50294c4e01f6cae97eceeb578da55792b"><code>08de88e</code></a>
feat: handle underflow in no-loss-of-precision (<a
href="https://redirect.github.com/eslint/eslint/issues/21218">#21218</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9ef407a3b051e74f50dc7fb8914e2bd89b3e5e53"><code>9ef407a</code></a>
docs: use eslint.config.* wherever config file names are listed (<a
href="https://redirect.github.com/eslint/eslint/issues/21216">#21216</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9aa38732177935bd1d7f1493732c0b67666be28a"><code>9aa3873</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21235">#21235</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2ba302554e7a24e9909bbdd026fd0c2d1d0d8638"><code>2ba3025</code></a>
fix: prevent unsafe <code>no-var</code> autofix with hoisted functions
(<a
href="https://redirect.github.com/eslint/eslint/issues/21213">#21213</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/dc1e7a8416937edefe04cf836ee202a6fc03bedd"><code>dc1e7a8</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21208">#21208</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/87f66f4435c4df7f4f6815c939d153196ec03e3c"><code>87f66f4</code></a>
docs: Update README</li>
<li><a
href="https://github.com/eslint/eslint/commit/8e6962219a605c5f5add10953aa31027da839194"><code>8e69622</code></a>
fix: Prevent no-var autofix when var is shadowed by catch parameter (<a
href="https://redirect.github.com/eslint/eslint/issues/21204">#21204</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.8.1...v10.9.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint&package-manager=npm_and_yarn&previous-version=10.8.1&new-version=10.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
…t test header epochs (#306 review)

A scoped remove(moduleID, apiPath) that empties a module marked it unregistered but left its
ownership.moduleEndpoints entry behind — removePath() deletes the emptied moduleToPath set but not
the endpoint, and the moduleID-only unregister() does delete it, so the scoped full-removal leaked a
stale endpoint until the next reload. markUnregistered() now also deletes the endpoint (it is only
called when a module is fully gone). Regression test added.

Also fix the parenthesized epoch in three test-file headers: 1756022400 is 2025-08-24, not the
2026-08-24 ISO shown. (A repo-wide epoch/ISO drift exists across ~49 files; a checker/corrector is
requested upstream in CLDMV/fix-headers#31 and will be swept separately.)
@cldmv-bot cldmv-bot Bot added the type: documentation Relates to docs, README updates, guides, or inline code comments label Aug 26, 2026
@cldmv-bot cldmv-bot Bot changed the title release: v3.14.1 - refuse prototype-polluting mount-path segments in… release: v3.15.0 - scope api.remove() to one module's node via an… Aug 26, 2026
Shinrai and others added 4 commits August 25, 2026 20:29
Release docs for v3.15.0 (character-safe moduleIDs + scoped remove(moduleID, apiPath),
prototype-pollution guard on mount paths, callable-leaf built-in-member fix). Documents the
scoped remove form, the reserved internal separator, and scoped/synthetic reload replay in
docs/RELOAD.md; promotes v3.15.0 to the README What's New Latest block.
Left over from before .gitignore covered .github/instructions (committed in v3.9.0).
Removed going forward; git rm records a forward deletion, so history is unchanged.
@cldmv-bot cldmv-bot Bot added type: config Changes to repository or project configuration files semver: minor This release adds new functionality in a backwards-compatible way type: feature Implements new functionality — a PR or issue that adds a feature and removed semver: patch This release contains only backwards-compatible bug fixes labels Aug 26, 2026
Shinrai and others added 2 commits August 25, 2026 22:58
…f() surface

The public api.slothlet.lifecycle surface only forwards {on, off}
(src/lib/builders/api_builder.mjs); subscribe()/unsubscribe() exist only on
the internal LifecycleHandler and were never exposed. Fixes the primary
example, a leftover prose reference, and the API Reference table - which also
had on()'s Returns column wrong (void instead of Function, the unsubscribe
closure it actually returns).

Fixes #312
@Shinrai
Shinrai merged commit 2fa21a0 into master Aug 26, 2026
34 checks passed
@cldmv-bot
cldmv-bot Bot deleted the next branch August 26, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants