← Blog
Classic Verse, Verified · #3

Why Do Two Apps Chart the Same Day into Different Bureaus? Seven Characters Decide

Classic Verse, Verified · Oct 4, 2026 · Qimen Academy

This is the most technical post in the series — and the most consequential. A wrong bureau number (ju) invalidates the entire chart: every star, gate, and spirit downstream shifts, and the user can't see it happening. The dividing line hides in seven characters of the Yanbo Diaosou Song.

Layer 1 · The Verse (public-domain classical text)

Yīn yáng èr dùn fēn shùn nì, yī qì sān yuán rén mò cè.
Wǔ rì dōu lái jiē yī yuán, jiē qì chāo shén wéi zhǔn zé. — Yanbo Diaosou Song (Northern Song, rev. Ming dynasty)

Layer 2 · What It Means

Want to test this timing?

Cast a free chart with 3 readings — no signup needed.
Try Qimen Now →

Qimen divides the year's 24 solar terms into 72 "yuan" (each term holds three: upper, middle, lower — each mapped to a bureau number). Which day uses which bureau? The verse sets the standard:

Layer 3 · The Verification (featuring our own bug)

This episode is not about other people's errors — it is about ours, which makes the better lesson.

Case: May 9, 2022

While benchmarking against the open-source "Zhangshang Qiankun" implementation, we found our engine charted this day as Lixia, Yang 7, while the reference gave Guyu, lower yuan, Yang 8. One bureau apart — a completely different chart.

Our rule: when a cross-check disagrees, adjudicate against the classical text before anything else. The adjudication:

MethodLogicResult
Flawed approach (our earlier build)Take the bureau from the day's actual term (Lixia)Yang 7 ❌
Zhi Run classical method (the verse's rule)Fu Tou (Jiyou = upper yuan) assigns the block to Guyu, take lower yuanYang 8 ✅
Qimen Tongzong, four Fu TouJiyou listed as upper-yuan banner headCorroborated ✅

Fix and regression

We rewrote the engine's Zhi Run function: recognize only the four upper-yuan Fu Tou, count five days per yuan from the Fu Tou, assign terms by Fu Tou day. The fix passed this case and entered our 61-case historical regression — 61/61 match. This very column exists because of that fix: without a cross-checking mechanism, the error would still be hiding in our own software.

Layer 4 · What This Means for You

When a chart backs a decision, the chart is the foundation of every inference. If the foundation is off by one number, the building is wrong no matter how pretty. So when choosing a charting tool, don't stop at the interface — ask: how does it handle Zhi Run? If it can't answer, be careful. Our 61-case record is public on the Track Record page; you are welcome to cross-check your own app against it.


The series continues (star strength cycles, the malefic formation family, host-vs-guest are all queued). For a fully replayed real case first, read Case Review #1: Should We Sell?

Frequently Asked Questions

Why do two Qimen Dunjia apps chart the same day into different bureau numbers?

Because schools handle the drift between the Fu Tou and the solar term's transition day differently. When the Fu Tou runs ahead of the term that's exceeding the spirit; when it trails, that's receiving the qi. How a tool resolves that drift — mechanical re-alignment or an accumulated intercalary correction — is where the bureau numbers split.

What is the Zhi Run method in Qimen Dunjia?

Zhi Run is the classical rule the article follows: only four days may serve as upper-yuan Fu Tou — Jiazi, Jimao, Jiawu and Jiyou, as listed in Qimen Tongzong. Under it, term membership follows the Fu Tou day, not the actual solar term transition day, so the bureau comes from the block's assigned term.

What is a Fu Tou (banner head) and why does it matter?

The sexagenary day-count groups into five-day blocks, and the first day of each block is the Fu Tou, a Jia or Ji day. That banner head determines which yuan the whole five-day block belongs to. Because term membership follows the Fu Tou, the Fu Tou day — not the term's transition day — decides the bureau.

What is the difference between Chao Shen and Jie Qi?

The Fu Tou and the solar term's exact transition day rarely coincide. When the Fu Tou runs ahead of the term, that's Chao Shen, exceeding the spirit. When the Fu Tou trails behind the term, that's Jie Qi, receiving the qi. The verse uses Chao Shen and Jie Qi as the standard for handling that drift.

How many yuan are there in a year, and how do they map to bureaus?

Qimen divides the year's 24 solar terms into 72 yuan. Each solar term holds three — upper, middle and lower — and each yuan maps to a bureau number. The verse sets the pacing: five days per yuan, so the sexagenary day-count breaks into five-day blocks.

Why does getting the bureau number wrong matter so much?

A wrong bureau number invalidates the entire chart. Every star, gate and spirit downstream shifts with it, and the user can't see it happening. If the foundation is off by one number, the building is wrong no matter how pretty it looks, so the chart can't reliably back a decision.

What was the May 9, 2022 charting bug you found?

While benchmarking against the open-source Zhangshang Qiankun implementation, our engine charted the day as Lixia, Yang 7, while the reference gave Guyu, lower yuan, Yang 8. May 9, 2022 was a Jiyou day, and Jiyou is one of the four upper-yuan Fu Tou, so the block belongs to Guyu. The reference was right; our engine was wrong.

How did you decide who was right when the two charts disagreed?

The rule is: when a cross-check disagrees, adjudicate against the classical text before anything else. Against Qimen Tongzong's four upper-yuan Fu Tou — Jiazi, Jimao, Jiawu, Jiyou — Jiyou is an upper-yuan banner head, so the five-day block belongs to Guyu, not Lixia, even though Lixia had already begun.

How was the Zhi Run engine fixed after that error?

The Zhi Run function was rewritten to recognize only the four upper-yuan Fu Tou, count five days per yuan from the Fu Tou, and assign terms by the Fu Tou day. The fix passed that case and entered a 61-case historical regression, matching 61 out of 61 cases.

What is the 61-case record and where can I see it?

It's a public historical regression of 61 cases used to verify the Zhi Run engine. The fix for the May 9, 2022 case entered that record, and the result was 61/61 match. The article says the record is public on the Track Record page, so you can cross-check your own app against it.

How do I tell whether a charting app handles Zhi Run correctly?

Don't stop at the interface. Ask the tool how it handles Zhi Run. If it can't answer that question, be careful. You can also cross-check its output against the public 61-case record on the Track Record page to see whether its bureaus line up with the classical rule.

Where can I chart online with the Zhi Run engine?

The article says you can chart online at qimenai.aicreditsapi.com, and the 61-case public record is available on the Track Record page. It also notes the series continues with star strength cycles, the malefic formation family, and host-versus-guest, with a fully replayed real case in Case Review #1.

Chart With the Zhi Run Engine

Chart online: qimenai.aicreditsapi.com
61-case public record: Track Record

Free Chart