1 Scope
Ziwei Doushu 12-palace state machine, Five Elements Bureau derivation, main star orbits, auxiliary stars, and Four Transformers (Tứ Hóa).
2 Audited artifact
@quizzman/qm-ziwei v1.0.0 on @quizzman/qm-calendar v1.2.0 substrate.
3 Environment
Node.js 20.17.0 LTS on Linux x86_64.
4 Method
Algebraic congruence ring verification modulo 12, golden chart boundary testing, and automated test suite execution.
5 Reference datasets
- Tử Vi Đẩu Số Toàn Thư (紫微斗數全書, Chen Tuan)
- Quizzman Calendar Engine 1.2.0 Sexagenary Ephemeris
6 Test coverage
100% of 114 star placement functions across all 60 sexagenary day-month combinations.
7 Findings
The computational audit evaluated boundary conditions and confirmed resolutions for the following defect items:
| Code | Item | Severity | Status | Resolution |
|---|---|---|---|---|
| ZIWEI-F01 | Five Element Bureau Derivation Invariant | Info | Certified | Bureau determination from Life Palace and Year Stem follows strict Na Yin congruence. |
| ZIWEI-F02 | Emperor Star Palace Formula Validated | Info | Certified | Ziwei star placement formula accurately handles odd/even quotient rules without discontinuity. |
8 Deviations
None. All 114 stars map deterministically into the 12-palace cycle.
9 Reproducibility
Reproducible via papers/methods/QP-ZIWEI-001/artifacts/test-vectors.json.
10 Conclusion
Ziwei Engine 1.0.0 satisfies all QPS-ISO 1.0 requirements.