PROP-075 Rev 0.12 · 3 Aug 2026

Cane Agency · Change Proposal — APPROVED & APPLIED as spec v0.46.0, 3 Aug 2026 (Rev 0.12). The platform's tenants are not all companies, so the entity a tenant holds cannot be called one — and the entity that says WHO is responsible is not the entity that says WHERE. Twelve findings, twelve rules, a legal-form register, a node-by-node application map, and an amendment to an applied proposal. Fifteen open questions: seven DECIDED, four closed DE FACTO, four live — and NO GATE REMAINS. The last gate, OQ-12, was decided 3 Aug 2026: one scope axis, so responsibility scopes permission and place does not. The review that preceded it also found one contradiction inside the document, between R-ROOT and OQ-8, and fixes it.สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง — อนุมัติและ apply เป็น spec v0.46.0 เมื่อ 3 ส.ค. 2569 (Rev 0.12) tenant ไม่ได้เป็นบริษัททั้งหมด และเอนทิตีที่บอกว่าใครรับผิดชอบ ไม่ใช่เอนทิตีที่บอกว่าที่ไหน ผลค้นพบสิบสองข้อ กฎสิบสองข้อ คำถามเปิดสิบห้าข้อ คำถามสิบห้าข้อ: ตัดสินแล้วเจ็ดข้อ ปิดโดยพฤตินัยสี่ข้อ เหลือสี่ข้อ และไม่เหลือด่านอีกแล้ว ด่านสุดท้าย OQ-12 ตัดสินเมื่อ 3 ส.ค. 2569 ว่าให้มีแกนขอบเขตเดียว การทบทวนครั้งนี้พบข้อขัดกันหนึ่งจุดระหว่าง R-ROOT กับ OQ-8 และแก้แล้ว

The tenant is not a company — a self-parenting Department for who is responsible, and a Site for where the work standstenant ไม่ใช่บริษัท — Department ที่มีแม่ของตัวเองได้สำหรับใครรับผิดชอบ และ Site สำหรับงานตั้งอยู่ที่ไหน

Documentเอกสาร
PROP-075
Statusสถานะ
APPROVED & APPLIED — spec v0.46.0, 3 Aug 2026อนุมัติและ apply — spec v0.46.0, 3 ส.ค. 2569
Correctionคำแก้
Client correction, 3 Aug 2026, in review of Rev 0.2: “we have the word site in our tenant — we can have multiple location sites within the tenant, an abstract entity with a physical location. Our department can span across multiple sites or be at a single site depending on the tenant’s configuration. We should not just unify them under the department, because that is an organisation business unit, while SITE is an organisation physical location.” Upheld in full: Rev 0.2's R-ONETREE over-merged, and K-11/K-12 show the applied model was already carrying physical facts on an organisational node.คำแก้ของลูกค้า 3 ส.ค. 2569 ระหว่างทบทวน Rev 0.2: tenant มีคำว่า site อยู่แล้ว หนึ่ง tenant มีหลายสถานที่ได้ และหน่วยงานหนึ่งอาจกระจายอยู่หลายสถานที่หรืออยู่ที่เดียวก็ได้ จึงไม่ควรยุบรวมเข้ากับหน่วยงาน เพราะหน่วยงานคือหน่วยธุรกิจ ส่วน SITE คือสถานที่ทางกายภาพ รับคำแก้ทั้งหมด — R-ONETREE ของ Rev 0.2 รวมมากเกินไป
Originที่มา
Client direction, 3 Aug 2026, in review of Rev 0.1: “our platform also has tenants that are government agencies and not a company… cooperative, partnership limited, etc. To accommodate a hierarchy management system where they will have departments to segregate their allocation of concern in the duty of the organization. Maybe it is easier just to unify them into a single base entity called department — where this department can be classified as a legal entity and can also have an option to have a parent department.”คำสั่งลูกค้า 3 ส.ค. 2569 ระหว่างทบทวน Rev 0.1 ว่า tenant ของเรามีหน่วยงานราชการที่ไม่ใช่บริษัท มีสหกรณ์ มีห้างหุ้นส่วนจำกัด และอื่น ๆ และต้องรองรับลำดับชั้นที่มีหน่วยงานย่อยไว้แบ่งขอบเขตความรับผิดชอบ จึงควรรวมทั้งหมดเป็นเอนทิตีฐานเดียวชื่อ department ที่จัดเป็นนิติบุคคลได้ และมีหน่วยงานแม่ได้
Kindประเภท
A model change that deletes a column, merges two applied trees into one, and turns a hard-coded taxonomy into data. It introduces one new attribute and one new register; everything else it does is subtraction. Rev 0.1 promoted LegalEntity to Company; this revision promotes it one step further — into the tenant tree that was already, in applied text, allowed to contain it.การเปลี่ยนแบบจำลองที่ลบคอลัมน์หนึ่ง รวมต้นไม้ที่ apply แล้วสองต้นเป็นต้นเดียว และเปลี่ยนการจำแนกที่ฝังในโค้ดให้เป็นข้อมูล เพิ่มแอตทริบิวต์ใหม่หนึ่งตัวและทะเบียนใหม่หนึ่งชุด นอกนั้นคือการลบทั้งสิ้น
Supersedesแทนที่
Rev 0.2 corrects Rev 0.1 in full; Rev 0.3 corrects one rule of Rev 0.2 — R-ONETREE is narrowed to the ORGANISATIONAL axis and Site is promoted to a first-class entity beside Department (Section 1.3). Of Rev 0.1: Four of its five rules survive with a wider subject; its R-REQUIRES is corrected (it would have demanded a DBD company extract from the regulator — see K-8); its OQ-6 (“a company does not get its own domain tier”) is reversed by client direction. Section 1.4 crosswalks every rule and question of Rev 0.1 to its fate here.แทนที่ Rev 0.1 ทั้งฉบับ กฎสี่ในห้าข้อยังอยู่แต่มีประธานกว้างขึ้น R-REQUIRES ถูกแก้ และ OQ-6 เดิมถูกกลับด้านตามคำสั่งลูกค้า
Depends onพึ่งพา
PROP-005 the federation model and Party.kind (applied v6.0) · PROP-026 the domain tree, LegalEntity, OwnershipEdge and Mill.legal_entity_id (applied v0.25.0 — this revision amends it) · PROP-014 / PROP-015 the government cluster, กอน., สอน. and OCSF as party-held capacities (applied) · PROP-040 holder_kind and FR-357/FR-358 (applied v0.41.0) · PROP-042/PROP-045 domain-scoped grants and the overlap predicate · PROP-074 the qualification mechanism, A-79, A-80, FR-393 (applied v0.45.0) · PROP-073 the rename, unapplied.PROP-005 · PROP-026 (ฉบับนี้แก้ไขมัน) · PROP-014/PROP-015 · PROP-040 · PROP-042/PROP-045 · PROP-074 · PROP-073 ที่ยังไม่ apply
Vocabularyคำศัพท์
Written in the applied vocabulary of v0.45.0 — Party, party_id, Domain — with the PROP-073 successor named at first use. Department is used throughout as the client's word, subject to OQ-1.เขียนด้วยคำศัพท์ที่ apply แล้ว ของ v0.45.0 และใช้คำว่า Department ตามลูกค้า ขึ้นกับ OQ-1
Bindsผูกพัน
Everything below is now APPLIED. Applied as spec v0.46.0 on 3 Aug 2026 in one pass, carrying the PROP-026 amendment (OQ-11) and ahead of PROP-073. Provisional rule labels took their ids at application: R-CONTAINER → A-86 · R-ONETREE → A-87 · R-SITE → A-88 · R-REGISTERED → FR-394 · R-DEPTH guardrail → FR-395. The application record is drafts/prop-075-apply-checklist.md: 15 documents rev-bumped, graph documents[] and the SPEC-INDEX cards synced. Four questions remain open and none of them gates anything — OQ-8, OQ-9, OQ-14 and the deferred OQ-10 (books per department, its own draft).

1. The answer first1. คำตอบก่อน

The client is right, and the applied model already half-agrees with him. Domain.kind has read, verbatim, since v0.25.0: “root | tier | site … one optional intermediate tier (a LegalEntity or a declared region) is allowed”. The applied tenant tree therefore already says that a node of the tree MAY BE a legal body — it simply never gave that node the legal body's fields, never let the tree go deeper than three levels, and never admitted any legal form other than a DBD company. Rev 0.1 kept the two apart and made the correspondence somebody's job to maintain. This revision does what the applied sentence was reaching for: one node type, one tree.

ลูกค้าถูก และแบบจำลองที่ apply แล้วเห็นด้วยไปครึ่งทางแล้ว Domain.kind เขียนไว้ตั้งแต่ v0.25.0 ว่าชั้นกลางหนึ่งชั้น “เป็น LegalEntity หรือภูมิภาคที่ประกาศไว้” ต้นไม้ของ tenant จึงยอมรับอยู่แล้วว่าโหนดหนึ่งอาจเป็นนิติบุคคล เพียงแต่ไม่เคยให้ฟิลด์ของนิติบุคคลแก่มัน ไม่ให้ลึกเกินสามชั้น และไม่รับรูปแบบอื่นนอกจากบริษัทที่จด DBD

The proposal in one lineข้อเสนอในบรรทัดเดียวTwo entities inside the tenant, on two different axes. The Department — self-parenting, optionally classified as a legal body of a declared Thai form — answers WHO IS RESPONSIBLE. The Site — flat, physical, addressed — answers WHERE THE WORK STANDS. A department may stand at many sites or at one; a site may host many departments. Party.kind is retired, the legal forms become DATA rows rather than an enum in code, and a capacity that used to demand “an organization party” demands instead a verified registration of an acceptable FORM — which is the only version of the rule that สอน., กอน., OCSF and ธ.ก.ส. can actually satisfy.สองเอนทิตีใน tenant บนสองแกนที่ต่างกัน Department ตอบว่าใครรับผิดชอบ มีแม่ของตัวเองได้ และจะถูกจัดเป็นนิติบุคคลก็ได้ ส่วน Site ตอบว่างานอยู่ที่ไหน เรียงชั้นเดียว มีที่อยู่จริง หน่วยงานหนึ่งอยู่ได้หลายสถานที่หรือที่เดียว และสถานที่หนึ่งรองรับได้หลายหน่วยงาน

The applied Domain was carrying three different jobs on one node, which is why it could do none of them properly: it named an organisational unit (a tier), a legal body (“a LegalEntity…”) and a physical place (“a site domain IS one factory”, with mill_id on the row). Rev 0.2 merged the first two on client direction. Rev 0.3 separates the third on client correction — and the two moves are the same move: one node, one job.

Domain ที่ apply แล้วแบกงานสามอย่างไว้บนโหนดเดียว จึงทำได้ไม่ดีสักอย่าง: หน่วยงาน นิติบุคคล และสถานที่ทางกายภาพ Rev 0.2 รวมสองอย่างแรกตามคำสั่งลูกค้า Rev 0.3 แยกอย่างที่สามออกตามคำแก้ของลูกค้า ทั้งสองคือการเคลื่อนเดียวกัน: หนึ่งโหนด หนึ่งงาน

Three consequences, none of them new machinery. (a) The hierarchy the client asks for — “departments to segregate their allocation of concern” — is the applied grant-scoping mechanism, unchanged: SurfaceRoleGrant.domain_id, PermissionGroup.domain_id and the domain scope axis already scope every grant to a node of this tree, and PROP-045's overlap predicate already reasons over it. Renaming the node does not touch one line of that. (b) The seven organization_only capacities stop asking “is this party of kind organization?” and declare requires: [legal_registration] plus an accepted form class — FR-393, applied. (c) Party.legal_name? and Party.registration_no? are deleted, not moved: a tenant with three registered bodies cannot hold one legal name, and the fields that survive are the ones with a registrar behind them.

ผลสามข้อ ไม่มีข้อใดเป็นกลไกใหม่ (ก) ลำดับชั้นที่ลูกค้าขอคือกลไกการกำหนดขอบเขตสิทธิ์ที่ apply แล้ว ทั้ง SurfaceRoleGrant.domain_id PermissionGroup.domain_id และแกน domain (ข) capacity เจ็ดตัวประกาศ requires: [legal_registration] พร้อมกลุ่มรูปแบบที่ยอมรับ (ค) legal_name? และ registration_no? บน tenant ถูกลบ

1.1 The picture1.1 ภาพรวม

Figure 1 — two trees today, one tree afterรูปที่ 1 — วันนี้สองต้น หลังจากนี้ต้นเดียว TODAY — applied v0.45.0 Party (tenant) · kind = individual | organization Domain · root Domain · tier Domain · site THREE TIERS MAXIMUM (OQ-14) LegalEntity (holding) LegalEntity (operating) OwnershipEdge no key joins the two · no legal form but DBD AFTER — one base entity Tenant · a container, no kind Department · root Department · บริษัท ก. จำกัด Department · ฝ่ายผลิต Department · ฝ่ายชั่งน้ำหนัก Department · สหกรณ์การเกษตร ข. = classified as a legal body any form · verified registration · depth uncapped · sites: fig. 2
The right-hand tree is not a new structure: it is the left-hand Domain tree with the LegalEntity fields folded onto the nodes that have them, the three-tier cap lifted, and the legal form made data. Grants scope to a node in both pictures — that mechanism is untouched. The physical place has left this picture entirely — see Figure 2.ต้นไม้ทางขวาไม่ใช่โครงสร้างใหม่ แต่คือต้นไม้ Domain ทางซ้ายที่พับฟิลด์ของ LegalEntity ลงบนโหนดที่มี ยกเพดานสามชั้นออก และทำให้รูปแบบนิติฐานะเป็นข้อมูล สถานที่ทางกายภาพออกจากภาพนี้ไปทั้งหมด ดูรูปที่ 2

1.2 The second axis1.2 แกนที่สอง

Figure 2 — the second axis: departments stand at sites, many to manyรูปที่ 2 — แกนที่สอง: หน่วยงานตั้งอยู่ที่สถานที่ หลายต่อหลาย DEPARTMENT · who is responsible SITE · where the work stands โรงงาน ก. · mill ลานรับซื้อ ข. · transfer สำนักงานใหญ่ · office ฝ่ายชั่งน้ำหนัก ฝ่ายขนส่ง ฝ่ายบัญชี ฝ่ายขนส่ง spans three sites · ฝ่ายบัญชี stands at one · โรงงาน ก. hosts two
Neither axis contains the other, which is why neither can be an attribute of the other. A department that spans sites cannot be filed under one; a site that hosts departments belonging to different branches of the tree cannot sit in the tree. The link is a row (DepartmentSite), and for the overwhelmingly common single-site department it is exactly one row and invisible.ไม่มีแกนใดบรรจุอีกแกนหนึ่ง จึงเป็นแอตทริบิวต์ของกันไม่ได้ หน่วยงานที่ครอมหลายสถานที่จะถูกจัดไว้ใต้สถานที่เดียวไม่ได้ ความสัมพันธ์คือแถวหนึ่ง และสำหรับหน่วยงานสถานที่เดียวซึ่งเป็นส่วนใหญ่ มันคือแถวเดียวที่มองไม่เห็น

1.3 What Rev 0.3 changes in Rev 0.21.3 Rev 0.3 เปลี่ยนอะไรใน Rev 0.2

Rev 0.2Rev 0.2FateผลWhyเพราะอะไร
R-ONETREENarrowedแคบลงIt said “exactly one kind of node inside a tenant”, which swallowed the physical place. It now reads: exactly one kind of node in the ORGANISATIONAL tree. The site is not in that tree and never was an organisational unit — it is where organisational units stand.เดิมเขียนว่า “โหนดชนิดเดียวใน tenant” ซึ่งกลืนสถานที่ทางกายภาพเข้าไปด้วย ตอนนี้คือ โหนดชนิดเดียวในต้นไม้เชิงองค์กร
The site value of Domain.kindค่า siteSplit outแยกออกRev 0.2 folded it into Department as an is_site/mill_id fact. It becomes the Site entity. An applied site domain therefore migrates to two rows: a site, and the department that operates at it.Rev 0.2 พับมันเข้า Department ตอนนี้กลายเป็นเอนทิตี Site แถว domain แบบ site จึงย้ายเป็นสองแถว
R-DEPTHSimplifiedง่ายขึ้นIts awkward half — “a site may hold children” — disappears, because a site is no longer a node of the tree. What remains is the plain lifting of the three-tier cap.ครึ่งที่เก้กังของมันหายไป เพราะ site ไม่ใช่โหนดของต้นไม้อีกต่อไป
Everything elseนอกนั้นทั้งหมดUnchangedไม่เปลี่ยนThe retirement of Party.kind, the legal-form register, the qualification correction, the cap-table separation and the PROP-026 amendment all stand as written. Three new rules and two new findings are added; nothing else is withdrawn.การเลิก Party.kind ทะเบียนรูปแบบนิติฐานะ การแก้ qualification และการแก้ไข PROP-026 ยังคงเดิม

