Skip to main content

Module safehouse

Module safehouse 

Source
Expand description

The safe-house contract, as Guatiao kinds: where a Mission’s Agent works.

A SafeHouseProvider turns an Operation’s source (a Git checkout, a plain directory, …) into an isolated working directory for one Mission and hands back a SafeHouseRun the caller owns. The runs where the Agent’s Run runs, so a Station loads it; the headquarters never does. Slot order is the ABI: append, never reorder.

A provider without history (SafeHouseInfo::supports_history is false) returns no Changes; cover checks then report that the work cannot be checked instead of passing it.

Structs§

Change
One change made since the base: a commit, for a version-control provider.
ChangeLog
The changes since the base, newest first.
CheckpointFile
One file a save commits with exactly its text. Crosses as a value, inside a CheckpointSpec.
CheckpointSpec
How to save a checkpoint. Crosses as a value.
SafeHouseCheckpoint
Work in progress saved where another Station can fetch it: a commit pushed to a branch.
SafeHouseClone
Where a cloned safe house goes. Crosses as a value, inside a SafeHouseSpec.
SafeHouseDiff
The change a safe house holds since its base.
SafeHouseExports
What of a safe house’s work exists nowhere else.
SafeHouseInfo
Where an open safe house is and what it can tell.
SafeHouseReport
What a safe house held when the Mission ended, attached to the Mission record.
SafeHouseSpec
What to open. Crosses as a value.

Traits§

SafeHouseProvider
Makes safe houses for Missions.
SafeHouseRun
One Mission’s safe house. Every slot takes &self.