Skip to content

fix(cpu): discover starting gateway on next sample - #119

Merged
RomneyDa merged 1 commit into
mainfrom
fix/cpu-discover-gateway-next-sample
Sep 8, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/cpu-discover-gateway-next-sample

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

  • retry a missing gateway PID on the next resource sample instead of waiting five samples
  • preserve cached PID reuse after discovery
  • prove missing startup PIDs are retried at sampling cadence

Root cause

Kova starts CPU sampling before gateway-start/provision commands. The initial OCM lookup therefore sees no gateway, and the five-sample backoff delays discovery until the gateway predates the immediately previous CPU snapshot. Its initial CPU baseline is then irrecoverable, correctly producing BLOCKED evidence.

Retrying on the next sample discovers a newly born gateway while its zero baseline is still provable from the previous snapshot. This fixes evidence production without weakening the release gate.

Observed in OpenClaw proof 34208309908: 12 BLOCKED records, all caused by late gateway discovery; every CPU lower bound remained below its threshold.

Validation

  • node --test tests/linux-cpu-accounting.mjs (25 passed, 1 platform skip)
  • node bin/kova.mjs self-check (280/280 passed)

@clawsweeper

clawsweeper Bot commented Sep 8, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@RomneyDa
RomneyDa merged commit 11b5655 into main Sep 8, 2026
6 checks passed
@RomneyDa
RomneyDa deleted the fix/cpu-discover-gateway-next-sample branch September 8, 2026 09:39
RomneyDa added a commit that referenced this pull request Sep 8, 2026
)

* fix(cpu): exclude process census from scan uncertainty (#118)

* fix(cpu): exclude process census from scan uncertainty

* test(cpu): compare scan uncertainty within rounding

* fix(cpu): discover starting gateway on next sample (#119)

* fix(cpu): refresh census after gateway discovery (#120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant