Refactor architecture domains and add evidence-backed cost modeling - #3
Merged
Conversation
reiase
marked this pull request as draft
August 9, 2026 11:02
reiase
marked this pull request as ready for review
August 9, 2026 11:03
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.
Motivation
Blueprinting is an evidence-driven hardware architecture exploration system. The previous source layout still mixed workload semantics, logical mapping, formal derivation, hardware descriptions, cost evidence, and external validation under compiler-shaped packages. That made ownership unclear, encouraged target details to leak into portable plans, and made the base package carry a large optional performance-data bundle.
This PR converges the implementation around the product architecture: formal modeling and verified synthesis are implementation techniques, while workload, mapping, system, evidence, application, and validation remain explicit domains.
What changed
Establish explicit domain boundaries
blueprinting.compilertoblueprinting.synthesizer.blueprinting.analysis.blueprinting.schemafor dependency-free canonical serialization and immutable values;blueprinting.workloadfor model and scenario facts;blueprinting.mappingfor TP/PP/DP strategies and explicit deployment mappings;blueprinting.systemfor compute, memory, interconnect, and system profiles;blueprinting.validationfor Calculon/Vidur adapters and regression gates.Clarify exact-work derivation and late binding
NetworkTierBinding, supplied only during target/system evaluation.PortablePlanIR; cost views reconstruct semantic metadata from canonicalWorkloadFacts.Add the performance evidence plane
data/evidence/and exclude it from base distribution artifacts.Strengthen application, validation, and packaging contracts
validation/legacy/.Architectural invariants guarded by this PR
ModelIR,DistributedTaskIR, orPortablePlanIR.Compatibility and migration notes
blueprinting.compilerPython import path is intentionally removed.compiler.*codec tags remain as stable wire identities.data/evidence/; it is no longer included in the default wheel or sdist.Validation
uv run pytest: 131 passed, no warnings.mkdocs build --strictand SVG XML validation pass.Suggested review order
docs/design/modules.{en,zh}.mdand the new ADRs for intent.src/blueprinting/{workload,mapping,system}/for domain ownership.src/blueprinting/synthesizer/dialects/transformer/and lowerings for canonical work derivation.src/blueprinting/analysis/cost/for evidence resolution.src/blueprinting/validation/, boundary tests, and CI/package checks.Out of scope
This PR does not claim that target plugins, portable-to-concrete planning, resource scheduling, event-level simulation, profiler ingestion, MachineIR emission, or Pareto search are implemented. It establishes and guards the boundaries those capabilities will extend.