Module execution

Module execution 

Source
Expand description

Shared scheduler boundaries around the owned element transaction. Worker caches, batch source ownership and output encoding remain with the callers.

Structs§

JobSpan
A job’s original byte span. Cached browser decode may return without reading it, so keyword recovery must use a checked slice even after successful decode.
RouterCaches
Model-owned cache handles, transferred into the router without extra clones.
RouterDrain
Router-wide counters are taken once per native job or once per browser batch. Per-element CSG failures and unsupported-item audit remain at their existing owned-production/publication boundaries.

Enums§

JobEntity
No new allocation for native jobs; browser cache hits keep their Arc.
SchedulerPolicy
Native jobs choose the model-wide template; serial browser batches choose their first occurrence. The policy also selects uncached versus warm decode.

Functions§

build_router
Arm a router completely before the first owned product leases it. Native callers forward the model material-layer index; browser callers retain their merge toggle. Indexed-colour exclusion is meaningful only with instancing armed.
decode_job
Shared decode admission. Error accounting stays scheduler-scoped: per-job decoder on native, cumulative refused-record set on a browser batch.
job_type
Native scanning already resolved the exact keyword. Browser jobs carry only spans and recover it here, including on warm-decoder cache hits (#3179).