Denoise external-module contracts are untyped any and break silently on an asset bump
#26
Closed
opened 2026-09-12 02:13:11 -04:00 by jared
·
0 comments
No Branch/Tag Specified
lotus
chore/dev-tool-security
feat/expected-devices
lotus-upstream-v0.28.0
feat/call-summary-details
feat/soundboard-mic-mix
feat/mobile-self-tile
feat/screenshare-audio-state
feat/decorations-origin
docs/lotus-call-error
lotus-stall-retry
docs/lotus-protocol
lotus-soundboard-not-permitted
lotus-mic-sampler-churn
lotus-call-error
fix/audio-output-list
lotus-notify-none
lotus-screenshare-prompt
lotus-call-origin
v0.28.0-lotus.4
v0.28.0-lotus.3
v0.28.0-lotus.2
v0.28.0-lotus.1
v0.25.0-lotus.29
v0.25.0-lotus.28
v0.25.0-lotus.27
v0.25.0-lotus.26
v0.25.0-lotus.25
v0.25.0-lotus.24
v0.25.0-lotus.23
v0.25.0-lotus.22
v0.25.0-lotus.21
v0.25.0-lotus.20
v0.25.0-lotus.19
v0.25.0-lotus.18
v0.25.0-lotus.17
v0.25.0-lotus.16
v0.25.0-lotus.15
v0.25.0-lotus.14
v0.25.0-lotus.13
v0.25.0-lotus.12
v0.25.0-lotus.11
v0.25.0-lotus.10
v0.25.0-lotus.9
v0.25.0-lotus.8
v0.25.0-lotus.7
v0.25.0-lotus.6
v0.25.0-lotus.5
v0.25.0-lotus.4
v0.25.0-lotus.3
v0.25.0-lotus.2
v0.25.0-lotus.1
v0.20.1
Labels
Clear labels
a11y
area: audio-pipeline
area: build-publish
area: deafen
area: decorations
area: denoise
area: livekit
area: mobile-ui
area: soundboard-inject
area: upstream-sync
area: widget-actions
bug
dependencies
docs
enhancement
performance
priority: critical
priority: high
priority: low
priority: medium
research
security
tech-debt
ux
Accessibility
Fork area: audio-pipeline
Fork area: build-publish
Fork area: deafen
Fork area: decorations
Fork area: denoise
Fork area: livekit
Fork area: mobile-ui
Fork area: soundboard-inject
Fork area: upstream-sync
Fork area: widget-actions
Something is not working
Package versions and advisories
Docs wrong or missing
New feature
Audio pipeline cost, re-render storms, leaks
Data loss, security hole, or crash on a main path
Broken feature or serious usability problem
Minor issue or polish
Wrong behaviour in an edge case or notable degradation
Origin checks, capability leaks, media/key handling
Code health, fragile patterns
Usability or visual inconsistency
Milestone
No items
No Milestone
EC fork audit 2026-09 · Medium & Low
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/element-call#26
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Severity: low · Type: tech-debt · Confidence: high
Location:
src/lotus/lotusDenoiseProcessor.ts:341-344,347-360Problem
Both dynamic-import paths consume completely untyped modules:
mod.createNoiseSuppressionAudioWorklet(ctx, …) as MlNodeandnew mod.DeepFilterNet3Core({...})/core.createAudioWorkletNode(ctx) as AudioNode. There is no runtime shape check, and the assets are not bundled by this repo at all — cinny'svite.config.js lotusDenoise()plugin copies them from three separate upstream packages (lotusDenoiseProcessor.ts:38-43). A version bump in any of those (renamed export, changed constructor options, differentassetConfigkey) type-checks fine here and fails at runtime, where the only consequence is the swallowed warn from the previous finding. The same applies to themic.getProcessor()/setProcessorLiveKit surface andmic?.senderinlotusQuality.ts:64, which rely on internals that areLocalTrack-typed only viaascasts.How to trigger
Bump
deepfilternet3-noise-filteror@workadventure/noise-suppressionin cinny and rebuild; denoise silently stops working with no CI signal.Suggested fix
Declare minimal local interfaces for the two module shapes, assert the expected exports exist at runtime with a clear thrown error, and add the already-suggested integration smoke check (
GET .../denoise/rnnoise.wasm == 200, plus the DFN/DTLN entry points) to CI.Filed from the September 2026 audit (branch
lotus).