Skip to content

docs(ai-agents): rewrite Transcripts pages for ADP GA#560

Open
micheleRP wants to merge 2 commits intomainfrom
adp-transcripts-rewrite
Open

docs(ai-agents): rewrite Transcripts pages for ADP GA#560
micheleRP wants to merge 2 commits intomainfrom
adp-transcripts-rewrite

Conversation

@micheleRP
Copy link
Copy Markdown
Contributor

@micheleRP micheleRP commented Apr 22, 2026

Tracks: DOC-2115 — Read and understand a transcript (ADP Docs Plan Workflow #7)

Summary

  • Rewrites observability/transcripts.adoc around the TranscriptService turn / tool-call model (was span hierarchy) — adds USD cost, reconstructed-turn handling, and ADP-UI-generic prereqs.
  • Updates observability/concepts.adoc with USD-cost attributes and a reconstructed-transcript-history section; drops cluster-centric topic-ACL wording.
  • Expands the shared transcripts-ui-guide.adoc Summary panel (USD cost, turn count, tool calls, status, reconstructed marker) — propagates into monitor-agents.adoc and monitor-mcp-servers.adoc via the include.
  • Renames nav entry View TranscriptsRead a transcript to match ADP Docs Plan Workflow finalize cloud-docs #7.
  • Light standalone-ADP wording pass on ingest-custom-traces.adoc with a page-top // TODO: flagging the full rewrite as pending under Workflow Cloud Terraform provider beta #11 (BYOA telemetry).

Every area that depends on the (TBD) standalone-ADP surface carries a // TODO: marker — sign-in URL, IAM model, USD-cost coverage, filter-chip labels, export. These will be resolved after a live walkthrough against adp-production.

Plan (Confluence): https://redpandadata.atlassian.net/wiki/spaces/DOC/pages/1867153415/Transcripts+docs+rewrite+ADP+GA+2026-06-15+plan
Parent workstream: https://redpandadata.atlassian.net/wiki/spaces/DOC/pages/1845461009 (Workflow #7)

Preview pages

Test plan

  • npm run build && npm run serve — locally verified; nav renders "Read a transcript", no new unresolved xrefs, no regressions in monitor-agents.adoc / monitor-mcp-servers.adoc (both include the updated partial).
  • Netlify preview — walk the Observability / Transcripts section end-to-end.
  • Live walkthrough on adp-production (flag enableTranscriptsInConsole on) — verify every filter chip, detail-panel field, and column matches the draft. Resolve the // TODO: markers in-branch.
  • Proto cross-check against TranscriptService / TranscriptSummary / TranscriptTurn comments.
  • docs-team-standards:review editorial pass.

🤖 Generated with Claude Code

- transcripts.adoc: rewrite around the TranscriptService turn/tool-call
  model (was span hierarchy); add USD cost, reconstructed-turn handling,
  standalone-ADP prereqs wording with // TODO: markers.
- concepts.adoc: add USD-cost attributes and a reconstructed-transcript-
  history section; drop cluster-centric topic-ACL wording (// TODO: for
  the standalone-ADP permission model).
- transcripts-ui-guide.adoc: expand Summary panel fields (USD cost,
  turn count, tool calls, reconstructed marker, status).
- nav.adoc: rename "View Transcripts" -> "Read a transcript" to match
  ADP Docs Plan Workflow #7.
- ingest-custom-traces.adoc: light standalone-ADP wording pass + a
  page-top // TODO: flagging the full rewrite under Workflow #11 (BYOA
  telemetry).

Plan: https://redpandadata.atlassian.net/wiki/spaces/DOC/pages/1867153415

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@micheleRP micheleRP requested a review from a team as a code owner April 22, 2026 19:41
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 22, 2026

Deploy Preview for rp-cloud ready!

Name Link
🔨 Latest commit efcc8a3
🔍 Latest deploy log https://app.netlify.com/projects/rp-cloud/deploys/69e928c16af3ef00089cfda5
😎 Deploy Preview https://deploy-preview-560--rp-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 22, 2026

📝 Walkthrough

Walkthrough

