Skip to main content

Start

How vigilo worker start runs a long-lived worker consumer that processes chunk-ready broker messages until shutdown, reopening the broker consumer after transient RabbitMQ interruptions.

Chunk-ready broker messages carry run_id, run_shard, chunk_id, database_alias, and write_epoch. The worker resolves the hinted pool and claims the chunk only when the execution database accepts that epoch locally. Stale hints are refreshed from control metadata; valid hints avoid a control-database route lookup.

By default, one worker process keeps one chunk in flight at a time. Set --max-inflight-chunks or VIGILO_WORKER_MAX_INFLIGHT_CHUNKS to allow multiple chunk messages to be processed concurrently by the same process. RabbitMQ prefetch is set to the same value, so the worker only reserves chunk messages it has capacity to run.

Each worker process uses a stable worker_id for attempts it allocates. While processing a chunk, it renews the chunk lease and the running attempt leases; terminal transitions require the current attempt tokens and a live attempt lease for that worker.

Workers read assigned case segments through a shared, bounded immutable-byte cache and fetch misses through the storage adapter. Every use verifies complete files and exact membership before execution evidence is persisted in the routed database. Run Preparation describes cache ownership, limits and failure handling.

Evaluator HTTP uses the attempt's frozen permission snapshot and host-owned credential bindings. The host bounds request count, bytes and time; cancellation releases pending HTTP work. No per-request database query is required.

Execution Flow​

Decision Flow​

Workers acknowledge terminal chunks after their local settlement receipt commits. Coordinator aggregation and run finalization proceed asynchronously; committed partial evidence is retained.

Agent calls enforce worker byte ceilings and optional lower profile limits before sending requests. Response reads stop on byte-limit overflow, including HTTP error responses; typed invocation failures either settle immediately or schedule a durable retry with bounded backoff and accepted Retry-After advice. See agent HTTP limits.

Credential references resolve through the operator-configured local or service provider before the agent call. Resolved headers are transient; provider failures follow typed terminal or durable retry policy. Credential-bearing calls disable redirects. See Agent Credentials.