1.4 What happened to Rev 0.11.4 Rev 0.1 กลายเป็นอะไร

Rev 0.1Rev 0.1FateผลWhyเพราะอะไร
R-CONTAINERSurvives, widenedอยู่ กว้างขึ้นA tenant is never a company — and never a government agency, a cooperative or a partnership either. Same deletion, a subject that now covers every tenant the platform actually has.tenant ไม่เคยเป็นบริษัท และไม่เคยเป็นหน่วยราชการ สหกรณ์ หรือห้างหุ้นส่วนด้วย
R-DERIVEDSurvives, renamedอยู่ เปลี่ยนชื่อ“Company-backed” becomes registered standing — still derived, still cached, still never an operator toggle. Now it also reports WHICH form, because four capacities care.“มีบริษัทหนุนหลัง” กลายเป็น สถานะการจดทะเบียน ยังเป็นค่าที่อนุมานและแคชไว้เหมือนเดิม
R-MANYAbsorbedถูกดูดกลืนFolded into R-TREE and R-ROOT: a tenant holds a TREE of departments (never empty, exactly one root) of which zero or more are legally classified.พับเข้าไปใน R-TREE และ R-ROOT
R-REQUIRESCorrectedถูกแก้It was wrong. requires: [company_registration] with issuer DBD would have demanded a company extract from สอน., กอน. and OCSF, which have none, and from ธ.ก.ส., which is a state enterprise. See K-8.มันผิด การบังคับ company_registration จาก DBD จะเรียกหนังสือรับรองบริษัทจาก สอน. กอน. OCSF และ ธ.ก.ส. ซึ่งไม่มี
R-NOUPGRADESurvivesอยู่Unchanged in substance: there is no upgrade, only a registration — now of a department, of a stated form, and WF-116 may run once per department instead of once per tenant lifetime.สาระเดิม ไม่มีการยกระดับ มีแต่การจดทะเบียนหน่วยงานหนึ่ง
OQ-1 rename to CompanyWithdrawnถอนReplaced by OQ-1 here. Company is exactly the word the client says is wrong; spending it on the base entity would have hard-coded the defect.แทนที่ด้วย OQ-1 ฉบับนี้ — company คือคำที่ลูกค้าบอกว่าผิด
OQ-6 no tier per companyReversedกลับด้านRev 0.1 argued a company is a legal fact and a domain an administrative address, so they should stay apart. Client direction says unify. The counter-argument that decides it: keeping them apart means maintaining a correspondence between two trees that nothing in the graph enforces — and K-9 shows nothing does.Rev 0.1 ให้เหตุผลว่าควรแยกกัน คำสั่งลูกค้าให้รวม เหตุผลที่ตัดสิน: การแยกไว้คือการต้องดูแลความสอดคล้องของต้นไม้สองต้นที่ไม่มีอะไรบังคับ
OQ-2 · 3 · 4 · 5 · 7 · 8 · 9CarriedยกมาCarried forward as OQ-4, OQ-5, OQ-6, OQ-7, OQ-10 and OQ-11 with their recommendations intact where the widening does not touch them, and re-argued where it does (uniqueness and expiry are now per form, not per DBD).ยกมาเป็น OQ-4 OQ-5 OQ-6 OQ-7 OQ-10 และ OQ-11 โดยแก้ข้อโต้แย้งเฉพาะที่การขยายขอบเขตกระทบ

2. Twelve findings against applied v0.45.02. ผลค้นพบสิบสองข้อเทียบกับ v0.45.0 ที่ apply แล้ว

K-1The legal body is applied, and it is already plural. LegalEntity (v0.25.0, PROP-026 D-2), verbatim: “The COMPANY, distinct from the factory… One entity may own several mill tenants…”, with entity_role: operating | holding | parent. A role enum with a holding and a parent value only means anything where one tenant already holds several bodies.นิติบุคคลถูก apply แล้ว และเป็นพหูพจน์อยู่แล้ว entity_role ที่มีค่า holding และ parent จะมีความหมายก็ต่อเมื่อ tenant หนึ่งถือหลายตัว
K-2The registration number has two homes, and the guarded one is typed for the wrong universe. LegalEntity.registration_no is UNIQUE and typed text (DBD 13); Party.registration_no? is nullable and read by no rule. One fact, two columns — and the surviving column assumes a DBD juristic person, which a cooperative registered with นายทะเบียนสหกรณ์ and a government office established by statute are not.เลขทะเบียนมีสองบ้าน และบ้านที่ถูกคุ้มกันถูกกำหนดชนิดไว้ผิดจักรวาล text (DBD 13) ใช้ไม่ได้กับสหกรณ์และส่วนราชการ
K-3The applied tenant tree already admits a legal body as a node — this proposal finishes the sentence. Domain.kind verbatim: “one optional intermediate tier (a LegalEntity or a declared region) is allowed”. The merge the client asks for is not a new idea imposed on the model; it is the applied model's own unfinished one.ต้นไม้ที่ apply แล้วรับนิติบุคคลเป็นโหนดอยู่แล้ว — เอกสารนี้เขียนประโยคนั้นให้จบ
K-4The money layer has been body-addressed since v0.25.0 while the identity layer pretended otherwise. Mill.legal_entity_id “declares WHOSE BOOKS the factory posts into” and Mill.branch_code carries the Revenue Department branch number for several factories under one tax_id. Books, tax and branches already resolve to a legal body.ชั้นเงินผูกกับนิติบุคคลตั้งแต่ v0.25.0 ขณะที่ชั้นอัตลักษณ์ยังทำเป็นอย่างอื่น
K-5The enum reads as a headcount and is false the day a farmer hires his son. Person → Membership is 1 — 1..*: every tenant is a container of people. kind = individual was naming legal personality, but it is read as a headcount by everyone who meets it. This was the client's original objection and it stands.enum อ่านเหมือนจำนวนคน และผิดในวันที่ชาวไร่จ้างลูกชาย
K-6The one-way rule is a registration status wearing an identity costume. WF-116: “Party.kind: individual → organization (one-way…)”. You gain papers and never un-gain them — how a REGISTRATION behaves, not how a kind of thing behaves.กฎทางเดียวคือสถานะการจดทะเบียนที่สวมเสื้อของชนิดตัวตน
K-7The mechanism to replace it was applied hours earlier, and so was the pattern for the taxonomy. PROP-074 shipped A-79 (register, verify, watch; never grant), FR-393 (requires, re-checked) and A-80: “a row here is DATA, never a class — adding, removing or re-parameterising one is a graph change and a document change, never a deploy”. The client's “etc.” in “cooperative, partnership limited, etc.” is precisely a demand for A-80 shape: the twelfth legal form must not be a release.กลไกที่มาแทนถูก apply ก่อนหน้าไม่กี่ชั่วโมง และแบบแผนของการจำแนกก็เช่นกัน A-80 บอกว่าแถวคือข้อมูล ไม่ใช่คลาส คำว่า “และอื่น ๆ” ของลูกค้าคือการเรียกหารูปทรงนั้นพอดี
K-8The load-bearing defect: four of the seven organization_only capacities are held by bodies that cannot produce a DBD company extract. The seven are mill · ocsb · board · bank · operator · ocsf · group. สอน./OCSB, กอน./board and OCSF are established by the Sugarcane & Sugar Act B.E. 2527 — their applied qualifications are already named ocsb_appointment, board_appointment and ocsf_appointment, i.e. STATUTE, not registration. And the fourth: the single most important agricultural lender in Thailand, ธ.ก.ส., is a state enterprise. Rev 0.1's single DBD-issued requirement would have locked all four out of the platform on the day it was applied. One qualification with one issuer cannot serve a register whose members have four different registrars.ข้อบกพร่องที่สำคัญที่สุด: สี่ในเจ็ด capacity แบบ organization_only ถือโดยองค์กรที่ออกหนังสือรับรอง DBD ไม่ได้ สอน. กอน. และ OCSF ตั้งขึ้นตาม พ.ร.บ. อ้อยและน้ำตาลทราย พ.ศ. 2527 และ ธ.ก.ส. เป็นรัฐวิสาหกิจ ข้อกำหนดเดียวที่ออกโดย DBD ของ Rev 0.1 จะกันทั้งสี่ออกจากแพลตฟอร์มทันทีที่ apply
K-9Two trees, one tenant, and no key joins them. Domain self-parents via parent_domain_id; LegalEntity relates to itself through OwnershipEdge — and LegalEntity has no FK to Domain and none to Party (its applied persistence profile reads "fks": {}). Two hierarchies over the same real-world thing, with the correspondence living only in a parenthesis in a note. Merging them is not added complexity; it is the removal of an unenforced duplicate.ต้นไม้สองต้นใน tenant เดียว และไม่มีคีย์ใดเชื่อมกัน โปรไฟล์ที่ apply แล้วของ LegalEntity คือ "fks": {} ความสอดคล้องอยู่ในวงเล็บของหมายเหตุเท่านั้น
K-10The three-tier cap fails on the first government tenant, and on the first mill with a weighbridge department. Applied: “root → optional one tier → site, THREE TIERS MAXIMUM; a site domain never holds children (OQ-14)”. A Thai public body is routinely กระทรวง → กรม → กอง → ฝ่าย — four before any site. A factory group is holding → operating → factory — three before any internal unit, and the cap forbids the factory from having one. The cap was written for a factory group and cannot survive a ministry.เพดานสามชั้นพังตั้งแต่ tenant ราชการรายแรก และตั้งแต่โรงงานแรกที่มีฝ่ายชั่งน้ำหนัก ราชการไทยคือ กระทรวง → กรม → กอง → ฝ่าย สี่ชั้นก่อนถึง site และกลุ่มโรงงานใช้ครบสามชั้นก่อนมีหน่วยงานภายในใด ๆ
K-11The applied tree was already carrying physical facts on an organisational node, and they do not fit. Domain holds mill_id? and is defined as “a site domain IS one factory (1:1 with the mill Party)”, while base_province — a location — sits on Party and on LegalEntity, neither of which has a location. Three concerns on one row: who is responsible, whose registration it trades under, and where it physically is. Rev 0.2 separated the first from the second and left the third where it was.ต้นไม้ที่ apply แล้วแบกข้อเท็จจริงทางกายภาพไว้บนโหนดเชิงองค์กร และมันไม่พอดี Domain ถือ mill_id? ส่วน base_province ซึ่งเป็นที่ตั้ง กลับอยู่บน Party และ LegalEntity ที่ไม่มีที่ตั้ง สามเรื่องบนแถวเดียว
K-12The platform is already full of places that are not business units, and of units that are not places. Applied and proposed alike: the transfer station (PROP-030), the weighbridge and its hardware (PROP-031, PROP-035), the queue lanes and their yard (PROP-061–PROP-063), the booking slot's location (PROP-024) and the mill's own compound are PLACES. A haulage department serving three of them is a UNIT with no single place; an accounts department is a unit whose place is irrelevant. Folding either into the other forces a lie: a department per weighbridge, or a weighbridge that inherits an accounting hierarchy.แพลตฟอร์มเต็มไปด้วยสถานที่ที่ไม่ใช่หน่วยธุรกิจ และหน่วยธุรกิจที่ไม่ใช่สถานที่อยู่แล้ว ลานรับซื้อ ตราชั่ง ช่องคิว และสล็อตจองคิวล้วนเป็นสถานที่ ส่วนฝ่ายขนส่งที่ดูแลสามแห่งคือหน่วยที่ไม่มีสถานที่เดียว การพับอย่างหนึ่งเข้าอีกอย่างบังคับให้โกหก

3. The model — two entities, two axes3. แบบจำลอง — สองเอนทิตี สองแกน

ObjectวัตถุWhat it isคืออะไรWhat changesอะไรเปลี่ยน
Party
→ Tenant
The container: memberships, departments, books, capacities, records.ภาชนะ: membership หน่วยงาน บัญชี capacity ระเบียนLoses kind, legal_name? and registration_no?. Keeps display_name — what the platform calls it. It stops asserting what it IS.เสีย kind legal_name? และ registration_no? เลิกประกาศว่าตัวเองเป็นอะไร
Department
= Domain(tier) + LegalEntity
The business unit: the one node type in the organisational tree, which MAY also be a registered legal body.หน่วยธุรกิจ: โหนดชนิดเดียวในต้นไม้เชิงองค์กร ที่อาจเป็นนิติบุคคลด้วยNew base entity of the organisational axis. Keeps the applied Domain attributes that are organisational (tenant_id, parent_*_id?, *_path, status); gains the legal block legal_form?, legal_name?, registration_no?, tax_id?, entity_role? from LegalEntity. Does NOT take mill_id, base_province or the site kind — those are the second axis. Depth cap lifted (R-DEPTH).เอนทิตีฐานของแกนเชิงองค์กร คงแอตทริบิวต์เชิงองค์กรของ Domain ไว้ และรับบล็อกนิติฐานะ แต่ไม่รับ mill_id base_province หรือชนิด site ยกเพดานความลึกออก
legalForms
register
The Thai legal forms a department may be classified as — company, partnership, cooperative, public body, and the client's etc.รูปแบบนิติฐานะไทยที่หน่วยงานหนึ่งจะถูกจัดเป็นได้New DATA register, in the shape of the applied qualifications register and governed by A-80: each row names its class, its registrar, its identifier format, its evidence instrument and its re-attestation period. The twelfth form is a graph change, not a deploy. Section 3.1.ทะเบียนข้อมูลชุดใหม่ รูปทรงเดียวกับทะเบียน qualifications ที่ apply แล้ว และอยู่ใต้ A-80
legal_registrationThe registration or statute, as a qualification.การจดทะเบียนหรือกฎหมายจัดตั้ง ในรูป qualificationThe ninth row of the applied qualifications register — replacing Rev 0.1's DBD-only company_registration. Held by the tenant, ABOUT a department; issuer, evidence and expiry are resolved from the department's form row, not fixed on the qualification.แถวที่เก้าของทะเบียน qualifications ผู้ออก หลักฐาน และอายุ อ่านจากแถวรูปแบบของหน่วยงานนั้น
Site
new
The physical place: a mill compound, a transfer station, a field office, a warehouse, a weighbridge yard.สถานที่ทางกายภาพ: พื้นที่โรงงาน ลานรับซื้อ สำนักงานภาคสนาม คลังสินค้าNew entity, on the second axis (client correction). site_id, tenant_id, name, site_kind (mill · transfer · office · warehouse · yard · other), address, province_code, geo?, status. Flat, never a tree (R-SITE), and it takes base_province off the entities that had no business holding a location.เอนทิตีใหม่บนแกนที่สอง ตามคำแก้ของลูกค้า เรียงชั้นเดียว ไม่เคยเป็นต้นไม้ และรับ base_province มาจากเอนทิตีที่ไม่ควรถือที่ตั้ง
DepartmentSite
new
Presence: which unit stands where.การตั้งอยู่: หน่วยใดอยู่ที่ไหนThe link row — (department_id, site_id, is_primary, status), unique on the pair. Many-to-many, because a department may span sites and a site may host departments (R-PRESENCE). The single-site department has exactly one row and never sees the mechanism.แถวเชื่อม หลายต่อหลาย เพราะหน่วยงานครอมหลายสถานที่ได้ หน่วยที่มีสถานที่เดียวมีแถวเดียวและไม่เห็นกลไกนี้เลย
OwnershipEdgeThe shareholding graph of PROP-026: chains, cycles, derived control.กราฟการถือหุ้นของ PROP-026Re-pointed, not retired. Its two FKs now name legally-classified departments. It is NOT the parent link — shareholding is a many-to-many DAG with percentages; the department tree is single-parent administrative containment (R-NOTCAPTABLE). The control test, GroupChartMap, InterCompanyRule and consolidation are untouched.ชี้ใหม่ ไม่ถูกเลิก FK สองตัวชี้ไปที่หน่วยงานที่ถูกจัดเป็นนิติบุคคล และมันไม่ใช่ลิงก์แม่-ลูก การถือหุ้นเป็น DAG หลายต่อหลายพร้อมสัดส่วน ส่วนต้นไม้หน่วยงานมีแม่เดียว
MillThe factory.โรงงานIts two facts are separated. Mill.legal_entity_id becomes Mill.department_id (whose books this factory posts into), and Mill.site_id (1:1) says where the factory physically is — the fact the applied site domain was carrying. branch_code unchanged.ข้อเท็จจริงสองอย่างถูกแยกออกจากกัน Mill.department_id บอกว่าลงบัญชีของใคร ส่วน Mill.site_id บอกว่าโรงงานตั้งอยู่ที่ไหน
MembershipPerson ↔ tenant. Unchanged.บุคคล ↔ tenant ไม่เปลี่ยนNothing. Grants inside the membership already carry a domain_id; that column now names a department. This is the client's “segregate their allocation of concern”, already applied.ไม่มี คอลัมน์ domain_id ในสิทธิ์กลายเป็นชื่อหน่วยงาน นี่คือ “การแบ่งขอบเขตความรับผิดชอบ” ที่ apply แล้ว

