Skip to main content

Module move_consent

Module move_consent 

Source
Expand description

The decision on an agent moving to this computer (SPEC_MOVE_AN_AGENT_TO_ANOTHER_COMPUTER section 6.3, step D of the build). An offer that passed its checks is filed here as the agent_move_in sensitive request: this computer’s super agent reviews it, and the person sees a banner naming the agent, where it comes from, who asked, what it carries and how big it is, with a countdown they can stop. The banner’s words come from the source’s signed summary, never from anything the offer carries outside it, and say the agent’s history is carried as it is.

The staging area takes no chunk until the move is allowed, and the move is allowed only by this route:

  • the countdown ending unvetoed runs run_after_countdown, which records the allowance for the attempt that was shown (a later attempt is a new offer and is asked about again);
  • a veto, a denial, a withdrawal or an expiry is noticed by reconcile the next time the source asks where the move stands, and ends the move there.

Structs§

Held 🔒
What the request stands for.

Constants§

HOLD 🔒
How long a request is kept before its allowance is let go: past the longest countdown and the offer’s own lifetime.
MAX_HELD 🔒
Moves waiting for an answer at once; the staging area holds fewer, so this is only a bound on the table.

Functions§

area_of 🔒
ask 🔒
File the request for the person to decide on the offered move, as the agent that made the offer.
facts 🔒
The facts of the banner, from the signed summary.
fit 🔒
held 🔒
reconcile 🔒
If the request for this move ended without allowing it, end the move.
run_after_countdown 🔒
The runner: the countdown ended unvetoed, so the move the person was shown is allowed.
settle 🔒
Ends the moves whose request ended without allowing them (vetoed, denied, withdrawn, expired), and lets go of the entries that waited too long. only limits it to one move: the source asking where it stands.
size_text 🔒