Skip to main content

Module seed

Module seed 

Source
Expand description

remote.api adapter for a Cognitum Seed (ADR-100 section 5, option b): drives the Seed’s own HTTP API instead of running WeftOS on it.

Seed constraints honored here:

  • only store cogs the operator pinned by id and version install (our signed packages go to nodes we control, never the store path);
  • at most SEED_CONCURRENCY_CAP cogs run at once;
  • installed cogs auto-start, so load stops a cog it just installed and start is the explicit transition;
  • a console run needs the feed to itself (UDP 5006 contention): the adapter lists running cogs as Preemptions, the host gates and stops each, runs the console cycle, then restarts them;
  • unload uninstalls only a cog this adapter installed.

Governance runs in WeftOS at the adapter (super::WorkloadHost).

Re-exports§

pub use super::seed_types::API_TIMEOUT;
pub use super::seed_types::CONSOLE_TIMEOUT;
pub use super::seed_types::InstalledCog;
pub use super::seed_types::LOG_LINES;
pub use super::seed_types::SEED_CONCURRENCY_CAP;
pub use super::seed_types::SEED_ID;
pub use super::seed_types::SEED_REGISTRY;
pub use super::seed_types::SeedConfig;
pub use super::seed_types::SeedPin;

Structs§

SeedApiRuntime
The Seed runtime adapter.