3.1 The legal-form register — eleven rows and a default3.1 ทะเบียนรูปแบบนิติฐานะ — สิบเอ็ดแถวกับค่าตั้งต้น

FormรูปแบบClassกลุ่มRegistrar / instrumentนายทะเบียน / ตราสารIdentifier & re-attestationเลขประจำตัวและการยืนยันซ้ำ
company_limited
บริษัทจำกัด
private_juristicDBD — กรมพัฒนาธุรกิจการค้า · company extract (หนังสือรับรอง)กรมพัฒนาธุรกิจการค้า · หนังสือรับรองJuristic person no. 13 · extract dated within 12 monthsเลขนิติบุคคล 13 หลัก · หนังสือรับรองไม่เกิน 12 เดือน
public_company_limited
บริษัทมหาชนจำกัด
private_juristicDBD · company extractกรมพัฒนาธุรกิจการค้า · หนังสือรับรองJuristic person no. 13 · 12 monthsเลขนิติบุคคล 13 หลัก · 12 เดือน
limited_partnership
ห้างหุ้นส่วนจำกัด
private_juristicDBD · partnership extractกรมพัฒนาธุรกิจการค้า · หนังสือรับรองJuristic person no. 13 · 12 monthsเลขนิติบุคคล 13 หลัก · 12 เดือน
registered_partnership
ห้างหุ้นส่วนสามัญนิติบุคคล
private_juristicDBD · partnership extractกรมพัฒนาธุรกิจการค้า · หนังสือรับรองJuristic person no. 13 · 12 monthsเลขนิติบุคคล 13 หลัก · 12 เดือน
cooperative
สหกรณ์การเกษตร
cooperative_groupนายทะเบียนสหกรณ์ / กรมส่งเสริมสหกรณ์ · registration certificateนายทะเบียนสหกรณ์ · ใบสำคัญการจดทะเบียนCooperative reg. no. + taxpayer 13 · 12 monthsเลขทะเบียนสหกรณ์ + เลขผู้เสียภาษี 13 · 12 เดือน
farmer_group
กลุ่มเกษตรกร
cooperative_groupกรมส่งเสริมสหกรณ์ · registration certificateกรมส่งเสริมสหกรณ์ · ใบสำคัญการจดทะเบียนGroup reg. no. · 12 monthsเลขทะเบียนกลุ่ม · 12 เดือน
community_enterprise
วิสาหกิจชุมชน
cooperative_groupกรมส่งเสริมการเกษตร · registration certificate (ท.ว.ช.)กรมส่งเสริมการเกษตร · ทะเบียนวิสาหกิจชุมชนEnterprise code · annual renewal, confirmed at applicationรหัสวิสาหกิจชุมชน · ต่ออายุรายปี ยืนยันตอน apply
government_agency
ส่วนราชการ
public_bodyNo registrar. Established by statute or royal decree — the law IS the instrument (สอน., กอน., OCSF: พ.ร.บ. อ้อยและน้ำตาลทราย พ.ศ. 2527)ไม่มีนายทะเบียน จัดตั้งโดยกฎหมาย — ตัวกฎหมายคือตราสารTaxpayer 13 · never expires; the citation is the evidenceเลขผู้เสียภาษี 13 · ไม่หมดอายุ การอ้างกฎหมายคือหลักฐาน
state_enterprise
รัฐวิสาหกิจ
public_bodyEstablishing act (e.g. ธ.ก.ส.)พ.ร.บ. จัดตั้ง (เช่น ธ.ก.ส.)Taxpayer 13 · never expiresเลขผู้เสียภาษี 13 · ไม่หมดอายุ
foundation_association
มูลนิธิ / สมาคม
civil_juristicกรมการปกครอง · registration certificateกรมการปกครอง · ใบสำคัญการจดทะเบียนJuristic person no. 13 · 12 monthsเลขนิติบุคคล 13 หลัก · 12 เดือน
sole_proprietor
ทะเบียนพาณิชย์
natural_personDBD via the local authority · commercial registration (พ.ค. 0403)กรมพัฒนาธุรกิจการค้าผ่านท้องถิ่น · ทะเบียนพาณิชย์Commercial reg. no.; the holder remains a natural person — no juristic personalityเลขทะเบียนพาณิชย์ · ผู้ถือยังเป็นบุคคลธรรมดา ไม่มีสภาพนิติบุคคล
null
หน่วยงานภายใน
internalThe default and the common case — a ฝ่าย, a กอง, a region, a factory site. Not a legal body and never claims to be.ค่าตั้งต้นและกรณีปกติ — ฝ่าย กอง ภูมิภาค หรือไซต์โรงงานNone. Holds no registration and requires none.ไม่มี ไม่ถือทะเบียนและไม่ต้องมี

Registrars, instruments and periods are stated as drafted and are confirmed row by row at application; each is a data row, so a correction is a graph edit. The four classes — private_juristic · cooperative_group · public_body · civil_juristic · natural_person · internal — exist so a capacity can name what it will accept without enumerating forms.นายทะเบียน ตราสาร และระยะเวลาเป็นฉบับร่าง ยืนยันทีละแถวตอน apply ทุกแถวเป็นข้อมูล การแก้จึงเป็นการแก้กราฟ กลุ่มมีไว้ให้ capacity ระบุสิ่งที่ยอมรับโดยไม่ต้องไล่ชื่อรูปแบบ

3.2 What each capacity requires after the change3.2 capacity แต่ละตัวต้องการอะไรหลังการเปลี่ยน

CapacitycapacityApplied holder_kindholder_kind ที่ apply แล้วBecomesกลายเป็น
mill · group · operatororganization_onlyrequires: [legal_registration], class private_juristic. A factory group's apex and its member operating bodies are companies; so is Cane Agency.requires: [legal_registration] กลุ่ม private_juristic
ocsb · board · ocsforganization_onlyrequires: [legal_registration], class public_body, alongside the applied statutory appointment (ocsb_appointment, board_appointment, ocsf_appointment) which is unchanged. This is the row Rev 0.1 got wrong.กลุ่ม public_body ควบคู่กับการแต่งตั้งตามกฎหมายที่ apply แล้ว นี่คือแถวที่ Rev 0.1 ผิด
bankorganization_onlyrequires: [legal_registration, bot_licence], classes private_juristic OR public_body — ธ.ก.ส. is a state enterprise and is the lender that matters most to a cane farmer.รับทั้ง private_juristic และ public_body — ธ.ก.ส. เป็นรัฐวิสาหกิจ
quota · farmer · contractor · leadindividual_or_organizationNo form requirement at all — the flag simply goes. A lone farmer, a cooperative and a บริษัทจำกัด hold these on identical terms, which is what the applied value already meant and could not express.ไม่มีข้อกำหนดรูปแบบเลย ชาวไร่คนเดียว สหกรณ์ และบริษัทจำกัด ถือด้วยเงื่อนไขเดียวกัน

4. Twelve provisional rules4. กฎชั่วคราวสิบสองข้อ

R-CONTAINER retires Party.kind · candidate A-86เลิก Party.kind · ธรรมเนียม A-86a tenant is never a legal bodytenant ไม่เคยเป็นนิติบุคคลA tenant is a container — of memberships, departments, books and capacities — and is never itself a natural person, a company, a cooperative or a government agency. Party.kind is RETIRED, not renamed: every value it could take is either a headcount (false the day a second member joins) or a registration fact stored better one level down. legal_name? and registration_no? are deleted from the tenant in the same act.tenant คือภาชนะ และไม่เคยเป็นบุคคลธรรมดา บริษัท สหกรณ์ หรือหน่วยราชการเอง Party.kind ถูกเลิก ไม่ใช่เปลี่ยนชื่อ พร้อมลบ legal_name? และ registration_no?
R-ONETREE merges Domain(tier) + LegalEntity · candidate A-87รวม Domain(tier) + LegalEntityone node type in the organisational treeโหนดชนิดเดียวในต้นไม้เชิงองค์กรThe tenant's ORGANISATIONAL hierarchy has exactly one kind of node: the Department. It self-parents, it is the thing a grant is scoped to, and it MAY carry a legal classification. Domain's organisational role and LegalEntity are both absorbed — not deprecated in place, not kept as a view. No second hierarchy of organisational units may be introduced later: a new organisational concept is a department with an attribute, or it is not organisational. Narrowed by client correction, 3 Aug 2026: this rule governs the organisational axis ONLY and says nothing about physical places, which are R-SITE's business.ลำดับชั้นเชิงองค์กรของ tenant มีโหนดชนิดเดียวคือ Department Domain เฉพาะบทบาทเชิงองค์กร และ LegalEntity ถูกดูดกลืนทั้งคู่ แคบลงตามคำแก้ของลูกค้า: กฎนี้คุมเฉพาะแกนเชิงองค์กร ไม่เกี่ยวกับสถานที่ทางกายภาพ
R-SITE client correction · candidate A-88คำแก้ของลูกค้า · ธรรมเนียม A-88a place is not a business unitสถานที่ไม่ใช่หน่วยธุรกิจA Site is a physical location the tenant operates from — an address, a province, optionally a point on the map. It is flat: sites have no parents and no children, because a place does not contain a place in any sense this platform needs (a weighbridge is equipment AT a site, not a site within a site). A site is never a legal body, holds no registration, appears in no ownership edge and is never a unit of responsibility. A department may not be given an address, and a site may not be given a parent — the two errors this rule exists to forbid.Site คือ สถานที่ทางกายภาพที่ tenant ดำเนินงาน มีที่อยู่ จังหวัด และพิกัดได้ เรียงชั้นเดียว ไม่มีแม่ไม่มีลูก และไม่เคยเป็นนิติบุคคล ห้ามให้ที่อยู่แก่หน่วยงาน และห้ามให้แม่แก่สถานที่
R-PRESENCEpresence is a row, not an attributeการตั้งอยู่คือแถว ไม่ใช่แอตทริบิวต์A department stands at zero or more sites and a site hosts zero or more departments, through DepartmentSite. Zero is valid on both sides: an accounts department has no place worth recording, and a site bought but not yet staffed hosts nobody. One row may be marked is_primary for the department, which is what an address block prints when a document needs one. Neither side may be reduced to a column on the other — not Department.site_id, not Site.department_id — because the client's configuration (“span across multiple sites or be at a single site”) is a property of the TENANT's arrangement, not of the model.หน่วยงานตั้งอยู่ได้ ศูนย์สถานที่ขึ้นไป และสถานที่รองรับหน่วยงานได้ศูนย์หน่วยขึ้นไป ผ่าน DepartmentSite แถวหนึ่งเป็น is_primary ได้ ห้ามยุบด้านใดด้านหนึ่งเป็นคอลัมน์ของอีกด้าน
R-ONESCOPE DECIDED by OQ-12ตัดสินแล้วตาม OQ-12responsibility scopes permission; place does notความรับผิดชอบกำหนดสิทธิ์ สถานที่ไม่A grant is scoped to a department and only a department; the applied domain scope axis is renamed, not joined by a second. Where a permission must be physically bounded — a weighbridge clerk at one station — the bound is expressed as the department that operates there, which is the unit whose duty it actually is. Two scope axes would double the scope-overlap predicate of PROP-045 and make every refusal message ambiguous about which axis refused. One axis, one sentence, one reason.สิทธิ์ถูกจำกัดขอบเขตด้วยหน่วยงานเท่านั้น หากต้องจำกัดเชิงกายภาพ ให้แสดงเป็นหน่วยงานที่ดำเนินงานที่นั่น สองแกนจะทำให้ predicate ของ PROP-045 ซับซ้อนเป็นสองเท่า
R-ROOTevery tenant has exactly one root departmentทุก tenant มีหน่วยงานรากหนึ่งเดียวA tenant is founded with one root department, created by the same act that founds the tenant (PROP-074 FR-392: founding is a consequence of the first capacity request). The tree is therefore never empty and no code path may handle “a tenant with no place”. For the lone farmer this node is invisible and free: unnamed in the UI, unclassified, childless — the same backfill PROP-026 already applied when it gave every ungrouped mill “root and site in one node”. Amended at Rev 0.7 review: the root MAY be classified as a legal body, and the first registration CLASSIFIES THE ROOT rather than adding a child under it — so a single-company tenant is one node, not two, and OQ-8's rule (no registered department beneath an internal one) is never breached by the ordinary path through WF-116.tenant ถูกก่อตั้งพร้อมหน่วยงานรากหนึ่งโหนด ต้นไม้จึงไม่เคยว่าง สำหรับชาวไร่คนเดียวโหนดนี้มองไม่เห็นและไม่มีต้นทุน แก้ที่ Rev 0.7: รากถูกจัดเป็นนิติบุคคลได้ และการจดทะเบียนครั้งแรกจัดประเภทให้ราก ไม่ใช่เพิ่มลูกใต้ราก หน่วยงานที่มีบริษัทเดียวจึงเป็นโหนดเดียว ไม่ใช่สอง
R-FORM under A-80ใต้ A-80the legal form is data, never a classรูปแบบนิติฐานะคือข้อมูล ไม่ใช่คลาสA department's legal_form is null (an internal unit) or one row of the legalForms register, and that register is DATA in the graph under A-80: adding, removing or re-parameterising a form is a graph change and a document change, never a deploy and never a subclass. Each row carries its class, registrar, identifier format, evidence instrument and re-attestation period, and everything downstream — what to ask for, whom to check with, when to re-check — is read from the row. The client's “etc.” is satisfied structurally, not by a longer enum.legal_form ของหน่วยงานคือ null หรือหนึ่งแถวในทะเบียน legalForms ซึ่งเป็นข้อมูลในกราฟใต้ A-80 การเพิ่มรูปแบบคือการแก้กราฟและเอกสาร ไม่ใช่การ deploy และไม่ใช่คลาสลูก คำว่า “และอื่น ๆ” ของลูกค้าถูกตอบเชิงโครงสร้าง
R-REGISTERED candidate FR-394FR-394standing is read, never writtenสถานะถูกอ่าน ไม่ใช่ถูกเขียนA department is registered exactly when it carries a legal_form and a legal_registration qualification in state verified; a tenant's registered standing is the set of form classes its departments are registered under. Both are derived, cached reads with stated definitions — never an authored column, never an operator toggle. Under A-79 the registrar (or the statute) confers standing and we only record it. A lapsed extract is not a demotion; it is a lapsed qualification, and FR-393's consequence chain already says what happens next.หน่วยงาน จดทะเบียนแล้ว เมื่อมี legal_form และ qualification legal_registration สถานะ verified ส่วนสถานะของ tenant คือเซ็ตของกลุ่มรูปแบบที่หน่วยงานของมันจดไว้ ทั้งคู่เป็นค่าที่อนุมานและแคชไว้ ไม่ใช่คอลัมน์ที่เขียนเอง
R-REQUIRES retires holder_kind · corrects Rev 0.1เลิก holder_kind · แก้ Rev 0.1the capacity names a class, the register names the registrarcapacity ระบุกลุ่ม ทะเบียนระบุนายทะเบียนEvery capacity marked organization_only declares requires: [legal_registration] and the form classes it accepts; holder_kind is retired with the enum it referenced. A capacity may never name a single registrar — that is what Rev 0.1 did, and it would have refused สอน., กอน., OCSF and ธ.ก.ส. Validator 7 (“no individual party holding an organization_only capacity”) is rewritten, not deleted: no capacity is granted whose required qualifications are unverified, or whose holder has no department of an accepted form class. The guarantee is upgraded either way: today a party merely ASSERTS registration; tomorrow it must hold a verified one with an expiry a scheduler can read.capacity ที่เป็น organization_only ประกาศ requires: [legal_registration] พร้อมกลุ่มรูปแบบที่ยอมรับ capacity ห้ามระบุชื่อนายทะเบียนรายเดียว ซึ่งเป็นสิ่งที่ Rev 0.1 ทำและจะปฏิเสธ สอน. กอน. OCSF และ ธ.ก.ส. validator ข้อ 7 ถูกเขียนใหม่ ไม่ใช่ลบ
R-NOTCAPTABLEthe tree is not the cap tableต้นไม้ไม่ใช่ทะเบียนผู้ถือหุ้นparent_department_id is administrative containment: single-parent, acyclic, one tree per tenant. Shareholding stays in OwnershipEdge: many-to-many, percentage-weighted, cycles legal as input, control DERIVED (PROP-026 OQ-10). The two often agree and are not the same relation — a holding company may sit above an operating company administratively while owning 60% of a third that reports elsewhere. No rule, screen or report may infer ownership from the parent link, or containment from an ownership edge. This is the one place where the merge must NOT go further.parent_department_id คือการสังกัดเชิงบริหาร แม่เดียว ไม่มีวงจร หนึ่งต้นต่อ tenant ส่วนการถือหุ้นอยู่ใน OwnershipEdge ซึ่งเป็นหลายต่อหลายพร้อมสัดส่วน ห้ามอนุมานความเป็นเจ้าของจากลิงก์แม่ หรืออนุมานการสังกัดจากเส้นการถือหุ้น
R-DEPTH amends PROP-026 OQ-14แก้ PROP-026 OQ-14the three-tier cap is liftedยกเพดานสามชั้นออกThe applied “THREE TIERS MAXIMUM” is withdrawn. A department tree is of arbitrary depth, bounded only by an operational guardrail (proposed: 8 levels, refusable with a stated reason) so that materialised paths and permission resolution stay bounded. Re-parenting remains allowed and moves no data (PROP-026 DR-6); the materialised department_path is recomputed for the subtree, and department_id remains the identity. The applied clause “a site domain never holds children” does not need withdrawing — it disappears with the site's departure from the tree (R-SITE).ข้อความ “สามชั้นสูงสุด” ถูกถอน ต้นไม้หน่วยงานลึกเท่าใดก็ได้ โดยมีเพดานเชิงปฏิบัติการ (เสนอ 8 ชั้น) ส่วนข้อ “site ไม่มีลูก” หายไปเองเมื่อ site ออกจากต้นไม้
R-NOUPGRADE supersedes FR-358 / WF-116แทนที่ FR-358 / WF-116there is no upgrade, only a registrationไม่มีการยกระดับ มีแต่การจดทะเบียนThe individual→organization upgrade ceases to be a state transition and becomes the act of classifying a department and registering it. WF-116 keeps its screens and its plain-language acknowledgement (NFR-125 unchanged), but what it writes is a department row, a form and a qualification — not an enum flip. The one-way rule needs no enforcement: a registrar's act is not ours to undo, and a body that ceases to exist is closed. What the workflow gains is the ability to run again, for the second department, which the applied one-way transition made structurally impossible.การยกระดับบุคคล→องค์กรกลายเป็นการจัดประเภทหน่วยงานและจดทะเบียนมัน WF-116 คงหน้าจอและการรับทราบไว้ กฎทางเดียวไม่ต้องบังคับใช้ และ workflow รันซ้ำสำหรับหน่วยงานที่สองได้
What this proposal deliberately does NOT doสิ่งที่ข้อเสนอนี้ตั้งใจไม่ทำIt does not make the department or the site an owner of records, and it does not let either hold a capacity. NFR-141 is applied and untouched: one owning key, forever. Records are owned by the tenant; a department is a UNIT inside it and a site is a PLACE it operates from. Either as an owner would need a second isolation wall with its own X1–X4 equivalents — the objection PROP-074 spent a whole document refusing on the person axis, refused again here on both organisational axes. Capacities remain tenant-held; departments scope the GRANTS that operate them; sites scope nothing (R-ONESCOPE). And a site is not a plot: cultivation areas are Plot/Field rows with area, crop and geometry, applied long ago and untouched here.ไม่ทำให้หน่วยงานหรือสถานที่เป็นเจ้าของระเบียน และไม่ให้ถือ capacity NFR-141 ไม่ถูกแตะ ระเบียนเป็นของ tenant สิทธิ์จำกัดขอบเขตด้วยหน่วยงาน ส่วนสถานที่ไม่จำกัดอะไรเลย และสถานที่ไม่ใช่แปลง พื้นที่เพาะปลูกยังคงเป็น Plot/Field ตามเดิม

