ProtocolVersion

The Manager wire-protocol version: what the daemon, the worker (norsk-ctl worker mode, or the legacy WorkerDaemon) and the SDK client (norsk-mgr) each speak on the worker and status streams. Semver, minus the patch:

PROTOCOL_VERSION = "1.0.0"

MAJOR bumps for an incompatible change: a peer on a different major is refused (the daemon stops a worker’s node with NodeStopping VERSION_SKEW; norsk-mgr refuses to connect). MINOR bumps for an additive change: a peer on a different minor is accepted with a warning. A peer that sends no ProtocolVersion at all (the legacy WorkerDaemon, an older norsk-ctl) is "unknown" and treated as a warning, never a refusal.

Every party keeps its own copy of the constant, each with a test that asserts it against the string above, so drift is a test failure: server/src/Norsk/Manager/ProtocolVersion.purs (daemon) client/workspaces/manager-sdk/src/protocolVersion.ts (SDK) norsk-ctl packages/norsk-ctl/shared/src/protocol-version.ts (worker + norsk-mgr)

Field

Type

Repeated

Description

major

uint32

minor

uint32