Repository navigation
tools: shelter an app, chroot tier (build, prove, stop-native, start) - #82
Conversation
tools/shelter.py is the reference for SPEC "Sheltering an app" on CI: build resolves the interpreter and the owners of what the app's programs load (run once in a throwaway copy), takes their closure from keeps_runtimes_on's own repos at final versions, checks each rpm's sha256 against the index and its signature against the release's key, installs with the release's rpm into /var/lib/wend/shelter/<app>/root, carries the user's passwd and group lines and any unowned or changed files, and writes shelter.lock. prove sets the shelter up in a copy of the box and runs its checks there. stop-native and start are the drop hop's pre and post steps. tools/podman_standin.sh stands in for `podman run` while checks run: it chroots into the shelter root the image ID names with the declared mounts and ignores confinement. walk.py runs build and prove before the hop that leaves keeps_runtimes_on and records each shelter in the run; boxes without [shelter] walk exactly as before. check.py validates [shelter.<app>]. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
…helters, why the box lands with it Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
…tools Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
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. |
|
Independent review of head Changes requested on b9d5f4e What I ran: What holds up:
Blockers
Non-blocking notes
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9d5f4e68d
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…y fields AND when one starts with *; SPEC: the uid range is in the run Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Answering the changes requested on b9d5f4e. All three are fixed in 9c734b7:
The notes are not in this PR. The unquoted carried paths, the stray-process killer and disk use go into the client-ops PR, where they're built for real. Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Re-review of head Sign-off: approve 9840a8f How each blocker was resolved:
The new commit, 9840a8f: What I re-ran on 9840a8f:
On the earlier non-blocking notes, I re-checked whether any of them is unsafe on a CI runner. None is:
Fine to defer both to the client-ops PR. Generated by Claude Code |
…-pzmnbf Signed-off-by: Claude <[email protected]> # Conflicts: # tools/test_check.py
|
Review of the merge commit Sign-off: approve 7a35696
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7a35696612
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…SERVICE for low ports, egress opt-ins in the plan Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Review of Sign-off: approve eda8eef
Non-blocking notes:
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eda8eef7ae
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…er reads stays readable Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Review of Sign-off: approve 0a4f89e
Generated by Claude Code |
…-pzmnbf Signed-off-by: Claude <[email protected]> # Conflicts: # tools/test_check.py
|
Review of the merge commit Sign-off: approve b34ac6c
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b34ac6cb66
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
What this adds
Route: none. This is a harness change. The box that uses it,
el/centos7-pyapp, follows in its own PR.New fixes: none
Claims issue: none. This follows SPEC "Sheltering an app" (#77).
Before: a box whose own app needs Python 2 can't walk past the release that ships it, because the walk rolls back the hop that drops Python 2.
After: when a box carries a
[shelter.<app>]plan, the reference harness builds the app a shelter at that hop and moves the app into it:keeps_runtimes_on): resolves the interpreter and import owners, fetches the closure from that release's vault, checks each rpm's signature (rpmkeys --checksig), installs a root, and writesshelter.lock.The run records
shelterswithtier = "chroot"andconfinement_proved = false. A failed build or prove stops the walk onkeeps_runtimes_on, which is the "stop" option.How:
tools/shelter.pyholds the ops.walk.pycalls them only for boxes with a plan. For every other box the hop commands are byte-identical, and parity holds.check.pyvalidates the plan, andtools/test_check.pycovers the broken cases.tools/podman_standin.shis CI-only. It stands in for podman while checks run, by chrooting into the shelter root with the declared mounts, and it is never shipped to clients.Why the box isn't in this PR: CI judges with the base branch's tools. If the box landed first, every centos7 route would go red.
Model
anthropic:claude-opus-5-5, hand-directed.
Evidence
Local, on this code plus the follow-up box:
python3 wend checkpasses, andtools/test_check.pyplus every othertools/test_*.pypass.152 checker cases (66 refused), 137 type cases (121 refused): identical.wend replay routes/el/centos7-to-alma10.toml el/centos7-pyappprintedKEPT shelter billing: built on centos7 and proved (51 packages), then 9/9 checks after alma9 and after alma10:PASS ... 2 hops, 11 fixes fired. There were no decoy errors.Not proved: confinement (real podman, the uidmap with
:idmapmounts, SELinux:Z, nftables, the socket units). That's the VM tier on remi.Self-review (AGENTS.md step 5)
git commit -s).🤖 Generated with Claude Code
https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF
Generated by Claude Code