5. The application map5. แผนที่การ apply

Rev 0.1 swept the kind / holder_kind / upgrade tokens on 3 Aug 2026 and found 24 graph nodes and 16 documents; that sweep stands and is the floor. This revision adds a second sweep — every occurrence of Domain, domain_id and LegalEntity — whose count is taken at application and which is materially larger. Both are listed below; the second is marked [re-sweep] where the count is not yet taken.การกวาดของ Rev 0.1 (24 โหนด 16 เอกสาร) ยังใช้ได้และเป็นพื้น ฉบับนี้เพิ่มการกวาดชุดที่สองสำหรับ Domain domain_id และ LegalEntity ซึ่งนับตอน apply และใหญ่กว่าอย่างมีนัยสำคัญ

5.1 The graph5.1 กราฟ

NodeโหนดWhat the pass doesรอบนี้ทำอะไร
entities.PartyDelete kind, legal_name?, registration_no?; rewrite the note (it currently defines the enum in its second sentence and calls the organization party “the former Tenant”).ลบสาม attribute และเขียนหมายเหตุใหม่
entities.Domain → DepartmentRenamed, widened, and lightened. parent_domain_id? → parent_department_id?; domain_path → department_path; kind and mill_id? leave for Site; gains the legal block; note rewritten to drop the three-tier cap (R-DEPTH). codeFormat DOM-######## → DEP-########.เปลี่ยนชื่อ ขยาย และเบาลง โดย kind และ mill_id? ย้ายไป Site
entities.Site · DepartmentSite newTwo new entities, homed in SPEC-ERD-FED with the department. Site takes the applied site-domain facts (mill_id, the 1:1 with a factory) plus an address block and province_code, which Party.base_province and LegalEntity.base_province hand over. DepartmentSite is the presence row, unique on the pair, one flag. codeFormat SIT-########.เอนทิตีใหม่สองตัว อยู่บ้านที่ SPEC-ERD-FED โดย Site รับข้อเท็จจริงของ site domain และ base_province มา
entities.LegalEntityRetired as an entity; its six attributes move onto Department as the optional legal block. Its codeFormat LEN-#### is retired. Every citation follows the merge.เลิกเป็นเอนทิตี แอตทริบิวต์หกตัวย้ายไปเป็นบล็อกนิติฐานะบน Department
entities · Membership · Mill · Farmer · ContractorFour notes drop “an individual party” / “an organization party”. Mill.legal_entity_id → Mill.department_id, meaning unchanged.หมายเหตุสี่รายการเลิกใช้วลีเดิม และ Mill.legal_entity_id เปลี่ยนชื่อ
legalForms newNew register, eleven rows plus the null default, in the shape of qualifications and governed by A-80. Section 3.1 is the content.ทะเบียนใหม่ สิบเอ็ดแถวกับค่า null รูปทรงเดียวกับ qualifications
qualifications.nodesOne row added — legal_registration, issuer resolved per form row, holder tenant, subject a department, expiry per form (OQ-6). Eight rows become nine.เพิ่มหนึ่งแถว legal_registration โดยผู้ออกอ่านจากแถวรูปแบบ
capacities.nodesSeven organization_only nodes gain requires + accepted form classes per Section 3.2; holder_kind retired on all eleven; four descriptions drop the enum phrasing; the $comment paragraph that introduced holder_kind at v0.41.0 is superseded in place.เจ็ดโหนดได้ requires พร้อมกลุ่มรูปแบบ เลิก holder_kind ทั้งสิบเอ็ด
relationships.edgesParty→Domain, Domain→Domain, SurfaceRoleGrant→Domain, Domain→PermissionGroup, LegalEntity→OwnershipEdge, OwnershipEdge→LegalEntity and FactoryGroup→LegalEntity re-point at Department. Party 1 — 1..* Department replaces Party 1 — 0..1 Domain (R-ROOT). Three new edges: Party 1 — 0..* Site, Department 0..* — 0..* Site through DepartmentSite, and Site 1 — 0..1 Mill (which LegalEntity→Mill no longer carries). The Domain→Domain rule loses the three-tier sentence.เส้นเดิมเจ็ดเส้นชี้ไปที่ Department และ เพิ่มสามเส้น สำหรับ Site และ DepartmentSite
dataModeling entities · aggregatesThe Domain profile absorbs the LegalEntity profile: table department, pk department_id, fks tenant_id/parent_department_id/mill_id, uniques partial: (legal_form, registration_no) and tax_id among LIVE rows (OQ-5), typeOverrides for the legal block, home SPEC-ERD-FED. The LegalEntity aggregate root merges into the Department root and moves to the federation context; OwnershipEdge stays in its own boundary; the registration qualification commits in the qualification boundary applied at v0.45.0, never inside the tenant boundary.โปรไฟล์ Domain ดูดกลืนโปรไฟล์ LegalEntity โดยความไม่ซ้ำเป็นแบบบางส่วนเฉพาะแถวที่ยังใช้งาน และรากของ aggregate ย้ายไป context federation
federation.permissionModelholderKinds retired; validator 7 rewritten per R-REQUIRES; the domain scope axis is renamed and its rule text (“an unscoped grant is a defect”) is unchanged in substance.เลิก holderKinds เขียน validator ข้อ 7 ใหม่ และเปลี่ยนชื่อแกนขอบเขต
workflows WF-116 · WF-76 · WF-80WF-116 re-specified end to end (screens and acknowledgement unchanged); WF-76 (group two-act attestation) and WF-80 (mill backfill) re-worded onto departments. A new step exists in none of them.ระบุ WF-116 ใหม่ และแก้ถ้อยคำ WF-76 กับ WF-80 ไม่มี workflow ใดได้ขั้นตอนใหม่
requirementsFR-358 rewritten (R-NOUPGRADE) · FR-357 loses its holder_kind half and the acl.err.holder_kind code · FR-44, FR-263, FR-213/FR-214 (domain backfill) and FR-63 (grant uniqueness) re-worded · two new FRs (R-REGISTERED, R-DEPTH guardrail) · candidate conventions A-86 (R-CONTAINER) and A-87 (R-ONETREE). Ids taken at application.แก้ FR หลายรายการ เพิ่มสอง FR และสองธรรมเนียม รหัสจะได้รับตอน apply
eventsPer OQ-4: PartyUpgradedToOrganization retired in favour of DepartmentRegistered; a DepartmentReparented event is proposed for the subtree recompute. Free — nothing consumes the old name.ตาม OQ-4 เลิกเหตุการณ์เดิมและใช้ DepartmentRegistered ฟรี เพราะยังไม่มีอะไรบริโภคชื่อเดิม
glossary · roles · contexts · $commentNew terms department and legal form; domain and legal entity retired with pointers; the membership term drops “an individual party's self-membership”; factory_group and federation context notes re-worded; the graph $comment takes the version paragraph.เพิ่มคำว่า department และ legal form เลิกคำว่า domain และ legal entity พร้อมตัวชี้

5.2 The documents5.2 เอกสาร

DocumentเอกสารWhat movesอะไรขยับ
SPEC-ERD-GRP · SPEC-DDD-GRP · SPEC-PRD-GRP · SPEC-APP-GRPThe heaviest, and new in this revision. LegalEntity and Domain are both homed in the group corpus today. Both move out to FED as one entity; GRP keeps OwnershipEdge, the control test, GroupChartMap, InterCompanyRule and consolidation, and cites the merged entity. [re-sweep]หนักที่สุดและใหม่ในฉบับนี้ ทั้งสองเอนทิตีย้ายออกไป FED ส่วน GRP คงกลไกกลุ่มไว้และอ้างอิงแทน
SPEC-ERD-FED · SPEC-DDD-FEDReceive Department as a home entity with its persistence profile, partial uniques and consistency boundary; the tenant attribute list loses three columns; the legalForms register is documented beside the qualification register. [re-sweep] · Rev 0.1 counted 15 + 8.รับ Department เป็นเอนทิตีบ้าน พร้อมโปรไฟล์และขอบเขต
SPEC-PRD-FEDSection 14's standing register gains the ninth qualification and the requires entries; the holder_kind passages of Section 13 retire; the FR-358 feature row is rewritten; a new section states the legal-form register. Rev 0.1 counted 27 hits.ข้อ 14 เพิ่ม qualification ตัวที่เก้า ข้อ 13 เลิก holder_kind และเพิ่มข้อใหม่สำหรับทะเบียนรูปแบบนิติฐานะ
SPEC-PWF-FED · SPEC-PWF-GRPWF-116 re-specified; WF-76 and WF-80 re-worded; WF-24/WF-01 prose drops “organization party”. Rev 0.1 counted 14 in FED.ระบุ WF-116 ใหม่ และแก้ถ้อยคำ workflow อื่น
SPEC-APP · SPEC-APP-FEDSection 3's capacity table loses its Party kind column and gains Requires + Accepted forms; the FR-358/WF-116 citations follow.ตาราง capacity เสียคอลัมน์ชนิด party และได้สองคอลัมน์ใหม่
SPEC-ERD · SPEC-ERD-CEC · SPEC-PRD-FINMaster ERD index follows the merge; the contractor freelance/organization duality and the bank organization_only line are re-worded — the bank line materially, because of ธ.ก.ส.ดัชนี ERD หลักตามการรวม และบรรทัดธนาคารถูกแก้อย่างมีสาระเพราะ ธ.ก.ส.
SPEC-APP-CFC · CEC · FIN · MILL · OPSOne “individual or organization party” phrase each in the customer-profile row. Editorial, but they are the sentences a reader meets first.ไฟล์ละหนึ่งวลีในแถวโปรไฟล์ลูกค้า
Every document citing a domainทุกเอกสารที่อ้าง domainThe scope of the rename, honestly stated: domain_id appears in grant, permission-group, session and directory-group profiles and in the permission chapters of several corpora. The count is taken at application and it is the largest single mechanical cost of this proposal — which is an argument for applying it BEFORE PROP-073, not for splitting it (OQ-11). [re-sweep]ขอบเขตของการเปลี่ยนชื่อ พูดตรง ๆ: domain_id อยู่ในโปรไฟล์ของสิทธิ์ กลุ่มสิทธิ์ เซสชัน และไดเรกทอรี จำนวนนับตอน apply และเป็นต้นทุนเชิงกลไกที่ใหญ่ที่สุดของข้อเสนอนี้
What is NOT touched, verified by sweepสิ่งที่ไม่ถูกแตะ ตรวจแล้วwireframes/ (WF-001, WF-002 — zero mentions of any affected token) · decks/ · videos/ · 3ds/ · web/ (the public site names no schema noun, per R-FARM) · apps/ (unscaffolded by project rule, so there is no data migration). The whole change is text in the graph and in the documents. Were apps/ scaffolded, the migration would be: every domain row of kind root or tier becomes a department row; every domain row of kind site becomes TWO rows — a site, and the department that operates at it, joined by one presence row; every organization-kind party writes one legal department from its legal_name and registration_no with form company_limited and a verified registration; every legal-entity row merges onto the department its mill already resolves to; every individual-kind party writes a bare root.wireframes/ decks/ videos/ 3ds/ web/ apps/ ไม่ถูกแตะ ไม่มีการย้ายข้อมูล เพราะ apps/ ยังไม่ถูกสร้าง หากมี การย้ายคือแถว domain กลายเป็นแถว department และ party แบบองค์กรเขียนหน่วยงานนิติบุคคลหนึ่งแถว

6. Effect on other proposals6. ผลต่อข้อเสนออื่น