This PR updates documentation for Redpanda's AI Agents observability feature, specifically the transcripts functionality. Changes include: updating the navigation label from "View Transcripts" to "Read a Transcript"; adding two new SDK semantic convention attributes for USD-based token costs; restructuring the transcripts page to emphasize reading conversation turns over span hierarchy inspection; documenting transcript history reconstruction when spans are evicted; and adding clarifications and TODOs regarding standalone ADP vs. Redpanda Cloud deployment contexts across setup and ingestion documentation.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • weeco
  • Feediver1
  • alextreichler
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs(ai-agents): rewrite Transcripts pages for ADP GA' directly matches the primary change—a comprehensive rewrite of observability transcripts documentation for GA release.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Description check ✅ Passed PR description comprehensively covers purpose, changes, preview pages, test plan, and references tracking/parent issues—well-structured and complete.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch adp-transcripts-rewrite

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@modules/ai-agents/pages/observability/concepts.adoc`:
- Around line 346-347: Clarify the terminology by explicitly stating in this
paragraph that the UI shows a badge labeled _reconstructed_ (UI/display text)
while the underlying record/field is named is_reconstructed (backing data
marker); update the sentence to distinguish the display badge from the boolean
field so readers know one is the visible label and the other is the data flag.

In `@modules/ai-agents/pages/observability/transcripts.adoc`:
- Around line 173-179: Update the wording to match the Concepts page by stating
that cost is derived from per-model pricing and the gen_ai.usage.* attributes or
the explicit USD-cost fields; specifically mention the explicit attributes
gen_ai.usage.input_tokens_cost_usd and gen_ai.usage.output_tokens_cost_usd as
valid sources of cost. Instruct readers checking zero-cost transcripts to verify
the model is in the pricing table and that either gen_ai.usage.input_tokens and
gen_ai.usage.output_tokens are present on ASSISTANT-turn spans or the USD cost
fields (gen_ai.usage.input_tokens_cost_usd, gen_ai.usage.output_tokens_cost_usd)
exist, and that the cost-reporting pipeline is enabled.

In `@modules/ai-agents/partials/transcripts-ui-guide.adoc`:
- Around line 80-95: This partial mixes turn-based metrics with span/hierarchy
guidance; update it to consistently use the transcript-turn model: remove or
rewrite any references to hierarchical trace/span views (e.g., the
"Reconstructed transcript history" sentence and any xref to span-hierarchy),
ensure all descriptions refer to turns and turn-level metadata (Status, Turn
count, Token Usage, USD cost, LLM Calls, Tool Calls, Service, Conversation ID)
and change the "reconstructed" marker explanation to say turns reconstructed
from evicted LLM message context rather than spans; keep the list items (Turn
count, Token Usage, etc.) and adjust any conditional blocks (ifeval context
text) to use turn-based terminology throughout.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8b85f75d-45f1-4a4c-89f3-e0c545e562ac

📥 Commits

Reviewing files that changed from the base of the PR and between f5719f3 and 755074e.

📒 Files selected for processing (5)
  • modules/ROOT/nav.adoc
  • modules/ai-agents/pages/observability/concepts.adoc
  • modules/ai-agents/pages/observability/ingest-custom-traces.adoc
  • modules/ai-agents/pages/observability/transcripts.adoc
  • modules/ai-agents/partials/transcripts-ui-guide.adoc

Comment thread modules/ai-agents/pages/observability/concepts.adoc Outdated
Comment thread modules/ai-agents/pages/observability/transcripts.adoc Outdated
Comment on lines +80 to +95
* Status: `RUNNING`, `COMPLETED`, or `ERROR`
* Turn count: Number of conversation turns (SYSTEM, USER, ASSISTANT, TOOL)
ifeval::["{context}" == "agent"]
* Token Usage: Input tokens, output tokens, and total (critical for cost tracking)
* Token Usage: Input tokens, output tokens, and total
* USD cost: Total cost for the execution, derived from per-model pricing
* LLM Calls: How many times the agent called the language model
* Tool Calls: How many tools the agent invoked
* Service: The agent identifier
* Conversation ID: Links to session data topics
* Conversation ID: The `gen_ai.conversation.id` shared by related invocations in the same user session
endif::[]
ifeval::["{context}" == "mcp"]
* Service: The MCP server identifier
endif::[]

If any turns were rebuilt from LLM message context after their original spans were evicted, the panel shows a _reconstructed_ marker on those turns. For the mechanics, see xref:ai-agents:observability/concepts.adoc#history-reconstruction[Reconstructed transcript history].

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.

⚠️ Potential issue | 🟠 Major

Resolve model mismatch in this partial (turn-based vs span-hierarchy guidance).

This updated summary is turn/tool-call based, but this same partial still instructs users to use a hierarchical trace/span view (earlier sections). The mixed mental models will confuse readers in included pages. Please align this partial end-to-end to the transcript-turn model in this PR.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@modules/ai-agents/partials/transcripts-ui-guide.adoc` around lines 80 - 95,
This partial mixes turn-based metrics with span/hierarchy guidance; update it to
consistently use the transcript-turn model: remove or rewrite any references to
hierarchical trace/span views (e.g., the "Reconstructed transcript history"
sentence and any xref to span-hierarchy), ensure all descriptions refer to turns
and turn-level metadata (Status, Turn count, Token Usage, USD cost, LLM Calls,
Tool Calls, Service, Conversation ID) and change the "reconstructed" marker
explanation to say turns reconstructed from evicted LLM message context rather
than spans; keep the list items (Turn count, Token Usage, etc.) and adjust any
conditional blocks (ifeval context text) to use turn-based terminology
throughout.

- concepts.adoc: clarify that `is_reconstructed` is the backing data
  field and "Reconstructed" is the UI badge (CodeRabbit: minor).
- transcripts.adoc: align "USD cost shows 0" troubleshooting with the
  Concepts page attribute list; xref rather than duplicate attribute
  names so the two pages can't drift (CodeRabbit: major).

Deferred:
- transcripts-ui-guide.adoc mixed-model feedback needs live-UI
  verification before the full partial rewrite; the existing `// TODO:`
  already flags it for the Weeks 3-4 walkthrough.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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