Repository navigation
fix(doctor): classify protected working directories through a scoped provider - #166893
Open
vincentkoc wants to merge 4 commits into
Open
vincentkoc wants to merge 4 commits into
vincentkoc wants to merge 4 commits into
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (4 earlier review cycles)
|
vincentkoc
marked this pull request as ready for review
October 8, 2026 02:33
This was referenced Oct 13, 2026
[Bug]: update runtime cleanup keeps directories when systemd --user has no working directory
#171410
Closed
This was referenced Oct 22, 2026
This branch has not been deployed
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.
What Problem This Solves
Fixes: Doctor and update retention checks cannot safely classify a same-account process when Linux denies its working-directory metadata.
User Impact
Operators with an invocation-scoped, root-owned metadata provider can supply positive working-directory evidence without running OpenClaw as root. Ordinary launches and deployments without that provider retain the existing conservative refusal. This change does not install a provider or change service permissions.
Why This Change Was Made
The optional provider is discovered through a fixed, authenticated runtime socket. Requests contain only numeric process identities and birth values. Returned paths are accepted only after root-owned endpoint checks, bounded client settlement, and matching process generation, credentials, command arguments, and runtime service-marker observations. The census uses one deadline and never starts provider clients for foreign credential tuples.
Successful native working-directory observations, including deleted paths, keep their existing retention-veto semantics. Missing, denied, truncated, drifted, or invalid provider evidence cannot clear a holder.
Qualification Status
4ba4b4a26068290db114e59ea5e6fc4dfe225171. Independent scoped review passed. The deleted-path evidence and same-birth command-drift findings have regression coverage.