Proposalข้อเสนอEffectผลWhat it must reviseต้องแก้อะไร
PROP-026
factory group · APPLIED v0.25.0
Amendedถูกแก้ไขNew in Rev 0.2, and the most consequential row in this table. An applied proposal is amended, not contradicted: LegalEntity and Domain merge (D-2 + D-3/D-4), the three-tier cap of its OQ-14 is withdrawn (R-DEPTH), and Mill.legal_entity_id is renamed. Untouched: OwnershipEdge, the control test, the apex rule, GroupChartMap, InterCompanyRule, the consolidation model, and the group's own capacity. PROP-026 built the legal body and then had nowhere to hang it but a factory group; this gives it the general home its own note implies. The amendment must be written into the graph in the same pass, or v0.25.0 text will contradict the new version.ใหม่ใน Rev 0.2 และเป็นแถวที่สำคัญที่สุดในตารางนี้ ข้อเสนอที่ apply แล้วถูกแก้ไข ไม่ใช่ถูกขัด — รวมสองเอนทิตี ถอนเพดานสามชั้น และเปลี่ยนชื่อ FK ของโรงงาน ไม่ถูกแตะ: การถือหุ้น การทดสอบอำนาจควบคุม และแบบจำลองการรวมงบ ต้องเขียนการแก้ไขลงกราฟในรอบเดียวกัน
PROP-014 · PROP-015 · PROP-013
government cluster · APPLIED
Unblockedถูกปลดล็อกThese applied proposals put กอน., สอน. and OCSF on the platform as party-held capacities with statutory appointments. They are the tenants the client is describing, and Rev 0.1 would have broken them (K-8). Nothing in them changes: no new capacity, no new workflow. What they gain is a legal form that fits (public_body), evidence that is the establishing act rather than a company extract, and a department tree in which กอง and ฝ่าย can hold their own scoped grants.ข้อเสนอที่ apply แล้วเหล่านี้คือ tenant ที่ลูกค้าพูดถึง และ Rev 0.1 จะทำให้พัง ไม่มีอะไรในนั้นเปลี่ยน แต่ได้รูปแบบนิติฐานะที่ตรง หลักฐานที่ถูกต้อง และต้นไม้หน่วยงานที่ กอง และ ฝ่าย ถือสิทธิ์ตามขอบเขตได้
PROP-042 · PROP-045
permission scope
Rename onlyเปลี่ยนชื่ออย่างเดียวThe scope axis and the overlap predicate reason over the tenant tree. The mechanism is exactly what the client asked for and it is already applied — it changes name, not behaviour. One thing to check: any rule that assumes a bounded three-level path must be re-read under R-DEPTH.แกนขอบเขตและ predicate ทำงานบนต้นไม้ของ tenant กลไกคือสิ่งที่ลูกค้าขอและ apply แล้ว เปลี่ยนแค่ชื่อ ต้องตรวจ: กฎที่สมมติว่าเส้นทางลึกไม่เกินสามชั้น
PROP-073
one word: Tenant
Answers its OQ-11ตอบ OQ-11Unchanged from Rev 0.1 in substance, plus one. (1) The crosswalk row Party.kind = organization → Tenant.kind = company is WITHDRAWN. (2) Its OQ-6 event rename is moot under OQ-4 here. (3) R-KIND loses its subject; re-point it at Department.legal_form. (4) New: its census must add Domain / domain_id / LegalEntity to the hold-list — if this proposal is applied first they are already gone, and if it is not, the rename must not touch words this proposal deletes.สาระเหมือน Rev 0.1 บวกหนึ่งข้อ แถวในตารางแปลงถูกถอน OQ-6 เป็นโมฆะ R-KIND เสียประธาน และ ใหม่: การสำรวจคำต้องเพิ่ม Domain และ LegalEntity เข้าไปในรายการรอ
PROP-072
one person, many tenants
Reviseต้องแก้Its M-1 ladder — person → individual tenant → organization tenant — has two rungs after this, not three. Its invitation model is unaffected, and gains something: an invitation may now name a DEPARTMENT as well as a position, which is how a ministry invites a section head without granting him the ministry.บันได M-1 เหลือสองขั้น ไม่ใช่สาม แบบจำลองคำเชิญไม่ได้รับผล และได้เพิ่ม: คำเชิญระบุหน่วยงานได้ด้วย
PROP-070
farmer onboarding
LightเบาThe farmer meets none of this. Any onboarding step that reads or writes kind at founding must stop; FR-392 already made founding a consequence of the first capacity request, and R-ROOT adds one invisible row to it.ชาวไร่ไม่พบสิ่งเหล่านี้ ขั้นตอนที่เขียน kind ตอนก่อตั้งต้องเลิก และ R-ROOT เพิ่มแถวที่มองไม่เห็นหนึ่งแถว
PROP-039
pricing / SKU tree
Checkต้องตรวจIf any SKU is priced per organization-kind tenant, the basis must become per tenant, per registered department, or per site — three different numbers for the same customer after this. PROP-026 prices the group tier per member factory, which is the precedent. To resolve before that draft leaves skeleton stage.ถ้า SKU ใดคิดราคาต่อ tenant ชนิดองค์กร ฐานต้องเป็นต่อ tenant ต่อหน่วยงานที่จดทะเบียน หรือต่อไซต์ — สามตัวเลขที่ต่างกัน
PROP-023 · PROP-010
the ledger · books & statements
NamedถูกระบุLedgerAccount.owner_party_id makes the ledger tenant-addressed while Mill.legal_entity_id makes it body-addressed. After this the question sharpens to which department's books — OQ-10, out of scope here and named as the next draft.สมุดบัญชีผูกกับ tenant ที่นั่นแต่ผูกกับนิติบุคคลใน Mill คำถามคมขึ้นเป็น “บัญชีของหน่วยงานใด” — OQ-10
PROP-030 · PROP-031 · PROP-035
transfer station · weighbridge · hardware
Given a homeได้บ้านNew in Rev 0.3. The transfer station, the weighbridge and the hardware installed at it are the platform's clearest PLACES, and until now they had no entity that meant “a place this tenant operates from” — only a site domain that also had to be an organisational node. Site is where they attach (site_kind = transfer, hardware to site_id). To check at application: any draft that hung a station off a domain must hang it off a site instead. Same for PROP-024's booking location and PROP-061–PROP-063's lanes.ใหม่ใน Rev 0.3 ลานรับซื้อ ตราชั่ง และฮาร์ดแวร์คือสถานที่ที่ชัดที่สุดของแพลตฟอร์ม และเพิ่งมีเอนทิตีที่ตรงความหมายก็ตอนนี้ ต้องตรวจ: ร่างใดที่แขวนสถานีไว้กับ domain ต้องย้ายมาแขวนกับ site
The other sevenอีกเจ็ดฉบับNoneไม่มีPROP-071 · PROP-065 · PROP-062 · PROP-051 · PROP-041 · PROP-038 · PROP-033 and abandoned PROP-034 name none of the affected objects. Re-swept 3 Aug 2026 for Domain and site as well as kind.ไม่ได้เอ่ยถึงวัตถุที่เกี่ยวข้อง กวาดซ้ำแล้ว 3 ส.ค. 2569

7. Open questions7. คำถามที่ยังเปิดอยู่

7.1 Review of the remaining questions, after four decisions7.1 การทบทวนคำถามที่เหลือ หลังการตัดสินสี่ข้อ

Every remaining question re-read against the client’s decisions of 3 Aug 2026 and against Rev 0.3’s second axis. Four are closed DE FACTO — the decision that answers each is named, so nothing is closed by assumption. One is REVISED, because the review found a contradiction between R-ROOT and OQ-8. Three STAND as written. Three have since been DECIDED outright — OQ-5, OQ-7 and OQ-12 — and their rows record that rather than the review’s verdict.อ่านคำถามที่เหลือทุกข้อใหม่เทียบกับผลตัดสินของลูกค้าเมื่อ 3 ส.ค. 2569 และกับแกนที่สองของ Rev 0.3 สี่ข้อปิดโดยพฤตินัย หนึ่งข้อถูกแก้ สามข้อคงเดิม และสามข้อถูกตัดสินไปแล้วหลังจากนั้น คือ OQ-5 OQ-7 และ OQ-12

Questionข้อVerdictผลOn what basisด้วยเหตุใด
OQ-5DECIDEDตัดสินRewritten in plain language at Rev 0.10 and decided at Rev 0.11: the two rules, both about LIVE rows. OQ-2’s merge had already forced the shape — the constraint sits on department beside every internal ฝ่าย, so both indexes are partial.การรวมตาม OQ-2 ย้ายข้อจำกัดไปอยู่บนตารางที่มีหน่วยงานภายในด้วย จึงต้องเป็นแบบบางส่วน
OQ-6Closed de factoปิดโดยพฤตินัยAnswered by R-FORM plus Section 3.1: once every form is a DATA row carrying its own re-attestation period, “does it expire” has no single answer to give — the row answers it. Only the per-row numbers remain, and they are confirmed at application.ตอบด้วย R-FORM กับข้อ 3.1 — เมื่อทุกรูปแบบเป็นแถวข้อมูลที่ถือระยะเวลาของตัวเอง แถวคือคำตอบ
OQ-7DECIDEDตัดสินRevised at Rev 0.7 with the site clause Rev 0.3 had left out, and decided at Rev 0.12: no — one LIVE department per registration, transferable by a recorded operator act.Rev 0.3 เพิ่มสถานที่เข้ามา แต่กฎการโอนไม่ได้พูดถึงมัน โรงงานที่เปลี่ยนมือนำที่ดินไปด้วย
OQ-8Revised — contradiction foundแก้ — พบข้อขัดIts rule and R-ROOT could not both hold. R-ROOT founds every tenant with a BARE root; OQ-8 forbids a registered department beneath an internal one — so a farmer registering his first company would breach the rule on the ordinary WF-116 path. Fixed by amending R-ROOT: the root may be classified, and the first registration classifies the root instead of adding a child.กฎของมันกับ R-ROOT อยู่ด้วยกันไม่ได้ แก้โดยให้รากถูกจัดประเภทได้ และการจดทะเบียนครั้งแรกจัดประเภทให้ราก
OQ-9StandsคงเดิมUntouched by all four decisions. Low risk either way, and the recommendation is unchanged.ไม่ถูกกระทบจากผลตัดสินทั้งสี่ข้อ
OQ-10Stands — sharperคงเดิม แต่คมขึ้นStill the next draft, but OQ-2 and OQ-3 make its answer mechanical: after the merge there is ONE ancestor path, and the 8-level guardrail makes “the nearest registered ancestor” a bounded, cheap read.ยังเป็นร่างถัดไป แต่ OQ-2 กับ OQ-3 ทำให้คำตอบกลายเป็นเรื่องเชิงกลไก
OQ-11Closed de factoปิดโดยพฤตินัยThe OQ-2 decision already committed the pass to ONE application together with the PROP-026 amendment, and the before-PROP-073 half is settled by that proposal's own OQ-7 ordering. Nothing left to decide, only to obey.ผลตัดสิน OQ-2 ผูกมัดรอบ apply เป็นรอบเดียวไว้แล้ว ไม่เหลืออะไรให้ตัดสิน
OQ-12DECIDED — noตัดสิน — ไม่Was the only live gate; OQ-3 had raised the price of saying yes (an 8-deep tree crossed with a flat site set inside a predicate written for one axis) and the client decided one scope axis the same day. No gate remains.เป็นด่านเดียวที่เหลือ และ OQ-3 ทำให้ต้นทุนของการตอบว่า ใช่ สูงขึ้น
OQ-13Closed de factoปิดโดยพฤตินัยDecided by applied NFR-141, not by this draft: one owning key, forever. A shared site row would be the platform's first two-owner record, which the applied non-functional requirement forbids. It was never ours to answer.ตัดสินด้วย NFR-141 ที่ apply แล้ว ไม่ใช่ร่างนี้
OQ-14StandsคงเดิมA documents question, unaffected by the four decisions. It belongs with OQ-10 in the books-and-statements draft if it is not answered here.เป็นคำถามด้านเอกสาร ไม่ได้รับผลจากสี่ผลตัดสิน
OQ-15Closed de factoปิดโดยพฤตินัยAnswered by applied A-80 and by R-FORM in this document: this class of list is DATA. Deciding it twice, differently, in one proposal is not available.ตอบด้วย A-80 ที่ apply แล้วและ R-FORM — รายการชนิดนี้เป็นข้อมูล
What the review leavesสิ่งที่การทบทวนทิ้งไว้Four live questions, and none of them gating — OQ-12 was decided the same day (Rev 0.8) and the gate it held is closed. One is a model decision the pass needs (OQ-8 parent/child forms) · one is a document question (OQ-14) · one is a naming judgement of no structural weight (OQ-9) · and one is deferred by design (OQ-10, the books draft). Nothing in the model is blocked at all: the four questions closed above are closed by decisions already taken — not by silence — and the six that remain are details the application pass settles, not choices it waits on.เหลือสี่ข้อ และไม่มีข้อใดเป็นด่าน สองข้อเป็นผลตัดสินเชิงแบบจำลองที่รอบ apply ต้องใช้ (OQ-5, OQ-8) สองข้อเป็นผลของการโอนหรือเอกสาร หนึ่งข้อไม่มีน้ำหนักเชิงโครงสร้าง หนึ่งข้อเลื่อนโดยเจตนา ส่วน OQ-12 ตัดสินแล้วที่ Rev 0.8 ไม่มีส่วนใดของแบบจำลองที่ถูกขัดอีกต่อไป

7.2 The questions7.2 ตัวคำถาม

OQ-1 answeredตอบแล้ว Is the base entity called Department?เอนทิตีฐานชื่อ Department หรือไม่

DECIDED by the client, 3 Aug 2026 — the recommendation is accepted: the base entity is Department. The Thai is therefore FIXED as หน่วยงาน — never แผนก and never กรม — so that กรม, กอง and ฝ่าย read as DEPTHS of หน่วยงาน rather than as competing words. OrgUnit and Unit are refused (Unit collides with the unit of measure this platform weighs cane in). Consequences, to be carried into the application pass: DEP-######## is the code format, department_id / parent_department_id / department_path are the column names, DepartmentSite and DepartmentRegistered keep the noun, and the glossary takes department · หน่วยงาน as a term with domain and legal entity retired against it. This decision is independent of OQ-2: if only LegalEntity moves and Domain stays, the entity that receives the legal block is still called Department.

ลูกค้าตัดสิน 3 ส.ค. 2569 — รับข้อเสนอแนะ: เอนทิตีฐานคือ Department คำไทยจึงถูกกำหนดเป็น หน่วยงาน ไม่ใช่ แผนก และไม่ใช่ กรม เพื่อให้ กรม กอง และ ฝ่าย กลายเป็นความลึกของหน่วยงาน ไม่ใช่คำที่แข่งกัน ผลที่ตามมา: DEP-######## เป็นรูปแบบรหัส ชื่อคอลัมน์คือ department_id และคณะ และคำศัพท์รับ department · หน่วยงาน โดยเลิก domain และ legal entity ผลตัดสินนี้อิสระจาก OQ-2

Original recommendation: Department, with the Thai fixed as หน่วยงาน.ข้อเสนอเดิม: Department โดยกำหนดคำไทยเป็น หน่วยงาน Two collisions were stated before the decision and both are accepted with it. (a) In Thai government, กรม is one specific tier under a กระทรวง — neutralised by fixing the Thai to หน่วยงาน. (b) Calling บริษัท ก. จำกัด a department reads oddly in English — the price of one word instead of two, and หน่วยงาน is the one Thai word that genuinely covers a government office, a company, a cooperative and an internal division alike.จุดชนสองจุดถูกระบุไว้ก่อนตัดสินและถูกยอมรับพร้อมกัน จุด (ก) แก้ด้วยการกำหนดคำไทยเป็น หน่วยงาน ส่วนจุด (ข) คือราคาของการมีคำเดียวแทนสองคำ

OQ-2 answeredตอบแล้ว Do Domain and LegalEntity both retire into it, or does only LegalEntity move?ทั้ง Domain และ LegalEntity ถูกยุบรวม หรือย้ายเฉพาะ LegalEntity

The cheap version of this proposal keeps Domain as it is and only gives the legal body a parent and a form. It costs almost nothing: no domain_id rename, no re-sweep, no amendment to an applied proposal. The full version merges the two.

ฉบับประหยัดคือคง Domain ไว้ตามเดิม และให้เฉพาะนิติบุคคลมีแม่และรูปแบบ ต้นทุนแทบเป็นศูนย์ ไม่ต้องเปลี่ยนชื่อ domain_id ไม่ต้องกวาดซ้ำ ไม่ต้องแก้ข้อเสนอที่ apply แล้ว ส่วนฉบับเต็มรวมทั้งสอง

DECIDED by the client, 3 Aug 2026 — the recommendation is accepted: merge both. The full version is taken. Domain and LegalEntity both retire into Department, and R-ONETREE is confirmed rather than provisional. The application pass therefore carries the whole cost in one go: the domain_id rename through the grant, permission-group, session and directory-group profiles; the PROP-026 amendment (both entities move out of the group corpus to FED, and its OQ-14 cap is withdrawn); and the second sweep of Section 5, whose count is taken at application. Two consequences to hold the pass to: the merge and the PROP-026 amendment ship together (OQ-11), and no released version may exist in which Department is the node but a Domain row still stands beside it.

ลูกค้าตัดสิน 3 ส.ค. 2569 — รับข้อเสนอแนะ: รวมทั้งสอง เอาฉบับเต็ม ทั้ง Domain และ LegalEntity ยุบเข้าสู่ Department และ R-ONETREE กลายเป็นกฎที่ยืนยันแล้ว รอบการ apply จึงรับต้นทุนทั้งหมดในคราวเดียว ทั้งการเปลี่ยนชื่อ domain_id และการแก้ไข PROP-026 โดยต้องส่งพร้อมกัน

Original recommendation: merge both — take the full version.ข้อเสนอเดิม: รวมทั้งสอง — เอาฉบับเต็ม The cheap version leaves the platform with two hierarchies over the same real-world thing and a correspondence that K-9 proves nothing enforces — and it leaves the three-tier cap in place, which K-10 shows fails on the first government tenant. The mechanical cost is a rename, and it will never again be as cheap as it is today: apps/ is unscaffolded, so there is no migration and no client to re-point. The judgement call is real, though, and the cost is the largest in this document — hence gating.ฉบับประหยัดทิ้งลำดับชั้นสองชุดไว้บนสิ่งเดียวกัน โดยไม่มีอะไรบังคับความสอดคล้อง และคงเพดานสามชั้นที่พังตั้งแต่ tenant ราชการรายแรก ต้นทุนคือการเปลี่ยนชื่อ และจะไม่ถูกเท่าวันนี้อีก เพราะ apps/ ยังไม่ถูกสร้าง

OQ-3 answeredตอบแล้ว Is the depth cap lifted entirely, or replaced with a number?ยกเพดานความลึกออกทั้งหมด หรือแทนด้วยตัวเลข

