Skip to content

Company OS adapters: commentary vs final answer is tag-based, so it cannot work for external agent output #13101

Open

Description

@mrveiss

Problem

AutoBot separates an assistant's working commentary from its final answer
using tags the model is asked to emit — [THOUGHT] / [PLANNING]. That works for
our own LLM. It cannot work for the external agent CLIs the LLC layer drives:
they will never emit our tags.

So for LLC agent output there is no separation between "I'm checking the
config now" and the actual result. Anything that wants a summary — a spoken reply,
a notification, the work-item activity log — gets the whole play-by-play or
nothing.

Evidence

The tag scheme is declarative and requires model cooperation:

  • autobot-backend/type_defs/common.py:96-97 — THOUGHT / PLANNING message types
  • autobot-backend/chat_workflow/manager.py:331-332,569 — tag regexes
  • autobot-backend/chat_workflow/tool_handler.py:1193 — "[PLANNING]" in text
  • autobot-frontend/src/composables/useVoiceConversation.ts:96 —
    _SPEAKABLE_TYPES = {'response','message'} gates on message type

No equivalent classification exists for LLC adapter output, which is consumed as
an undifferentiated stream.

Proposed approach — structural, not declarative

Classify by tool-call position rather than by tags, so no agent cooperation is
required and it works identically for every adapter:

  • text emitted before the first tool call of a turn → opening line
  • text between tool calls → mid-work commentary
  • text remaining after the last tool call → the final answer

This is derivable from the output stream we already parse.

Risk to manage

The heuristic is wrong when an agent delivers its real answer mid-run and then
keeps tool-calling — that answer would be misclassified as commentary.

Therefore: emit this as additive metadata on the stream, not as a filter that
drops or hides text. Consumers opt in to using the classification. Nothing may be
silently discarded on the strength of a heuristic.

Acceptance criteria

  • Classification derived structurally from tool-call position, no tag
    dependency
  • Works for every LLC adapter without per-agent special-casing
  • Purely additive — no text is dropped or hidden anywhere as a result
  • Correct when a turn has zero tool calls (everything is the answer)
  • Correct when a turn ends on a tool call with no trailing text
  • Unit tests for the misclassification case (answer mid-run, then more tools)

Notes

Found during a capability audit of the LLC adapter layer.

Activity

  1. mrveiss commented on Jul 31, 2026

    @mrveiss
    OwnerAuthor

    Parent: #13096 (capability audit umbrella).

  2. modified the milestones: Backlog, v0.15.0 on Sep 12, 2026
  3. changed the title [-]LLC adapters: commentary vs final answer is tag-based, so it cannot work for external agent output[/-] [+]Company OS adapters: commentary vs final answer is tag-based, so it cannot work for external agent output[/+] on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions