Skip to content

fix(doctor): classify protected working directories through a scoped provider - #166893

Open
vincentkoc wants to merge 4 commits into
mainfrom
fix/native-cwd-provider-20261007
Open

vincentkoc wants to merge 4 commits into
mainfrom
fix/native-cwd-provider-20261007

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

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

  • Source head: 4ba4b4a26068290db114e59ea5e6fc4dfe225171. Independent scoped review passed. The deleted-path evidence and same-birth command-drift findings have regression coverage.
  • Exact-head local proof passed: 206 focused tests across six files, including provider/CWD/census/ownership, wrapper closure, and the existing forced-descendant regression; scoped format, lint, and core types passed.
  • The current returned CI rollup has 138 rows with no failed or pending result. The named CI gate, build, security, and dependency checks passed. Skipped checks are not execution proof, and this projection does not establish API exhaustion.
  • Landing remains blocked on a successfully completed package/export and published-driver qualification, followed by genuine non-container Linux Update and Doctor execution with positive provider/census evidence, live-holder retention, nonholder collection, and complete provider/client/unit/socket teardown.
  • Hosted qualification attempts were interrupted by runner shutdown before package export. The initiator is unknown; this is not evidence of a product defect. The bounded retry cycle is stopped. No production deployment occurred, and this PR is not ready to land or deploy.

@vincentkoc vincentkoc self-assigned this Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL labels Oct 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 44eb215ba01fa5880f7aa7edfc35368821c8b104, but the PR head is now 4ba4b4a26068290db114e59ea5e6fc4dfe225171. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (4 earlier review cycles)
  • reviewed 2026-10-08T02:09:26.222Z sha 02d51d4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T02:38:06.029Z sha 02d51d4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T03:07:33.999Z sha bee021e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T03:44:16.031Z sha 44eb215 :: needs real behavior proof before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review October 8, 2026 02:33
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 8, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 15, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant