Skip to content

Commit 6012f46

Browse files
DeusDataapappas1129
andcommitted
fix(graph): IMPORTS edges keyed by local_name across buffer, store and dump
Distills PR DeusData#770 (graph-buffer dedup key) and completes the edge-uniqueness contract it left partial: the contract lives in THREE places, and changing only the buffer ships databases that violate their own UNIQUE constraint (PRAGMA integrity_check: non-unique entry in sqlite_autoindex_edges_1). A single 'import { A, B } from ./lib' produced ONE IMPORTS edge: the graph buffer dedups edges on (source_id, target_id, type) and merge-replaces properties on collision, so the second symbol silently overwrote the first. pass_calls.c, pass_usages.c, pass_semantic.c and pass_lsp_cross.c parse one local_name per IMPORTS edge for cross-file resolution, so the dropped symbol's calls failed to resolve too — not just "who imports X" queries. Changes, kept in sync across all three sites: - graph_buffer.c (from DeusData#770): make_edge_key() folds local_name into the dedup key for IMPORTS edges only; all three key call-sites updated. Hardened beyond DeusData#770: EDGE_KEY_BUF bumped to 256 and oversized local_names are re-keyed with an FNV-1a hash of the full name instead of being silently truncated (two long names sharing a prefix must not collide back into one edge). - store.c: edges gains local_name_gen, a VIRTUAL generated column (IMPORTS -> coalesce(json_extract(properties,'$.local_name'),''), else '' — NOT NULL because NULLs never conflict in a UNIQUE index); uniqueness widened to UNIQUE(source_id, target_id, type, local_name_gen) and the insert upsert's conflict target matches. init_schema probes pre-DeusData#768 DBs (no local_name_gen) and fails the open: SQLite cannot ALTER a table constraint in place, and an unopenable DB already takes the existing repair path — full index deletes + rebuilds, artifact import refuses and falls back to a reindex. Read-only query opens skip init_schema and keep working. - sqlite_writer.c/.h: dump DDL matches the widened schema; the hand-built sqlite_autoindex_edges_1 comparator and entry builder include the local_name column; CBMDumpEdge carries local_name extracted via real JSON parsing (yyjson) so index entries match json_extract's unescaped values exactly, per the idx_edges_url_path precedent. - artifact.h: CBM_ARTIFACT_SCHEMA_VERSION 1 -> 2 so old binaries refuse artifacts carrying the widened schema (their 3-column conflict target can no longer prepare against it). Tests (reproduce-first, all red on the unfixed code): - gbuf tier: multi-symbol import -> 2 IMPORTS edges; long-local_name truncation guard. - store tier: distinct local_name coexists as 2 rows, same local_name still upserts, non-IMPORTS dedup unchanged. - writer tier: dumped DB passes integrity_check with 2 sibling imports and exposes matching local_name_gen values. - end-to-end: TS fixture through the real pipeline -> 2 queryable IMPORTS edges AND integrity_check ok; with only the buffer half of the fix this test still fails on integrity_check, proving the schema half is required. Closes DeusData#768. Co-authored-by: Alexandros Pappas <11921291+apappas1129@users.noreply.github.com> Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 09148ab commit 6012f46

9 files changed

Lines changed: 460 additions & 44 deletions

File tree

‎internal/cbm/sqlite_writer.c‎

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ static uint8_t *build_node_record(const CBMDumpNode *n, int *out_len) {
738738
}
739739

