# Ten-Layer Expert System Architecture, Deterministic Star Placement, and Multi-School Comparative Model for Ziwei Doushu

## Abstract

Ziwei Doushu (Purple Star Astrology) is one of the most sophisticated symbolic metaphysical frameworks in classical East Asian culture, mapping birth spatiotemporal coordinates across twelve worldly palaces populated by 14 major stars and over 86 minor and auxiliary stars. For decades, computerized chart applications have relied heavily on static lookup tables riddled with mathematical discontinuities, failed to reduce authentic astronomical time deviations, and imposed single-school dogmatism while disregarding academic divergences across classical lineages.

This paper presents the formal architecture of the Quizzman Ziwei Engine (`@quizzman/qm-ziwei`), a rule-based metaphysical expert system tightly integrated with the Quizzman Calendar Engine astronomical infrastructure [REF-QP-CAL-001] via an HTTPS Server-to-Server (S2S) HMAC-authenticated protocol. The contribution establishes six architectural foundations: (1) An S2S integration model that eliminates birth double-hour misidentifications through Equation of Time integration [REF-MEEUS-1998] and an authoritative dataset of 8 historical Vietnamese timezone transitions (1906–1975); (2) A deterministic quotient-complement modulo formulation that replaces empirical zig-zag tables for the placement of Ziwei and the Tianfu star cluster; (3) A two-dimensional topological geometry algorithm that eliminates false-positive detections in Flanked Life Palace configurations; (4) A standardized monthly transit progression model derived from classical Dau Quan theory; (5) A school-isolated execution pipeline supporting four major scholarly lineages (Northern, Southern, Tian Liang, and Taiwan) without cross-school data pollution or bloated payloads; and (6) A continuous multi-channel Palace Quality Score (PQS) quantification model coupled with an Active Tension metric. All algorithms are verified across a regression suite of 156 unit tests in the Ziwei Engine alongside 108 calendrical baseline tests.

## 1 Scope

This document specifies the technical architecture, algorithms, and data structures for the Quizzman Ziwei Doushu calculation engine (`@quizzman/qm-ziwei`), encompassing:
1. Ingestion and astronomical reduction of birth temporal parameters via True Solar Time through HTTPS Server-to-Server (S2S) communication with Quizzman Calendar Engine [REF-QP-CAL-001].
2. Coordinate resolution algorithms for Life Palace, Body Palace, and Five Elements Bureau via the Sixty Jiazi Melodious Sound (Na Yin).
3. Quotient-complement modulo algorithms for deterministic placement of 14 major stars and 86+ auxiliary stars without empirical lookup tables.
4. Two-dimensional topological isolation filter for Flanked Life Palace configurations to eliminate false-positive anomalies.
5. Temporal transit projection models (Decennial Luck, Annual Transit, and Dau Quan Monthly Progression).
6. Ten-layer expert interpretation engine independently executing four major scholarly lineages: Northern Lineage (Zheng Tong / Chen Tuan), Southern Lineage (San He / Ha Lac), Tian Liang (Tai Sui Quad-Trine & Na Yin), and Taiwan (Flying Si Hua / Opposite Clash).
7. Taiwan opposite-palace Hua Ji clash vector algorithms and Palace Quality Score (PQS) multi-channel quantification.

## 2 Normative references

