host

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package host will be the helper-process side of the sandbox: the goja runtime, the platform client and allow-listed outbound HTTP.

Role

workers module, adapter layer. The hidden worker-host subcommand of cmd/artifactweave calls its Main, so a script runs in a helper process and never in the server (target layout, lines 692 and 695).

Inputs

None yet. Planned: execution frames from the parent over standard input (target layout, line 690).

Outputs

None yet. Planned: execution results framed over standard output. A helper runs one execution at a time, so its heap growth during a run is that run's allocation and a memory cap can be enforced (decision 0026).

References

  • Target layout: docs/research/architecture-options/5-modular-monolith.md, "Workers (P17), a roadmap domain end to end", lines 692 and 695.
  • Plan: docs/implementation/plan.md#p17-workers.
  • Context map: the workers row, restated in the module root's doc.go; https://github.com/weaveplatform/artifactweave/issues/958 holds the map.
  • Decision 0026: docs/research/decisions/0026-workers-runtime.md.
  • Decision 0044: docs/research/decisions/0044-modular-monolith-migration.md, "Placeholders".

Status

Placeholder: implemented by P17.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL