Repository navigation
Decouple adapter runtime_version from the package build version - #8
Conversation
The descriptor advertised the build version as runtime_version and artifacts must require it exactly, so the v0.0.4 -> v0.0.5 upgrade quarantined every box's persisted state and failed every prepare with adapter_failure even though v0.0.5 did not change strategy interpretation. adapter.RuntimeVersionGeneva (0.0.4) is now the engine compatibility version used for the descriptor, steering.Config.RuntimeVersion and artifact checks. It is bumped only when grammar, engine semantics or action behavior change. The package version stays on /healthz, logs and telemetry.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The runnable Docker harness payloads still use "dev" and will fail exact-version compatibility checks.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Decouples Geneva engine compatibility from package build versions, preserving artifact and persisted-state validity across compatible upgrades.
Changes:
- Adds and documents
adapter.RuntimeVersionGeneva. - Uses the engine version for descriptors, validation, and steering defaults.
- Adds cross-build compatibility tests and updates documentation.
- Critical finding:
e2e/run.shandbench/run.shstill submit artifacts requiring"dev".
| File | Summary |
|---|---|
README.md |
Documents engine-compatible runtime versions. |
internal/steering/lifecycle_test.go |
Aligns lifecycle fixtures with the compatibility version. |
internal/steering/controller.go |
Defaults runtime compatibility to the engine constant. |
internal/adapter/types.go |
Defines the compatibility version and bump policy. |
docs/adapter-v1.md |
Updates adapter contract documentation. |
cmd/geneva-server/runtime_version_linux_test.go |
Tests build-independent descriptors and state restoration. |
cmd/geneva-server/run_linux.go |
Wires steering configuration to the engine version. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
e2e/run.sh and bench/run.sh hard-coded required_runtime_version "dev", which no longer matches the engine compatibility version the descriptor advertises.
…sfer The sidecar caches counter reads for 2s, so the inbound step could see a reading taken before the transfer and fail with zero SYNs.

Why
Upgrading prod boxes from v0.0.4 to v0.0.5 on 2026-09-24 orphaned every Geneva artifact.
cmd/geneva-server/run_linux.gosetsteering.Config.RuntimeVersionto the package build version, the descriptor advertised it asruntime_version, andArtifact.ValidateForrequiresrequired_runtime_versionto match exactly. Every published artifact requires"0.0.4", so on restart the controller quarantined persisted state:and every subsequent prepare failed with
adapter_failure. v0.0.5 only added status reporting; strategy interpretation did not change.Change
adapter.RuntimeVersionGeneva = "0.0.4": the engine/strategy compatibility version, with the bump rule documented next to it (bump only when grammar, engine semantics, or action behavior change).cmd/geneva-server: steering config construction moved intosteeringConfig, which setsRuntimeVersionto the constant. The packageversionstays on/healthz, logs, and telemetry.steering.Config.RuntimeVersiondefaults to the constant instead of"dev"; the field remains as a test seam for incompatibility tests.docs/adapter-v1.mdandREADME.mddescriberuntime_versionas the engine compatibility version and state the bump rule.The value stays
0.0.4, so existing artifacts and persisted state on v0.0.4 boxes stay valid. Boxes already on v0.0.5 with quarantined state recover through the normalPrepare→Verify→ActivateForNewConnectionsremediation once this ships.Tests
New in
cmd/geneva-server/runtime_version_linux_test.go, exercising the realsteeringConfigwith the buildversionoverridden:TestDescriptorRuntimeVersionIsEngineVersionRegardlessOfBuild: descriptorruntime_versionequals the constant for buildsdev,0.0.4,0.0.5,9.9.9-rc1.TestEngineVersionArtifactPreparesUnderDifferentBuild: an artifact requiring the constant prepares, verifies, and activates under a different build version.TestPersistedStateSurvivesBuildUpgradeWithSameEngineVersion: state written by build0.0.4restores under build0.0.5with the same active generation and no quarantine file.With the old wiring (
RuntimeVersion: version) all three fail, the last with the exact prod error above.go test ./...andgolangci-lint run ./...are clean.Summary by CodeRabbit