NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

`status` inference health can only attest a fresh exec's environment, never the serving process's — surface process-level (self-reported) health

Open Hokonoken opened this issue 4 months ago • 14 comments

Problem Statement

This is Stage B of the scope split proposed in #6846 (comment): the structurally distinct gap @mikemason identified there, filed separately so it doesn't block the Stage A probe-vocabulary work.

Every inference health signal status/doctor can produce today is measured from a freshly spawned sandbox exec (buildSandboxInferenceRouteProbeArgs, src/lib/actions/sandbox/connect-inference-route-probe.ts:82, returns ["sandbox", "exec", ...]). The file itself documents why that exec is trustworthy: "OpenShell injects the per-sandbox trust bundle into each exec process" (connect-inference-route-probe.ts:23). That injection is exactly what makes the probe blind to the process it stands in for: the long-running agent gateway serving real traffic has whatever environment it was started with, and no probe running in a fresh exec can attest it.

The environment contract at stake is not just the CA bundle. On a live openclaw sandbox the serving process depends on, among others: NODE_EXTRA_CA_CERTS, SSL_CERT_FILE/CURL_CA_BUNDLE, HTTPS_PROXY/NODE_USE_ENV_PROXY (all egress goes through the in-sandbox proxy), and NODE_OPTIONS preloads. In the reproduction below, a serving process without that contract cannot even resolve inference.local — while every status leg stays green.

