feat: add Kimball + UDA dimensional model for Claude Code user surface#8
Merged
alex-jadecli merged 2 commits intomainfrom Apr 13, 2026
Merged
Conversation
Implements a Ralph Kimball star schema for Claude Code user/device/session analytics, expressed as a Netflix UDA knowledge graph with projections to GraphQL, Avro, and Zod (TypeScript Agent SDK structured output). Domain model (domain_model.ttl): - 6 conformed dimensions: User (Type 2 SCD), Device, UserSurface, Model, Time, Tool - 3 fact tables: FactSession, FactToolUse, FactMessage - 7 enumerations as controlled vocabularies (PlanTier, SurfaceType, etc.) Projections: - schema.graphqls: Federation-ready GraphQL with @udaUri directives - schema.avro: Data Mesh Avro with udaUri and _pk_ attributes - kimball_dimensions.ts + kimball_facts.ts: Zod schemas for SDK output_format - mappings.ttl: UDA mappings connecting domain concepts to all three containers Informed by Netflix UDA blog (onepiece example schemas) and Anthropic's knowledge graph cookbook (entity/relation extraction patterns). https://claude.ai/code/session_01H5TrSfgA9x3vXTNYHnW4f8
The claude-code-action needs write access to post review comments on PRs. The job had pull-requests: read which caused the claude-review check to fail. https://claude.ai/code/session_01H5TrSfgA9x3vXTNYHnW4f8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a Ralph Kimball star schema for Claude Code user/device/session analytics, expressed as a Netflix UDA knowledge graph with projections to GraphQL, Avro, and Zod (TypeScript Agent SDK structured output).
Domain model (domain_model.ttl):
Projections:
Informed by Netflix UDA blog (onepiece example schemas) and Anthropic's knowledge graph cookbook (entity/relation extraction patterns).
https://claude.ai/code/session_01H5TrSfgA9x3vXTNYHnW4f8
Summary
Type of change
Test plan
make lintpassesmake test-covpasses (coverage >= 90%)make typecheckpassesChecklist
feat:,fix:,deps:)