740740
// Build an edges table record: (id, project, source_id, target_id, type, properties)
741-
// url_path_gen is a VIRTUAL generated column — NOT stored in the record.
741+
// url_path_gen and local_name_gen are VIRTUAL generated columns — NOT stored in the record.
742742
static uint8_t *build_edge_record(const CBMDumpEdge *e, int *out_len) {
743743
RecordBuilder r;
744744
rec_init(&r);
@@ -993,16 +993,17 @@ static uint8_t *build_index_entry_text_int_text_rowid(const char *t1, int64_t va
993993
return cell;
994994
}
995995

996-
// Build UNIQUE index entry for (text, text) + rowid (e.g., nodes unique(project, qualified_name))
997-
// Build UNIQUE index entry for (int64, int64, text) + rowid (edges unique(source_id, target_id,
998-
// type))
999-
static uint8_t *build_index_entry_unique_2int_text_rowid(int64_t v1, int64_t v2, const char *text,
1000-
int64_t rowid, int *out_len) {
996+
// Build UNIQUE index entry for (int64, int64, text, text) + rowid — edges
997+
// unique(source_id, target_id, type, local_name_gen) (#768).
998+
static uint8_t *build_index_entry_unique_2int_2text_rowid(int64_t v1, int64_t v2, const char *text,
999+
const char *text2, int64_t rowid,
1000+
int *out_len) {
10011001
RecordBuilder r;
10021002
rec_init(&r);
10031003
rec_add_int(&r, v1);
10041004
rec_add_int(&r, v2);
10051005
rec_add_text(&r, text);
1006+
rec_add_text(&r, text2);
10061007
rec_add_int(&r, rowid);
10071008
int payload_len = 0;
10081009
uint8_t *payload = rec_finalize(&r, &payload_len);
@@ -1515,7 +1516,7 @@ static int cmp_edge_by_url_path(const void *a, const void *b) {
15151516
return cmp_i64(g_sort_edges[ia].id, g_sort_edges[ib].id);
15161517
}
15171518

1518-
// autoindex_edges_1: UNIQUE(source_id, target_id, type) + rowid
1519+
// autoindex_edges_1: UNIQUE(source_id, target_id, type, local_name_gen) + rowid (#768)
15191520
static int cmp_edge_by_src_tgt_type(const void *a, const void *b) {
15201521
int ia = *(const int *)a;
15211522
int ib = *(const int *)b;
@@ -1531,6 +1532,10 @@ static int cmp_edge_by_src_tgt_type(const void *a, const void *b) {
15311532
if (c) {
15321533
return c;
15331534
}
1535+
c = strcmp(safe_str(g_sort_edges[ia].local_name), safe_str(g_sort_edges[ib].local_name));
1536+
if (c) {
1537+
return c;
1538+
}
15341539
return cmp_i64(g_sort_edges[ia].id, g_sort_edges[ib].id);
15351540
}
15361541

@@ -1567,8 +1572,8 @@ static uint8_t *ecell_proj_source_type(const CBMDumpEdge *e, int *out_len) {
15671572
return build_index_entry_text_int_text_rowid(e->project, e->source_id, e->type, e->id, out_len);
15681573
}
15691574
static uint8_t *ecell_src_tgt_type(const CBMDumpEdge *e, int *out_len) {
1570-
return build_index_entry_unique_2int_text_rowid(e->source_id, e->target_id, e->type, e->id,
1571-
out_len);
1575+
return build_index_entry_unique_2int_2text_rowid(e->source_id, e->target_id, e->type,
1576+
safe_str(e->local_name), e->id, out_len);
15721577
}
15731578
static uint8_t *ecell_url_path(const CBMDumpEdge *e, int *out_len) {
15741579
const char *url = (e->url_path && e->url_path[0] != '\0') ? e->url_path : NULL;
@@ -2135,13 +2140,20 @@ static int write_db_after_nodes(write_db_ctx_t *w, uint32_t nodes_root) {
21352140
"CREATE INDEX idx_nodes_name ON nodes(project, name)"},
21362141
{"index", "idx_nodes_file", "nodes", idx_nodes_file_root,
21372142
"CREATE INDEX idx_nodes_file ON nodes(project, file_path)"},
2143+
// local_name_gen + widened UNIQUE (#768): must stay semantically
2144+
// identical to init_schema in src/store/store.c, and the hand-built
2145+
// sqlite_autoindex_edges_1 (cmp_edge_by_src_tgt_type +
2146+
// ecell_src_tgt_type) must produce exactly the values SQLite computes
2147+
// for local_name_gen, or integrity_check fails on the dumped DB.
21382148
{"table", "edges", "edges", edges_root,
21392149
"CREATE TABLE edges (\n\t\tid INTEGER PRIMARY KEY AUTOINCREMENT,\n\t\tproject TEXT NOT "
21402150
"NULL REFERENCES projects(name) ON DELETE CASCADE,\n\t\tsource_id INTEGER NOT NULL "
21412151
"REFERENCES nodes(id) ON DELETE CASCADE,\n\t\ttarget_id INTEGER NOT NULL REFERENCES "
21422152
"nodes(id) ON DELETE CASCADE,\n\t\ttype TEXT NOT NULL,\n\t\tproperties TEXT DEFAULT "
21432153
"'{}',\n\t\turl_path_gen TEXT GENERATED ALWAYS AS "
2144-
"(json_extract(properties,'$.url_path')),\n\t\tUNIQUE(source_id, target_id, type)\n\t)"},
2154+
"(json_extract(properties,'$.url_path')),\n\t\tlocal_name_gen TEXT GENERATED ALWAYS AS "
2155+
"(CASE WHEN type='IMPORTS' THEN coalesce(json_extract(properties,'$.local_name'),'') "
2156+
"ELSE '' END),\n\t\tUNIQUE(source_id, target_id, type, local_name_gen)\n\t)"},
21452157
{"index", "sqlite_autoindex_edges_1", "edges", autoindex_edges_root, NULL},
21462158
{"index", "idx_edges_source", "edges", idx_edges_source_root,
21472159
"CREATE INDEX idx_edges_source ON edges(source_id, type)"},

‎internal/cbm/sqlite_writer.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ typedef struct {
2525
const char *type;
2626
const char *properties; // JSON string
2727
const char *url_path; // extracted from properties by Go (for idx_edges_url_path)
28+
const char *local_name; // for IMPORTS edges: the UNESCAPED
29+
// json_extract(properties,'$.local_name') value; ""/NULL
30+
// otherwise. Feeds sqlite_autoindex_edges_1 — must match
31+
// what SQLite computes for the local_name_gen column or
32+
// integrity_check reports the row missing from the index.
2833
} CBMDumpEdge;
2934

3035
typedef struct {

‎src/graph_buffer/graph_buffer.c‎

Lines changed: 95 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ static inline void *intptr_to_ptr(intptr_t v) {
4949

5050
/* ── Internal types ──────────────────────────────────────────────── */
5151

52-
/* Edge key for dedup hash table — composite key as string "srcID:tgtID:type" */
53-
#define EDGE_KEY_BUF CBM_SZ_128
52+
/* Edge key for dedup hash table — composite key as string "srcID:tgtID:type",
53+
* plus ":local_name" for IMPORTS edges (#768). 256 bytes fit two int64s, the
54+
* type and a ~200-char local_name verbatim; longer local_names are re-keyed
55+
* with a hash of the full name in make_edge_key (never silently truncated). */
56+
#define EDGE_KEY_BUF CBM_SZ_256
5457

5558
/* Per-type or per-key edge list stored in hash tables as values */
5659
typedef CBM_DYN_ARRAY(const cbm_gbuf_edge_t *) edge_ptr_array_t;
@@ -135,7 +138,52 @@ static void make_id_key(char *buf, size_t bufsz, int64_t id) {
135138
snprintf(buf, bufsz, "%lld", (long long)id);
136139
}
137140

138-
static void make_edge_key(char *buf, size_t bufsz, int64_t src, int64_t tgt, const char *type) {
141+
/* FNV-1a 64-bit over a byte slice — for re-keying oversized local_names. */
142+
static uint64_t fnv1a64(const char *s, size_t len) {
143+
uint64_t h = 14695981039346656037ULL;
144+
for (size_t i = 0; i < len; i++) {
145+
h ^= (uint8_t)s[i];
146+
h *= 1099511628211ULL;
147+
}
148+
return h;
149+
}
150+
151+
/* IMPORTS edges carry exactly one imported symbol's local_name (#768): two
152+
* named imports from the same specifier resolve to the same (source,
153+
* target) pair but are distinct symbols. Key on local_name too so the
154+
* second import doesn't dedup-collide with and overwrite the first —
155+
* every pass that walks IMPORTS edges (pass_calls.c, pass_usages.c,
156+
* pass_semantic.c, pass_lsp_cross.c) expects one local_name per edge, so
157+
* losing an edge here silently breaks cross-file call resolution for
158+
* whichever symbol got dropped, not just "who imports X" queries. Other
159+
* edge types keep the plain (source,target,type) key: collapsing repeat
160+
* edges of the same type between the same two nodes (e.g. multiple call
161+
* sites) into one is the existing, intended dedup behavior there.
162+
*
163+
* A local_name too long for the key buffer is re-keyed with an FNV-1a hash
164+
* of the FULL name instead of being truncated — a truncated key would
165+
* collide two long names sharing a prefix and silently drop an edge again.
166+
* The hash key is prefixed with byte 0x01, which cannot appear in the raw
167+
* JSON slice (control characters must be \u-escaped in JSON), so hash keys
168+
* can never collide with verbatim keys. */
169+
static void make_edge_key(char *buf, size_t bufsz, int64_t src, int64_t tgt, const char *type,
170+
const char *properties_json) {
171+
if (properties_json && strcmp(type, "IMPORTS") == 0) {
172+
static const char local_name_key[] = "\"local_name\":\"";
173+
const char *ln = strstr(properties_json, local_name_key);
174+
if (ln) {
175+
ln += sizeof(local_name_key) - 1;
176+
const char *end = strchr(ln, '"');
177+
size_t ln_len = end ? (size_t)(end - ln) : strlen(ln);
178+
int n = snprintf(buf, bufsz, "%lld:%lld:%s:%.*s", (long long)src, (long long)tgt, type,
179+
(int)ln_len, ln);
180+
if (n < 0 || (size_t)n >= bufsz) {
181+
snprintf(buf, bufsz, "%lld:%lld:%s:\x01%016llx", (long long)src, (long long)tgt,
182+
type, (unsigned long long)fnv1a64(ln, ln_len));
183+
}
184+
return;
185+
}
186+
}
139187
snprintf(buf, bufsz, "%lld:%lld:%s", (long long)src, (long long)tgt, type);
140188
}
141189

@@ -244,7 +292,7 @@ static void remove_node_from_ptr_array(node_ptr_array_t *arr, int64_t node_id) {
244292
static void unindex_edge(cbm_gbuf_t *gb, const cbm_gbuf_edge_t *e) {
245293
char key[EDGE_KEY_BUF];
246294

247-
make_edge_key(key, sizeof(key), e->source_id, e->target_id, e->type);
295+
make_edge_key(key, sizeof(key), e->source_id, e->target_id, e->type, e->properties_json);
248296
const char *ekey = cbm_ht_get_key(gb->edge_by_key, key);
249297
cbm_ht_delete(gb->edge_by_key, key);
250298
free((void *)ekey);
@@ -919,7 +967,7 @@ int64_t cbm_gbuf_insert_edge(cbm_gbuf_t *gb, int64_t source_id, int64_t target_i
919967

920968
/* Check for dedup */
921969
char key[EDGE_KEY_BUF];
922-
make_edge_key(key, sizeof(key), source_id, target_id, type);
970+
make_edge_key(key, sizeof(key), source_id, target_id, type, properties_json);
923971

924972
cbm_gbuf_edge_t *existing = cbm_ht_get(gb->edge_by_key, key);
925973
if (existing) {
@@ -1032,7 +1080,8 @@ int cbm_gbuf_delete_edges_by_type(cbm_gbuf_t *gb, const char *type) {
10321080
cbm_gbuf_edge_t *e = gb->edges.items[i];
10331081
if (strcmp(e->type, type) == 0) {
10341082
char key[EDGE_KEY_BUF];
1035-
make_edge_key(key, sizeof(key), e->source_id, e->target_id, e->type);
1083+
make_edge_key(key, sizeof(key), e->source_id, e->target_id, e->type,
1084+
e->properties_json);
10361085
const char *ekey = cbm_ht_get_key(gb->edge_by_key, key);
10371086
cbm_ht_delete(gb->edge_by_key, key);
10381087
free((void *)ekey);
@@ -1182,23 +1231,24 @@ int cbm_gbuf_merge(cbm_gbuf_t *dst, cbm_gbuf_t *src) {
11821231

11831232
/* ── Dump / Flush ────────────────────────────────────────────────── */
11841233

1185-
/* Extract url_path value from a properties JSON string.
1234+
/* Extract a string property from a properties JSON string.
11861235
* Returns heap-allocated string or NULL. Caller must free.
1187-
* Parses real JSON: the dump writer feeds this value into idx_edges_url_path,
1188-
* whose backing column is GENERATED AS json_extract(properties,'$.url_path').
1236+
* Parses real JSON: the dump writer feeds these values into indexes whose
1237+
* backing columns are GENERATED AS json_extract(properties,'$.<key>').
11891238
* Naive byte slicing returned the ESCAPED text (and cut at embedded \\")
11901239
* while json_extract yields the unescaped value — the mismatch left rows
1191-
* "missing from index idx_edges_url_path" under PRAGMA integrity_check. */
1192-
static char *extract_url_path(const char *props) {
1193-
if (!props || !strstr(props, "\"url_path\"")) {
1240+
* "missing from index idx_edges_url_path" under PRAGMA integrity_check.
1241+
* key_quoted ("\"key\"") is a fast pre-filter to skip the JSON parse. */
1242+
static char *extract_prop_string(const char *props, const char *key_quoted, const char *key) {
1243+
if (!props || !strstr(props, key_quoted)) {
11941244
return NULL;
11951245
}
11961246
yyjson_doc *doc = yyjson_read(props, strlen(props), 0);
11971247
if (!doc) {
11981248
return NULL;
11991249
}
12001250
char *out = NULL;
1201-
yyjson_val *v = yyjson_obj_get(yyjson_doc_get_root(doc), "url_path");
1251+
yyjson_val *v = yyjson_obj_get(yyjson_doc_get_root(doc), key);
12021252
if (v && yyjson_is_str(v)) {
12031253
const char *sv = yyjson_get_str(v);
12041254
out = cbm_strndup(sv, strlen(sv));
@@ -1207,6 +1257,16 @@ static char *extract_url_path(const char *props) {
12071257
return out;
12081258
}
12091259

1260+
static char *extract_url_path(const char *props) {
1261+
return extract_prop_string(props, "\"url_path\"", "url_path");
1262+
}
1263+
1264+
/* local_name feeds the hand-built sqlite_autoindex_edges_1 — its backing
1265+
* column local_name_gen is GENERATED only for IMPORTS edges (#768). */
1266+
static char *extract_local_name(const char *props) {
1267+
return extract_prop_string(props, "\"local_name\"", "local_name");
1268+
}
1269+
12101270
/* Remap a temp edge ID to its final sequential ID, or 0 if out of range. */
12111271
static int64_t remap_id(const int64_t *temp_to_final, int64_t max_temp_id, int64_t temp_id) {
12121272
return (temp_id < max_temp_id) ? temp_to_final[temp_id] : 0;
@@ -1265,9 +1325,11 @@ static CBMDumpNode *build_dump_nodes(cbm_gbuf_t *gb, int live_count, int64_t *te
12651325
return dump_nodes;
12661326
}
12671327

1268-
/* Build dump-ready edge array with remapped IDs. Returns url_paths via out param. */
1328+
/* Build dump-ready edge array with remapped IDs. Returns url_paths and
1329+
* local_names (heap string arrays owned by the caller) via out params. */
12691330
static CBMDumpEdge *build_dump_edges(cbm_gbuf_t *gb, const int64_t *temp_to_final,
1270-
int64_t max_temp_id, int *out_count, char ***out_url_paths) {
1331+
int64_t max_temp_id, int *out_count, char ***out_url_paths,
1332+
char ***out_local_names) {
12711333
/* Count valid edges (both endpoints resolved) */
12721334
int valid_edges = 0;
12731335
for (int i = 0; i < gb->edges.count; i++) {
@@ -1281,6 +1343,7 @@ static CBMDumpEdge *build_dump_edges(cbm_gbuf_t *gb, const int64_t *temp_to_fina
12811343
CBMDumpEdge *dump_edges =
12821344
malloc((size_t)(valid_edges > 0 ? valid_edges : SKIP_ONE) * sizeof(CBMDumpEdge));
12831345
char **url_paths = calloc((size_t)(valid_edges > 0 ? valid_edges : SKIP_ONE), sizeof(char *));
1346+
char **local_names = calloc((size_t)(valid_edges > 0 ? valid_edges : SKIP_ONE), sizeof(char *));
12841347
int idx = 0;
12851348

12861349
for (int i = 0; i < gb->edges.count; i++) {
@@ -1294,6 +1357,12 @@ static CBMDumpEdge *build_dump_edges(cbm_gbuf_t *gb, const int64_t *temp_to_fina
12941357
char *url_path = extract_url_path(e->properties_json);
12951358
url_paths[idx] = url_path;
12961359

1360+
/* IMPORTS only — mirrors the local_name_gen CASE in the edges DDL. */
1361+
char *local_name = (e->type && strcmp(e->type, "IMPORTS") == 0)
1362+
? extract_local_name(e->properties_json)
1363+
: NULL;
1364+
local_names[idx] = local_name;
1365+
12971366
const char *props = e->properties_json ? e->properties_json : "{}";
12981367
dump_edges[idx] = (CBMDumpEdge){
12991368
.id = idx + SKIP_ONE,
@@ -1303,12 +1372,14 @@ static CBMDumpEdge *build_dump_edges(cbm_gbuf_t *gb, const int64_t *temp_to_fina
13031372
.type = e->type,
13041373
.properties = props,
13051374
.url_path = url_path ? url_path : "",
1375+
.local_name = local_name ? local_name : "",
13061376
};
13071377
idx++;
13081378
}
13091379

13101380
*out_count = idx;
13111381
*out_url_paths = url_paths;
1382+
*out_local_names = local_names;
13121383
return dump_edges;
13131384
}
13141385

@@ -1360,12 +1431,15 @@ static void log_dump_summary(int node_count, int edge_count) {
13601431
cbm_log_info("gbuf.dump", "nodes", b1, "edges", b2);
13611432
}
13621433

1363-
static void free_dump_resources(char **url_paths, int edge_count, CBMDumpEdge *dump_edges,
1364-
CBMDumpNode *dump_nodes, int64_t *temp_to_final) {
1434+
static void free_dump_resources(char **url_paths, char **local_names, int edge_count,
1435+
CBMDumpEdge *dump_edges, CBMDumpNode *dump_nodes,
1436+
int64_t *temp_to_final) {
13651437
for (int i = 0; i < edge_count; i++) {
13661438
free(url_paths[i]);
1439+
free(local_names[i]);
13671440
}
13681441
free(url_paths);
1442+
free(local_names);
13691443
free(dump_edges);
13701444
free(dump_nodes);
13711445
free(temp_to_final);
@@ -1469,10 +1543,12 @@ int cbm_gbuf_dump_to_sqlite(cbm_gbuf_t *gb, const char *path) {
14691543

14701544
int edge_idx = 0;
14711545
char **url_paths = NULL;
1546+
char **local_names = NULL;
14721547
CBMDumpEdge *dump_edges = NULL;
14731548
if (rc == 0) {
14741549
CBM_PROF_START(t_build_edges);
1475-
dump_edges = build_dump_edges(gb, temp_to_final, max_temp_id, &edge_idx, &url_paths);
1550+
dump_edges =
1551+
build_dump_edges(gb, temp_to_final, max_temp_id, &edge_idx, &url_paths, &local_names);
14761552
CBM_PROF_END_N("dump", "3_build_dump_edges", t_build_edges, edge_idx);
14771553
release_and_remap_vectors(gb, temp_to_final, max_temp_id);
14781554
}
@@ -1489,7 +1565,7 @@ int cbm_gbuf_dump_to_sqlite(cbm_gbuf_t *gb, const char *path) {
14891565
}
14901566

14911567
log_dump_summary(node_idx, edge_idx);
1492-
free_dump_resources(url_paths, edge_idx, dump_edges, dump_nodes, temp_to_final);
1568+
free_dump_resources(url_paths, local_names, edge_idx, dump_edges, dump_nodes, temp_to_final);
14931569
free(src_nodes);
14941570
return rc;
14951571
}

‎src/pipeline/artifact.h‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
#include <stdbool.h>
1313

1414
/* Schema version — increment when DB schema changes (new tables/indexes).
15-
* Import refuses artifacts with schema_version > current. */
16-
#define CBM_ARTIFACT_SCHEMA_VERSION 1
15+
* Import refuses artifacts with schema_version > current.
16+
* v2: edges uniqueness widened to (source_id, target_id, type,
17+
* local_name_gen) so sibling named imports coexist (#768) — old
18+
* binaries cannot upsert against the widened constraint. */
19+
#define CBM_ARTIFACT_SCHEMA_VERSION 2
1720

1821
#define CBM_ARTIFACT_FILENAME "graph.db.zst"
1922
#define CBM_ARTIFACT_META "artifact.json"

0 commit comments

Comments
 (0)