Skip to content

chore(merge-train): #20668 #20712 #20656 #20666 #20621 #20654 - #20713

Merged
mrveiss merged 43 commits into
mainfrom
train-2026-11-03-88t
Nov 3, 2026
Merged

mrveiss merged 43 commits into
mainfrom
train-2026-11-03-88t

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

Approved defect fixes with no open thread, oldest first. Must not land ahead of the train carrying the migrations fix (PR #20691). This merge train is built on current main.

What Changed

Member Frozen head Title
#20668 4fad5e7 fix(chat): conversation uploads stop reading at the size cap and respect a per-user quota (#20217)
#20712 6ede4cd docs(research): compare a hosted integration platform's agent tools against AutoBot (#20708)
#20656 bf9118a fix(validation): the metrics route survives an unscored phase, and trends say when they have no history (#20523)
#20666 9e65b40 fix(gui): the phase indicator says not scored, and maturity averages only scored phases (#20658)
#20621 450e447 fix(chat): inline tool results reach the next prompt, loops are caught, and the cap forces an answer (#19715)
#20654 0b4115e fix(llm): the failsafe has a real fallback, on models every install pulls (#19733)

Why this shape

Under the 100-file limit.

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
    • Conversation-file uploads now enforce per-user storage quotas as well as file-size limits, with clear explanations when uploads are refused.
    • Chat workflows detect repeated tool-call loops and can provide a final answer when the continuation limit is reached.
  • Improvements
    • Validation dashboards distinguish unscored phases from zero scores and indicate when trend history is unavailable.
    • Failsafe responses can retry using a separately configured backup model.
  • Bug Fixes
    • Oversized or over-quota uploads are stopped early, avoiding unnecessary file reads.

mrveiss and others added 30 commits November 2, 2026 10:41
…codes and a pending-removal split (#20217)

The quota is a conditional insert in the manager (create, agent-create, upload and content update all pass it),
so concurrent writers cannot overshoot. A 413 carries a stable code and live / pending-removal bytes, the chat
maps them to translated text, and uploaded_by gains an index. Depends on #20540 for the pending-removal queue.
…nto issue-20233-chat-file-defects

# Conflicts:
#	repo_tests/i18n_untranslated_ratchet_test.py
…ol-results

# Conflicts:
#	autobot-backend/chat_workflow/graph.py
#	scripts/python_file_size_known_large.py

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

Follow-up Comments

Minor follow-up Give each progress bar an accessible name.

31-38: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Give each progress bar an accessible name.

The maturity bar (line 31) and each phase bar (line 102) set role="progressbar" without aria-label or aria-labelledby. WAI-ARIA 1.2 requires a name for progressbar, so screen readers announce a value without its context. Add a name to each bar. No consumer in autobot-frontend/src renders this component at head.

Suggested fix
           <div
             class="maturity-bar"
             role="progressbar"
+            :aria-label="$t('workflow.phaseProgression.systemMaturity')"
             :aria-valuenow="systemMaturity ?? undefined"
           <div
             class="progress-bar"
             role="progressbar"
+            :aria-label="phase.name"
             :aria-valuenow="phase.completion_percentage ?? undefined"

Open the source location

Minor follow-up Emit ONTOOLCALL and ONTOOLCOMPLETE for inline-dispatched tool calls.

908-909: 🎯 Functional Correctness | 🟡 Minor | ⚖️ Poor tradeoff

Emit ON_TOOL_CALL and ON_TOOL_COMPLETE for inline-dispatched tool calls.

The inline branch in execute_tools returns before emit_tool_call_hook and emit_tool_complete_hook. Tool calls on the default inline path therefore send neither event. Hook.ON_TOOL_CALL is documented as "Called before a tool is invoked," so a correctly written subscriber misses these invocations. The gap predates this change.

Open the source location

Minor follow-up Retain work-item approval categories for the final call.

87-89: 🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

Retain work-item approval categories for the final call.

ON_TOOL_CALL can rewrite the live call after the graph binds approval to the displayed call. Clearing exec_ctx.requires_approval_before at this point removes the work-item category before the final dispatch check. A rewritten read-only run_shell call can then resolve as autonomous and run without approval.

Remove only the clearing assignment. The final enforcement path already permits an unchanged call whose fingerprint is in approved_fingerprints.

Suggested fix
-    exec_ctx.requires_approval_before = []

Open the source location

Minor follow-up Scope the pending-removal lookup to deleted files.

38-40: 🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win

Scope the pending-removal lookup to deleted files.

For an owner with only live files, SQLite short-circuits at is_deleted = 0 and does not enter the IN subquery. If that owner has a deleted file, SQLite materialises the non-correlated subquery for all unprocessed queue rows, including rows for other owners. A large cleanup backlog can therefore increase the cost of the quota statements for owners with pending deletions.

Use a correlated EXISTS and add an index that supports the lookup:

Suggested fix
-    "uploaded_by IS ? AND (is_deleted = 0 OR file_id IN "
-    "(SELECT file_id FROM file_cleanup_queue WHERE is_processed = 0))"
+    "uploaded_by IS ? AND (is_deleted = 0 OR EXISTS ("
+    "SELECT 1 FROM file_cleanup_queue "
+    "WHERE file_cleanup_queue.file_id = conversation_files.file_id "
+    "AND file_cleanup_queue.is_processed = 0))"
+CREATE INDEX idx_cleanup_queue_file_processed
+    ON file_cleanup_queue(file_id, is_processed);

Open the source location

Nitpick Assert each null completion tile, not the page text.

113-119: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Assert each null completion tile, not the page text.

The phase table can provide Not scored independently of the headline completion tiles. Assert the three tile test IDs so this test covers the behaviour described by its title. If the test must model every phase as unscored, also change phase_one in the fixture to use null; the current fixture contains one scored phase.

🧪 Suggested fix
-    expect(w.text()).toContain(L.phases.notScored)
+    for (const key of ['averageCompletion', 'minCompletion', 'maxCompletion']) {
+      expect(byId(w, `slm-validation-stat-${key}`).text()).toContain(L.phases.notScored)
+    }
     expect(w.text()).not.toContain('NaN')

Open the source location

Nitpick Add a test for a populated trend series.

143-149: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add a test for a populated trend series.

The route test covers only an empty series. Add a case with one point and assert available is True. This protects the has_trend_history truthiness contract while the current generator emits only empty series.

🧪 Suggested test
     with patch.object(vd, "get_dashboard_generator", return_value=gen):
         result = await vd.get_trend_data()
     assert result["available"] is False
     assert result["trends"] == {"maturity_trend": []}
+
+
+@pytest.mark.asyncio
+async def test_the_trends_route_reports_history_when_a_series_has_a_point() -> None:
+    gen = MagicMock()
+    gen._generate_trend_data = AsyncMock(return_value={"maturity_trend": [{"value": 1.0}]})
+    with patch.object(vd, "get_dashboard_generator", return_value=gen):
+        result = await vd.get_trend_data()
+    assert result["available"] is True

Open the source location

Nitpick Assert the null-state aria-valuetext on the system maturity bar.

62-67: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Assert the null-state aria-valuetext on the system maturity bar.

The all-unscored test does not check the accessible text that PhaseProgressionIndicator.vue sets on .maturity-bar. Add an assertion for the English translation so a removed binding is detected.

🧪 Suggested test addition
     expect(w.find('.maturity-percentage').text()).toBe('No phases scored')
     expect(w.find('.maturity-bar').attributes('aria-valuenow')).toBeUndefined()
+    expect(w.find('.maturity-bar').attributes('aria-valuetext')).toBe('No phases scored')
     expect(w.find('.maturity-fill').exists()).toBe(false)

Open the source location

Nitpick Add real-helper coverage for the final pass.

151-157: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add real-helper coverage for the final pass.

The final-pass test mocks graph._run_llm_iteration_plan, so it cannot detect dispatch in the real graph helper or force_final_answer. Add a focused test with one parsed tool call that invokes the real helper and asserts that _process_tool_calls is not called. Keep the manager-level test because it covers a different seam.

Open the source location

Comment thread autobot-backend/chat_workflow/graph.py Resolved
Comment thread autobot-backend/chat_workflow/graph.py Resolved
@mrveiss
mrveiss merged commit ae35848 into main Nov 3, 2026
91 of 96 checks passed
@mrveiss
mrveiss deleted the train-2026-11-03-88t branch November 3, 2026 09:40
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