The following documents are indispensable for the application of this document:
- [REF-ISO-8601] ISO 8601-1:2019 Date and time — Representations for information interchange.
- [REF-ISO-2145] ISO 2145:1978 Documentation — Numbering of divisions and subdivisions in written documents.
- [REF-ISO-690] ISO 690:2021 Information and documentation — Guidelines for bibliographic references and citations to information resources.
- [REF-QP-CAL-001] Quizzman Research & Engineering Team. Kiến trúc hệ thống tính toán lịch pháp âm dương và mô hình quy chiếu thiên văn Quizzman.
- [REF-QP-BAZI-001] Quizzman Engineering Group. Kiến trúc Hệ thống Tính toán Mệnh lý Bát Tự (Tứ Trụ) và Mô hình Khử Sai số Thiên văn trên Nền tảng Lịch pháp Quizzman.
- [REF-TOANTHU-1550] Chen Tuan, Luo Hongxian. Complete Compendium of Ziwei Doushu (紫微斗數全書). Ming Dynasty, c. 1550.
- [REF-TANBIEN-1956] Thai Thu Lang, Van Dang. Ziwei Doushu Tan Bien. Saigon, 1956.
- [REF-HAMSOTUVI-1974] Nguyen, Phat Loc. Ziwei Mathematical Functions. Saigon, 1974.
- [REF-TRUNGCHAU-1980] Wang, Tingzhi. Lectures on Ziwei Doushu (Zhongzhou School). Hong Kong, 1980.
- [REF-KHAMTHIEN-1990] Cai Gangting, Lu Zi. Secret Treatises of the Imperial Flying Si Hua Ziwei School (欽天門四化紫微斗數秘儀). Taipei, 1990.
- [REF-THIENLUONG-1985] Cu Thien Luong, Le Duc. Ziwei Twelve Palaces and the Tai Sui Circle. Saigon, 1985.
- [REF-MEEUS-1998] Jean Meeus. Astronomical Algorithms. 2nd edition. Richmond: Willmann-Bell, 1998.
- [REF-AUDIT-TUVI-2026] Quizzman Engineering Group. Báo cáo Audit & Vá Lỗi Hệ Thống Tử Vi Đẩu Số — Dossier AUD-2026-TUVI-01.

## 3 Terms and definitions

### 3.1 Worldly palace
One of twelve fixed spatiotemporal domains indexed by the Earthly Branches from Zi to Hai, governing specific human life dimensions and modularly indexed from 0 to 11.

### 3.2 Five Elements Bureau
A numerical coefficient ($C \in \{2, 3, 4, 5, 6\}$) determined from the sexagenary pair of the Life Palace via the Sixty Jiazi Melodious Sound (Na Yin).

### 3.3 Dau Quan doctrine
The classical rule defining the first lunar month palace of an annual transit from the Annual Tai Sui palace, counting backward by birth month and forward by birth hour.

### 3.4 Four Transformations (Si Hua)
The four energetic transformation vectors of Heavenly Stems: Hua Lu, Hua Quan, Hua Ke, and Hua Ji.

### 3.5 True Solar Time
Local apparent solar time at the subject's birth longitude, corrected for the Equation of Time and longitudinal deviation from standard meridian.

### 3.6 Server-to-Server (S2S) architecture
Direct server-to-server inter-process communication protocol over HTTPS, authenticated via HMAC-SHA256 signatures, eliminating client-side astronomical evaluations.

## 4 Server-to-Server Calendar Architecture and True Solar Time Normalization (ZIWEI-R005)

### 4.1 Eliminating Double-Hour Misidentification via Equation of Time (EOT)

