Trust & sources
How we verify what we publish
Entry rules into China change several times a year. This page documents exactly how the information on this site is sourced, checked and updated — so you can judge it, and so mistakes can be corrected fast.
What this site is
China Arrival Guide is an independent editorial project. We are not a government agency, not a travel agency, and not a visa service. We compile publicly announced rules into plain English and link each claim back to its primary source. Our only product is accurate, dated, easy-to-quote information.
Source hierarchy
- Primary law and policy: National Immigration Administration (nia.gov.cn), Ministry of Foreign Affairs, State Council / gov.cn.
- Implementing measures: PBOC and payment operators for payments; railway and metro operators for transport; civil aviation for air entry.
- Reputable reporting: used for context figures only (for example, inbound-trip statistics), always attributed.
- Community reports: never published as fact. At most used to generate a question that we then verify against tier 1 or 2.
Verification workflow
- Every policy page carries a visible last verified date.
- Country lists and day limits are stored once, in
assets/data/policy.json, and rendered by the tools from that single file — no hand-copied duplicates in page text. - On every check, each list is compared against the latest official announcement before being republished.
- Changes are recorded below in the change log with the date and the triggering source.
Known limits
- We cover ordinary foreign passports. Rules for Hong Kong SAR, Macao SAR and Taiwan travel documents differ and are out of scope for the current version.
- Border officers retain final discretion; a policy list determines eligibility, not a guarantee of entry.
- Provincial and city-level implementation (for example, which metro gates accept overseas cards) can lag national announcements. City pages will always name the local operator.
- The site is not legal advice.
Change log
| Date | Change | Triggering source |
|---|---|---|
| 2026-11-26 | Initial publication of the visa / entry eligibility dataset: unilateral visa-free list (50 countries, as published 2026-02-17), 240-hour transit list (57 countries, as published 2026-08-20), Hainan 30-day list (61 countries) and the other regional group waivers. | NIA policy pages c1731154 / c1731205 / c1699641 |
| 2026-11-26 | Published five practical guides (payments, connectivity, transport, accommodation registration, departure tax refund) and the Chengdu starter page, each with a visible verification date and primary-source links. Added the standalone policy change log. | Shanghai / Beijing government portals; NIA c1806139 & c1771613; STA 商消费发〔2026〕74号; Shenzhen Daily via PBOC Shenzhen Branch |
| 2026-11-26 | Added city starter pages (Beijing, Shanghai, Xi'an, Hangzhou), entry-rule deep dives (240-hour transit, Hainan 30-day visa-free) rendered from the single policy dataset, a 404 page, and a site-wide FAQPage structured-data layer. All figures on these pages derive from assets/data/policy.json rather than being typed into HTML. | NIA policy pages (c1731154 / c1731205 / c1699641); editorial city content marked as recommendation, not policy |
| 2026-11-26 | Added city starter pages (Guangzhou, Guilin & Yangshuo) and a Great Wall visitor guide covering sections, official ticket channels and transport. Site now 22 pages; all new content carries the FAQPage layer and a visible verification date. | Beijing Municipal Government English portal; section logistics marked as seasonal editorial guidance |
| 2026-11-26 | Added three practical guides: arriving at Chinese airports (landing sequence, documents, customs), language and translation (apps, VPN, map coordinate issues) and tipping and everyday etiquette. These are cultural/process guidance rather than policy claims, and each is labelled as such on the page. | NIA general entry/exit reference; no statutory figures stated in these pages |
| 2026-11-26 | Added city starter pages (Chongqing, Suzhou) and a seasonal planning guide (weather by season, holiday travel surges). City content remains editorial; climate guidance cites the national meteorological service. | China Meteorological Administration; holiday effects described qualitatively, exact dates left to official annual schedules |
| 2026-11-26 | Extended the visa checker with an organised-tour-group option that surfaces the regional group-entry schemes (cruise, ASEAN tour groups, Hong Kong/Macao group entry) from the single policy dataset, with nationality caveats on each result. | NIA regional policy page c1699641 (rendered from assets/data/policy.json) |
| 2026-11-26 | Added maintenance tooling: scripts/check-site.py runs a reproducible offline audit (JSON-LD parsing, FAQPage question count, local-link resolution) and fails loudly on any defect. | Engineering tool; output reported in change log only |
| 2026-11-26 | Rebuilt the site-wide visual system: refined typographic scale and palette, layered hero treatment, button/card/table components, section eyebrows, stat blocks, and dark-mode support via prefers-color-scheme. Reorganised the home page into a hero with primary actions, arrival statistics, start-here checklist, featured guides and a nine-city grid. No policy content changed. | Design system update (assets/css/site.css); verified by rendered screenshots in both colour schemes |
| 2026-11-26 | Added a site icon (assets/favicon.svg) and theme-colour metadata across all 28 pages, plus eyebrow headings on the section hubs (guides, destinations, visa checker, methodology, change log). | Design polish; no policy content changed |
| 2026-11-26 | Made the FAQPage questions visible on all 22 content pages as native <details> accordions generated directly from each page's structured data, so the answers AI engines read are the same answers visitors read. Extended scripts/check-site.py to fail if a page shows a different number of FAQ items than its FAQPage declares. | Google FAQ structured-data guidance; internal consistency audit |
| 2026-11-26 | Added a Destinations entry to the main navigation on every page and to the footer link lists, marked the city hub as the current section there, and added a narrow-screen header treatment (single-row horizontally scrollable menu) so the sticky header stays compact on phones. | Navigation audit across all 28 pages; responsive behaviour checked at 390px with a same-origin measurement probe (no page-level horizontal overflow) |
| 2026-11-26 | Extended the FAQ standard to the five remaining pages (home, guides index, destinations index, methodology, policy log): each now carries a three-question FAQPage block generated with its own page-specific questions plus the matching visible accordion. All 27 structured-data blocks are covered by the consistency check in scripts/check-site.py. | Site standard: every page carries a sourced, dated, reader-visible FAQ layer |
| 2026-11-26 | Added breadcrumb navigation to all 26 inner pages (Home / section / page), showing the current page as plain text and linking every ancestor. scripts/check-site.py now also fails if an inner page has no breadcrumb, or if the breadcrumb does not end on the unlinked current page. | Information-architecture audit; internal consistency check |
| 2026-11-26 | Introduced filled-colour tokens (--brand-solid, --brand-solid-hover, --accent-solid) for buttons, badges and step numbers, because white text on the dark theme's bright red/green failed WCAG AA (3.6:1 and 2.2:1). Added scripts/check-contrast.py, which reads the design tokens and asserts 30 foreground/background pairs against WCAG thresholds; it reported two failures before this change and passes clean after. | WCAG 2.1 AA contrast audit of the token system |
| 2026-11-26 | Re-verified the policy dataset against the live National Immigration Administration pages and recorded the counts here: unilateral visa-free 50 countries / 30 days; 240-hour transit 57 countries, 65 open ports, 24 provinces, 10 days; Hainan 30-day 61 countries; cruise group 15 days across 13 port cities; ASEAN Xishuangbanna and Guilin groups 10 countries / 6 days; Hong Kong–Macao group entry to Guangdong and to Hainan 6 days. Figures matched the dataset exactly. | NIA c1731154 (2026-02-17), c1731205 (2026-08-20), c1699641 (2026-08-20) |
| 2026-11-26 | Added social-sharing metadata to all 28 pages (Open Graph title/description/url/site_name/type, Twitter card and titles) and declared color-scheme: light dark so native controls, scrollbars and form fields follow the visitor's system theme. scripts/check-site.py now fails if a page lacks these meta tags or if og:url disagrees with the canonical link. og:url currently mirrors the root-relative canonical and will be written as an absolute URL once the domain is set. | Share-preview quality and internal consistency check |
| 2026-11-26 | Extended scripts/build-sitemap.py into a one-command deployment finisher: once config/site.json carries the production host it rewrites every page's canonical and og:url from root-relative to absolute https URLs (idempotently), then emits sitemap.xml and robots.txt. Validated on a throwaway copy of the tree with a placeholder host; the live tree keeps its root-relative canonicals until a real domain is configured. | Deployment readiness; offline verification only |
| 2026-11-26 | Added a structured-data layer on top of the visible pages: a BreadcrumbList block on all 26 breadcrumb pages (same items as the on-page trail, last item matching the canonical URL) and Organization + WebSite entities on the home page. scripts/check-site.py now fails if any of these blocks are missing or disagree with the visible breadcrumb / canonical, and the finaliser script also absolutises their url/item values when the domain is set. | Schema.org structured data; internal consistency audit |
| 2026-11-27 | Editorial visual upgrade in three batches: (1) a display serif stack for headings and the wordmark, a larger headline scale, a hero eyebrow line and more generous hero spacing; (2) colour restraint — red is now reserved for primary actions, links and current-state markers while eyebrows, card tags and stat numerals moved to ink, section gaps widened with hairline dividers between sections; (3) a gated scroll-reveal animation (assets/js/reveal.js) that is fully disabled under prefers-reduced-motion and degrades to visible content without JavaScript. check-contrast.py gained --ink-soft pairs; check-site.py now requires the reveal script on every page. | Design system v1.1; accessibility preserved (WCAG AA, reduced motion) |
| 2026-11-27 | Rebuilt the home hero as a two-column layout (copy left, artwork right, stacking on narrow screens) and added an original line-illustration asset assets/img/hero-landscape.svg — layered ridges, sun and river drawn by us, with its own dark-mode palette via an internal media query, so no third-party image licence or external request is involved. The illustration carries descriptive alt text and explicit width/height to avoid layout shift. | Original artwork; performance and offline integrity |
| 2026-11-27 | Replaced the hero line illustration with a photographic cover and added photography to the destination hub and all nine city pages. All ten images were generated for this site (no third-party stock, no licensing dependency), then converted to progressive JPEG, centre-cropped to 4:3 for cards (1000×750) and capped at 1440 px for the hero; total asset weight is roughly 0.9 MB. Every image carries descriptive alt text, explicit width/height (no layout shift) and loading="lazy" except the hero (fetchpriority="high"). | Visual quality; original assets with no external requests |
| 2026-11-27 | Responsive image delivery: every photograph now has a WebP source plus a 500px small variant, wired through <picture>/srcset/sizes so phones fetch roughly 15–30 KB instead of the 1000px file; the hero was resized to its actual display width (960px) and preloaded with fetchpriority=high. Added a print stylesheet that hides navigation, actions, FAQ and footer, strips card chrome and appends outbound URLs, so guides export cleanly to PDF. | Performance and utility; verified by desktop/mobile screenshots and a rendered PDF |
| 2026-11-27 | Added a currency converter tool (/tools/currency-converter/) driven by a dated reference-rate dataset (assets/data/rates.json — European Central Bank rates republished via Frankfurter, dated 2026-11-26) with an embedded fallback so it keeps working if the fetch fails. The page shows the result inline, the unit rate, the dataset date and source, plus a disclaimer linking to the payments guide; it carries the standard FAQPage block and was added to navigation and footer link lists on all other pages. | Utility tool; reference rates only, not live market data |
| 2026-11-27 | Extended structured data to all 12 guides and 9 city pages with an Article block whose headline, description, dateModified and mainEntityOfPage are generated from each page's own title, meta description, verification date and canonical link. Added scripts/inject-article-schema.py (idempotent), taught the deployment finisher to absolutise mainEntityOfPage, and extended scripts/check-site.py to fail if a guide or city page lacks exactly one consistent Article block. | Schema.org structured data; internal consistency audit |
| 2026-11-27 | Added two self-drawn process diagrams as inline SVG, styled with our own design tokens so they follow light/dark themes and print: a payment-route diagram on paying in China (mobile-wallet default vs card/cash fallbacks) and an eligibility-pipeline diagram on 240-hour transit (four conditions plus the overstay warning). Each carries a descriptive <title>; on narrow screens the diagrams scroll horizontally with a hint, so text stays legible instead of shrinking. | Editorial visualisation; no third-party assets, verified by desktop and mobile screenshots |
| 2026-11-27 | Added an interactive packing checklist tool: 18 items across documents & money, connectivity & apps and pre-flight tasks, each linking to the relevant guide, with a progress bar and ticks remembered on the device only (localStorage, nothing transmitted). The page carries the standard FAQPage block, and the tool was added to navigation and footer link lists on all other pages. | Utility tool; planning aid, not legal or entry advice |
| 2026-11-27 | Full dark-theme visual re-verification across the home page, two guides with diagrams, one city page and all three tools, rendered with the dark palette forced on a throwaway copy of the tree (headless Chrome cannot be switched by flag reliably). One real defect found and fixed: input[type="number"] fields (currency converter, tax-refund estimator) were outside the form styling rule and rendered as bright white boxes in dark mode; they now share the same surface, border and focus styles as text inputs and selects. No other contrast, overflow or unreadable-text issues observed. | Dark-mode fidelity; verified by screenshots of 8 representative pages |
| 2026-11-27 | Added three more self-drawn SVG diagrams in the same token-styled, print-safe, horizontally scrollable pattern: a data-choice decision tree on getting connected (mainland-SMS question first, then trip length), a five-step arrival pipeline on arriving at airports, and an intercity-plus-city transport overview on getting around. Each carries a descriptive <title> and a mobile swipe hint, and was checked on desktop and narrow widths plus once in the forced-dark render. | Editorial visualisation; no third-party assets, verified by screenshots |
| 2026-11-27 | Added a nine-city comparison matrix to the destinations hub — realistic day counts, air/rail gateways and "known for" notes per city, with every figure drawn from the city pages themselves. Also published llms.txt at the site root: an AI-crawler reading guide that groups the guides, tools, cities and trust pages, states which claims are sourced versus editorial, surfaces verification dates and warns that entry-rule figures change — aimed at generative engines (ChatGPT, Perplexity and similar) quoting this site. | Practical comparison content; GEO discoverability |
| 2026-11-27 | Two more self-drawn SVG diagrams in the same token-styled pattern: an accommodation-registration responsibility flow on accommodation registration (hotel reports vs 24-hour filing elsewhere, with the official channels), and a Great Wall section spectrum on the Great Wall placing Badaling through Jiankou from restored-and-busy to wild-and-quiet. Both verified on desktop and narrow widths; overlapping labels and a clipped caption found in review were fixed before sign-off. | Editorial visualisation; no third-party assets, verified by screenshots |
| 2026-11-27 | Added a four-season overview diagram to best time to visit — spring, summer, autumn and winter cards with their trade-offs, autumn marked as the widely preferred window and a caption flagging that holiday surges outweigh weather in their weeks. Same token-styled, print-safe, horizontally scrollable SVG pattern; verified on desktop and narrow widths. | Editorial visualisation; no third-party assets, verified by screenshots |
| 2026-11-27 | Hardened scripts/check-site.py with accessibility and structure invariants: exactly one <h1> per page, no heading-level skips inside <main>, every <img> needs a non-empty alt plus explicit width/height, and no link may render empty text. Six pages had real h1→h3 skips (hub card grids, checklist categories); fixed with visually-hidden section headings and by promoting the hidden data-error notice titles to <h2>. The site now reports problems=0 under the extended checks. | Accessibility and long-term maintainability |
| 2026-11-27 | Completed the guide illustration set with four more self-drawn SVG diagrams in the same token-styled, print-safe pattern: a three-layer language plan on language and translation (prepare before landing · camera / speech / written in the moment · domestic-app substitutes), a three-setting tipping overview on tipping and etiquette (everyday not expected · hotels optional · tours customary), the three boundaries of the Hainan visa-free waiver beside its 30-day core, and a four-step process on departure tax refund. Every one of the 12 guides now carries at least one diagram; each was verified on desktop and narrow widths, and one long line inside the refund process boxes was shortened to keep text inside the card borders. | Editorial visualisation; full guide coverage, no third-party assets |
| 2026-11-27 | Expanded the destinations hub comparison matrix from four to six columns: each city now also carries a regional season note (generalised from the best time to visit guide) and a “pairs with” suggestion that follows the gateway and high-speed-rail facts on the city pages, plus a footnote reminding visitors that Hong Kong and Macao are SARs with separate entry documents. The sourcing note above the table was rewritten to say where each column comes from. Verified on desktop and narrow widths. | Practical comparison content; every cell traceable to an existing page |
| 2026-11-27 | Fixed a real print defect on every diagram: @media print inherited the screen rules overflow-x:auto and min-width:760px, so printed pages clipped the right side of each SVG and even printed a scrollbar track. The print block now resets both properties so diagrams scale to the full text width. Verified by rendering two guides with wide diagrams (best time to visit, getting around) to PDF with headless Chrome and inspecting every page image: all cards, arrows and captions now print complete, with no regression to screen layouts. | Print fidelity; verified by rendered PDF page images |
| 2026-11-27 | Hardened the visa checker failure path: if the policy dataset fails to load, submitting the form previously cleared the “data unavailable” warning and then threw on the missing data, leaving a blank result. assets/js/visa-checker.js now guards render() on the loaded dataset and re-shows the warning with an explanatory message. Verified by serving a throwaway copy of the site with policy.json removed and auto-submitting “Japan”: the warning persists in the DOM after the submit attempt, and the normal data-loaded path is unchanged. | Tool robustness; verified against a dataset-less copy |
| 2026-11-27 | Extended scripts/check-site.py with a data-parity rule: the converter’s embedded FALLBACK (used when rates.json cannot be fetched) must match the dataset in both date and every exchange rate, so the offline path can no longer silently serve stale reference rates. Verified by temporarily altering the fallback date — the check fails with a clear FALLBACK date=… != rates.json date=… message — then restoring the file to a clean run. | Data integrity; drift between duplicated datasets now caught by CI-style check |
| 2026-11-27 | Extended scripts/check-site.py with a second data-parity rule covering every place the policy figures are hand-copied: the pill spans and "Countries" rows on the Hainan and 240-hour transit guides, the baseline entry of the policy change log (50 / 57+65+24 / 61), and the two inline figures on the Chengdu page ("up to 30 days", "10-day allowance") — all must equal assets/data/policy.json. Verified by drifting the Hainan country count, the transit open-port count and the unilateral day count: each injection was flagged at every affected location, then restored to a clean run. | Data integrity; drift between page copy and the policy dataset now caught by CI-style check |
| 2026-11-27 | Extended scripts/check-site.py's accessibility invariants: exactly one <main> landmark per page, every skip-link's #target must resolve to an existing element id, and <html> must carry a non-empty lang attribute (currently en on all 30 pages). Verified by temporarily stripping the lang attribute from the home page and pointing a guide's skip-link at a missing anchor — each injected defect was flagged, then restored to a clean run. | Accessibility and long-term maintainability; verified by injection tests |
| 2026-11-27 | Added inventory-coverage checks to scripts/check-site.py: the guide and city hubs must list every page of their directory, llms.txt must list every guide / tool / city with resolving links and figures matching policy.json and the rendered checklist, and every page's main nav must expose the full eight-link section set. The first run found seven real gaps: six pages missing the Change-log link and the currency converter missing the Checklist link — all fixed; also corrected the current-page highlight (aria-current) on all nine city pages (Chengdu wrongly highlighted Guides, the rest had none). Verified by injection tests (hub link removed, llms figure drifted, nav link removed), each flagged, then restored to a clean run. | Navigation completeness; pure-increment hub rule now enforced |
| 2026-11-27 | Extended scripts/check-site.py's FAQ check from a count-only comparison to a text-level one: every FAQPage question's summary must match its JSON-LD name, and the accepted answer text must appear in the visible accordion item (markup/entity differences normalised). All 87 FAQ items across the site already pass. Verified by single-sided injections — editing only the rendered summary, or only the rendered answer copy while leaving the structured data untouched, each produced a precise failure, then restored to a clean run. | Structured-data fidelity; rich results can no longer quote different text than the page shows |
| 2026-11-27 | Extended scripts/check-site.py's link check to responsive images: every candidate URL inside a srcset attribute (WebP and JPEG, small and full variants on the hero, city cards and guide photos) must resolve to an existing file, matching the coverage previously given to href/src. All current srcset entries pass; verified by temporarily breaking one candidate URL on the Chengdu page — flagged as broken srcset image — then restored to a clean run. | Asset integrity; no broken responsive-image candidates can ship silently |
| 2026-11-27 | Brought every page's search copy inside SERP-safe lengths and added the invariant to scripts/check-site.py: title must be 10–72 characters, description 70–165, and the Open Graph / Twitter copies must equal the canonical title and description. The first run flagged 13 titles (up to 104 chars) and 26 descriptions (up to 264 chars); all were rewritten with the key entities kept, and the og:/twitter: meta values were re-synced to entity-safe equivalents of the new text. Final state: 30 pages at title 36–72 and description 137–165, problems=0. | Search presentation; prevents SERP truncation and keeps social cards in sync |
| 2026-11-28 | Published the site to GitHub Pages under zhanfangjian/china-arrival-guide.pages.dev (user site, branch source main / root, HTTPS enforced). config/site.json now carries the production host; scripts/build-sitemap.py rewrote every canonical / og:url / JSON-LD url to absolute https://china-arrival-guide.pages.dev URLs and emitted robots.txt plus a 29-URL sitemap.xml. Verified live: home page, a guide page, CSS / JS / policy dataset / hero image all return HTTP 200, missing paths return the styled 404, and the served canonical tag is the absolute URL. | Deployment; the validated tree is now publicly reachable |
| 2026-11-28 | Fixed a social-sharing defect found by audit: no page carried an og:image, so link previews on X, Facebook, LinkedIn and messaging apps rendered without a thumbnail. Every page now declares an absolute https://china-arrival-guide.pages.dev/assets/img/… image (the city photo on destination pages, the hero elsewhere) with an alt text, and the Twitter card was upgraded from summary to summary_large_image. scripts/check-site.py now enforces presence of an absolute og:image under the configured host, its file existence, and the large-image card; an injected deletion was flagged and restored. Also added README.md documenting stack, checks and deployment. | Social preview integrity; link unfurls now show the intended image |
| 2026-11-28 | Added llms-full.txt: the entire site as one plain-text document, regenerated by scripts/build-llms-full.py from the HTML pages. Breadcrumb trails and hidden fallback blocks are stripped, verification dates are filled from each page's metadata and policy figures from assets/data/policy.json, so no "loading…" or bare-dash placeholder survives in the text edition. llms.txt now links the file, and check-site.py fails if it is missing, lacks any content page's canonical URL, carries a broken internal link, or is not linked from llms.txt. Verified by two injections (a page URL removed; the cross-link removed), each flagged, then restored to a clean run. | GEO discoverability; one-file quoting for generative engines |
| 2026-11-29 | Raised the visual standard to an editorial system: self-hosted variable fonts (Fraunces for display, Inter for text; OFL licences, roughly 113 KB of latin subsets served from assets/fonts/ with font-display: swap, so no third-party request is made), a larger hero headline on a quiet paper-tone background, a short rule above the hero eyebrow, and a magazine-style statistics band with hairline dividers instead of three cards. Cards, checklists, FAQ rows and tool panels lose their idle shadows (depth returns on hover), the sticky header drops its blur pass, corner radii tighten from 16 to 14 px, section spacing opens up, and the main navigation keeps to one line at desktop widths. Verified by rendered screenshots in light and dark schemes at desktop and 390 px mobile viewports. | Visual standard; editorial typography and layout polish |
| 2026-11-29 | A self-test pass over the deployed site found and fixed two polish defects. First, in the change log table the date column wrapped dates such as 2026-11-26 onto two lines because the column shared the table's fluid width; the log table now keeps its first column on one line (white-space: nowrap on table.log), verified by re-rendering the page at desktop width. Second, sitemap.xml gave every URL the same lastmod (the single value from config/site.json); scripts/build-sitemap.py now reads each page's last commit date via git log -1 --format=%as and falls back to the configured date only when Git cannot answer, so the sitemap carries truthful per-page modification dates (28 pages at 2026-11-28, the methodology page at 2026-11-29 after the v2.0 changelog edit). Both fixes pass check-site.py (problems=0) and check-contrast.py (failures=0), and the regenerated sitemap parses as valid XML. | Presentation detail; per-page modification dates for crawlers |
| 2026-11-29 | The three interactive tools were exercised in a scripted browser — the visa checker (country matching including the USA alias and an unknown country, the transit and tour-group toggles, live-as-you-type mode), the currency converter (CNY/USD/EUR/JPY conversions, amount changes, submit path) and the packing checklist (ticks, tick-all, reset, state surviving a reload). One real defect surfaced: with the amount set to 0 the converter displayed 1 CNY = 0 EUR because the unit rate was derived from the converted amount. The unit rate is now computed directly from the currency pair (rTo / rFrom) and stays truthful at any amount; all 22 scripted assertions pass after the fix. Tool pages continue to read their data only from assets/data/*.json. | Interactive tool correctness; one-line converter fix verified by scripted tests |
| 2026-11-29 | Turned the ad-hoc browser checks into a permanent gate: scripts/selftest.mjs runs 35 assertions in headless Chrome over CDP, serving the site itself with Node's built-in HTTP module (no Python dependency). Coverage: the three tools end to end (country matching incl. aliases and unknown states, live mode, conversions across four currencies, checklist persistence), adversarial inputs (markup payloads render as text with no script execution, 200-character input, case/space variants, non-numeric/negative/huge amounts, corrupted and forged localStorage entries), a horizontal-overflow scan at eight breakpoints from 390 px to 1440 px, reduced-motion behaviour (no-motion flag, zero reveal blocks) and print-media rules (navigation and footer hidden). The adversarial round surfaced no further defects; all 35 assertions pass. | Testing infrastructure; repeatable interactive quality gate |
| 2026-11-29 | Extended scripts/selftest.mjs with a scan subcommand that loads every page once (all 29 content pages plus the styled 404) and fails on any console error, uncaught exception, failed request, or broken page chrome (missing or duplicated h1, missing navigation or footer, an absent or non-date #last-verified stamp). The first pass used a fixed 1.7-second wait and produced four false anomalies — a change-log page seen mid-navigation as having no h1/footer, and three tool pages caught while their data scripts were still fetching (last-verified still reading "loading…"). A targeted re-check with longer waits showed all four pages healthy, so the scan now waits for document.readyState === 'complete' (polled up to 4 s) plus a 500 ms settle beat before judging a page. Final state: 30 of 30 pages clean, zero console errors, zero failed requests; the interactive suite remains at 35/35 assertions. | Runtime health coverage; wait strategy corrected after measurement artefacts were ruled out |
| 2026-11-29 | Added an Atom feed for the whole site: scripts/build-atom.py reads each page's title, description and canonical link, stamps entries with per-page Git commit dates (newest first), writes atom.xml, and idempotently inserts the <link rel="alternate" type="application/atom+xml"> tag into all 29 content pages' heads. check-site.py now fails if the feed is missing, unparsable, out of sync with any page's canonical/title/description, duplicated or short an entry; an injected summary drift was flagged (problems=1) and a clean rebuild passed (problems=0). Interactive suite still 35/35, scan still 30/30 pages clean. | GEO discoverability; a standard feed for aggregators and generative engines |
| 2026-11-29 | The scan subcommand can now verify a deployed copy instead of only the local tree: node scripts/selftest.mjs scan --base https://china-arrival-guide.pages.dev/ keeps taking its page list from the repository, navigates the live site with browser caching disabled (so a stale CDN edge cannot mask a bad deploy), and fails on any main document that does not return HTTP 200 in addition to the existing console / network / page-chrome checks. Verified against the production host after the Atom feed release: all 30 pages clean, zero console errors, zero failed requests; local scan and the 35-assertion interactive suite still pass unchanged. | Deployment verification; runtime health check for the live site |
| 2026-11-29 | Hardened the scan subcommand after remote runs on a machine shared with many concurrent Chrome instances showed intermittent harness failures that had nothing to do with the site: the CDP port and local http port are now checked for squatters before Chrome starts (fail fast with exit code 2 instead of a confusing JSON parse error), DevTools discovery waits up to 60 seconds for a slow cold start, every CDP command carries a 30-second timeout so a wedged socket cannot hang the run forever, each page is judged only after its network requests go quiet (kills spurious ERR_ABORTED font noise from navigating away mid-load) and tool pages get an extra grace beat if a data fetch is still in flight, and scan mode no longer fetches the rates fixture at all (a flaky CDN edge response once aborted a deployment check). A negative control against https://example.com/ correctly fails (30 flagged pages), while production stays clean. | Test-harness reliability; separate real site defects from machine contention |
| 2026-11-29 | Enabled IndexNow instant indexing: a generated 24-character key was stored in config/site.json (indexnow_key) with the matching <key>.txt file at the site root, and check-site.py now fails if the file is missing or its content drifts from the configured key (an injected wrong key was flagged, a restored file passed). New releases can ping Bing/Yandex with one curl to api.indexnow.org instead of waiting for recrawl, which matters for a site whose entry-rule pages change frequently. The key file went live at the domain root (HTTP 200, exact content); a first ping with the legacy form-encoded body returned 415, while the current JSON host/key/urlList body was accepted — single URL 202, six-URL batch 200. | GEO discoverability; faster indexing of new and updated pages |
| 2026-11-29 | Added on-device site search: a new Search page with a generated index (assets/data/search-index.json, rebuilt by scripts/build-search-index.py, which also injects the nav entry into every page) and a dependency-free script that ranks title hits above descriptions above body text, caps results at ten, builds results through DOM APIs so queries cannot inject markup, and reports no-match states. The interactive suite gained four assertions (index endpoint, ranked results, no-match message, injection safety) and now passes 39/39. While wiring it up we found and fixed a real defect in all three generators: sitemap.xml, atom.xml and the search index listed directory pages as /destinations instead of /destinations/ (canonical form), now corrected and regenerated. | Navigation and findability; canonical URL consistency across all generators |
| 2026-11-29 | Closed the generator-freshness gap in check-site.py: sitemap.xml's URL set must now equal the page inventory and every <lastmod> must match that page's last Git commit date (an immediately detected stale /search/ entry forced a rebuild), and llms-full.txt must contain every page title. Tampering with a sitemap date is flagged (problems=1) and restoring it returns to zero. The runtime scan additionally asserts each served page advertises the Atom feed via link[type="application/atom+xml"] (the styled 404 is exempt); removing the link from the home page flipped the scan to 0/1 passed, restoring it returned to 1/1. | Drift detection for all generated artifacts, not just content |
| 2026-11-29 | Added an internal-link audit to check-site.py: every <a href> on all 31 pages must resolve to a real file (759 links verified, 30 external mailto/tel/web links skipped), and same-page anchors must have a matching element id. First run found zero dead links across the inventory; a deliberately broken /search/ reference was flagged (problems=2) and the restore returned to zero. This closes the last silent-failure mode for moves or renames. | Link integrity; no orphan references after restructuring |
| 2026-11-29 | Added an RSS 2.0 feed alongside the existing Atom feed for readers and aggregators that only understand RSS: scripts/build-rss.py reuses the same page inventory, per-page Git commit dates (rendered as RFC 822 pubDates, newest first) and canonical links, writes rss.xml, and idempotently inserts the <link rel="alternate" type="application/rss+xml"> tag into all 30 content pages' heads. check-site.py now fails if the feed is missing, unparsable, short an item, duplicated, or drifted from any page's canonical/title/description/date, or if a page's head lacks the RSS link; tampering with a guid was flagged (problems=2) and removing the head link from one page was flagged (problems=1), both restorations returned to zero. The interactive suite grew to 41/41 with two new assertions (head advertises the feed; RSS item count equals the sitemap URL count). | GEO discoverability; one more standard subscription surface |
| 2026-11-29 | Closed the last date-drift gap in the generated feeds: check_feed_dates() now requires every atom <updated> and rss <pubDate> to equal that page's last Git commit date, and each feed's top-level <updated>/<lastBuildDate> to be the newest page date. Previously a feed rebuilt from stale metadata could carry dates that no longer matched the repository while still passing all checks. Negative controls: an entry date moved to 2026-01-01 was flagged (problems=1), a wrong rss pubDate was flagged (problems=1), and bogus feed-level dates in both files were flagged (problems=2); rebuilding both feeds returned to zero. | Drift detection for feed dates, matching the sitemap freshness guarantee |
| 2026-11-29 | Closed the host-drift gap: check_hosts() now requires each page's canonical to equal https://<host><its path> exactly, every string URL inside JSON-LD blocks to stay on-host (schema.org/W3C namespaces excepted), each page's BreadcrumbList items to mirror its visible breadcrumb links item for item, and every sitemap.xml <loc> to use the configured host; check_robots() requires a User-agent: * + Allow rule and exactly one Sitemap: line pointing at this host's sitemap. Previously a host change or a stale absolute URL could pass every gate. Negative controls: a tampered canonical (problems=7, including pre-existing checks), an injected off-host JSON-LD sameAs (problems=1), a rewritten breadcrumb item (problems=1) and off-host sitemap/robots entries (problems=2) were all flagged; restores returned to zero. | Host and identity consistency across every machine-readable surface |
| 2026-11-29 | Extended the runtime scan with a deployment-surfaces assertion: after checking all pages, it fetches /robots.txt, /sitemap.xml, /atom.xml and /rss.xml and requires a Sitemap: directive plus entry/item/loc counts equal to the content-page inventory. This makes the previously manual post-deploy curl checks part of the permanent gate for both local and --base remote scans. Negative control: hiding rss.xml flipped the new check to FAIL ({"rss":0}) while page checks stayed green; restoring it returned 2/2. | Deployment verification as code; feeds/sitemap/robots cannot silently disappear or shrink |
| 2026-11-29 | Tightened the data-integrity gate in two places. check_config() now rejects a malformed or empty config/site.json host (non-bare-domain) and a non-ISO lastmod, because several host checks used to skip silently when the host was missing. check_policy_mentions() scans the visible text of every page for N countries / N provinces / N ports and requires each number to be one the current dataset actually contains, so a dataset update cannot leave stale headline figures in prose, FAQs or hub copy; the ASEAN tour-group count of 10 is documented in the code as the one dataset-external value. Negative controls: a bad host string produced the config error, and injected bogus country/port/province counts in page copy each produced a specific drift finding; restores returned to zero. | Data integrity beyond the checked spans and tables |
| 2026-11-29 | Added two media/accessibility gates. check_media() requires every <img> to carry alt (or aria-hidden="true") and validates each site-local srcset candidate against the filesystem — srcset URLs were previously invisible to the href/src walk. The interactive suite grew to 43 assertions with a runtime check that every link/button has an accessible name (text, aria-label or title) and every form control is labelled (wrapping label, label[for], aria-label or placeholder), plus skip-link presence and image alt on the live DOM; the page scan now also flags a missing skip link. Negative controls: stripping one image's alt and breaking one srcset URL produced two specific findings (problems=4 including pre-existing checks), and injecting an empty link plus an alt-less image flipped the two new runtime checks to FAIL; restores returned to zero. | Media integrity and baseline accessible-name coverage |
| 2026-11-29 | Added keyboard-focus gates. check_focus_styles() fails if the stylesheet lacks any visible :focus/:focus-visible treatment or a .skip-link:focus state, so "reachable by keyboard" cannot silently degrade to invisible focus. The interactive suite grew to 45 assertions with two runtime checks on the live DOM: the first tab stop must be the skip link, and the skip link's target fragment must exist with no tabindex="-1" traps. Negative controls: renaming .skip-link:focus produced the specific finding (problems=1), and injecting an extra early link plus a negative-tabindex element flipped both new runtime checks to FAIL (43/45); restores returned to zero. | Visible keyboard focus and sane tab order as enforced properties |
| 2026-11-29 | Added scripts/verify-reproducible.py: it hashes all six generated artifacts (robots.txt, sitemap.xml, atom.xml, rss.xml, search-index.json, llms-full.txt), re-runs the five builders in a fixed order, and fails if any byte changed — catching generators that depend on the clock, set ordering or previous file contents, which would otherwise produce phantom diffs or mask real ones during review. Baseline run: reproducible: 6/6 files byte-identical after rebuild. Negative control: temporarily appending a nanosecond timestamp inside build-atom.py flipped the check to DRIFTED atom.xml / 5/6 with exit 1; restoring the script and rebuilding returned to 6/6 and check-site problems=0. | Deterministic generation as an enforced property |
| 2026-11-29 | Deepened search-index validation: beyond the URL set and titles, check_search() now recomputes each page's indexed title, description, canonical URL and full extracted body text (same normalisation as build-search-index.py, capped at 20,000 characters) and fails on any drift, so an edited page can no longer keep stale snippets in on-device search while every other check stays green. Negative control: appending a marker to one entry's text flipped the gate to search-index: body text drift for /methodology/ (problems=1); rebuilding returned to zero. | Search results cannot silently lag behind page edits |
| 2026-11-29 | Added scripts/preflight.py, a single entry point for the local gate suite: it rebuilds all five generators, verifies byte-reproducibility, runs check-site.py and check-contrast.py, and (with --runtime) adds the interactive test and page scan, exiting non-zero while naming any failed step. Baseline static run: PREFLIGHT PASSED: all 8 steps green. Negative control: pointing one page's canonical at another host made the runner report [FAIL(1)] check-site with the specific finding and PREFLIGHT FAILED: 1 step(s): check-site / exit 1; restoring returned to green. Note that a deliberately deleted rss.xml is not a failure because the runner regenerates artifacts first — the reproducibility step then guarantees the rebuild is byte-clean. | One command that cannot forget a gate |
| 2026-11-29 | Fixed a gate-blindness bug found during the final audit: the runtime suite ended with if (fails > 0 && process.exitCode === 0) process.exitCode = 1, but process.exitCode is undefined by default, so every failing run — including the negative controls used while building earlier gates — exited 0 and preflight.py reported the step as OK. Now it is simply if (fails > 0) process.exitCode = 1. Regression proof: with an injected empty link the test prints 44/45 passed and exits 1, preflight --runtime reports PREFLIGHT FAILED: 2 step(s): check-site, selftest test; after restore the test exits 0 and the full preflight passes. | A failing gate now actually fails automation, not just its own log |
| 2026-11-29 | Added continuous enforcement: .github/workflows/preflight.yml runs the static gate suite (python scripts/preflight.py: all five generators rebuild → byte-reproducibility → check-site.py → check-contrast.py) on every push to main and every pull request under ubuntu-latest with Python 3.12, so a regression is now caught by CI rather than only by the author's local run. Runtime checks remain local because they require a Chrome DevTools client. The workflow YAML parses cleanly and its exact command passes locally (PREFLIGHT PASSED: all 10 steps green in the full runtime configuration). | The self-test loop is now continuous, not per-session |
| 2026-11-29 | Made site search machine-discoverable and linkable: /search/?q=... now prefills the query box from the URL and submitting a query rewrites the address to the same shareable form via history.replaceState; the homepage's WebSite JSON-LD advertises a SearchAction whose urlTemplate points at that endpoint. Added check_search_action() to check-site.py and two runtime assertions to selftest.mjs (47 total). Both gates were negative-verified: a tampered urlTemplate produces exactly one named problem, and removing the URL prefill drops the suite to 46/47 with a non-zero exit. | Searchers and visitors can deep-link into on-device search results |
| 2026-11-30 | Built the account-free half of the measurement base: scripts/metrics-baseline.py probes the deployed site over HTTPS — liveness of every sitemap URL with time-to-first-byte, homepage response headers, TLS certificate expiry, robots/sitemap/feed/search-index parity and the SearchAction markup — and commits a dated snapshot to metrics/baseline.md / metrics/baseline.json, exiting non-zero on any failure. First capture: ten of ten checks passed (avg TTFB 606 ms). A ranking/citation snapshot over three target queries recorded that this site is absent from the current top results for all three, so content expansion is now the tracked growth lever. | Evidence before optimization; a public baseline that later releases must beat |
| 2026-11-30 | Added performance hints as a gated part of the build: build-perf.py idempotently injects a font preload pair for the self-hosted variable fonts and decoding="async" on every image, and check-perf-hints.py (wired into preflight.py) fails when a page misses either font preload, any image lacks async decoding, or a preload target does not exist on disk. Both directions were negative-verified: removing one font preload line and stripping one image's decoding each produced an exact named failure with a non-zero exit. | First-visit text rendering and image decode stay off the critical path, and CI keeps it that way |
| 2026-11-30 | Added the first expansion pages under the tracked growth lever: Applying for a Chinese visa (visa categories at a glance, the core document set, the step-by-step process, refusal risks and fee/timing caveats, with every figure left to official channels) and Budgeting a China trip (indicative daily ranges by travel style and city tier, labelled as editorial planning estimates rather than quoted prices). The site grows from 30 to 32 content pages; hub cards, llms.txt, sitemap, feeds and search index regenerate together, all six generators are byte-reproducible, and the new pages pass the full gate suite — including two injections (canonical removed, llms entry removed) that each produced exact named failures before a clean rebuild. | Content expansion; gates extended and negative-verified on real new pages |
| 2026-11-30 | Hardened the live baseline probe: per-URL liveness now retries once on a transient network blip and reports the retry count, so a CDN hiccup no longer writes a false failure into metrics/baseline.md. Negative-verified with an injected dead sitemap URL — the retry fired and the probe still failed exactly as it should, naming the dead link. | Measurement reliability for the tracked baseline |
| 2026-11-30 | Second expansion batch: Staying safe in China (visitor-targeted cons and how to defuse them, emergency numbers 110/120/119 and the 12308 consular hotline, document habits), Travel insurance for China (medical-limit, evacuation, direct-billing and exclusion clauses plus claim paperwork) and Travelling with children (documents, child tickets, prams on rail and metro, pacing and food basics). The site reaches 35 content pages; hub cards, llms.txt, sitemap, feeds and search index regenerate together, all six generators stay byte-reproducible, and a canonical/llms injection against the new safety page failed check-site exactly as designed before restore. | Content expansion, second batch; gates negative-verified again |
| 2026-12-01 | Moved hosting from GitHub Pages to Cloudflare Pages (direct upload, no git build step): this site and the nine sister sites in the cluster now serve from <project>.pages.dev, with canonical / og:url / JSON-LD / sitemap / robots / feeds / search index repointed to the new host in one mapping run. The move removes the external constraints that had been blocking publication (repository creation plus account email verification) and shortens the publish path to a single deploy command. A custom domain remains a later switch, and the old GitHub Pages address is retired once the Cloudflare deployment verifies clean. | Hosting change; publication is no longer gated on external platform state |
Measurement
Optimization here is steered by captured evidence, not impressions. scripts/metrics-baseline.py probes the deployed site over HTTPS and commits a dated snapshot to metrics/baseline.md (raw data in metrics/baseline.json): liveness of every sitemap URL with time-to-first-byte, homepage response headers, TLS certificate expiry, robots/sitemap/feed/search-index parity, and the SearchAction markup. The first capture, on 2026-11-30, passed all ten checks.
Ranking and AI-citation visibility are sampled separately because they depend on third-party surfaces. Baseline snapshot (2026-11-30, search-engine sampling of the top results): for three target queries — China visa-free policy lists, Hainan visa-free eligibility, and first-time China arrival tips — this site does not yet appear among the top results; official government portals occupy those positions. Content expansion is therefore tracked as the primary growth lever, and each release will be re-sampled against the same queries so progress is measured rather than assumed.
Report an error
If something here is wrong, outdated, or ambiguous, tell us with a link to the official source. Corrections that change a country's status are treated as priority and updated within one working day.
Common questions
Questions visitors ask
Where does the information come from?
Primary sources: National Immigration Administration policy pages, municipal and provincial government portals (Shanghai, Beijing, Shenzhen), the State Taxation Administration for the tax refund, and official operator channels for connectivity. Each claim links to the source it came from.
What happens when two sources disagree?
The more specific and more recent primary source wins, and the page says which one was used and when it was published. Where sources cannot be reconciled, the page describes both positions instead of picking one silently.
How do I report an error?
Use the contact link in the footer with a link to the official source. Corrections that change a country's status or a monetary figure are treated as priority and updated within one working day.