Repository navigation
S04: stable canonical simulation snapshot (F7) - #243
Merged
michaldengusiak merged 9 commits intoOct 20, 2026
Merged
Conversation
The frozen snapshot that Run Simulation > Both's producers hash and OpenStudio Simulation converts now leaves out the one UI-only parameter SAM_UI keeps on a model, "UI Geometry Settings" (its views, regenerated with a new GUID every time a model is opened). The same saved model opened in two sessions therefore gives byte-identical snapshots and the same canonical model hash, while every engineering edit still changes it. Nothing else is removed; the open model is never changed; the OpenStudio result model gets the open model's view state back, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot and on the result model (S04) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Real producers showed the residual: once "UI Geometry Settings" is removed, the empty SAM.Analytical.UI parameter set still carries the assembly's module version id as its GUID, which changes with every SAM_UI build. The snapshot is now written from the model's JSON tree, less that parameter and less its set only when that leaves it empty, in exactly the format Core.Convert.ToFile writes (a model with no view state is frozen byte for byte as before). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dropped - The OpenStudio result model's view state is now copied from the open model at the moment of the snapshot (on the run's thread, as the snapshot itself) and attached inside a try/catch: reading the live model at the end of a long run could throw and turn a successful run into Failed, and would have picked up edits made during the run. - An already-empty SAM.Analytical.UI set (written with no "Parameters") is left out of the snapshot like an emptied one; it carried only the per-build GUID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 19, 2026
Resolve OpenStudioSimulationTests.RealRun_ by keeping both the S04 view-state and the S03 provenance assertions. The code tree equals the local S03+S04 integration tree 8aafcb06. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaldengusiak
marked this pull request as ready for review
October 20, 2026 05:05
michaldengusiak
added a commit
that referenced
this pull request
Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaldengusiak
added a commit
that referenced
this pull request
Oct 20, 2026
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.
Roadmap S04 - Stable canonical simulation snapshot (SAM
documentation/SIMULATION_ROADMAP_Q4_2026.md, Phase A, finding F7 of #239). SAM_UI only; SAM_Validation's canonical JSON v1 andcanonicalizationVersionare unchanged. Record:documentation/S04-StableCanonicalSnapshot-PR.md.Base
sow/2026-Q44d7f5bd8. Independent of S03 (#242). Validated content SHA29ca1d1a, after the independent-review fixes; the first content was0594e708. Record/evidence-only commits:bbc8a19d,420b71dd,b19b80ab.Problem (from real evidence)
Guid/ActiveGuidof the default "3D View" inSAM.Analytical.UI→UI Geometry Settings. The window regenerates that view on every open. As a result, four real S01b Both runs of one model carry four differentcanonicalModelHashvalues.Fix
FreezeAnalyticalModelwrites the model's JSON withoutUI Geometry Settings.Core.Convert.ToFilewrites it, so a model with no view state gives the same bytes as before.Validation (local)
Full
SAM.Analytical.UI.WPF.Tests2874/2874 PASS on29ca1d1a: 2860 existing plus 14 new inCanonicalSnapshotTests, on the Part O multizone fixture, with each model saved and reopened as the window does. (2873/2873 on0594e708.)Mutation checks, all caught:
Real producers (
documentation/evidence/s04-20261019/):0c30db14….canonicalModelHash05c1e334….Real ribbon (S05 rehearsal, draft S05 preflight - rehearsal only, NOT acceptance (docs/evidence) #244, local S03+S04 integration build): three separate app sessions of Run Simulation > Both (explicit ×2, embedded) all gave
0c30db14…/05c1e334….Independent review
A separate regression review of the combined S03+S04 diff found two S04 defects, both fixed in
29ca1d1a:Notes
SAM_COMMITfor the developer-built producers (see S03: automatic run provenance for Tas, OpenStudio and Both #242).Integration with merged S03 (2026-10-20)
S03 (#242) merged first as
1e460bbe.3bbba54bmergessow/2026-Q4(56e67d09) into this branch, keeping both the S04 and S03 blocks inOpenStudioSimulationTests.RealRun_…; its code tree equals the earlier local integration tree8aafcb06(onlyPROJECT_PROGRESS.mddiffers, from the base).SAM.Analytical.UI.WPF.Testson3bbba54b: run 1 2925/2926 (one S03 test timed out onProgressWindowHost's 5 s shutdown join under load and reported Cancelled; pre-existing fail-safe, recorded), run 2 2926/2926 PASS.SAM�uildpredates SAM#212 (F1); hosted CI builds dependencies from source. Details in the record.dac1e540is record-only.Final PR head: see the latest checks below (updated at merge).
🤖 Generated with Claude Code