[feature request] Doctor does not probe the Assay judgment-layer engine
What happened
Doctor does not probe the Assay judgment-layer engine. My CLOUDFLARE_API_TOKEN had no Workers AI permission, so Engine.ts probe failed with HTTP 401 and Doctor never said so; I found it only by running the probe by hand. Adding Account · Workers AI · Edit to the token fixed it.
Summary
LIFEOS/TOOLS/Doctor.ts checks a lot, but not whether the judgment-layer engine (Clef-omni on Workers AI, LIFEOS/ASSAY/Engine.ts) actually answers.
What happened: after the 8.761.0 upgrade, the single CLOUDFLARE_API_TOKEN that resolveCredentials() reads worked for Workers deploys but lacked the Workers AI permission. bun LIFEOS/ASSAY/Engine.ts probe failed with HTTP 401 ("Authentication error", code 10000). The only trace was an error: "http-401" row in MEMORY/OBSERVABILITY/assay.jsonl. Since an engine failure is "no flag" for route-fit (RouterSystem.md), the route-fit check and the other judgment-layer callers would have stayed silent too, and Doctor reported nothing.
Fix on my side: add Account · Workers AI · Edit to the token. After that the probe answered in 291 ms and RouteCheck.ts fit flagged a deliberately mis-routed feature.
Request: a Doctor check that runs Engine.ts probe (one fixed PUBLIC sentence, a fraction of a cent) and, on 401/403, says "the Cloudflare token lacks Workers AI permission" with the fix: add Account · Workers AI · Edit to the token in CLOUDFLARE_API_TOKEN. A missing key and a network failure could get their own messages.
Details
- Kind: feature request
- LifeOS version: 8.761.0
Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.
[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @IvanLeontev-stack for the request. Doctor now has an assay-engine capability, built to the shape of the PR from @hjbrandt: it is off without keys, the probe goes through ask() with the caller set to probe, and a 401 or 403, a missing key, a disabled engine and a timeout or network failure each get their own message. --network runs the live probe. This lands in the next release.