mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
2.7 KiB
2.7 KiB
Resume prompt — finish the Hyde portfolio-796 property_overrides run (after Khalim review)
Paste the block below to continue. It tells the assistant to review the unknown-override decisions with me, verify them, confirm before writing, then run the remaining steps.
We paused the Hyde property-overrides bulk load to review the UNKNOWN classifications with Khalim. Pick it back up.
Context (already done):
- Target is portfolio 796 in DevAssessmentModelDB (NOT 795 — 795 is empty).
- Script:
scripts/hyde/build_property_overrides.py. Pass 1 (classify) is DONE — thelandlord_*_overridesledger is populated; re-running classify is free (cache hits). - The 19 unresolved descriptions are documented in
scripts/hyde/unknowns_review.md, with proposed values already written tooverrides_edits.csv(gitignored). - Env (DB creds +
OPENAI_API_KEY) is in/workspaces/home/github/Model/.env; load it with python-dotenv and setPOSTGRES_DRIVER=psycopg2. Writes are idempotent upserts (unique onproperty_id, override_component, building_part) — safe to re-run, never duplicates.
Do this, in order:
- Ask me what Khalim decided for the unknowns. The one real judgement call is the
flat-roof reading:
Flat: As Built(1,172 rows) +Flat: Unknown(194) → which ofFlat, no insulation (assumed)/Flat, insulated (assumed)/Flat, limited insulation (assumed). Theconstruction_age_bandbands (29,829 rows) are deterministic (band = first letter) — keep as-is unless I say otherwise. Confirm the other roof/wall proposals too. - Update
overrides_edits.csv(corrected_valuecolumn) to match Khalim's decisions. - Run
validate --edits overrides_edits.csvand fix anything it rejects. - Show me the final edits + the planned write counts, and WAIT for my explicit go-ahead
before any
--apply. Do not write to the DB before I confirm. - On my go-ahead:
apply-edits --edits overrides_edits.csv --portfolio-id 796 --apply(user corrections → ledger)write --excel scripts/hyde/hyde_property_overrides.xlsx --portfolio-id 796(DRY RUN — report unmatched org_refs + unresolved across all 31,773 first)- then the same
write ... --apply
verify --portfolio-id 796 --org-ref <a few org_refs>to confirm property_overrides + overlays landed.- Remind me about the deferred age-classifier prompt-hint fix for the production lambda
(the live frontend will hit the same
"D: 1950-1966"→ UNKNOWN until that lands).
Every DB command loads env from /workspaces/home/github/Model/.env. Read-only checks
(verify, dry-run write) are fine to run unprompted; anything --apply needs my confirm.