Skip to content

enable drowse steering and exact readouts in webllm - #1

Merged
a9lim merged 1 commit into
mainfrom
codex/drowse-runtime
Sep 7, 2026
Merged

a9lim merged 1 commit into
mainfrom
codex/drowse-runtime

Conversation

@logitsml

@logitsml logitsml commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add Drowse's browser hook bridge, structured steering, residual capture, geometry, exact SAE/J-lens readouts, and GPU lifecycle handling.
  • Extend generation and worker protocols for raw completions, exact sampling, custom roles, prefix scoring, cancellation, and runtime state handling.
  • Include the complete WebLLM overlay change set from Drowse PR #53, integrated onto this fork's current main.
  • Preserve newer upstream structural-tag, worker, example-safety, and NaN-validation fixes. Reconcile the two conflicting source files so Drowse retains finite-temperature validation and its intentional negative-temperature/zero-top-p deterministic-sampling boundaries; retain upstream NaN regression coverage with the corresponding Drowse error messages.
  • Apply the repository's formatter to changed TypeScript files.

Verification

  • Verified the original overlay's pinned base, patch digest, and all 27 output-file digests in a separate pinned-base checkout before integrating.
  • npm ci --ignore-scripts: passed; audit reported zero vulnerabilities.
  • npm run lint: passed.
  • npm test -- --runInBand: 20 suites, 329 tests passed.
  • npm run build: passed; Rollup retains the external ws warning.
  • git diff --check: passed.

Release boundary

This is a source PR, not a new runtime release. Integration on newer upstream code and formatting mean its files are not byte-identical to Drowse's pinned overlay. The existing vendored archive, source lock, and published model artifacts in Drowse remain unchanged. Adopting a build from this branch requires a new pinned artifact closure and physical-browser validation; neither package publication nor that release migration is part of this PR.

Companion PRs

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.

3 participants