Portfolio agent: from question to cited answer

Portfolio agent: from question to cited answer A workflow diagram generated by Archify. 01 / Visitor · portfolio chat 02 / Agent HTTP API 03 / Grounded-answer workflow 04 / Backing services EX / Fail-closed exits Ask Ground + generate Verify + show Visitor · types a question · Visitor · portfolio chat › Ask Visitor types a question Companion chat · question + 2 recent turns · Visitor · portfolio chat › Ask Companion chat question + 2 recent turns Retryable error · rate limit · timeout · Visitor · portfolio chat › Ground + generate Retryable error rate limit · timeout Answer shown · text + citation links · Visitor · portfolio chat › Verify + show Answer shown text + citation links POST /v1/portfolio/questions · origin · rate budget · schema · Agent HTTP API › Ask POST /v1/portfolio/questions origin · rate budget · schema SSE response · partial events, then result · Agent HTTP API › Verify + show SSE response partial events, then result Scope + graph plan · topic → fixed reads · Grounded-answer workflow › Ask Scope + graph plan topic → fixed reads Evidence bundle · graph facts + Tavily web · Grounded-answer workflow › Ground + generate Evidence bundle graph facts + Tavily web Citation validator · drops unsupported claims · Grounded-answer workflow › Verify + show Citation validator drops unsupported claims Neo4j knowledge graph · ≤4 reads · 24 rows · 12 s · Backing services › Ground + generate Neo4j knowledge graph ≤4 reads · 24 rows · 12 s DeepSeek via Mastra agent · returns {claims: [...]} · Backing services › Ground + generate DeepSeek via Mastra agent returns {claims: [...]} Fail-closed reply · logged · infra reasons emailed · Fail-closed exits › Verify + show Fail-closed reply logged · infra reasons emailed no claim survives claims + IDs facts + citations same stream no usable claims off-topic, private, graph empty POST JSON, SSE question + evidence fixed reads 400 / 429 workflow run partial, then result validated answer Legend User UI Agent logic Policy Context / trace Cloud service External system