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 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 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 ถูกลบ
| Rev 0.2Rev 0.2 | Fateผล | Whyเพราะอะไร |
|---|---|---|
| R-ONETREE | Narrowedแคบลง | 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ค่า site | Split 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-DEPTH | Simplifiedง่ายขึ้น | 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 ยังคงเดิม |
| Rev 0.1Rev 0.1 | Fateผล | Whyเพราะอะไร |
|---|---|---|
| R-CONTAINER | Survives, 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-DERIVED | Survives, 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-MANY | Absorbedถูกดูดกลืน | 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-REQUIRES | Correctedถูกแก้ | 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-NOUPGRADE | Survivesอยู่ | 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 Company | Withdrawnถอน | 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 company | Reversedกลับด้าน | 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 · 9 | Carriedยกมา | 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 โดยแก้ข้อโต้แย้งเฉพาะที่การขยายขอบเขตกระทบ |
| K-1 | The 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-2 | The 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-3 | The 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-4 | The 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-5 | The 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-6 | The 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-7 | The 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-8 | The 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-9 | Two 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-10 | The 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-11 | The 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-12 | The 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.แพลตฟอร์มเต็มไปด้วยสถานที่ที่ไม่ใช่หน่วยธุรกิจ และหน่วยธุรกิจที่ไม่ใช่สถานที่อยู่แล้ว ลานรับซื้อ ตราชั่ง ช่องคิว และสล็อตจองคิวล้วนเป็นสถานที่ ส่วนฝ่ายขนส่งที่ดูแลสามแห่งคือหน่วยที่ไม่มีสถานที่เดียว การพับอย่างหนึ่งเข้าอีกอย่างบังคับให้โกหก |
| 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_ | The registration or statute, as a qualification.การจดทะเบียนหรือกฎหมายจัดตั้ง ในรูป qualification | The 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 มาจากเอนทิตีที่ไม่ควรถือที่ตั้ง |
| Department 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.แถวเชื่อม หลายต่อหลาย เพราะหน่วยงานครอมหลายสถานที่ได้ หน่วยที่มีสถานที่เดียวมีแถวเดียวและไม่เห็นกลไกนี้เลย |
| OwnershipEdge | The shareholding graph of PROP-026: chains, cycles, derived control.กราฟการถือหุ้นของ PROP-026 | Re-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 หลายต่อหลายพร้อมสัดส่วน ส่วนต้นไม้หน่วยงานมีแม่เดียว |
| Mill | The 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 บอกว่าโรงงานตั้งอยู่ที่ไหน |
| Membership | Person ↔ 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 แล้ว |
| Formรูปแบบ | Classกลุ่ม | Registrar / instrumentนายทะเบียน / ตราสาร | Identifier & re-attestationเลขประจำตัวและการยืนยันซ้ำ |
|---|---|---|---|
| company_limited บริษัทจำกัด | private_juristic | DBD — กรมพัฒนาธุรกิจการค้า · company extract (หนังสือรับรอง)กรมพัฒนาธุรกิจการค้า · หนังสือรับรอง | Juristic person no. 13 · extract dated within 12 monthsเลขนิติบุคคล 13 หลัก · หนังสือรับรองไม่เกิน 12 เดือน |
| public_company_limited บริษัทมหาชนจำกัด | private_juristic | DBD · company extractกรมพัฒนาธุรกิจการค้า · หนังสือรับรอง | Juristic person no. 13 · 12 monthsเลขนิติบุคคล 13 หลัก · 12 เดือน |
| limited_partnership ห้างหุ้นส่วนจำกัด | private_juristic | DBD · partnership extractกรมพัฒนาธุรกิจการค้า · หนังสือรับรอง | Juristic person no. 13 · 12 monthsเลขนิติบุคคล 13 หลัก · 12 เดือน |
| registered_partnership ห้างหุ้นส่วนสามัญนิติบุคคล | private_juristic | DBD · 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_body | No 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_body | Establishing 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_person | DBD via the local authority · commercial registration (พ.ค. 0403)กรมพัฒนาธุรกิจการค้าผ่านท้องถิ่น · ทะเบียนพาณิชย์ | Commercial reg. no.; the holder remains a natural person — no juristic personalityเลขทะเบียนพาณิชย์ · ผู้ถือยังเป็นบุคคลธรรมดา ไม่มีสภาพนิติบุคคล |
| null หน่วยงานภายใน | internal | The 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 ระบุสิ่งที่ยอมรับโดยไม่ต้องไล่ชื่อรูปแบบ
| Capacitycapacity | Applied holder_kindholder_kind ที่ apply แล้ว | Becomesกลายเป็น |
|---|---|---|
| mill · group · operator | organization_only | requires: [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 · ocsf | organization_only | requires: [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 ผิด |
| bank | organization_only | requires: [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 · lead | individual_or_ | No 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.ไม่มีข้อกำหนดรูปแบบเลย ชาวไร่คนเดียว สหกรณ์ และบริษัทจำกัด ถือด้วยเงื่อนไขเดียวกัน |
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 และใหญ่กว่าอย่างมีนัยสำคัญ
| Nodeโหนด | What the pass doesรอบนี้ทำอะไร |
|---|---|
| entities.Party | Delete 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 → Department | Renamed, 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 new | Two 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.LegalEntity | Retired 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 · Contractor | Four notes drop “an individual party” / “an organization party”. Mill.legal_entity_id → Mill.department_id, meaning unchanged.หมายเหตุสี่รายการเลิกใช้วลีเดิม และ Mill.legal_entity_id เปลี่ยนชื่อ |
| legalForms new | New 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.nodes | One 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.nodes | Seven 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.edges | Party→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 · aggregates | The 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.permissionModel | holderKinds 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-80 | WF-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 ใดได้ขั้นตอนใหม่ |
| requirements | FR-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 |
| events | Per 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 · $comment | New 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 พร้อมตัวชี้ |
| Documentเอกสาร | What movesอะไรขยับ |
|---|---|
| SPEC-ERD-GRP · SPEC-DDD-GRP · SPEC-PRD-GRP · SPEC-APP-GRP | The 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-FED | Receive 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-FED | Section 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-GRP | WF-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-FED | Section 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-FIN | Master 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 · OPS | One “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ทุกเอกสารที่อ้าง domain | The 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 และเป็นต้นทุนเชิงกลไกที่ใหญ่ที่สุดของข้อเสนอนี้ |
| 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-11 | Unchanged 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 |
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-5 | DECIDEDตัดสิน | 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-6 | Closed 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-7 | DECIDEDตัดสิน | 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-8 | Revised — 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-9 | Standsคงเดิม | Untouched by all four decisions. Low risk either way, and the recommendation is unchanged.ไม่ถูกกระทบจากผลตัดสินทั้งสี่ข้อ |
| OQ-10 | Stands — 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-11 | Closed 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-12 | DECIDED — 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-13 | Closed 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-14 | Standsคงเดิม | 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-15 | Closed 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 — รายการชนิดนี้เป็นข้อมูล |
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.จุดชนสองจุดถูกระบุไว้ก่อนตัดสินและถูกยอมรับพร้อมกัน จุด (ก) แก้ด้วยการกำหนดคำไทยเป็น หน่วยงาน ส่วนจุด (ข) คือราคาของการมีคำเดียวแทนสองคำ
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/ ยังไม่ถูกสร้าง
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 และการคลี่สิทธิ์ไม่จำกัดไปด้วย แปดชั้นเผื่อกรณีจริงที่ลึกที่สุดไว้มาก และเป็นการปฏิเสธพร้อมเหตุผลตอนสร้าง ไม่ใช่การตัดเงียบ
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 ต้องฟังอยู่แล้ว
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 ตอนนี้มีสามสิ่งที่ทำให้มันพัง
| 1 | The 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 เลขทะเบียนสหกรณ์ และรหัสวิสาหกิจชุมชน เป็นระบบเลขต่างชุดกัน เลขชุดเดียวกันจากสองนายทะเบียนคือสองหน่วยที่ต่างกัน |
| 2 | A 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 หลัก เลขผู้เสียภาษีจึงเป็นเลขที่เกือบทุกหน่วยงานที่จดทะเบียนมี |
| 3 | A 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 ที่มีทุกฝ่ายและกองรวมอยู่ ดัชนีทั้งสองจึงต้องเป็นแบบบางส่วน
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 แล้วถือว่าใช้ได้สิบสองเดือน วิสาหกิจชุมชนต่ออายุรายปี ส่วนกฎหมายจัดตั้งไม่หมดอายุ สิ่งที่ต้องไม่เกิด: การขาดอายุแล้วถอนทะเบียนหน่วยงานเงียบ ๆ
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 สองรายค้าขายใต้ทะเบียนเดียวกันเงียบ ๆ คือความล้มเหลวของการแยก การโอนย้ายหน่วยงาน ต้นไม้ย่อย และการผูกกับโรงงาน แต่ไม่ย้ายระเบียน
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.นิติบุคคลถูกบรรจุในสิ่งที่ไม่มีสภาพทางกฎหมายไม่ได้ กฎข้อเดียวนี้จับกรณีผิดและรับทุกโครงสร้างจริง อย่าสร้างเมทริกซ์
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 คือชื่อที่แพลตฟอร์มเรียก ส่วนชื่อตามกฎหมายคือชื่อที่นายทะเบียนเรียกนิติบุคคล และอาจมีหลายชื่อ เอกสารอ่านจากหน่วยงานที่เอกสารนั้นเป็นของ
“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 แล้วขัดกันในจุดนี้อยู่ก่อนแล้ว และรูปของคำตอบคือ บัญชีของหน่วยงานที่จดทะเบียนซึ่งเป็นบรรพบุรุษใกล้ที่สุด
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 มีอยู่แต่ยังลึกเกินสามชั้นไม่ได้
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 เป็นความสะดวกเชิงปฏิบัติการหรือพื้นผิวด้านความมั่นคง
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.ชาวไร่ที่ส่งอ้อยไม่ได้เป็นเจ้าของสถานที่ การส่งมอบเพียงอ้างถึงสถานที่ของโรงงาน ทางเลือกอีกทางจะกลายเป็นระเบียนสองเจ้าของแรกของแพลตฟอร์ม
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.เราไม่ใช่สมุดที่อยู่ของนายทะเบียน ใบกำกับภาษีพิมพ์ที่อยู่ตามทะเบียน ใบส่งมอบพิมพ์สถานที่
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 เปิดแปลงกล้าหรือคลังน้ำมัน
| Revฉบับ | Dateวันที่ | Changeการเปลี่ยนแปลง |
|---|---|---|
| 0.12 | 3 Aug 2026 | OQ-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.11 | 3 Aug 2026 | OQ-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.10 | 3 Aug 2026 | Editorial, 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.9 | 3 Aug 2026 | Editorial, 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.8 | 3 Aug 2026 | OQ-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.7 | 3 Aug 2026 | All 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.6 | 3 Aug 2026 | OQ-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.5 | 3 Aug 2026 | OQ-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.4 | 3 Aug 2026 | OQ-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.3 | 3 Aug 2026 | Client 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.2 | 3 Aug 2026 | Rewritten 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.1 | 3 Aug 2026 | Created 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 |