Repository navigation
feat(admin): cleanup proposals in the admin page, and role manifests read from code_source (#20567) - #20576
feat(admin): cleanup proposals in the admin page, and role manifests read from code_source (#20567)#20576mrveiss wants to merge 36 commits into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 46 minutes. View limit details
Walkthrough
Merge Risk:
|
|
Code review on PR #20576 (head 5c1ee56): changes needed. Read only; nothing was run, and CI is mostly cancelled so gives no signal. The approval and removal design is sound: server-only, verified human decider, durable intent first, paths re-planned at execution, symlinks refused, and a smuggled context path is ignored. The manifest change isn't:
|
|
Code review on PR #20576 (head e62508b): approve. Read only; nothing was run. The stale-directory removal is out and owned by #20578. The loader tries the override, then |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 9cec6261a1 |
fix(slm): satisfy admin-gate, unconnected-code guards after merging main (#20046) | #20046 |
| main | 0a13682e6e |
fix(slm): round-2 review of the SSH-password deletion proposal - sudo probe, cleanup guards, atomic proposals, edge deny (#20046) | #20046 |
| main | e62508b8f0 |
fix(admin): the stale-directory cleanup moves to #20578; manifests fall back to the install copy; no duplicate proposals (#20567) | #20578, #20567 |
| main | 216915b0e4 |
feat(admin): cleanup proposals for .env copies, the stale directory and the tier column (#20567) | #20567 |
| this branch | dd95607e2c |
fix(cleanup): admin gate tested through the real auth stack, pending proposal unique in the database, intent audit is attempted (#20567) | #20567 |
| this branch | e62508b8f0 |
fix(admin): the stale-directory cleanup moves to #20578; manifests fall back to the install copy; no duplicate proposals (#20567) | #20578, #20567 |
| this branch | 216915b0e4 |
feat(admin): cleanup proposals for .env copies, the stale directory and the tier column (#20567) | #20567 |
autobot-backend/models/approval.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 0a13682e6e |
fix(slm): round-2 review of the SSH-password deletion proposal - sudo probe, cleanup guards, atomic proposals, edge deny (#20046) | #20046 |
| main | ab55d41295 |
Merge main into issue-20046-ssh-password-proposal | none |
| main | 34dcb9bfa4 |
Merge remote-tracking branch 'origin/main' into issue-20046-ssh-password-proposal | none |
| this branch | dd95607e2c |
fix(cleanup): admin gate tested through the real auth stack, pending proposal unique in the database, intent audit is attempted (#20567) | #20567 |
| this branch | 5b6a45954a |
Merge main into issue-20567-cleanup-proposals (#20567) | #20567 |
| this branch | f9b32dd40b |
fix(merge): resolve the core_routers.py clash with #20445 into one implementation (#20567) | #20445, #20567 |
autobot-backend/services/install_cleanup_actions.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 0a13682e6e |
fix(slm): round-2 review of the SSH-password deletion proposal - sudo probe, cleanup guards, atomic proposals, edge deny (#20046) | #20046 |
| main | f9b32dd40b |
fix(merge): resolve the core_routers.py clash with #20445 into one implementation (#20567) | #20445, #20567 |
| main | d201fc287a |
fix(admin): the .env cleanup finds the backend when the base dir already is it (#20567) | #20567 |
| main | e62508b8f0 |
fix(admin): the stale-directory cleanup moves to #20578; manifests fall back to the install copy; no duplicate proposals (#20567) | #20578, #20567 |
| main | 15201851ad |
fix(admin): cleanup removals are audited first, and role manifests come from code_source (#20567) | #20567 |
| main | 216915b0e4 |
feat(admin): cleanup proposals for .env copies, the stale directory and the tier column (#20567) | #20567 |
| this branch | dd95607e2c |
fix(cleanup): admin gate tested through the real auth stack, pending proposal unique in the database, intent audit is attempted (#20567) | #20567 |
| this branch | f9b32dd40b |
fix(merge): resolve the core_routers.py clash with #20445 into one implementation (#20567) | #20445, #20567 |
| this branch | d201fc287a |
fix(admin): the .env cleanup finds the backend when the base dir already is it (#20567) | #20567 |
| this branch | e62508b8f0 |
fix(admin): the stale-directory cleanup moves to #20578; manifests fall back to the install copy; no duplicate proposals (#20567) | #20578, #20567 |
| this branch | 15201851ad |
fix(admin): cleanup removals are audited first, and role manifests come from code_source (#20567) | #20567 |
| this branch | 216915b0e4 |
feat(admin): cleanup proposals for .env copies, the stale directory and the tier column (#20567) | #20567 |
autobot-frontend/src/types/generated/api.ts
| side | commit | subject | issue refs |
|---|---|---|---|
| main | b538829e64 |
fix(train): T86 — #20587 types, observable 113, admin menu entry, async session mock, SLM loggers, test-loader router, deterministic ids (#20046) | #20587, #20046 |
| main | 7b9596f713 |
Merge main into the merge train | none |
| main | 54daa85828 |
fix(company-os): make the unfiled-recovery notice company-wide and drop the ignored created_by_user_id (#20687) | #20687 |
| main | ab55d41295 |
Merge main into issue-20046-ssh-password-proposal | none |
| main | 9cde5310e5 |
Merge main into issue-18978-hierarchy | none |
| main | b9edada413 |
Merge main into issue-20046-ssh-password-proposal (#20046) | #20046 |
| main | f55b33c71e |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | e0b409e80c |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | de2fc37310 |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | 7ea4e2fa5c |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | e9059136bf |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | 4553e11991 |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | cba1c46171 |
Merge main into issue-20046-ssh-password-proposal (auto-sync) [skip ci] | none |
| main | 4baaaf1783 |
Merge main into issue-18978-hierarchy (auto-sync) [skip ci] | none |
| main | f9b32dd40b |
fix(merge): resolve the core_routers.py clash with #20445 into one implementation (#20567) | #20445, #20567 |
| main | 10 more commit(s) not listed | ||
| this branch | 5b6a45954a |
Merge main into issue-20567-cleanup-proposals (#20567) | #20567 |
| this branch | d61b77fa9a |
Merge main into issue-20567-cleanup-proposals (auto-sync) [skip ci] | none |
| this branch | 0aa5520331 |
Merge main into issue-20567-cleanup-proposals (auto-sync) [skip ci] | none |
| this branch | 5d6fd8066e |
Merge main into issue-20567-cleanup-proposals (auto-sync) [skip ci] | none |
| this branch | 132964496f |
Merge main into issue-20567-cleanup-proposals (auto-sync) [skip ci] | none |
| this branch | f9b32dd40b |
fix(merge): resolve the core_routers.py clash with #20445 into one implementation (#20567) | #20445, #20567 |
| this branch | e62508b8f0 |
fix(admin): the stale-directory cleanup moves to #20578; manifests fall back to the install copy; no duplicate proposals (#20567) | #20578, #20567 |
| this branch | 216915b0e4 |
feat(admin): cleanup proposals for .env copies, the stale directory and the tier column (#20567) | #20567 |
|
Code review on PR #20576 (head ff6800b): approve. Read only; I didn't run the tests. Since the last approved head: floor-only conflicts taking main's side, and |
|
Delta review: cef54df after approved cd10121. Verdict: APPROVE
|
Thinking Path
Owner rule: people work in the UI, not API calls. Two decided cleanups had no way to be proposed from the UI: the
.env.*~copies of the secrets file, and thesubscription_tiercolumn (#19997). The approval registry fits: an action registered there runs on the server only after a human approves it.Building this found a live problem. The SLM's
manifest_loaderreads role manifests from theautobot-infrastructurecopy beside the install, which is not updated, and no role setsSLM_INFRA_BASE_DIR. Pre-flight checks use those manifests. So hosts read old manifests, and that "stale" directory is not unused.What Changed
manifest_loaderreadscode_source's copy when it exists, else the base's own directory, so a checkout and an agent-only node keep working, and warns when there is none. This changes behaviour on every host: manifests become current on the next update.server_onlyaction for.env.*~: keep the newest by mtime, remove the rest, as the maintainer chose. Refused when the install root is a checkout.AUTOBOT_BASE_DIRis<install>/autobot-backenditself (read from the local install's env), so the action handles that as well as an install root.Removing the stale directory is NOT here. Several modules may still read it, so #20578 establishes each reader, repoints it, and then adds the proposal.
Verification
See the test results in the commits: backend action and route tests using
tmp_pathonly, loader tests on real directories, the view's spec, and the contract, i18n and fragmentation ratchets.Limits:
adminRoutes.test.tscould not run locally:reka-uidoes not resolve. CI is its first run.server_onlyplus the existing gate; the gate itself was not tested here..env.*~route, tested with a mocked service only: the JSONB query was never run against a database. The existing column route can still create a duplicate proposal.Refs #20567, #19997, #20517
Model Used
Claude Opus 5.5
Summary by CodeRabbit
New Features
Safety
Bug Fixes