Skip to content

fix: run ordinary credential maintenance as workspace owner - #3721

Merged
vybe merged 3 commits into
Abilityai:devfrom
alex-furman:fix/3719-owner-maintenance
Oct 14, 2026
Merged

vybe merged 3 commits into
Abilityai:devfrom
alex-furman:fix/3719-owner-maintenance

Conversation

@alex-furman

@alex-furman alex-furman commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3719

Ordinary credential maintenance cannot inspect a developer-owned 0700 home when root lacks DAC_OVERRIDE. Check the existing helper installation as root, then run unseeded sweeps as developer. Installation failure stops maintenance before a sweep; seed-bearing sweeps retain their existing root execution and environment-only seed handling.

The change preserves the helper and sweep scripts, replacement/refusal rules and alert mechanism. It quotes the repository path, avoids logging arbitrary execution exception payloads, and makes unreadable-workspace guidance describe ownership and permissions accurately.

Validation:

  • 107 focused tests passed, including failure/timeout gating, execution identities, seed handling and literal path quoting.
  • Disposable restricted-capability container checks cover private-home access, real installation failure, unreadable and absent repositories, safe refusal, credential replacement and repeated runs.
  • Seeded control with the supported full capability set preserves successful replacement and 0600 credential files. The existing restricted-root private-home limitation remains reported as unreadable.
  • Independent review covered the complete change and separately passed 103 tests.

No capability expansion, alert-framework migration, production deployment or live credentials are involved.

Journey Impact: extends: J06

Mutation: The restricted-capability reproduction in #3719 fails as root and succeeds as the workspace owner. test_unseeded_sweep_uses_owner_after_checked_root_install and test_failed_install_never_runs_a_sweep are among the five newly added cases that failed on stock before this fix (5 failed / 97 deselected).

alex-furman and others added 3 commits October 14, 2026 08:56
…it (Abilityai#3719)

merge-train: mechanical, per the merge-train note on the PR. Four comments
still described every sweep as running as root, the unreadable alarm as
asking for full capabilities, and the per-agent exec count as three.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@vybe

vybe commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

merge-train note (mechanical fix pushed to your branch, commit b23450d):

  • Four comments still described every sweep as running as root, the unreadable alarm as asking for full capabilities, and the per-agent exec count as three. Refreshed to describe the seeded-root / unseeded-developer split and the fourth exec. No code change.

Validated at 76cf465. Noted for follow-up, not blocking: (1) an install failure now returns success=False with a warning log only, where it previously surfaced as a refused operator alarm; (2) the exception log keeps only the exception type, which drops the docker.errors message on a fleet-wide boot path; (3) seeded sweeps still run as root and still fail on restricted-capability installs, where the rewritten ownership/permissions alarm text is less accurate. Also labelled #3719 priority-p2 / type-bug / theme-reliability. Thanks for the fix.

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge-train: batch validated on train/20261014-1750 (train PR #3729 green)

@vybe
vybe merged commit 32dde65 into Abilityai:dev Oct 14, 2026
24 checks passed
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.

3 participants