Skip to content

chore(merge-train): #20840 #21122 #20576 #21074 #21094 #21193 #20987 - #21215

Closed
mrveiss wants to merge 17 commits into
mainfrom
train-2026-11-08-t99
Closed

mrveiss wants to merge 17 commits into
mainfrom
train-2026-11-08-t99

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

Train T99 lands seven approved PRs, M4 first; #21120, #21087 and #21046 were ejected for guard failures (audit vocabulary, an unimported env-registry module, a direct ast.parse with a hand-bound repo root), and #20989 for an undeclared glob and a hand-rolled comment check. This merge train is built on current main.

What Changed

Member Frozen head Title
#20840 d183f60 chore(deps): bump the all-dependencies group in /autobot-backend/code_analysis with 3 updates
#21122 b9796d2 fix(analytics): one smell counter for cards and export, dedup every type, category filter (#20493)
#20576 c325bf7 feat(admin): cleanup proposals in the admin page, and role manifests read from code_source (#20567)
#21074 8a3bcf8 wire(mesh): consume mesh:reembed_queue (#20535)
#21094 0f3d277 fix(slm): fleet updates skip nodes whose last enrollment failed (#21036)
#21193 c11edf1 feat(design-system): map SLM palette steps to tokens and ratchet raw palette classes in the SLM frontend (#17566)
#20987 ba3610e fix(knowledge): NPU search fallbacks use the non-recursive basic_vector_search leaf (#20940)

Why this shape

M4-first, then oldest-first under the 100-file cap; red members ejected under the eject-red-member rule.

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

Summary by CodeRabbit

  • New Features

    • Code-smell analytics now support filtering findings by production code, test files or all files, with category-aware summaries and exports.
    • Stale documents are re-indexed automatically, with retries for failed processing.
    • Fleet update results now report nodes skipped after failed enrollment. Deactivation or password changes pushed to the SLM revoke existing sessions.
  • Bug Fixes

    • Duplicate code findings are consolidated, and fallback searches respect quarantine filters.
    • Nodes with a failed latest enrollment are excluded from update targets.

