Repository navigation
Report non-blocking HVAC notes instead of falling back - #39
Merged
Merged
Conversation
Integrated outdoor-air records and MechanicalVentilation records with VentilationType None or no type sent otherwise good L200 files to the create_typical fallback, although the buildingsync-measures-gem mapping doc (rows 88 and 89) says they should not block the conditioning match. Selector results now carry two new fields. `blocking` is nil for a blocking result and false for a note; `basis` is :doc, :policy or :approximation. _check_result enforces the combinations that make sense. - Row 88: integrated outdoor air, for any VentilationType except DOAS, is a non-blocking :doc note. Links, if any, must resolve. - Row 89: None or untyped on conditioned deliveries is a non-blocking :doc note, and every MechanicalVentilation child is read as an annotation. Several such records may share a conditioned delivery. A record that links only unconditioned ventilation deliveries blocks. - Row 87: None on deliveries that are all explicitly unconditioned stays blocking, now with a real message. - Unknown is read as untyped by policy (:policy); Other stays blocking. - ComStock recovery (row 83) is a :policy match. - #37's pair-only absorption is replaced by these general rules, so every OtherHVACSystem gives its own result again. The planner keeps notes in a new Plan#notes on both topology and fallback plans. Plan#note_entries deduplicates them, marks matches on a fallback "(not applied)", and logs :doc at INFO and :policy/:approximation at WARN. hvac_mapping_report.json gains `allow_approximations` and `notes`. New CLI option --[no-]allow_approximations (default on). --no-allow_approximations keeps the mapping doc's blocking rules: ComStock recovery becomes not_mappable and Unknown blocks. No fixture changes plan status. About ten Audit Template and ASHRAE files move their None/untyped records from fallback reasons to notes; they still fall back for other reasons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
On the L200 path,
BaselineHvacPlannerrejected every selector result that was not a match. A file with an "Integrated with central air distribution" outdoor-air record, or aMechanicalVentilationrecord withVentilationTypeNone or no type, fell back tocreate_typical_building_from_modelHVAC even when its conditioning system mapped cleanly. The buildingsync-measures-gem mapping doc (HVAC_MAPPING_AND_MIGRATION.md, rows 88 and 89) says these records should not block. #37 fixed this only for records linked to its PTAC pair.What this PR does
Selector (
hvac_topology_selector.rb)Resultgainsblocking(nil = blocking, false = note) andbasis(:doc,:policy,:approximation)._check_resultrejects combinations that make no sense, such as a non-blocking match or a note without a basis.:docnote. An untyped integrated record is no longermissing_input.:docnote. OtherMechanicalVentilationchildren are listed as "Not transferred". A record that links only unconditioned ventilation deliveries blocks, because it needs a conditioned delivery.Unknownis read as untyped by policy (:policy).Otherstays blocking.:policymatch. Withallow_approximations: falseit isnot_mappable.OtherHVACSystemgives its own result again.DELIVERY_RULESmatch row lacks:absentor:guards.Planner, report, CLI
Plan#notescarries notes on topology and fallback plans.Plan#note_entriesdeduplicates them and marks matches on a fallback plan "(not applied)".:docnotes log at INFO;:policyand:approximationnotes log at WARN.hvac_mapping_report.jsonaddsallow_approximationsandnotes.--[no-]allow_approximations(default on). The README documents it and--require_l200.Not in this PR (later fix-plan items): spot exhaust, air cleaners and exhaust-only as
:policynotes; GSHP as:approximation.How to test
🤖 Generated with Claude Code