Expand description
Worker-process boundary for lean-rs host workloads.
LeanWorker is the public process-boundary supervisor. It hides child
spawning, pipe management, protocol framing, child exit parsing, and cleanup
behind a small lifecycle API. The protocol module is private; callers should
not learn frame bytes or restart bookkeeping. LeanWorkerRestartPolicy
cycles the child process for memory reset; it does not change the
in-process lean-rs-host memory contract.
Structs§
- Lean
Worker - Supervisor for one
lean-rs-workerchild process. - Lean
Worker Batch Fingerprint - Stable cache-key-relevant facts for a planned batch.
- Lean
Worker Bootstrap Check - One bounded worker bootstrap finding.
- Lean
Worker Bootstrap Report - Structured result of worker bootstrap checks for one capability builder.
- Lean
Worker Cancellation Token - Parent-side cancellation token for worker-session requests.
- Lean
Worker Capability - A worker-backed capability with its Lake target built and worker started.
- Lean
Worker Capability Builder - Builder for a worker-backed Lean capability session.
- Lean
Worker Capability Fact - One named capability advertised by capability metadata.
- Lean
Worker Capability Metadata - Generic metadata reported by one downstream capability package.
- Lean
Worker Child - Locator for an app-owned worker child executable.
- Lean
Worker Command Metadata - One downstream command advertised by capability metadata.
- Lean
Worker Config - Configuration for starting a
lean-rs-workerchild process. - Lean
Worker Data Row - One downstream-owned JSON row delivered over a worker request.
- Lean
Worker Diagnostic - Serializable diagnostic returned by worker elaboration and kernel checks.
- Lean
Worker Diagnostic Event - One diagnostic message delivered over a worker request.
- Lean
Worker Doctor Diagnostic - One structured capability health diagnostic.
- Lean
Worker Doctor Report - Capability health report returned by a downstream doctor export.
- Lean
Worker Elab Options - Bounded elaboration options for worker-session requests.
- Lean
Worker Elab Result - Serializable elaboration result returned over the worker boundary.
- Lean
Worker Exit - Rendered child-process exit information.
- Lean
Worker Import Plan Config - Capability and session requirements used to plan worker batches.
- Lean
Worker Import Planner - Planner for worker-pool import/session batches.
- Lean
Worker Json Command - A non-streaming downstream JSON command.
- Lean
Worker Kernel Result - Serializable kernel-check result returned over the worker boundary.
- Lean
Worker Module Work - One module-sized unit of planned worker work.
- Lean
Worker Plan Metadata Expectation - Metadata expectation carried into planned session keys.
- Lean
Worker Planned Batch - One stable pool-execution batch.
- Lean
Worker Pool - Local pool for worker-backed capability sessions.
- Lean
Worker Pool Config - Configuration for a local
LeanWorkerPool. - Lean
Worker Pool Snapshot - Summary of public pool state.
- Lean
Worker Progress Event - One progress event observed by the parent from a worker request.
- Lean
Worker Restart Policy - Policy for cycling a worker child before the next request.
- Lean
Worker Runtime Metadata - Protocol/runtime facts reported by the worker child during handshake.
- Lean
Worker Session - Narrow host-session adapter over a live
LeanWorker. - Lean
Worker Session Config - Configuration for opening one host session inside a worker child.
- Lean
Worker Session Key - Worker reuse key for a capability-backed session.
- Lean
Worker Session Lease - Borrowed lease for running typed commands on a compatible worker session.
- Lean
Worker Stats - Snapshot of worker lifecycle counters.
- Lean
Worker Stream Summary - Summary returned after a worker data-stream export completes.
- Lean
Worker Streaming Command - A streaming downstream JSON command.
- Lean
Worker Typed Data Row - One typed downstream row decoded from a worker data row.
- Lean
Worker Typed Stream Summary - Typed summary returned after a streaming command reaches terminal success.
Enums§
- Lean
Worker Bootstrap Diagnostic Code - Stable worker bootstrap diagnostic codes.
- Lean
Worker Bootstrap Severity - Severity of one worker bootstrap finding.
- Lean
Worker Doctor Severity - Severity for a capability doctor diagnostic.
- Lean
Worker Error - Errors reported by the worker supervisor.
- Lean
Worker Import Plan Error - Import planning diagnostics.
- Lean
Worker Kernel Status - Kernel-check status returned over the worker boundary.
- Lean
Worker Restart Policy Class - Coarse restart-policy class used in pool session keys.
- Lean
Worker Restart Reason - Reason recorded for the latest worker cycle.
- Lean
Worker Status - Public lifecycle state for a worker child.
Constants§
- LEAN_
WORKER_ REQUEST_ TIMEOUT_ DEFAULT - Default deadline for one worker request after startup.
- LEAN_
WORKER_ REQUEST_ TIMEOUT_ LONG_ RUNNING - Suggested deadline for long-running worker requests.
Traits§
- Lean
Worker Data Sink - Parent-side sink for downstream data rows produced by one worker request.
- Lean
Worker Diagnostic Sink - Parent-side sink for diagnostics produced by one worker request.
- Lean
Worker Progress Sink - Parent-side sink for worker progress events.
- Lean
Worker Typed Data Sink - Parent-side sink for typed downstream data rows produced by one command.
Functions§
- run_
worker_ child_ stdio - Run the worker child process on stdin/stdout.