dependabot Bot and others added 13 commits November 5, 2026 11:05
Updates the requirements on [filelock](https://github.com/tox-dev/filelock), [torch](https://github.com/pytorch/pytorch) and [torchvision](https://github.com/pytorch/vision) to permit the latest version.

Updates `filelock` to 4.2.6
- [Release notes](https://github.com/tox-dev/filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](tox-dev/filelock@4.2.5...4.2.6)

Updates `torch` from 2.14.1 to 2.15.0
- [Release notes](https://github.com/pytorch/pytorch/releases)
- [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md)
- [Commits](pytorch/pytorch@v2.14.1...v2.15.0)

Updates `torchvision` from 0.29.1 to 0.29.2
- [Release notes](https://github.com/pytorch/vision/releases)
- [Commits](pytorch/vision@v0.29.1...v0.29.2)

---
updated-dependencies:
- dependency-name: filelock
  dependency-version: 4.2.6
  dependency-type: direct:production
  dependency-group: all-dependencies
- dependency-name: torch
  dependency-version: 2.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: torchvision
  dependency-version: 0.29.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The pull request changes codebase analytics, NPU search fallbacks, mesh re-embedding, company OS end-to-end tests, and SLM update and authentication behaviour. It also updates SLM design-system documentation and shared dependency pins.

Changes: Codebase analytics

Layer / File(s) Summary
Problem filtering and deduplication
autobot-backend/api/codebase_analytics/problem_query.py, autobot-backend/api/codebase_analytics/problem_dedup.py, autobot-backend/api/codebase_analytics/endpoints/stats.py, autobot-backend/api/codebase_analytics/endpoints/report.py, autobot-backend/api/codebase_analytics/*_20493_test.py
The /problems endpoint accepts a file category and filters findings after file validation. Same-location findings are deduplicated. Tests cover category handling and deduplication while shared stats fetching retains duplicates.
Code-smell panel and export
autobot-frontend/src/composables/analytics/*, autobot-frontend/src/components/analytics/CodeSmellsSection.vue, autobot-frontend/src/components/analytics/CodebaseAnalytics.vue, autobot-frontend/src/i18n/locales/en.json, autobot-frontend/src/composables/analytics/__tests__/*, scripts/frontend_file_size_known_large.py, repo_tests/source_scoping_guard_17758_test.py
The frontend loads code-smell findings by category, computes shared severity and type summaries, and builds category-labelled exports. The panel adds category selection and loading state. Tests and recorded file-size and source-scoping limits are updated.

Mesh re-embedding consumer

Layer / File(s) Summary
Queue processing and reindexing
autobot-backend/services/mesh_brain/reembed_consumer.py, autobot_shared/env_registry.py, autobot_shared/env_registry_mesh_reembed.py
The consumer processes queued document IDs under a leader lease. It validates paths, retries failed reindexes and dead-letters invalid paths or items at the attempt limit. Five consumer settings are registered.
Consumer lifecycle and validation
autobot-backend/initialization/*, autobot-backend/services/scheduler_registry.py, autobot-backend/services/mesh_brain/reembed_consumer_test.py, docs/developer/ENV_VARS.md, changelog/unreleased/20535-mesh-reembed-consumer.md
Lifespan hooks start and stop the consumer independently of the mesh scheduler enable flag. The scheduler registry, tests, environment-variable documentation and changelog cover its setup and operation.

NPU semantic search fallback

Layer / File(s) Summary
Quarantined basic-search fallback
autobot-backend/npu_semantic_search.py, autobot-backend/tests/test_npu_semantic_search_quarantine_19163.py, autobot-backend/knowledge/knowledge_search_recursion_20940_test.py
The fallback paths use basic vector search with quarantine applied to filters and remove quarantined results. Regression tests check result filtering and prevent fallback search recursion.

Company OS end-to-end test

Layer / File(s) Summary
Budget and activity assertions
autobot-backend/tests/company_os_e2e/_expected_activity.py, autobot-backend/tests/company_os_e2e/_helpers.py, autobot-backend/tests/company_os_e2e/test_e2e_04_budget_and_pause.py, autobot-backend/tests/company_os_e2e/test_e2e_05_approval_and_audit.py
The budget test pauses and resumes its subject agent, verifies its active state and waits for the scheduler refusal log. Activity matching can exclude actions with a configured prefix.

SLM failed-enrollment filtering

Layer / File(s) Summary
Enrollment markers and target filtering
autobot-slm-backend/services/node_events.py, autobot-slm-backend/api/nodes.py, autobot-slm-backend/services/schedule_executor.py
Enrollment events receive a marker. Target filtering identifies nodes whose latest marked enrollment outcome is a deployment failure.
Update jobs and skip records
autobot-slm-backend/models/enrollment_skip.py, autobot-slm-backend/api/code_sync.py, autobot-slm-frontend/openapi.json, autobot-slm-backend/tests/api/test_fleet_skip_failed_enrollment_21036.py, autobot-slm-backend/tests/api/test_collect_outdated_node_ids.py, autobot-slm-backend/tests/api/test_schedule_specific_targets_19367.py, autobot-slm-frontend/src/composables/useCodeSync.test.ts, autobot-slm-frontend/src/views/CodeSyncView.test.ts
Update jobs report excluded nodes as enrollment skips. Code-sync and scheduled target selection exclude nodes with a latest marked enrollment failure. Tests and the API schema cover skip records and target selection.

SLM session revocation

Layer / File(s) Summary
Person-copy epoch writes
autobot-slm-backend/api/first_admin_internal.py, autobot-slm-backend/tests/api/test_first_admin_internal.py, autobot-slm-backend/tests/api/test_person_copy_revokes_sessions_21154.py, autobot-slm-frontend/openapi.json, changelog/unreleased/21154-slm-sessions-revoked-on-pushed-change.md
The person-copy endpoint records password epochs before applying inactive-person or changed-password updates. Tests cover token validity, epoch-write failures, retries and commit ordering.

SLM design-system documentation

Layer / File(s) Summary
Palette mapping reference
docs/developer/DESIGN_SYSTEM.md
The guide adds measured palette-step mappings, usage counts, role-specific utility suggestions and instructions to rebuild the table when the baseline changes.

Shared dependency pins

Layer / File(s) Summary
Updated dependency versions
constraints/shared.txt
The filelock minimum and the coupled torch and torchvision pins are updated.
Merge Risk: High · previous review 8bdc7

This PR bundles several features, and some of them do not work as intended. The mesh re-embed consumer would dead-letter every flagged neighbour. The SLM model import can break test collection. Failed enrollment lookups can report a fleet as up to date. Password-change session revocation leaves a narrow window in which an old session survives. These should be fixed before merging. The author also notes the PR is superseded by #21221.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title lists PR numbers only and does not name the changes. It is a chore merge-train title with a list of seven PRs. The changeset covers several areas: dependency pins, analytics code-smell count… Rename the PR to summarise the main changes in plain terms. For example, name the mesh re-embed consumer, the SLM enrollment skip handling, or the code-smell analytics changes. Keep the merge-train PR list in the description instead of the …
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title lists PR numbers only and does not name the changes. It is a chore merge-train title with a list of seven PRs. The changeset covers several areas: dependency pins, analytics code-smell counters and category filters, mesh re-embed consumer, SLM enrollment skip handling, person-copy session revocation, knowledge-search fallbacks, and design-system tokens. The title does not describe any one of these. It is a real description of the PR's purpose as a merge train, but it is not specific to the primary change. The title is therefore partially related to the changeset, which passes under the criteria. It is also vague in that it names no changes, so it is not clearly informative to a teammate scanning history.

Resolution

Rename the PR to summarise the main changes in plain terms. For example, name the mesh re-embed consumer, the SLM enrollment skip handling, or the code-smell analytics changes. Keep the merge-train PR list in the description instead of the title.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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 commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #21221: rebuilt on current main without #21094 (ejected: models.enrollment_skip not registered in the SLM test real-load list), with a mechanical api.ts regeneration for #21122.

@mrveiss mrveiss closed this Nov 8, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 53

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1d24d88 and 8bdc7c9.

Files ignored due to path filters: 3

  • autobot-slm-frontend/src/types/generated/api.ts is excluded by !**/generated/**
  • repo_tests/unconnected_code_baseline.txt is excluded by !**/*_baseline.txt
  • scripts/python_file_size_known_large.py is excluded by !scripts/python_file_size_known_large.py
Files selected for processing: 51

  • autobot-backend/api/codebase_analytics/endpoints/report.py
  • autobot-backend/api/codebase_analytics/endpoints/stats.py
  • autobot-backend/api/codebase_analytics/problem_dedup.py
  • autobot-backend/api/codebase_analytics/problem_dedup_20493_test.py
  • autobot-backend/api/codebase_analytics/problem_query.py
  • autobot-backend/api/codebase_analytics/problem_query_20493_test.py
  • autobot-backend/initialization/lifespan.py
  • autobot-backend/initialization/lifespan_shutdown.py
  • autobot-backend/initialization/mesh_reembed_startup.py
  • autobot-backend/knowledge/knowledge_search_recursion_20940_test.py
  • autobot-backend/npu_semantic_search.py
  • autobot-backend/services/mesh_brain/reembed_consumer.py
  • autobot-backend/services/mesh_brain/reembed_consumer_test.py
  • autobot-backend/services/scheduler_registry.py
  • autobot-backend/tests/company_os_e2e/_expected_activity.py
  • autobot-backend/tests/company_os_e2e/_helpers.py
  • autobot-backend/tests/company_os_e2e/test_e2e_04_budget_and_pause.py
  • autobot-backend/tests/company_os_e2e/test_e2e_05_approval_and_audit.py
  • autobot-backend/tests/test_npu_semantic_search_quarantine_19163.py
  • autobot-frontend/src/components/analytics/CodeSmellsSection.vue
  • autobot-frontend/src/components/analytics/CodebaseAnalytics.vue
  • autobot-frontend/src/composables/analytics/__tests__/codeSmellSummary.test.ts
  • autobot-frontend/src/composables/analytics/__tests__/useCodeSmellProblems.test.ts
  • autobot-frontend/src/composables/analytics/analyticsTypes.ts
  • autobot-frontend/src/composables/analytics/codeSmellSummary.ts
  • autobot-frontend/src/composables/analytics/useAnalyticsDataFetchers.ts
  • autobot-frontend/src/composables/analytics/useCodeSmellProblems.ts
  • autobot-frontend/src/i18n/locales/en.json
  • autobot-slm-backend/api/code_sync.py
  • autobot-slm-backend/api/first_admin_internal.py
  • autobot-slm-backend/api/nodes.py
  • autobot-slm-backend/models/enrollment_skip.py
  • autobot-slm-backend/services/node_events.py
  • autobot-slm-backend/services/schedule_executor.py
  • autobot-slm-backend/tests/api/test_collect_outdated_node_ids.py
  • autobot-slm-backend/tests/api/test_first_admin_internal.py
  • autobot-slm-backend/tests/api/test_fleet_skip_failed_enrollment_21036.py
  • autobot-slm-backend/tests/api/test_person_copy_revokes_sessions_21154.py
  • autobot-slm-backend/tests/api/test_schedule_specific_targets_19367.py
  • autobot-slm-frontend/openapi.json
  • autobot-slm-frontend/src/composables/useCodeSync.test.ts
  • autobot-slm-frontend/src/views/CodeSyncView.test.ts
  • autobot_shared/env_registry.py
  • autobot_shared/env_registry_mesh_reembed.py
  • changelog/unreleased/20535-mesh-reembed-consumer.md
  • changelog/unreleased/21154-slm-sessions-revoked-on-pushed-change.md
  • constraints/shared.txt
  • docs/developer/DESIGN_SYSTEM.md
  • docs/developer/ENV_VARS.md
  • repo_tests/source_scoping_guard_17758_test.py
  • scripts/frontend_file_size_known_large.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot 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.

Review continued from previous batch...

Comment thread autobot-backend/npu_semantic_search.py Resolved
Comment thread autobot-slm-frontend/openapi.json Resolved
Comment thread docs/developer/DESIGN_SYSTEM.md Resolved
Comment thread docs/developer/DESIGN_SYSTEM.md Resolved
Comment thread docs/developer/DESIGN_SYSTEM.md Resolved
Comment thread docs/developer/ENV_VARS.md Resolved
@mrveiss

mrveiss commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Audited zero-file close (owner-approved procedure, 2026-11-21).

The train was synced to main with [skip ci] at 7bd3c2b451. Each conflict was resolved by what the two sides actually do, not by which is newer: 1 conflict: constraints/shared.txt filelock, main's later pin taken (8f6217a, #21471). One silent reversal (the torch bump from #20840) was undone in the merge.

The PR now changes 0 files against main, so all of its content is on main. Members: #21122, #20576, #21074, #21094, #21193, #20987 — frozen heads are ancestors of main. #20840 was not carried: its filelock pin is superseded by main's >=4.2.10 (8f6217a, #21471), and its torch 2.15.0 bump is tracked in #20690 (head d183f60), so main's 2.14.1 pin is kept..

The full conflict and verdict tables are kept in the branch-audit state log. Closing and deleting the branch.

@mrveiss mrveiss closed this Nov 21, 2026
@mrveiss
mrveiss deleted the train-2026-11-08-t99 branch November 21, 2026 02:16
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