Skip to content

PY-01: Python-first active design analysis and research roadmap - #49

Merged
Poyqraz merged 1 commit into
mainfrom
agent/python-active-design-analysis
Sep 1, 2026
Merged

Poyqraz merged 1 commit into
mainfrom
agent/python-active-design-analysis

Conversation

@Poyqraz

@Poyqraz Poyqraz commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Scope

  • Record the user's Python-first decision after SciSpace + Consensus literature searches; no MATLAB dependency or print-orientation workstream.
  • Extend existing draft/BEM contracts with nominal station Re/Mach/alpha preparation and an explicit-polar, fully-open active-design BEM service. No replacement solver, proxy fallback, clamping, or partial totals.
  • Geometry-page preparation uses the exact downloadable draft. Widget changes do not run BEM. Validated polar upload and a new UI BEM run button are deferred to PY-03; the 254 mm benchmark remains separate.
  • Retain exact TOML, polar content/metadata, runtime/source identities, settings and full BEM query envelopes. Always physical_qualification=false.
  • Update roadmap PY-01–06; PR feat(foldable): nonlineer uç açılması + aero kapanma momenti (opt-in) #3 remains untouched.

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

  • TDD red: absent service, then absent UI preparation; green after implementation.
  • Full local suite: 858 passed, 9 skipped (34 new service + 2 new UI tests).
  • Independent subagent review + follow-up: no blocking finding.
  • compileall and git diff --check passed.
  • Streamlit startup/health: HTTP 200 OK; AppTest checks UI behavior.
  • Nominal polars can cover every station while induced BEM queries leave the alpha envelope: regression requires fail-closed output.
  • Test-only synthetic polars are explicitly marked and do not create physical evidence.

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.

Copilot AI lite review requested due to automatic review settings September 1, 2026 19:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_analysis and run_design_analysis service 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"),
}
@Poyqraz
Poyqraz merged commit 656b756 into main Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants