ai_code_commit_file_sessions

Links commit files to tool/session ID pairs, including before sessions arrive. Links are unique per file, session ID, and logical tool, so one file can link the same ID under several tools. Tenants not yet migrated collapse a multi-tool ID to one __unqualified__ link.

Column Type Description
id Primary key
number Unique identifier for the row.
ai_code_commit_file_id Foreign key
number ID of the associated AI code commit file.

References ai_code_commit_files

session_external_id Foreign key
string External session identifier supplied by the tool. Match using ai_tool as well. Unknown tools (NULL, whitespace-only, or __unqualified__) match only when exactly one tool has that external ID. Matching without the tool can count a link toward several sessions.

References ai_sessions

ai_tool
string Explicit tool, or tool inferred from one usable stored session for legacy input. NULL, PostgreSQL whitespace-only strings and __unqualified__ share one logical unknown identity in the pair index and reconciliation, using the column's collation as the existing backfill does. New unknown writes use __unqualified__; equivalent older values can remain untouched on replay. Real tool labels remain verbatim.
row_created_at DX internal
date When DX created this database row.
row_updated_at DX internal
date When DX last updated this database row.