From c8fbc7587d5898a13cb834fdac05189d748e3170 Mon Sep 17 00:00:00 2001 From: Yishuai Li Date: Sun, 8 Mar 2026 04:55:13 +0800 Subject: [PATCH 1/2] docs(README): document WORKER_ENABLED, WORKER_DOMAINS, WORKER_MAX_LOAD Co-Authored-By: Claude Sonnet 4.6 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index b7f5ddf..5a0a4cf 100644 --- a/README.md +++ b/README.md @@ -250,6 +250,20 @@ When the evolver detects persistent failures (failure loop or recurring errors w Requires `GITHUB_TOKEN` (or `GH_TOKEN` / `GITHUB_PAT`) with `repo` scope. When no token is available, the feature is silently skipped. +### Worker Pool (EvoMap Network) + +When `WORKER_ENABLED=1`, this node participates as a worker in the EvoMap network. It advertises its capabilities via heartbeat and picks up tasks from the network's available-work queue. Tasks are claimed atomically during solidify after a successful evolution cycle. + +| Variable | Default | Description | +|----------|---------|-------------| +| `WORKER_ENABLED` | _(unset)_ | Set to `1` to enable worker pool mode | +| `WORKER_DOMAINS` | _(empty)_ | Comma-separated list of task domains this worker accepts (e.g. `repair,harden`) | +| `WORKER_MAX_LOAD` | `5` | Maximum number of concurrent tasks this worker will accept | + +```bash +WORKER_ENABLED=1 WORKER_DOMAINS=repair,harden WORKER_MAX_LOAD=3 node index.js --loop +``` + ## Star History [![Star History Chart](https://api.star-history.com/svg?repos=autogame-17/evolver&type=Date)](https://star-history.com/#autogame-17/evolver&Date) From b552edda5ee051d078f8d8bf7b97ca9057310cca Mon Sep 17 00:00:00 2001 From: Yishuai Li Date: Sun, 8 Mar 2026 05:04:45 +0800 Subject: [PATCH 2/2] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a0a4cf..66d396c 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ When `WORKER_ENABLED=1`, this node participates as a worker in the EvoMap networ |----------|---------|-------------| | `WORKER_ENABLED` | _(unset)_ | Set to `1` to enable worker pool mode | | `WORKER_DOMAINS` | _(empty)_ | Comma-separated list of task domains this worker accepts (e.g. `repair,harden`) | -| `WORKER_MAX_LOAD` | `5` | Maximum number of concurrent tasks this worker will accept | +| `WORKER_MAX_LOAD` | `5` | Advertised maximum concurrent task capacity for hub-side scheduling (not a locally enforced concurrency limit) | ```bash WORKER_ENABLED=1 WORKER_DOMAINS=repair,harden WORKER_MAX_LOAD=3 node index.js --loop