Skip to content

ci(dogfood-e2e): hand the file-command files to podman instead of a+rw (RIG-2131) - #1267

Open
rigel-mintaka wants to merge 1 commit into
compass-agent/rig-1329-purge-acp-terminologyfrom
compass-agent/rig-2131-scope-podman-chmod
Open

rigel-mintaka wants to merge 1 commit into
compass-agent/rig-1329-purge-acp-terminologyfrom
compass-agent/rig-2131-scope-podman-chmod

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 3 PRs:

  1. main
  2. fix(compass-agent): keep benign horizontal whitespace in marker rendering (RIG-1544) #1262
  3. docs(compass): describe the agent's real session protocol, not ACP (RIG-1329) #1266
  4. "ci(dogfood-e2e): hand the file-command files to podman instead of a+rw (RIG-2131)" (this PR)

The podman-step wrapper made the runner's per-step file-command files
world-writable so the non-root podman user could append to $GITHUB_PATH and
$GITHUB_OUTPUT. Only uid 1000 needs that write.

Transfer ownership while the wrapper is still root instead. The files keep
0644, so the append works without granting write to every user.

The change is deliberately minimal — this path took many CI iterations to get
green under rootless podman in a privileged container, and the surrounding
wrapper is untouched.

Co-authored-by: Matt Wilkinson matt@rigel.build

@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

RIG-2131

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-agent-rig-2131-scope.compass-eng-docs.pages.dev

Deployed from compass-agent/rig-2131-scope-podman-chmod at bf05c12.

@rigel-mintaka
rigel-mintaka force-pushed the compass-agent/rig-2131-scope-podman-chmod branch from 2cd8629 to 1c05efa Compare September 17, 2026 02:32
@rigel-mintaka
rigel-mintaka force-pushed the compass-agent/rig-1329-purge-acp-terminology branch from 2e92873 to 6eaaf57 Compare September 17, 2026 02:32
Review found `chown -R` moves the directory's ownership too. The runner
re-creates a fresh per-step file-command file before every step, and creating
a file needs write on the DIRECTORY — so handing the directory to uid 1000
made every later step depend on the runner process being uid 0, a dependency
the world-writable version did not have.

Narrow to `find -type f`, which leaves the directory root-owned. The append
still works: the files themselves are podman-owned at 644.

Also correct two comments that outlived the behaviour they describe — the prep
step still said root was needed to `chmod` these files, and the job explainer
said the wrapper chowns the dir.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka
rigel-mintaka force-pushed the compass-agent/rig-2131-scope-podman-chmod branch from 1c05efa to bf05c12 Compare September 17, 2026 02:42
@rigel-mintaka
rigel-mintaka force-pushed the compass-agent/rig-1329-purge-acp-terminology branch from 6eaaf57 to 41b0d47 Compare September 17, 2026 02:42
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