Skip to content

fix(nix): undeclare normalize path unit; remove design-code door; drop retired-door launchers - #5104

Merged
dezren39 merged 1 commit into
mainfrom
nix-audit-normalize-path
Nov 3, 2026
Merged

dezren39 merged 1 commit into
mainfrom
nix-audit-normalize-path

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Nix-layer audit against 2026-11-03's removals (Drew: "it's in nixos and you didn't remove it? check code repo for that and any other fuck ups").

The named fuck-up: opencode-config-normalize path unit

home/common/default.nix declared systemd.user.paths.opencode-config-normalize with Install.WantedBy = [ "default.target" ], so every home-manager activation re-arms the watcher no matter how often it is stopped at runtime — that is exactly how the stops applied during the #5094 adoption got undone and the tracked config flapped back to v1 keys. The normaliser in the running generation (built 2026-11-01, before #4594) still writes v1; main's script emits only v2, but that binary lands only at the fleet switch.
Fix: the paths declaration is removed; the service declaration stays, so the normaliser can still be started deliberately. A tombstone comment cites #4594 + the pending switch and spells out restoring the path unit in the same change that verifies the switched generation carries the v2 normaliser.
Verified by evaluation: baseline systemd.user.paths = [agent-backup, oc-password-sync, opencode-config-normalize]; with this change = [agent-backup, oc-password-sync], and opencode-config-normalize remains in systemd.user.services.

Design-code door removed (Drew, 2026-11-03 13:54)

"the only design thing I have is opendesign" — the design persona routes/config machinery are being removed in the same pass by the config-layer change; this PR removes the nix side: the design-code-proxy unit (:18746), the designCodeProxyPort let, the DESIGN_CODE_PROXY_PORT session variable, the design-code-proxy PATH launcher, and the openclaw-gateway After entry + proxy-list line. The opendesign provider/pool is untouched. Tombstone comment records how to undo.

Same class, fixed in passing

  • The profile still installed agy-proxy and antigravity-ls-proxy PATH launchers for doors retired 2026-10-30 — one command away from resurrecting them on :18743/:18745. Launchers removed (nothing tracked invokes them); the .mjs files stay as history, per the existing tombstone.
  • sync-models unit Description still said "from models.dev, agy, and Codex"; the Codex sync section was retired with the openai-codex removal. Description corrected.

Activation-gated (nothing here takes effect until the switch)

This PR changes declarations only. The running generation still contains the path unit and the design-code unit; pre-switch, the runtime stop on the normalize watcher remains the only guard, and the pre-switch checklist must verify it is stopped immediately before switching. Post-switch: the path unit and design-code-proxy cease to exist, and the meta-quota-export zombie units (declaration already removed in #5044) disappear with the old generation.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…p retired-door launchers

- opencode-config-normalize: remove the systemd.user.paths declaration.
  The running generation's normaliser (built 2026-11-01, pre-#4594)
  still writes v1 keys, and a declared path unit re-arms on every
  home-manager activation — the runtime stops applied during the #5094
  adoption were undone and the tracked config flapped back to v1. The
  service stays declared for deliberate starts; the tombstone comment
  records restoring the path unit once the switch lands the v2 binary.
- design-code door (:18746) removed per Drew 2026-11-03 ("the only
  design thing I have is opendesign"): unit, port let, session
  variable, PATH launcher, and the openclaw-gateway After entry. The
  opendesign provider/pool is untouched.
- Drop the agy-proxy / antigravity-ls-proxy PATH launchers: both doors
  were retired 2026-10-30, but the profile still installed commands
  that resurrect them on their canonical ports.
- sync-models unit Description: no longer syncs from Codex (section
  retired with the openai-codex removal).
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 19:59
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fa00c31f-04c6-4844-9e6e-645b7d51f81d
Commits

Reviewing files that changed from the base of the PR and between 1d8356f and 7b51087.

Files selected for processing: 2
  • home/common/default.nix
  • home/openclaw/default.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@dezren39
dezren39 merged commit 031cde2 into main Nov 3, 2026
@dezren39
dezren39 deleted the nix-audit-normalize-path branch November 3, 2026 19:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T20:01:07.013500Z 7b51087 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

1 participant