Skip to content

chore(merge-train): #21097 #21113 #21116 #21124 #20777 - #21176

Merged
mrveiss merged 55 commits into
mainfrom
train-2026-11-08-t96b
Nov 8, 2026
Merged

mrveiss merged 55 commits into
mainfrom
train-2026-11-08-t96b

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Thinking Path

Land five reviewed, approved PRs together so they share one full CI run, each reviewed at the frozen head below. #21085 and #21030 were dropped to keep the train within 100 files; they board the next train. #21020 was ejected from the previous train (migration test failed with MissingGreenlet) and boards a later train once fixed. This merge train is built on current main.

What Changed

Member Frozen head Title
#21097 c3365cd fix(company-os): route budget alerts and handoff notices to the company live channel (#21080)
#21113 d8496e9 fix(slm): the /admin section requires an admin, not service.management (#20631)
#21116 910641d fix(chat): user cancel for chat uploads and a tested ETA (#20133)
#21124 f0218c2 feat(chat): charge agent-created conversation files to their human owner (#20678)
#20777 6f5fc27 feat(approvals): an approved realign of the backend's internal key is applied by the next update (#20750)

Ejected member

train-content-drop: #21020 autobot-backend/tests/migrations/test_admin_status_revision_20670.py ejected from this train after MissingGreenlet in its migration test; it needs a fix before the next train

Why this shape

Merge train: --no-ff merges of frozen heads on current main, plus in-train fixes for the realign migration chain, guard-shaped tests and the install script.

Verification

  • The listed repo guards were run on the merged tree; no full suite was run. CI is the check.
  • Not run locally: stylelint, vue-tsc, generated types.
  • None of the frontend changes has been seen in a browser.

Model Used

Claude Opus 5.5

🤖 Generated with Claude Code

mrveiss and others added 30 commits November 3, 2026 22:06
…on and #20750's key realign (#20750)

#20587's SSH-password flow becomes one table (autobot_shared.slm_credential_actions),
one propose route, one claim and one outcome route, shared with the new
INTERNAL_KEY_REALIGN action; there is no second approval flow.

- A proposal names its action and node; a node's open approval (pending, or
  approved and unspent) is returned rather than duplicated, so the next
  update finds an approved realign to claim.
- The realign proposal says it applies at the node's next builtin update,
  that the backend and celery restart then, and lists what depends on the
  key, the slm_agent fallback included.
- Its server-side executor changes nothing: the keys differ, so neither
  service can call the other; it records that the update applies it.
- Every realign step is audited: AuditAction INTERNAL_KEY_REALIGN_PROPOSED,
  _CLAIMED, _APPLIED, _APPLY_FAILED, appended at the end of the block.