DECIDED by the client, 3 Aug 2026 — the recommendation is accepted: an operational guardrail of EIGHT levels. R-DEPTH is confirmed: PROP-026 OQ-14's three-tier cap is withdrawn as a MODEL constraint and replaced by a guardrail the platform enforces at creation time. Three things the pass must get right, because a guardrail is not a cap: (1) exceeding it is a refusal with a stated reason naming the depth and the offending parent — never a silent truncation and never a re-parent; (2) the number is configuration, not schema, so raising it for one ministry tenant is an operator act with a record, not a migration; (3) no rule, query, screen or report may assume a depth of three — the breadcrumb, the scope-overlap predicate of PROP-045 and every materialised-path read are re-checked against eight, which is the check PROP-042/PROP-045 is flagged for in Section 6.

ลูกค้าตัดสิน 3 ส.ค. 2569 — รับข้อเสนอแนะ: เพดานเชิงปฏิบัติการที่แปดชั้น เพดานสามชั้นของ PROP-026 OQ-14 ถูกถอนในฐานะข้อจำกัดเชิงแบบจำลอง สามสิ่งที่รอบ apply ต้องทำให้ถูก: (1) เกินแล้วปฏิเสธพร้อมเหตุผล ไม่ตัดเงียบ (2) ตัวเลขเป็นการตั้งค่า ไม่ใช่ schema (3) ห้ามกฎ คิวรี หน้าจอ หรือรายงานใดสมมติว่าลึกสามชั้น

Original recommendation: replaced with an operational guardrail of eight levels.ข้อเสนอเดิม: แทนด้วยเพดานเชิงปฏิบัติการที่แปดชั้น Unbounded depth makes materialised paths, breadcrumb UI and permission resolution unbounded too. Eight clears the deepest real case by a wide margin (กระทรวง → กรม → กอง → ฝ่าย → งาน is five; holding → operating → factory → ฝ่าย is four) and is a REFUSAL with a stated reason at creation time, not a silent truncation. It is a guardrail, not a model constraint — the difference from the applied three-tier cap, which the model itself relied on.ความลึกไม่จำกัดทำให้เส้นทางที่คำนวณไว้ เมนู breadcrumb และการคลี่สิทธิ์ไม่จำกัดไปด้วย แปดชั้นเผื่อกรณีจริงที่ลึกที่สุดไว้มาก และเป็นการปฏิเสธพร้อมเหตุผลตอนสร้าง ไม่ใช่การตัดเงียบ

OQ-4 answeredตอบแล้ว Does PartyUpgradedToOrganization survive under any name?PartyUpgradedToOrganization ยังอยู่หรือไม่

DECIDED by the client, 3 Aug 2026 — retire it. DepartmentRegistered is the event. Three consequences for the application pass. (1) PROP-073 OQ-6's decision to rename it TenantUpgradedToCompany is moot and its crosswalk row is withdrawn — that proposal must not spend a row renaming an event this one deletes. (2) The event fires once per department registered, not once per tenant lifetime, which is what R-MANY/R-FORM require and what the applied one-way transition made impossible; its payload names the department, the form and the qualification, never a tenant “kind”. (3) It is the event FR-393's requires re-check subscribes to, so retiring the old name removes a subscriber-less event rather than a live one. Cost: zero — no implementation consumes either name, and WF-116's screens and acknowledgement are untouched (R-NOUPGRADE).

ลูกค้าตัดสิน 3 ส.ค. 2569 — เลิกใช้ และใช้ DepartmentRegistered แทน ผลสามข้อ: (1) ผลตัดสิน OQ-6 ของ PROP-073 เป็นโมฆะ และถอนแถวในตารางแปลง (2) เหตุการณ์ยิงหนึ่งครั้งต่อหน่วยงานหนึ่ง ไม่ใช่หนึ่งครั้งต่อหนึ่ง tenant (3) เป็นเหตุการณ์ที่การตรวจ requires ของ FR-393 ต้องฟัง ต้นทุนเป็นศูนย์ และหน้าจอกับการรับทราบของ WF-116 ไม่เปลี่ยน

Original recommendation: retire it; emit DepartmentRegistered.ข้อเสนอเดิม: เลิกใช้ และส่ง DepartmentRegistered It names what actually happened, it fires once per department rather than once per tenant lifetime, and it is the event FR-393's re-check must listen to anyway. Zero cost — no implementation consumes either name. Carried unchanged from Rev 0.1 OQ-2 with the noun widened.มันตั้งชื่อสิ่งที่เกิดขึ้นจริง ยิงครั้งเดียวต่อหน่วยงาน และเป็นเหตุการณ์ที่การตรวจ requires ต้องฟังอยู่แล้ว

OQ-5 answeredตอบแล้ว When two departments claim the same registration number, which one is wrong — and how long does that claim last?เมื่อหน่วยงานสองแห่งอ้างเลขทะเบียนเดียวกัน แห่งไหนผิด และข้ออ้างนั้นอยู่นานเท่าไหร

The applied model answers this crudely: LegalEntity.registration_no is UNIQUE across the whole platform and typed text (DBD 13). That held while every registered body was a DBD company. Three things break it now.

แบบจำลองที่ apply แล้วตอบอย่างหยาบ คือ registration_no ไม่ซ้ำทั้งแพลตฟอร์มและมีชนิดเป็นเลข DBD 13 หลัก ซึ่งใช้ได้ตอนที่นิติบุคคลทุกรายเป็นบริษัทที่จด DBD ตอนนี้มีสามสิ่งที่ทำให้มันพัง

1The number no longer comes from one registrar. A DBD juristic-person number, a cooperative number from นายทะเบียนสหกรณ์ and a วิสาหกิจชุมชน code are separate numbering systems. The same digits from two registrars are two different bodies — so the number alone cannot be the thing that must not repeat.เลขไม่ได้มาจากนายทะเบียนรายเดียวอีกต่อไป เลขนิติบุคคล DBD เลขทะเบียนสหกรณ์ และรหัสวิสาหกิจชุมชน เป็นระบบเลขต่างชุดกัน เลขชุดเดียวกันจากสองนายทะเบียนคือสองหน่วยที่ต่างกัน
2A government agency has no registration number at all — it is established by statute (สอน., กอน., OCSF). It does carry a 13-digit taxpayer number, and so does every juristic person, cooperative and state enterprise. The tax id, not the registration number, is the one identifier nearly every registered body has.ส่วนราชการไม่มีเลขทะเบียนเลย เพราะตั้งโดยกฎหมาย แต่มีเลขประจำตัวผู้เสียภาษี 13 หลัก เลขผู้เสียภาษีจึงเป็นเลขที่เกือบทุกหน่วยงานที่จดทะเบียนมี
3A mill changes hands. If the number must not repeat across ALL rows for all time, the factory can never be registered again under its new owner — the closed row blocks it forever. If it may repeat freely, two tenants can trade under one registration at the same time. Neither is acceptable, so the answer has to be about time, not only about columns.โรงงานเปลี่ยนมือ ถ้าเลขห้ามซ้ำทุกแถวตลอดกาล โรงงานจะจดใหม่กับเจ้าของใหม่ไม่ได้เลย แต่ถ้าซ้ำได้อิสระ tenant สองรายก็ค้าขายใต้ทะเบียนเดียวกันพร้อมกันได้ คำตอบจึงต้องเกี่ยวกับเวลา ไม่ใช่เรื่องคอลัมน์เท่านั้น

DECIDED by the client, 3 Aug 2026 — the recommendation is accepted: both rules, both about LIVE rows. (a) No two live departments share a (legal_form, registration_no) pair; (b) no two live departments share a tax_id; both indexes PARTIAL on legal_form IS NOT NULL and the live status, so an internal department collides with nothing. And the narrow question the rewrite left open is answered by taking both rules rather than one: when a registrar reissues digits, the tax_id IDENTIFIES the body and the pair GUARDS the claim — a reissue collides on the pair while the tax ids stay distinct, so the refusal names the pair and no merge of two bodies can happen silently. Two consequences for the pass: the transfer of a registration is an operator act with its reason recorded (OQ-7), and the applied unconditional UNIQUE on LegalEntity.registration_no is REPLACED rather than carried over — keeping it would block every mill that ever changes hands.

ลูกค้าตัดสิน 3 ส.ค. 2569 — รับข้อเสนอแนะ: ทั้งสองกฎ และนับเฉพาะแถวที่ยังใช้งาน ดัชนีทั้งสองเป็นแบบบางส่วน หน่วยงานภายในจึงไม่ชนกับอะไร และคำถามที่เหลือก็ถูกตอบด้วยการเอาทั้งสองกฎ: เมื่อนายทะเบียนออกเลขซ้ำ tax_id คือสิ่งที่ระบุตัวนิติบุคคล ส่วนคู่คือสิ่งที่กันการอ้างซ้ำ และ UNIQUE แบบไม่มีเงื่อนไขที่ apply อยู่ถูกแทนที่ ไม่ใช่ยกมาใช้ต่อ

Original recommendation: two rules, both about LIVE rows only.แนะนำ: สองกฎ และทั้งสองนับเฉพาะแถวที่ยังใช้งาน (a) No two LIVE departments may share the same (legal_form, registration_no) pair — the pair rather than the number, for reason 1. (b) No two LIVE departments may share the same tax_id — the near-universal key, for reason 2. Live-only is the part that matters (reason 3): when a mill is sold, its old row is CLOSED and keeps its number as history, and the buyer’s new row may claim the same number. The trail survives, no two tenants ever trade under one registration at the same time, and the change of hands is a recorded operator act rather than a silent duplicate — the same shape as PhoneNumber.e164, applied at v0.42.0. An internal department participates in neither rule: with legal_form = null it has no registration to collide.(ก) หน่วยงานที่ยังใช้งานห้ามมี (legal_form, registration_no) คู่เดียวกัน ตามเหตุข้อ 1 (ข) ห้ามมี tax_id ซ้ำกัน ตามเหตุข้อ 2 ส่วนที่สำคัญคือการนับเฉพาะแถวที่ยังใช้งาน (เหตุข้อ 3) เมื่อโรงงานถูกขาย แถวเก่าจะปิดและเก็บเลขไว้เป็นประวัติ ส่วนแถวใหม่ของผู้ซื้ออ้างเลขเดิมได้ หน่วยงานภายในไม่อยู่ใต้กฎทั้งสอง

What is actually still undecided is narrow: when a registrar reissues digits, is the pair or the tax_id the authority? Everything else follows from the two rules. And one shape is now forced rather than preferred (Rev 0.7 review): after OQ-2 the constraint sits on department, beside every internal ฝ่าย and กอง in the platform, so both indexes must be PARTIAL — conditioned on legal_form IS NOT NULL and on the live status — or they constrain rows that carry no registration at all.

ส่วนที่ยังไม่ตัดสินนั้นแคบมาก: เมื่อนายทะเบียนออกเลขซ้ำ ให้ถือคู่หรือ tax_id เป็นหลัก และรูปหนึ่งถูกบังคับแล้ว (การทบทวน Rev 0.7) หลัง OQ-2 ข้อจำกัดอยู่บนตาราง department ที่มีทุกฝ่ายและกองรวมอยู่ ดัชนีทั้งสองจึงต้องเป็นแบบบางส่วน

OQ-6 de factoโดยพฤตินัย Does legal_registration expire?legal_registration หมดอายุไหม

CLOSED DE FACTO at Rev 0.7 review — by R-FORM and Section 3.1. Once every legal form is a DATA row carrying its own registrar, instrument and re-attestation period, the question has no single answer left to give: the row is the answer, and a document-level ruling would only duplicate it. Nothing is decided here that Section 3.1 does not already state, and the per-row periods are confirmed against each registrar at application.

ปิดโดยพฤตินัยที่ Rev 0.7 — ด้วย R-FORM กับข้อ 3.1 เมื่อทุกรูปแบบเป็นแถวข้อมูลที่ถือนายทะเบียน ตราสาร และระยะการยืนยันซ้ำของตัวเอง แถวคือคำตอบ การตัดสินระดับเอกสารจะเป็นเพียงการทำซ้ำ

Original recommendation: the expiry is a property of the FORM row, not of the qualification.แนะนำ: อายุเป็นคุณสมบัติของแถวรูปแบบ ไม่ใช่ของ qualification A DBD extract is a dated document and the applied group_ownership_attestation already treats one as valid twelve months, re-attested at season open — two evidence rules for the same instrument would be indefensible, so private juristic forms inherit exactly that. A community enterprise renews annually. A statute does not expire at all, and a scheduler that demanded สอน. re-attest its own establishing act would be a bug. What must NOT happen in any form: a lapse silently un-registering the body. The body survives; only the evidence goes stale, and FR-393 already says what that suspends.หนังสือรับรอง DBD เป็นเอกสารลงวันที่ และกฎที่ apply แล้วถือว่าใช้ได้สิบสองเดือน วิสาหกิจชุมชนต่ออายุรายปี ส่วนกฎหมายจัดตั้งไม่หมดอายุ สิ่งที่ต้องไม่เกิด: การขาดอายุแล้วถอนทะเบียนหน่วยงานเงียบ ๆ

OQ-7 answeredตอบแล้ว May two tenants hold the same registered body?tenant สองตัวถือนิติบุคคลเดียวกันได้หรือไม่

Revised at Rev 0.7 review — the site clause Rev 0.3 left out. A transfer moves the department, its subtree, its mill_id binding and the sites whose only presence rows belong to the transferring subtree: a factory changing hands takes its land, its weighbridge yard and its site office. A site shared with a department that STAYS does not move — it is a DepartmentSite row that is closed, and the receiving tenant must supply its own place. Still no records move (NFR-141), which is what makes this a decision and not a click.

แก้ที่ Rev 0.7 — ข้อเรื่องสถานที่ที่ Rev 0.3 ตกไป การโอนย้ายหน่วยงาน ต้นไม้ย่อย การผูกกับโรงงาน และสถานที่ซึ่งมีแถวการตั้งอยู่เฉพาะกับต้นไม้ที่โอน ส่วนสถานที่ที่ใช้ร่วมกับหน่วยงานที่อยู่ต่อไม่ย้าย และยังไม่มีระเบียนใดย้าย

DECIDED by the client, 3 Aug 2026 — no. One LIVE department per registration, transferable by a recorded operator act. Two tenants may never hold the same registered body at the same time; a change of ownership is a transfer with a history, never a second live row. What the transfer moves: the department, its subtree, its mill_id binding, and the sites whose presence rows belong only to that subtree — a factory changing hands takes its land, its weighbridge yard and its site office. What it does not move: a site still shared with a department that stays (its DepartmentSite row is closed and the receiving tenant supplies its own place), and no records at all — those are owned by the tenant under NFR-141, which is exactly why this is a decision with a reason recorded and not a click. It also completes OQ-5: the partial live-only indexes are what make a transfer expressible — the old row is closed, keeps its number as history, and the buyer’s row may claim it.

ลูกค้าตัดสิน 3 ส.ค. 2569 — ไม่ได้ หนึ่งหน่วยงานที่ยังใช้งานต่อหนึ่งทะเบียน โอนได้ด้วย act ของ operator ที่มีการบันทึกเหตุผล tenant สองรายจะถือนิติบุคคลเดียวกันพร้อมกันไม่ได้ การโอนย้าย: หน่วยงาน ต้นไม้ย่อย การผูกกับโรงงาน และสถานที่ซึ่งมีแถวการตั้งอยู่เฉพาะกับต้นไม้นั้น สิ่งที่ไม่ย้าย: สถานที่ที่ใช้ร่วมกับหน่วยงานที่อยู่ต่อ และระเบียนทั้งหมด ซึ่งเป็นของ tenant ตาม NFR-141 และมันทำให้ OQ-5 สมบูรณ์: ดัชนีแบบบางส่วนเฉพาะแถวที่ใช้งานคือสิ่งที่ทำให้การโอนเกิดขึ้นได้

Original recommendation: no — one LIVE department per registration, transferable by an operator act with its reason recorded.แนะนำ: ไม่ได้ — หนึ่งหน่วยงานที่ใช้งานต่อหนึ่งทะเบียน โอนได้ด้วย act ของ operator พร้อมเหตุผล Falls out of OQ-5. Two tenants quietly trading under one registration is an isolation failure; a mill changing hands is an ordinary event that must leave a trail. The transfer moves the department, its subtree and its mill_id binding — and no records, because records are owned by the tenant (NFR-141), which is precisely why the transfer is a decision and not a click.เป็นผลจาก OQ-5 การที่ tenant สองรายค้าขายใต้ทะเบียนเดียวกันเงียบ ๆ คือความล้มเหลวของการแยก การโอนย้ายหน่วยงาน ต้นไม้ย่อย และการผูกกับโรงงาน แต่ไม่ย้ายระเบียน

OQ-8 May a department be classified with a form its parent contradicts?หน่วยงานถูกจัดรูปแบบที่ขัดกับแม่ของมันได้หรือไม่

A company limited sitting administratively under a government agency is a real Thai arrangement (a state enterprise, a ministry-held holding). A ฝ่าย under a บริษัท is the ordinary case. But a บริษัท under a ฝ่าย is almost certainly a data-entry error.

