From 3106ad5d637ca2bffce70f4e4cbb60efeee5a087 Mon Sep 17 00:00:00 2001 From: Necco Ceresani Date: Thu, 8 Oct 2026 10:41:12 -0400 Subject: [PATCH] Correct the map kind spellings in AGENTS.md The list used hyphenated kinds (hash-map, lru-hash-map, percpu-*, lpm-trie, bloom-filter). The daemon accepts only the underscore and no-separator forms (translate_bind_spec in crates/daemon/src/core/blobs/manager/mod.rs), so an agent that follows this file gets "No service for map". Both cold-agent runs scaffolded with yeet new on 2026-10-08 hit it. --- template/AGENTS.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/template/AGENTS.md b/template/AGENTS.md index 1bc4fa1..6864c26 100644 --- a/template/AGENTS.md +++ b/template/AGENTS.md @@ -270,8 +270,11 @@ const hist = new ArrayMap(ctl, "runq_hist"); // poll: await hist.lookup(i) const knobs = new DataSec(ctl, "probe.data"); // write: knobs.patch({ field: … }) ``` -`kind` values: `ringbuf`, `hash-map`, `lru-hash-map`, `array`, `percpu-*`, -`lpm-trie`, `bloom-filter`, `data`. In `.bind()`, **every key except `kind` is +`kind` values: `ringbuf`, `hash`, `lru_hash`, `array`, `percpu_hash`, +`lru_percpu_hash`, `percpu_array`, `lpm_trie`, `bloom_filter`, `data`. Use +underscores: the daemon also takes `hash_map` and `hashmap` forms but rejects +hyphenated ones, and the error you get is `No service for map`. +In `.bind()`, **every key except `kind` is a top-level option** (`btf_struct`, `capacity`, …) — nesting under `opts` fails silently. Map methods: `lookup/update/delete/entries/lookupBatch` (hash), `lookup/update` (array), `read/patch` (data-sec), per-CPU lookups return an