…d by the next update (#20750)

The backend's and the SLM's internal keys differ in this case, so every call
carries the backend's CURRENT key, which the backend accepts:

- realign_internal_api_key_claim.yml (after the resolve step): a mismatch
  is proposed; an approved one is claimed (spent once) and every env file
  renders the SLM's key. The SLM's key is checked BEFORE the claim, so a run
  that can't read it neither spends the approval nor renders an empty key;
  a no-restart sync (#20743) leaves the approval for the next full update.
- realign_internal_api_key_verify.yml (after "Wait for API to be ready"):
  the applied outcome is reported WITH the new key, so its 204 proves the
  restarted backend takes it. Otherwise apply_failed is reported with the
  old key and the run stops saying what state the node is in; nothing is
  rolled back blindly.

The backend URL is the node's loopback with infrastructure.ports.backend.
…tcome per approval, claim only a full unit (#20750)

- Reusing an approved, unspent approval is per action (reuse_approved):
  on for the realign, which the next update claims; off for #20046's SSH
  delete, whose executor runs inside approve() — a failed one would
  otherwise block every retry.
- The outcome route records ONE terminal outcome per approval (a
  conditional UPDATE); a second report is a 409, so an "applied" record
  can't be forged or overwritten. The reported detail is cleaned to one
  capped line before it reaches the audit row and the comment.
- Claim -> render -> restart -> verify -> outcome is one unit: the claim
  runs only when this run's tags render, restart (backend and celery) and
  verify; --tags env, --skip-tags restart/celery or a no-restart sync leave
  the approval unspent. The updater's three includes apply their tags, so
  a tag-filtered run reaches the included tasks.
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ecdcded and 50c19ad.

Files ignored due to path filters: 2

  • autobot-frontend/src/types/generated/api.ts is excluded by !**/generated/**
  • scripts/python_file_size_known_large.py is excluded by !scripts/python_file_size_known_large.py
Files selected for processing: 76

  • autobot-backend/api/approval_gates_admin_only_20046_test.py
  • autobot-backend/api/conversation_files.py
  • autobot-backend/api/internal_slm_credential_proposals.py
  • autobot-backend/api/internal_slm_credential_proposals_race_20046_test.py
  • autobot-backend/api/internal_slm_credential_proposals_realign_index_20750_test.py
  • autobot-backend/api/internal_slm_credential_proposals_realign_race_20750_test.py
  • autobot-backend/api/schemas_slm_credential_proposals.py
  • autobot-backend/conversation_file_manager.py
  • autobot-backend/conversation_file_mcp_dispatch.py
  • autobot-backend/conversation_file_quota.py
  • autobot-backend/conversation_file_quota_owner.py
  • autobot-backend/conversation_file_quota_owner_20678_test.py
  • autobot-backend/conversation_file_quota_owner_schema.py
  • autobot-backend/conversation_file_schema_version.py
  • autobot-backend/conversation_file_upload_info.py
  • autobot-backend/database/migrations/001_create_conversation_files.py
  • autobot-backend/database/schemas/conversation_files_schema.sql
  • autobot-backend/llc/notifications/router.py
  • autobot-backend/llc/services/after_commit.py
  • autobot-backend/llc/services/commit_publish.py
  • autobot-backend/llc/services/handoff.py
  • autobot-backend/llc/services/work_item_own_task.py
  • autobot-backend/llc/tests/test_after_commit_primitive_21080.py
  • autobot-backend/llc/tests/test_checkout_fence_after_commit_20930.py
  • autobot-backend/llc/tests/test_handoff_publish_after_commit_21080.py
  • autobot-backend/llc/tests/test_handoff_to_agent.py
  • autobot-backend/llc/tests/test_handoff_to_human.py
  • autobot-backend/llc/tests/test_notification_router.py
  • autobot-backend/llc/tests/test_own_task_moves_20508.py
  • autobot-backend/llc/tests/test_review_gate.py
  • autobot-backend/migrations/versions/20261107_114_approvals_pending_key_realign_unique.py
  • autobot-backend/models/approval.py
  • autobot-backend/services/approval_execution_proposer_test.py
  • autobot-backend/services/approval_gate_service.py
  • autobot-backend/services/audit/taxonomy.py
  • autobot-backend/services/slm_credential_claim.py
  • autobot-backend/services/slm_credential_claim_20046_test.py
  • autobot-backend/services/slm_credential_texts.py
  • autobot-backend/services/slm_internal_key_realign_20750_test.py
  • autobot-backend/services/slm_internal_key_realign_action.py
  • autobot-backend/services/slm_ssh_password_action.py
  • autobot-backend/services/slm_ssh_password_action_20046_test.py
  • autobot-backend/services/slm_ssh_password_claim.py
  • autobot-backend/tests/api/internal_slm_credential_proposals_20046_test.py
  • autobot-backend/tests/migrations/test_probe_ladder_selfcheck.py
  • autobot-backend/tests/security/test_internal_credential_routes_real_auth_20750.py
  • autobot-frontend/src/components/chat/ChatInput.vue
  • autobot-frontend/src/composables/__tests__/useUploadCancel.spec.ts
  • autobot-frontend/src/composables/useUploadCancel.ts
  • autobot-frontend/src/i18n/locales/en.json
  • autobot-frontend/src/router/__tests__/adminRoutes.test.ts
  • autobot-frontend/src/router/__tests__/restoredSessionGuards.test.ts
  • autobot-frontend/src/router/adminRoutes.ts
  • autobot-frontend/src/utils/__tests__/conversationFileUpload.spec.ts
  • autobot-frontend/src/utils/conversationFileUpload.ts
  • autobot-infrastructure/shared/scripts/install-slm.sh
  • autobot-slm-backend/ansible/_shared/tasks/realign_internal_api_key_claim.yml
  • autobot-slm-backend/ansible/_shared/tasks/realign_internal_api_key_verify.yml
  • autobot-slm-backend/ansible/playbooks/update-all-nodes.yml
  • autobot-slm-backend/ansible/roles/_shared/tasks/link_autobot_shared.yml
  • autobot-slm-backend/services/node_ssh_password.py
  • autobot-slm-backend/services/node_ssh_password_20046_test.py
  • autobot-slm-backend/tests/api/test_websocket_admin_only_20631.py
  • autobot-slm-backend/tests/test_internal_api_key_source_20750.py
  • autobot-slm-backend/tests/test_internal_key_realign_ansible_20750.py
  • autobot_shared/slm_credential_actions.py
  • autobot_shared/slm_credential_actions_20899_test.py
  • autobot_shared/slm_credential_deletion.py
  • docs/adr/011-one-frontend-admin-namespace.md
  • repo_tests/autobot_shared_symlink_relative_13539_test.py
  • repo_tests/internal_paths_denied_at_edge_20046_test.py
  • repo_tests/update_all_nodes_shared_link_needs_component_21035_test.py
  • repo_tests/venv_builders_use_floor_interpreter_20932_test.py
  • scripts/frontend_file_size_known_large.py
  • scripts/lib/python_floor.sh
  • scripts/lib/python_floor_test.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss
mrveiss merged commit 250ddc4 into main Nov 8, 2026
93 checks passed
@mrveiss
mrveiss deleted the train-2026-11-08-t96b branch November 8, 2026 12:29
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.

1 participant