Skip to content

Commit d31ff2a

Browse files
committed
harvest(woa): v2 — models_shop.py merged, emit imports closed (151 models)
Regenerate the WoA sink-in substrate harvest against the CURRENT ogar-from-ruff (post Batch-1 Item 1 emit_python prelude+Optional[], Item 2 FK-dedup consolidation): the scratch driver at /tmp/harvest-woa now extracts both models.py (139) and woa/models_shop.py (12) via ruff_sqlalchemy_spo::extract_file, merges via ModelGraph.models.extend() (same "woa" namespace) before minting, and regenerates all four artifacts. Metrics (driver stderr, not hand-estimated): 151 classes, 2154 attributes, 112 associations, 6 aliased / 145 bootstrap, 0/112 dangling .spo edges. v1 gap #2 (models_shop.py out of scope) and gap #3 (emit_python's import list incomplete -> NameError on import) are both RESOLVED: the emitted models.py now carries emit_python_prelude()'s imports, ogar_runtime.py (Item 1's reference wrapper-contract) ships alongside it in this directory, and `python3 -c "import models"` passes (not just py_compile) -- verified directly in this harvest dir, not only in the /tmp scratch driver's out/. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d679f85 commit d31ff2a

6 files changed

Lines changed: 2234 additions & 1693 deletions

File tree

.claude/harvest/woa-rs/HARVEST.md

Lines changed: 136 additions & 131 deletions
Large diffs are not rendered by default.

.claude/harvest/woa-rs/PARKED.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# PARKED — belongs in `AdaWorldAPI/woa-rs`
22

33
This directory is the ruff → OGAR transcode of `AdaWorldAPI/WoA`'s
4-
Flask-SQLAlchemy `models.py` (139 `db.Model` classes) into the OGAR V3
4+
Flask-SQLAlchemy `models.py` (139 `db.Model` classes) **+ `woa/models_shop.py`
5+
(12 `db.Model` classes)****151** total (v2) — into the OGAR V3
56
sink-in substrate. Its real home is `AdaWorldAPI/woa-rs` (the Rust port
67
repo this session's WoA-side context — `/home/user/WoA/.claude/CLAUDE.md`
78
§4 "Zwei-Welten-Pattern" — names as the sibling repo, read-only from the
@@ -31,18 +32,21 @@ copying in, since this session cannot read that repo to confirm.
3132
## What's in this harvest
3233

3334
See `HARVEST.md` (same directory) for the full metrics, provenance, gates,
34-
and — importantly — the honestly-documented gaps (behavior is names-only,
35-
`models_shop.py`'s 12 classes are out of scope, `emit_python`'s import list
36-
is incomplete, and others). Read `HARVEST.md` before relying on `models.py`
35+
and — importantly — the honestly-documented gaps. v2 RESOLVES two v1 gaps:
36+
`models_shop.py`'s 12 classes are now harvested (merged pre-mint), and
37+
`emit_python`'s import list is closed (`emit_python_prelude()` + shipped
38+
`ogar_runtime.py` — the module now *imports*, verified by running
39+
`python3 -c "import models"`, not just `py_compile`). Behavior remains
40+
names-only (unchanged gap). Read `HARVEST.md` before relying on `models.py`
3741
here as anything more than a structural (schema-stratum) reality check.
3842

3943
## Provenance
4044

4145
| Input | Pin |
4246
|---|---|
43-
| WoA (`AdaWorldAPI/WoA`, `models.py`, READ-ONLY) | `4427b3d715d841290ea9108e3bf94b22d0cb72c2` |
47+
| WoA (`AdaWorldAPI/WoA`, `models.py` + `woa/models_shop.py`, READ-ONLY) | `438dd8c429ed5db5188118f50490ad24485c92d3` |
4448
| ruff (`AdaWorldAPI/ruff`, `ruff_sqlalchemy_spo`) | `/tmp/wt-gr`, branch `claude/spo-python-main`, `66db5c417eddf6017e924706031a23b019c17e81` |
45-
| OGAR (`ogar-from-ruff` / `ogar-vocab` / `ogar-adapter-postgres-ddl`) | `/workspace/ogar`, branch `claude/v3-criticals-woa-parity`, `d5479ce382136b3aedad3c122e13d3aab6f9695e` |
49+
| OGAR (`ogar-from-ruff` / `ogar-vocab` / `ogar-adapter-postgres-ddl`) | `/tmp/wt-b1int`, branch `claude/b1-integration`, `d679f8504389bb743b08d34ae7352511d0a34b4b` |
4650

4751
Regenerate with the scratch driver documented in `HARVEST.md`'s
4852
"Reproduction" section (not itself committed anywhere, per the mission's

0 commit comments

Comments
 (0)