Commit 8ba6bee
committed
fix(remote-worker): install the capabilities the leaf advertises
cmd/worker/main.go's `probed` list advertises bash, rg, base64, file, python3 and
git as this worker's Hello.capabilities, and its comment states "the pool will
eventually match on these, so they must be true". Three of the six were not
installed: on a real VM the leaf reported `caps=[bash base64 file]`, advertising a
set it could not honour.
It also gates measurement fidelity. Spec §2.3's duty bases were derived from
workloads whose git operations cost ~470ms, so without git in the sandbox an E8 tool
call can only be a ~0ms no-op -- the hands tier is exercised structurally but carries
no load, and the measured duty cycle then describes a cheaper workload than the basis
it is compared against.
Adds git and python3 to both image definitions. `rg` stays absent deliberately:
ripgrep is not in the UBI 9 repositories, so honouring it means EPEL or vendoring a
binary into a demo image. Recorded as a known gap rather than a silent one -- whoever
needs capability-matched scheduling should add it or shorten `probed`.
The DL3041 ignore directives were repositioned to abut their RUN lines, since a
comment block between them silences nothing.
Verified: hadolint and the rest of make lint clean, remote-worker go tests pass.
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>1 parent 5d553ca commit 8ba6bee
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
30 | | - | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | | - | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
0 commit comments