Skip to content

Harden codebase internals with behavior-neutral refactors - #11

Merged
mamonth merged 1 commit into
mainfrom
chore/codebase-hardening-refactors
Sep 7, 2026
Merged

mamonth merged 1 commit into
mainfrom
chore/codebase-hardening-refactors

Conversation

@mamonth

@mamonth mamonth commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Bound the compiled-schema cache so a long-running mock fed distinct dynamic examples cannot leak memory; index schema prefixes by channel once so push and built-in trigger firings resolve in O(1); add Has()/connection() to the ws registry so Server stops poking lock internals; assign monotonic request ids instead of UnixNano strings; fold selectAndGenerateResponse's five returns into a responseResult with an already-parsed status code; guard recursive templating depth; dedupe config normalization; and narrow the async event/interval surface behind an asyncDriver seam with full constructor composition so eventBus is never left partially wired.

External behavior, specs, docs and existing tests are unchanged; new unit tests cover the cache bound, channel-prefix index, injection seam, request-id uniqueness and the depth guard.

Bound the compiled-schema cache so a long-running mock fed distinct dynamic
examples cannot leak memory; index schema prefixes by channel once so push
and built-in trigger firings resolve in O(1); add Has()/connection() to the
ws registry so Server stops poking lock internals; assign monotonic request
ids instead of UnixNano strings; fold selectAndGenerateResponse's five
returns into a responseResult with an already-parsed status code; guard
recursive templating depth; dedupe config normalization; and narrow the
async event/interval surface behind an asyncDriver seam with full
constructor composition so eventBus is never left partially wired.

External behavior, specs, docs and existing tests are unchanged; new unit
tests cover the cache bound, channel-prefix index, injection seam, request-id
uniqueness and the depth guard.
@mamonth
mamonth merged commit 77f0cd2 into main Sep 7, 2026
6 checks passed
@mamonth
mamonth deleted the chore/codebase-hardening-refactors branch September 7, 2026 09:10
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