Skip to content

Accept current Coven daemon health shape - #4512

Draft
pasmud wants to merge 1 commit into
OpenCoven:mainfrom
pasmud:fix/daemon-api-version-compat
Draft

Accept current Coven daemon health shape#4512
pasmud wants to merge 1 commit into
OpenCoven:mainfrom
pasmud:fix/daemon-api-version-compat

Conversation

@pasmud

@pasmud pasmud commented Aug 10, 2026

Copy link
Copy Markdown

Summary

  • Accept the current named daemon API version, coven.daemon.v1, during Cave startup compatibility checks.
  • Treat daemon health covenVersion: "0.0.0" as a placeholder only after Cave has verified the installed Coven CLI version.
  • Add regression coverage for both compatibility cases.

Root Cause

Cave rejected a healthy local daemon because the daemon now reports API version coven.daemon.v1, while Cave accepted only 1 and v1. The same Windows v0.2.5 health shape can report covenVersion: "0.0.0", which the status display already treats as a placeholder.

Validation

  • node --experimental-strip-types src\lib\daemon-startup-contract.test.ts
  • node --experimental-strip-types src\lib\daemon-start.test.ts
  • pnpm test:daemon-faults
  • pnpm check:tests-wired
  • pnpm typecheck

Signed-off-by: Merge_Conflict - Pasi <pa.sen@outlook.com>
@BunsDev BunsDev self-assigned this Aug 11, 2026
@BunsDev
BunsDev requested a lite review from Copilot August 11, 2026 06:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Cave’s daemon startup compatibility checks to accept the daemon’s current health document shape, preventing false “incompatible daemon” failures when the daemon reports the new named API version and/or a placeholder runtime version.

Changes:

  • Extend accepted daemon API versions to include coven.daemon.v1.
  • Treat covenVersion: "0.0.0" as a placeholder and substitute the verified installed version for compatibility comparison.
  • Add regression tests covering both the new API version string and the placeholder runtime version case.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/daemon-startup-contract.ts Expands supported API version allow-list and normalizes 0.0.0 runtime reporting to the installed version for compatibility checks.
src/lib/daemon-startup-contract.test.ts Adds regression coverage for apiVersion: "coven.daemon.v1" and covenVersion: "0.0.0" acceptance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants