Issuer Analytics Data Flow
Used in: §4.5 Issuer Analytics, §9.9 Audience: Issuer IA ID: extra
Reading guide: Raw events are append-only; the aggregator produces materialized rollups read by the dashboard for sub-second queries.
3. Open Questions (for tech-reviewer)
- Status list bit semantics: does the codebase use a single platform-wide
statusListIdper issuer, or per credential type? Assumed per-issuer invc-revocation-statuslist. Confirm againstvc.gorevoke handler. - ZK challenge transport:
zkp.goexposes/zkp/challengebut the IA’s open question 3 hints DID-Auth/auth/challengeis reused for wallet sign-in. Diagrams treat them as separate endpoints; reviewer to confirm there is no conflation. - Agent trust score formula: weights and decay shown abstractly in
trust-scoring-dataflow. If the actual formula is documented inpkg/trust/*orAgentTrustRegistry.sol, doc-writer should append exact constants in §6.6 — diagram remains formula-agnostic. - DB schema accuracy: the ER diagram is reconstructed from repo conventions and IA section 9. Reviewer should diff it against the latest
migrations/*.sql(path not yet inspected) and flag drift before this lands in v2.0. - MCP-I capability check granularity: assumed every
tools/calltriggers a server-sideverify-delegation. If the runtime caches verifications per session, updatemcp-integration-sequenceto show a cache-hit path. - A2A
.well-known/agent.json: the router exposes one global/.well-known/agent.json(router.go:47). Thea2a-handshakediagram shows the remote peer’s discovery URL — confirm with handler whether per-agent endpoints exist. - Wallet MPC threshold:
wallet-mpc-topologyassumes 2-of-3 with one dormant recovery share. Confirm againstpackages/wallet/**MPC config. - Bulk issuance batching:
vc-bulk-issuanceshows on-chain anchoring is batched, but the actual batch size and trigger (per-N rows or per-time-window) is not yet sourced. Doc-writer to fill in concrete values from the worker code. - Issuer analytics rollup cadence: described as “daily/hourly” in
issuer-analytics-dataflow. Confirm the cron interval used by the aggregator job. - DID-Auth verify endpoint: the IA notes
/auth/challengeexists but no canonical “verify-DID-signature” endpoint is named inrouter.go. The OAuth+DID-Auth diagram routes the verified signature through/auth/verify-otpor/auth/login-did; reviewer should confirm the actual endpoint name and either rename the arrow or open a follow-up to add the route.
4. Hand-off
- File saved to
/Users/subhransu/Documents/infinia/ida/_workspace/03_diagrams.md. - Slug index in §0 maps every diagram to
01_doc_structure.md§5 IDs and to the doc-writer’s{/* DIAGRAM: <slug> */}placeholders. - All 24 IA-mandated diagrams (D1–D24) are present; three extras (
component-layering,trust-scoring-dataflow,er-diagram-core,issuer-analytics-dataflow) are added per the diagram-maker brief. - Mermaid blocks use widely-supported syntax (no HTML, quoted parenthetical labels, single
classDefper diagram).
End of 03_diagrams.md — handoff to doc-writer (paste into placeholders) and tech-reviewer (verify open questions).