GeezerVison is showing github.com — fix(openclaw): PR #1242's sops-nix secrets landed on a stranded feature branch — not on main, and the promised /run/secrets/openclaw wrapper repoint was never filed · Issue #1558 · developing-today/code
fix(openclaw): PR #1242's sops-nix secrets landed on a stranded feature branch — not on main, and the promised /run/secrets/openclaw wrapper repoint was never filed #1558DescriptionFinding
PR #1242 ("OpenClaw secrets via sops-nix (bws mirror)", commit 259363f) is MERGED, but its change is not on main and nothing consumes it:
- OpenClaw secrets via sops-nix (bws mirror) #1242's base was the feature branch
feat/openclaw-summarize, not main. Its merge commit 53ebc06 is verified NOT an ancestor of origin/main (checked 2026-10-27, main at a120b9a), and nixos/hosts/amd-openclaw-secrets.nix does not exist on main.
- The stranded branch is otherwise clean:
git diff origin/main...origin/feat/openclaw-summarize --stat is exactly OpenClaw secrets via sops-nix (bws mirror) #1242's change — 3 files (nixos/hosts/amd-openclaw-secrets.nix +22, nixos/hosts/default.nix +1, secrets/sops/common/bws.yaml re-sync). The branch tip IS the OpenClaw secrets via sops-nix (bws mirror) #1242 merge (2026-10-27 01:25 CDT) and there is no open PR from it to main. (The later "rescued" PR docs(home): openclaw quota wording and gateway edits (rescued) #1490 preserved only unrelated uncommitted gateway/QUOTAS edits from that worktree — not this change.)
- The follow-up OpenClaw secrets via sops-nix (bws mirror) #1242's body explicitly promised and deliberately excluded — "A tiny follow-up then points home/openclaw wrapper environment paths from ~/.secrets/openclaw/* to /run/secrets/openclaw/*" — has not happened either: on current main,
home/openclaw/default.nix:21 and its environment block (line ~80) still read the gateway token from ~/.secrets/openclaw/gateway-token, no file on main references /run/secrets/openclaw, and no issue tracks the follow-up (searched: "openclaw sops", "openclaw-summarize", "1242"; general git-hygiene issue Git hygiene reconciliation: push finished work, PR orphaned branches, classify dirty trees — and make it a standing sweep #1371 does not name this branch or PR).
Why it matters
The sops-nix declarations for openclaw/gateway-token, openclaw/slack-bot-token, and openclaw/slack-app-token are dead config sitting on an unmerged branch: a system activation from main will never materialize /run/secrets/openclaw/*, and the gateway keeps depending on manually created ~/.secrets/openclaw/* files — exactly the unmanaged state #1242 set out to replace. Because the PR shows as "merged", the work looks done; it is not.
Acceptance criteria
- Land OpenClaw secrets via sops-nix (bws mirror) #1242's change on main (PR from
feat/openclaw-summarize — its diff to main is only the 3 files above — or an equivalent cherry-pick), with CI green.
- Repoint the
home/openclaw wrapper environment paths from ~/.secrets/openclaw/* to /run/secrets/openclaw/* for the gateway token (and wire the Slack bot/app tokens the same way if the gateway config consumes them), per OpenClaw secrets via sops-nix (bws mirror) #1242's stated sequencing: only after the sops secrets materialize on activation.
- Verify an activation on amd materializes
/run/secrets/openclaw/{gateway-token,slack-bot-token,slack-app-token} (owner user, mode 0400) and the gateway starts reading the token from the new path.
- Delete or retire the stranded
feat/openclaw-summarize branch once its change is on main.
Found by the pr-diff-review job reviewing PR #1242 (batch watermark 1074→1242, developing-today/code). Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 🤖 Agent note · filed
- Agent: pr-diff-review job
- Session / ID: cron job pr-diff-review, run 2026-10-27 20:24 CDT
- Found via: filed this run
- Task: Filed after verifying PR OpenClaw secrets via sops-nix (bws mirror) #1242 (commit 259363f, merge 53ebc06) merged into base branch feat/openclaw-summarize, not main: merge commit is not an ancestor of origin/main (a120b9a), nixos/hosts/amd-openclaw-secrets.nix is absent on main, git diff origin/main...origin/feat/openclaw-summarize is exactly OpenClaw secrets via sops-nix (bws mirror) #1242's 3 files, and home/openclaw/default.nix still reads the gateway token from ~/.secrets/openclaw/* with no /run/secrets/openclaw reference anywhere on main. Enqueued as a triage packet to repo-health-code-pilot.
- Expectation: triage (effort s) confirms the stranded state and routes the landing PR + the wrapper repoint follow-up OpenClaw secrets via sops-nix (bws mirror) #1242 promised.
- Links: packet hidden_files/packet-code-1558.json
dezren39 commented on Oct 31, 2026 🤖 Agent note · blocked (escalated)
- Agent: queue worker (repo-worker-code), openchamber scheduled lane
- Session / ID: queue task 1640
- Code work: DONE and merged. PR fix(openclaw): land sops-nix secrets on main + repoint wrappers to /run/secrets/openclaw (#1558) #2871 (branch
queue/1640-1558-openclaw-secrets-land) merged to main as 6f79c9e2 on 2026-10-30: nixos/hosts/amd-openclaw-secrets.nix landed + amd import; home/openclaw wrappers repointed to /run/secrets/openclaw/{gateway-token,slack-bot-token,slack-app-token}. Zero ~/.secrets/openclaw refs remain on main.
- Verification this pass (fresh, on host
amd itself):
nix eval --raw .#nixosConfigurations.amd.config.system.build.toplevel.drvPath on current origin/main (14679ee25) from ~/git/fleet/1640-1558-eval → PASS: /nix/store/jmawyv00rgs1n88z1ji6zcip8i1nxbv3-nixos-system-amd-26.11.20261010.6510408.drv
- Static wiring: module declares 3 sops secrets; all 3 keys present age-encrypted in
secrets/sops/common/bws.yaml; age key present at ~/.config/sops/age/keys.txt; import wired in nixos/hosts/default.nix:120
- Host state: generation 518 (pre-merge),
/run/secrets/openclaw absent, gateway user-service active on old path — activation still owed, unchanged from lane C checkpoint
- Blocker (genuinely Drew): host activation needs root and this worker session has no path to it —
sudo -n true and sudo -n -l both fail with "a password is required". No worker will ever clear this; parking would loop.
- Ask: on
amd, run sudo nixos-rebuild switch --flake ~/git/fleet/1640-1558-eval#amd (clean origin/main worktree, left in place), then verify ls -l /run/secrets/openclaw/ shows the three tokens (0400, owned appropriately), restart the gateway user service if it has not picked up the new env, and confirm the gateway is healthy. Then this issue can be closed with that evidence.
dezren39 commented on Nov 12, 2026 🤖 Agent note · re-verified blocked — the only remainder is a Drew host action (task 1640, lane code-c)
- Code work remains DONE: PR fix(openclaw): land sops-nix secrets on main + repoint wrappers to /run/secrets/openclaw (#1558) #2871 merged 2026-10-30 (merge 6f79c9e):
nixos/hosts/amd-openclaw-secrets.nix is on current main, the amd import is wired, and home/openclaw wrappers read /run/secrets/openclaw/* — fresh grep today finds zero ~/.secrets/openclaw references left in the repo. The stranded-branch half of this issue is fully resolved; the branch diffs that remain vs main are later main-side evolution, not unlanded OpenClaw secrets via sops-nix (bws mirror) #1242 content.
- Remainder (unchanged since the 2026-10-31 escalation): activate on host
amd — the host still runs the pre-merge generation and /run/secrets/openclaw does not exist yet. Activation needs interactive root: worker sessions have no sudo path (sudo -n fails, "a password is required"), so no lane can clear this.
- Ask (same as 2026-10-31, still the whole ask): on
amd, run sudo nixos-rebuild switch --flake <clean origin/main checkout>#amd, verify ls -l /run/secrets/openclaw/ shows the three tokens with 0400 perms, restart the gateway user service if needed, and confirm gateway health — then this issue closes on that evidence.
- Disposition: task 1640 blocked on this user action (not parked — parking would loop); issue keeps
user/escalated + blocked labels.
dezren39 commented on Nov 12, 2026 🤖 Agent note · activation verified — closing (Drew delegation, main chat 2026-11-12 15:44 CST: "you can do it")
Drew delegated the amd activation to Muse. On taking it up, live verification on host amd (via sudo, through the fleet's named credential route) showed the activation had already taken effect — the earlier "pre-merge generation / /run/secrets/openclaw does not exist" re-verification was wrong: as the unprivileged user, /run/secrets is not listable and reading the directory returns Permission denied, which reads as absence without sudo.
Evidence (2026-11-12, host amd = this laptop, tailnet amd-6):
- Running generation 554 (built/activated 2026-11-10 11:30 CST) already includes PR fix(openclaw): land sops-nix secrets on main + repoint wrappers to /run/secrets/openclaw (#1558) #2871's change. No switch was run today — none was needed for this issue, and switching to today's origin/main would be a separate, larger step.
ls -la /run/secrets/openclaw/ (names/perms only, via sudo):
-r-------- 1 user users 64 Nov 10 11:30 gateway-token
-r-------- 1 user users 98 Nov 10 11:30 slack-app-token
-r-------- 1 user users 59 Nov 10 11:30 slack-bot-token
-r-------- 1 user users 58 Nov 10 11:30 tavily-api-key
-r-------- 1 user users 46 Nov 10 11:30 telegram-bot-token
The three tokens this issue names are present, owner user, mode 0400. (The module on current main declares five secrets; all five materialized.)
- Gateway:
openclaw-gateway.service is active (running) since 2026-11-10 14:38 CST — started after the secrets materialized — and its deployed wrapper references /run/secrets/openclaw/{gateway-token,slack-bot-token,slack-app-token,telegram-bot-token,tavily-api-key}. Health: GET / → 200 and GET /health → 200 on 127.0.0.1:18789; no token-file errors in the journal since start. No restart was needed.
- Wrappers:
home/openclaw on origin/main reads /run/secrets/openclaw/*; zero ~/.secrets/openclaw references remain repo-wide.
- Branch:
feat/openclaw-summarize has been deleted from origin. Its secrets-module change is fully contained in main — main's module is a superset (the same three declarations plus telegram/tavily), and main's bws.yaml is the newer ciphertext, as recorded when PR fix(openclaw): land sops-nix secrets on main + repoint wrappers to /run/secrets/openclaw (#1558) #2871 deliberately skipped re-landing it.
All acceptance criteria verify. Closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|