Repository navigation
refactor(drivers): remove the control v2 driver runtime and unused host proxies - #1454
Merged
Merged
Conversation
…st proxies Owner decision 2026-09-26: the signed control v2 runtime has been unreachable since the Device Support package format was removed (#1432); driverrepo only ever binds a read-only policy now. - #16 Remove control v2: LuaDriver.CommandV2/DefaultModeV2, the v2 load and lifecycle timeouts, write scopes, write budget and host evidence, the command/result envelope types and validation, the registry's v2 dispatch, lease timer, stale/lease-expiry defaults and v2 startup default, and Registry.CommandResultSink with its main.go wiring. The legacy driver_command/driver_default_mode path, the recovery gate and the observe_only handling from #1444 are unchanged. - RuntimePolicy (control_v2.go -> runtime_policy.go) keeps only the read-only policy; validate rejects any other, and allowWrite refuses every write from a driver that carries a policy. - Drop the 100 ms host.sleep cap that, after v2, applied only to signed read-only drivers, so a file sleeps the same whichever source it came from (new test). - driver_command_results is no longer created and its write-only store method is gone; existing tables are left inert with a note in migrate(). - #38 Delete the unused HostEnv mqttSubscribe, mqttPublish, mqttPollMessages, modbusWriteSingle and modbusWriteMulti proxies. - Move the surviving read-only lifecycle test, adapt the HTTP 302 and OAuth sign-in tests, and update the roadmap, driver guide and comments that described v2. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MuerPFZFG88kgu8sWVHeq7
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round 2 of the multi-agent hardening and refactor review. A skeptic confirmed each finding against the code, and a second reviewer checked this diff and ran its tests. Removals follow the owner decisions of 2026-09-26.
Changes
Evidence
From /home/fredde/repos/ftw/.claude/worktrees/wf_8f55b108-a0d-4/go, using the scratchpad Go toolchain (/tmp/claude-1000/-home-fredde-repos-ftw/1c09d855-6ddf-43b8-949b-c49a26936713/scratchpad/go/bin) with GOTMPDIR=/home/fredde/.cache/go-tmp:
Review
Both findings are resolved correctly, and I found no blockers.
Finding 16 (control v2 runtime removal):
🤖 Generated with Claude Code
https://claude.ai/code/session_01MuerPFZFG88kgu8sWVHeq7