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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
{
"generated_by": "tests/citation_bridge.py",
"cases": [
{
"key": "star_host",
"why": "A host holding Markdown emphasis: the label must read as the host it names, and the address must arrive character for character.",
"sources": {
"turn0view0": {
"url": "https://a*b*.example/x",
"title": "Star Host"
}
},
"agent_text": "Cited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Star Host",
"url": "https://a*b*.example/x",
"label": "a*b*.example",
"spans": [
[
7,
47
]
],
"body_sha256": "eb9ddd8a0ef42c6e11907a0236f56ba62035d47bcdece9c2ccb1c6f4a0869115"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Star Host",
"url": "https://a*b*.example/x",
"label": "a*b*.example",
"spans": [
[
7,
47
]
],
"body_sha256": "eb9ddd8a0ef42c6e11907a0236f56ba62035d47bcdece9c2ccb1c6f4a0869115"
}
],
"web_text": "Cited. [a\\*b\\*.example](https://a*b*.example/x)",
"im_text": "Cited. [a\\*b\\*.example](https://a*b*.example/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "a*b*.example",
"url": "https://a*b*.example/x",
"cited": true
}
],
"im_anchors": [
{
"label": "a*b*.example",
"url": "https://a*b*.example/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "entity_host",
"why": "A host that spells a character reference once decoded; the reader must see the reference, not whatever it would expand to.",
"sources": {
"turn0view0": {
"url": "https://a%26copy%3B.example/x",
"title": "Entity Host"
}
},
"agent_text": "Cited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Entity Host",
"url": "https://a%26copy%3B.example/x",
"label": "a©.example",
"spans": [
[
7,
56
]
],
"body_sha256": "70d0ad0977951744eecc54b7c52f7b63f7ffd25c80506afab29da20ddc76248e"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Entity Host",
"url": "https://a%26copy%3B.example/x",
"label": "a©.example",
"spans": [
[
7,
56
]
],
"body_sha256": "70d0ad0977951744eecc54b7c52f7b63f7ffd25c80506afab29da20ddc76248e"
}
],
"web_text": "Cited. [a\\©.example](https://a%26copy%3B.example/x)",
"im_text": "Cited. [a\\©.example](https://a%26copy%3B.example/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "a©.example",
"url": "https://a%26copy%3B.example/x",
"cited": true
}
],
"im_anchors": [
{
"label": "a©.example",
"url": "https://a%26copy%3B.example/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "underscore_path",
"why": "Underscores in the path and the query - not CommonMark emphasis, but Slack mrkdwn and Telegram both read them as italics.",
"sources": {
"turn0view0": {
"url": "https://example.com/a_b_c?q=_u_&r=1",
"title": "Underscores"
}
},
"agent_text": "Cited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Underscores",
"url": "https://example.com/a_b_c?q=_u_&r=1",
"label": "example.com",
"spans": [
[
7,
57
]
],
"body_sha256": "d60ba5fe9949c542b856924a537416a64ba949f88fedbc5da02f54e05e8bd1cc"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Underscores",
"url": "https://example.com/a_b_c?q=_u_&r=1",
"label": "example.com",
"spans": [
[
7,
57
]
],
"body_sha256": "d60ba5fe9949c542b856924a537416a64ba949f88fedbc5da02f54e05e8bd1cc"
}
],
"web_text": "Cited. [example.com](https://example.com/a_b_c?q=_u_&r=1)",
"im_text": "Cited. [example.com](https://example.com/a_b_c?q=_u_&r=1)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/a_b_c?q=_u_&r=1",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/a_b_c?q=_u_&r=1",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "backtick_query",
"why": "A backtick and an asterisk inside the query string, where a converter that scans destinations rewrites the address itself.",
"sources": {
"turn0view0": {
"url": "https://example.com/p?q=%60code%60&r=a*b*",
"title": "Query"
}
},
"agent_text": "Cited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Query",
"url": "https://example.com/p?q=%60code%60&r=a*b*",
"label": "example.com",
"spans": [
[
7,
63
]
],
"body_sha256": "7e8a6d3c876e54aceccd94efc38b593356a4dca9f42a3b9832f42b33946da0e5"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Query",
"url": "https://example.com/p?q=%60code%60&r=a*b*",
"label": "example.com",
"spans": [
[
7,
63
]
],
"body_sha256": "7e8a6d3c876e54aceccd94efc38b593356a4dca9f42a3b9832f42b33946da0e5"
}
],
"web_text": "Cited. [example.com](https://example.com/p?q=%60code%60&r=a*b*)",
"im_text": "Cited. [example.com](https://example.com/p?q=%60code%60&r=a*b*)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/p?q=%60code%60&r=a*b*",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/p?q=%60code%60&r=a*b*",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "format_chars",
"why": "A zero-width space in the query, percent-encoded: invisible characters must not silently drop out of an address.",
"sources": {
"turn0view0": {
"url": "https://example.com/p?q=a%E2%80%8Bb",
"title": "Invisible"
}
},
"agent_text": "Cited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Invisible",
"url": "https://example.com/p?q=a%E2%80%8Bb",
"label": "example.com",
"spans": [
[
7,
57
]
],
"body_sha256": "f10a639c01574e9f9008ec6d8f5f883433c1c1410aea56764e0a1317c4a25bb8"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Invisible",
"url": "https://example.com/p?q=a%E2%80%8Bb",
"label": "example.com",
"spans": [
[
7,
57
]
],
"body_sha256": "f10a639c01574e9f9008ec6d8f5f883433c1c1410aea56764e0a1317c4a25bb8"
}
],
"web_text": "Cited. [example.com](https://example.com/p?q=a%E2%80%8Bb)",
"im_text": "Cited. [example.com](https://example.com/p?q=a%E2%80%8Bb)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/p?q=a%E2%80%8Bb",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/p?q=a%E2%80%8Bb",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "ipv6_port",
"why": "A literal IPv6 authority with a port. The brackets are reserved authority syntax, and a link nobody can open is not attribution.",
"sources": {
"turn0view0": {
"url": "https://[::1]:8443/x?q=1",
"title": "Loopback"
}
},
"agent_text": "Cited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Loopback",
"url": "https://[::1]:8443/x?q=1",
"label": "[::1]",
"spans": [
[
7,
42
]
],
"body_sha256": "0b2ea3f074161b055c45398217c9c36b6be3340d24a47754b62fbe6062093e99"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Loopback",
"url": "https://[::1]:8443/x?q=1",
"label": "[::1]",
"spans": [
[
7,
42
]
],
"body_sha256": "0b2ea3f074161b055c45398217c9c36b6be3340d24a47754b62fbe6062093e99"
}
],
"web_text": "Cited. [\\[::1\\]](https://[::1]:8443/x?q=1)",
"im_text": "Cited. [\\[::1\\]](https://[::1]:8443/x?q=1)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "[::1]",
"url": "https://[::1]:8443/x?q=1",
"cited": true
}
],
"im_anchors": [
{
"label": "[::1]",
"url": "https://[::1]:8443/x?q=1",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "paren_path",
"why": "Parentheses in the address, balanced, unbalanced and already percent-encoded, one of them beside a literal IPv6 host. Each is the page its source named, so the URL keeps it as written; only the link guards it, and every reader has to land on the same address.",
"sources": {
"turn0view0": {
"url": "https://en.wikipedia.org/wiki/Foo_(bar)",
"title": "Balanced"
},
"turn0view1": {
"url": "https://example.com/a_(b?q=c)d",
"title": "Unbalanced"
},
"turn0view2": {
"url": "https://example.com/a%28b%29",
"title": "Encoded"
},
"turn0view3": {
"url": "https://[::1]:8443/x(y",
"title": "Loopback"
}
},
"agent_text": "One citeturn0view0, two citeturn0view1, three citeturn0view2, four citeturn0view3.",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Balanced",
"url": "https://en.wikipedia.org/wiki/Foo_(bar)",
"label": "en.wikipedia.org",
"spans": [
[
4,
65
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
},
{
"index": 2,
"ref_id": "turn0view1",
"title": "Unbalanced",
"url": "https://example.com/a_(b?q=c)d",
"label": "example.com",
"spans": [
[
71,
118
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
},
{
"index": 3,
"ref_id": "turn0view2",
"title": "Encoded",
"url": "https://example.com/a%28b%29",
"label": "example.com",
"spans": [
[
126,
169
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
},
{
"index": 4,
"ref_id": "turn0view3",
"title": "Loopback",
"url": "https://[::1]:8443/x(y",
"label": "[::1]",
"spans": [
[
176,
210
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Balanced",
"url": "https://en.wikipedia.org/wiki/Foo_(bar)",
"label": "en.wikipedia.org",
"spans": [
[
4,
65
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
},
{
"index": 2,
"ref_id": "turn0view1",
"title": "Unbalanced",
"url": "https://example.com/a_(b?q=c)d",
"label": "example.com",
"spans": [
[
71,
118
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
},
{
"index": 3,
"ref_id": "turn0view2",
"title": "Encoded",
"url": "https://example.com/a%28b%29",
"label": "example.com",
"spans": [
[
126,
169
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
},
{
"index": 4,
"ref_id": "turn0view3",
"title": "Loopback",
"url": "https://[::1]:8443/x(y",
"label": "[::1]",
"spans": [
[
176,
210
]
],
"body_sha256": "1074ba2db78640f7e7ce0668e7efa7f227f5d8c1cb464e1cc671f1a6b672700d"
}
],
"web_text": "One [en.wikipedia.org](https://en.wikipedia.org/wiki/Foo_\\(bar\\)), two [example.com](https://example.com/a_\\(b?q=c\\)d), three [example.com](https://example.com/a%28b%29), four [\\[::1\\]](https://[::1]:8443/x\\(y).",
"im_text": "One [en.wikipedia.org](https://en.wikipedia.org/wiki/Foo_\\(bar\\)), two [example.com](https://example.com/a_\\(b?q=c\\)d), three [example.com](https://example.com/a%28b%29), four [\\[::1\\]](https://[::1]:8443/x\\(y).",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "en.wikipedia.org",
"url": "https://en.wikipedia.org/wiki/Foo_(bar)",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/a_(b?q=c)d",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/a%28b%29",
"cited": true
},
{
"label": "[::1]",
"url": "https://[::1]:8443/x(y",
"cited": true
}
],
"im_anchors": [
{
"label": "en.wikipedia.org",
"url": "https://en.wikipedia.org/wiki/Foo_(bar)",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/a_(b?q=c)d",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/a%28b%29",
"cited": true
},
{
"label": "[::1]",
"url": "https://[::1]:8443/x(y",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "footnote",
"why": "A GFM footnote definition holding a link to the same page. One renderer reads a link there and the other reads a definition, which is exactly the disagreement that cost the real citation its badge.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Footnoted"
}
},
"agent_text": "[^f]: [p](https://example.com/x)\n\nCited. citeturn0view0 [^f]",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Footnoted",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
41,
77
]
],
"body_sha256": "1d358a30bdb3319d4ab2c3ba1c1b9a83765b072976de5a780d01c945912f8532"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Footnoted",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
41,
77
]
],
"body_sha256": "1d358a30bdb3319d4ab2c3ba1c1b9a83765b072976de5a780d01c945912f8532"
}
],
"web_text": "[^f]: [p](https://example.com/x)\n\nCited. [example.com](https://example.com/x) [^f]",
"im_text": "[^f]: [p](https://example.com/x)\n\nCited. [example.com](https://example.com/x) [^f]",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "p",
"url": "https://example.com/x",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "p",
"url": "https://example.com/x",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": false
},
{
"key": "code_fence",
"why": "The citation's own exact spelling shown as a code example. It is not a link to any reader, but it is the same characters, and both ends have to count it the same way.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Fenced"
}
},
"agent_text": "```\n[example.com](https://example.com/x)\n```\n\nCited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Fenced",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
53,
89
]
],
"body_sha256": "196f4c941cdff7392175738fca699d1fcae22b399f6c2bcebf7dbf96cdf15b25"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Fenced",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
53,
89
]
],
"body_sha256": "196f4c941cdff7392175738fca699d1fcae22b399f6c2bcebf7dbf96cdf15b25"
}
],
"web_text": "```\n[example.com](https://example.com/x)\n```\n\nCited. [example.com](https://example.com/x)",
"im_text": "```\n[example.com](https://example.com/x)\n```\n\nCited. [example.com](https://example.com/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "table",
"why": "The same spelling inside a GFM table cell, where `|` ends a cell and a label that spells one would split the row.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Tabled"
}
},
"agent_text": "| Source |\n| --- |\n| [example.com](https://example.com/x) |\n\nCited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Tabled",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
68,
104
]
],
"body_sha256": "c8084f3b9db805f5e8185a9e80378e01014d6faf9d298bec207f0e1fa57da81a"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Tabled",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
68,
104
]
],
"body_sha256": "c8084f3b9db805f5e8185a9e80378e01014d6faf9d298bec207f0e1fa57da81a"
}
],
"web_text": "| Source |\n| --- |\n| [example.com](https://example.com/x) |\n\nCited. [example.com](https://example.com/x)",
"im_text": "| Source |\n| --- |\n| [example.com](https://example.com/x) |\n\nCited. [example.com](https://example.com/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "near_html",
"why": "The same spelling next to inline HTML, which each renderer is free to keep, escape or drop.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Inline HTML"
}
},
"agent_text": "Cited. citeturn0view0 <span>[example.com](https://example.com/x)</span>",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Inline HTML",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "88379004dd3ee944926328fda72ebabcc25fd1992e0ba5a82f652af6d2d62449"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Inline HTML",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "88379004dd3ee944926328fda72ebabcc25fd1992e0ba5a82f652af6d2d62449"
}
],
"web_text": "Cited. [example.com](https://example.com/x) <span>[example.com](https://example.com/x)</span>",
"im_text": "Cited. [example.com](https://example.com/x) <span>[example.com](https://example.com/x)</span>",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "prose_repeat",
"why": "The agent points at the cited page in its own prose, before and after, spelled identically. Only the middle one is a citation, and an ordinary link must never be impersonated.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Repeated"
}
},
"agent_text": "Background: [example.com](https://example.com/x)\n\nCited. citeturn0view0\n\nAlso [example.com](https://example.com/x)",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Repeated",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
57,
93
]
],
"body_sha256": "9a299f42bc345b737f2bfbf872b5138de742155daee254895c7763362f298c95"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Repeated",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
57,
93
]
],
"body_sha256": "9a299f42bc345b737f2bfbf872b5138de742155daee254895c7763362f298c95"
}
],
"web_text": "Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)\n\nAlso [example.com](https://example.com/x)",
"im_text": "Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)\n\nAlso [example.com](https://example.com/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/x",
"cited": false
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "emoji_prefix",
"why": "Non-ASCII text before the marker: offsets counted in characters on one side and in UTF-16 units on the other stop agreeing here.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Emoji"
}
},
"agent_text": "🔎 出处 citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Emoji",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
6,
42
]
],
"body_sha256": "ba197e0279ad263511d1e508d3eb689079a1304d48d722d3ecf245f897c59b19"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Emoji",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
6,
42
]
],
"body_sha256": "ba197e0279ad263511d1e508d3eb689079a1304d48d722d3ecf245f897c59b19"
}
],
"web_text": "🔎 出处 [example.com](https://example.com/x)",
"im_text": "🔎 出处 [example.com](https://example.com/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "silent_strip",
"why": "A silent control block holding the same spelling. Delivery removes it, so the consumer never counts it - and neither may the producer.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Silent"
}
},
"agent_text": "<silent>note to self: [example.com](https://example.com/x)</silent>\nCited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Silent",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "c72f94d17bbddfd9039b915493398ecd3903cf39e2cb39cbdd92be4c3d71bf6b"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Silent",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "c72f94d17bbddfd9039b915493398ecd3903cf39e2cb39cbdd92be4c3d71bf6b"
}
],
"web_text": "Cited. [example.com](https://example.com/x)",
"im_text": "Cited. [example.com](https://example.com/x)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "file_link",
"why": "A file:// attachment link in the same reply: IM strips it to a plain label and the workbench keeps it, so the two surfaces get different text and the citation has to survive both.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "With attachment"
}
},
"agent_text": "Cited. citeturn0view0\n\n[report](file:///tmp/avibe-citation-bridge/report.txt)",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "With attachment",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "3f9c32506f24ea62a4396ba0fc4cbfc5272ee30ef04d00c740eb757321e0d02d"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "With attachment",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "f68ec6e8a1d71f8934f8fd3569c471916996ff250c7a695ae718849d29bd1095"
}
],
"web_text": "Cited. [example.com](https://example.com/x)\n\n[report](file:///tmp/avibe-citation-bridge/report.txt)",
"im_text": "Cited. [example.com](https://example.com/x)\n\nreport",
"quick_replies": [],
"files": [
{
"label": "report",
"path": "/tmp/avibe-citation-bridge/report.txt"
}
],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "quick_replies",
"why": "A trailing quick-reply block, which delivery strips from the body on both surfaces.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "With buttons"
}
},
"agent_text": "Cited. citeturn0view0\n\n---\n[👌 继续] | [✅ 完成]",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "With buttons",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "c72f94d17bbddfd9039b915493398ecd3903cf39e2cb39cbdd92be4c3d71bf6b"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "With buttons",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "c72f94d17bbddfd9039b915493398ecd3903cf39e2cb39cbdd92be4c3d71bf6b"
}
],
"web_text": "Cited. [example.com](https://example.com/x)",
"im_text": "Cited. [example.com](https://example.com/x)",
"quick_replies": [
"👌 继续",
"✅ 完成"
],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "marker_shaped",
"why": "The workbench rewrites `$<NAME>` into a secure-input card and `@<…>`/`#<…>` into chips by editing the source text before Markdown parses it - so a reply carrying those markers, and a source address spelled like one, is where an inserted card could move or swallow the link the producer counted.",
"sources": {
"turn0view0": {
"url": "https://example.com/p?q=$<openAiKey>&a=@<claude>",
"title": "Marker Shaped"
}
},
"agent_text": "Provide $<openAiKey>, then ping @<claude> in #<ses6jr7c5h2q6>.\n\nCited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Marker Shaped",
"url": "https://example.com/p?q=$%3CopenAiKey%3E&a=@%3Cclaude%3E",
"label": "example.com",
"spans": [
[
71,
142
]
],
"body_sha256": "6513e2bd02eb906da3150bbe37b8314b6ccc000a25c128d78abc37660b82017e"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Marker Shaped",
"url": "https://example.com/p?q=$%3CopenAiKey%3E&a=@%3Cclaude%3E",
"label": "example.com",
"spans": [
[
71,
142
]
],
"body_sha256": "6513e2bd02eb906da3150bbe37b8314b6ccc000a25c128d78abc37660b82017e"
}
],
"web_text": "Provide $<openAiKey>, then ping @<claude> in #<ses6jr7c5h2q6>.\n\nCited. [example.com](https://example.com/p?q=$%3CopenAiKey%3E&a=@%3Cclaude%3E)",
"im_text": "Provide $<openAiKey>, then ping @<claude> in #<ses6jr7c5h2q6>.\n\nCited. [example.com](https://example.com/p?q=$%3CopenAiKey%3E&a=@%3Cclaude%3E)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/p?q=$%3CopenAiKey%3E&a=@%3Cclaude%3E",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/p?q=$%3CopenAiKey%3E&a=@%3Cclaude%3E",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "multi_source",
"why": "Two sources in one reply, each with its own index and its own spelling.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "First"
},
"turn0view1": {
"url": "https://a*b*.example/y",
"title": "Second"
}
},
"agent_text": "First citeturn0view0, second citeturn0view1.",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "First",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
6,
42
]
],
"body_sha256": "692dd53dbdc2ece7fa2bde05c6b8b321828f02f51586299c27df55c1b75e1b02"
},
{
"index": 2,
"ref_id": "turn0view1",
"title": "Second",
"url": "https://a*b*.example/y",
"label": "a*b*.example",
"spans": [
[
51,
91
]
],
"body_sha256": "692dd53dbdc2ece7fa2bde05c6b8b321828f02f51586299c27df55c1b75e1b02"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "First",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
6,
42
]
],
"body_sha256": "692dd53dbdc2ece7fa2bde05c6b8b321828f02f51586299c27df55c1b75e1b02"
},
{
"index": 2,
"ref_id": "turn0view1",
"title": "Second",
"url": "https://a*b*.example/y",
"label": "a*b*.example",
"spans": [
[
51,
91
]
],
"body_sha256": "692dd53dbdc2ece7fa2bde05c6b8b321828f02f51586299c27df55c1b75e1b02"
}
],
"web_text": "First [example.com](https://example.com/x), second [a\\*b\\*.example](https://a*b*.example/y).",
"im_text": "First [example.com](https://example.com/x), second [a\\*b\\*.example](https://a*b*.example/y).",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
},
{
"label": "a*b*.example",
"url": "https://a*b*.example/y",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
},
{
"label": "a*b*.example",
"url": "https://a*b*.example/y",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "link_label",
"why": "The marker written inside a link's own label. A citation is a link, and a link inside a link is not one - CommonMark makes the outer brackets text again - so the source is shown after the unit that encloses it, with that unit's destination and the label's other words untouched. Both links name the same page here, which is where a binding that matched on the address would badge the wrong one.",
"sources": {
"turn0view0": {
"url": "https://openai.com/docs",
"title": "OpenAI Docs"
}
},
"agent_text": "See [the docs citeturn0view0](https://openai.com/docs) for details.",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "OpenAI Docs",
"url": "https://openai.com/docs",
"label": "openai.com",
"spans": [
[
41,
78
]
],
"body_sha256": "9bd459fd35f007f8c109c5b009ac890a807491960fad853a2b1a94abe5d30eb5"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "OpenAI Docs",
"url": "https://openai.com/docs",
"label": "openai.com",
"spans": [
[
41,
78
]
],
"body_sha256": "9bd459fd35f007f8c109c5b009ac890a807491960fad853a2b1a94abe5d30eb5"
}
],
"web_text": "See [the docs ](https://openai.com/docs) [openai.com](https://openai.com/docs) for details.",
"im_text": "See [the docs ](https://openai.com/docs) [openai.com](https://openai.com/docs) for details.",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "the docs ",
"url": "https://openai.com/docs",
"cited": false
},
{
"label": "openai.com",
"url": "https://openai.com/docs",
"cited": true
}
],
"im_anchors": [
{
"label": "the docs ",
"url": "https://openai.com/docs",
"cited": false
},
{
"label": "openai.com",
"url": "https://openai.com/docs",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "link_label_positions",
"why": "One source cited from inside three labels - opening one, in the middle of the next, closing the third. One row, three spans, and each source after its own unit rather than after the last of them.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Thrice"
}
},
"agent_text": "[citeturn0view0 a](https://u.example/1), [b citeturn0view0 c](https://u.example/2), [d citeturn0view0](https://u.example/3).",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Thrice",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
26,
62
],
[
92,
128
],
[
156,
192
]
],
"body_sha256": "992e162c046453519eb0dc150c297ceaa10270ee234bd3ee67d1514c95073be3"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Thrice",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
26,
62
],
[
92,
128
],
[
156,
192
]
],
"body_sha256": "992e162c046453519eb0dc150c297ceaa10270ee234bd3ee67d1514c95073be3"
}
],
"web_text": "[ a](https://u.example/1) [example.com](https://example.com/s), [b c](https://u.example/2) [example.com](https://example.com/s), [d ](https://u.example/3) [example.com](https://example.com/s).",
"im_text": "[ a](https://u.example/1) [example.com](https://example.com/s), [b c](https://u.example/2) [example.com](https://example.com/s), [d ](https://u.example/3) [example.com](https://example.com/s).",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": " a",
"url": "https://u.example/1",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "b c",
"url": "https://u.example/2",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "d ",
"url": "https://u.example/3",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"im_anchors": [
{
"label": " a",
"url": "https://u.example/1",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "b c",
"url": "https://u.example/2",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "d ",
"url": "https://u.example/3",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "data_slots",
"why": "The slots of a link that are address or syntax rather than anything a reader is shown: a destination, a title, an angle-bracketed destination, and an autolink, which is all address. A marker there is part of what makes the unit work, so it stays the characters the model typed - no token minted, no source fetched, no link spliced in - while the one in the prose beside them is still a citation.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Prose"
}
},
"agent_text": "Cited. citeturn0view0\n\n[a](https://example.com/citeturn0view0path) [b](https://example.com/y \"T citeturn0view0\") [c](<https://example.com/zciteturn0view0>) <https://example.com/autociteturn0view0>",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Prose",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "a384366aa828fe9aeb90f87aab6eb2d0fbb18a657fd6c59353c046ee02c8f8ab"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Prose",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "a384366aa828fe9aeb90f87aab6eb2d0fbb18a657fd6c59353c046ee02c8f8ab"
}
],
"web_text": "Cited. [example.com](https://example.com/s)\n\n[a](https://example.com/citeturn0view0path) [b](https://example.com/y \"T citeturn0view0\") [c](<https://example.com/zciteturn0view0>) <https://example.com/autociteturn0view0>",
"im_text": "Cited. [example.com](https://example.com/s)\n\n[a](https://example.com/citeturn0view0path) [b](https://example.com/y \"T citeturn0view0\") [c](<https://example.com/zciteturn0view0>) <https://example.com/autociteturn0view0>",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "a",
"url": "https://example.com/citeturn0view0path",
"cited": false
},
{
"label": "b",
"url": "https://example.com/y",
"cited": false
},
{
"label": "c",
"url": "https://example.com/zciteturn0view0",
"cited": false
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "a",
"url": "https://example.com/citeturn0view0path",
"cited": false
},
{
"label": "b",
"url": "https://example.com/y",
"cited": false
},
{
"label": "c",
"url": "https://example.com/zciteturn0view0",
"cited": false
}
],
"anchors_cover_destinations": false,
"anchors_exhaustive": false
},
{
"key": "reference_slots",
"why": "A reference link written in full shows its label and names its definition separately, so the label is a place a citation can go. Written short, the same brackets are both - the text a reader sees and the identifier that finds the address - so editing them would leave a link pointing at nothing. Those stay exactly as written, definition included.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Referenced"
}
},
"agent_text": "[the docs citeturn0view0][ref], [dual citeturn0view0] and [dual citeturn0view0][].\n\n[ref]: https://r.example/page\n[dual citeturn0view0]: https://r.example/dual",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Referenced",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
17,
53
]
],
"body_sha256": "e0e4bfa542b198c14f0171bcc3be1e1b596b1e0a4659044cd5ebc47cef7d7617"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Referenced",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
17,
53
]
],
"body_sha256": "e0e4bfa542b198c14f0171bcc3be1e1b596b1e0a4659044cd5ebc47cef7d7617"
}
],
"web_text": "[the docs ][ref] [example.com](https://example.com/s), [dual citeturn0view0] and [dual citeturn0view0][].\n\n[ref]: https://r.example/page\n[dual citeturn0view0]: https://r.example/dual",
"im_text": "[the docs ][ref] [example.com](https://example.com/s), [dual citeturn0view0] and [dual citeturn0view0][].\n\n[ref]: https://r.example/page\n[dual citeturn0view0]: https://r.example/dual",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"anchors_cover_destinations": false,
"anchors_exhaustive": false
},
{
"key": "image_slots",
"why": "An image's alt text is what a reader is given when the picture is not there; its src is an address. One marker is a citation and the other is not, in one line. The component does not fetch a foreign image - it renders a click-through link instead - so both are links on this surface.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Illustrated"
}
},
"agent_text": " and ",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Illustrated",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
39,
75
]
],
"body_sha256": "de5142f360c26f90728c7e4ad2d7588ed5e3b837524908a6c9e5c15d89884d7a"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Illustrated",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
39,
75
]
],
"body_sha256": "de5142f360c26f90728c7e4ad2d7588ed5e3b837524908a6c9e5c15d89884d7a"
}
],
"web_text": " [example.com](https://example.com/s) and ",
"im_text": " [example.com](https://example.com/s) and ",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"anchors_cover_destinations": false,
"anchors_exhaustive": false
},
{
"key": "image_in_link",
"why": "An image inside a link: two units, one holding the other. The source belongs after the outer one. Placed after the image instead it would sit in the link's label and take the link down with it.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Nested"
}
},
"agent_text": "[](https://out.example/page)",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Nested",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
67,
103
]
],
"body_sha256": "c8d053801e35938d8a6b465e979825b9b732666fa3aab28c5477b961f84318b5"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Nested",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
67,
103
]
],
"body_sha256": "c8d053801e35938d8a6b465e979825b9b732666fa3aab28c5477b961f84318b5"
}
],
"web_text": "[](https://out.example/page) [example.com](https://example.com/s)",
"im_text": "[](https://out.example/page) [example.com](https://example.com/s)",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": null,
"url": "https://out.example/page",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"im_anchors": [
{
"label": null,
"url": "https://out.example/page",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"anchors_cover_destinations": false,
"anchors_exhaustive": false
},
{
"key": "moved_by_a_transform",
"why": "Delivery removes silent blocks, and what closes up behind them leaves a registered token somewhere the model never put it. Each one is judged where it ends up rather than where it started: inside a label it is still a citation and is shown after that link, inside a destination or a title it is data again and the marker the model typed comes back - the alternative is a link nobody can open and a source claimed where no reader can see it.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Moved"
}
},
"agent_text": "A [lab <silent>](https://z.example) x</silent>citeturn0view0](https://out.example/page) B\n\nC [two](https://z.example<silent>) y</silent>citeturn0view0) D\n\nE [three](https://z.example \"t<silent>\") y</silent>citeturn0view0\") F",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Moved",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
35,
71
]
],
"body_sha256": "695f872cc2e6bce140460a0e0f174c94370c6bb2905e90ffd43ac1e3dc12aa7a"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Moved",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
35,
71
]
],
"body_sha256": "695f872cc2e6bce140460a0e0f174c94370c6bb2905e90ffd43ac1e3dc12aa7a"
}
],
"web_text": "A [lab ](https://out.example/page) [example.com](https://example.com/s) B\n\nC [two](https://z.exampleciteturn0view0) D\n\nE [three](https://z.example \"tciteturn0view0\") F",
"im_text": "A [lab ](https://out.example/page) [example.com](https://example.com/s) B\n\nC [two](https://z.exampleciteturn0view0) D\n\nE [three](https://z.example \"tciteturn0view0\") F",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "lab ",
"url": "https://out.example/page",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "two",
"url": "https://z.exampleciteturn0view0",
"cited": false
},
{
"label": "three",
"url": "https://z.example",
"cited": false
}
],
"im_anchors": [
{
"label": "lab ",
"url": "https://out.example/page",
"cited": false
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "two",
"url": "https://z.exampleciteturn0view0",
"cited": false
},
{
"label": "three",
"url": "https://z.example",
"cited": false
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "open_fence",
"why": "A fence the answer never closed takes the rest of the reply into code. The citation's own spelling in there is not a link to any renderer here, and a marker in there is not a citation either - which is the same rule the closed fence above gets, decided by the parser rather than by whether a closing line happens to exist.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Unclosed"
}
},
"agent_text": "Cited. citeturn0view0\n\n```\n[example.com](https://example.com/s)\nciteturn0view0 still open",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Unclosed",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "55f17c8c69883e01ff3aa65ae70d8149f2dc53dd14b30c3f76065d4203eadd6b"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Unclosed",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
7,
43
]
],
"body_sha256": "55f17c8c69883e01ff3aa65ae70d8149f2dc53dd14b30c3f76065d4203eadd6b"
}
],
"web_text": "Cited. [example.com](https://example.com/s)\n\n```\n[example.com](https://example.com/s)\nciteturn0view0 still open",
"im_text": "Cited. [example.com](https://example.com/s)\n\n```\n[example.com](https://example.com/s)\nciteturn0view0 still open",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "file_label_and_quick_reply",
"why": "A marker in an attachment's label and in a quick-reply button. Neither is Markdown a reader parses - one titles a file card, the other is a button - so the attribution is plain text left where it stands, with no link syntax and no token reaching a structured field. In the body the attachment is still a link, and CommonMark refuses ``file:`` outright: a scan that cannot see that unit would put the source inside its label and break the card.",
"sources": {
"turn0view0": {
"url": "https://example.com/s",
"title": "Attached"
}
},
"agent_text": "Cited. citeturn0view0\n\n[report citeturn0view0](file:///tmp/avibe-citation-bridge/report.txt)\n\n---\n[👌 继续 citeturn0view0] | [✅ 完成]",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Attached",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
7,
43
],
[
101,
137
]
],
"body_sha256": "7c0134b567efd0e1b38c11d0b26bff8a157a41719cf5b3f31b4342d5713eea16"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Attached",
"url": "https://example.com/s",
"label": "example.com",
"spans": [
[
7,
43
],
[
52,
88
]
],
"body_sha256": "5fe6fc09cbd662d232422fffd26ad244b476c2d4aaa501aacda5587cf52ec8a8"
}
],
"web_text": "Cited. [example.com](https://example.com/s)\n\n[report ](file:///tmp/avibe-citation-bridge/report.txt) [example.com](https://example.com/s)",
"im_text": "Cited. [example.com](https://example.com/s)\n\nreport [example.com](https://example.com/s)",
"quick_replies": [
"👌 继续 example.com",
"✅ 完成"
],
"files": [
{
"label": "report example.com",
"path": "/tmp/avibe-citation-bridge/report.txt"
}
],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
},
{
"label": "example.com",
"url": "https://example.com/s",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "splice",
"why": "Stripping a silent block splices two ordinary halves into characters that read as a citation marker. Only the first marker here was ever one, and the delivered text has to say so.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Spliced"
}
},
"agent_text": "Actual. citeturn0view0\n\nSynthetic. ci<silent>private</silent>teturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Spliced",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
8,
44
]
],
"body_sha256": "9bcdee138d4e0ae2e733ea5a2a7607cfcc01a34530a64595bd20d8bc11cc8a07"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Spliced",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
8,
44
]
],
"body_sha256": "9bcdee138d4e0ae2e733ea5a2a7607cfcc01a34530a64595bd20d8bc11cc8a07"
}
],
"web_text": "Actual. [example.com](https://example.com/x)\n\nSynthetic. citeturn0view0",
"im_text": "Actual. [example.com](https://example.com/x)\n\nSynthetic. citeturn0view0",
"quick_replies": [],
"files": [],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "file_delete_splice",
"why": "Two deletions that cancel out. Removing the attachment link to its label and removing the silent block leave characters that read as a marker on IM and do not on the workbench - one reply, two bodies, and a marker shape that was never in the input either was.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Cancelled out"
}
},
"agent_text": "Actual. citeturn0view0\n\nSynthetic. ci[te](file:///tmp/avibe-citation-bridge/report.txt)turn0view0<silent>note</silent>",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cancelled out",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
8,
44
]
],
"body_sha256": "a7de4b71ffbc3a7224deb9ec92a71756eb37e011afa62a2469d98c9d1d0c66a3"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cancelled out",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
8,
44
]
],
"body_sha256": "9bcdee138d4e0ae2e733ea5a2a7607cfcc01a34530a64595bd20d8bc11cc8a07"
}
],
"web_text": "Actual. [example.com](https://example.com/x)\n\nSynthetic. ci[te](file:///tmp/avibe-citation-bridge/report.txt)turn0view0",
"im_text": "Actual. [example.com](https://example.com/x)\n\nSynthetic. citeturn0view0",
"quick_replies": [],
"files": [
{
"label": "te",
"path": "/tmp/avibe-citation-bridge/report.txt"
}
],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "file_link_above",
"why": "A file:// attachment above the citation: IM flattens it to a label and the workbench keeps it, so one reply puts the same citation at two different offsets and each body needs its own measurement.",
"sources": {
"turn0view0": {
"url": "https://example.com/x",
"title": "Shifted"
}
},
"agent_text": "[report](file:///tmp/avibe-citation-bridge/report.txt)\n\nCited. citeturn0view0",
"web_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Shifted",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
63,
99
]
],
"body_sha256": "630a79407e8e7ea5926302abc0ebb12a6791dc904d3d8fba51a97cf9ee209225"
}
],
"im_citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Shifted",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
15,
51
]
],
"body_sha256": "97bace9967a0f0f9bada602b695161fa12d57fa0696453b7323220e2a68e7b3b"
}
],
"web_text": "[report](file:///tmp/avibe-citation-bridge/report.txt)\n\nCited. [example.com](https://example.com/x)",
"im_text": "report\n\nCited. [example.com](https://example.com/x)",
"quick_replies": [],
"files": [
{
"label": "report",
"path": "/tmp/avibe-citation-bridge/report.txt"
}
],
"web_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"im_anchors": [
{
"label": "example.com",
"url": "https://example.com/x",
"cited": true
}
],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
},
{
"key": "unresolved",
"why": "A marker naming a source the backend never captured. It degrades to a visible label rather than vanishing, and writes no sidecar row.",
"sources": {},
"agent_text": "Claimed. citeturn0view0",
"web_citations": [],
"im_citations": [],
"web_text": "Claimed. (source unavailable)",
"im_text": "Claimed. (source unavailable)",
"quick_replies": [],
"files": [],
"web_anchors": [],
"im_anchors": [],
"anchors_cover_destinations": true,
"anchors_exhaustive": true
}
],
"rows": [
{
"key": "im_row_with_footer",
"why": "An ordinary IM transcript row. The dispatcher folds the footer into the stored body and stores it structured as well, so the Web reader removes a trailing range before rendering - the case where adding a body digest could have cost every IM row its badge.",
"platform": "slack",
"type": "result",
"row": {
"type": "result",
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)\n\n✅ ⏱️ 5s · 🪙 1.2k tok",
"content": {
"kind": "result",
"result_footer": "✅ ⏱️ 5s · 🪙 1.2k tok",
"citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cited page",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
60,
96
]
],
"body_sha256": "667f719a1b5f9adc6002fb8b5f12b73441a6c0256bf2065accffbbfcfe7f3c2c"
}
],
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)\n\n✅ ⏱️ 5s · 🪙 1.2k tok"
}
}
},
{
"key": "im_row_without_footer",
"why": "The same row with nothing to strip: the body the ranges were measured in is the body the renderer is handed.",
"platform": "slack",
"type": "result",
"row": {
"type": "result",
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)",
"content": {
"kind": "result",
"citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cited page",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
60,
96
]
],
"body_sha256": "222df127c10b93d7f38a3bf37a27695e91c6c8add0d8b1617fb90f69ed56143a"
}
],
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)"
}
}
},
{
"key": "workbench_row_with_footer",
"why": "The workbench stores a clean body and its footer apart, so the same reply reaches the same reader through a different split.",
"platform": "avibe",
"type": "result",
"row": {
"type": "result",
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)",
"content": {
"kind": "result",
"result_footer": "✅ ⏱️ 2m 24s",
"citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cited page",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
60,
96
]
],
"body_sha256": "222df127c10b93d7f38a3bf37a27695e91c6c8add0d8b1617fb90f69ed56143a"
}
],
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)"
}
}
},
{
"key": "activity_row",
"why": "An interim narration row, which the activity card renders verbatim - no footer, no split, and its own consumer.",
"platform": "avibe",
"type": "assistant",
"row": {
"type": "assistant",
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)",
"content": {
"kind": "assistant",
"citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cited page",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
60,
96
]
],
"body_sha256": "222df127c10b93d7f38a3bf37a27695e91c6c8add0d8b1617fb90f69ed56143a"
}
],
"text": "🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)"
}
}
},
{
"key": "workbench_row_rewritten_and_carded",
"why": "Every transform a stored row can stack, in the order they happen and all of them above the citation: an attachment link is rewritten to the media proxy before the sidecar is measured, a footer is folded in and stripped back out by the reader, and a `$<NAME>` marker becomes a secure-input card as the reader renders it. Each one moves the citation, and only one of them was measured by the backend.",
"platform": "avibe",
"type": "result",
"row": {
"type": "result",
"text": "[report](/api/media/7EPiDrihQUpry6om5gCmSg)\n\nProvide $<deployKey> first.\n\n🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)",
"content": {
"kind": "result",
"result_footer": "✅ ⏱️ 2m 24s",
"citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cited page",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
134,
170
]
],
"body_sha256": "0a527ac2acef9af97986b634a9d0913cdcefb058e50e8fa3bef90f9300fa1be5"
}
],
"text": "[report](/api/media/7EPiDrihQUpry6om5gCmSg)\n\nProvide $<deployKey> first.\n\n🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)"
}
}
},
{
"key": "im_row_flattened_carded_and_folded",
"why": "The same reply down the IM path, where the transforms stack differently: the attachment is flattened to a bare label instead of a proxy link, and the footer is folded into the stored body. So the reader runs two edits over one body - a trailing strip and an inserted secure-input card above the citation - and the badge has to survive their composition.",
"platform": "slack",
"type": "result",
"row": {
"type": "result",
"text": "report\n\nProvide $<deployKey> first.\n\n🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)\n\n✅ ⏱️ 5s",
"content": {
"kind": "result",
"result_footer": "✅ ⏱️ 5s",
"citations": [
{
"index": 1,
"ref_id": "turn0view0",
"title": "Cited page",
"url": "https://example.com/x",
"label": "example.com",
"spans": [
[
97,
133
]
],
"body_sha256": "257292188fb8f7f9721c283a12b2b9f6c56c41cde67b8e1159303fcfa94bd5df"
}
],
"text": "report\n\nProvide $<deployKey> first.\n\n🔎 Background: [example.com](https://example.com/x)\n\nCited. [example.com](https://example.com/x)\n\n✅ ⏱️ 5s"
}
}
}
]
}