{
  "id": 21302544,
  "title": "Turning a Chinese open-ended contract rule into code: four boundary cases",
  "url": "https://urgent.news/2026/11/22/turning-a-chinese-open-ended-contract-rule-into-code-four-boundary",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-22T22:40:02.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hcxshh/turning-a-chinese-open-ended-contract-rule-into-code-four-boundary-cases-4gfg"
  },
  "original_language": "en",
  "account": "In a day-long effort to translate a seemingly simple Chinese employment rule into code, it became apparent that four boundary conditions were at play. The rule states that after two consecutive fixed-term contracts, an employee can demand an open-ended contract. However, the counting rules underneath are not as straightforward.\n\nThe Chinese Labour Contract Law, Article 14(2), outlines three ways to obtain an open-ended contract. The third and most litigated route involves two consecutive fixed-term contracts, provided there are no disqualifying circumstances and a renewal. However, the interpretation from the Supreme People's Court in 2025 clarified which arrangements count as the second contract.\n\nFour boundaries emerged from the analysis. First, the term \"full ten years\" is inclusive, meaning ten years and zero days qualify as ten years. Boundary two highlights that the counting of fixed-term contracts starts from 2008, not from the date of hiring. This revelation caused issues in the initial implementation, as it led to incorrect results for employees hired before 2008.\n\nBoundary three introduced a new rule: an 11-month extension does not count as the second contract, even though it is close to the 12-month threshold. Boundary four addresses partial years, where any service of six months or more is counted as a full year. However, the severance base is capped at three times the local average wage, and the counted years cannot exceed twelve.\n\nThe four documents involved in this process—statutes, State Council regulations, the Supreme People's Court interpretation, and commentary—each have their own weight and should be used accordingly. The Supreme People's Court interpretation is not binding text, but rather an explanation of how the clause is read. This distinction is crucial, as it appears in the commentary rather than in the interpretation itself.\n\nThe lesson learned from this exercise is that legal writing can be complex, with multiple layers and potentially conflicting interpretations. It is essential to carefully source and understand the different materials and to properly attribute commentary. Additionally, when working with court servers, unexpected issues like HTTP 449 errors may arise, requiring a more diligent approach to accessing the necessary documents.",
  "summary": "I spent a day turning a Chinese employment rule into code, and the rule that looked simple turned out to be four boundary conditions wearing a trench coat. The rule: after two consecutive fixed-term contracts , the employee can demand a contract with no end date. Everyone quotes that sentence. Almost nobody quotes the counting rules underneath it. Here is the whole thing as a function, plus the…",
  "key_points": [
    "Four boundary conditions identified in translating Chinese employment rule into code",
    "\"Full ten years\" term in contract counting is inclusive of zero days",
    "11-month extension does not count as second contract for open-ended clause"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}