Skip to main content

Module bundle_scope

Module bundle_scope 

Source
Expand description

Which Global Memory entries follow the fleet (task #12439, “agents operate other machines”, section 4.6).

An entry’s scope is fleet (pushed to every proven machine, last write wins) or machine (this machine only). Rows live in db_bundle_scope, beside db_bundles, created on first use without a schema bump (like db_skill_optout). An entry with no row is fleet, so every new entry follows the fleet by default.

The first time the table is created, every entry that exists then gets a machine row: those entries were copied by hand between machines and may differ on purpose, so a push does not overwrite them silently. Such a row is a default, not a choice: chosen is 0 on it, and 1 on a row an owner set with Store::bundle_scope_set. A newer write from the fleet replaces an entry whose machine row was only the default (and the entry then follows the fleet); a machine row an owner chose is never overwritten.

Constants§

SCOPE_FLEET
SCOPE_MACHINE