Repository navigation
PY-01: Python-first active design analysis and research roadmap - #49
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The new service can raise uncaught dependency metadata exceptions (e.g., PackageNotFoundError) instead of the intended DesignAnalysisError, which can break UI/service error handling paths.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Introduces a new Python-first “active design” slice that (1) prepares nominal station Re/Mach/α from the exact downloadable draft and (2) provides an explicit-polar, fully-open BEM screening service, while updating the Streamlit workspace and project roadmap to reflect the PY-01 boundary.
Changes:
- Added
prepare_design_analysisandrun_design_analysisservice with content-addressed JSON artifacts, strict bounds, and provenance capture. - Extended the Streamlit geometry page to render/download the preparation artifact without triggering BEM on widget changes, plus added UI/service regression tests.
- Updated documentation/roadmap to record the Python-first decision and clarify scientific/validation boundaries.
File summaries
| File | Description |
|---|---|
| tests/ui/test_streamlit_dashboard.py | Adds Streamlit AppTest coverage ensuring geometry-page edits update preparation identity and do not run BEM or leave stale downloads. |
| tests/application/test_design_analysis.py | Adds service-level tests for hashing determinism, strict domain/bounds, polar handling, and provenance guarantees. |
| pyfoldable/application/design_analysis.py | Implements draft parsing, preparation outputs, and explicit-polar BEM screening artifact generation with audit identity. |
| docs/validation_and_development_roadmap.md | Records PY-01–06 roadmap updates and the Python-first scope decision. |
| docs/ui_engineering_workspace.md | Documents the new UI preparation behavior and the deferred PY-03 run-button/polar upload work. |
| docs/python_research_execution_plan.md | Adds the research/execution plan with acceptance boundaries and methodology references. |
| apps/pyfoldable_dashboard.py | Renders the active-design preparation section in the Geometry page and exposes JSON download. |
| AGENTS.md | Updates the recorded local test count and slice label. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+130
to
+136
| return { | ||
| "source_files_sha256": hashes, | ||
| "source_identity_scope": "disk_sources_at_request_time_restart_after_edits", | ||
| "python": platform.python_version(), | ||
| "numpy": version("numpy"), | ||
| "scipy": version("scipy"), | ||
| } |
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.
Scope
Research and boundary
See docs/python_research_execution_plan.md for primary links, transferable findings and explicit abstract/full-text access limits. Literature is methodology evidence, not validation of our hinge, 140 mm envelope or 85% target.
Verification
The remote source tree was verified byte-identical to the tested local commit (tree e582247423e2d690b5238f14042c1024852552a6). A pre-existing user change in reports/foldable_v2_engineering_design/report_key_results.csv is excluded.