Describe the bug
kbagent lineage build --output lineage.json produces an empty graph (0 tables, 0 configurations, 0 edges) when only a single project is initialized, even though storage tables are accessible.
The command works correctly when all organization projects are initialized.
Steps to reproduce
- Initialize and configure the project:
kbagent init
kbagent project add --project <project-name> --url ... --token ...
kbagent sync pull --project <project-name>
- Verify storage is accessible:
kbagent storage tables --project <project-name>
# Returns a non-empty list of tables ✓
- Run lineage build:
kbagent lineage build --output lineage.json
- Observe output:
Lineage graph built
Tables: 0
Configurations: 0
Edges: 0
Saved to: lineage.json
Expected behavior
lineage build should use the locally synced project data and produce a graph reflecting the actual tables and configurations present in the project.
Actual behavior
The output JSON contains an empty graph. No tables, configurations, or edges are included, despite storage tables confirming that data exists.
Describe the bug
kbagent lineage build --output lineage.jsonproduces an empty graph (0 tables, 0 configurations, 0 edges) when only a single project is initialized, even though storage tables are accessible.The command works correctly when all organization projects are initialized.
Steps to reproduce
Expected behavior
lineage build should use the locally synced project data and produce a graph reflecting the actual tables and configurations present in the project.
Actual behavior
The output JSON contains an empty graph. No tables, configurations, or edges are included, despite storage tables confirming that data exists.