Skip to content

v1.2.130

Choose a tag to compare

@ScottChamberlain ScottChamberlain released this 09 Nov 07:54

EverAgents 1.2.130 — the worker signs (ADR-171)

What changed

  • The agent talks to its workers with one key, the agent worker key hp_worker_key. Mission Control makes it from the master key in its vault and sends it with every inject. The body never makes one. The key travels when the agent moves to a new body.
  • Without the key, the agent pays the rent of its workers and does nothing else with them, until an inject brings the key.
  • A worker signs the commission proof message (CHD1-LIVE or CHD1-LEAD, 86 bytes) with its node key, on a read request only, and only for the agent that asked it first (worker-controller.json on the worker's disk, outside the synced state).
  • Before the agent publishes a worker's address, it checks the worker's signature against the worker's node key. A worker that serves another agent is given up and bought again once.

Which road each part takes to a body

  • Stage 1 payload (stage1-payload.zip), by update_stage1 on a running body: contract.js, ipc.js.
  • Daemon zip (everagent-daemon-1.2.130.zip), in-place update: agent.js, ipc.js, lease.js, workers.js (and daemon-package.json, the version).

The order on a running body

  1. update_stage1 with contract.js and ipc.js.
  2. An inject of the secrets from Mission Control (it brings hp_worker_key).
  3. The daemon update.