Documentation · Verification and validation
Digital twin verification and validation: CubeTwin's evidence
Verification asks whether the code solves the stated equations correctly. Validation asks whether the equations represent the real spacecraft for a stated purpose. CubeTwin's models are numerically verified; none is validated, because no measured data from an identified spacecraft exists yet. This page lists the evidence and what validation would still need.
Implemented
- Independent fixtures generated from the specifications (imports neither implementation)
- Convergence and order-of-accuracy tests
- Property-based tests over random valid missions
- TypeScript–Python cross-runtime agreement
- Browser values re-computed in Node and compared bit for bit
Experimental
- Validation workflow on synthetic observations (Keynote slide 9), labelled SYNTHETIC
Planned
- Telemetry from an identified physical laboratory demonstrator (M3, R4)
- Calibration and validation for a stated purpose (M4)
- Independent reproduction by someone outside the team (G5) and specialist review (G6)
- Internal maturity
- M2, integrated simulation (internal levels, not NASA TRLs)
- Model verification
- 9 of 9 models verified (G2); 0 validated (G4)
- Recorded test evidence (4 Dec 2026)
- TypeScript 157 passed, 1 opt-in skip; Python 89 passed
- Energy closure, nominal 24 h
- −9.5 × 10⁻¹² Wh (engine)

Definition
NASA-STD-7009B defines verification as the process of determining that a model is compliant with its requirements and specifications, and validation as determining that it is an accurate representation of the real world from the perspective of its intended uses. CubeTwin uses these definitions; it does not claim compliance with the standard.
The National Academies (2024) describe a digital twin as a set of virtual information constructs that mimics a physical system, is dynamically updated with data from its physical twin, has a predictive capability and informs decisions, with two-way interaction between the virtual and the physical at its centre; verification, validation and uncertainty quantification (VVUQ) run through every part of it. Kritzinger et al. (2018) separate a digital model (no automatic data flow), a digital shadow (data flows from the asset) and a digital twin (data flows both ways).
Engineering purpose
A simulation earns trust in steps. CubeTwin states where it stands at each step, so its results are used only for what they can support: teaching, preliminary energy studies and research on methods, not flight decisions.
Maturity ladder
| Level | Meaning | CubeTwin |
|---|---|---|
| M0 Digital geometry | Interactive spacecraft geometry | Done (3U model) |
| M1 Physics-based model | Independent subsystem models | Done |
| M2 Integrated simulation | Coupled subsystem models with verification | Current level |
| M3 Data-connected prototype | Telemetry from an identified physical laboratory asset | Needs a physical demonstrator |
| M4 Validated twin | Validated for a stated purpose and range | Needs M3 and independent validation data |
| M5 Predictive twin | Validated forecasting with uncertainty | Research goal |
CubeTwin is a Digital Twin Research Platform at internal maturity M2 (integrated simulation). An operational, asset-specific Digital Twin requires data from an identified physical asset, synchronization and validation for a stated purpose; a physical connection alone does not establish predictive accuracy. Internal maturity levels are not NASA Technology Readiness Levels.
Model gates
Each model passes gates in order: G0 specification reviewed → G1 implemented to the specification → G2 analytical and numerical verification (fixtures pass in TypeScript and Python) → G3 integrated (coupled scenario tests, closure) → G4 experimental validation (needs measured data; none exists) → G5 independent reproduction → G6 specialist review. All 9 L1 models are at G2, and their coupling is exercised by the integrated scenario tests.
Verification methods
- Independent fixtures.
scripts/generate_fixtures.pycomputes expected values from the specifications without importing either implementation: closed forms, quadrature with 2 × 10⁵ points, brute-force eclipse scans. - Order of accuracy. RK4 must show order 4 ± 0.2, measured over one orbit for the orbit propagator and from the exact radiative-cooling solution for the thermal model.
- Conservation and closure. The electrical ledger must close within 10⁻⁹ Wh per 24 h, and the thermal heat identity must hold on every sub-step to relative 10⁻¹².
- Properties. Over 60 random valid missions: SOC stays in its window, flows are non-negative, ledgers close, events converge.
- Cross-runtime agreement. Eight cases compared between TypeScript and Python at relative 10⁻⁹. This is agreement between two implementations of one specification, not independent verification; the fixtures are the independent check.
- Traceability. Values shown in the browser are recorded and re-computed by the engine in Node.
Recorded evidence
From the R1 verification report (Apple M1, Node 22, Python 3.12, 4 December 2026):
| Check | Result |
|---|---|
| TypeScript tests (Vitest) | 158 tests: 157 passed, 0 failed, 1 opt-in timing test skipped |
| Python tests (pytest) | 89 passed; the same 89 pass in a clean environment built from the lab package with Python 3.10 |
| Cross-runtime agreement | 9 of 9 comparisons pass at relative 10⁻⁹ |
| Browser end-to-end checks (Chromium, production build) | 20 of 20 passed |
| Displayed values vs engine re-run in Node | 11 recorded runs, 99 values, all bit-identical |
| Parameter file vs JSON Schema | Valid; 8 structural and 21 out-of-range violations rejected |
The TypeScript suite was re-run for this documentation on 5 December 2026 with the same result (157 passed, 1 skipped).
What validation will need
- Telemetry from an identified physical asset, with time stamps, units and provenance (planned laboratory demonstrator, R4).
- A stated intended use and acceptance criteria for each model, then calibration on one data set and validation on another that calibration never saw.
- Uncertainty characterisation for inputs and outputs.
What was not verified
- Native Safari and real phones (only Playwright WebKit and Chromium emulation).
- The continuous-integration workflow has not run on GitHub; Windows has not been tested.
- Physical validation of any model.
Limitations of the evidence
Passing verification shows the code matches its specification; it says nothing about whether a 3U CubeSat in orbit would behave as the specification predicts. Every result in CubeTwin is labelled as simulated, and synthetic observations are labelled SYNTHETIC.
References
- NASA-STD-7009B NASA Office of the Chief Engineer. Standard for Models and Simulations, NASA-STD-7009B, approved 5 March 2024. standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf (opens in a new tab) Used for: Definitions of verification and validation; the structure of CubeTwin's model credibility cards. No compliance with the standard is claimed. Verified.
- NASA-HDBK-7009 NASA. Handbook for Models and Simulations: An Implementation Guide for NASA-STD-7009B, NASA-HDBK-7009 Rev. B. standards.nasa.gov/standard/nasa/nasa-hdbk-7009 (opens in a new tab) Used for: Implementation guidance; not used for any number. Partly verified.
- NASEM2024 National Academies of Sciences, Engineering, and Medicine (2024). Foundational Research Gaps and Future Directions for Digital Twins. The National Academies Press. doi.org/10.17226/26894 (opens in a new tab) Used for: Definition of a digital twin and the role of verification, validation and uncertainty quantification (VVUQ). Verified.
- Kritzinger2018 Kritzinger, W., Karner, M., Traar, G., Henjes, J., Sihn, W. (2018). Digital Twin in manufacturing: A categorical literature review and classification. IFAC-PapersOnLine 51(11), 1016–1022. doi.org/10.1016/j.ifacol.2018.08.474 (opens in a new tab) Used for: Digital model, digital shadow and digital twin distinguished by the level of data integration. Verified.