Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(vibey): an answer split into adjacent text blocks reads as written, not a paragraph per citation (#2671)

Call Whited02d4187fb9b
diff --git a/core/citations.py b/core/citations.py
index a2785b0ac..aafe1d08e 100644
--- a/core/citations.py
+++ b/core/citations.py
@@ -1075,18 +1075,18 @@ class TextCitation(Protocol):
def register_text_citations(
- blocks: Iterable[tuple[str, Iterable[TextCitation]]],
+ blocks: Iterable[tuple[str, str, Iterable[TextCitation]]],
*,
unresolved_label: str,
- separator: str = "\n\n",
transform: Callable[[str], str] = lambda text: text,
) -> tuple[str, Optional[CitationBundle]]:
"""Register the citations providers attach to text blocks, as ``register_citations`` does markers.
- The one builder from ``(text, TextBlock.citations)`` to the delivered shape
- (``vibey-hosted-tools.md`` §4.2): each block's text joined by ``separator``,
- with an opaque token where each citation is written out at delivery, and the
- bundle that writes Markdown links plus the Web's badge sidecar.
+ The one builder from ``(separator, text, TextBlock.citations)`` to the delivered
+ shape (``vibey-hosted-tools.md`` §4.2): each block's text after its separator,
+ what goes before it in the display (nothing between adjacent blocks, which are
+ one span of prose), with an opaque token where each citation is written out at
+ delivery, and the bundle that writes Markdown links plus the Web's badge sidecar.
A citation with a range is attributed where its cited span ends (OpenAI and
xAI ``url_citation``); one without covers its whole block, so it is
@@ -1096,8 +1096,8 @@ def register_text_citations(
left out rather than written as a stray marker.
"""
sources: dict[str, CitationSource] = {}
- parts: list[str] = []
- for block_index, (text, citations) in enumerate(blocks):
+ joined = ""
+ for block_index, (separator, text, citations) in enumerate(blocks):
at: dict[int, list[str]] = {}
# A block the display rules remove entirely shows nothing to cite; its
# end-of-block citation would otherwise survive past the removed text.
@@ -1112,8 +1112,9 @@ def register_text_citations(
for offset in sorted(at, reverse=True):
marker = f"{_START}cite{_SEP}{_SEP.join(at[offset])}{_END}"
marked = marked[:offset] + marker + marked[offset:]
- parts.append(marked)
- joined = transform(separator.join(part for part in parts if part))
+ if marked:
+ joined += (separator if joined else "") + marked
+ joined = transform(joined)
if not sources:
return joined, None
registered, bundle = register_citations(joined, sources, unresolved_label=unresolved_label)
diff --git a/docs/plans/agent-core-contracts/conversion-tables.md b/docs/plans/agent-core-contracts/conversion-tables.md
index 7b5d8e571..d6e0aee10 100644
--- a/docs/plans/agent-core-contracts/conversion-tables.md
+++ b/docs/plans/agent-core-contracts/conversion-tables.md
@@ -697,6 +697,6 @@ An Anthropic citation covers its whole text block, so it carries no range.
| Same-Source replay (target hop is `native.source_id` under the identity that minted it, same origin, and `hosted_tools[tool].replay` is `assumed` now) | `native.payload` blocks verbatim, in place; citations not sent | `native.payload` items verbatim, in place; annotations not sent | — |
| Other-origin replay | assistant `tool_use(name=<tool>, input=<per-action arguments>)` + user `tool_result(record as text)`, splitting the assistant message; a `failed`/`incomplete` record sets `is_error: true` | `function_call(name=<tool>, arguments)` + `function_call_output(record as text)`; a failed record's text starts `[<tool> failed: <error>]` | assistant `tool_calls` + `tool` message, failure as in Responses |
| Pinning (any protocol) | a request with a native declaration or a verbatim `native.payload` carries `x-avibe-pin-source: <hop source_id>`. A continuation whose calls go back verbatim also carries `x-avibe-pin-model: <its served model>`, the hop's own model. A `409` `model_hub_pin_unavailable` / `pin_unavailable` answer is not shown: the loop renders the request again for a fresh hop, portable only as the last resort (`provider.md`). A `pause_turn` continuation is the exception (below). | same | — |
-| Citations at delivery | `TextBlock.citations` → `core/citations.py` builder → Markdown links + Web sidecar | same | — |
+| Citations at delivery | `TextBlock.citations` → `core/citations.py` builder → Markdown links + Web sidecar. A response's adjacent text blocks join as written, so an answer Anthropic splits at every cited span reads as one paragraph with each link closing its span; a paragraph break goes only where another block (a tool or hosted call, thinking) came between two texts (`storage/agent_transcript.text_parts`). | same | — |
| `pause_turn` | not a stop. The adapter sends the request again with the paused content appended as the last assistant message, with no new user message. That continuation goes to the same hop, pinned to the Source and model that served the paused response, and its output streams on as the same response. A continuation block's index follows the paused ones, and a result finalizes its pending call by id. The hosted counters and cost are summed over every response. `usage` is the final request's, whose input already holds every paused part, so the context estimate stays right; billing comes from the gateway's per-call metering. After 5 continuations, a sixth pause ends the response with one `interrupted` error whose partial keeps everything assembled. A continuation is never sent in portable form. One that Source answers `pin_unavailable`, or a pause of a send that carried no pin, ends the response the same way. The merged message is verified only when every response in it was verified and reported the same origin; otherwise it is sanitized as any unverified response. | — | — |
| In-flight replay (same turn, pinned Source) | verbatim while the fresh hop is the Source that served it and still declares each tool natively, else in place as text: each server block pair is replaced in place by one text block, and signed thinking is kept on the same origin. After a `pin_unavailable`, the fresh hop's facts decide the same way. | same | — |
diff --git a/modules/agents/vibey/agent.py b/modules/agents/vibey/agent.py
index c98b90f29..d4cdf0ea5 100644
--- a/modules/agents/vibey/agent.py
+++ b/modules/agents/vibey/agent.py
@@ -113,6 +113,7 @@ from storage.agent_transcript import (
call_instance_result,
final_outcome,
render_text,
+ text_parts,
)
from storage.db import get_cached_sqlite_engine
from storage.models import agent_events, agent_sessions, message_deliveries, messages, session_turns
@@ -1240,8 +1241,8 @@ class VibeyAgent(BaseAgent):
token that delivery writes out as a Markdown link (IM) and a badge (Web),
through ``core.citations`` like every other backend's citations.
"""
- blocks = [(block.text, block.citations or ()) for block in message.content if isinstance(block, TextBlock) and block.text]
- if not any(citations for _, citations in blocks):
+ blocks = [(separator, block.text, block.citations or ()) for separator, block in text_parts(message)]
+ if not any(citations for _, _, citations in blocks):
return self._display_source(message, final=final, replied=replied, images=images), None
body, bundle = register_text_citations(
blocks,
diff --git a/storage/agent_transcript.py b/storage/agent_transcript.py
index 920bc9c97..dbe3045c4 100644
--- a/storage/agent_transcript.py
+++ b/storage/agent_transcript.py
@@ -147,11 +147,33 @@ def _response_type(message: AssistantMessage, *, final: bool, display_text: str,
return "result" if display_text.strip() else "assistant"
+#: What a response's display puts between two text blocks another block (a tool or hosted call, thinking) separates.
+PARAGRAPH_BREAK = "\n\n"
+
+
+def text_parts(message: AssistantMessage) -> list[tuple[str, TextBlock]]:
+ """A response's text blocks as its display joins them: each non-empty block with what goes before it.
+
+ Adjacent blocks are one span of prose and join as written: a provider may split
+ its answer into many, as Anthropic does at every cited span. A paragraph break
+ goes only where another block came between two of them.
+ """
+ parts: list[tuple[str, TextBlock]] = []
+ separated = False
+ for block in message.content:
+ if not isinstance(block, TextBlock):
+ separated = True
+ elif block.text:
+ parts.append((PARAGRAPH_BREAK if parts and separated else "", block))
+ separated = False
+ return parts
+
+
def render_text(
message: AssistantMessage, *, final: bool = False, replied: bool = True, images: Sequence[HostedImage] = ()
) -> str:
- """Default display copy of a response: its text blocks, verbatim, in order."""
- return "\n\n".join(block.text for block in message.content if isinstance(block, TextBlock) and block.text)
+ """Default display copy of a response: its text blocks, verbatim, in order, joined as ``text_parts`` says."""
+ return "".join(separator + block.text for separator, block in text_parts(message))
class TranscriptError(RuntimeError):
diff --git a/tests/fixtures/anthropic_cited_answer.json b/tests/fixtures/anthropic_cited_answer.json
new file mode 100644
index 000000000..5607565a6
--- /dev/null
+++ b/tests/fixtures/anthropic_cited_answer.json
@@ -0,0 +1,181 @@
+{
+ "_recorded": "A real Vibey turn on claude-sonnet-5 through Model Hub (an Anthropic API-key Source) with native web_search, from the regression environment at 073746d4c: the committed response's C-1 content blocks. Every encrypted_content, encrypted_index and signature value is replaced with <dropped>.",
+ "content": [
+ {
+ "type": "thinking",
+ "text": "",
+ "signature": "<dropped>"
+ },
+ {
+ "type": "hosted_tool",
+ "id": "srvtoolu_01M3sEMqZAL6JWbXkmCZZmuA",
+ "tool": "web_search",
+ "action": {
+ "type": "search",
+ "queries": [
+ "avibe-bot/avibe latest release GitHub"
+ ]
+ },
+ "record": {
+ "status": "completed",
+ "sources": [
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.1",
+ "title": "Release v3.1.1 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.2",
+ "title": "Release v3.1.2 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.3",
+ "title": "Release v3.1.3 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc8",
+ "title": "Release gh-v3.1.2rc8 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc9",
+ "title": "Release gh-v3.1.2rc9 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.1rc20",
+ "title": "Release gh-v3.1.1rc20 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc7",
+ "title": "Release gh-v3.1.2rc7 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc4",
+ "title": "Release gh-v3.1.2rc4 · avibe-bot/avibe · GitHub"
+ },
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc3",
+ "title": "Release gh-v3.1.2rc3 · avibe-bot/avibe · GitHub"
+ }
+ ]
+ },
+ "native": {
+ "source_id": "src_5302e8a5ebc5cfb9",
+ "payload": [
+ {
+ "type": "server_tool_use",
+ "id": "srvtoolu_01M3sEMqZAL6JWbXkmCZZmuA",
+ "name": "web_search",
+ "input": {
+ "query": "avibe-bot/avibe latest release GitHub"
+ }
+ },
+ {
+ "type": "web_search_tool_result",
+ "tool_use_id": "srvtoolu_01M3sEMqZAL6JWbXkmCZZmuA",
+ "content": [
+ {
+ "type": "web_search_result",
+ "title": "Release v3.1.1 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.1",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release v3.1.2 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.2",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release v3.1.3 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.3",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release gh-v3.1.2rc8 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc8",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release gh-v3.1.2rc9 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc9",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release gh-v3.1.1rc20 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.1rc20",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release gh-v3.1.2rc7 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc7",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release gh-v3.1.2rc4 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc4",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ },
+ {
+ "type": "web_search_result",
+ "title": "Release gh-v3.1.2rc3 · avibe-bot/avibe · GitHub",
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/gh-v3.1.2rc3",
+ "encrypted_content": "<dropped>",
+ "page_age": null
+ }
+ ],
+ "caller": {
+ "type": "direct"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "type": "text",
+ "text": "The latest Avibe release on GitHub (avibe-bot/avibe) is "
+ },
+ {
+ "type": "text",
+ "text": "v3.1.3",
+ "citations": [
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.3",
+ "title": "Release v3.1.3 · avibe-bot/avibe · GitHub",
+ "cited_text": "- Release v3.1.3 · avibe-bot/avibe\n\n# Choose a tag to compare\n## No results found\n@github-actions github-actions released this 03 Oct 16:12\n\n· 3 commi..."
+ }
+ ]
+ },
+ {
+ "type": "text",
+ "text": ", released October 3, which "
+ },
+ {
+ "type": "text",
+ "text": "disables thinking display updates up front for Claude Code sessions launched through Model Hub to avoid HTTP 400 compatibility errors",
+ "citations": [
+ {
+ "url": "https://github.com/avibe-bot/avibe/releases/tag/v3.1.3",
+ "title": "Release v3.1.3 · avibe-bot/avibe · GitHub",
+ "cited_text": "Avibe v3.1.3 Highlights Claude Code sessions launched through Model Hub now disable thinking display updates up front, avoiding HTTP 400 compatibility..."
+ }
+ ]
+ },
+ {
+ "type": "text",
+ "text": "."
+ }
+ ]
+}
diff --git a/tests/scenarios/model_hub/catalog.yaml b/tests/scenarios/model_hub/catalog.yaml
index 60ffb3e65..7c8d17277 100644
--- a/tests/scenarios/model_hub/catalog.yaml
+++ b/tests/scenarios/model_hub/catalog.yaml
@@ -275,13 +275,14 @@ scenarios:
- tests/test_agent_transcript.py::test_a_final_commits_as_the_loops_reply_decision_says
- tests/agent_core/agent/test_loop.py::test_a_reply_counts_the_images_of_the_tool_result_that_committed_not_the_writer_that_lost
- id: MH-HOSTED-UI-011
- name: Vibey delivers a native hosted call as its IM line and Web card, and its answer with provider citations as links
+ name: Vibey delivers a native hosted call as its IM line and Web card, and its answer with provider citations as links, an answer split into adjacent text blocks reading as written
status: covered
kind: contract
layer: contract
test: tests/test_vibey_agent.py::test_a_native_hosted_call_reaches_im_as_one_line_with_its_cited_answer
related_tests:
- tests/test_vibey_agent.py::test_a_native_hosted_call_reaches_the_workbench_as_a_card_and_cited_answer
+ - tests/test_vibey_agent.py::test_an_answer_split_into_adjacent_text_blocks_reads_as_written
- tests/test_vibey_agent.py::test_a_proxied_hosted_result_shows_once_its_result_is_committed
- id: MH-HOSTED-UI-014
name: A hosted call that did not complete shows its status and any known charge, and claims neither how it ran nor what it found, on the IM line and the Web card (collapsed or expanded)
diff --git a/tests/test_citations.py b/tests/test_citations.py
index 27a120abf..2b530a2f0 100644
--- a/tests/test_citations.py
+++ b/tests/test_citations.py
@@ -1540,7 +1540,7 @@ class TestTextBlockCitations:
def test_a_ranged_citation_is_attributed_where_its_span_ends(self):
text = "Domain filters shipped. Codex is on Windows."
registered, bundle = register_text_citations(
- [(text, [self.cite(self.FILTERS, "Changelog", 0, len("Domain filters shipped."))])],
+ [("", text, [self.cite(self.FILTERS, "Changelog", 0, len("Domain filters shipped."))])],
unresolved_label=UNRESOLVED,
)
body, citations = finalize_citations(registered, bundle)
@@ -1556,8 +1556,8 @@ class TestTextBlockCitations:
"""Anthropic cites a block, not a span: the link closes that block, in the joined text."""
registered, bundle = register_text_citations(
[
- ("The posts this week:", []),
- ("Codex is on Windows.", [self.cite(self.WINDOWS, "The Codex app is now on Windows")]),
+ ("", "The posts this week:", []),
+ ("\n\n", "Codex is on Windows.", [self.cite(self.WINDOWS, "The Codex app is now on Windows")]),
],
unresolved_label=UNRESOLVED,
)
@@ -1574,8 +1574,8 @@ class TestTextBlockCitations:
code = "Run `vibe status` now."
registered, bundle = register_text_citations(
[
- (silent, [self.cite(self.FILTERS, start=len("Visible.<silent>internal"), end=len("Visible.<silent>internal"))]),
- (code, [self.cite(self.WINDOWS, start=len("Run `vibe"), end=len("Run `vibe"))]),
+ ("", silent, [self.cite(self.FILTERS, start=len("Visible.<silent>internal"), end=len("Visible.<silent>internal"))]),
+ ("\n\n", code, [self.cite(self.WINDOWS, start=len("Run `vibe"), end=len("Run `vibe"))]),
],
unresolved_label=UNRESOLVED,
transform=strip_silent_blocks,
@@ -1588,7 +1588,7 @@ class TestTextBlockCitations:
def test_a_block_the_display_rules_remove_takes_its_citations_with_it(self):
"""An unranged citation sits after its block; when the whole block is silent, nothing is left to cite."""
registered, bundle = register_text_citations(
- [("<silent>internal note</silent>", [self.cite(self.WINDOWS, "The Codex app is now on Windows")])],
+ [("", "<silent>internal note</silent>", [self.cite(self.WINDOWS, "The Codex app is now on Windows")])],
unresolved_label=UNRESOLVED,
transform=strip_silent_blocks,
)
@@ -1596,7 +1596,7 @@ class TestTextBlockCitations:
def test_text_without_citations_is_the_plain_display(self):
registered, bundle = register_text_citations(
- [("One.", []), ("Two.", [])], unresolved_label=UNRESOLVED
+ [("", "One.", []), ("\n\n", "Two.", [])], unresolved_label=UNRESOLVED
)
assert (registered, bundle) == ("One.\n\nTwo.", None)
diff --git a/tests/test_vibey_agent.py b/tests/test_vibey_agent.py
index e0df49756..c148294db 100644
--- a/tests/test_vibey_agent.py
+++ b/tests/test_vibey_agent.py
@@ -59,6 +59,7 @@ from core.agent_core.messages import (
ToolResultMessage,
UserMessage,
text,
+ message_from_dict,
message_to_dict,
)
from core.agent_core.tools.base import CallInstance, JobStatus, ToolResult, ToolSpec
@@ -4033,6 +4034,75 @@ async def test_a_native_hosted_call_reaches_im_as_one_line_with_its_cited_answer
assert f"]({CHANGELOG})" in answer
+RELEASE = "https://github.com/avibe-bot/avibe/releases/tag/v3.1.3"
+
+
+def _recorded_cited_answer(*, cited: bool = True, said_first: str = "") -> list:
+ """A real Anthropic native web search turn (``tests/fixtures/anthropic_cited_answer.json``): the answer is five
+ adjacent text blocks, split at its two cited spans. ``said_first`` puts a sentence before the search."""
+ recorded = json.loads((Path(__file__).parent / "fixtures" / "anthropic_cited_answer.json").read_text())
+ content = recorded["content"]
+ if not cited:
+ content = [{key: value for key, value in block.items() if key != "citations"} for block in content]
+ if said_first:
+ content = [content[0], {"type": "text", "text": said_first}, *content[1:]]
+ message = message_from_dict({
+ "role": "assistant",
+ "content": content,
+ "origin": {"provider": ORIGIN.provider, "api": ORIGIN.api, "model": ORIGIN.model},
+ "stop_reason": "stop",
+ "hosted_summary": {"counts": {}, "cited_sources": []},
+ })
+ return [[Done(message)]]
+
+
+ ("cited", "said_first", "answer"),
+ [
+ (
+ True,
+ "",
+ f"The latest Avibe release on GitHub (avibe-bot/avibe) is v3.1.3 [github.com]({RELEASE}), released "
+ "October 3, which disables thinking display updates up front for Claude Code sessions launched through "
+ f"Model Hub to avoid HTTP 400 compatibility errors [github.com]({RELEASE}).",
+ ),
+ (
+ False,
+ "",
+ "The latest Avibe release on GitHub (avibe-bot/avibe) is v3.1.3, released October 3, which disables "
+ "thinking display updates up front for Claude Code sessions launched through Model Hub to avoid HTTP 400 "
+ "compatibility errors.",
+ ),
+ # Text the search came between is two paragraphs.
+ (
+ False,
+ "Let me check the releases.",
+ "Let me check the releases.\n\nThe latest Avibe release on GitHub (avibe-bot/avibe) is v3.1.3, released "
+ "October 3, which disables thinking display updates up front for Claude Code sessions launched through "
+ "Model Hub to avoid HTTP 400 compatibility errors.",
+ ),
+ ],
+ ids=["recorded", "uncited", "text-before-the-search"],
+)
+async def test_an_answer_split_into_adjacent_text_blocks_reads_as_written(
+ engine, session, tmp_path, published, cited, said_first, answer
+) -> None:
+ """MH-HOSTED-UI-011: Anthropic splits its answer into adjacent text blocks at every cited span. They are one span
+ of prose: the reply joins them as written, each citation link closing its span, and breaks a paragraph only where
+ another block, such as the search itself, came between two texts. The Workbench row and the IM reply agree."""
+ rows = {}
+ for platform in ("avibe", "telegram"):
+ harness = _Harness(engine, tmp_path / platform, platform, _recorded_cited_answer(cited=cited, said_first=said_first))
+ await harness.agent.handle_message(harness.request("what is the latest avibe release?"))
+ rows[platform] = harness.rows("result")[-1]
+ if platform == "telegram":
+ assert answer in harness.controller.im_client.sent
+
+ assert rows["avibe"]["content_text"] == answer
+ citations = json.loads(rows["avibe"]["content_json"]).get("citations") or []
+ assert [citation["url"] for citation in citations] == ([RELEASE] if cited else [])
+
+
async def test_a_native_hosted_call_reaches_the_workbench_as_a_card_and_cited_answer(
engine, session, tmp_path, published
) -> None: