|
| 1 | +# OSM transpile — status of the three autoattended next-steps (2026-07-04) |
| 2 | + |
| 3 | +## ✅ 1. classid mint — DONE (OGAR side) |
| 4 | + |
| 5 | +Allocated **`ConceptDomain::Geo` (`0x0FXX`)** in `ogar-vocab` and minted the 10 |
| 6 | +OSM geodata concepts: `osm_node` `0x0F01`, `osm_way` `0x0F02`, `osm_relation` |
| 7 | +`0x0F03`, `osm_changeset` `0x0F04`, `osm_element_tag` `0x0F05`, |
| 8 | +`osm_relation_member` `0x0F06`, `osm_way_node` `0x0F07`, `osm_note` `0x0F08`, |
| 9 | +`osm_gpx_trace` `0x0F09`, `osm_user` `0x0F0A`. |
| 10 | + |
| 11 | +Full codebook contract satisfied (all `ogar-vocab` tests green, 96): |
| 12 | +`CODEBOOK` + `class_ids::{consts,ALL}` + `all_promoted_classes()` constructors + |
| 13 | +`ConceptDomain::Geo` + `canonical_concept_domain(0x0F)` + `COUNT_FUSE` pin |
| 14 | +`68→78`. |
| 15 | + |
| 16 | +The render now emits `CLASS_ID` for the 20 grounded geodata files |
| 17 | +(`Node → 0x0F01`, …) via the Rails-name→concept grounding map in |
| 18 | +`render_osm.rs`. |
| 19 | + |
| 20 | +### ⏳ Sequenced follow-up (post-merge, NOT doable now) |
| 21 | + |
| 22 | +The **lance-graph mirror** (`lance-graph-contract::ogar_codebook::CODEBOOK`) + |
| 23 | +`lance-graph-ogar::parity::COUNT_FUSE` must be bumped `68→78` **after** this |
| 24 | +OGAR `ogar-vocab` change merges to OGAR `main` — because `lance-graph-ogar`'s |
| 25 | +`COUNT_FUSE` is a compile-time assert `contract::CODEBOOK.len() == |
| 26 | +ogar_vocab::class_ids::ALL.len()`, and lance-graph pulls `ogar_vocab` via **git |
| 27 | +main** (still 68). Bumping the mirror first would break that assert against the |
| 28 | +unmerged ogar-vocab. This is the E-CODEBOOK-MINT-IS-A-CROSS-REPO-ARC lockstep. |
| 29 | + |
| 30 | +**Operator:** confirm the `0x0F` / Geo domain allocation before merge. |
| 31 | + |
| 32 | +## ✅ 2. lance-graph wiring — DONE (manifest) |
| 33 | + |
| 34 | +`harvest/osm_graph.spo` — the OSM association graph as **154 classid-keyed SPO |
| 35 | +edges**. node/way/relation is a graph; each grounded subject carries its |
| 36 | +`CLASS_ID` and every association is an edge to a target concept (classid where |
| 37 | +the target grounds), e.g.: |
| 38 | + |
| 39 | +``` |
| 40 | +osm_node[0x0F01] --BelongsTo:changeset--> changeset[0x0F04] |
| 41 | +osm_node[0x0F01] --HasMany:element_tags--> NodeTag[0x0F05] |
| 42 | +osm_node[0x0F01] --HasMany:containing_relations--> Relation[0x0F03] |
| 43 | +osm_changeset[0x0F04] --BelongsTo:user--> user[0x0F0A] |
| 44 | +``` |
| 45 | + |
| 46 | +Targets shown `[----]` are ungrounded (plural relation names that don't |
| 47 | +normalise to a minted concept, or non-geodata app entities) — an honest gap in |
| 48 | +the simple grounding, not a lift error. This manifest is the feed a |
| 49 | +`lance-graph` graph loader consumes. |
| 50 | + |
| 51 | +## ⛔ 3. DO-arm methods — CAPABILITY GAP (honestly scoped, not faked) |
| 52 | + |
| 53 | +The render *supports* behaviour methods — `render_class_with_methods(class, |
| 54 | +mask, actions: &[ActionDef])` lifts each `ActionDef` into a struct method. But |
| 55 | +**there are no `ActionDef`s to pass**: |
| 56 | + |
| 57 | +- `ruff_ruby_spo::extract` walks **`app/models` only**; `app/controllers` (where |
| 58 | + Rails request behaviour lives) is never parsed. |
| 59 | +- The `Class` IR carries `associations` / `enums` / `mixins` / `attributes` — |
| 60 | + **no methods / callbacks / actions field**. |
| 61 | + |
| 62 | +So the DO-arm is empty by construction today. Closing it needs a **new |
| 63 | +capability**: a Ruby controller/action harvester (`ruff_ruby_spo` extended to |
| 64 | +`app/controllers`, or a `ruff_ruby_action_spo`) that lifts controller actions → |
| 65 | +`ActionDef { predicate, object_class, body_source, on_enter }`. That is a ruff |
| 66 | +feature, filed as the honest next brick — not something to synthesise from the |
| 67 | +model tree. |
0 commit comments