บริษัทจำกัดที่สังกัดหน่วยราชการเชิงบริหารมีจริงในไทย ส่วน ฝ่าย ใต้บริษัทคือกรณีปกติ แต่บริษัทใต้ฝ่ายเกือบแน่นอนว่าเป็นการกรอกผิด

Revised at Rev 0.7 review — this question contradicted R-ROOT and the contradiction is now fixed. R-ROOT founds every tenant with a bare root; the rule below forbids a registered department beneath an internal one. Together they made the ordinary path illegal: a farmer who registers his first company would be adding a registered child under a bare root. R-ROOT is amended instead of weakening the rule: the root MAY be classified, and the first registration classifies the root rather than adding a child beneath it — so the single-company tenant is one node, the group's root is its holding company, and the lone farmer's root stays bare with nothing registered under it. The rule below then holds without exception, which is why it is worth keeping as the only structural rule on forms.

แก้ที่ Rev 0.7 — ข้อนี้ขัดกับ R-ROOT และแก้แล้ว R-ROOT ก่อตั้ง tenant ด้วยรากเปล่า แต่กฎข้างล่างห้ามหน่วยงานที่จดทะเบียนอยู่ใต้หน่วยงานภายใน จึงแก้ R-ROOT แทนการลดความเข้มของกฎ โดยให้การจดทะเบียนครั้งแรกจัดประเภทให้ราก

Recommend: no form-compatibility matrix. One rule only — a registered department may not be a descendant of an internal (null-form) department.แนะนำ: ไม่มีเมทริกซ์ความเข้ากันของรูปแบบ มีกฎเดียว — หน่วยงานที่จดทะเบียนต้องไม่เป็นลูกหลานของหน่วยงานภายใน A legal body cannot be contained by something with no legal existence — that one rule catches the error case and admits every real arrangement. Resist a matrix: PROP-074's exhibit already showed what ~54 authored cells cost when three principles would have generated them.นิติบุคคลถูกบรรจุในสิ่งที่ไม่มีสภาพทางกฎหมายไม่ได้ กฎข้อเดียวนี้จับกรณีผิดและรับทุกโครงสร้างจริง อย่าสร้างเมทริกซ์

OQ-9 Is display_name enough on the tenant, with the legal name gone?display_name บน tenant พอไหม เมื่อชื่อตามกฎหมายหายไป

Recommend: yes, and it is an improvement.แนะนำ: พอ และดีขึ้นด้วย The tenant is what the platform calls it; a legal name is what a registrar calls a body, and there may be several. Documents that must print one — contracts, invoices, tax statements — read it from the department the document is FOR, never from the container. Today they would read a nullable field nothing validates.tenant คือชื่อที่แพลตฟอร์มเรียก ส่วนชื่อตามกฎหมายคือชื่อที่นายทะเบียนเรียกนิติบุคคล และอาจมีหลายชื่อ เอกสารอ่านจากหน่วยงานที่เอกสารนั้นเป็นของ

OQ-10 Do the books — LedgerAccount and JournalEntry — follow the department or the tenant?สมุดบัญชี — LedgerAccount และ JournalEntry — ตามหน่วยงานหรือตาม tenant