A prevalent source of calculation error in computerized Ziwei systems is the naive conflation of civil standard time with apparent astronomical time. Due to orbital eccentricity and axial obliquity ($23^\circ 26'$), the actual solar day fluctuates continuously. This variance is formalized as the Equation of Time ($\text{EOT}$), ranging between $-14.3$ minutes in February and $+16.4$ minutes in November [REF-MEEUS-1998].

Coupled with the birth location's longitudinal deviation ($\lambda_{\text{local}}$) from the standard time zone meridian ($\lambda_{\text{standard}}$), True Solar Time ($\text{TST}$) is governed by ZIWEI-R005:

$$
\text{TST} = \text{LST} + \text{EOT}(\text{JD}) + 4 \times (\lambda_{\text{local}} - \lambda_{\text{standard}})
$$

Where:
- $\text{LST}$ represents legal local standard time.
- $\text{EOT}(\text{JD})$ represents the Equation of Time in minutes as a function of Julian Day ($\text{JD}$) computed via Meeus algorithms [REF-MEEUS-1998].
- $\lambda_{\text{local}}$ denotes the decimal geographic longitude of the birth place.
- $\lambda_{\text{standard}}$ denotes the standard time zone meridian ($105^\circ$ for UTC+7).
- The coefficient $4$ represents the diurnal rotation rate of Earth (4 minutes per degree of longitude).

When birth occurs near the boundary of a traditional double-hour (e.g. 06:55 AM, bordering the Chen hour), this net offset can shift the temporal assignment across the boundary, completely altering the Life Palace, Body Palace, and stellar layout.

### 4.2 HTTPS Server-to-Server (S2S) HMAC Handshake with Calendar API

To eradicate legacy local calendar calculations, the Ziwei Engine connects directly to the Quizzman Calendar API via the private HTTPS endpoint:

$$
\text{POST } \texttt{https://calendar.quizzman.com/api/internal/calendar}
$$

Authentication is established via HMAC-SHA256 tokens:
1. The Ziwei server generates the current UNIX timestamp $T$.
2. The cryptographic digest is computed: $\text{Signature} = \text{HMAC-SHA256}(K_{\text{shared}}, T)$, using an internal secret key $K_{\text{shared}}$.
3. The request transmits the header `X-QM-Internal-Token: ${T}:${Signature}`. The Calendar engine validates timestamp freshness within a $\pm 300\text{ s}$ window and verifies signature authenticity before servicing the request.

The upstream service returns exact lunar coordinates, astronomical solar terms, and historical timezone epoch normalization across 8 key Vietnamese administrative periods (1906–1975).

## 5 Deterministic Star Placement Algorithms and Axial Symmetry (ZIWEI-R001, ZIWEI-R002)

### 5.1 Resolving Life Palace, Body Palace, and Five Elements Bureau

Let $m \in [1, 12]$ be the lunar month of birth, and $h \in [0, 11]$ be the Earthly Branch index of True Solar Time ($\text{Zi} = 0, \text{Chou} = 1, \dots, \text{Hai} = 11$). The Yin palace corresponds to index $2$.

The modular coordinates for the Life Palace ($P_{\text{menh}}$) and Body Palace ($P_{\text{than}}$) are computed by:

$$
P_{\text{menh}} = (2 + (m - 1) - h + 12) \pmod{12}
$$

$$
P_{\text{than}} = (2 + (m - 1) + h) \pmod{12}
$$

Stem distribution across all twelve palaces begins at Yin using the Five Tigers Rule on the year stem ($S_{\text{nam}} \in [0, 9]$). The sexagenary pair of the Life Palace is mapped to the Sixty Jiazi Melodious Sound (Na Yin) to resolve the Five Elements Bureau number $C \in \{2, 3, 4, 5, 6\}$:
- Water 2nd Bureau: $C = 2$
- Wood 3rd Bureau: $C = 3$
- Metal 4th Bureau: $C = 4$
- Earth 5th Bureau: $C = 5$
- Fire 6th Bureau: $C = 6$

### 5.2 Deterministic Quotient-Complement Modulo for Ziwei Placement (ZIWEI-R001)

Rather than maintaining fragile zig-zag lookup arrays, Quizzman Ziwei Engine resolves the coordinates of the Emperor Star (Ziwei) through an exact algebraic formula:

1. Determine the minimal non-negative integer complement $X \in [0, C - 1]$ such that the lunar birth day $D \in [1, 30]$ plus $X$ is exactly divisible by the Bureau number $C$:
   $$
   (D + X) \equiv 0 \pmod{C}
   $$
2. Compute the base quotient $Y$:
   $$
   Y = \frac{D + X}{C}
   $$
3. Establish the base palace $P_{\text{base}}$ by advancing $Y - 1$ steps clockwise from the Yin palace ($2$):
   $$
   P_{\text{base}} = (2 + Y - 1) \pmod{12}
   $$
4. Determine the final Ziwei palace coordinate ($P_{\text{tuvi}}$) conditioned upon the parity of complement $X$:
   - If $X$ is odd, retreat counter-clockwise $X$ steps:
     $$
     P_{\text{tuvi}} = (P_{\text{base}} - X + 12) \pmod{12}
     $$
   - If $X$ is even, advance clockwise $X$ steps:
     $$
     P_{\text{tuvi}} = (P_{\text{base}} + X) \pmod{12}
     $$

### 5.3 Ziwei Cluster and Tianfu Yin-Shen Reflection Symmetry (ZIWEI-R002)

From the Ziwei coordinate $P_{\text{tuvi}}$, the five remaining stars of the Ziwei cluster are distributed counter-clockwise:
- Tian Ji: $(P_{\text{tuvi}} - 1 + 12) \pmod{12}$
- Tai Yang (Sun): $(P_{\text{tuvi}} - 3 + 12) \pmod{12}$
- Wu Qu: $(P_{\text{tuvi}} - 4 + 12) \pmod{12}$
- Tian Tong: $(P_{\text{tuvi}} - 5 + 12) \pmod{12}$
- Lian Zhen: $(P_{\text{tuvi}} - 8 + 12) \pmod{12}$

Tianfu lies in exact axial reflection with Ziwei across the Yin (2) – Shen (8) spatial axis. The symmetry midpoint is $\frac{2 + 8}{2} = 5$. Thus, the Tianfu coordinate $P_{\text{thienphu}}$ is given by:

$$
P_{\text{thienphu}} = (16 - P_{\text{tuvi}}) \pmod{12}
$$

The subsequent seven stars of the Tianfu cluster advance clockwise:
Tai Yin (+1), Tan Lang (+2), Ju Men (+3), Tian Xiang (+4), Tian Liang (+5), Qi Sha (+6), and Po Jun (+10).

### 5.4 Auxiliary Stars, Six Sha, Six Auspicious Stars, and Sequential Placement Pipeline

The engine executes an 8-phase deterministic placement pipeline through `TuviAnimator`:
1. **Phase 1 (Earthly Palaces):** Initialize 12 branches from Zi to Hai.
2. **Phase 2 (Life & Bureau):** Resolve Life, Body, Bureau number, and Na Yin element.
3. **Phase 3 (Ziwei Cluster):** Place Ziwei and 5 retrograde stars.
4. **Phase 4 (Tianfu Cluster):** Reflect Tianfu and distribute 7 prograde stars.
5. **Phase 5 (Sha & Auspicious):** Distribute Qing Yang, Tuo Luo (by stem), Huo Xing, Ling Xing (by branch and hour), Di Kong, Di Jie (by hour); Wen Chang, Wen Qu, Zuo Fu, You Bi, Tian Kui, Tian Yue.
6. **Phase 6 (Tai Sui & Loc Ton Circles):** Initialize the Tai Sui circle from the year branch and the Bo Shi circle from Loc Ton.
7. **Phase 7 (Si Hua Transformations):** Attach Lu, Quan, Ke, and Ji to specific stars based on the birth stem and selected school.
8. **Phase 8 (Temporal Transits):** Calculate Decennial Luck initiation ages and monthly Dau Quan transits.

## 6 Two-Dimensional Flanked Topology and Dau Quan Monthly Transits (ZIWEI-R003)

### 6.1 Resolving Flanked Life Palace False-Positive Anomalies (AUD-2026-TUVI-01)

In classical pattern doctrine, auspicious flanking formations strictly require that the two auxiliary stars occupy separate adjacent palaces on opposite sides of the target palace: one in Parents ($P_{\text{target}} + 1$) and one in Siblings ($P_{\text{target}} - 1$).

During codebase audit (Dossier AUD-2026-TUVI-01 [REF-AUDIT-TUVI-2026]), inspection revealed that legacy logic merged stars from both neighboring palaces into a single array before executing `array.includes()`. Consequently, when both auxiliary stars resided together in a single palace on one side of the Life Palace, the system produced a false-positive validation.

The engine resolved this anomaly by enforcing strict geometric partition predicates:

$$
\text{IsFlanked}(S_1, S_2, P_{\text{target}}) \iff (S_1 \in P_{\text{prev}} \land S_2 \in P_{\text{next}}) \lor (S_2 \in P_{\text{prev}} \land S_1 \in P_{\text{next}})
$$

where $P_{\text{prev}} = (P_{\text{target}} - 1 + 12) \pmod{12}$ and $P_{\text{next}} = (P_{\text{target}} + 1) \pmod{12}$.

### 6.2 Standardized Monthly Transits via Dau Quan Doctrine (ZIWEI-R003)

Quizzman Ziwei Engine implements the classical algorithm [REF-TOANTHU-1550, REF-TANBIEN-1956]:
1. Locate the Annual Tai Sui palace coordinate ($P_{\text{thaitue}}$) for the queried transit year.
2. From $P_{\text{thaitue}}$, count counter-clockwise to the birth lunar month $m$:
   $$
   P_{\text{step1}} = (P_{\text{thaitue}} - (m - 1) + 12) \pmod{12}
   $$
3. From $P_{\text{step1}}$, advance clockwise to the birth hour branch $h$:
   $$
   P_{\text{dauquan}} = (P_{\text{step1}} + h) \pmod{12}
   $$
4. The resolved coordinate $P_{\text{dauquan}}$ establishes the First Lunar Month of the transit year. Subsequent months advance clockwise:
   $$
   P_{\text{month}}(k) = (P_{\text{dauquan}} + (k - 1)) \pmod{12}
   $$

## 7 The 10-Layer Expert Interpreter and Multi-School Si Hua Matrix (ZIWEI-R004, ZIWEI-R006)

### 7.1 Architecture of the 10-Layer Ziwei Engine Pipeline

The engine structures its interpretation pipeline into ten distinct processing layers:
- Layer 1: Data Normalization (Astronomical reductions via S2S Calendar API)
- Layer 2: Chart Topology Setup (Palaces, Life/Body coordinates, Bureau)
- Layer 3: Star Allocation (14 major stars and 86+ auxiliary stars)
- Layer 4: Star Radiance Matrix (Exaltation, Brightness, Neutral, Darkness)
- Layer 5: Structural Interactions (Trines, Quadrants, Opposite, Polarities)
- Layer 6: Pattern Detection (Auspicious and Inauspicious Formations)
- Layer 7: Si Hua Transformation Matrix (Natal and Flying Transformations)
- Layer 8: Multi-School Parallel Pipeline (Northern, Southern, Tian Liang, Taiwan)
- Layer 9: Temporal Transit Projection (Decennial, Annual, and Monthly cycles)
- Layer 10: Evidence-Based Natural Output (Deterministic multilingual prose)

### 7.2 Four Classical and Modern Academic Traditions

The system delineates the methodological boundaries of four major lineages:
1. **Northern Lineage (Zheng Tong / Chen Tuan):** Emphasizes star radiance (bright vs dim) and the four core Sha stars (Qing Yang, Tuo Luo, Di Kong, Di Jie). Hua Ji is interpreted as a karmic knot whose severity depends on primary star exaltation.
2. **Southern Lineage (San He / Ha Lac / Thai Thu Lang):** Centers upon the Tri-Harmony palaces (Life - Wealth - Career). Hua Ji is an obstacle star that, when co-locating with Loc Ton, triggers the "Broken Wealth" or "Locked Wealth" formation.
3. **Tian Liang Lineage (Cu Thien Luong / Nguyen Phat Loc):** Analyzes charts through the Tai Sui axis and its four trine clusters:
   - Tue Ho Phu (Tai Sui - Quan Phu - Bai Hu): Righteousness, leadership.
   - Tang Tue Khach (Tang Men - Sui Po - Diao Ke): Adversity, uphill striving.
   - Duong Tu Phuc (Shao Yang - Zi Fu - Fu De): Intellectual agility, vulnerability to exploitation.
   - Am Long Truc (Shao Yin - Long De - Zhi Fu): Humility, endurance, late-life fruition.
   Na Yin elemental interactions between palace and natal element are systematically cross-examined.
4. **Taiwan Modern (Flying Si Hua / Kham Thien Mon):** Regards Si Hua as the energetic core of astrology (Lu as cause, Ji as effect). Replaces static 12-year annual luck with dynamic Flying Stars entering palaces.

### 7.3 Ten Heavenly Stems Si Hua Matrix and Lineage Divergences (ZIWEI-R004)

The ten Heavenly Stem transformation tables are formalized with explicit school attribution:

| Stem | Hua Lu | Hua Quan | Hua Ke (North / Taiwan) | Hua Ke (South) | Hua Ke (Tian Liang) | Hua Ji |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Jia | Lian Zhen | Po Jun | Wu Qu | Wu Qu | Wu Qu | Tai Yang |
| Yi | Tian Ji | Tian Liang | Ziwei | Ziwei | Ziwei | Tai Yin |
| Bing | Tian Tong | Tian Ji | Wen Chang | Wen Chang | Wen Chang | Lian Zhen |
| Ding | Tai Yin | Tian Tong | Tian Ji | Tian Ji | Tian Ji | Ju Men |
| Wu | Tan Lang | Tai Yin | You Bi | You Bi | You Bi | Tian Ji |
| Ji | Wu Qu | Tan Lang | Tian Liang | Tian Liang | Tian Liang | Wen Qu |
| Geng | Tai Yang | Wu Qu | Tai Yin | Tai Yin | Tian Fu | Tian Tong |
| Xin | Ju Men | Tai Yang | Wen Qu | Wen Qu | Wen Qu | Wen Chang |
| Ren | Tian Liang | Ziwei | Tian Fu | Zuo Fu | Zuo Fu | Wu Qu |
| Gui | Po Jun | Ju Men | Tai Yin | Tai Yin | Tai Yin | Tan Lang |

The prominent divergences occur at Stem Geng (Tian Liang adopts Tian Fu for Hua Ke, while others adopt Tai Yin) and Stem Ren (Northern and Taiwan adopt Tian Fu for Hua Ke, while Southern and Tian Liang assign Zuo Fu).

### 7.4 Taiwan Flying Si Hua Opposite Palace Clash Algorithm (ZIWEI-R006)

According to the Imperial Flying Si Hua doctrine (Kham Thien Mon [REF-KHAMTHIEN-1990]), Hua Ji residing in any palace projects an aggressive clash vector directly into the diametrically opposite palace across a $180^\circ$ radial axis:

$$
P_{\text{clash}} = (P_{\text{ky}} + 6) \pmod{12}
$$

The consequences of this clash vector are mapped across worldly sectors:
- Ji in Travel $\rightarrow$ Clashes into Life (Direct physical vulnerability, relocation hazards).
- Ji in Spouse $\rightarrow$ Clashes into Career (Marital upheaval impairing professional standing).
- Ji in Children $\rightarrow$ Clashes into Property (Asset depletion, real-estate volatility).
- Ji in Friends $\rightarrow$ Clashes into Siblings (Partner betrayal, sibling conflict).
- Ji in Health $\rightarrow$ Clashes into Parents (Vitality depletion, parental discord).
- Ji in Wealth $\rightarrow$ Clashes into Fortune (Financial litigation, mental anguish).

### 7.5 The School-Isolated Execution Pipeline

To maintain rigorous computation and eliminate payload bloat, the engine operates an **Isolated School Pipeline**:
1. When a user requests a chart with a specific school (e.g. `DAI_LOAN`), the backend evaluates natal transformations, decennial luck, annual luck, and monthly transits tailored exclusively to that school.
2. The legacy `allSchoolInterpretations` payload is purged from the response.
3. The client application renders exclusively the selected school's doctrine, avoiding cross-contamination of Flying Star terminology into San He views or vice versa.

## 8 Palace Quality Score (PQS) Continuous Quantification Model

### 8.1 Baseline Anchor and Four Analytical Channels

The Palace Quality Score (PQS) maps palace efficacy onto a continuous $[0, 100]$ scale:

$$
\text{PQS}(P) = \text{clamp}\left(50.0 + \Delta_{\text{cung}} + \Delta_{\text{chinh}} + \Delta_{\text{phu}} + \Delta_{\text{tuhoa}}, 0, 100\right)
$$

Four orthogonal channels contribute to this evaluation:
1. $\Delta_{\text{cung}} \in [-10, +10]$: Affinity between the palace branch and the subject's birth stem/branch.
2. $\Delta_{\text{chinh}} = \sum_{s \in \text{Major}} w(s) \cdot R(s)$: Major star weighting multiplied by radiance tiers $R(s) \in \{+15 \text{ (Exalted)}, +10 \text{ (Bright)}, +5 \text{ (Benefic)}, -15 \text{ (Dark)}\}$.
3. $\Delta_{\text{phu}}$: Contribution of Six Auspicious stars ($+6$ to $+10$) offset by Six Sha stars ($-8$ to $-12$).
4. $\Delta_{\text{tuhoa}}$: Transformation boosts ($+18$ for Lu, Quan, Ke; $-15$ for Ji).

### 8.2 Active Tension Conflict Metric

When a palace contains opposing benefic and malefic forces (e.g. Ziwei co-locating with Qing Yang), the engine calculates an Active Tension metric:

$$
\text{Tension}(P) = \sqrt{\left(\sum \text{Score}_{\text{benefic}}\right) \times \left(\sum |\text{Score}_{\text{malefic}}|\right)}
$$

When $\text{Tension} > 25.0$, the palace is classified as High Tension, triggering nuanced guidance regarding internal volatile cross-currents.

## 9 Verification and Regression Testing Suite

Quizzman Ziwei Engine is verified across an automated suite of 156 regression tests alongside 108 Calendar Engine baseline tests:
- **Modulo Boundary Traversals:** All 150 combinations of 30 lunar days $\times$ 5 Bureau numbers achieved 100% accuracy (150/150) against classical reference charts.
- **Tianfu Reflection Verification:** Confirmed geometric symmetry across the Yin-Shen axis across all 12 palaces.
- **Topology Partition Validation:** Flanked Life Palace configurations passed with zero false positives.
- **Dau Quan Progression Validation:** 12-month cyclic continuity confirmed across test vectors.
- **School Isolation Auditing:** Zero data leakage confirmed across the four independent pipelines.
- **S2S Calendar Auditing:** HMAC token handshakes and $\text{EOT}$ offsets validated against JPL planetary tables.

## 10 Limitations

1. **Input Precision Constraints:** Authentic chart casting requires precise birth time and geographic coordinates; in their absence, the system defaults to the standard $105^\circ 00'$ E meridian (UTC+7).
2. **Classical Hour Granularity:** The classical model operates in two-hour double-hours. While early/late Zi hour partitioning is configurable, the choice remains at the discretion of the researcher.
3. **Star Population Boundaries:** The core system incorporates 14 major and 86 auxiliary stars supported by canonical literature; local folk stars lacking academic consensus are excluded.
4. **Epistemic Scope:** The system provides symbolic and cultural modeling tools; it makes no empirical claims regarding deterministic prophecy.

## 11 Conclusion

The Quizzman Ziwei Engine establishes an objective benchmark for Ziwei Doushu by integrating VSOP87 astronomical foundations via HTTPS S2S protocols, deterministic quotient-complement modulo formulations, and a 10-layer expert interpretation architecture. Legacy programming bugs such as zig-zag table discontinuities, Flanked Life false positives, and static lunar month assignments have been eradicated. Independent and isolated execution across four scholarly lineages upholds Quizzman's commitment to transparent, pluralistic scholarship.

## Bibliography

- [REF-ISO-8601] International Organization for Standardization. ISO 8601-1:2019 Date and time — Representations for information interchange. Geneva: ISO, 2019.
- [REF-ISO-2145] International Organization for Standardization. ISO 2145:1978 Documentation — Numbering of divisions and subdivisions in written documents. Geneva: ISO, 1978.
- [REF-ISO-690] International Organization for Standardization. ISO 690:2021 Information and documentation — Guidelines for bibliographic references and citations to information resources. Geneva: ISO, 2021.
- [REF-QP-CAL-001] Quizzman Research & Engineering Team. Kiến trúc hệ thống tính toán lịch pháp âm dương và mô hình quy chiếu thiên văn Quizzman. Quizzman Paper, 2026. Available at: https://paper.quizzman.com/papers/QP-CAL-001/
- [REF-QP-BAZI-001] Quizzman Engineering & Metaphysics Research Group. Kiến trúc Hệ thống Tính toán Mệnh lý Bát Tự (Tứ Trụ) và Mô hình Khử Sai số Thiên văn trên Nền tảng Lịch pháp Quizzman. Quizzman Paper, 2026. Available at: https://paper.quizzman.com/papers/QP-BAZI-001/
- [REF-TOANTHU-1550] Chen Tuan, Luo Hongxian. Complete Compendium of Ziwei Doushu (紫微斗數全書). Ming Dynasty, c. 1550.
- [REF-TANBIEN-1956] Thai Thu Lang, Van Dang. Ziwei Doushu Tan Bien. Saigon: Tinh Hoa Hai Ngoai, 1956.
- [REF-HAMSOTUVI-1974] Nguyen, Phat Loc. Ziwei Mathematical Functions. Saigon: Dai Nam, 1974.
- [REF-TRUNGCHAU-1980] Wang, Tingzhi. Lectures on Ziwei Doushu (Zhongzhou School). Hong Kong: Zhongzhou Metaphysical Society, 1980.
- [REF-KHAMTHIEN-1990] Cai Gangting, Lu Zi. Secret Treatises of the Imperial Flying Si Hua Ziwei School (欽天門四化紫微斗數秘儀). Taipei: Self-published, 1990.
- [REF-THIENLUONG-1985] Cu Thien Luong, Le Duc. Ziwei Twelve Palaces and the Tai Sui Circle. Saigon: Dai Nam, 1985.
- [REF-MEEUS-1998] Jean Meeus. Astronomical Algorithms. 2nd edition. Richmond: Willmann-Bell, 1998.
- [REF-AUDIT-TUVI-2026] Quizzman Engineering Group. Báo cáo Audit & Vá Lỗi Hệ Thống Tử Vi Đẩu Số — Dossier AUD-2026-TUVI-01. Quizzman Lab Internal Audit Series, 2026. Available at: https://insight.quizzman.com/tool/about-tuvi-audit.md