@mikemason hit this organically (#6846 discussion): after working around #6635 by hand-starting the gateway, NODE_EXTRA_CA_CERTS was missing, every real model call failed with SELF_SIGNED_CERT_IN_CHAIN, and status reported both inference legs healthy throughout. The reproduction below confirms the same class of failure on current main with a local provider — no corporate proxy or TLS interception involved — by emulating that recovery scenario.

Stage A (#6846: authenticated invocation verdicts) shrinks the reachable-vs-invocable gap but inherits this limit by construction: an authenticated invocation in a fresh exec is still an assertion about the fresh exec.

Reproduction (by execution, main @ c1bda8069, x86_64/WSL2, docker driver, ollama-local)

1. Healthy baseline. Fresh onboard --name stageb-demo --agent openclaw — all green, and the serving process carries the same injected trust/proxy contract as a fresh exec (the only difference in the compared env sets is the order of the NODE_OPTIONS preloads).

2. Enter the #6635 state, then recover by hand. Killed the in-container supervision loop (nemoclaw-start) and the gateway, then restarted the gateway the way a stranded user does after #6635 — by hand, without the injected contract (env -i HOME=... PATH=... TERM=... openclaw gateway run, emulating the environment loss @mikemason hit for real). The gateway comes up and serves:

$ openshell -g nemoclaw-18899 sandbox exec --name stageb-demo -- sh -c 'curl -s --max-time 5 -o /dev/null -w "gateway: HTTP %{http_code}\n" http://127.0.0.1:18791/'
gateway: HTTP 200

Its environment, read from /proc/<pid>/environ, is now three variables (HOME, PATH, TERM) — no CA bundle, no proxy, no NODE_OPTIONS preloads.

3. status reports healthy inference on every leg:

  Sandbox: stageb-demo
    Model:    llama3.2:1b
    Provider: ollama-local
    Inference: healthy (https://inference.local/v1/models)
    Inference (ollama backend): healthy (http://127.0.0.1:11434/api/tags)
    Inference (auth proxy): healthy (http://127.0.0.1:11435/api/tags)

4. The serving process cannot make the call status just vouched for. Same sandbox, same instant, same URL — only the environment differs:

[A] serving-process env:
curl: (6) Could not resolve host: inference.local
HTTP 000
[B] fresh-exec env:
HTTP 200

([A] replays the call under the hand-started process's exact environment; [B] is the same call in the fresh exec's injected environment. inference.local only resolves/routes through the injected egress-proxy config, so the broken serving process fails at name resolution before TLS is even attempted — an even earlier failure than the SELF_SIGNED_CERT_IN_CHAIN variant in #6846.)

The window is not exotic: any path where the serving process's env diverges from the current exec-injection contract can produce it — manual recovery after #6635, an env/CA change after the process started, or any supervisor-less restart. And it is silent by construction: the probes get a fresh, correct environment every time, so they can never see it.

Desired Behavior

  • status/doctor gain a leg that reports what only the serving process can know, sourced from the process itself rather than from a fresh probe, e.g.:
    • Serving process (openclaw gateway): last model call OK (2m ago)
    • Serving process (openclaw gateway): failing since 06:54 (name resolution)
  • Where no self-report is available, say so explicitly instead of staying silently green — the honesty pattern #6743 and #6887 already applied elsewhere in status (Runtime health: not checked).
  • Rendering keeps the two kinds of facts distinguishable: "a fresh exec can invoke the model" (Stage A) vs "the process serving traffic can" (this issue).

Constraints and Non-goals

  • Complements Stage A (#6846); neither replaces the other. Non-goal: changing probe semantics — that's Stage A's scope.
  • The self-report should be agent-pluggable, not OpenClaw-specific. The manifest already declares a per-agent health surface (health_probe, agents/openclaw/manifest.yaml:27), currently used by onboard/recovery as a liveness gate but never surfaced by status as serving-process health. Agents with weaker internals (hermes) degrade to not checked.
  • Non-goal: NemoClaw running its own monitoring daemon. The point is to read what the serving process already knows.

Implementation Idea (non-binding)

The primitive already exists on the agent side. The hand-started (broken) gateway in the repro logs, verbatim:

2026-07-16T06:54:17.071+00:00 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)

i.e. OpenClaw runs an internal health monitor on a 5-minute cycle (plus a heartbeat, intervalMs: 1800000). The 300s interval lines up with the "OpenClaw does an LLM ping every 5 minutes" behavior @mikemason described in #6846 (I observed the monitor running, not what it checks — that part is his report). A first cut could be:

  • extend the agent manifest contract (health_probe → e.g. a self_report entry) declaring where/how the serving process exposes its own last health verdict;
  • have status/doctor fetch and render that verdict with its age, replacing silence with not checked when the agent declares nothing.

@mikemason mentioned in #6846 he may want to work on this — the design instinct (pluggable health) is his; happy to support, review, or pair on it, and Stage A on my side won't collide with it.

Hokonoken avatar Jul 16 '26 07:07 Hokonoken

✨ Thanks for the detailed report with root cause analysis. The 256 MiB maxBuffer limit in backupSandboxState is a clear bottleneck for long-lived sandboxes. This will need a streaming or chunked backup approach to avoid the Node.js spawnSync buffer limit.


Related open issues:


Related open issues:

wscurran avatar Jul 17 '26 14:07 wscurran

#7007 has implemented the extra Serving process: not checked scaffolding and explicitly deferred the concrete probe contract ("response schema, probe protocol, and failure mapping"). Here's a design for that deferred piece. I'd like to take it if it's open.

The key decision: status should read a verdict the serving process already produced, never compute a fresh one. This is an environment-attribution bug, not a probe-thoroughness bug — the serving process runs with whatever environment it was started with, and any probe NemoClaw runs gets a fresh, always-correct exec environment, so it can never attest the process it stands in for. More thoroughness doesn't fix that (which is why Stage A's authenticated invocation inherits the same blindness). The one thing that can: read what the process already knows. OpenClaw's [health-monitor] (300s interval) is exactly that primitive.

Proposed contract — extend the manifest health_probe (agents/openclaw/manifest.yaml:27) with an optional self_report source declaring where the process exposes its last verdict:

health_probe:
  url: "http://localhost:18789/"
  port: 18789
  timeout_seconds: 30
  self_report:
    source: "http://localhost:18789/internal/health"   # served by the process itself
    fields: { verdict, checked_at, detail }

status/doctor fetch that verdict and render it with age, filling in the { checked: true, ... } state #7007 left open:

Serving process (openclaw gateway): last call OK (2m ago)
Serving process (openclaw gateway): failing since 06:54 (name resolution)

Agents that declare no self_report keep the not checked line #7007 already ships.
Open questions for maintainers:

  1. Source of the verdict — the fragment above shows the dedicated-endpoint form, but that's not the only option and probably not the lightest. The least-surface alternative is enriching the existing health_probe response the gateway already serves (NemoClaw already knows that URL and calls it); others are a file the health-monitor writes, or a pinned-format monitor log line. Which fits the intended contract? (Load-bearing; drives the schema.)
  2. Staleness — a verdict older than ~2× the interval: render stale distinctly from failing? A dead monitor and a failing call are different facts.

If the shape's roughly right I'll pick it up with regression tests (serving-process-unhealthy-while-probes-green). @Dongni-Yang — you did #7007; am I ok to pick up this implementation after you review the design?

mikemason avatar Jul 20 '26 17:07 mikemason

@mikemason This is the right frame, and the design is good — go ahead and take it.

You've nailed the actual defect: this is environment attribution, not probe thoroughness. A fresh sandbox exec always gets a correct environment, so it structurally cannot attest the long-running process it stands in for — which is exactly why Stage A's authenticated invocation would inherit the same blindness. Reading a verdict the serving process already produced is the one thing that closes it. #7007 deliberately left the { checked: true, ... } state open for precisely this contract, so this is the piece to build.

On your two open questions:

1. Verdict source — prefer enriching the existing health_probe response (your option b), but treat the OpenClaw side as a hard prerequisite, not an assumption. It's the least surface: NemoClaw already knows and calls that URL, it's one hop, and the verdict is authoritatively the process's own. A dedicated /internal/health endpoint adds a surface OpenClaw has to serve and version; a file re-imports the who-wrote-it/which-environment ambiguity we're trying to escape; a parsed log line is fragile. The load-bearing question is whether OpenClaw actually exposes the [health-monitor]'s last verdict on the response NemoClaw already fetches — today health_probe.url is the gateway root (:18789/), and I don't think it carries the monitor verdict yet. Let's confirm that on the OpenClaw side before locking the self_report schema. If the root can't carry it, the dedicated endpoint becomes the justified fallback — but I'd rather pin the contract to a capability we've verified exists.

2. Staleness — yes, render stale distinctly from failing. A dead monitor and a failing call are different facts and should read differently. Three terminal states off the fetched verdict:

  • fresh + OK → last call OK (2m ago)
  • fresh + failing → failing since <time> (<detail>)
  • older than ~2× the monitor interval (~600s) → stale — monitor not reporting (last verdict 15m ago)

Keep self_report optional in the manifest so agents that don't declare it (Hermes, dcode, and anything with only basic internal health) keep the not checked line #7007 already ships — no regression for them.

serving-process-unhealthy-while-probes-green is exactly the regression that proves it. Please open it against #7003.

Dongni-Yang avatar Jul 21 '26 02:07 Dongni-Yang

@Dongni-Yang — checked, and the answer flipped my design comment above. Short version: OpenClaw already produces and exposes a last-verdict, but not from the subsystem I named. Verified against the shipped OpenClaw 2026.6.10 bundle.

Correction to my earlier comment

I attributed the verdict to OpenClaw's [health-monitor] on a 300s interval. That was two real things welded together:

  • src/gateway/channel-health-monitor.ts is real and is 300s — but it is channel-scoped (Telegram/Slack/Discord connection liveness + restart), computes its verdict as a loop-local const, drops it on the healthy path, and only surfaces it as a log line on the restart path. It says nothing about inference. NemoClaw also ships healthMonitor: { enabled: false } in all five channel manifests, so it does not even run on a stock sandbox.
  • The agent heartbeat is the inference liveness check. It is a full agent run: injects HEARTBEAT.md, calls the configured model, and expects a HEARTBEAT_OK token back. This is genuinely end-to-end.

So the premise holds — there is a process-produced verdict to read — but it comes from the heartbeat, not the health monitor.

What already exists

emitHeartbeatEvent retains the last event in module state (state.lastHeartbeat), timestamped, and getLastHeartbeatEvent() reads it back. It is exposed on the gateway as an RPC method literally named last-heartbeat (src/gateway/server-methods/system.ts):

"last-heartbeat": ({ respond }) => {
  respond(true, getLastHeartbeatEvent(), void 0);
},

Event shape is { ts, status, reason?, durationMs?, channel?, accountId? }. Statuses observed: ok-token, ok-empty, ran, failed (with reason carrying the error message), and skipped with a specific reason.

This means no upstream OpenClaw change is required. My earlier proposal to add a self_report endpoint is unnecessary for OpenClaw — the primitive ships today. That is the main benefit and it is a real one: status/doctor can fill in the { checked: true, ... } state #7007 left open by reading an existing RPC.

Drawbacks — and there are more than I expected

  1. In-memory only. state.lastHeartbeat does not survive a gateway restart; it returns null until the first beat completes. So there is a genuine no-verdict-yet state, not just fresh/stale.
  2. 30m default cadence. resolveHeartbeatIntervalMs falls back to "30m". Worst case a failure is up to 30m stale before it shows up, and the post-restart blind window is the same length.
  3. skipped is not a health signal, and skips chain. Heartbeats skip for quiet-hours, requests-in-flight, cron-in-progress, and lanes-busy. The last event can therefore be a skipped for a long stretch while no conclusive verdict has been produced at all. Reading "the last event" is wrong; we need the last conclusive verdict, with skips tracked separately as a reason the verdict is aging.
  4. Heartbeats can be turned off — per-agent config, or at runtime via the set-heartbeats RPC. Then no verdict is ever produced, and disabled must render distinctly from unknown.
  5. RPC, not HTTP. last-heartbeat is a gateway method, not a curl-able GET like the existing health_probe.url. NemoClaw needs to speak the gateway protocol including auth, which is a heavier client than the current probe path.
  6. The signal only exists because the agent is paying for it. Heartbeat is on by default for the default agent (isHeartbeatEnabledForAgent falls through to enabled when unconfigured), at 30m, making real model calls. Reading the verdict is free; producing it is not. Worth being explicit that this design consumes a side effect of a billed background activity rather than introducing one.

So the render states are at least four, not two: ok (age), failing since T (reason), stale / no conclusive verdict in N, and disabled.

On generalizing beyond OpenClaw

Being straight about this: the transport does not generalize. For OpenClaw it is a gateway RPC; for another agent it would be a file, a log line, or a different endpoint. Every agent needs its own adapter.

I do not think that sinks it, because it is what manifest.yaml already does — install_method, version_command, health_probe are all per-agent specifics behind a shared contract. The split would be:

  • Per agent: a small adapter that answers "where does this agent keep its last verdict, and how do I read it."
  • Shared: the normalized verdict schema, the staleness/age logic, and the four-state rendering above.
  • Agents that declare nothing: keep the Serving process: not checked line #7007 already ships.

That is one adapter per agent and one renderer for all of them. But it is worth deciding explicitly whether that trade is wanted before I build it, since it is a standing per-agent maintenance cost rather than a one-off.

Questions

  1. Is the adapter-per-agent split above the shape you want, or would you rather this stay OpenClaw-specific until a second agent actually needs it?
  2. For the verdict source — read last-heartbeat over gateway RPC, or would you prefer NemoClaw not take a gateway-protocol dependency in status/doctor and instead push for the verdict to be mirrored somewhere cheaper to read?
  3. Given the added complexity here -- 4 result states, indeterminate outcomes, needing to speak gateway RPC, needing an adapter-per-agent -- is this still worth pursuing, or is it landing in "too hard, too compromised" territory and we should abandon it?

Happy to implement if you still think this is worthwhile, and can settle questions 1 and 2.

mikemason avatar Jul 21 '26 04:07 mikemason

@mikemason — great correction, and thanks for being straight about the drawbacks. I checked the shipped sandbox bundle and the answers change two of your three questions, both in favor of proceeding.

Your drawback 5 (RPC = heavier client) dissolves: OpenClaw's own CLI already reads the verdict. The shipped sandbox image carries both:

  • openclaw system heartbeat last — "Show the last heartbeat event" (exactly the getLastHeartbeatEvent() / last-heartbeat RPC you found)
  • openclaw health --json --timeout <ms> — "Fetch detailed health from the running gateway"

(Verified on the openshell/sandbox-from image with OpenClaw 2026.5.22; you verified the RPC on 2026.6.10, so it spans both.) So status/doctor never speak the gateway protocol: run the agent's CLI via sandbox exec, the same way version_command already runs today (terminal-version-drift.ts:93 execs the manifest-declared command via sandbox exec -- sh -lc). The CLI carries its own gateway auth.

That transport is also attribution-clean, and the distinction is worth pinning in the design doc: the environment bug taints producing a verdict in a fresh exec, never reading one. The exec is a courier; the process answering the RPC — and the process that produced the heartbeat by making a real model call in its own environment — is the serving process. In your repro, the hand-started gateway would answer last-heartbeat itself with failed (name resolution) while every probe leg stayed green: exactly the missing line.

Q1 (adapter-per-agent vs OpenClaw-only): neither per-agent code adapters nor OpenClaw hardcoding — make the per-agent piece data, like the manifest already does for version_command/health_probe:

​yaml health_probe: ... self_report: command: "openclaw system heartbeat last" # run via sandbox exec, output normalized kind: heartbeat-event ​

Shared side: the normalized verdict schema, staleness logic, and rendering. Agents that declare nothing keep #7007's not checked. That's one YAML stanza per agent, not a standing per-agent code cost — the trade you flagged mostly disappears.

Q2 (verdict source): prefer openclaw health --json if its payload includes the last heartbeat (one call, versioned JSON — please verify its output shape against a live gateway first); otherwise system heartbeat last. If heartbeat last turns out text-only, the parse format is the one fragility left — check for a --json flag, and if missing that's a small upstream ask (a flag, not a new endpoint). My earlier "enrich the health_probe HTTP response" suggestion is superseded — no upstream change is needed at all. If the CLI can't reach the gateway, that maps to the existing gateway-down rendering, not to this leg.

Q3 (still worth it): yes. The four states aren't incidental complexity — they're the honest rendering of four genuinely different facts, the same honesty pattern #6743/#6887 established. The thing that made this heavy was the gateway-protocol client, and it's gone. On the drawbacks:

  • in-memory / restart (1): null → no verdict yet, rendered distinctly from stale — honest about the post-restart blind window.
  • 30m cadence (2): always render age; stale threshold ≈ 2× the configured heartbeat interval read from agent config, not hardcoded — my earlier ~600s figure was derived from the misattributed 300s monitor, supersede it.
  • skip chains (3): agreed — normalize to the last conclusive verdict; skips only age it and can surface as the aging reason.
  • disabled (4): distinct disabled render; and we only ever read — NemoClaw never enables heartbeats itself, which also answers (6): this consumes an existing billed signal, it doesn't add one.

So: take it, with serving-process-unhealthy-while-probes-green as the pinned regression (your repro is the perfect fixture) plus one test per render state.

@apurvvkumaria @ericksoa — this converged on a design that adds a new status/doctor leg (serving-process self-reported health via a manifest-declared self_report command). Since the issue is needs: design and @mikemason is ready to implement, could one of you sanity-check the contract above before he starts? The two decisions to ratify: manifest-declared read command (vs per-agent code adapters), and the four-state rendering (ok (age) / failing since T / no conclusive verdict in N / disabled).

Dongni-Yang avatar Jul 21 '26 07:07 Dongni-Yang

The direction makes sense, but before resolving needs: design, can we pin the following contract details?

  1. Which exact OpenClaw command and machine-readable schema will NemoClaw consume? Please provide representative output for success, failure, skipped, disabled, and no-verdict-after-restart across supported OpenClaw versions.
  2. Does the source retain the last conclusive verdict, or only the latest event? If a skipped event overwrites the prior success/failure, how can NemoClaw truthfully report the last conclusive result without an upstream change?
  3. How will we distinguish disabled, never run, skipped, stale, and failed?
  4. Where will the effective heartbeat interval come from for staleness calculation, including runtime configuration changes?
  5. Which states affect status/doctor exit codes?
  6. What redaction and size limits apply to heartbeat failure reasons in text and JSON?
  7. Please confirm that status only reads an existing verdict and never enables or triggers a billed heartbeat.

apurvvkumaria avatar Jul 21 '26 07:07 apurvvkumaria

@apurvvkumaria — answers below, verified in source: OpenClaw npm tarballs 2026.3.1 / 2026.4.26 / 2026.6.10 (oldest published, midpoint, pinned baseline) and NemoClaw main @ 426af0178. Two of your questions surfaced facts that amend the design — flagged inline, and summarized as the two decisions to ratify at the end.

1. Command + schema. openclaw system heartbeat last, run via sandbox exec exactly like version_command today (src/lib/agent/terminal-version-drift.ts:92-95: sh -lc, ignoreError, 15s timeout). It always prints JSON — the action calls gateway RPC last-heartbeat and writeJsons the raw payload (src/cli/system-cli.ts:96-107); --json is cosmetic. Payload is HeartbeatEventPayload | null (src/infra/heartbeat-events.ts:7-22), byte-identical across 2026.3.1 → 2026.6.10:

{ ts: number; status: "sent" | "ok-empty" | "ok-token" | "skipped" | "failed";
  reason?: string; durationMs?: number; to?: string; accountId?: string;
  preview?: string; hasMedia?: boolean; channel?: string; silent?: boolean;
  indicatorType?: "ok" | "alert" | "error" }

⚠️ Correction to the event-status list circulated earlier in the thread: "ran" is not an event status — it belongs to HeartbeatRunResult (heartbeat-wake.ts:6-9), a different type. Success statuses are ok-token / ok-empty / sent.

Representative outputs, derived from the emit call sites (all 18 live in heartbeat-runner.ts) — statically derived, not live-captured; we'll paste captured samples into the implementation PR:

  • success: {"ts":…,"status":"ok-token","reason":"requested","durationMs":…}
  • failure: {"ts":…,"status":"failed","reason":"<formatErrorMessage(err)>"} (also reason:"agent-runner-failure" on the delivered-run-failure path, line 2137)
  • skipped: {"ts":…,"status":"skipped","reason":"requests-in-flight" | "cron-in-progress" | "lanes-busy" | "empty-heartbeat-file" | "no-target" | …}
  • no-verdict-after-restart: the CLI prints the literal null (RPC responds success with a null payload; the slot is in-memory, initialized null).
  • disabled: has no representative event by construction — disabled runs return without emitting (heartbeat-runner.ts:1334-1342), so heartbeat last shows the stale prior event or null. Disabled is read from config instead: openclaw health --json → agents[].heartbeat.{enabled, everyMs} (also in all three versions).

Version span: no new gate needed — the contract is unchanged back to 2026.3.1 (2026.3.0 was never published), version_constraint is documentation-only (no code reads it), and the enforced floor is already expected_version 2026.6.10 via fail-closed evaluateStaleness. Command failure degrades gracefully via the existing { ignoreError, timeout } probe pattern → explicit unverified, never a silent pass.

2. Retention: latest event only — and this amends the design. emitHeartbeatEvent overwrites unconditionally (heartbeat-events.ts:53-57); an emitted skipped clobbers the prior conclusive event. (Nuance: disabled / quiet-hours / main-lane-busy skips return without emitting and don't clobber; the other skip paths do.) No second slot exists; the session store persists only successful deliveries (lastHeartbeatSentAt), and failures survive only in gateway logs. So NemoClaw cannot truthfully render "last conclusive verdict" from this source. Proposal: relabel the leg to "last heartbeat event" and render status + reason + age verbatim — truthful with zero upstream changes. A retained last-conclusive slot upstream is a nice-to-have follow-up, not a blocker.

3. Disambiguation matrix:

state how it reads
disabled (config) health --json: enabled:false / everyMs:null — from config, never from events
disabled (runtime set-heartbeats) not distinguishable: unpersisted module boolean, no getter RPC (heartbeat-wake.ts:63-67); it silently ages the last event, so it honestly folds into stale. Exposing the toggle is the one real upstream ask if we ever want it split out.
never-run / post-restart payload null → render "no verdict since gateway start" (these two are inherently the same fact: the slot is in-memory)
skipped status:"skipped" + reason (rendered as why the verdict is aging, per the earlier agreement in this thread)
failed status:"failed" + reason
stale computed by NemoClaw: now − ts > 2× effective interval

(Implementation note: read via system heartbeat last, not status --json.lastHeartbeat — the latter is only populated with --deep and is also null on unreachable-gateway, a three-way ambiguity.)

4. Interval source. Self-reported by the serving process: everyMs per agent in openclaw health --json, computed from its live config (resolveHeartbeatSummaryForAgent; chain: per-agent heartbeat.every → agents.defaults.heartbeat → "30m" default). Config reloads reschedule live (heartbeatRunner.updateConfig, server-reload-handlers.ts:349), so reading everyMs at probe time captures runtime changes. NemoClaw hardcodes nothing; staleness threshold = 2× the read everyMs. set-heartbeats never affects the interval.

5. Exit codes — by existing convention, with one decision to ratify. Doctor exits nonzero only on fail checks (doctor-report.ts:99-112; warn/info never flip it); status exits 1 via isInferenceHealthFailing (status-snapshot.ts:106-109).

  • ok → no effect. failed → doctor fail / status exit 1 (authoritative-leg precedent, doctor-inference.ts:31-38).
  • disabled → rendered, exit 0.
  • stale / no verdict → propose info/warn, exit 0. The repo holds two conflicting precedents (authoritative not-probed ⇒ exit 1 vs advisory unverified ⇒ info, exit 0). This leg should be advisory: the verdict slot resets on every gateway restart with an up-to-everyMs blind window, so exit-1-on-stale would flap automation on every restart. Please ratify (or overrule) this mapping.

6. Redaction/size. reason passes the existing reportInferenceProbeError treatment (status-snapshot.ts:259-268): redact() + control-char strip + whitespace collapse + hard .slice(0, 240) — applied in both text and JSON, for both status and doctor (doctor's --json currently serializes detail verbatim with no redactForLog pass, unlike status's #4310 — serving-process detail will therefore be pre-redacted before insertion). preview (agent message content) and to/accountId are never rendered or serialized — the leg consumes verdict fields only (ts, status, reason, durationMs).

7. Read-only: confirmed. The last-heartbeat handler is respond(true, getLastHeartbeatEvent(), undefined) — a pure read of the in-memory slot (server-methods/system.ts:34-36), identical in all three versions. The CLI path only calls that RPC. The only heartbeat mutators (set-heartbeats, wake/system-event) are unreachable from any read path. One footnote for completeness: the health RPC kicks a void background snapshot refresh (cheap channel-state recollect) — no agent run, no model call, no billing. NemoClaw reads config-derived heartbeat info from it; it cannot trigger a heartbeat.

The two decisions to ratify: (a) the leg is named/rendered as last heartbeat event rather than last conclusive verdict (Q2); (b) stale/no verdict map to info/exit-0 (Q5). Everything else follows existing precedent.

@mikemason — the parser corrections that matter for you: success = ok-token/ok-empty/sent (not "ran"), read via system heartbeat last (not status --json), disabled comes from health --json config, and the exec-precedent file is src/lib/agent/terminal-version-drift.ts (not src/lib/actions/sandbox/). Once (a)/(b) are ratified this is ready for you to start.

Dongni-Yang avatar Jul 22 '26 03:07 Dongni-Yang

Thanks @apurvvkumaria — these are the right things to pin. Claude and I exercised a live gateway rather than answer from the source read, and a couple of the answers turned out not to be what the design comment above assumed. Verification provenance up front, then the seven. (Working with Claude Code here — where a result was surprising we re-ran it with Claude driving one terminal and me driving another, independently, and I've flagged those below.)

Provenance: all "verified" shapes below are from OpenClaw 2026.6.10 (aa69b12) on one sandbox (docker driver, managed inference.local route). We forced each outcome by editing that sandbox's openclaw.json and restarting the gateway; failure = pointing the provider baseUrl at an unresolvable host (same failure class as the issue's repro). Where we could not force a state cleanly it's marked TBD rather than papered over.


1. Exact command + machine-readable schema + representative outputs

Command: openclaw system heartbeat last --json, run via sandbox exec -- … (the same transport version_command already uses; --json is a real flag — note it must go after the -- separator, and the command needs a running gateway or it returns a GatewayTransportError, not JSON).

Schema is polymorphic per outcome — this is the first surprise. Common base is { ts: <ms epoch>, status: <string>, reason?: <string>, durationMs?: <number> }, but the remaining fields differ by outcome, and there is no single normalized indicator present on every event.

Representative outputs (verbatim from the box):

  • Success (--json):
    { "ts": 1784678239662, "status": "ok-token", "reason": "wake",
      "durationMs": 4821, "silent": true, "indicatorType": "ok" }
    
  • Model-call failure (heartbeat with default target: none):
    { "ts": 1784679047637, "status": "skipped", "reason": "target-none",
      "preview": "⚠️ Agent failed before reply: LLM request failed: network connection error.\nLogs: openclaw logs --follow",
      "durationMs": 2331, "hasMedia": false }
    
    Note: no indicatorType, and status is "skipped", not "failed" — the failure is only in the free-text preview. (See Q2/Q3.) Double-checked (two independent terminals): re-broke the endpoint and re-ran — reproduced byte-for-byte.
  • No verdict (fresh gateway, before first beat, or after restart): literal null.
  • Quiet-hours skip: no event is emitted at all — heartbeat last stays null and the only log line is [heartbeat] started. So a quiet-hours skip is not a retained skipped event; it is indistinguishable from "never run" from this command alone. (Verified by setting heartbeat.activeHours to a window excluding "now".)
  • disabled: verified live, and it produced the sharpest finding here. Disable is a runtime RPC (set-heartbeats), not a config field (schema rejects heartbeat.enabled), and it requires the caller to elevate to operator.admin scope (audit log: scope-upgrade … scopesTo=operator.admin). Once applied, the mutating RPC returns { "ok": true, "enabled": false } — but health --json keeps reporting heartbeat.enabled: true (see Q3/Q4), and heartbeat last just keeps returning the last pre-disable event (a forced beat while disabled is suppressed — no new event). So there is no clean read surface for the runtime-disabled state: the verdict source goes silently stale and the enabled flag disagrees with reality.

"Across supported OpenClaw versions": we can only honestly attest 2026.6.10 on this box; @Dongni-Yang confirmed the subcommands exist on 2026.5.22 but not their JSON shapes. We would not promise a stable schema across the support matrix. Suggest the contract version-gate the parser and degrade any unrecognised shape to not checked (never green) — the honesty pattern from #6743/#6887 applied to the schema itself.

2. Last conclusive verdict, or only the latest event?

Only the latest event (getLastHeartbeatEvent() returns the single most-recent emitHeartbeatEvent), and it is worse than "a skip can overwrite a success":

  • A failed model call is recorded as status:"skipped" / reason:"target-none" with the error in preview — so a failure and a benign delivery-skip share a status.
  • A quiet-hours skip emits nothing (stays null) — so it's indistinguishable from never-run.

So NemoClaw cannot read a truthful "last conclusive result" from this source without (a) reclassifying failure-as-skip by parsing preview, and (b) accepting that quiet-hours vs never-run are not separable here. A clean fix would want an upstream change (retain the last conclusive verdict, and give failures a real failed status independent of delivery target). Without it, the honest fallback is conservative: preview containing "Agent failed" / "LLM request failed" ⇒ failing; null ⇒ "no conclusive verdict"; never invent a prior success.

3. Distinguishing disabled / never run / skipped / stale / failed

Per-state source, with the gaps called out:

State Source Status today
disabled no reliable read. health.enabled stays true when runtime-disabled; only the mutating enable/disable RPC returns the true flag verified broken — see below
never run / post-restart heartbeat last == null and enabled == true verified (null)
skipped (quiet-hours) no event — also null not separable from never-run without cross-checking activeHours
stale derived: age(ts) > 2× effective interval derivable (interval from health)
failed not a status in the observed case — status:"skipped"/reason:"target-none" + error in preview verified; detection = parse preview, not status

This table is the crux of your question: the five states do not map cleanly onto the source's fields today. Three separate collapses/gaps, all verified on the box:

  1. failed and skipped share a status ("skipped"/target-none, failure in preview).
  2. quiet-hours and never-run both present as null (quiet-hours emits no event).
  3. disabled is not readable at all. With heartbeats runtime-disabled (disable RPC returned enabled:false, and forced beats were provably suppressed), health --json still reported heartbeat.enabled: true. The verdict source (heartbeat last) just returns the last pre-disable event forever. So a disabled agent would render as an ever-aging verdict that NemoClaw's staleness logic would mislabel as stale/monitor-not-reporting — never as disabled. This is the one we double-checked most carefully (Claude reading gateway state in one terminal, me driving the enable/disable in another): beat-runs-while-enabled → disable → beat-suppressed → re-enable → beat-runs, repeated across both sessions, with health.enabled reading true throughout the disabled window, and doctor/presence/health all failing to reflect it. Detecting disabled truthfully would need an upstream read surface for the runtime set-heartbeats state (NemoClaw can't make a mutating call — Q7).

4. Effective heartbeat interval (incl. runtime changes)

From openclaw health --json: top-level heartbeatSeconds and per-agent heartbeat.everyMs / every (this box: 14400 / "4h"; the source default when unset is "30m"). Read it per fetch so staleness uses the current effective value.

Runtime changes: verified that health is not a live mirror of runtime state. After an approved runtime disable (RPC returned enabled:false, beats provably suppressed), health --json continued to report heartbeat.enabled: true — it did not reflect the toggle at all (not a restart-lag issue; it never updated). So health.enabled reflects config/policy, not the live runtime flag, and can't be used to detect a runtime disable. The interval (heartbeatSeconds/everyMs) is still a usable staleness input; the enabled field is not a reliable runtime signal.

5. Which states affect status / doctor exit codes

Maintainer call. Our suggestion: treat this leg as informational and not change exit codes — keeping parity with #7007's non-fatal not checked. The verdict can be up to one interval stale (30m–4h), is in-memory (restart blind window), and carries the failure-as-skip ambiguity above, so gating exit codes on it would be noisy. If any state ever goes non-zero, a reasonable floor would be a fresh, non-stale, preview-confirmed failure. Happy to go either way depending on how the team wants doctor exit semantics to read.

6. Redaction & size limits on failure reasons

reason is short/enumerated. The exposure is preview — a free-text error string ("LLM request failed: network connection error", plus a Logs: openclaw logs --follow hint) that can carry endpoint/proxy/host detail. OpenClaw applies ackMaxChars: 300 to the agent ack, but not to this field. Suggest NemoClaw own render-side bounding: truncate preview/reason to ~200 chars, strip newlines, and scrub token-like substrings before display. Best not to assume upstream redaction.

7. Confirm status only reads, never enables/triggers a billed heartbeat

Confirmed. The read path is openclaw system heartbeat last + openclaw health — pure reads of retained state (observed returning null / a retained event while producing nothing). The only way we produced a beat was openclaw system event --mode now, which fired a real ~4.8s billed model call — that must be excluded from the status/doctor path. Proposed contract: allow heartbeat last, health; forbid system event, heartbeat enable/disable, set-heartbeats, agent. As a backstop, this is enforced by the scope model, not just convention: toggling heartbeats requires the caller to elevate to operator.admin (verified against the gateway audit log), so a read-scoped NemoClaw structurally cannot enable or disable them. This design would consume an existing billed side effect rather than introduce one.


Net — where this leaves the design. The primitive ships and is readable, but exercising it live surfaced three real gaps the earlier design comment assumed away:

  • (Q2/Q3) failures present as status:"skipped" (failure text in preview), and quiet-hours skips emit no event — so failed/skipped and quiet-hours/never-run don't separate cleanly.
  • (Q3/Q4) disabled has no reliable read — health.enabled stayed true while heartbeats were provably runtime-disabled; the verdict just goes silently stale.
  • (Q1) we can only attest one version's schema (2026.6.10), so the contract would need to version-gate and degrade unrecognised shapes to not checked.

Honestly, these make the feature less of a slam-dunk than it looked when we proposed reading an existing verdict — the surface distinguishes fewer states than the design assumed, and two of the gaps (disabled detection, failure-vs-skip) really want a small upstream change to close cleanly rather than heuristics on our side. We still think a conservative, non-fatal, read-only version is worth doing and would improve on today's silently-green behavior, but whether the gaps are worth carrying (or worth an upstream ask) is a call for the NemoClaw team, and we're fine either way — including "not yet, revisit if the upstream shape improves." Flagging it plainly so the decision is made with eyes open rather than on the original, rosier framing.

mikemason avatar Jul 22 '26 20:07 mikemason

A quick note as the issue author: I was away for a couple of weeks and have just caught up on the thread — thank you @mikemason, @Dongni-Yang and @apurvvkumaria for taking the design this far in the meantime.

The "read a verdict the serving process already produced" framing, with the agent heartbeat as the source, addresses exactly the attribution gap this issue was aiming at. Once the contract lands, I'd be glad to re-run the original repro scenario from the issue body (hand-started gateway with a stripped environment) against the implementation, as an end-to-end check from the reporting side.

Hokonoken avatar Aug 04 '26 07:08 Hokonoken

Correcting my own answers above: the heartbeat cannot be the source for this leg. Verified against OpenClaw 2026.7.1, our actual pin (agents/openclaw/manifest.yaml:22), not the 2026.6.10 quoted earlier in this thread.

1. target-none is the general case for us. heartbeat-runner-eCoyrjfa.js:1609 branches on delivery.channel === "none" || !delivery.to and emits status:"skipped"; with target: none the reason is the literal "target-none" (targets-CEmdA82a.js:59-62). A stock NemoClaw sandbox has no messaging channel, so every one of our sandboxes takes that branch.

2. It can be affirmatively green. At :1495, before the delivery branch is reached, !heartbeatToolResponse && (!replyPayload || !hasOutboundReplyContent(replyPayload)) && reasoningPayloads.length === 0 emits status:"ok-empty" (:1503). A heartbeat whose model call failed without producing outbound content reports ok. When the failure does produce text, it falls through to skipped/target-none instead — both outcomes, neither usable.

3. A configured channel would not rescue it. Outside the outer catch, the only route to status:"failed" is deliveredAgentRunFailure (:1710), computed by exact-string equality against GENERIC_EXTERNAL_RUN_FAILURE_TEXT (agent-runner-failure-copy-D7KZsRTJ.js:5-10). Heartbeat runs pass isHeartbeat: true (:1429), which makes the produced copy HEARTBEAT_EXTERNAL_RUN_FAILURE_TEXT instead (agent-runner.runtime-DYRSfwOn.js:1446, :2932), so the matcher can never match. A failure that throws still reaches the catch and records failed; a provider error turned into a reply payload — the failure mode in this issue's repro — does not.

4. Version span: the above is 2026.7.1 only. The three-way classification does not hold across the whole published range, so a stable schema across the support matrix shouldn't be promised. Better to quote no floor than the manifest's version_constraint, which nothing in the code reads.

The obvious replacement is also a dead end. Reading the serving gateway's /proc/<pid>/environ and comparing it to a fresh exec's fails by name — NODE_EXTRA_CA_CERTS is an unconditional ENV in the final stage of both gateway images (Dockerfile:281 after the last FROM at :191; agents/hermes/Dockerfile:187 after :154), so the name is present in the broken process too. And it has a hole by value: Dockerfile.base:352-367 sources /tmp/nemoclaw-proxy-env.sh from both /etc/profile.d/nemoclaw-proxy.sh and /etc/bash.bashrc, so a gateway hand-started from a login or interactive shell inherits the proxy configuration and compares equal.

Where this leaves the issue. #7007's Serving process: not checked remains the honest rendering, and I don't have a design I'm confident enough to propose in its place, so I'm unassigning rather than leaving this parked under my name. needs: design still applies. The direction I'd back but haven't validated: have the serving process publish a fingerprint of its own effective configuration on the health endpoint we already call — the pattern at src/lib/inference/openrouter-runtime-adapter-lifecycle.ts:167, where a long-running process exposes a configHash/authorizationHash and the caller accepts only on match. That would be attestation from the process itself. The self_report sketch earlier in this thread is superseded by it, and both of the "decisions to ratify" I listed above are withdrawn — they described a design that point 3 kills.

Dongni-Yang avatar Aug 06 '26 04:08 Dongni-Yang

The heartbeat looks like a dead end, and I think for a reason that will keep happening. It is a verdict about delivery being asked about environment. target-none and ok-empty are it answering its own question correctly. Any other existing verdict will have the same problem, and each one costs another round of re-verifying against the pin you actually ship.

There may be no need to find a verdict at all.

An environment can be observed. A health verdict has to be computed by someone and then believed.

On Linux /proc/<pid>/environ is that observation. A sandbox exec is in the same PID and mount namespace as the gateway, same uid, so it can read the serving process's environment block. No CAP_SYS_PTRACE. For the variables in the issue body - NODE_EXTRA_CA_CERTS, SSL_CERT_FILE, CURL_CA_BUNDLE, HTTPS_PROXY, NODE_USE_ENV_PROXY, NODE_OPTIONS - that block is the operative value, because Node reads them at startup.

Then the leg is a comparison: the contract a working gateway needs, against what the gateway process actually has. Missing or different means failure, with the variable named.

No OpenClaw command, no RPC, no schema, no version coupling. Most of @apurvvkumaria's questions stop applying - there is no event stream to read, no last-conclusive versus latest, no staleness, because the observation is taken now.

It also names the cause. @mikemason's incident reports as "the gateway has no NODE_EXTRA_CA_CERTS" rather than "inference unhealthy".

If the pid cannot be resolved, or the file cannot be read, the answer is unknown. It must print as unknown. Falling through to green is the thing this issue is about.

Where it does not reach:

  • Linux only.
    • It is the block the process was exec'd with. Node mutating process.env later will not show. For TLS and proxy variables that is what you want, but it is not a general current-environment oracle.
      • It says nothing about reachability. It sits beside the existing probe. The probe says the route works from a correct environment. This says the serving process has one. Where /proc is not available, the gateway can write its resolved contract once at startup - names and digests, not values - and status reads that file. Compare the file's mtime against process start time and you can tell if it is stale.

I may be wrong about the namespace. It is one command on a running sandbox: resolve the gateway pid, then from a sandbox exec run tr '\0' '\n' < /proc/<pid>/environ and grep for the CA and proxy variables. If that shows the gateway's real values, this is buildable now with no upstream change.

tonygair avatar Aug 31 '26 15:08 tonygair

@tonygair — I took you up on "one command on a live sandbox will verify". Measured, not reasoned. Short version: a fresh sandbox exec cannot read the serving process's /proc/<pid>/environ even though both run as the same uid, and the reason is the sandbox's own isolation design, not a namespace mismatch. Details below so anyone can rerun it.

Setup

  • NemoClaw CLI v0.0.134 (built from the tag), host gateway OpenShell 0.0.116 (the tag's exact pin), Docker driver.
  • Sandbox reboottest: OpenClaw agent, created 2026-08-10 on an OpenShell 0.0.101-era image, so the in-sandbox supervisor is openshell-sandbox 0.0.101. Caveat: not a fresh sandbox on the newest image (fresh onboard is blocked on this host by the WSL native-Docker qualification gate), N=1.
  • Host: Ubuntu 24.04 on WSL2, native Docker (unqualified host). nemoclaw reboottest status reports OpenClaw running, Docker healthy, inference healthy on all legs.

Measurement 1 — reading the serving process's environment from an exec

Inside the sandbox (openshell sandbox exec -n reboottest --no-tty bash -s < probe.sh):

openclaw-gateway pid=435   exec uid=998   /proc/sys/kernel/yama/ptrace_scope=1
target /proc/435/status: Uid: 998 998 998 998   CapEff: 0   NoNewPrivs: 1   Seccomp: 2 (4 filters)
ls -l /proc/435/environ   -> -r-------- sandbox sandbox
tr '\0' '\n' < /proc/435/environ -> Permission denied
readlink /proc/435/exe / cwd   -> (denied)     head /proc/435/maps -> Permission denied
same for pid 58 (bash nemoclaw-start, the workload root), pid 464 (python3 child), and a fresh `sleep` grandchild

Controls that pass, so it is not a generic /proc or Yama restriction:

child of the exec reading its parent's environ (both spawned by exec, same uid)  -> 53 vars, readlink exe ok
PR_GET_DUMPABLE of the exec process                                              -> 1 (and 1 after a further exec)
/usr/local/bin/node, /bin/bash readable by uid 998 (test -r yes, ELF header readable)
docker exec -u 0 <container> tr '\0' '\n' < /proc/435/environ                     -> 102 vars (root, outside the sandbox domain)

So: same uid, dumpable binaries, no CAP_SYS_PTRACE needed in principle, and still EACCES — only for processes in the supervisor-spawned tree, never for processes spawned by exec.

Why (code, not guesswork)

/proc/<pid>/environ needs PTRACE_MODE_READ. OpenShell applies a Landlock ruleset per spawned process — the spawn path drops privileges, hardens, then calls restrict_self() on a freshly prepared ruleset (crates/openshell-supervisor-process/src/ssh.rs ~L1297-1310 and sandbox/linux/landlock.rs::enforce at v0.0.101; same shape at v0.0.116). Landlock's ptrace hook only allows a sandboxed process to read/trace a process whose domain is the same or nested inside its own. An exec session and the workload are sibling domains, so the kernel denies PTRACE_MODE_READ between them, while an exec's own children (nested domain) stay readable, and an unsandboxed root reader is unrestricted. That is exactly the pattern measured above.

Side note: the same spawn path also sets PR_SET_DUMPABLE=0 (harden_child_process, process.rs), but that is pre-exec and execve resets dumpability; on main the boundary contract even asserts child_dumpable: true (crates/openshell-sandbox-backend/src/boundary_protocol.rs). The operative blocker is the Landlock domain, not dumpability.

Consequence for the proposal: "exec, resolve the gateway pid, read /proc/<pid>/environ" is not buildable from sandbox credentials on this isolation model, regardless of namespace. The reader has to sit outside the workload's Landlock domain: the supervisor (PID 1, root, no domain) can read it today, or the serving process has to publish its own contract (your fallback: a startup-written "resolved contract" file with names + digests + start time).

Measurement 2 — the gap the issue is about, now quantified

Same sandbox, same uid, root read of the serving process vs a fresh exec's env:

serving process env: 102 vars     fresh exec env: 53 vars
keys present ONLY in the serving process (54), e.g.:
  _NEMOCLAW_CORPORATE_CA_MERGED, NEMOCLAW_INFERENCE_BASE_URL, NEMOCLAW_INFERENCE_PROVIDER_ID,
  NEMOCLAW_INFERENCE_COMPAT_B64, NEMOCLAW_PROXY_HOST, NEMOCLAW_PROXY_PORT, NEMOCLAW_MODEL,
  OPENSHELL_SANDBOX_COMMAND, OPENSHELL_ENDPOINT, OPENSHELL_SANDBOX_ID, NEMOCLAW_DASHBOARD_PORT, ...
keys present only in the exec (5): NEMOCLAW_OPENCLAW_GATEWAY_URL, NEMOCLAW_OPENCLAW_ALLOW_INSECURE_PRIVATE_WS, SHELL, USER, _NEMOCLAW_SANDBOX_LABEL
shared keys with different values: NODE_OPTIONS (serving adds --dns-result-order=ipv4first ahead of the same four --require files), PATH, TERM
identical on this host: NODE_EXTRA_CA_CERTS, SSL_CERT_FILE (/tmp/nemoclaw-ca-bundle.pem), NODE_USE_ENV_PROXY=1, HTTPS_PROXY/NO_PROXY

So a fresh exec cannot attest the serving process's inference contract (NEMOCLAW_INFERENCE_*), its corporate-CA merge marker, or its exact NODE_OPTIONS. On this host the CA/proxy keys happen to agree, which is precisely the case where a green exec-based check would be right for the wrong reason.

Observation 3 — the status leg today

nemoclaw <name> status on v0.0.134 prints Serving process (openclaw gateway): not checked. In code the leg is hard-wired to { checked: false } with the comment "no self-report response/probe contract exists yet, so status must stay explicitly unchecked (#7003)" (src/lib/actions/sandbox/status-snapshot.ts). Honest, and consistent with the above: there is currently no reader that can see the serving process.

How to rerun (any live sandbox)

openshell sandbox exec -n <sandbox> --no-tty bash -s <<'SH'
P=$(ps -eo pid,comm --no-headers | awk '$2=="openclaw-gatewa"{print $1}' | head -1)
id -u; grep ^Uid /proc/$P/status; tr '\0' '\n' < /proc/$P/environ | wc -l
bash -c 'tr "\0" "\n" < /proc/$PPID/environ | wc -l'   # control: exec->exec read
SH

(pgrep -x openclaw-gateway returns nothing: comm is truncated to 15 chars.)

Hokonoken avatar Oct 15 '26 12:10 Hokonoken

@Hokonoken thank you. That's exactly the measurement I hoped someone would run, and it settles the question better than any argument could. The Landlock sibling-domain explanation is convincing, and the 102 vs 53 count makes the gap concrete: a green exec-based check can be right for the wrong reason.

That points at the startup-written resolved contract as the way forward: the serving process writes, once, what it actually resolved (variable names plus digests, not values, plus its start time), and status compares against that instead of against a fresh exec.

For what it's worth, this is the kind of check we build with formal proof. I run The Dark Factory, a small UK company whose factory turns specifications into SPARK/Ada components that are mathematically proved, not just tested. We use it for admission gates and attestation decisions. Two properties we prove on our own attestation checks seem directly useful here:

  • fail-low: missing or unreadable evidence can only lower the verdict (here: "not checked"), never raise it;
  • never-upgrade: a check can't report "healthy" from a weaker source than the one it claims to attest.

If it would help, I'd be glad to contribute the comparison logic for the resolved contract as a small proved component (contract vs observed: match / drift / not-checked), with the proof obligations stated in the PR so reviewers can see exactly what is and isn't guaranteed. The I/O around it would stay ordinary, tested code.

Tony

tonygair avatar Oct 15 '26 15:10 tonygair

Hi @Hokonoken, thanks for the detailed investigation into serving-process health. We’re planning an updated architecture for NemoClaw, so we’re closing this earlier status/doctor health-probe follow-up as not planned.

If this is still an issue that needs prioritization, please re-open and tag @wscurran.

wscurran avatar Nov 18 '26 03:11 wscurran