Skip to content

feat(diagnostics): version telemetry block in doctor and status (#115) - #119

Merged
OBenner merged 1 commit into
mainfrom
feat/115-version-telemetry
Nov 17, 2026
Merged

OBenner merged 1 commit into
mainfrom
feat/115-version-telemetry

Conversation

@OBenner

@OBenner OBenner commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Fixes #115.

What

synloq doctor and synloq status now embed a versions block — one copy-pasteable unit for reproducible external bug reports:

"versions": {
  "synloq": "0.1.0",
  "node": "v24.21.0",
  "protocol": 1,
  "schema": 5,
  "hosts": { "opencode": "0.5.0", "codex": "codex-cli 0.169.0" }
}
  • synloq version read from package.json at the package root; Node from process.version; protocol from PROTOCOL_VERSION; schema from a read-only user_version probe.
  • Host versions: local kimi-work --version / opencode --version / codex --version invocations, shell: false, 3 s bounded, parallel — no network calls.
  • Fail soft everywhere: a throwing/missing CLI probe yields an absent field; an unreadable database yields no schema; the block never breaks the report. The probe is injectable (hostVersionProbe) so tests stay hermetic, and skipVersions lets embeddings opt out.
  • The block appears in both normal and degraded (storage-error) report paths — a broken stand still produces a useful version block.

Verification

New test/diagnostics/versions.test.ts (3 tests): collected block with injected probe; fail-soft on throwing probe + missing DB; block embedded in both doctor and status reports. Full pnpm verify: 109 files / 956 tests PASS.

Review

Author: dev. Pairs naturally with #116 (same CLI surface); independent diff — either merge order works. Suggest dev2 review → CTO final.

Both reports now carry a copy-pasteable versions block: synloq (from
package.json), Node runtime, protocol version, on-disk schema version
(read-only probe), and host CLI versions where detectable (kimi-work,
opencode, codex --version with bounded timeouts). Every probe fails soft —
missing CLIs or an unreadable database yield absent fields, never an
error; no network calls. The block appears in normal and degraded
(storage-error) report paths so external bug reports are reproducible.
@OBenner
OBenner merged commit 08f9849 into main Nov 17, 2026
5 checks passed
@OBenner
OBenner deleted the feat/115-version-telemetry branch November 17, 2026 08:01
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.

[P1] Version telemetry in doctor/status output (reproducible external bug reports)

1 participant