Commit baa019e
committed
fix(odoo-spo): #523 codex/coderabbit review — multi-emitter + _inherit-only
Post-merge follow-up to #523 (merged at 69a3b0a before these landed). Both
codex findings were real correctness gaps in the enrichment:
1. P1 multi-emitter deep-reads: the field→emitter index kept only the LAST
emitted_by method, so a field emitted by several methods (e.g.
stock_move.quantity ← _compute_quantity AND _onchange_product_uom_qty)
lifted the deep reads_field to only one — the _compute_* lost its
recompute-ordering edge. Now field → sorted set of emitters; deep read
emitted per emitter (self-loop drop preserved).
2. P2/Major _inherit-only model extensions: _scan_file bound fields only when
_name was present, dropping the COMMON Odoo extension form
(_inherit="x" / ["a","b"] with no _name) — those relational fields never
got target/inverse_name and deep hops through them were skipped. Now
model_names binds from _name OR _inherit (string/list), mapping local
fields onto each.
Corpus regenerated: target 618→842, inverse_name 102→144, reads_field
2831→3030 (the previously-dropped _inherit fields + per-emitter deep reads).
Doc nits: AGENT_LOG scope widened (Python extractor + tests, not "lance-graph
only"); EPIPHANIES "verified locally" claim now cites an in-repo fixture test
(test_spo_enrich) instead of the discarded worktree.
Tests: extractor 14→20 (6 new fixture tests for both cases), lance-graph
odoo_ontology 9→11, fmt clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi1 parent 69a3b0a commit baa019e
5 files changed
Lines changed: 772 additions & 33 deletions
File tree
- .claude/board
- crates/lance-graph/src/graph/spo
- tools/odoo-blueprint-extractor
- odoo_blueprint_extractor
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
1 | 19 | | |
2 | 20 | | |
3 | | - | |
| 21 | + | |
4 | 22 | | |
5 | 23 | | |
6 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
| |||
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
183 | 193 | | |
184 | 194 | | |
185 | 195 | | |
| |||
369 | 379 | | |
370 | 380 | | |
371 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
372 | 436 | | |
0 commit comments