Contract Workbench Information Architecture
Purpose
The Contract Workbench is a shared information architecture for engineering knowledge and verification evidence. It is not a formula workbench with other domains forced into formula-shaped fields. Formula Knowledge is one domain among several; Case, Runtime, Workflow, Mesh, Geometry and Algorithm have different native concepts and evidence.
The common structure provides predictable navigation and traceability while each domain retains a typed payload and domain-specific visualizers.
Domain-specific knowledge and visualizers
Shared navigation does not erase domain distinctions. Each domain has a typed payload and may add focused views:
Domain |
Native knowledge structure |
Optional domain-specific views |
|---|---|---|
Formula Knowledge |
Equations, symbols, notation aliases, assumptions, dimensional consistency, derivations and limiting behavior. |
Formula / LaTeX preview, theory curves, worked examples. |
Parameter |
Parameter identity, aliases, type, units, source/load order, default, override behavior, consumers and runtime read timing. |
Formula association, runtime consumers, examples, declaration history. |
Case |
Physical setup, solver/model, mesh, numerical methods, initial and boundary conditions, expected outputs and comparison policy. |
Case setup, input files, suite membership, run artifacts and baselines. |
Runtime |
Process/task state machine, resource ownership, transitions, failure handling, cancellation, recovery and concurrency constraints. |
State-transition diagram, event timeline, resource/lifecycle trace. |
Workflow |
Steps, dependencies, artifact contracts, input/output bindings, scheduling and failure propagation. |
Workflow graph, run history, artifact lineage and diagnostics. |
Boundary Conditions |
Physical meaning, mathematical boundary constraints, required state data, format mappings, solver realization and applicability. |
Boundary semantic catalog, Gmsh/CGNS/OneFLOW mapping matrix and compatibility/evidence view. |
Mesh |
Format-neutral entities and topology, coordinates, connectivity, boundaries, regions, identity, orientation and quality; plus Gmsh, Plot3D, CGNS and future adapter semantics. |
Grouped Mesh Knowledge catalog, topology inspector, format mapping, boundary map, quality metrics and round-trip comparison. Mesh Generation contains method-level entries such as planar STL-to-Gmsh and closed unit-sphere STL-to-Gmsh volume meshing. |
Geometry |
Geometric entities, CAD topology, construction history and geometry-to-mesh association. |
Geometry scenarios, entity graph, topology fixtures and geometry checks. |
Algorithm |
Mathematical model, discretization, data dependencies, algorithm stages, complexity, stability/conservation properties and assumptions. |
Pseudocode, dependency graph, convergence/order plots and benchmarks. |
Formula, curve, mesh, workflow graph and case setup are domain visualizers, not mandatory shared tabs. A mesh contract should show topology and boundary semantics rather than a fake equation; a Runtime contract should show a state machine rather than a curve; an Algorithm contract may show both equations and a data-flow diagram where each is relevant.
Evidence semantics
Evidence is a bounded claim, not a decoration. Each evidence record should identify its kind, target, exact command and configuration where applicable, source revision, platform/backend, outcome, artifact location and limitations. Useful evidence kinds include schema/static checks, unit/analytical tests, subsystem integration, production-path integration, representative case regressions, cross-platform/backend checks and independent benchmarks.
Keep declaration and execution separate. A linked test path means the test is declared; it does not mean it ran. A passing unit test does not establish physical accuracy, and a successful mesh parse does not establish semantic boundary preservation. Display not-run, stale, blocked, failed and passed states explicitly, with evidence scope and freshness.
Architecture and ownership
Domain sources / typed payloads
Formula catalog | Boundary contracts | Case contracts | Runtime contracts
Workflow definitions | Mesh scenarios | Algorithm records
|
v
Shared contract envelope
|
v
Qt-independent catalog / validation
|
+-----------+-----------+
| |
Evidence resolver Typed domain adapters
| (case, runtime, mesh, ...)
+-----------+-----------+
|
v
Shared Workbench navigation
|
v
Domain-specific views and evidence
Catalog validation, evidence resolution and domain logic must remain Qt independent. GUI code presents data and invokes explicit adapters; it must not duplicate solver algorithms or infer verification outcomes. Execution continues to use the authoritative CTest, Python unittest, CFD/grid, Case and Workflow services.
Current implementation status
The GUI Contract Workbench currently exposes the common Overview, Principle, Reference, Architecture, Implementation, Code, Documentation and Verification / Evidence navigation for the typed contract domains. Formula and Parameter retain formula and parameter-specific views; Case and Workflow retain their setup/graph views; Geometry continues to use its fixture-backed topology explorer. The common tab layout is a navigation milestone, not a claim that every domain’s content has been fully populated.
Mesh Knowledge groups interchange formats separately from mesh-generation methods. The Mesh Generation group includes planar STL-to-Gmsh, the closed unit-sphere pipeline, and a geometry-asset preparation contract covering the unit sphere, 6:1 prolate spheroid and internal-flow cylinder. The geometry preparation entry links the deterministic STL generator, geometry manifests, STL readers and topology validators; the pipeline documentation distinguishes the generic ClassifySurfaces/CreateGeometry closed-shell route from the manifest-driven OpenCASCADE cylinder route. The cylinder native C++ and Python reference Cases are registered separately. Remaining work includes broader production-backed mesh evidence, cube progression entries, and explicit execution records for each adapter and geometry family. A source or test link remains a declaration, not a claim that the linked operation ran.