“The books” means the applied double-entry ledger, not a metaphor: LedgerAccount (บัญชีแยกประเภท, LGA-#####) — the chart of accounts, account_class: asset | liability | equity | income | expense, seeded per capacity from a ChartTemplate and locked where system_flag is set so automation may post to it (PROP-010) — and JournalEntry (รายการสมุดรายวัน, append-only) posting against it, with the statements and reports built on both (PROP-023).

“สมุดบัญชี” หมายถึงบัญชีคู่ที่ apply แล้วจริง ไม่ใช่สำนวน: LedgerAccount (บัญชีแยกประเภท) ที่มีผังบัญชีสร้างตาม capacity จาก ChartTemplate (PROP-010) และ JournalEntry (รายการสมุดรายวัน เพิ่มได้อย่างเดียว) พร้อมงบการเงินและรายงานที่สร้างบนมัน (PROP-023)

The inconsistency, stated in the applied columns. LedgerAccount.owner_party_id makes the ledger TENANT-addressed — one chart of accounts per tenant, and its applied note says so outright: “books extends to ANY party… without schema change”. But Mill.legal_entity_id has declared since v0.25.0 that a factory “declares WHOSE BOOKS the factory posts into” — BODY-addressed — with Mill.branch_code carrying the Revenue Department branch number beneath it. One tenant, several registered departments, and the two columns disagree: a group of three companies files three sets of accounts with the Revenue Department, while owner_party_id would give it one.

ความขัดแย้ง ระบุด้วยคอลัมน์ที่ apply แล้ว LedgerAccount.owner_party_id ทำให้สมุดบัญชีผูกกับ tenant — หนึ่งผังบัญชีต่อ tenant ส่วน Mill.legal_entity_id ประกาศตั้งแต่ v0.25.0 ว่าโรงงานลงบัญชีของ นิติบุคคล พร้อม Mill.branch_code ที่ถือเลขสาขาของกรมสรรพากร กลุ่มที่มีสามบริษัทยื่นงบสามชุด แต่ owner_party_id ให้ชุดเดียว

Recommend: out of scope here, and named as the next draft.แนะนำ: อยู่นอกขอบเขต และระบุไว้เป็นร่างถัดไป This proposal establishes the container relation and nothing else. A books-per-department decision touches the LedgerAccount chart and its ChartTemplate seeding, the posting map that automation writes JournalEntry rows through, every statement of PROP-023, and PROP-026's consolidation model. Stated so it is not discovered later: the applied model is already inconsistent here — Mill.legal_entity_id posts to a legal body while LedgerAccount.owner_party_id is tenant-addressed — and this proposal makes the inconsistency visible rather than causing it. It also supplies the answer's shape: the books of the nearest registered ancestor department.เอกสารนี้ตั้งความสัมพันธ์ของภาชนะเท่านั้น ระบุไว้เพื่อไม่ให้ถูกค้นพบภายหลัง: แบบจำลองที่ apply แล้วขัดกันในจุดนี้อยู่ก่อนแล้ว และรูปของคำตอบคือ บัญชีของหน่วยงานที่จดทะเบียนซึ่งเป็นบรรพบุรุษใกล้ที่สุด

OQ-11 de factoโดยพฤตินัย Is this applied before or after PROP-073, and in how many passes?apply ก่อนหรือหลัง PROP-073 และกี่รอบ

CLOSED DE FACTO at Rev 0.7 review — by the OQ-2 decision of 3 Aug 2026. That decision took the full merge and committed the pass to shipping the PROP-026 amendment with it, which is this question’s second half already answered. The first half — before or after PROP-073 — is settled by that proposal’s own OQ-7, which puts the rename LAST of four over a settled model. Nothing remains to decide here; what remains is to obey it at application.

ปิดโดยพฤตินัยที่ Rev 0.7 — ด้วยผลตัดสิน OQ-2 เมื่อ 3 ส.ค. 2569 ผลตัดสินนั้นมัดว่ารอบ apply จะส่งการแก้ไข PROP-026 ไปด้วยกัน ส่วนลำดับก่อนหลัง PROP-073 ถูกกำหนดโดย OQ-7 ของข้อเสนอนั้นเองอยู่แล้ว

Original recommendation: before, and in ONE pass with the PROP-026 amendment.แนะนำ: ก่อน และรวมการแก้ไข PROP-026 ไว้ในรอบเดียว Every occurrence this deletes is one PROP-073 then does not have to rename, and its OQ-7 ordering exists so the rename runs last over a settled model. One pass, not two: splitting the entity merge from the depth-cap amendment would leave a released version in which Department exists and still cannot be three deep. The precedent is two days old — PROP-074 landed first in the applied words and handed the rename crosswalk rows instead of a split vocabulary.ทุกจุดที่เอกสารนี้ลบคือจุดที่ PROP-073 ไม่ต้องเปลี่ยนชื่อ รอบเดียว ไม่ใช่สองรอบ เพราะการแยกการรวมเอนทิตีออกจากการถอนเพดานจะทิ้งเวอร์ชันที่ Department มีอยู่แต่ยังลึกเกินสามชั้นไม่ได้

OQ-12 answeredตอบแล้ว May a grant be scoped to a site as well as to a department?สิทธิ์จำกัดขอบเขตด้วยสถานที่ได้ด้วยหรือไม่

With two axes there is an obvious temptation: let a grant say “weighbridge clerk, at station ข. only”. The applied model already half-does this, because a site domain is both a place and a scope. Against it: PROP-045's scope-overlap predicate is defined over ONE axis, and every refusal message names the scope that refused.

เมื่อมีสองแกน ย่อมมีความอยากให้สิทธิ์ระบุสถานที่ด้วย แต่ predicate ของ PROP-045 นิยามไว้บนแกนเดียว

DECIDED by the client, 3 Aug 2026 — no. One scope axis. R-ONESCOPE is confirmed and the last gate is closed. A grant is scoped to a department and only a department; the applied domain scope axis is renamed, never joined by a second. Four things this settles for the application pass. (1) PROP-045’s scope-overlap predicate stays single-axis and needs no new form — only the 8-level re-check of OQ-3. (2) DepartmentSite is an operational convenience, not a security surface, so it needs no isolation argument, no X1–X4 equivalents and no scoping columns. (3) A physically bounded permission — the weighbridge clerk at one station — is expressed as the department that operates there, which is the unit whose duty it is; where no such department exists, creating one is the correct answer and costs a row. (4) Every refusal keeps naming one scope and one reason, which is the property that made the applied refusal messages legible.

ลูกค้าตัดสิน 3 ส.ค. 2569 — ไม่ ให้มีแกนขอบเขตเดียว ยืนยัน R-ONESCOPE และปิดด่านสุดท้าย สิทธิ์จำกัดขอบเขตด้วยหน่วยงานเท่านั้น ผลสี่ข้อ: (1) predicate ของ PROP-045 ยังเป็นแกนเดียว (2) DepartmentSite เป็นความสะดวกเชิงปฏิบัติการ ไม่ใช่พื้นผิวด้านความมั่นคง (3) ข้อจำกัดทางกายภาพแสดงเป็นหน่วยงานที่ดำเนินงานที่นั่น (4) การปฏิเสธทุกครั้งระบุขอบเขตเดียวและเหตุเดียว

Original recommendation: no — one scope axis (R-ONESCOPE). Express the physical bound as the department that operates there.แนะนำ: ไม่ — แกนขอบเขตเดียว และแสดงข้อจำกัดทางกายภาพเป็นหน่วยงานที่ดำเนินงานที่นั่น “At station ข. only” is never really about the place — it is about the team that works there, which is a department with one presence row. Two axes would double the predicate, double the refusal vocabulary, and make it possible to grant a permission at a site where the department does not stand. Rev 0.7 review — the price of yes went up: after OQ-3 a second axis would cross an EIGHT-deep department tree with a flat site set inside a predicate written for one axis, and every refusal would have to name which axis refused. Gating because it decides whether DepartmentSite is an operational convenience or a security surface — and a security surface would need its own isolation argument, which this draft does not make.คำว่า “เฉพาะที่ลาน ข.” แท้จริงคือทีมที่ทำงานที่นั่น ซึ่งคือหน่วยงาน เป็นด่านเพราะชี้ขาดว่า DepartmentSite เป็นความสะดวกเชิงปฏิบัติการหรือพื้นผิวด้านความมั่นคง

OQ-13 de factoโดยพฤตินัย Is a site always the tenant's own, when farmers arrive at a mill's yard?สถานที่เป็นของ tenant เสมอหรือไม่ เมื่อชาวไร่เข้ามาที่ลานโรงงาน

CLOSED DE FACTO at Rev 0.7 review — by applied NFR-141, not by this draft. One owning key, forever. A site shared between two tenants would be the platform’s first two-owner record, and the applied non-functional requirement forbids it without reference to sites at all. This was never ours to answer — stating it as a question implied a latitude the applied model does not grant. A farmer arriving at โรงงาน ก. references the mill’s site exactly as a queue ticket already references the mill.

ปิดโดยพฤตินัยที่ Rev 0.7 — ด้วย NFR-141 ที่ apply แล้ว ไม่ใช่ร่างนี้ คีย์ความเป็นเจ้าของเดียว ตลอดไป การตั้งเป็นคำถามเป็นการเปิดช่องที่แบบจำลองที่ apply แล้วไม่เคยให้

Original recommendation: yes — a site has exactly one owning tenant, and other tenants REFERENCE it, never share it.แนะนำ: ใช่ — สถานที่มี tenant เจ้าของเดียว tenant อื่นอ้างถึงได้ แต่ไม่ได้ใช้ร่วม A farmer delivering to โรงงาน ก. does not gain a site — his delivery names the mill's site the way a queue ticket already names a mill. NFR-141 again: one owning key. The alternative — a shared site row — would be the platform's first two-owner record, and there is no reason to make the first one a car park.ชาวไร่ที่ส่งอ้อยไม่ได้เป็นเจ้าของสถานที่ การส่งมอบเพียงอ้างถึงสถานที่ของโรงงาน ทางเลือกอีกทางจะกลายเป็นระเบียนสองเจ้าของแรกของแพลตฟอร์ม

OQ-14 Which address does a contract print?สัญญาพิมพ์ที่อยู่ใด

A registered body has a registered address at its registrar; the tenant has sites; the two may differ, and for a cooperative they routinely do.

นิติบุคคลมีที่อยู่ตามทะเบียน ส่วน tenant มีสถานที่ สองอย่างอาจต่างกัน และสำหรับสหกรณ์มักต่างกันเสมอ

Recommend: the registered address is EVIDENCE on the registration, and the primary site is the OPERATING address; a document names which one it prints.แนะนำ: ที่อยู่ตามทะเบียนคือหลักฐานบนการจดทะเบียน ส่วนสถานที่หลักคือที่อยู่ดำเนินงาน We are not the registrar's address book (A-79): what the DBD extract says is part of the evidence we recorded, not a field we maintain. What we maintain is where the tenant actually works. A tax invoice prints the registered address; a delivery note prints the site. Both are available and neither is guessed.เราไม่ใช่สมุดที่อยู่ของนายทะเบียน ใบกำกับภาษีพิมพ์ที่อยู่ตามทะเบียน ใบส่งมอบพิมพ์สถานที่

OQ-15 de factoโดยพฤตินัย Is site_kind an enum or a register?site_kind เป็น enum หรือทะเบียน

CLOSED DE FACTO at Rev 0.7 review — by applied A-80 and by R-FORM in this document. A-80 already rules that this class of list is DATA: adding, removing or re-parameterising a row is a graph change and a document change, never a deploy. A proposal cannot apply that rule to legal forms and refuse it to site kinds in the same pass without stating why, and there is no why. The five drafted kinds (mill · transfer · office · warehouse · yard) are therefore rows, and the nursery or fuel depot that arrives later is a sixth row.

ปิดโดยพฤตินัยที่ Rev 0.7 — ด้วย A-80 ที่ apply แล้วและ R-FORM รายการชนิดนี้เป็นข้อมูล การเพิ่มแถวจึงเป็นการแก้กราฟและเอกสาร ไม่ใช่การ deploy ข้อเสนอเดียวจะใช้กฎนี้กับรูปแบบนิติฐานะแล้วปฏิเสธกับชนิดสถานที่ไม่ได้

Original recommendation: a register, for the same reason as the legal forms — A-80.แนะนำ: ทะเบียน ด้วยเหตุผลเดียวกับรูปแบบนิติฐานะ คือ A-80 Five kinds are obvious today (mill · transfer · office · warehouse · yard) and the sixth will arrive the week a tenant opens a nursery or a fuel depot. The rule the platform has already adopted is that this class of list is data, and applying it twice in one proposal costs nothing and settles the pattern.วันนี้มีห้าชนิดที่ชัดเจน และชนิดที่หกจะมาในสัปดาห์ที่ tenant เปิดแปลงกล้าหรือคลังน้ำมัน

8. Revision history8. ประวัติการแก้ไข

RevฉบับDateวันที่Changeการเปลี่ยนแปลง
0.123 Aug 2026OQ-7 answered — no. One LIVE department per registration, transferable by a recorded operator act. Two tenants may never hold the same registered body at the same time; a change of ownership is a transfer with a history, never a second live row. The transfer moves the department, its subtree, its mill_id binding and the sites whose presence rows belong only to that subtree — a factory changing hands takes its land, its weighbridge yard and its site office. It does not move a site still shared with a department that stays (that DepartmentSite row is closed and the receiving tenant supplies its own place), and it moves no records at all (NFR-141) — which is why it is a decision with a reason recorded rather than a click. It completes OQ-5: the partial live-only indexes are exactly what make a transfer expressible. Standing: seven decided, four closed de facto, four live, none gating — OQ-8, OQ-9, OQ-14 and the deferred OQ-10.OQ-7 ตอบแล้ว — ไม่ได้ หนึ่งหน่วยงานที่ใช้งานต่อหนึ่งทะเบียน โอนได้โดยมีการบันทึกเหตุผล การโอนย้ายหน่วยงาน ต้นไม้ย่อย การผูกกับโรงงาน และสถานที่ที่เป็นของต้นไม้นั้นเท่านั้น แต่ไม่ย้ายระเบียนเลย ตาม NFR-141 สรุป: ตัดสินเจ็ดข้อ ปิดโดยพฤตินัยสี่ข้อ เหลือสี่ข้อ ไม่มีด่าน
0.113 Aug 2026OQ-5 answered — both uniqueness rules adopted, both about LIVE rows. No two live departments share a (legal_form, registration_no) pair; no two share a tax_id; both indexes PARTIAL on legal_form IS NOT NULL and the live status, so an internal department collides with nothing. Taking both rules also answers the narrow question the Rev 0.10 rewrite left open: on a reissue the tax_id IDENTIFIES the body while the pair GUARDS the claim — the collision lands on the pair, the tax ids stay distinct, and no two bodies merge silently. Two things the pass must carry: the applied unconditional UNIQUE on LegalEntity.registration_no is REPLACED, not carried over (keeping it would block every mill that ever changes hands), and a transfer is an operator act with its reason recorded (OQ-7). Standing: six decided, four closed de facto, five live, none gating — OQ-7, OQ-8, OQ-9, OQ-14 and the deferred OQ-10.OQ-5 ตอบแล้ว — รับกฎความไม่ซ้ำทั้งสองข้อ นับเฉพาะแถวที่ยังใช้งาน คู่ (legal_form, registration_no) ห้ามซ้ำ และ tax_id ห้ามซ้ำ ดัชนีทั้งสองเป็นแบบบางส่วน การเอาทั้งสองกฎตอบคำถามที่เหลือด้วย โดย tax_id ระบุตัว ส่วนคู่กันการอ้าง สรุป: ตัดสินหกข้อ ปิดโดยพฤตินัยสี่ข้อ เหลือห้าข้อ ไม่มีด่าน
0.103 Aug 2026Editorial, on client question — OQ-5 rewritten in plain language. The question was stated as a database constraint (“what is unique, across what”) and was unreadable as a decision. It now asks what it actually asks: when two departments claim the same registration number, which one is wrong — and how long does that claim last? Three numbered reasons the applied UNIQUE column breaks: (1) the number no longer comes from one registrar, so the same digits from two registrars are two different bodies; (2) a government agency has no registration number at all, only a 13-digit taxpayer number, which every juristic person, cooperative and state enterprise also carries; (3) a mill changes hands — unique-forever blocks the buyer permanently, unique-never lets two tenants trade under one registration, so the answer must be about time, not only columns. The recommendation is restated as two rules keyed to those reasons, each about LIVE rows only, with the transfer as a recorded operator act (the applied PhoneNumber.e164 shape). No change of substance: the same two constraints, the same partial-index requirement from the Rev 0.7 review, and the same narrow question left open — pair or tax_id when a registrar reissues digits.เชิงบรรณาธิการ ตามคำถามของลูกค้า — เขียน OQ-5 ใหม่เป็นภาษาที่อ่านเข้าใจง่าย เดิมตั้งเป็นข้อจำกัดของฐานข้อมูล ตอนนี้ถามตรงว่าเมื่อสองหน่วยอ้างเลขเดียวกัน แห่งไหนผิด และข้ออ้างอยู่นานเท่าไหร พร้อมเหตุสามข้อ และข้อเสนอสองกฎที่ผูกกับเหตุเหล่านั้น สาระไม่เปลี่ยน
0.93 Aug 2026Editorial, on client question — OQ-10 now names what “the books” are instead of assuming the reader knows. The question and its Section 6 row cite the applied entities: LedgerAccount (บัญชีแยกประเภท, LGA-#####, account_class, seeded per capacity from a ChartTemplate and locked where system_flag is set — PROP-010) and JournalEntry (รายการสมุดรายวัน, append-only), plus the statements of PROP-023. The inconsistency is now stated in columns rather than in prose: LedgerAccount.owner_party_id is tenant-addressed — its applied note says the books extend to ANY party without schema change — while Mill.legal_entity_id has been body-addressed since v0.25.0, with Mill.branch_code carrying the Revenue Department branch number beneath it. A group of three companies files three sets of accounts; owner_party_id would give it one. No decision, no rule and no count changes — OQ-10 remains deferred to the books draft, with its answer’s shape unchanged (the nearest registered ancestor department).เชิงบรรณาธิการ ตามคำถามของลูกค้า — OQ-10 ระบุชัดแล้วว่า “สมุดบัญชี” คืออะไร คือ LedgerAccount และ JournalEntry ตาม PROP-010 กับงบการเงินของ PROP-023 และระบุความขัดแย้งด้วยชื่อคอลัมน์แทนการพรรณนา ไม่มีการตัดสิน กฎ หรือจำนวนใดเปลี่ยน
0.83 Aug 2026OQ-12 answered — one scope axis. THE LAST GATE IS CLOSED and no gate remains. R-ONESCOPE is confirmed: a grant is scoped to a department and only a department, the applied domain axis is renamed rather than joined by a second, and a physically bounded permission is expressed as the department that operates at the place. Four consequences the pass carries: PROP-045’s overlap predicate stays single-axis (only the 8-level re-check of OQ-3 applies to it); DepartmentSite is an operational convenience, not a security surface, so it needs no isolation argument and no scoping columns; where a physical bound has no department, creating one is the correct answer and costs a row; and every refusal keeps naming one scope and one reason. Standing: five questions decided, four closed de facto, six live and none gating — OQ-5, OQ-7, OQ-8, OQ-9, OQ-14 and the deferred OQ-10.OQ-12 ตอบแล้ว — แกนขอบเขตเดียว ปิดด่านสุดท้าย ไม่เหลือด่านอีกแล้ว สิทธิ์จำกัดขอบเขตด้วยหน่วยงานเท่านั้น และ DepartmentSite เป็นความสะดวกเชิงปฏิบัติการ ไม่ใช่พื้นผิวด้านความมั่นคง สรุป: ตัดสินห้าข้อ ปิดโดยพฤตินัยสี่ข้อ เหลือหกข้อ และไม่มีข้อใดเป็นด่าน
0.73 Aug 2026All remaining questions reviewed against the four decisions — four closed de facto, three revised, four stand, and one internal contradiction found and fixed. New Section 7.1 states the verdict and the basis for each. Closed de facto (by decisions already taken, never by silence): OQ-6 expiry — answered by R-FORM and Section 3.1, since a form row carries its own re-attestation period · OQ-11 sequencing — answered by the OQ-2 decision, which already committed the pass to ONE application with the PROP-026 amendment · OQ-13 shared sites — answered by applied NFR-141, one owning key forever, and never ours to answer · OQ-15 site_kind — answered by applied A-80, which this document already obeys for legal forms. Revised: OQ-8 — the review found that its rule and R-ROOT could not both hold, because a bare root plus a first registration would put a registered department under an internal one; R-ROOT is amended so the root may be classified and the first registration classifies the root instead of adding a child · OQ-7 — gains the site clause Rev 0.3 left out: a transferred department takes the sites whose presence rows belong only to its subtree, and still no records · OQ-5 — after the merge the constraint sits on department beside every internal ฝ่าย, so a partial index is the only workable shape rather than a preference. Unchanged: OQ-9, OQ-10 (sharper — the nearest registered ancestor is now a bounded read), OQ-12, OQ-14. Standing: seven live questions, OQ-12 the only gate, whose cost of yes rose with the 8-level guardrail.ทบทวนคำถามที่เหลือทั้งหมดเทียบกับผลตัดสินสี่ข้อ — ปิดโดยพฤตินัยสี่ข้อ แก้สามข้อ คงเดิมสี่ข้อ และพบข้อขัดกันภายในหนึ่งจุดซึ่งแก้แล้ว เพิ่มข้อ 7.1 ระบุผลและเหตุของทุกข้อ ปิดโดยพฤตินัย: OQ-6 ด้วย R-FORM · OQ-11 ด้วยผลตัดสิน OQ-2 · OQ-13 ด้วย NFR-141 · OQ-15 ด้วย A-80 แก้: OQ-8 (ขัดกับ R-ROOT จึงให้รากถูกจัดประเภทได้) · OQ-7 (เพิ่มข้อเรื่องสถานที่) · OQ-5 (ดัชนีแบบบางส่วนเป็นทางเดียว) เหลือเจ็ดข้อ ด่านเดียวคือ OQ-12
0.63 Aug 2026OQ-4 answered — the upgrade event is retired; DepartmentRegistered is the event. Four of fifteen questions are closed and OQ-12 remains the only gate. Three things the pass carries: PROP-073 OQ-6's rename to TenantUpgradedToCompany is moot and its crosswalk row withdrawn; the event fires once per department registered rather than once per tenant lifetime, with the department, the form and the qualification in its payload; and it is the event FR-393's requires re-check subscribes to. Zero cost — nothing consumes either name, and WF-116's screens and acknowledgement are untouched.OQ-4 ตอบแล้ว — เลิกเหตุการณ์การยกระดับ ใช้ DepartmentRegistered ปิดไปสี่ข้อ เหลือ OQ-12 เป็นด่านเดียว ผลตัดสิน OQ-6 ของ PROP-073 เป็นโมฆะ เหตุการณ์ยิงหนึ่งครั้งต่อหน่วยงานหนึ่ง และต้นทุนเป็นศูนย์
0.53 Aug 2026OQ-2 and OQ-3 answered — three of fifteen questions are closed and ONLY ONE GATE REMAINS. OQ-2: merge both. Domain and LegalEntity retire into Department, the full version is taken, and R-ONETREE is confirmed rather than provisional — which commits the pass to the domain_id rename, the second sweep of Section 5 and the PROP-026 amendment, all shipping together (OQ-11). OQ-3: an eight-level operational guardrail. R-DEPTH is confirmed and PROP-026 OQ-14's three-tier cap is withdrawn as a model constraint; the guardrail refuses with a stated reason, is configuration rather than schema, and obliges every rule, query and screen that assumed three levels — the breadcrumb, PROP-045's overlap predicate, every materialised-path read — to be re-checked against eight. Remaining gate: OQ-12 (may a grant be site-scoped; recommendation: no).OQ-2 และ OQ-3 ตอบแล้ว — ปิดไปสามจากสิบห้าข้อ เหลือด่านเดียว OQ-2: รวมทั้งสองเข้า Department เอาฉบับเต็ม และ R-ONETREE กลายเป็นกฎที่ยืนยัน OQ-3: เพดานเชิงปฏิบัติการแปดชั้น โดยเป็นการปฏิเสธพร้อมเหตุผล และเป็นการตั้งค่า ไม่ใช่ schema เหลือด่าน: OQ-12
0.43 Aug 2026OQ-1 ANSWERED by the client — the base entity is Department, recommendation accepted. One of the three gates is closed and the document's vocabulary is now settled rather than provisional: the Thai is FIXED as หน่วยงาน (never แผนก, never กรม), so กรม, กอง and ฝ่าย read as depths of one word; DEP-########, department_id, parent_department_id, department_path, DepartmentSite and DepartmentRegistered are confirmed as the names the application pass writes; OrgUnit and Unit are refused. The decision is independent of OQ-2 — whichever way the merge question falls, the entity that receives the legal block is called Department. Two gates remain: OQ-2 (does Domain merge too) and OQ-12 (may a grant be site-scoped).OQ-1 ตอบแล้วโดยลูกค้า — เอนทิตีฐานคือ Department รับข้อเสนอแนะ ปิดไปหนึ่งในสามด่าน และกำหนดคำไทยเป็น หน่วยงาน พร้อมชื่อคอลัมน์และรหัสทั้งชุด เหลือสองด่าน: OQ-2 และ OQ-12
0.33 Aug 2026Client correction the same day — the site is a physical location, not a business unit, and must not be unified under the department. Upheld in full and Rev 0.2's R-ONETREE is narrowed to the organisational axis. Two new findings: K-11 — the applied Domain was carrying three jobs on one node (unit, legal body, place), with mill_id? on the row and base_province stranded on two entities that have no location; K-12 — the platform is already full of places that are not units (transfer station, weighbridge, yard, booking location) and units that are not places (haulage, accounts). Three new rules: R-SITE (candidate A-88 — a place is not a business unit; sites are FLAT, never legal bodies, never scopes) · R-PRESENCE (DepartmentSite is many-to-many with an is_primary flag; neither side may collapse into a column on the other) · R-ONESCOPE (responsibility scopes permission, place does not — one scope axis, so PROP-045's predicate stays single). Two new entities (Site, DepartmentSite), Figure 2, and Mill's two facts separated into department_id (whose books) and site_id (where). R-DEPTH simplifies — its “a site may hold children” clause disappears with the site itself. PROP-030/PROP-031/PROP-035 gain the home they never had. Everything else of Rev 0.2 stands. Fifteen open questions, three gating (the name; whether Domain merges; whether a grant may be site-scoped).คำแก้ของลูกค้าในวันเดียวกัน — site คือสถานที่ทางกายภาพ ไม่ใช่หน่วยธุรกิจ จึงต้องไม่ถูกยุบรวมเข้ากับหน่วยงาน รับคำแก้ทั้งหมด และ R-ONETREE ของ Rev 0.2 ถูกทำให้แคบลงเหลือเฉพาะแกนเชิงองค์กร ผลค้นพบใหม่สองข้อ และ กฎใหม่สามข้อ พร้อมเอนทิตีใหม่สองตัวและรูปที่ 2 นอกนั้น Rev 0.2 คงเดิมทั้งหมด คำถามเปิดสิบห้าข้อ สามข้อเป็นด่าน
0.23 Aug 2026Rewritten on client direction the same day — the tenant is not a company, and neither is the thing it holds. The client raised that platform tenants include government agencies, cooperatives and limited partnerships, and asked for a hierarchy of departments to segregate responsibility, unified into one base entity that may be classified as a legal entity and may have a parent. Ten findings (K-1…K-10), of which three are new and one is a defect in Rev 0.1: K-8 — four of the seven organization_only capacities (สอน., กอน., OCSF and ธ.ก.ส.) cannot produce the DBD company extract Rev 0.1's R-REQUIRES would have demanded; K-9 — two hierarchies over the same thing with "fks": {} between them; K-10 — the applied three-tier cap fails on the first ministry and on the first factory with a weighbridge department. Nine rules: R-CONTAINER · R-ONETREE · R-ROOT · R-FORM · R-REGISTERED · R-REQUIRES (corrected) · R-NOTCAPTABLE · R-DEPTH · R-NOUPGRADE. A legal-form register of eleven rows plus the null default, as DATA under A-80, so the client's “etc.” is a graph change and never a deploy. Rev 0.1's OQ-6 is reversed and its OQ-1 withdrawn; the remaining seven are carried. PROP-026 (applied v0.25.0) is amended, not contradicted. Eleven open questions, two gating (the base-entity name; whether Domain merges too).เขียนใหม่ตามคำสั่งลูกค้าในวันเดียวกัน ลูกค้าชี้ว่า tenant ของแพลตฟอร์มมีหน่วยราชการ สหกรณ์ และห้างหุ้นส่วนจำกัด และขอลำดับชั้นหน่วยงานเพื่อแบ่งความรับผิดชอบ โดยรวมเป็นเอนทิตีฐานเดียวที่จัดเป็นนิติบุคคลได้และมีแม่ได้ ผลค้นพบสิบข้อ ใหม่สามข้อ และหนึ่งข้อคือข้อบกพร่องของ Rev 0.1 (สี่ในเจ็ด capacity ออกหนังสือรับรอง DBD ไม่ได้) กฎเก้าข้อ ทะเบียนรูปแบบนิติฐานะสิบเอ็ดแถว เป็นข้อมูลใต้ A-80 OQ-6 ของ Rev 0.1 ถูกกลับด้าน และ PROP-026 ถูกแก้ไข คำถามเปิดสิบเอ็ดข้อ สองข้อเป็นด่าน
0.13 Aug 2026Created on client direction, splitting PROP-073 OQ-11 Option B into its own draft because it is a MODEL change and PROP-073 is terminology-only. Eight findings against applied v0.45.0, the load-bearing one being that LegalEntity — “the COMPANY, distinct from the factory” — has been applied since v0.25.0 with an entity_role of operating | holding | parent. Five rules: R-CONTAINER · R-DERIVED · R-MANY · R-REQUIRES · R-NOUPGRADE. A node-by-node application map (24 graph nodes, 16 documents) and the effect on five pending proposals. Nine open questions, two gating. Superseded in full by Rev 0.2 — see Section 1.4 for the fate of each rule and question.สร้างตามคำสั่งลูกค้า แยกทางเลือก ข ของ PROP-073 OQ-11 ออกเป็นร่างของตัวเอง ผลค้นพบแปดข้อ กฎห้าข้อ แผนที่การ apply รายโหนด คำถามเปิดเก้าข้อ ถูกแทนที่ทั้งฉบับโดย Rev 0.2