SPEC-PRD-FED Rev 0.13.0 · 2026-08-06

Cane Agency · PRD Series · Platform infrastructureสถาบันอ้อย · ชุดเอกสาร PRD · โครงสร้างพื้นฐานของ platform

PRD — Federation & Identity (สหพันธ์อัตลักษณ์)PRD — สหพันธ์อัตลักษณ์ (Federation & Identity)

Documentเอกสาร
SPEC-PRD-FED
Versionversion (เวอร์ชัน)
0.13.0 · Draftฉบับร่าง
Updatedปรับปรุงล่าสุด
2026-08-06
Parentเอกสารแม่
SPEC-PRD · SPEC-APP Section 6
Scopeขอบเขต
Platform infrastructure — not a capacityโครงสร้างพื้นฐาน — ไม่ใช่ capacity
Surfaceช่องทางใช้งาน
account (federation console)account (console (คอนโซล) สหพันธ์)
How to read this documentวิธีอ่านเอกสารนี้ FED is the one perspective family that is not a customer capacity. The six capacity PRDs (CFQ · CFC · MILL · GOV · FIN · CEC) describe who uses the platform; FED describes the identity and access substrate they all stand on — how one person signs in, acts for a tenant (tenant), and is granted exactly what that tenant context allows. Terms capacity, federation and view-as stay in Latin script; the six capacity ids (grower | quota | mill | contractor | bank | government) are code identifiers. FED เป็นเอกสารรายมุมมองเดียวที่ไม่ใช่ capacity ของลูกค้า PRD ของหก capacity (CFQ · CFC · MILL · GOV · FIN · CEC) อธิบายว่าใครใช้ platform; ส่วน FED อธิบายชั้นอัตลักษณ์และการเข้าถึงที่ทุกฝ่ายยืนอยู่บนนั้น — บุคคลหนึ่งลงชื่อเข้าใช้อย่างไร ทำหน้าที่แทนtenant (tenant) และได้รับสิทธิ์เท่าที่บริบทของ tenant นั้นอนุญาต คำว่า capacity federation และ view-as คงเป็นอักษรละติน; รหัส capacity ทั้งหก (grower | quota | mill | contractor | bank | government) เป็นตัวระบุในโค้ด

1. Purpose & context1. วัตถุประสงค์และบริบท

The federation service is the platform's identity, membership and access substrate. Adopted in spec v6.0 (PROP-005), it replaces the founding "one account, one customer group" assumption with a three-part model — Person → Tenant (a container, never a legal body) → capacity set. A person signs in once (phone-first OTP, plus external OIDC) and acts for one tenant at a time; the six former customer groups become capacities a tenant holds and is verified for. The service adds the eighth surface — account, the federation console and the sole identity writer — and owns the federation bounded context. Every other surface consumes identity through a compiled token claim contract and never writes it. Trust across the platform (verified work, ratings, books, credit scoring) depends on one invariant this service guarantees: one actor = one record.

บริการ federation คือชั้นอัตลักษณ์ สมาชิกภาพ และการเข้าถึงของ platform นำมาใช้ใน spec (สเปก) v6.0 (PROP-005) แทนสมมติฐานตั้งต้น "หนึ่งบัญชี หนึ่งกลุ่มลูกค้า" ด้วย model (โมเดล) สามส่วน — Person → Tenant (a container, never a legal body) → ชุด capacity บุคคลลงชื่อเข้าใช้ครั้งเดียว (OTP ทางโทรศัพท์เป็นหลัก และ OIDC ภายนอก) แล้วทำหน้าที่แทนtenant ครั้งละหนึ่งราย; หกกลุ่มลูกค้าเดิมกลายเป็น capacity ที่ tenant ถือและได้รับการยืนยัน บริการนี้เพิ่มช่องทางใช้งานที่แปด — account console สหพันธ์และผู้เขียนอัตลักษณ์เพียงผู้เดียว — และเป็นเจ้าของบริบท federation ช่องทางใช้งานอื่นทุกช่องบริโภคอัตลักษณ์ผ่านสัญญา claim บน token (โทเคน)ที่คอมไพล์แล้ว ไม่มีการเขียนเอง ความน่าเชื่อถือทั่วทั้ง platform (งานที่ตรวจรับ รีวิว สมุดบัญชี การให้คะแนนเครดิต) ขึ้นกับกฎคงที่ที่บริการนี้รับประกัน: tenant จริงหนึ่งราย = หนึ่งเรกคอร์ด

2. Problems today2. ปัญหาในปัจจุบัน

3. Actors3. ผู้เกี่ยวข้อง

Actorผู้เกี่ยวข้องProfileโปรไฟล์What FED gives themFED ให้อะไร
Multi-capacity personบุคคลหลาย capacityA quota farmer who also grows cane and runs a drone-spray sidelineหัวหน้าโควต้าที่ปลูกอ้อยเองและมีงานพ่นโดรนเสริมOne sign-in; a tenant switcher; the mobile + portal + dispatch tiles all appear without a second accountลงชื่อเข้าครั้งเดียว; ตัวสลับ tenant; ไทล์ mobile + portal + dispatch ปรากฏครบโดยไม่ต้องมีบัญชีที่สอง
Tenant / account adminผู้ดูแล tenant / บัญชีThe owner of an organization tenant (mill, cooperative, FI)เจ้าของ tenant แบบองค์กร (โรงงาน สหกรณ์ FI)Invite members by phone, request capacities, author role × permission matrices, scope grants, grant & revoke consentsเชิญสมาชิกด้วยเบอร์โทร ขอ capacity เขียนตาราง role × permission จำกัดขอบเขตสิทธิ์ ให้และเพิกถอนความยินยอม
Platform supportทีมสนับสนุน platformA platform_admin helping a tenant resolve an issueplatform_admin ที่ช่วย tenant แก้ปัญหาAudited view-as: enter a tenant read-only, under a persistent banner, every action dual-logged (X4)view-as ที่ตรวจสอบได้: เข้าไปใน tenant แบบอ่านอย่างเดียว มีแบนเนอร์ค้างไว้ ทุกการกระทำบันทึกซ้อนสองชั้น (X4)
Every consuming surfaceทุกช่องทางใช้งานที่บริโภคportal · mobile · dispatch · crew · finance · regulator · websiteportal · mobile · dispatch · crew · finance · regulator · websiteA compiled token they read, never write — surface tiles, role, permissions, scope resolve from claimstoken ที่คอมไพล์แล้วให้อ่าน ไม่เขียน — ไทล์ช่องทาง บทบาท permission ขอบเขต ตัดสินจาก claim

4. Scope — features4. ขอบเขต — feature (ฟีเจอร์)

FeaturefeatureSurfaceช่องทางใช้งานFRPriorityลำดับ
One federated sign-in per person (phone OTP · external provider accounts · passkeys); tenant-context switcher; one active tenant per token; re-issue on switchลงชื่อเข้าแบบสหพันธ์ครั้งเดียวต่อบุคคล (OTP · บัญชีผู้ให้บริการภายนอก · passkey); ตัวสลับบริบท tenant; หนึ่ง tenant ที่ใช้งานต่อ token; ออก token ใหม่เมื่อสลับaccount · allFR-60P0
Tenant & capacity management: found a tenant, request/grant/suspend/revoke capacities, per-capacity verification levels, exclusivity enforcementจัดการ tenant และ capacity: ตั้ง tenant ขอ/ให้/ระงับ/เพิกถอน capacity ระดับการยืนยันรายตัว บังคับกฎเอกสิทธิ์accountFR-61P0
Entitlement compiler: srf = union of the entitlement matrix over active capacities; the surface switcher renders exactly the claimตัวคอมไพล์สิทธิ์: srf = ยูเนียนของตารางสิทธิ์เหนือ capacity ที่ใช้งาน; ตัวสลับช่องทางแสดงตรงกับ claimaccount · allFR-62P0
Memberships & surface-role grants: invite by phone, one role per surface per membership, owner fixed-full, template role sets per capacityสมาชิกภาพและสิทธิ์บทบาทรายช่องทาง: เชิญด้วยเบอร์โทร หนึ่งบทบาทต่อช่องทางต่อสมาชิกภาพ owner เต็มถาวร ชุดบทบาทเทมเพลตราย capacityaccountFR-63P0
Permission catalogs & role × permission matrix authoring per surface; owner column locked; locked chips for unreachable surfacescatalog (แคตตาล็อก) permission และการเขียนตาราง role × permission รายช่องทาง; คอลัมน์ owner ล็อก; ชิปล็อกสำหรับช่องทางที่เข้าไม่ถึงaccountFR-64P1
Scope overrides: province / district / mill_zone / quota_network / field_set, equal-or-narrower enforcedการจำกัดขอบเขต: province / district / mill_zone / quota_network / field_set บังคับให้เท่าหรือแคบกว่าaccountFR-65P1
ConsentGrant generalized to tenant↔tenant with capacity-aware scopes; grant/revoke UIConsentGrant ขยายเป็น tenant↔tenant พร้อม scope ที่รู้ capacity; UI ให้/เพิกถอนaccount · financeFR-66P0
Cross-tenant audit with dual attribution — acting tenant + acting person on every entryการตรวจสอบข้าม tenant พร้อมระบุที่มาสองชั้น — tenant ที่กระทำ + บุคคลที่กระทำ ทุกรายการallFR-67P0
Platform view-as sessions: permission-gated start, persistent banner, dual logging, session recordsession (เซสชัน) view-as ของ platform: เริ่มต้องมี permission แบนเนอร์ค้าง บันทึกสองชั้น มีเรกคอร์ด sessionaccount · portal · dispatchFR-68P1
Migration & merge tooling: tenant→party and user→person mapping, phone-verified assisted person merge, full auditเครื่องมือย้ายและรวม: จับคู่ tenant→party และ user→person รวมบุคคลแบบช่วยยืนยันด้วยเบอร์โทร ตรวจสอบครบaccountFR-69P0
v0.42.0 Several ways in, one person — phone number, provider accounts (LINE · Google · Apple; Facebook at V1.1) and passkeys all resolving to one Personv0.42.0 หลายทางเข้า คนเดียว — เบอร์โทร บัญชีผู้ให้บริการ (LINE · Google · Apple; Facebook ที่ V1.1) และ passkey ทั้งหมดชี้ไปที่บุคคลเดียวaccount · mobile · portalFR-363 · FR-370 · FR-376P0
v0.42.0 Several phone numbers per person — verified to themselves, one primary, removable by the holder, with a cooling period on removalv0.42.0 หลายเบอร์ต่อคน — ยืนยันไปที่เบอร์นั้นเอง มีเบอร์หลักหนึ่งเบอร์ เจ้าของถอนเองได้ และมีระยะพักหลังถอนaccount · mobile · portalFR-364 · NFR-14 (amended)P0
v0.42.0 The look-and-learn account and what a verified number buys — invitation, attachment to a tenant record, notifications, payment advicev0.42.0 บัญชีที่ดูและเรียนรู้ได้ และสิ่งที่เบอร์ที่ยืนยันแล้วเปิดให้ — คำเชิญ การผูกกับระเบียนของ tenant การแจ้งเตือน ใบแจ้งการจ่ายเงินaccount · mobileFR-365P0
v0.42.0 The personal account beside an organization membership — leaving revokes the organization’s entitlements and its sessions, and touches nothing elsev0.42.0 บัญชีส่วนตัวคู่กับ membership ขององค์กร — การลาออกเพิกถอนสิทธิ์และเซสชันขององค์กร และไม่แตะสิ่งอื่นaccount · portal · mobileFR-366P0
v0.42.0 Ways-in management, sessions and sign-in history on every surface a person can sign in tov0.42.0 การจัดการทางเข้า เซสชัน และประวัติการเข้าใช้ บนทุก surface ที่คนคนนั้นเข้าใช้ได้account · mobile · portalFR-367 · FR-368 · FR-373 · FR-374 · NFR-138P1
v0.43.0 Two factor lists — entry_factors admit (passkey · provider · device key), verification_factors verify (phone OTP · card-and-liveness) and mint no sessionv0.43.0 รายการปัจจัยสองชุด — entry_factors ให้เข้า (passkey · ผู้ให้บริการ · กุญแจในเครื่อง) verification_factors ใช้ยืนยัน (OTP · บัตรและตรวจสด) และไม่สร้างเซสชันaccount · mobile · portalFR-377 · FR-378
v0.43.0 The device credential — a key in the handset opened by the device biometric, the screen lock or a six-digit app PIN, enrolled under published governance and reversible for seven daysv0.43.0 กุญแจในเครื่อง — กุญแจในเครื่องที่เปิดด้วยชีวมาตรของเครื่อง ล็อกหน้าจอ หรือ PIN หกหลักของแอป ลงทะเบียนภายใต้การกำกับที่ประกาศไว้ และย้อนกลับได้เจ็ดวันmobile · accountFR-379 · FR-380
v0.43.0 The risk challenge and its published five-signal register — a second factor when there is doubt, read only by the holderv0.43.0 ด่านยืนยันเมื่อสงสัยและทะเบียนห้าสัญญาณที่ประกาศไว้ — ปัจจัยที่สองเมื่อมีข้อสงสัย เจ้าของอ่านได้คนเดียวaccount · mobile · portalFR-381 · FR-382 · NFR-139
v0.42.0 Recovery — every route publishes its honest cost and time; the national ID card plus a live check as the last resortv0.42.0 การกู้คืน — ทุกทางประกาศต้นทุนและเวลาตามจริง; บัตรประชาชนบวกการตรวจสดเป็นทางสุดท้ายaccount · mobileFR-371 · FR-372P0

Guarantees are non-functional: NFR-14 (person uniqueness & PDPA — one verified phone = one person, erasable by anonymization), NFR-15 (compiler bind — the compiled srf/perm claims must equal the authored matrices; a diverging resolver is a defect), NFR-16 (capacity exclusivity — an active bank or government capacity coexists with no other active capacity), NFR-17 (token budget — 4 KB JWE; JWS on offline field surfaces).

การรับประกันเป็นข้อกำหนดที่ไม่ใช่หน้าที่: NFR-14 (ความไม่ซ้ำของบุคคลและ PDPA — หนึ่งเบอร์ที่ยืนยัน = หนึ่งบุคคล ลบได้ด้วยการทำให้ไม่ระบุตัวตน), NFR-15 (การผูกตัวคอมไพล์ — claim srf/perm ที่คอมไพล์ต้องเท่ากับตารางที่เขียนไว้; ตัวแก้ที่เพี้ยนคือข้อบกพร่อง), NFR-16 (เอกสิทธิ์ capacity — bank หรือ government ที่ใช้งานอยู่ร่วมกับ capacity อื่นที่ใช้งานไม่ได้), NFR-17 (งบ token — JWE 4 KB; JWS บนช่องทางภาคสนามออฟไลน์)

5. The six-layer access model5. model การเข้าถึงหกชั้น

Amended v0.25.0 (PROP-026, client directions D-3/D-4). Layer 1 additionally names exactly ONE active department inside the tenant (dep claim, FR-60/FR-220); layer 2 resolves at the tenant (group entitles the root department, factory surfaces entitle site departments); layer 3 becomes one role per surface per department (SurfaceRoleGrant + department_id, FR-63); layer 4 is compiled per department as the account's own grants ∪ its directory groups' grants with deny-overrides (FR-64/FR-216); layer 5 gains department_path as its outermost axis (FR-65). Layer 6 is unchanged and never transitive (NFR-65). Full contract: Section 12.

แก้ v0.25.0 (PROP-026 คำสั่งลูกค้า D-3/D-4) ชั้น 1 ระบุหน่วยงานที่ใช้งานหนึ่งเดียวภายใน tenant เพิ่มด้วย (claim dep, FR-60/FR-220); ชั้น 2 ตัดสินที่ tenant (group ให้สิทธิ์หน่วยงานราก ช่องทางโรงงานให้สิทธิ์หน่วยงานประจำสถานที่); ชั้น 3 เป็นหนึ่ง role ต่อ surface ต่อหน่วยงาน (SurfaceRoleGrant + department_id, FR-63); ชั้น 4 คอมไพล์รายหน่วยงานเป็น grant ของบัญชีเอง ∪ grant ของกลุ่มไดเรกทอรี โดยการปฏิเสธชนะ (FR-64/FR-216); ชั้น 5 เพิ่ม department_path เป็นแกนนอกสุด (FR-65) ชั้น 6 ไม่เปลี่ยนและไม่ส่งต่อ (NFR-65) สัญญาเต็ม: ข้อ 12

Authorization resolves in layer order; each layer only narrows what the previous one allows — nothing later can widen what an earlier layer denied. The model is adapted from RiverSync's SPEC-PRD-FED on the wangkanai/federation foundation (Section 7).

การกำหนดสิทธิ์ตัดสินตามลำดับชั้น แต่ละชั้นได้แต่บีบให้แคบลงจากชั้นก่อน — ไม่มีชั้นหลังใดขยายสิ่งที่ชั้นก่อนปฏิเสธได้ model นี้ปรับจาก SPEC-PRD-FED ของ RiverSync บนรากฐาน wangkanai/federation (ข้อ 7)

Layerชั้นQuestion it answersคำถามที่ตอบDecided byตัดสินโดย
1 · Tenant contextบริบท tenantWhich tenant is this person acting for right now?ตอนนี้บุคคลนี้ทำหน้าที่แทน tenant รายใด?Membership — chosen at sign-in or via the switcher; exactly one active tenant per token (FR-60)Membership — เลือกตอนลงชื่อหรือผ่านตัวสลับ; หนึ่ง tenant ที่ใช้งานต่อ token (FR-60)
2 · Entitlementสิทธิ์เข้าช่องทางWhich surfaces can this tenant context open?บริบท tenant นี้เปิดช่องทางใดได้?The capacity × surface matrix (Section 6), compiled to srf (FR-62, NFR-15)ตาราง capacity × ช่องทาง (ข้อ 6) คอมไพล์เป็น srf (FR-62, NFR-15)
3 · RoleบทบาทWhich role does the membership hold in this surface?สมาชิกภาพถือบทบาทใดในช่องทางนี้?One role per surface per membership — SurfaceRoleGrant (FR-63)หนึ่งบทบาทต่อช่องทางต่อสมาชิกภาพ — SurfaceRoleGrant (FR-63)
4 · PermissionPermissionWhat can that role do here?บทบาทนั้นทำอะไรได้ที่นี่?The surface's role × permission matrix (PermissionCatalog / RolePermission, FR-64)ตาราง role × permission ของช่องทาง (PermissionCatalog / RolePermission, FR-64)
5 · ScopeขอบเขตWhere do those permissions apply?permission เหล่านั้นใช้ที่ไหน?Tenant-wide by default; narrowed per province / district / mill_zone / quota_network / field_set — equal-or-narrower only (FR-65)ทั้ง tenant โดยปริยาย; แคบลงราย province / district / mill_zone / quota_network / field_set — เท่าหรือแคบกว่าเท่านั้น (FR-65)
6 · Cross-tenantข้าม tenantWhat can an outside tenant see of mine?tenant ภายนอกเห็นของฉันได้แค่ไหน?Exactly four mechanisms — X1–X4 (Section 8 of SPEC-PWF-FED; NFR-08)กลไกสี่อย่างเท่านั้น — X1–X4 (ข้อ 8 ของ SPEC-PWF-FED; NFR-08)

6. Capacity × surface entitlement matrix (normative)6. ตารางสิทธิ์ capacity × ช่องทาง (บรรทัดฐาน)

v0.25.0 (PROP-026): the matrix gains the market capacity group → [account, group] — the thirteenth surface. The group capacity is exclusive by construction (a group tenant produces nothing) and admission is operator-verified ownership evidence (WF-76). Graph federation.entitlementMatrix stays canonical.

v0.25.0 (PROP-026): ตารางเพิ่ม capacity ฝั่งตลาด group → [account, group] — surface ที่สิบสาม capacity group เป็นเอกสิทธิ์โดยการออกแบบ (tenant กลุ่มไม่ผลิตอะไร) และการรับเข้าคือหลักฐานความเป็นเจ้าของที่ operator ตรวจยืนยัน (WF-76) federation.entitlementMatrix ใน graph ยังเป็น canonical

A tenant's surface entitlement is the union over its active capacities; the compiled srf claim must equal it (NFR-15). Presence means "tile shown", not "can sign in". account is explicit for every capacity (uniform decode); website is public — no row. A pending capacity's surfaces lock with an explain-and-unlock state; the rest of the tenant is untouched.

สิทธิ์เข้าช่องทางของ tenant คือยูเนียนเหนือ capacity ที่ใช้งานอยู่; claim srf ที่คอมไพล์ต้องเท่ากัน (NFR-15) การมีอยู่หมายถึง "แสดงไทล์" ไม่ใช่ "ลงชื่อเข้าได้" account ปรากฏชัดทุก capacity (ถอดรหัสแบบเดียวกัน); website เป็นสาธารณะ — ไม่มีแถว capacity ที่ยัง pending จะล็อกช่องทางไว้พร้อมสถานะอธิบายและปลดล็อก ส่วนที่เหลือของ tenant ไม่ถูกแตะ

CapacityCapacityaccountmobileportaldispatchcrewfinanceregulatorcheckpoint
grower●●······
quota●●●·····
mill v0.24.0●·●····●
contractor●··●●···
bank excl.●····●··
government excl.●·····●·

Finer role × surface narrowing resolves shell-side from the grant set — the token stays capacity-level (NFR-17). The full permission catalogs are SPEC-APP work; this document fixes the mechanics. v0.24.0 (PROP-043): the mill capacity additionally entitles the checkpoint surface — the dedicated evidence-capture terminal app, operated by the mill-employed checkpoint_staff role with zero strategic keys; the later-added admin / board / fund columns render in SPEC-APP Section 6 (the graph matrix is canonical).

การบีบละเอียดระดับ role × surface ตัดสินฝั่ง shell จากชุด grant — token คงอยู่ระดับ capacity (NFR-17) catalog permission เต็มเป็นงานของ SPEC-APP; เอกสารนี้ตรึงกลไก

7. The token claim contract7. สัญญา claim บน token

v0.25.0 (PROP-026 D-3): the contract gains dep — the active department path, exactly one per token; switching department is a re-issue, never a widening. perm carries the COMPILED per-department result, never the transitive directory-group closure, so the 4 KB JWE budget of NFR-17 survives a twelve-factory group (NFR-67). Directory-grant and domain events invalidate cached tokens.

v0.25.0 (PROP-026 D-3): สัญญาเพิ่ม dep — department path ที่ใช้งานอยู่ หนึ่งเดียวต่อ token; การสลับหน่วยงานคือการออก token ใหม่ ไม่ใช่การขยายสิทธิ์ perm บรรทุกผลที่คอมไพล์แล้วรายหน่วยงาน ไม่ใช่ closure ของกลุ่มไดเรกทอรีทั้งหมด งบ JWE 4 KB ตาม NFR-17 จึงอยู่รอดในกลุ่มสิบสองโรงงาน (NFR-67) เหตุการณ์ของ grant ไดเรกทอรีและหน่วยงานทำให้ token ที่ cache ไว้ใช้ไม่ได้

At sign-in (and at every tenant switch) the resolved model compiles onto the access token as short-named claims. The account authority is the sole writer; surfaces consume through shared decoders, never by reaching into the federation store (consumption architecture, SPEC-DDD-FED Section 3).

ตอนลงชื่อเข้าใช้ (และทุกครั้งที่สลับ tenant) model ที่ตัดสินแล้วคอมไพล์ลงบน token เป็น claim ชื่อสั้น อำนาจ account เป็นผู้เขียนเพียงผู้เดียว; ช่องทางบริโภคผ่านตัวถอดรหัสร่วม ไม่เอื้อมเข้าคลัง federation (สถาปัตยกรรมการบริโภค, SPEC-DDD-FED ข้อ 3)

ClaimCarriesบรรทุก
subThe person (PSN id) — stable across every tenant contextบุคคล (รหัส PSN) — คงที่ทุกบริบท tenant
tntThe active tenant of this session — exactly one (FR-60); switching tenants re-issues the tokentenant ที่ใช้งานของ session นี้ — หนึ่งเดียว (FR-60); สลับ tenant คือออก token ใหม่
capThe tenant's active capacity set — drives capacity-conditional UI (e.g. the marketplace disclosure chip)ชุด capacity ที่ใช้งานของ tenant — ขับ UI ที่ขึ้นกับ capacity (เช่นชิปเปิดเผยในตลาด)
srfEntitled surface keys — union of the matrix over cap; account always explicit; must equal the matrix (NFR-15)คีย์ช่องทางที่มีสิทธิ์ — ยูเนียนของตารางเหนือ cap; account ชัดเสมอ; ต้องเท่ากับตาราง (NFR-15)
permPermissions AND scope, packed by a deterministic codec — no standalone scope claim (token budget)permission และขอบเขต แพ็กด้วยตัวเข้ารหัสที่แน่นอน — ไม่มี claim scope แยก (งบ token)
verPerson verification level + per-capacity verification flags — gates locked statesระดับการยืนยันของบุคคล + ธงยืนยันราย capacity — กั้นสถานะที่ล็อก
act · vasView-as only: the acting platform person (RFC 8693 actor) and the ViewAsSession id (X4)เฉพาะ view-as: บุคคล platform ที่กระทำ (RFC 8693 actor) และรหัส ViewAsSession (X4)
amrv0.42.0 (PROP-067): the method that minted this session — phone_otp | provider | passkey (AuthSession.auth_method), so a step-up (FR-375) is evaluated against the session instead of re-asked at every act.v0.42.0 (PROP-067): วิธีที่ออกเซสชันนี้ — phone_otp | provider | passkey (AuthSession.auth_method) เพื่อให้การขอปัจจัยที่แข็งขึ้น (FR-375) ประเมินจากเซสชันแทนการถามซ้ำทุกการกระทำ
aalv0.42.0 (PROP-067): the assurance level the session was minted at — aal1 | aal2. Syncable passkeys reach aal2; SMS/PSTN OTP is a restricted authenticator and stays aal1. Recorded and readable, NEVER used to refuse a public user (FR-370).v0.42.0 (PROP-067): ระดับความเชื่อมั่นตอนออกเซสชัน — aal1 | aal2 passkey ที่ซิงก์ได้ถึง aal2; OTP ทาง SMS เป็น authenticator ที่ถูกจำกัดและอยู่ที่ aal1 บันทึกและอ่านได้ แต่ห้ามใช้ปฏิเสธผู้ใช้ทั่วไป (FR-370)
Token budget (NFR-17)งบ token (NFR-17) Encrypted access tokens fit a 4 KB JWE budget; nothing unbounded rides in claims — anything larger resolves server-side. Field exception: the offline-first surfaces (crew, mobile) receive JWS (signed, not encrypted) tokens with a 72-hour offline validity window, silent refresh on any connectivity, and a revocation list synced on reconnect. token เข้าถึงที่เข้ารหัสอยู่ในงบ JWE 4 KB; ไม่มีอะไรที่ไม่จำกัดขนาดขี่บน claim — อะไรที่ใหญ่กว่านั้นตัดสินฝั่งเซิร์ฟเวอร์ ข้อยกเว้นภาคสนาม: ช่องทางออฟไลน์ก่อน (crew, mobile) รับ token JWS (ลงลายเซ็น ไม่เข้ารหัส) อายุออฟไลน์ 72 ชั่วโมง รีเฟรชเงียบเมื่อมีสัญญาณ และซิงก์รายการเพิกถอนเมื่อกลับมาเชื่อมต่อ

8. Key journeys8. เส้นทางการใช้งานหลัก

#Journeyเส้นทางWF
J1Onboard once. A person registers with a phone OTP (verification level set), founds or joins a tenant, and requests the first capacity; per-capacity verification branches decide the rest. Replaces the six separate group onboardings.ขึ้นทะเบียนครั้งเดียว บุคคลลงทะเบียนด้วย OTP (ตั้งระดับการยืนยัน) ตั้งหรือเข้าร่วม tenant และขอ capacity แรก; กิ่งการยืนยันราย capacity ตัดสินที่เหลือ แทนการขึ้นทะเบียนหกกลุ่มแยกWF-24
J2Add a capacity. An existing tenant requests an additional capacity (the drone farmer, the mill service arm); verification runs, entitlement recompiles, and the exclusivity check bites (NFR-16).เพิ่ม capacity tenant เดิมขอ capacity เพิ่ม (เกษตรกรโดรน หน่วยบริการโรงงาน); การยืนยันทำงาน สิทธิ์คอมไพล์ใหม่ และการตรวจเอกสิทธิ์มีผล (NFR-16)WF-25
J3Switch tenant context. Sign in, choose a tenant, act; switching re-issues the token — never a merged session. Field surfaces get an offline JWS.สลับบริบท tenant ลงชื่อเข้า เลือก tenant ทำงาน; การสลับออก token ใหม่ — ไม่ใช่ session รวม ช่องทางภาคสนามได้ JWS ออฟไลน์WF-26
J4Support acts as view-as. Platform support starts a permission-gated session, works under a persistent banner, and every action is dual-logged and attributed to acting tenant + acting person; read-only by default.สนับสนุนทำงานแบบ view-as ทีมสนับสนุนเริ่ม session ที่ต้องมี permission ทำงานใต้แบนเนอร์ค้าง และทุกการกระทำบันทึกสองชั้นและระบุที่มาถึง tenant + บุคคลที่กระทำ; อ่านอย่างเดียวโดยปริยายWF-27

9. Amendments to PROP-003 (FIN) & PROP-004 (CEC)9. การแก้ไข PROP-003 (FIN) และ PROP-004 (CEC)

Federation absorbs both earlier proposals' identity plumbing. The perspective families keep their document codes; only their key changes from group to capacity.

Federation รับงานอัตลักษณ์ของทั้งสองข้อเสนอก่อนหน้าเข้ามา เอกสารรายมุมมองคงรหัสเดิม เปลี่ยนแค่คีย์จากกลุ่มเป็น capacity

Proposalข้อเสนอAmendment under FEDการแก้ไขภายใต้ FED
PROP-003 (FIN)The bank customer group becomes the exclusive bank capacity (NFR-16); the finance surface gates on it; ConsentGrant re-homes to tenant↔tenant (X1) with scopes intact. A bank is still never a เงินเกี๊ยว lender.กลุ่มลูกค้าธนาคารกลายเป็น capacity bank แบบเอกสิทธิ์ (NFR-16); ช่องทาง finance กั้นด้วยมัน; ConsentGrant ย้ายบ้านเป็น tenant↔tenant (X1) โดย scope คงเดิม ธนาคารยังไม่เป็นผู้ให้กู้เงินเกี๊ยว
PROP-004 (CEC)The contractor becomes a capacity, not a sixth group. The freelance | organization duality collapses into Department.legal_form; the affiliated-tenant workaround (Q3) is abolished — a mill or quota tenant holds the contractor capacity directly, with a mandatory marketplace disclosure of that mill/quota capacity (Section 8.3). The freelance→org upgrade becomes "found an organization tenant; move the capacity"; Contractor, its ratings, jobs and books keep their ids.ผู้รับเหมากลายเป็น capacity ไม่ใช่กลุ่มที่หก ความเป็นคู่ freelance | organization ยุบลงใน Department.legal_form; การเลี่ยงด้วย affiliated-tenant (Q3) ถูกยกเลิก — โรงงานหรือ tenant โควตาถือ capacity contractor โดยตรง พร้อมการเปิดเผยในตลาดที่บังคับถึง capacity mill/quota นั้น (ข้อ 8.3) การอัปเกรด freelance→org กลายเป็น "ตั้ง tenant องค์กร แล้วย้าย capacity"; Contractor รีวิว งาน และสมุดบัญชี คงรหัสเดิม
PROP-001 / 02Virtual farmers become tenants with unclaimed persons (WF-01 extension); the perspective machinery keys by capacity instead of group — codes CFQ/CFC/MILL/GOV unchanged.เกษตรกร virtual กลายเป็น tenant ที่มีบุคคลยังไม่อ้างสิทธิ์ (ส่วนขยาย WF-01); กลไกรายมุมมองใช้คีย์ตาม capacity แทนกลุ่ม — รหัส CFQ/CFC/MILL/GOV คงเดิม

10. Out of scope10. นอกขอบเขต

11. The strategic permission group (PROP-042)11. กลุ่ม permission กลยุทธ์ (PROP-042)

Spec v0.17.0 (PROP-042, all seven decisions client-closed 22 Jul 2026) registers the first full department group in the PermissionCatalog: strategic — the gate every strategic-pricing artifact (PROP-009 / PROP-022; NFR-21 / NFR-49) consumes. Six per-surface entries share one logical key id across portal / books / mobile; account hosts the grant flow itself and carries no str_* rows. The normative model lives in the graph (federation.strategicPermissions); FR-160…164 and NFR-53 bind it; WF-65 is the grant walk.

spec v0.17.0 (PROP-042 — ทั้งเจ็ดการตัดสินปิดโดยลูกค้า 22 ก.ค. 2569) ลงทะเบียนกลุ่ม department เต็มรูปกลุ่มแรกใน PermissionCatalog: strategic — gate ที่ทุกชิ้นงานของค่าอ้อยกลยุทธ์ (PROP-009 / PROP-022; NFR-21 / NFR-49) ใช้ entry ราย surface หกรายการใช้ key id เชิงตรรกะร่วมหนึ่งเดียวบน portal / books / mobile; ส่วน account เป็นที่อยู่ของ flow การมอบเองและไม่ถือแถว str_* model เชิงบรรทัดฐานอยู่ใน graph (federation.strategicPermissions); FR-160…164 กับ NFR-53 ผูกพัน และ WF-65 คือขั้นตอนการมอบ

KeyGrantsให้สิทธิ์
str_viewThe area exists — sidebar item, plan lists, premium panels with masked amounts. The implied floor of every other key.รู้ว่าพื้นที่มีอยู่ — รายการ sidebar รายชื่อแผน panel premium แบบ mask จำนวน เป็นพื้นที่ key อื่นทุกตัว imply
str_amountsUnmasked ฿ on payment items, premium columns, the cost console, slips & reports.เห็น ฿ เต็มบน payment item คอลัมน์ premium console ต้นทุน slip และรายงาน
str_plan_manageCreate / edit plan scenarios (PROP-022).สร้าง/แก้สถานการณ์ของแผน (PROP-022)
str_plan_approveExecutive grade — approve/activate a plan version; strictly senior to str_plan_manage, no self-approve.ระดับผู้บริหาร — อนุมัติ/activate เวอร์ชันแผน; อาวุโสกว่า str_plan_manage เสมอ ห้ามอนุมัติงานของตนเอง
str_release_approveApprove PremiumRelease.อนุมัติ PremiumRelease
str_configCalc-basis cascade & policy rows.ลำดับชั้น calc basis และแถวนโยบาย
RuleกติกาVerdict (OQ-8…14)คำวินิจฉัย (OQ-8…14)
Redaction (A-20)การ redact (A-20)No keys = absent (the server never sends the fields, NFR-53) · str_view only = present, per-field masked · + str_amounts = full. Slips & reports mask per-section (A-48).ไม่มี key = หายไป (server ไม่ส่ง field เลย, NFR-53) · มีแค่ str_view = เห็นแต่ mask ราย field · เพิ่ม str_amounts = เห็นเต็ม slip และรายงาน mask รายส่วน (A-48)
EntitlementTwo-layer (FR-161): the purchase mints the strategic entitlement unlocking the group for role composition; lapse leaves grants dormant, renewal reactivates; base PROP-009 recording is permissions-only for every mill.สองชั้น (FR-161): การซื้อสร้าง entitlement strategic ที่ปลดล็อกกลุ่มให้ประกอบ role; หมดอายุแล้ว grant ค้างเฉย ๆ ต่ออายุแล้วกลับมาทำงาน; การบันทึกพื้นฐานของ PROP-009 ใช้ permission อย่างเดียวทุกโรงงาน
Role defaultsค่าเริ่มต้นของ roleDeny-all baseline for non-owner roles; templates: mill_manager all six · finance_officer str_view + str_amounts + str_release_approve · weighbridge operator / field agent none. Templates are suggestions, not ceilings (FR-162).ฐาน deny-all สำหรับ role ที่ไม่ใช่เจ้าของ; template: mill_manager ทั้งหก · finance_officer str_view + str_amounts + str_release_approve · พนักงานชั่ง/agent ภาคสนาม ไม่มี; template เป็นข้อเสนอ ไม่ใช่เพดาน (FR-162)
GovernanceการกำกับOwner-only grant/revoke on account; four-eyes on str_amounts / str_config staff grants (never the owner's own sight); full grant/revoke audit, read-audit on unmasked exports only; revocation immediate at the API, shell converges on token re-issue (FR-163, WF-65).มอบ/เพิกถอนโดยเจ้าของเท่านั้นบน account; สองผู้อนุมัติสำหรับการมอบ str_amounts / str_config ให้พนักงาน (กำกับการเห็นของเจ้าของเองไม่ได้); audit การมอบ/เพิกถอนเต็ม read-audit เฉพาะ export ที่ไม่ mask; เพิกถอนมีผลทันทีที่ API ส่วน shell ตามเมื่อ token ออกใหม่ (FR-163, WF-65)
Resolutionการ resolvestr_* rides the perm codec unchanged — key presence is not the secret, amounts are; server-side field-stripping is the confidentiality control (NFR-53); catalog / entitlement-matrix caches invalidate on grant events.str_* เข้า codec perm โดยไม่เปลี่ยนแปลง — การมีอยู่ของ key ไม่ใช่ความลับ จำนวนเงินต่างหาก; การตัด field ฝั่ง server คือตัวคุมความลับ (NFR-53); cache ของ catalog / entitlement matrix invalidate ตาม event การมอบ
Leak pathsช่องทางรั่วView-as always stripped (X4); mill-side exports / prints / the combined slip regenerate against the gate at render time (A-58); notification payloads amount-free; the quota farmer's sight of a sub-farmer agreement rides StrategicAgreement.visible_to_quota, mill-set, default off (FR-164).view-as ตัดเสมอ (X4); export/งานพิมพ์/slip รวมฝั่งโรงงานสร้างใหม่ผ่าน gate ตอน render (A-58); payload การแจ้งเตือนไร้จำนวนเงิน; การเห็นของหัวหน้าโควต้าต่อข้อตกลงของลูกไร่เป็นรายข้อตกลงผ่าน StrategicAgreement.visible_to_quota โรงงานเป็นผู้ตั้ง ค่าเริ่มต้นปิด (FR-164)

12. The tenant directory — factory groups & delegated administration (PROP-026 D-3/D-4)12. ไดเรกทอรีของ tenant — กลุ่มโรงงานและการมอบอำนาจดูแล (PROP-026 D-3/D-4)

PROP-026 expands this service rather than paralleling it. Person · Membership · Tenant · SurfaceRoleGrant · PermissionCatalog · RolePermission stand exactly as applied; the directory adds the two relationships they lacked — a place for a grant to point at (Department) and a set for a grant to be inherited from (DirectoryGroup). The reference model is Microsoft Windows Active Directory's authorization structure; none of its protocols are adopted — authentication stays OIDC + OTP with JWE tokens per Section 7. Normative source: graph federation.directory.

PROP-026 ขยายบริการนี้ ไม่ใช่สร้างขนานกัน Person · Membership · Tenant · SurfaceRoleGrant · PermissionCatalog · RolePermission คงเดิมตามที่ใช้แล้ว; ไดเรกทอรีเพิ่มความสัมพันธ์สองอย่างที่ยังขาด — ที่ ให้ grant ชี้ไป (Department) และชุด ให้ grant ถูกสืบทอดมา (DirectoryGroup) ต้นแบบคือโครงสร้างการให้สิทธิ์ของ Microsoft Windows Active Directory; ไม่รับ protocol ใดของมัน — การพิสูจน์ตัวตนยังเป็น OIDC + OTP พร้อม token JWE ตามข้อ 7 แหล่งเชิงบรรทัดฐาน: federation.directory ใน graph

RuleกติกาContractสัญญา
DR-1The tenant is the wall; the department is the scope. Across tenants nothing resolves and no trust is transitive (NFR-65). A standalone mill is a single-department tenant, so one authorization model covers every factory (OQ-12 — the boundary was re-cut platform-wide).tenant คือกำแพง หน่วยงานคือขอบเขต ข้าม tenant ไม่มีสิ่งใด resolve และไม่มีความเชื่อถือแบบส่งต่อ (NFR-65) โรงงานเดี่ยวคือ tenant หน่วยงานเดียว จึงมี model สิทธิ์เดียวครอบทุกโรงงาน (OQ-12 — ตัดขอบใหม่ทั้ง platform)
DR-2Nothing inherits silently — one built-in inherited group only: grp_enterprise_admin, four-eyes to add a member, named on every member factory’s admin screen, revocable only at the root, barred from transactional keys (OQ-13).ไม่มีอะไรสืบทอดโดยเงียบ — มีกลุ่มสืบทอดในตัวเพียงกลุ่มเดียว: grp_enterprise_admin เพิ่มสมาชิกด้วยสี่ตา แสดงชื่อบนหน้าจอผู้ดูแลของโรงงานสมาชิกทุกแห่ง เพิกถอนได้ที่รากเท่านั้น และห้ามถือกุญแจเชิงรายการ (OQ-13)
DR-3Effective permission = own grants ∪ directory-group grants (one nesting level), narrowed to the active department, deny-overrides; deny-all stays the baseline (FR-216).สิทธิ์ที่ใช้ได้จริง = grant ของตน ∪ grant ของกลุ่มไดเรกทอรี (ซ้อนหนึ่งชั้น) บีบด้วยหน่วยงานที่ใช้งาน การปฏิเสธชนะ; ตั้งต้นปฏิเสธทั้งหมดยังเป็นพื้น (FR-216)
DR-4Administrative reach is not data reach: a directory confers administration, never consent — farmer-level data never pools and the k = 5 floor binds the directory as it binds the console (NFR-63).สิทธิ์ดูแลไม่ใช่สิทธิ์ข้อมูล: ไดเรกทอรีให้สิทธิ์การดูแล ไม่ใช่ความยินยอม — ข้อมูลระดับชาวไร่ไม่รวมกอง และเกณฑ์ k = 5 ผูกไดเรกทอรีเช่นเดียวกับที่ผูก console (NFR-63)
DR-5Two-department audit: every act performed under delegated authority is written to both departments with the full delegation path (NFR-66).บันทึกสองหน่วยงาน: ทุกการกระทำภายใต้อำนาจที่ได้รับมอบถูกเขียนทั้งสองหน่วยงานพร้อมเส้นทางการมอบอำนาจครบ (NFR-66)
DR-6Grouping never moves data: admission re-parents a department, divestment re-parents it out; ledgers, quotas and deliveries stay where they were produced (WF-80).การจัดกลุ่มไม่ย้ายข้อมูล: การรับเข้าย้ายรากของหน่วยงาน การขายออกย้ายมันออก; สมุดบัญชี โควตา และการส่งมอบอยู่ที่ที่ถูกผลิต (WF-80)

Authoring layers (each may narrow what the previous allows, never widen it). A1 vocabulary — PermissionCatalog, platform-authored, every key with its department_delegable flag · A2 role library — RolePermission authored by the tenant at its root department, one library for the whole group · A3 assignment — SurfaceRoleGrant, one role per surface per department per membership · A4 directory groups — DirectoryGrant, a set of accounts × named department paths × role, unioned with A3 · A5 denials at any level, always winning. The group surface mints six keys (grp_view · grp_books · grp_amounts · grp_fleet · grp_admin · grp_str_agreements); transactional and approval keys are department_delegable = false — the directory hands over administration of a factory, never its signature (OQ-15). Walks: WF-79 (delegation) and WF-80 (department creation & re-parenting) in SPEC-PWF-FED / SPEC-PWF-GRP; the market-side product is SPEC-PRD-GRP.

ชั้นการกำหนดสิทธิ์ (แต่ละชั้นบีบสิ่งที่ชั้นก่อนอนุญาตได้ แต่ขยายไม่ได้) A1 คำศัพท์ — PermissionCatalog platform เป็นผู้เขียน ทุกกุญแจมี flag department_delegable · A2 คลัง role — RolePermission tenant เขียนที่หน่วยงานราก คลังเดียวสำหรับทั้งกลุ่ม · A3 การมอบ role — SurfaceRoleGrant หนึ่ง role ต่อ surface ต่อหน่วยงานต่อสมาชิกภาพ · A4 กลุ่มไดเรกทอรี — DirectoryGrant ชุดบัญชี × department path ที่ระบุ × role รวมกับ A3 · A5 การปฏิเสธในชั้นใดก็ชนะเสมอ surface group ออกหกกุญแจ (grp_view · grp_books · grp_amounts · grp_fleet · grp_admin · grp_str_agreements); กุญแจเชิงรายการและการอนุมัติเป็น department_delegable = false — ไดเรกทอรีส่งมอบการดูแลโรงงาน ไม่ใช่ลายมือชื่อของมัน (OQ-15) เส้นทาง: WF-79 (การมอบอำนาจ) และ WF-80 (การสร้างและย้ายรากหน่วยงาน) ใน SPEC-PWF-FED / SPEC-PWF-GRP; ผลิตภัณฑ์ฝั่งตลาดคือ SPEC-PRD-GRP

12. External identity, passkeys, the device credential and account recovery (PROP-067 · PROP-068)12. ตัวตนภายนอก passkey กุญแจในเครื่อง และการกู้คืนบัญชี (PROP-067)

Spec v0.42.0 (PROP-067, approved & applied 31 Jul 2026; all thirteen questions client-closed as D-1…D-13) models the promise FR-60 had already made and nothing described. A provider is a way back in, never a claim about who you are. Four providers are authored — LINE, Google, Apple, Facebook — and three are offered in V1 (Facebook waits for the pilot evidence, D-1); Sign in with Apple appears only where the device can present it and is absent, not greyed elsewhere, with one warning line at binding (D-1, D-2). Passkeys ship where the platform reports credential support, and syncable credentials are accepted without question — refusing them on sync flags only pushes a farmer back to SMS.

spec v0.42.0 (PROP-067 อนุมัติและ apply 31 ก.ค. 2569; คำถามสิบสามข้อปิดครบเป็น D-1…D-13) ทำให้คำสัญญาที่ FR-60 ให้ไว้แล้วแต่ไม่มีอะไรอธิบาย มีแบบจำลองจริง ผู้ให้บริการคือทางกลับเข้ามา ไม่ใช่ข้ออ้างว่าคุณเป็นใคร เขียน enum ไว้สี่ราย — LINE, Google, Apple, Facebook — และ V1 เสนอสาม (Facebook รอหลักฐานจากนำร่อง D-1); Sign in with Apple ขึ้นเฉพาะที่เครื่องแสดงได้ ที่อื่นหายไป ไม่ใช่เทา พร้อมคำเตือนหนึ่งบรรทัดตอนผูก (D-1, D-2) passkey ส่งมอบที่แพลตฟอร์มรายงานว่ารองรับ และรับ credential ที่ซิงก์ได้โดยไม่ตั้งคำถาม — การปฏิเสธด้วย flag การซิงก์มีแต่จะผลักชาวไร่กลับไปหา SMS

The phone is the platform’s address, not its key. NFR-14 is amended one level down: uniqueness lives on the active number (PhoneNumber.e164), a person may register several, exactly one is primary, and none is required at sign-up — an account with no number can look and learn, while verifying a number is what opens the working half: invitation (FR-63), attachment to a tenant record, notifications and the payment advice (FR-365, D-6). From the first membership one verified number is required and must stay. A person’s own account is his: an organization membership is added to it, and leaving revokes that organization’s entitlements and sessions and touches nothing else (FR-366, D-8).

โทรศัพท์คือที่อยู่ของแพลตฟอร์ม ไม่ใช่กุญแจ NFR-14 ถูกแก้ลงมาหนึ่งชั้น: ความไม่ซ้ำอยู่ที่เบอร์ที่ใช้งานอยู่ (PhoneNumber.e164) คนหนึ่งลงทะเบียนได้หลายเบอร์ มีเบอร์หลักหนึ่งเบอร์ และตอนสมัครยังไม่ต้องมีเลย — บัญชีที่ไม่มีเบอร์ดูและเรียนรู้ได้ ส่วนการยืนยันเบอร์คือสิ่งที่เปิดครึ่งที่ใช้ทำงานจริง: คำเชิญ (FR-63) การผูกกับระเบียนของ tenant การแจ้งเตือน และใบแจ้งการจ่ายเงิน (FR-365, D-6) ตั้งแต่ membership แรกต้องมีเบอร์ที่ยืนยันแล้วอย่างน้อยหนึ่งเบอร์เสมอ บัญชีของคนเป็นของเขา: membership ขององค์กรเป็นสิ่งที่เพิ่มเข้ามา และการลาออกเพิกถอนสิทธิ์และเซสชันขององค์กรเท่านั้น ไม่แตะสิ่งอื่น (FR-366, D-8)

Recovery is authentication, so an account is only as strong as its weakest published route — each route states what it costs and how long it takes before it is started, every completion revokes all other sessions and notifies every way in, and the last remaining way in may never be removed (FR-368, FR-371). The self-serve last resort proves the person: the national ID card plus a live check, writing an IdentityCheck that binds national_id_hash as the final anchor (D-5). It keeps the result, not the face — liveness_result, match_score, timestamp and vendor reference persist; the image and any template are deleted at evidence_retained_until, under explicit, separable Thai consent (D-13). The live check does not run in any environment until the PDPA legal review and the vendor data-residency assessment are recorded — an applied acceptance row of FR-372, not a promise held in a proposal (A-65). Model: graph federation.authentication; requirements FR-363…FR-376 · NFR-135…NFR-138; walks WF-117…WF-122; convention A-75; screens sec-01 · sec-02 on the farmer app and the portal alike (NFR-138, D-12).

การกู้คืนคือการยืนยันตัวตน บัญชีจึงแข็งเท่าทางที่อ่อนที่สุดที่ประกาศไว้ — แต่ละทางบอกต้นทุนและเวลาก่อนเริ่ม การกู้คืนที่สำเร็จยกเลิกทุกเซสชันอื่นและแจ้งทุกทางเข้า และห้ามถอนทางเข้าสุดท้าย (FR-368, FR-371) ทางสุดท้ายแบบทำเองพิสูจน์ตัวคน: บัตรประชาชนบวกการตรวจสด เขียน IdentityCheck ที่ผูก national_id_hash เป็นหมุดสุดท้าย (D-5) เก็บผล ไม่เก็บใบหน้า — liveness_result match_score เวลา และอ้างอิงผู้ให้บริการยังอยู่; ภาพและ template ถูกลบที่ evidence_retained_until ภายใต้ความยินยอมโดยชัดแจ้งแยกรายการเป็นภาษาไทย (D-13) การตรวจสดไม่ทำงานในทุกสภาพแวดล้อมจนกว่าจะมีบันทึกการทบทวนกฎหมาย PDPA และการประเมินที่เก็บข้อมูลของผู้ให้บริการ — เป็นแถวเกณฑ์ยอมรับของ FR-372 ที่ apply แล้ว ไม่ใช่คำสัญญาในเอกสารร่าง (A-65) แบบจำลอง: federation.authentication ใน graph; ข้อกำหนด FR-363…FR-376 · NFR-135…NFR-138; เส้นทาง WF-117…WF-122; ธรรมเนียม A-75; หน้าจอ sec-01 · sec-02 ทั้งบนแอปชาวไร่และ portal (NFR-138, D-12)

12.1 The phone number is a validation, not a way in (PROP-068)12.1 เบอร์โทรคือการยืนยัน ไม่ใช่ทางเข้า (PROP-068)

Spec v0.43.0 (PROP-068, approved & applied 31 Jul 2026; all twelve questions client-closed as D-1…D-12) corrects the change set applied the day before — the first proposal in the series whose job was to amend an applied model rather than extend it. On client direction the mobile number stops being an authentication method: it is a validation that proves the holder controls a channel, and a second factor when there is doubt. One factor list becomes two. entry_factors admit — passkey (aal2) · provider (aal1) · device_key (aal1, aal2 when hardware-backed with user verification). verification_factors verify and mint nothing — phone_otp, with no assurance level of its own, and id_card_liveness. The OTP keeps three jobs and no fourth: verify a number to itself, answer a risk challenge, authorise a device enrolment or a recovery (FR-377). This is not ahead of practice: the Bank of Thailand binds mobile banking to one registered device, MAS Singapore had retail banks stop using OTPs for account login in July 2024, and Bank Negara Malaysia ruled the SMS OTP non-compliant as a standalone second factor — each leaving the OTP the single job of confirming ownership of a registered number.

spec v0.43.0 (PROP-068 อนุมัติและ apply 31 ก.ค. 2569; คำถามสิบสองข้อปิดครบเป็น D-1…D-12) แก้ชุดการเปลี่ยนที่ apply ไปเมื่อวันก่อน — เป็นข้อเสนอฉบับแรกในชุดที่มีหน้าที่แก้แบบจำลองที่ apply แล้ว ไม่ใช่ขยาย ตามคำสั่งลูกค้า เบอร์โทรมือถือเลิกเป็นวิธียืนยันตัวตนเพื่อเข้าใช้: เป็นการยืนยันที่พิสูจน์ว่าเจ้าของควบคุมช่องทางนั้น และเป็นปัจจัยที่สองเมื่อมีข้อสงสัย รายการปัจจัยเดียวกลายเป็นสองรายการ entry_factors ให้เข้า — passkey (aal2) · provider (aal1) · device_key (aal1 และ aal2 เมื่อมีฮาร์ดแวร์รองรับพร้อมการยืนยันผู้ใช้) verification_factors ใช้ยืนยันและไม่สร้างสิ่งใด — phone_otp ที่ไม่มี AAL ของตัวเอง และ id_card_liveness OTP เหลือสามงาน ไม่มีงานที่สี่: ยืนยันเบอร์กับตัวเบอร์เอง ตอบด่านเมื่อสงสัย อนุญาตการลงทะเบียนเครื่องหรือการกู้คืน (FR-377) นี่ไม่ได้ล้ำหน้าแนวปฏิบัติ: ธปท. ผูก mobile banking ไว้กับอุปกรณ์ที่ลงทะเบียนหนึ่งเครื่อง MAS สิงคโปร์ให้ธนาคารรายย่อยเลิกใช้ OTP สำหรับการเข้าสู่ระบบตั้งแต่ ก.ค. 2567 และธนาคารกลางมาเลเซียชี้ว่า SMS OTP ใช้เป็นปัจจัยที่สองเดี่ยว ๆ ไม่ผ่านเกณฑ์ — ทุกฉบับเหลืองานเดียวให้ OTP คือยืนยันความเป็นเจ้าของเบอร์ที่ลงทะเบียนไว้

The direction could not be applied by deletion. Take the number out of the entry set and a grower who signed up by number, on a handset with no provider account and no screen lock, holds an account he cannot enter — so the third door is supplied in the same change set: DeviceCredential, a key pair in the device keystore opened by the device biometric, the device screen lock or a six-digit, app-specific PIN, with the biometric preferred and offered first wherever the platform reports one (FR-379, D-1, D-10). The PIN is never resettable by SMS alone — a forgotten PIN is a recovery. A device key counts for the last-door test and never satisfies the different-kind offer, because two device keys on two handsets are one basket (FR-368 · FR-369, D-8). Enrolling one by OTP alone is governed and published, not silent: the credential is written, every other way in is told, three act classes wait out a 24-hour delay — credit requests, payment-detail changes and the removal of a way in, while reading, delivery recording and spend recording never wait — and the holder may reverse it himself for seven days (FR-380, D-2).

คำสั่งนี้ apply ด้วยการลบไม่ได้ ถ้าเอาเบอร์ออกจากชุดที่ให้เข้า ชาวไร่ที่สมัครด้วยเบอร์บนเครื่องที่ไม่มีบัญชีผู้ให้บริการและไม่ได้ตั้งล็อกหน้าจอ จะถือบัญชีที่เข้าไม่ได้ — จึงต้องให้ประตูที่สามในชุดเดียวกัน: DeviceCredential คู่กุญแจใน keystore ของเครื่อง เปิดด้วยชีวมาตรของเครื่อง ล็อกหน้าจอ หรือ PIN หกหลักเฉพาะแอป โดยเลือกชีวมาตรก่อนและเสนอก่อนทุกที่ที่แพลตฟอร์มรายงานว่ามี (FR-379, D-1, D-10) PIN ตั้งใหม่ด้วย SMS เพียงอย่างเดียวไม่ได้ — PIN ที่ลืมคือการกู้คืน กุญแจในเครื่องนับในการทดสอบประตูสุดท้าย และไม่ผ่านการเสนอทางเข้าต่างชนิด เพราะกุญแจในเครื่องสองอันบนสองเครื่องคือตะกร้าเดียว (FR-368 · FR-369, D-8) การลงทะเบียนด้วย OTP เพียงอย่างเดียวถูกกำกับและประกาศไว้ ไม่ใช่ทำเงียบ ๆ: เขียน credential แจ้งทางเข้าอื่นทุกทาง การกระทำสามชั้นรอเวลาหน่วง 24 ชั่วโมง — การขอสินเชื่อ การแก้ข้อมูลการรับเงิน และการถอนทางเข้า ส่วนการอ่าน การบันทึกการส่งมอบ และการบันทึกค่าใช้จ่ายไม่ต้องรอ — และเจ้าของย้อนกลับเองได้เจ็ดวัน (FR-380, D-2)

What "suspicious" means is published, versioned and small. Five deterministic signals and no behavioural inference: new_device · factor_change · repeated_failure · recovery_started · holder_report. IP geolocation, impossible travel, time-of-day, typing cadence, device reputation and every vendor risk score are deliberately excluded, and the four reasons are written into the specification rather than a decision log: an excluded signal widens the PDPA purpose PROP-067 D-9 narrowed; it fires wrongly for ordinary cane work; it cannot be published in a sentence a grower can read; and it costs more when it is wrong than when it is missing (FR-382, D-4). A risk signal may trigger a challenge and may never be one — NIST is explicit that risk-based signals are not valid authenticators in themselves — so a challenge always asks for a factor (FR-381). A failed challenge stops the act and never the reading, with the recovery route on the same screen; the single exception is holder_report, where the holder’s own alarm has revoked everything else (D-6). And a challenge is between the platform and the holder: no mill, quota farmer, lead, bank or agency learns that a person was challenged, why, or whether he passed (NFR-139, D-7).

ความหมายของ "น่าสงสัย" ถูกประกาศ มีเวอร์ชัน และเล็ก ห้าสัญญาณที่ชี้ขาดได้ ไม่มีการอนุมานพฤติกรรม: new_device · factor_change · repeated_failure · recovery_started · holder_report ตำแหน่งจาก IP การเดินทางที่เป็นไปไม่ได้ ช่วงเวลา จังหวะการพิมพ์ ชื่อเสียงของอุปกรณ์ และคะแนนความเสี่ยงของผู้ให้บริการทุกราย ถูกตัดออกอย่างจงใจ และเขียนเหตุผลสี่ข้อไว้ในข้อกำหนด ไม่ใช่ในบันทึกการตัดสิน: สัญญาณที่ตัดออกขยายวัตถุประสงค์ตาม PDPA ที่ D-9 ของ PROP-067 ทำให้แคบ; ทำงานผิดกับงานอ้อยปกติ; ประกาศเป็นประโยคที่ชาวไร่อ่านได้ไม่ได้; และเมื่อผิดมีต้นทุนสูงกว่าเมื่อขาด (FR-382, D-4) สัญญาณเสี่ยงจุดด่านได้ แต่เป็นด่านเองไม่ได้ — NIST ระบุชัดว่าสัญญาณตามความเสี่ยงไม่ใช่ตัวยืนยันตัวตนด้วยตัวเอง — ด่านจึงขอปัจจัยเสมอ (FR-381) การตอบด่านไม่ผ่านหยุดการกระทำ ไม่หยุดการอ่าน และมีทางกู้คืนบนหน้าจอเดียวกัน; ข้อยกเว้นเดียวคือ holder_report ที่สัญญาณเตือนของเจ้าของเองถอนทุกอย่างไปแล้ว (D-6) และด่านเป็นเรื่องระหว่างแพลตฟอร์มกับเจ้าของ: ไม่มีโรงงาน หัวหน้าโควตา หัวตัน ธนาคาร หรือหน่วยงานรัฐ รู้ว่าใครถูกยกด่าน เพราะอะไร หรือผ่านหรือไม่ (NFR-139, D-7)

What it does not change. FR-365 keeps its shape: full functionality still requires a verified number, and the one clause added says why — the platform must be able to reach the person it invites, attaches, notifies and pays. It is reachability, never identity: a verified number leaves id_verified_level untouched, satisfies no capacity requirement and carries no consent, signature or ownership claim (FR-378). Identity proofing stays with IdentityCheck. New convention A-76 — a channel is not a credential is the sibling of A-75 from the other direction, and the settled reading of the client’s wording. Also new: FR-383, no arrangement of factors leaves a person outside his own records. Model: graph federation.authentication (entry_factors · verification_factors · risk · enrolment); requirements FR-377…FR-383 · NFR-139, with nine applied artifacts amended (FR-60 · NFR-14 · FR-363 · FR-364 · FR-365 · FR-368 · FR-369 · FR-371 · FR-375); walks WF-123 · WF-124; screen ac-03 at rare tier, its portal counterpart declared owed (NFR-138).

สิ่งที่ไม่เปลี่ยน FR-365 คงรูปเดิม: ความสามารถเต็มรูปยังต้องมีเบอร์ที่ยืนยันแล้ว และอนุประโยคเดียวที่เพิ่มบอกว่าเพราะอะไร — แพลตฟอร์มต้องติดต่อคนที่เชิญ ผูก แจ้ง และจ่ายเงินให้ได้ เป็นการติดต่อได้ ไม่ใช่ตัวตน: เบอร์ที่ยืนยันแล้วไม่แตะ id_verified_level ไม่ทำให้ผ่านข้อกำหนดของ capacity ใด และไม่มีความยินยอม ลายมือชื่อ หรือการอ้างกรรมสิทธิ์ใดวางอยู่บนมัน (FR-378) การพิสูจน์ตัวตนยังอยู่ที่ IdentityCheck ธรรมเนียมใหม่ A-76 — ช่องทางไม่ใช่ credential เป็นข้อพี่น้องของ A-75 จากอีกทาง และเป็นการอ่านถ้อยคำของลูกค้าที่ตกลงกันแล้ว ของใหม่อีกข้อ: FR-383 การจัดปัจจัยแบบใดก็ไม่ทิ้งคนไว้นอกระเบียนของตัวเอง แบบจำลอง: federation.authentication ใน graph; ข้อกำหนด FR-377…FR-383 · NFR-139 พร้อมแก้ artifact ที่ apply แล้วเก้ารายการ; เส้นทาง WF-123 · WF-124; หน้าจอ ac-03 ชั้น rare โดยหน้าคู่ฝั่ง portal ประกาศเป็นหนี้ค้าง (NFR-138) (FR-60 · NFR-14 · FR-363 · FR-364 · FR-368 · FR-369 · FR-371 · FR-375)

13. The action-based permission foundation (PROP-040)13. ฐานรากสิทธิ์แบบอ้างการกระทำ (PROP-040)

Spec v0.41.0 (PROP-040, approved & applied 30 Jul 2026; all thirteen open questions client-closed as D-1…D-13) gives this service the layer PROP-026 and PROP-042 were both resolving through: a permission names an ACT on an object, and the act is granted to a POSITION. The directory supplies the department and the inheritance set; the strategic and group key families become catalog rows inside their categories; and one resolver serves every capacity. Normative model: graph federation.permissionModel. Bound by FR-350…FR-362 and NFR-131…NFR-134; the walks are WF-113…WF-116.

spec v0.41.0 (PROP-040 อนุมัติและ apply 30 ก.ค. 2569; คำถามเปิดทั้งสิบสามข้อปิดโดยลูกค้าเป็น D-1…D-13) ให้บริการนี้มีชั้นที่ทั้ง PROP-026 และ PROP-042 ตัดสินผ่านอยู่แล้ว: สิทธิ์ตั้งชื่อการกระทำต่อวัตถุ และการกระทำถูกมอบให้ตำแหน่ง ไดเรกทอรีให้หน่วยงานและชุดที่สืบทอด; ตระกูล key ฝั่งกลยุทธ์และกลุ่มกลายเป็นแถวในแคตาล็อกภายในหมวดของตน; และ resolver เดียวรับใช้ทุก capacity model บรรทัดฐานอยู่ที่ federation.permissionModel ใน graph ผูกด้วย FR-350…FR-362 และ NFR-131…NFR-134; เส้นทางคือ WF-113…WF-116

13.1 The grant — three values, eight facets, one inheritance chain13.1 grant — สามค่า แปด facet หนึ่งสายการสืบทอด

The effect is a property of the grant, not of the action, and it is three-valued (D-1): allow confers · deny withholds explicitly and wins at every level (P-3) · not_set is every control's default and states no opinion. deny is not for "no access" — the deny-all floor already does that — it is for cutting a hole in an otherwise granted position. The facets are a vocabulary, never a template: read · create · edit · submit · approve · reject · void · export, and no catalog row carries all eight — each publishes its own facets_available[], and a grant naming a facet outside that set is a validator error rather than a silent no-op. The read facet of an amount_bearing row is the one control with four values (not_set · masked · full · deny) because its grades are the applied A-20 ladder, not a boolean (P-5, NFR-131).

ผล เป็นคุณสมบัติของ grant ไม่ใช่ของการกระทำ และมีสามค่า (D-1): allow ให้สิทธิ์ · deny ปฏิเสธชัดแจ้งและชนะทุกชั้น (P-3) · not_set เป็นค่าตั้งต้นของทุกตัวควบคุมและไม่แสดงความเห็น deny ไม่ใช่สำหรับ "ไม่มีสิทธิ์" เพราะพื้นปฏิเสธทั้งหมดทำหน้าที่นั้นอยู่แล้ว แต่สำหรับเจาะรูในตำแหน่งที่ได้สิทธิ์อยู่ facet เป็นคำศัพท์ ไม่ใช่ template: read · create · edit · submit · approve · reject · void · export และไม่มีแถวใดมีครบทั้งแปด — แต่ละแถวประกาศ facets_available[] ของตน และ grant ที่ระบุ facet นอกชุดนั้นเป็นข้อผิดพลาดที่ validator จับ ไม่ใช่การเงียบไว้ facet read ของแถวที่ amount_bearing เป็นตัวควบคุมเดียวที่มีสี่ค่า (not_set · masked · full · deny) เพราะระดับของมันคือบันได A-20 ที่ apply แล้ว ไม่ใช่ boolean (P-5, NFR-131)

Levelชั้นSource of an inherited valueที่มาของค่าที่สืบทอด
0Platform floor — deny-all; the only level that is never not_set.พื้นของแพลตฟอร์ม — ปฏิเสธทั้งหมด ชั้นเดียวที่ไม่เป็น not_set
1Catalog default_effect — per row, per facet; published allow only where the act is a floor rather than a privilege (the applied str_view floor; a farmer reading his own record).default_effect ในแคตาล็อก — รายแถวราย facet; ประกาศเป็น allow เฉพาะเมื่อการกระทำเป็นพื้นไม่ใช่อภิสิทธิ์ (พื้น str_view ที่ apply แล้ว; ชาวไร่อ่านระเบียนของตน)
2Parent group — one nesting level (PROP-026's limit); the source of the "Allow (inherited)" reading.กลุ่มแม่ — ซ้อนหนึ่งชั้น (ขีดจำกัดของ PROP-026); ที่มาของค่า "อนุญาต (สืบทอด)"
3The position itself — the tenant's own composition, where most grants live.ตัวตำแหน่งเอง — การประกอบของ tenant ชั้นที่ grant ส่วนใหญ่อยู่
4The account override — nearest and most expensive: reason, expiry, four-eyes where money moves (FR-354).การลบล้างของบัญชี — ใกล้สุดและมีต้นทุนสูงสุด: เหตุผล วันหมดอายุ สองผู้อนุมัติเมื่อมีเงิน (FR-354)

Effective value per (row, facet) = any deny anywhere → deny; else the nearest explicit allow; else the row's default_effect; else deny. An administrator always sees three things per row — the value set here, the effective value, and the level that decided it — and not_set is never a way to deny (FR-356).

ค่าที่ใช้จริงราย (แถว, facet) = มี deny ที่ใดก็ตาม → ปฏิเสธ; ไม่มีก็ใช้ allow ที่ชัดแจ้งซึ่งใกล้สุด; ไม่มีก็ใช้ default_effect ของแถว; ไม่มีก็ปฏิเสธ ผู้ดูแลเห็นสามสิ่งต่อแถวเสมอ — ค่าที่ตั้งไว้ที่นี่ ค่าที่ใช้จริง และชั้นที่ตัดสิน — และ not_set ไม่ใช่วิธีปฏิเสธ (FR-356)

13.2 Positions, appointments and overrides13.2 ตำแหน่ง การแต่งตั้ง และการลบล้าง

A permission group is the tenant's position (ตำแหน่ง) — หัวหน้าลาน, พนักงานชั่ง, เจ้าหน้าที่บัญชี — and a person is appointed to it, dated and optionally bounded to a place (D-5). A shift is not a permission: a yard supervisor may release a lane out of turn because he holds that post, so no rostering model exists anywhere in the platform and the gateway's offline authority expires on a dated lease instead (FR-362). Positions are composed only from catalog rows (never inventing keys, A1), cloneable from platform templates and nestable exactly one level. SurfaceRoleGrant is retained and unchanged: it states which surface a membership works on, while the position states what may be done there. An override is one account's allow or deny on one row, deliberately expensive — written reason, expiry (default one season), granting account, four-eyes on amount-bearing rows — and every live override is listed in the tenant's standing access review, because an override says the position design is wrong somewhere (FR-354, NFR-133).

กลุ่มสิทธิ์คือตำแหน่งของ tenant — หัวหน้าลาน พนักงานชั่ง เจ้าหน้าที่บัญชี — และคนถูกแต่งตั้งเข้าตำแหน่ง มีวันที่ ผูกสถานที่ได้ (D-5) กะไม่ใช่สิทธิ์: หัวหน้าลานปล่อยแถวด่วนได้เพราะเขาถือตำแหน่งนั้น จึงไม่มี model ตารางกะที่ใดในแพลตฟอร์ม และอำนาจแบบ offline ของ gateway หมดอายุด้วย lease ที่มีวันที่แทน (FR-362) ตำแหน่งประกอบจากแถวในแคตาล็อกเท่านั้น (ไม่ประดิษฐ์ key, A1) โคลนจาก template ได้ และซ้อนได้หนึ่งชั้นพอดี SurfaceRoleGrant ยังอยู่และไม่เปลี่ยน: บอกว่าทำงานบนsurface ใด ส่วนตำแหน่งบอกว่าทำอะไรได้ที่นั่น การลบล้าง คือ allow หรือ deny ของบัญชีเดียวบนแถวเดียว ตั้งใจให้มีต้นทุน — เหตุผลเป็นลายลักษณ์ วันหมดอายุ (ค่าตั้งต้นหนึ่งฤดู) บัญชีผู้มอบ และสองผู้อนุมัติในแถวที่มีจำนวนเงิน — และการลบล้างที่ยังมีผลทุกรายการปรากฏในการทบทวนสิทธิ์ประจำของ tenant เพราะการลบล้างคือคำแถลงว่าการออกแบบตำแหน่งผิดที่ใดที่หนึ่ง (FR-354, NFR-133)

13.3 The resolver — six steps, every capacity13.3 resolver — หกขั้น ทุก capacity

Stepขั้นRuleกติกา
1Capacity & entitlement floor. Active capacities decide which rows exist (P-8); capacity × surface decides whether the action exists for this tenant at all. Outside entitlement an action is absent, not denied — from the UI, the API and the catalog view.พื้น capacity และ entitlement capacity ที่ใช้งานตัดสินว่าแถวใดมีอยู่ (P-8); capacity × surface ตัดสินว่าการกระทำมีอยู่สำหรับ tenant นี้หรือไม่ นอก entitlement การกระทำไม่มีอยู่ ไม่ใช่ถูกปฏิเสธ — ทั้งใน UI, API และมุมมองแคตาล็อก
2Candidate set. Union of the account's position grants (one nesting level) and its own overrides, keeping only grants naming the active department path.ชุดผู้เข้าชิง ผลรวมของ grant จากตำแหน่ง (ซ้อนหนึ่งชั้น) และการลบล้างของบัญชีเอง เก็บเฉพาะที่ระบุเส้นทางหน่วยงานที่ใช้งาน
3Scope filter. Drop grants whose tuple does not contain the target — department · surface · place · position · object predicate · mode. Most-specific wins on ties (PROP-045).กรอง scope ตัด grant ที่ tuple ไม่ครอบเป้าหมาย — หน่วยงาน · surface · สถานที่ · ตำแหน่ง · predicate วัตถุ · โหมด เมื่อเสมอกัน ที่เฉพาะเจาะจงกว่าชนะ (PROP-045)
4Three-state fold. Any surviving deny wins; else the nearest allow; else default_effect; else deny.พับสามสถานะ deny ที่เหลือชนะ; ไม่มีก็ allow ที่ใกล้สุด; ไม่มีก็ default_effect; ไม่มีก็ปฏิเสธ
5Act-time constraints. Ceiling, four-eyes, no-self-approval and delegation mode are evaluated against this object at the moment of the act — never at sign-in.เงื่อนไขตอนกระทำ เพดาน สองผู้อนุมัติ ห้ามอนุมัติงานตนเอง และโหมดการมอบ ประเมินกับวัตถุชิ้นนี้ขณะกระทำ ไม่ใช่ตอนลงชื่อเข้า
6Read grading. Amount-bearing and personal fields are stripped server-side to the viewer's grade before the response leaves the API (NFR-131).ระดับการดู field ที่มีจำนวนเงินและข้อมูลส่วนบุคคลถูกตัดฝั่ง server ให้ตรงระดับของผู้ดูก่อนออกจาก API (NFR-131)

Every decision is explainable: the resolver returns which position, nesting hop, override or platform floor decided it, so an administrator answers "why can he approve this?" without a database query (P-6, NFR-133). A refusal is itself a recorded fact — it is how a mis-designed position is found — and it never leaves the user at a wall: on an escalatable row it names the position that holds the act and offers a one-tap escalation request, routed to the holders of the required facet in scope, decided in their own name, never auto-approved (FR-359, WF-115, D-8). Farmers are shown no permission language anywhere.

ทุกการตัดสินอธิบายได้: resolver คืนว่าตำแหน่งใด การซ้อนชั้นใด การลบล้างใด หรือพื้นของแพลตฟอร์มที่ตัดสิน ผู้ดูแลจึงตอบได้ว่า "ทำไมเขาอนุมัติรายการนี้ได้" โดยไม่ต้องเปิดฐานข้อมูล (P-6, NFR-133) การถูกปฏิเสธเป็นข้อเท็จจริงที่บันทึกไว้ — เป็นวิธีค้นพบตำแหน่งที่ออกแบบผิด — และไม่ทิ้งผู้ใช้ไว้กับกำแพง: ในแถวที่ส่งต่อได้ ระบบระบุตำแหน่งที่ถือการกระทำและเสนอคำขออนุมัติแบบกดครั้งเดียว ส่งถึงผู้ถือ facet ที่ต้องการภายใน scope ตัดสินในชื่อของผู้อนุมัติเอง ไม่มีการอนุมัติอัตโนมัติ (FR-359, WF-115, D-8) ชาวไร่ไม่เห็นภาษาเรื่องสิทธิ์ที่ใดเลย

13.4 Capacity is the action's home — classification and composition13.4 capacity คือบ้านของการกระทำ — การจำแนกและการประกอบ

Every catalog row carries capacities[] and the eleven applied capacity ids are its only legal values; a tenant holds the union of its capacities' rows and only the union. Every capacity carries acceptedFormClasses — requires: [legal_registration] (mill · group · bank · ocsb · board · ocsf · operator) | individual_or_organization (grower · quota · lead · contractor) — and an individual-held capacity IS a one-person tenant, so the resolver never has two modes (P-10). Composition is governed by a versioned compatibility matrix enforced at capacity grant (P-9, NFR-134), superseding the exclusive boolean it generalizes:

ทุกแถวในแคตาล็อกถือ capacities[] และ capacity สิบเอ็ดตัวที่ apply แล้วเป็นค่าที่ถูกต้องเพียงชุดเดียว; tenant ถือผลรวมของแถวจาก capacity ของตน และเพียงผลรวมนั้น ทุก capacity ถือ acceptedFormClasses — requires: [legal_registration] (mill · group · bank · ocsb · board · ocsf · operator) | individual_or_organization (grower · quota · lead · contractor) — และ capacity ที่บุคคลถือคือ tenant คนเดียว resolver จึงไม่มีสองโหมด (P-10) การประกอบกำกับด้วยตารางความเข้ากันได้ที่มีเวอร์ชัน บังคับใช้ตอนมอบ capacity (P-9, NFR-134) แทน boolean exclusive ซึ่งเป็นกรณีเฉพาะของมัน:

RuleกติกาCapacitiescapacityBasisมูลเหตุ
Freely composableรวมกันได้อิสระgrower + quota + lead + contractorThe market side of one working life; depth stays capped structurally (NFR-81).ด้านตลาดของชีวิตทำงานเดียว ความลึกยังถูกจำกัดเชิงโครงสร้าง (NFR-81)
Composable with disclosureรวมได้พร้อมการเปิดเผยmill + contractorA mill's machinery service arm — one tenant, mandatory marketplace disclosure (applied, unchanged).แขนงบริการเครื่องจักรของโรงงาน — tenant เดียว ต้องเปิดเผยในตลาด (apply แล้ว ไม่เปลี่ยน)
Forbiddenห้ามmill × grower · mill × quota · mill × leadNew (D-9) — the buyer of cane is never a seller of cane; the conflict sits in intake, classification and CCS. A mill owner who farms uses a separate tenant. This is the one amendment to applied specification (NFR-16 residual rule); no live tenant is affected.ใหม่ (D-9) — ผู้ซื้ออ้อยไม่เป็นผู้ขายอ้อย ความทับซ้อนอยู่ที่การรับอ้อย การจัดชนิด และ CCS เจ้าของโรงงานที่ทำไร่ใช้ tenant แยก เป็นการแก้ spec ที่ apply แล้วข้อเดียว (กติกาที่เหลือของ NFR-16) ไม่มี tenant จริงได้รับผลกระทบ
Alone onlyอยู่ลำพังเท่านั้นbank · ocsb · board · ocsf · operator · groupApplied and unchanged (D-10) — recorded verbatim, re-decided nowhere; the client's "banks and gov" names examples, not a replacement set.apply แล้วและไม่เปลี่ยน (D-10) — บันทึกตามตัวอักษร ไม่ตัดสินใหม่; "ธนาคารและภาครัฐ" ของลูกค้าเป็นตัวอย่าง ไม่ใช่ชุดที่มาแทน

Three consequences complete the picture. The upgrade is one-way (D-11): an individual → organization move founds the organization tenant, moves the capacity with its verification, materializes the implicit owner group and opens staff memberships — with no id change, no ledger movement and no re-grant — behind a named, acknowledged notice, in the tenant's own language, that it cannot be undone; a wound-down organization is closed, never demoted (FR-358, WF-116). A suspended capacity keeps its grants (D-12): its rows stop resolving, the grants show as dormant with the cause, reinstatement needs no re-granting, and the refusal names the suspended capacity rather than reading as a mis-built position (FR-361). Some approvers are not members (D-13): where an act needs the per-factory tripartite working group or the mill-stationed OCSB officer, the catalog row carries external_approval naming the authority and the act is refused until a mill position records that decision with its evidence — the platform holds a record of an outside decision, not the decision itself (FR-360).

ผลสามข้อทำให้ภาพครบ การยกระดับไปทางเดียว (D-11): บุคคล → องค์กร ตั้ง tenant องค์กร ย้าย capacity พร้อมการตรวจสอบ ทำกลุ่มเจ้าของโดยปริยายให้ปรากฏ และเปิดสมาชิกภาพพนักงาน — โดยไม่เปลี่ยนรหัส ไม่ย้ายบัญชี ไม่มอบสิทธิ์ใหม่ — หลังคำเตือนที่มีชื่อและต้องรับทราบ เป็นภาษาของ tenant เองว่าย้อนกลับไม่ได้; องค์กรที่เลิกกิจการถูกปิด ไม่ใช่ลดชั้น (FR-358, WF-116) capacity ที่ถูกพักเก็บ grant ไว้ (D-12): แถวหยุดตัดสินสิทธิ์ grant แสดงว่าหลับพร้อมเหตุ การคืนสภาพไม่ต้องมอบใหม่ และการปฏิเสธระบุ capacity ที่ถูกพัก ไม่ใช่อ่านเหมือนตำแหน่งที่สร้างผิด (FR-361) ผู้อนุมัติบางรายไม่ใช่สมาชิก (D-13): เมื่อการกระทำต้องมีคณะทำงานสามฝ่ายประจำโรงงานหรือเจ้าหน้าที่ สอน. ประจำโรงงาน แถวในแคตาล็อกถือ external_approval ที่ระบุผู้มีอำนาจ และการกระทำถูกปฏิเสธจนกว่าตำแหน่งในโรงงานจะบันทึกคำตัดสินพร้อมหลักฐาน — แพลตฟอร์มถือบันทึกของคำตัดสินภายนอก ไม่ใช่คำตัดสินเอง (FR-360)

13.5 Release13.5 รุ่น

The foundation is V1 (D-6) — "so that we have a strong foundation for our platform to grow upon": the catalog, the categories, positions and appointments, overrides, the resolver, the editor, the escalation request, the audit events and the validators all ship in season one, so season one runs on real permissions rather than on roles with none. The offline grant set ships with the station estate (it has no meaning before there is a gateway) and the upgrade ships when the first individual-held capacity asks to become a tenant, and never later than that. The per-capacity enumeration of catalog rows is delivered capacity by capacity as each area's depth pass runs, the mill first — its content is the PROP-065 session (D-7).

ฐานรากอยู่ใน V1 (D-6) — "เพื่อให้แพลตฟอร์มมีฐานรากที่แข็งแรงให้เติบโตต่อ": แคตาล็อก หมวด ตำแหน่งและการแต่งตั้ง การลบล้าง resolver หน้าจอแก้สิทธิ์ คำขออนุมัติ event สำหรับ audit และ validator ส่งมอบในฤดูแรกทั้งหมด ฤดูแรกจึงเดินบนสิทธิ์จริง ไม่ใช่ role ที่ไม่มีสิทธิ์ ชุดสิทธิ์ offline ไปพร้อมงานสถานี (ไม่มีความหมายก่อนมี gateway) และการยกระดับส่งเมื่อ capacity ที่บุคคลถือรายแรกขอเป็น tenant และไม่ช้ากว่านั้น การแจกแจงแถวรายความสามารถส่งทีละ capacity ตามรอบเจาะลึกของแต่ละส่วน โรงงานมาก่อน — เนื้อหาคือวงคุยของ PROP-065 (D-7)

14. The standing register — capacity, qualification, and who holds each (PROP-074)14. ทะเบียนสถานะ — capacity, qualification และใครถืออะไร (PROP-074)

Applied spec v0.45.0 (PROP-074, 3 Aug 2026). This is the one document where the register is published in full as binding text; every other document cites it. It answers three questions the applied specification left to be read off eleven descriptions: what a capacity is, what a qualification is, and who may hold each.

apply แล้วที่ spec v0.45.0 (PROP-074, 3 ส.ค. 2569) นี่คือเอกสารเดียวที่เผยแพร่ทะเบียนนี้เต็มรูปแบบเป็นข้อความผูกพัน เอกสารอื่นอ้างอิงมาที่นี่ มันตอบสามคำถามที่ข้อกำหนดเดิมปล่อยให้อ่านเอาจากคำบรรยายสิบเอ็ดชุด: capacity คืออะไร qualification คืออะไร และใครถืออะไรได้

The classification test — origin first, holder second (A-78)ข้อทดสอบการจำแนก — ต้นกำเนิดก่อน ผู้ถือทีหลัง (A-78) 1. Would this standing exist if our platform had never been built? Yes → it is a qualification, issued by an authority outside us and merely registered here. No → it is a capacity, functionality granted by our own business logic and meaningless off the platform. 2. Who holds it? For a capacity: can it own a record, sign a contract or receive money? → the tenant holds it. Is it a licence a human keeps when he changes employer? → then it was a qualification after all. Is it neither — merely permission to use a screen here? → it is not a standing at all: it is Membership + SurfaceRoleGrant. For a qualification the holder is never chosen by us — the issuing instrument already decided it: a BOT licence names a company, a pilot licence names a human. 1. สถานะนี้จะมีอยู่ไหมถ้าไม่เคยมีแพลตฟอร์มของเรา มี → เป็น qualification ออกโดยผู้มีอำนาจภายนอก เราเพียงลงทะเบียน ไม่มี → เป็น capacity ที่ตรรกะธุรกิจของเราให้ และไร้ความหมายนอกแพลตฟอร์ม 2. ใครถือ สำหรับ capacity: มันเป็นเจ้าของระเบียน ลงนามสัญญา หรือรับเงินได้ไหม → tenant ถือ เป็นใบอนุญาตที่คนถือติดตัวเมื่อเปลี่ยนนายจ้างไหม → แปลว่ามันเป็น qualification มาแต่ต้น ไม่ใช่ทั้งสอง เป็นเพียงสิทธิ์ใช้หน้าจอที่นี่ไหม → ไม่ใช่สถานะเลย แต่คือ Membership + SurfaceRoleGrant สำหรับ qualification เราไม่เคยเลือกผู้ถือ — ตราสารที่ออกตัดสินไว้แล้ว

14.1 Two axes, four cells, four entities14.1 สองแกน สี่ช่อง สี่เอนทิตี

Origin \ Holderต้นกำเนิด \ ผู้ถือTenant (tenant)tenant (tenant)Person (บุคคล)บุคคล
Capacity — granted by uscapacity — เราให้TenantCapacity — the only standing that confers ENTITLEMENT: it owns records, signs, is paid, and carries the isolation wall. All eleven applied capacities live here.สถานะเดียวที่ให้สิทธิ์จริง: เป็นเจ้าของระเบียน ลงนาม รับเงิน และถือกำแพงการแยก capacity ที่ apply แล้วทั้งสิบเอ็ดตัวอยู่ที่นี่PersonCapacity — defined with its test and zero members (R-EMPTY). Confers evidence only. The first real member enters by its own proposal, showing its working against the test above.นิยามพร้อมข้อทดสอบและไม่มีสมาชิก (R-EMPTY) ให้เพียง หลักฐาน สมาชิกจริงตัวแรกเข้ามาด้วยข้อเสนอของตัวเอง
Qualification — issued outsidequalification — ออกจากภายนอกTenantQualification — seven of the eight applied qualifications: licences, registrations and statutory appointments naming a company or an office.เจ็ดในแปด qualification ที่ apply แล้ว: ใบอนุญาต การขึ้นทะเบียน และการแต่งตั้งตามกฎหมายที่ระบุชื่อนิติบุคคลหรือสำนักงานPersonQualification — one applied member: the national ID credential. The licence a human keeps when he changes employer.สมาชิกที่ apply แล้วหนึ่งตัว: บัตรประชาชน ใบอนุญาตที่คนถือติดตัวเมื่อเปลี่ยนนายจ้าง

A qualification is an INPUT; a capacity is an OUTPUT — and that dependency was already applied in degenerate form: required_level is a capacity declaring which person qualification it demands, IdentityCheck is the pipeline that satisfies it, and Person.id_verified_level is the cached result. Neither a qualification nor a PersonCapacity grants access: both carry confers: evidence only and reach the permission model by exactly one route — as a requirement of a capacity (FR-393) — never directly. Competence, authority and standing are three things, and this document never lets one be read as another.

qualification คือขาเข้า capacity คือขาออก — และการพึ่งพานี้ apply แล้วในรูปตั้งต้น: required_level คือ capacity ที่ประกาศว่าต้องการ qualification ของบุคคลตัวใด IdentityCheck คือท่อที่ทำให้สำเร็จ และ Person.id_verified_level คือผลที่แคชไว้ ทั้ง qualification และ PersonCapacity ไม่ให้สิทธิ์เข้าถึง ทั้งคู่มี confers: evidence only และเข้าถึงแบบจำลองสิทธิ์ได้ทางเดียวคือเป็นข้อเรียกร้องของ capacity (FR-393)

14.2 The eleven capacities — every one of them tenant-held14.2 capacity ทั้งสิบเอ็ด — tenant ถือทั้งหมด

Four disqualifiers, applied cumulatively. D-1 — it owns records, signs, or is paid (all eleven; this one alone closes the person column). D-2 — requires: [legal_registration] (seven). D-3 — alone-only composition (six). D-4 — statutory appointment or bootstrap (four).

ข้อตัดสิทธิ์สี่ข้อ ใช้สะสมกัน D-1 เป็นเจ้าของระเบียน ลงนาม หรือรับเงิน (ทั้งสิบเอ็ด ข้อนี้ข้อเดียวปิดคอลัมน์บุคคล) D-2 requires: [legal_registration] (เจ็ด) D-3 ถือเดี่ยว (หก) D-4 แต่งตั้งตามกฎหมายหรือตั้งต้น (สี่)

CapacitycapacityHolderผู้ถือDisqualifiersข้อตัดสิทธิ์Remarkหมายเหตุ
growertenantD-1The lone farmer — if any capacity could be person-held it would be this one, and it cannot: a field must have exactly one owner. Requires no qualification at all; nobody licenses a farmer to farm.ชาวไร่คนเดียว — ถ้ามี capacity ใดที่บุคคลถือได้ ก็ต้องเป็นตัวนี้ และมันเป็นไม่ได้ เพราะแปลงหนึ่งต้องมีเจ้าของหนึ่งเดียว ไม่ต้องมี qualification ใดเลย
quotatenantD-1Holds a mill quota, fronts a network, extends credit. Requires quota_registration — issued by the mill and the สอน. registry, never by us.ถือโควตาโรงงาน นำเครือข่าย ให้สินเชื่อ ต้องมี quota_registration ซึ่งโรงงานและทะเบียน สอน. เป็นผู้ออก
leadtenantD-1หัวตัน — a sub-farmer looking up, a network principal looking down. Stands only while a LeadMandate stands; that mandate is a platform object, so the capacity requires no external qualification.หัวตัน — มองขึ้นเป็นลูกไร่ มองลงเป็นหัวหน้าเครือข่าย ยืนอยู่ได้ตราบที่ LeadMandate ยืนอยู่ ซึ่งเป็นวัตถุของแพลตฟอร์ม จึงไม่ต้องมี qualification ภายนอก
contractortenantD-1The one-man sprayer feels personal, and he still owns: he publishes offerings, invoices, and keeps double-entry books. His drone-pilot licence is the archetypal person-held standing — same human, two objects. Requires the person-held national_id.ผู้พ่นยาคนเดียวรู้สึกเป็นเรื่องส่วนบุคคล แต่เขาก็ยังเป็นเจ้าของ: เขาประกาศบริการ ออกใบแจ้งหนี้ และทำบัญชีคู่ ใบอนุญาตนักบินโดรนของเขาคือต้นแบบของสถานะที่บุคคลถือ — คนเดียวกัน สองวัตถุ
milltenantD-1 · D-2The only requires: [legal_registration] capacity that is NOT alone-only: mill × contractor allowed with disclosure, × grower / quota / lead forbidden. Requires mill_licence.capacity ชนิด requires: [legal_registration] ตัวเดียวที่ไม่ใช่ถือเดี่ยว: mill × contractor อนุญาตพร้อมเปิดเผย × grower / quota / lead ต้องห้าม
grouptenantD-1 · D-2 · D-3Produces nothing, administers everything. Requires group_ownership_attestation — the row whose applied prose carried a whole lifecycle (expiry · renewal · suspension · dissolution) in one sentence.ไม่ผลิตอะไร บริหารทุกอย่าง ต้องมี group_ownership_attestation — แถวที่เนื้อความเดิมถือวงจรชีวิตทั้งวงไว้ในประโยคเดียว
banktenantD-1 · D-2 · D-3Regulated lending never mixes with market participation. Requires bot_licence; a licence revoked by the BOT is revoked here the moment we learn of it.การให้สินเชื่อที่ถูกกำกับไม่ปนกับการเป็น tenant ในตลาด ต้องมี bot_licence
ocsbtenantD-1 · D-2 · D-3 · D-4The regulatory office (สอน.). Statutory appointment; supervisory neutrality.สำนักงานกำกับ (สอน.) แต่งตั้งตามกฎหมาย ความเป็นกลางเชิงกำกับ
boardtenantD-1 · D-2 · D-3 · D-4กอน. is literally made of people — and is still tenant-held. The register's own worked example of why "several humans" never implies a person-held standing.กอน. ประกอบด้วยคน จริง ๆ และยังเป็นสิ่งที่ tenant ถือ ตัวอย่างในทะเบียนเองว่าทำไม "คนหลายคน" ไม่เคยแปลว่าสถานะของบุคคล
ocsftenantD-1 · D-2 · D-3 · D-4The Fund office. A narrow financial actor; statutory appointment.สำนักงานกองทุน tenant ทางการเงินที่แคบ แต่งตั้งตามกฎหมาย
operatortenantD-1 · D-2 · D-3 · D-4Cane Agency itself. Bootstrap admission — seeded at platform install, then invited by an existing operator owner. No external qualification.สถาบันอ้อยเอง การรับเข้าแบบตั้งต้น ไม่มี qualification ภายนอก

14.3 The eight qualifications the platform already depended on14.3 qualification แปดตัวที่แพลตฟอร์มพึ่งพาอยู่แล้ว

Every row below was applied specification before PROP-074 — as free text inside a capacity's verification sentence, with no entity to hold it, no expires_at to check and nothing for a scheduler to read. Publishing them removes prose rather than adding it. Three capacities require none: grower (nobody licenses a farmer to farm), lead and operator.

ทุกแถวข้างล่างเป็นข้อกำหนดที่ apply แล้วก่อน PROP-074 — ในรูปเนื้อความอิสระในประโยค verification ของ capacity โดยไม่มีเอนทิตีถือ ไม่มี expires_at ให้ตรวจ และไม่มีอะไรให้ scheduler อ่าน การเผยแพร่มันเป็นการลดเนื้อความ ไม่ใช่เพิ่ม capacity สามตัวไม่ต้องมีเลย

QualificationqualificationHolderผู้ถือIssuerผู้ออกRequired byถูกเรียกร้องโดยNoteหมายเหตุ
mill_licencetenantสอน. / OCSB mill registrymillIndustry licence, confirmed against the mill registryใบอนุญาตประกอบกิจการ ตรวจกับทะเบียนโรงงาน
bot_licencetenantBank of ThailandbankThe regulated-lender licence — the archetype of "we record it; we never grant it"ใบอนุญาตผู้ให้สินเชื่อที่ถูกกำกับ — ต้นแบบของ "เราบันทึก ไม่ใช่เราให้"
quota_registrationtenantthe contracting mill · สอน. quota registryquotaA quota farmer who loses his quota loses the capacity, with no platform decision takenหัวหน้าโควตาที่เสียโควตา ก็เสีย capacity โดยแพลตฟอร์มไม่ต้องตัดสินใจ
ocsb_appointmenttenantRoyal Thai Government · Sugarcane & Sugar Act B.E. 2527ocsbStatutory — recordable, never grantableตามกฎหมาย — บันทึกได้ ให้ไม่ได้
board_appointmenttenantArticle 9 appointmentboardLine ministries + grower and mill representativesกระทรวงที่เกี่ยวข้อง + ผู้แทนชาวไร่และโรงงาน
ocsf_appointmenttenantArticle 23 appointmentocsfThe Fund office's statutory mandateอำนาจตามกฎหมายของสำนักงานกองทุน
national_idpersonDepartment of Provincial Administration (กรมการปกครอง)contractorThe one person-held qualification at v1. The structured form of the dimension required_level has always hard-coded: IdentityCheck is the pipeline, Person.id_verified_level the cached resultqualification ที่บุคคลถือตัวเดียวใน v1 เป็นรูปแบบมีโครงสร้างของมิติที่ required_level ฝังไว้เสมอ
group_ownership_attestationtenantDepartment of Business Development (DBD)groupDBD extract + shareholder list per member mill, dated within 12 months, re-attested at season open; lapse suspends, 60 days dissolvesหนังสือรับรอง DBD + บัญชีผู้ถือหุ้นรายโรงงาน อายุไม่เกิน 12 เดือน ยืนยันใหม่เมื่อเปิดฤดูกาล ขาดแล้วระงับ 60 วันยุบ

R-EXTERNAL (A-79) — we record it; we never grant it. The platform registers a qualification, verifies it against its issuer or registry, records the evidence and watches its expiry. It does not create, confer, extend or renew it, and its status follows the outside world. R-REQUIRE (FR-393) — qualification in, capacity out. A capacity declares the qualifications it requires on its definition, evaluated at grant and at every re-check, and the consequence chain runs: a qualification lapses or is revoked by its issuer → every capacity requiring it is suspended → the surfaces those capacities entitle go dormant — the chain the applied specification already wrote by hand for group, now readable by a scheduler.

R-EXTERNAL (A-79) — เราบันทึก ไม่ใช่เราให้ แพลตฟอร์มลงทะเบียน ตรวจสอบกับผู้ออกหรือทะเบียน เก็บหลักฐาน และเฝ้าวันหมดอายุ ไม่สร้าง ไม่ให้ ไม่ต่ออายุ และสถานะตามโลกภายนอก R-REQUIRE (FR-393) — qualification เข้า capacity ออก capacity ประกาศ qualification ที่ต้องการไว้ที่นิยาม ประเมินตอนให้และทุกครั้งที่ตรวจซ้ำ และลูกโซ่เดินว่า qualification หมดอายุหรือถูกเพิกถอน → capacity ที่เรียกร้องมันถูกระงับ → ช่องทางที่มันเปิดให้ก็หลับ

14.4 The account owns nothing; the tenant is founded on purpose14.4 บัญชีไม่เป็นเจ้าของสิ่งใด และ tenant ถูกก่อตั้งอย่างตั้งใจ

Sign-up creates one row. Phone-OTP sign-up creates a Person and nothing else — no tenant, no membership, no display name, no base province (FR-391). Until PROP-074 the applied WF-01 step 1 read, verbatim, "phone OTP sign-up creates Person; found an individual Tenant", so every verified phone number was handed an economic actor before it had said what it was. A person holding no capacity and no membership is a valid, complete and permanent state: he browses public surfaces, checks a queue by QR, accepts an invitation and holds person-held standings. A person who ends up holding nothing again is at rest, not in error — things are closed, never deleted; an empty account is a resting state, not a problem to fix.

การสมัครสร้างแถวเดียว การสมัครด้วย OTP สร้าง Person เท่านั้น ไม่มี tenant ไม่มี membership ไม่มีชื่อแสดง ไม่มีจังหวัด (FR-391) คนที่ไม่มี capacity และไม่มี membership เป็นสถานะที่ถูกต้อง สมบูรณ์ และถาวร คนที่สุดท้ายไม่ถืออะไรอีกคือคนที่พัก ไม่ใช่ข้อผิดพลาด — ของถูกปิด ไม่ถูกลบ

The first tenant-held capacity founds the tenant (FR-392, event TenantFounded). The request is the founding act, and the requester's Membership is written with is_self — he is its owner from its first second. The applied model always had the admin; it never had the moment. The tenant's kind is individual unless the request is for an requires: [legal_registration] capacity, in which case the founding and the FR-358 upgrade are one act. One tap, one screen, no new UI for a farmer — the founding is a consequence of the answer, not a question of its own. Tenant birth now has ONE uniform cause, a capacity being recorded, whether the person asks for it himself or a steward records it on his behalf; the applied model founded tenants by two different routes.

capacity ของ tenant ตัวแรกก่อตั้ง tenant (FR-392 เหตุการณ์ TenantFounded) คำขอคือการก่อตั้ง และ Membership ของผู้ขอถูกเขียนพร้อม is_self — เขาเป็นเจ้าของตั้งแต่วินาทีแรก แบบจำลองเดิมมีผู้ดูแลอยู่เสมอ เพียงแต่ไม่เคยมีช่วงเวลานั้น แตะครั้งเดียว หน้าจอเดียว ไม่มี UI ใหม่สำหรับชาวไร่

14.5 What binds14.5 สิ่งที่ผูกพัน

IdรหัสStatementข้อความ
FR-391R-ACCOUNT — sign-up creates one row; the account owns nothing.R-ACCOUNT — การสมัครสร้างแถวเดียว บัญชีไม่เป็นเจ้าของสิ่งใด
FR-392R-FOUND — the first tenant-held capacity founds the tenant, with the requester as its owner.R-FOUND — capacity ของ tenant ตัวแรกก่อตั้ง tenant โดยผู้ขอเป็นเจ้าของ
FR-393R-REQUIRE — a capacity requires qualifications, declared not narrated.R-REQUIRE — capacity เรียกร้อง qualification โดยประกาศ ไม่ใช่เล่าเป็นเนื้อความ
NFR-141R-ONEKEY — one owning key, forever: tenant_id and nothing else ever owns. No polymorphic owner column, no owner_type discriminator, no nullable person key beside a nullable tenant key. Every standing's holder key is NOT NULL and carries a foreign key.R-ONEKEY — คีย์ความเป็นเจ้าของเดียว ตลอดไป: tenant_id และไม่มีสิ่งอื่นเป็นเจ้าของ คีย์ผู้ถือของทุกสถานะเป็น NOT NULL และมี foreign key
A-78R-TWO — two axes, four cells; every proposed standing is placed in one of them in writing, in the proposal that introduces it. No fifth cell without amending the rule.R-TWO — สองแกน สี่ช่อง ทุกสถานะที่เสนอถูกวางในช่องใดช่องหนึ่งเป็นลายลักษณ์อักษร
A-79R-EXTERNAL — we record it; we never grant it.R-EXTERNAL — เราบันทึก ไม่ใช่เราให้
A-80R-DATA — the register is data, never classes. Replace Type Code with Subclasses must never be applied to a standing code: it turns the twelfth capacity from a graph row into a release.R-DATA — ทะเบียนคือข้อมูล ไม่ใช่คลาส ห้ามใช้ Replace Type Code with Subclasses กับรหัสสถานะ
CompositionRuleRenamed from CapacityCompatibility and made first-class: three named, versioned, effective-dated rules — neutrality_alone_only · buyer_not_seller · disclosed_dual_role — carry their basis ONCE, and the roughly fifty-four pairwise cells become a compiled artifact rather than authored data. Enforcement unchanged: at grant, never in the permission layer (P-9). No composition on the person side.เปลี่ยนชื่อจาก CapacityCompatibility และทำให้เป็นวัตถุชั้นหนึ่ง: กฎสามข้อที่มีชื่อ มีเวอร์ชัน และมีวันมีผล ถือเหตุผลไว้ครั้งเดียว ราวห้าสิบสี่ช่องกลายเป็นผลลัพธ์ที่คอมไพล์ ไม่ใช่ข้อมูลที่เขียนเอง การบังคับใช้ไม่เปลี่ยน

15. One person, many tenants — admission, position and removal (PROP-072)15. หนึ่งคน หลาย tenant — การรับเข้า ตำแหน่ง และการถอดออก (PROP-072)

Spec v0.50.0 (PROP-072, approved & applied 4 Aug 2026). Section 14 settled what a standing IS and who holds it. This section settles what a tenant may give a human being, and what happens when it takes it back. The applied model already answered the hardest question correctly — a capacity belongs to a TENANT, never to a person, so a man who farms and also works at a mill is two tenants and not one confused account — but that sentence appeared nowhere a client, an implementer or a mill IT department would find it. It is now FR-401.

spec v0.50.0 (PROP-072 อนุมัติและ apply 4 ส.ค. 2569) ข้อ 14 ตัดสินว่าสถานะคืออะไรและใครถือ ข้อนี้ตัดสินว่า tenant ให้มนุษย์คนหนึ่งอะไรได้ และเกิดอะไรขึ้นเมื่อมันเอากลับ แบบจำลองที่ apply แล้วตอบคำถามที่ยากที่สุดถูกอยู่แล้ว — capacity เป็นของ tenant ไม่ใช่ของคน คนที่ทำไร่และทำงานโรงงานด้วยจึงเป็น tenant สองรายไม่ใช่บัญชีเดียวที่สับสน — แต่ประโยคนั้นไม่ปรากฏในที่ที่ลูกค้า ผู้พัฒนา หรือฝ่ายไอทีของโรงงานจะหาเจอ ตอนนี้มันคือ FR-401

15.1 Four admissions, told apart by what is admitted15.1 การรับเข้าสี่แบบ แยกกันด้วยสิ่งที่รับเข้า

This is convention A-91, and it is what kept the member invitation from being written as a mode of something else: two of these objects share a token, a target and an expiry and are still different objects, because one offers a person his own history and another offers authority over other people’s records. Any proposal adding a fifth way in states which of these four it is, or explains why it is a fifth kind.

นี่คือธรรมเนียม A-91 และเป็นสิ่งที่กันไม่ให้คำเชิญสมาชิกถูกเขียนเป็นโหมดของอย่างอื่น: สองวัตถุในนี้มีโทเคน ปลายทาง และวันหมดอายุเหมือนกัน แต่ยังเป็นวัตถุต่างกัน เพราะอันหนึ่งยื่นประวัติของตัวเขาเองให้เขา อีกอันยื่นอำนาจเหนือระเบียนของคนอื่น ข้อเสนอใดที่เพิ่มทางเข้าที่ห้า ต้องระบุว่าเป็นหนึ่งในสี่อย่างไหน หรืออธิบายว่าทำไมจึงเป็นชนิดที่ห้า

ObjectวัตถุAdmitsรับอะไรเข้าIssued by · lifeออกโดย · อายุ
Invitationa capacity, to a tenantรับ capacity ให้ tenantthe operator (platform_ops), for invitation-only capacities (FR-70)ผู้ดำเนินการ (platform_ops) สำหรับ capacity ที่เข้าโดยการเชิญ (FR-70)
NetworkInvitationa person, to a record and a stewardรับ คน เข้าสู่ระเบียนและผู้ดูแลa stewarding tenant; 14 days (unapplied, PROP-070)tenant ผู้ดูแล อายุ 14 วัน (ยังไม่ apply, PROP-070)
MemberInvitation newa person, to a position in a tenantรับ คน เข้าสู่ ตำแหน่ง ใน tenanta MEMBERSHIP holding the members & roles → invite permission; 7 days, published, re-issuable without limit (FR-397)สมาชิกภาพที่ถือสิทธิ์ สมาชิกและบทบาท → เชิญ อายุ 7 วัน ประกาศไว้ ออกใหม่ได้ไม่จำกัด (FR-397)
Referral newnobody — it admits nothingไม่รับใครเข้าอะไรเลยa person, in his farming capacity; no expiry, multi-use, untargeted, pausable by him and revocable by the platform (FR-408, v0.52.0 PROP-071)คนหนึ่ง ในฐานะผู้ปลูก ไม่หมดอายุ ใช้ได้หลายครั้ง ไม่มีปลายทาง เจ้าของปิดได้ แพลตฟอร์มเพิกถอนได้ (FR-408, v0.52.0 PROP-071)

Two lifetimes, on purpose. 14 days for an invitation that offers a person his own records; 7 for one that hands over authority over other people’s. The discriminator that separates the objects reappears as a duration, so the two numbers differing is the model working rather than an inconsistency to reconcile. Unlimited re-issue is what makes the short window safe: a missed week costs one tap.

อายุสองค่า อย่างตั้งใจ 14 วันสำหรับคำเชิญที่ยื่นระเบียนของตัวเขาเองให้เขา และ 7 วัน สำหรับใบที่ส่งมอบอำนาจเหนือระเบียนของคนอื่น ตัวแบ่งที่แยกวัตถุออกจากกันปรากฏอีกครั้งในรูปของระยะเวลา สองค่าที่ต่างกันจึงเป็นแบบจำลองที่ทำงาน ไม่ใช่ความไม่สอดคล้องที่ต้องไปทำให้ตรงกัน การออกใหม่ได้ไม่จำกัดคือสิ่งที่ทำให้ช่วงเวลาสั้นปลอดภัย: พลาดไปหนึ่งสัปดาห์เสียเวลาแตะหนึ่งครั้ง

15.2 The fourth cell, applied — what a referral is, and the four things it may never do15.2 ช่องที่สี่ apply แล้ว — การบอกต่อคืออะไร และสี่สิ่งที่มันทำไม่ได้เลย

Spec v0.52.0 (PROP-071, approved & applied 4 Aug 2026). The fourth row of the table above stopped being a forward reference. A referral is one durable, multi-use, untargeted, eight-character code held by a person in his farming capacity — carried as a link, a QR or a code spoken aloud — and it carries one fact: who said our name first. It opens no door. The friend who follows it arrives at the ordinary self sign-up, exactly as if he had found us himself, and everything the referral adds happens after he has an account and is his to accept.

spec v0.52.0 (PROP-071 อนุมัติและ apply 4 ส.ค. 2569) แถวที่สี่ของตารางข้างต้นเลิกเป็นการอ้างถึงสิ่งที่ยังไม่มี การบอกต่อ คือรหัสถาวรแปดตัวอักษรหนึ่งรหัส ใช้ได้หลายครั้ง ไม่มีปลายทาง ถือโดยคนหนึ่งในฐานะผู้ปลูก พาไปเป็นลิงก์ QR หรือพูดออกเสียง และพาข้อเท็จจริงเดียว: ใครเอ่ยชื่อเราก่อน มันไม่เปิดประตูใด เพื่อนที่ตามมาถึงหน้าสมัครเองตามปกติ เหมือนกับว่าเขาหาเราเจอเอง และทุกอย่างที่การบอกต่อเพิ่มเข้ามาเกิดขึ้นหลังเขามีบัญชีแล้ว และเป็นสิทธิ์ของเขาที่จะรับ

It may neverห้ามเด็ดขาดBecauseเพราะ
Create a relationship — no membership, no capacity, no stewardship, no credit relationship, no change to Farmer.registration_status, and nothing on anybody’s network screen (FR-409)สร้างความสัมพันธ์ — ไม่มีสมาชิกภาพ ไม่มี capacity ไม่มีการดูแล ไม่มีความสัมพันธ์ด้านสินเชื่อ ไม่เปลี่ยน Farmer.registration_status และไม่มีอะไรบนหน้าเครือข่ายของใคร (FR-409)A friend holds nothing of the man he brings in. A design that writes a downline for the tap of a friend’s link has admitted somebody without asking him — and in cane country a badge saying who brought you in reads as whose you are. If a tenant wants a relationship it issues the object that carries one, with its badge, its consent and its refusal.เพื่อนไม่ได้ถืออะไรของคนที่เขาพามาเลย การออกแบบที่เขียนสายลูกไร่เพราะการกดลิงก์ของเพื่อน คือการรับคนเข้าโดยไม่ถามเขา และในพื้นที่อ้อย ป้ายที่บอกว่าใครพามาอ่านได้ว่าเขาเป็นของใคร ถ้าคู่สัญญาต้องการความสัมพันธ์ ต้องออกวัตถุที่พาความสัมพันธ์มา
Take a third party’s number — no contact picker, no address book, no field for somebody else’s phone, and no message from us to a person who has not contacted us (NFR-145)รับเบอร์ของบุคคลที่สาม — ไม่มีตัวเลือกรายชื่อ ไม่ขอสมุดโทรศัพท์ ไม่มีช่องให้พิมพ์เบอร์คนอื่น และเราไม่ส่งข้อความหาคนที่ไม่ได้ติดต่อเรามาก่อน (NFR-145)The moment a grower types his friend’s number into our app we are an indirect collector under PDPA Section 25, we owe that friend a notice at first contact, and we have created a record of a person who never asked to exist in our system. Every one of those obligations disappears if the artifact is opaque and the friend enters his own number.วินาทีที่ชาวไร่พิมพ์เบอร์เพื่อนลงในแอปของเรา เราคือผู้เก็บข้อมูลทางอ้อมตามมาตรา 25 ติดหนี้การแจ้งเขาในการติดต่อครั้งแรก และได้สร้างระเบียนของคนที่ไม่เคยขอให้มีตัวตนในระบบเรา ภาระทั้งหมดหายไปถ้าสิ่งที่ส่งต่อเป็นสิ่งทึบและเพื่อนใส่เบอร์ของตัวเอง
Show the referrer a person — counts only, with one line saying why there are no names (FR-411)แสดงตัวคนให้ผู้แนะนำเห็น — เห็นแต่จำนวน พร้อมหนึ่งบรรทัดบอกว่าทำไมไม่มีชื่อ (FR-411)NFR-137 read from the other side: we may not tell anyone whether a number has an account, so “your friend has joined” and “not yet” are equally forbidden. This is also why most of the market’s reward designs cannot be built here at all — they all report progress to the referrer.NFR-137 อ่านจากอีกด้าน: เราบอกใครไม่ได้ว่าเบอร์หนึ่งมีบัญชีหรือไม่ ดังนั้น “เพื่อนคุณสมัครแล้ว” และ “ยังไม่สมัคร” ต้องห้ามเท่ากัน และนี่คือเหตุที่การออกแบบรางวัลส่วนใหญ่ในตลาดสร้างที่นี่ไม่ได้เลย เพราะทุกแบบรายงานความคืบหน้ากลับไปหาผู้แนะนำ
Pay for a head — no money, no credit, no discount, no fee, no withheld feature released as a prize, and no benefit whose amount is a function of how many people joined (FR-413)จ่ายต่อหัว — ไม่มีเงิน ไม่มีเครดิต ไม่มีส่วนลด ไม่มีค่าตอบแทน ไม่มีฟีเจอร์ที่กันไว้แล้วปล่อยเป็นรางวัล และไม่มีผลประโยชน์ที่จำนวนขึ้นกับจำนวนคนที่เข้าร่วม (FR-413)A benefit calculated per person joining is the language Section 19 of the Direct Sales and Direct Marketing Act B.E. 2545 is written against, and the grower’s only money surfaces are a debt ledger and a statutory settlement — neither of which can carry a line he could explain. The written Thai opinion is commissioned before any reward is designed; the loop was built to need none, so the legal answer changes an option and never the architecture.ผลประโยชน์ที่คำนวณต่อคนที่เข้าร่วมคือถ้อยคำที่มาตรา 19 พ.ร.บ. ขายตรงและตลาดแบบตรง พ.ศ. 2545 เขียนขึ้นเพื่อเล่นงาน และหน้าเงินเดียวของชาวไร่คือบัญชีหนี้กับเงินค่าอ้อยตามกฎหมาย ซึ่งรับรายการที่เขาอธิบายได้ไม่ได้ทั้งคู่ ความเห็นทางกฎหมายไทยถูกสั่งขอก่อนออกแบบรางวัลใด ๆ และวงจรนี้สร้างมาให้ไม่ต้องใช้รางวัลเลย

What the loop offers instead is the product. A grower shows his neighbour a real slip — a delivery that closed, a payment that arrived on the day the app said it would — with every figure hidden until he reveals it (FR-414); the neighbour taps the code on it, arrives at the ordinary sign-up, says who told him, and finds that the contractor ratings he most wants to read are the ones from growers in his own subdistrict (FR-415). Nothing in that sentence is paid for and nothing in it creates a relationship, which is the whole of the design.

สิ่งที่วงจรนี้ยื่นให้แทนคือตัวสินค้าเอง ชาวไร่เอาใบสลิปจริงให้เพื่อนบ้านดู — การส่งมอบที่ปิดแล้ว เงินที่เข้าตรงวันที่แอปบอกไว้ — โดยตัวเลขทุกตัวถูกซ่อนจนเขาเปิดเอง (FR-414) เพื่อนบ้านแตะรหัสบนนั้น มาถึงหน้าสมัครธรรมดา บอกว่าใครแนะนำ แล้วพบว่าคะแนนผู้รับเหมาที่เขาอยากอ่านที่สุดคือคะแนนจากชาวไร่ในตำบลของเขาเอง (FR-415) ไม่มีอะไรในประโยคนั้นต้องจ่ายเงิน และไม่มีอะไรในนั้นสร้างความสัมพันธ์ ซึ่งคือทั้งหมดของการออกแบบนี้

15.2 What a person gains on joining, and what is never the tenant’s to take15.2 คนได้อะไรเมื่อเข้าร่วม และอะไรที่ไม่เคยเป็นของ tenant ที่จะเอาไป

Thingสิ่งBelongs toเป็นของOn removalเมื่อถูกถอดออก
Identity, verified card, assurance rungตัวตน บัตรที่ยืนยันแล้ว ขั้นความน่าเชื่อถือthe personคนUntouched. A tenant never verified him and cannot unverify him. It reads the assurance as a level — whether he meets what his capacity requires — and never as evidence: not the card, not the photo, not the check reference, not the national ID (OQ-5).ไม่ถูกแตะ tenant ไม่เคยเป็นผู้ยืนยันเขา และยกเลิกการยืนยันไม่ได้ มันอ่านความน่าเชื่อถือเป็นระดับ — ว่าเขาผ่านข้อกำหนดของ capacity หรือยัง — และไม่อ่านเป็นหลักฐาน ไม่เห็นบัตร รูป เลขอ้างอิงการตรวจ หรือเลขประจำตัวประชาชน (OQ-5)
His ways in — passkey, device key, provider, numberทางเข้าของเขา — passkey กุญแจในเครื่อง ผู้ให้บริการ เบอร์the personคนUntouched. Only sessions whose ACTIVE tenant was that tenant are revoked (FR-403).ไม่ถูกแตะ เพิกถอนเฉพาะเซสชันที่ tenant ที่ใช้งานอยู่เป็น tenant นั้น (FR-403)
His own farm, its crops, its deliveries, its เงินเกี๊ยวไร่ของเขาเอง อ้อย การส่งมอบ และเงินเกี๊ยวของมันhis own tenanttenant ของเขาเองUntouched — a different tenant entirely (FR-404).ไม่ถูกแตะ เป็น tenant อีกรายโดยสิ้นเชิง (FR-404)
The position — permission group + surface rolesตำแหน่ง — กลุ่มสิทธิ์ + บทบาทรายช่องทางthe tenanttenantSuspended, never deleted; the grants stay readable as history (FR-403).ถูกระงับ ไม่ถูกลบ สิทธิ์ยังอ่านได้เป็นประวัติ (FR-403)
Work he did inside the tenantงานที่เขาทำในนาม tenantthe tenant, attributed to himtenant โดยระบุชื่อเขาStays, and stays named. Work already done never becomes unattributable — the audit is the one thing a removal never touches.ยังอยู่และยังมีชื่อเขา งานที่ทำแล้วไม่เคยกลายเป็นงานไร้เจ้าของ — บันทึกตรวจสอบเป็นสิ่งเดียวที่การถอดออกไม่แตะ

One sentence for the whole table: a tenant gives a place to stand and can take it away; everything a man is, and everything his own farm is, is his.ประโยคเดียวสำหรับทั้งตาราง: tenant ให้ที่ยืนและเอาคืนได้ ส่วนทุกอย่างที่คนคนนั้นเป็น และทุกอย่างที่ไร่ของเขาเป็น เป็นของเขา

15.3 The removal contract — eight consequences, all binding V115.3 สัญญาการถอดออก — ผลตามมาแปดข้อ ผูก V1 ทั้งหมด

It is a contract, not a workflow: it binds every removal however it is triggered — resignation, dismissal, an expiring season, a suspension lifted the wrong way — and it binds a person leaving of his own accord, which is the same act with a different actor (OQ-11). Nothing is phased (OQ-2). The ending records who ended it, when, and the reason, and nothing else (OQ-10): the consequence set never depended on why, and the reason exists so that a removal is arguable by the person it happened to.

นี่คือสัญญา ไม่ใช่ workflow: ผูกการถอดออกทุกกรณีไม่ว่าเกิดจากอะไร — การลาออก การถูกให้ออก ฤดูที่จบลง การระงับที่ถูกปลดผิดทาง — และผูกกรณีที่เจ้าตัวออกเอง ซึ่งเป็นการกระทำเดียวกันที่ผู้กระทำต่างกัน (OQ-11) ไม่ทยอยข้อใด (OQ-2) การจบบันทึกว่าใครเป็นผู้จบ เมื่อไร และเหตุผล และไม่บันทึกอย่างอื่น (OQ-10): ชุดผลตามมาไม่เคยขึ้นกับเหตุผล และเหตุผลมีไว้เพื่อให้คนที่ถูกกระทำโต้แย้งได้

1Sessions. Exactly those whose active tenant is that tenant are revoked, at once. Every other session continues.เซสชัน เพิกถอนเฉพาะเซสชันที่ tenant ที่ใช้งานอยู่เป็น tenant นั้น ทันที เซสชันอื่นทั้งหมดดำเนินต่อ
2Grants and position. Suspended, never deleted.สิทธิ์และตำแหน่ง ถูกระงับ ไม่ถูกลบ
3Offline captures queued for that tenant. Uploaded if the handset reaches the network within 72 hours from the removal — a published constant, never a server setting — then the queue is sealed and the device copy purged. Never silently discarded: a capture is work somebody did. If the window expires unsynced, the tenant is told a count and the person is told the same count.การบันทึกออฟไลน์ที่ค้างคิวของ tenant นั้น อัปโหลดถ้าเครื่องต่อเน็ตได้ภายใน 72 ชั่วโมงนับจากการถอดออก — เป็นค่าที่ประกาศไว้ ไม่ใช่การตั้งค่าเซิร์ฟเวอร์ — จากนั้นปิดผนึกคิวและล้างสำเนาในเครื่อง ห้ามทิ้งเงียบ ๆ เด็ดขาด: การบันทึกคืองานที่มีคนทำจริง ถ้าหมดช่วงผ่อนผันแล้วยังซิงก์ไม่ได้ tenant ถูกแจ้งจำนวน และเจ้าตัวถูกแจ้งจำนวนเดียวกัน
4In-flight approvals. Reassigned to the owner role, never voided and never auto-approved. An approval queue that empties itself when a clerk leaves is a control failure, not a cleanup.รายการอนุมัติที่ค้าง โอนไปยังบทบาทเจ้าของ ไม่ยกเลิกและไม่อนุมัติอัตโนมัติ คิวอนุมัติที่ล้างตัวเองเมื่อเสมียนลาออกคือความล้มเหลวของการควบคุม ไม่ใช่การเก็บกวาด
5Cached tenant data on his handset. Purged at the next launch, and at the next launch he is told it was.ข้อมูล tenant ที่แคชไว้ในเครื่องเขา ล้างเมื่อเปิดครั้งถัดไป และเมื่อเปิดครั้งถัดไปเขาถูกบอกว่าล้างแล้ว
6Notifications. Subscriptions tied to that tenant end; notifications about his own farm are untouched.การแจ้งเตือน การรับแจ้งเตือนที่ผูกกับ tenant นั้นจบลง การแจ้งเตือนเรื่องไร่ของเขาเองไม่ถูกแตะ
7The person is told (FR-405, notification class N-2 — it takes something away). What changed, which tenant changed it, when. Never the reason.เจ้าตัวถูกบอก (FR-405 การแจ้งเตือนชั้น N-2 เพราะมันเอาอะไรไป) อะไรเปลี่ยน tenant ใดเปลี่ยน เมื่อไร ไม่บอกเหตุผล
8The audit is unchanged. Anything else a removal touches is a defect.บันทึกตรวจสอบไม่เปลี่ยน สิ่งอื่นใดที่การถอดออกไปแตะคือข้อบกพร่อง

Coming back is a new membership (FR-406) — never a reactivation — so the tenant’s view of a person is a list of spells, each with its own start, end and position. Seasonality is the calendar in a cane platform, and a weighbridge clerk who leaves in May and returns in November is two spells, not one interrupted row. And a tenant always has an owner (FR-407): no removal, resignation, suspension or role change may leave one with zero active owner memberships, and the act is refused at the point of attempt with the alternative named.

การกลับเข้ามาคือสมาชิกภาพใหม่ (FR-406) ไม่ใช่การเปิดใช้ใหม่ มุมมองของ tenant ต่อคนคนหนึ่งจึงเป็นรายการช่วงเวลา แต่ละช่วงมีวันเริ่ม วันจบ และตำแหน่งของตัวเอง ฤดูกาลคือปฏิทินของแพลตฟอร์มอ้อย เสมียนชั่งที่ออกไปเดือนพฤษภาคมและกลับมาเดือนพฤศจิกายนคือสองช่วง ไม่ใช่แถวเดียวที่ขาดกลาง และ tenant ต้องมีเจ้าของเสมอ (FR-407): ไม่มีการถอดออก การลาออก การระงับ หรือการเปลี่ยนบทบาทใด ที่ทำให้เหลือสมาชิกภาพเจ้าของที่ใช้งานอยู่เป็นศูนย์ได้ และการกระทำนั้นถูกปฏิเสธตั้งแต่ตอนพยายามทำ พร้อมบอกทางเลือก

15.4 The farmer app belongs to the farming capacities15.4 แอปชาวไร่เป็นของ capacity ด้านการปลูก

A surface belongs to a capacity — not to a person and not to a device. The farmer app serves grower, quota and lead; it opens in the single mobile-entitled tenant or the last used of several, always named in the app bar and never switched automatically. Its switcher may legitimately show a quota group beside a man’s own farm, because both are farming contexts and both are entitled to mobile (OQ-13); under A-85 both are named concretely — ไร่ของคุณ · กลุ่มโควตา — and never as a schema noun in either language. A person with no farming tenant gets one screen naming the one act available to him, and it is a destination rather than a failure. No work belonging to a non-farming capacity appears on it in any form, not as a tile, a notification, a badge, a shortcut or a count: the pressure to add "you have 3 tickets to approve" to a farmer’s home screen will come from the mill, will sound reasonable, and would collapse the whole separation in one release. One thing is not mill work and is therefore allowed — a plain list, in บัญชี, naming the tenants he belongs to and cannot work in here, with no actions and no tap target (OQ-9). A membership is a fact about him; a ticket is work.

ช่องทางเป็นของ capacity ไม่ใช่ของคนและไม่ใช่ของเครื่อง แอปชาวไร่รับใช้ grower quota และ lead เปิดที่ tenant รายเดียวที่มีสิทธิ์ mobile หรือรายที่ใช้ล่าสุดถ้ามีหลายราย โดยมีชื่อบนแถบแอปเสมอและไม่สลับอัตโนมัติ ตัวสลับแสดงกลุ่มโควตาข้างไร่ของเขาเองได้อย่างชอบธรรม เพราะทั้งคู่เป็นบริบทด้านการปลูกและมีสิทธิ์ mobile ทั้งคู่ (OQ-13) ตาม A-85 ทั้งสองถูกเรียกอย่างเป็นรูปธรรม — ไร่ของคุณ · กลุ่มโควตา — และไม่ถูกเรียกด้วยคำในสคีมาในทั้งสองภาษา คนที่ไม่มี tenant ด้านการปลูกเห็นหน้าจอเดียวที่บอกการกระทำเดียวที่ทำได้ และเป็นจุดหมาย ไม่ใช่ความล้มเหลว งานของ capacity ที่ไม่ใช่ด้านการปลูกไม่ปรากฏบนแอปนี้ในรูปแบบใด ไม่เป็นไทล์ ไม่เป็นการแจ้งเตือน ไม่เป็นป้าย ไม่เป็นทางลัด ไม่เป็นตัวเลข: แรงกดดันให้เพิ่ม "มีใบรออนุมัติ 3 ใบ" ลงหน้าแรกของชาวไร่จะมาจากโรงงาน จะฟังดูสมเหตุสมผล และจะทำให้การแยกทั้งหมดพังในรีลีสเดียว มีสิ่งหนึ่งที่ไม่ใช่งานโรงงานและอนุญาต — รายการเรียบ ๆ ในหมวดบัญชี ที่บอกชื่อ tenant ที่เขาสังกัดแต่ทำงานที่นี่ไม่ได้ ไม่มีปุ่มและไม่มีพื้นที่กด (OQ-9) สมาชิกภาพเป็นข้อเท็จจริงเกี่ยวกับตัวเขา ใบงานเป็นงาน

16. Onboarding the farmer — five arrivals, one spine (PROP-070)16. การพาชาวไร่เข้าสู่แอป — ห้าการมาถึง หนึ่งแกน (PROP-070)

Applied 2026-08-06 as spec v0.53.0. Five arrivals reach this platform — a grower who signs up himself, a sub-farmer whose quota farmer or หัวตัน already keeps records for him, a quota farmer the mill keeps records for, a person who starts at an identity provider, and a person whose neighbour is holding the phone — and a sixth comes backwards, the grower who cannot sign in. They join one spine, because five separate flows would be five separate defects (FR-416). What differs is where an arrival JOINS, what is already known when it does, and what the last step confirms.

apply 2026-08-06 เป็น spec v0.53.0 ห้าการมาถึงเข้าสู่แพลตฟอร์มนี้ — ชาวไร่ที่สมัครเอง ลูกไร่ที่หัวหน้าโควตาหรือหัวตันเก็บบันทึกไว้ให้แล้ว หัวหน้าโควตาที่โรงงานเก็บบันทึกไว้ให้ คนที่เริ่มจากผู้ให้บริการตัวตน และคนที่เพื่อนบ้านถือโทรศัพท์ให้ — และการมาถึงที่หกมาแบบย้อนทาง คือคนที่เข้าไม่ได้ ทั้งหมดใช้แกนเดียวกัน เพราะห้าเส้นทางแยกกันคือข้อบกพร่องห้าอย่าง (FR-416)

16.1 Three rungs, not two halves16.1 สามขั้น ไม่ใช่สองครึ่ง

Rungขั้นWhat it isคืออะไรWhat it opensเปิดอะไร
0 —An account. Nothing verified.มีบัญชี ยังไม่มีอะไรถูกยืนยันEverything he owns, read. The gate never falls on reading (NFR-127).อ่านทุกอย่างที่เป็นของเขา ด่านไม่เคยตกกับการอ่าน
1 phoneA verified number. Reachability, never identity (A-76).เบอร์ที่ยืนยันแล้ว ความติดต่อได้ ไม่ใช่ตัวตนThe grower capacity and everything under it: invited, attached, plots and crops, queue and ticket, notifications, named on a payment advice.capacity ผู้ปลูกและทุกอย่างใต้มัน
2 ekycThe card plus a live check. The only rung that says WHO.บัตรบวกการตรวจใบหน้าสด ขั้นเดียวที่บอกว่า "ใคร"เงินเกี๊ยว and credit, the quota and lead capacities, a consent signature, self-serve last-resort recovery.เงินเกี๊ยวและสินเชื่อ capacity หัวหน้าโควตาและหัวตัน การลงนามยินยอม และการกู้คืนด้วยตัวเอง

The rung is stated once, on the บัญชี section front, and no screen invents its own sentence about what an account can do (FR-420, amending FR-365). One check, monotone: a passing card-and-liveness IdentityCheck raises id_verified_level to ekyc and ekyc satisfies every requirement written at national_id — nobody is asked for his card twice (FR-421). Each level carries one mapping row onto the ETDA Identity Assurance scale; we map and do not rename.

ขั้นถูกบอกครั้งเดียว บนหน้าหมวดบัญชี และไม่มีหน้าจอใดคิดประโยคของตัวเองว่าบัญชีทำอะไรได้ (FR-420 แก้ FR-365) ตรวจครั้งเดียว ระดับเรียงขึ้น: IdentityCheck ที่ผ่านยก id_verified_level เป็น ekyc และ ekyc ทำให้ข้อกำหนดที่เขียนไว้ที่ national_id ผ่านด้วย (FR-421) แต่ละระดับมีแถวเทียบกับมาตรวัด IAL ของ ETDA หนึ่งแถว เราเทียบ ไม่เปลี่ยนชื่อ

16.2 An enrolment credential is the account; a binding is a convenience16.2 ปัจจัยลงทะเบียนคือบัญชี การผูกเครื่องคือความสะดวก

An account exists only on a portable credential — a verified PhoneNumber or an ExternalIdentity on (provider, subject). A device factor alone may never be an account (FR-426): uninstall it, lose it, sign out of it, and the account is unreachable by any means the platform holds. A provider alone is a complete account at rung 0 — returnable, which is the property that matters. A binding follows enrolment, is created only by the holder on the handset in his hand, and is always optional (FR-427). Signing out ends the session; the binding survives it (FR-428) — a binding ends only by a deliberate removal behind a step-up, an uninstall, a wipe, or a recovery that moves the credential.

บัญชีมีอยู่ได้บนปัจจัยที่พกพาได้เท่านั้น — PhoneNumber ที่ยืนยันแล้ว หรือ ExternalIdentity บน (ผู้ให้บริการ, subject) ปัจจัยของเครื่องอย่างเดียวเป็นบัญชีไม่ได้ (FR-426) ผู้ให้บริการอย่างเดียวคือบัญชีสมบูรณ์ที่ขั้น 0 การผูกเครื่องตามหลังการลงทะเบียน ทำได้โดยเจ้าของบนเครื่องในมือเขาเท่านั้น และเป็นทางเลือกเสมอ (FR-427) การออกจากระบบจบเซสชัน การผูกเครื่องยังอยู่ (FR-428)

16.3 The presentation is the act16.3 การแสดงตัวคือการกระทำ

Between the choice and a bound handset stands one act: the holder presents a finger or a face on the platform's own sheet. Until that sheet returns success, no Passkey, no DeviceCredential, no DeviceEnrolled and no forward step (FR-435). The way past it is an entry, not a button — the app's own six-digit code, set FIRST on every path and never a code-path speciality (FR-379 as amended, F-26) — present on the sheet from the first attempt and never revealed by failure. Five consecutive wrong codes CLEAR the device code rather than locking it, and the sitting ends on the enrolment credential with his number already filled (FR-436). The code never leaves the handset (NFR-147), and no application of this platform ever enrols, receives or holds a biometric (NFR-149).

ระหว่างการเลือกกับเครื่องที่ผูกแล้ว มีการกระทำหนึ่งอย่าง: เจ้าของแสดงนิ้วหรือใบหน้าบนแผ่นของแพลตฟอร์มเอง ก่อนแผ่นตอบว่าสำเร็จ ห้ามเขียน Passkey DeviceCredential หรือ DeviceEnrolled และห้ามเดินหน้า (FR-435) ทางผ่านคือการกรอก ไม่ใช่ปุ่ม — รหัสหกหลักของแอปเองที่ตั้งก่อนทุกเส้นทาง (F-26) รหัสผิดห้าครั้งติดกันจะล้างรหัสในเครื่อง ไม่ใช่ล็อก (FR-436) รหัสไม่เคยออกจากเครื่อง (NFR-147) และไม่มีแอปใดของแพลตฟอร์มนี้ลงทะเบียน รับ หรือถือชีวมาตร (NFR-149)

16.4 Recovery is chosen by what survives16.4 การกู้คืนเลือกจากสิ่งที่ยังเหลือ

The journey never asks which account first — asking that before knowing what the person holds is how enumeration starts. The same number → an SMS code and a fresh binding. The provider account → a hand-off on (provider, subject). Neither, but rung 2 → the identity check at purpose = recovery, unattended, in minutes. Neither, and no rung 2 → two staff, the card in hand, a twenty-four-hour published cooling period and a notice to both the last bound device and the last known number. The account returns at its existing rung: a recovery restores access and never a level, and no recovery path may be weaker than the credential it replaces (FR-429, NFR-150).

เส้นทางนี้ไม่เคยถามก่อนว่าบัญชีไหน เพราะการถามก่อนรู้ว่าเขาถืออะไรคือจุดเริ่มของการนับบัญชี มีเบอร์เดิม → รหัส SMS และการผูกเครื่องใหม่ · มีบัญชีผู้ให้บริการ → ส่งต่อบน (ผู้ให้บริการ, subject) · ไม่เหลือแต่มีขั้น 2 → ตรวจตัวตนที่ purpose = recovery · ไม่เหลือและไม่มีขั้น 2 → เจ้าหน้าที่สองคน บัตรในมือ ช่วงพัก 24 ชั่วโมงที่ประกาศไว้ และแจ้งทั้งเครื่องที่ผูกล่าสุดและเบอร์ที่รู้จักล่าสุด บัญชีกลับมาที่ขั้นเดิม (FR-429, NFR-150)

16.5 One register of consequential acts16.5 ทะเบียนเดียวของการกระทำที่มีผลตามมา

Three lists had grown apart — the never-delegated personal acts (FR-367, A-71), the step-up class (FR-375) and the two-beat acts (NFR-125). They are now ONE register at federation.authentication.sensitive_acts, each row stating whether the act may be delegated, whether it demands a step-up and whether it must be two-beat. The V1 farmer class is four acts — เงินเกี๊ยว and credit · payment detail · a consent signature · any change of number or of the device binding — and a step-up stays fresh for five published minutes. Restoring the credit act widens the three-act class fixed at v0.42.0 and re-opens PROP-068 D-5, which this change set carries rather than assumes.

สามรายการที่เคยแยกกันเติบโต — การกระทำส่วนตัวที่มอบหมายไม่ได้ (FR-367, A-71) ชุดการยืนยันซ้ำ (FR-375) และการกระทำสองจังหวะ (NFR-125) — รวมเป็นทะเบียนเดียวที่ federation.authentication.sensitive_acts ชุดของชาวไร่ใน V1 คือสี่การกระทำ และการยืนยันซ้ำสดอยู่ ห้านาทีตามที่ประกาศ การคืนการขอสินเชื่อเข้าชุดเปิด D-5 ของ PROP-068 ใหม่ ซึ่งชุดการเปลี่ยนแปลงนี้รับไว้เอง

17. Related documents17. เอกสารที่เกี่ยวข้อง

18. References18. แหล่งอ้างอิง

[R1] RiverSync SPEC-PRD-FED v0.9 — the six-layer access model, entitlement matrix and token claim contract this document adapts. [R2] wangkanai/federation — the OAuth 2.1 / OIDC authorization server over ASP.NET Core Identity (extended, never replaced). [R3] PDPA B.E. 2562. Full citations in PROP-005 Section 19.

[R1] RiverSync SPEC-PRD-FED v0.9 — model การเข้าถึงหกชั้น ตารางสิทธิ์ และสัญญา claim ที่เอกสารนี้ปรับใช้ [R2] wangkanai/federation — เซิร์ฟเวอร์กำหนดสิทธิ์ OAuth 2.1 / OIDC บน ASP.NET Core Identity (ต่อเติม ไม่แทนที่) [R3] PDPA พ.ศ. 2562 อ้างอิงเต็มใน PROP-005 ข้อ 19

19. Revision history19. ประวัติการแก้ไข

RevฉบับDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-08Initial version — PROP-005 (FED, spec v6.0): the federation service PRD — problems, actors, features (FR-60…69, NFR-14…17), the six-layer access model, the capacity × surface entitlement matrix, the token claim contract, key journeys (WF-24…27) and the PROP-003/04 amendment plan.ฉบับแรก — PROP-005 (FED, spec v6.0): PRD บริการ federation — ปัญหา ผู้เกี่ยวข้อง feature (FR-60…69, NFR-14…17) model การเข้าถึงหกชั้น ตารางสิทธิ์ capacity × ช่องทาง สัญญา claim เส้นทางหลัก (WF-24…27) และแผนการแก้ไข PROP-003/04
0.1.02026-07-11PROP-014 (spec v0.1.0): semantic versioning restarted at 0.1.0 (was Rev 1.0 · 2026-07-08); docnav updated for the gov_cluster split — GOV re-homed to docs/gov/ocsb/, new BOARD (กอน.) sibling added.PROP-014 (spec v0.1.0): รีสตาร์ท semantic versioning ที่ 0.1.0 (เดิม Rev 1.0 · 2026-07-08); ปรับ docnav ตามการแยก gov_cluster — ย้าย GOV ไป docs/gov/ocsb/ เพิ่มพี่น้อง BOARD (กอน.)
0.2.02026-07-22PROP-042 applied (spec v0.17.0): new Section 11 — the strategic permission group: six-key family sharing one logical id on portal/books/mobile (account hosts the grant flow only), A-20 redaction mapping (absent → per-field masked → full), two-layer purchase-minted entitlement (dormant on lapse), deny-all role baseline + template defaults (suggestions, not ceilings), owner-only grants with four-eyes on str_amounts/str_config, str_* on the perm codec with server-side stripping (NFR-53), leak-path controls incl. StrategicAgreement.visible_to_quota. FR-160…164, WF-65, events StrategicKeyGranted / StrategicKeyRevoked / StrategicUnmaskedExported. Prior Sections 11–13 renumbered 12–14.ปรับใช้ PROP-042 (spec v0.17.0): ข้อ 11 ใหม่ — กลุ่ม permission กลยุทธ์: ตระกูลหก key ใช้ id เชิงตรรกะร่วมบน portal/books/mobile (account ถือเฉพาะ flow การมอบ), map การ redact ตาม A-20 (หายไป → mask ราย field → เต็ม), entitlement สองชั้นจากการซื้อ (ค้างเฉยเมื่อหมดอายุ), ฐาน role แบบ deny-all + ค่าเริ่มต้น template (ข้อเสนอ ไม่ใช่เพดาน), การมอบโดยเจ้าของพร้อมสองผู้อนุมัติสำหรับ str_amounts/str_config, str_* บน codec perm พร้อมการตัด field ฝั่ง server (NFR-53), การคุมช่องรั่วรวม StrategicAgreement.visible_to_quota; FR-160…164, WF-65 ข้อเดิม 11–13 เลื่อนเป็น 12–14
0.3.02026-07-24PROP-043 approved & applied (spec v0.24.0): the Section 6 matrix gains the checkpoint column — the mill capacity entitles the new checkpoint-terminal surface (mill-employed checkpoint_staff role, zero strategic keys per the Section 11 group); graph federation.entitlementMatrix is canonical.PROP-043 อนุมัติและปรับใช้ (spec v0.24.0): ตารางข้อ 6 เพิ่มคอลัมน์ checkpoint — capacity โรงงานมีสิทธิ์ surface เทอร์มินัลจุดตรวจใหม่ (role checkpoint_staff พนักงานโรงงาน ไม่มี key กลยุทธ์ตามกลุ่มข้อ 11); federation.entitlementMatrix ใน graph เป็น canonical
0.4.02026-07-25PROP-026 accepted & applied (spec v0.25.0, client directions D-3/D-4): new Section 12 — the tenant directory (DR-1…DR-6, authoring layers A1…A5, the six grp_* keys and department_delegable); Sections 5, 6 and 7 amended in place — layer 1 gains the active department, layers 3–5 become department-scoped, the entitlement matrix gains the group capacity (thirteenth surface) and the claim contract gains dep. FR-60/63/64/65 are amended, none superseded; +FR-213…220, NFR-65…67.PROP-026 รับและ apply (spec v0.25.0 คำสั่งลูกค้า D-3/D-4): เพิ่มข้อ 12 — ไดเรกทอรีของ tenant (DR-1…DR-6 ชั้นการกำหนดสิทธิ์ A1…A5 กุญแจ grp_* หกรายการ และ department_delegable); แก้ข้อ 5 6 และ 7 ในที่ — ชั้น 1 เพิ่มหน่วยงานที่ใช้งาน ชั้น 3–5 ผูกหน่วยงาน ตารางสิทธิ์เพิ่ม capacity group (surface ที่สิบสาม) และสัญญา claim เพิ่ม dep แก้ FR-60/63/64/65 ไม่มีฉบับใดถูกแทนที่; เพิ่ม FR-213…220, NFR-65…67
0.5.02026-07-30PROP-040 approved & applied (spec v0.41.0; all thirteen open questions client-closed as D-1…D-13): new Section 13 — the action-based permission foundation. A permission names an ACT on an object and the act is granted to a POSITION (ตำแหน่ง) a person is appointed to; three-valued effect (not_set · allow · deny) over a five-level inheritance chain; eight facets as a vocabulary with per-row facets_available; the six-step resolver serving every capacity, explainable down to the deciding grant; account overrides with reason, expiry and four-eyes; the escalation request a refusal offers; acceptedFormClasses on every capacity and a versioned compatibility matrix that supersedes the exclusive boolean — mill × grower / quota / lead now FORBIDDEN (D-9, the one amendment to applied specification, NFR-16 residual rule), the six applied exclusives recorded verbatim (D-10); the one-way individual → tenant upgrade with an acknowledged notice (D-11); dormant grants on capacity suspension (D-12); the external-approval precondition (D-13). Sections 13/14/15 renumbered to 14/15/16. Binding: FR-350…FR-362 · NFR-131…NFR-134 · WF-113…WF-116 · graph federation.permissionModel · convention A-74.PROP-040 อนุมัติและ apply (spec v0.41.0; คำถามเปิดทั้งสิบสามข้อปิดโดยลูกค้าเป็น D-1…D-13): เพิ่มข้อ 13 — ฐานรากสิทธิ์แบบอ้างการกระทำ สิทธิ์ตั้งชื่อการกระทำต่อวัตถุ และการกระทำถูกมอบให้ตำแหน่งที่คนถูกแต่งตั้งเข้าไป; ผลสามค่า (not_set · allow · deny) บนสายการสืบทอดห้าชั้น; แปด facet เป็นคำศัพท์พร้อม facets_available รายแถว; resolver หกขั้นสำหรับทุก capacity อธิบายได้ถึง grant ที่ตัดสิน; การลบล้างรายบัญชีพร้อมเหตุผล วันหมดอายุ และสองผู้อนุมัติ; คำขออนุมัติที่การปฏิเสธเสนอให้; acceptedFormClasses บนทุก capacity และตารางความเข้ากันได้ที่มีเวอร์ชันแทน boolean exclusive — mill × grower / quota / lead เป็นคู่ห้าม (D-9 การแก้ spec ที่ apply แล้วข้อเดียว) exclusive ที่ apply แล้วทั้งหกบันทึกตามตัวอักษร (D-10); การยกระดับบุคคล → tenant ไปทางเดียวพร้อมการรับทราบ (D-11); grant ที่หลับเมื่อ capacity ถูกพัก (D-12); เงื่อนไขอนุมัติจากภายนอก (D-13) เลขข้อ 13/14/15 เปลี่ยนเป็น 14/15/16 ผูกด้วย FR-350…FR-362 · NFR-131…NFR-134 · WF-113…WF-116 · federation.permissionModel · convention A-74
0.6.02026-07-31PROP-067 approved & applied — spec v0.42.0. New Section 12 — external identity, passkeys and account recovery. Section 4 gains six feature rows (FR-363…FR-376, NFR-135…NFR-138); Section 7’s token contract gains amr and aal; the sign-in feature row now reads phone OTP · provider accounts · passkeys. NFR-14 amended: uniqueness moves to the active phone number, none required at sign-up, one verified number from the first membership. The FR-372 live check carries an applied legal-review gate (D-13).PROP-067 อนุมัติและ apply — spec v0.42.0. เพิ่มข้อ 12 — ตัวตนภายนอก passkey และการกู้คืนบัญชี ข้อ 4 เพิ่มหกแถว feature (FR-363…FR-376, NFR-135…NFR-138); สัญญา claim ในข้อ 7 เพิ่ม amr และ aal; แถว feature การลงชื่อเข้าอ่านว่า OTP · บัญชีผู้ให้บริการ · passkey แก้ NFR-14: ความไม่ซ้ำย้ายไปที่เบอร์ที่ใช้งานอยู่ ตอนสมัครไม่ต้องมี ต้องมีเบอร์ที่ยืนยันแล้วหนึ่งเบอร์ตั้งแต่ membership แรก การตรวจสดของ FR-372 มีด่านการทบทวนกฎหมายที่ apply แล้ว (D-13)
0.7.02026-07-31PROP-068 approved & applied — spec v0.43.0. Section 12 gains 12.1 — the phone number is a validation, not a way in: one factor list becomes two (entry_factors · verification_factors), the OTP mints no session in any environment (FR-377), a verified number proves the channel and never the person (FR-378), the DeviceCredential supplies the third door in the same change set (FR-379) under published enrolment governance (FR-380, D-2), and the risk challenge and its published five-signal register arrive with the holder-only log (FR-381 · FR-382 · NFR-139). New convention A-76 — a channel is not a credential; new FR-383 no lock-out. Nine applied artifacts amended (FR-60 · NFR-14 · FR-363 · FR-364 · FR-365 · FR-368 · FR-369 · FR-371 · FR-375); three feature rows added to Section 4.PROP-068 อนุมัติและ apply — spec v0.43.0. ข้อ 12 เพิ่ม 12.1 — เบอร์โทรคือการยืนยัน ไม่ใช่ทางเข้า: รายการปัจจัยเดียวกลายเป็นสองรายการ OTP ไม่สร้างเซสชันในทุกสภาพแวดล้อม (FR-377) เบอร์ที่ยืนยันแล้วพิสูจน์ช่องทางไม่ใช่ตัวคน (FR-378) DeviceCredential ให้ประตูที่สามในชุดเดียวกัน (FR-379) ภายใต้การกำกับการลงทะเบียนที่ประกาศไว้ (FR-380, D-2) และด่านยืนยันเมื่อสงสัยพร้อมทะเบียนห้าสัญญาณที่ประกาศไว้ และบันทึกที่เจ้าของอ่านคนเดียว (FR-381 · FR-382 · NFR-139) ธรรมเนียมใหม่ A-76; ข้อใหม่ FR-383 แก้ artifact ที่ apply แล้วเก้ารายการ เพิ่มแถว feature สามแถวในข้อ 4 (FR-60 · NFR-14 · FR-363 · FR-364 · FR-365 · FR-368 · FR-369 · FR-371 · FR-375)
0.8.02026-08-03PROP-074 approved & applied — spec v0.45.0. New Section 14 — the standing register, the one document publishing the eleven-capacity and eight-qualification tables in full as binding text. Two axes replace the single holder question: origin (capacity granted by us | qualification issued outside) × holder (tenant | person) → four cells, four entities — TenantCapacity · PersonCapacity · TenantQualification · PersonQualification. Sign-up creates a Person and nothing else (FR-391); the first tenant-held capacity founds the tenant with the requester as its owner (FR-392, event TenantFounded); a capacity requires qualifications, declared not narrated (FR-393); one owning key forever (NFR-141); conventions A-78 R-TWO · A-79 R-EXTERNAL · A-80 R-DATA. CapacityCompatibility → CompositionRule, made first-class (three rules generate ~54 cells).PROP-074 อนุมัติและ apply แล้ว — spec v0.45.0 ข้อ 14 ใหม่ — ทะเบียนสถานะ เอกสารเดียวที่เผยแพร่ตาราง capacity สิบเอ็ดตัวและ qualification แปดตัวเต็มรูปแบบเป็นข้อความผูกพัน สองแกนแทนคำถามผู้ถือเดี่ยว → สี่ช่อง สี่เอนทิตี การสมัครสร้าง Person เท่านั้น (FR-391) capacity ของ tenant ตัวแรกก่อตั้ง tenant (FR-392) capacity เรียกร้อง qualification โดยประกาศ (FR-393) คีย์ความเป็นเจ้าของเดียวตลอดไป (NFR-141) (A-78 · A-79 · A-80)
0.9.02026-08-03PROP-075 approved & applied — spec v0.46.0. The tenant is a container and the enum is gone. Tenant.kind, legal_name and registration_no are deleted (A-81, R-CONTAINER); Department + LegalEntity merge into Department (หน่วยงาน) and Site / DepartmentSite carry the physical axis (A-83). The standing register gains a ninth qualification, legal_registration, whose issuer, evidence and expiry are read from the department’s legalForms row — and a new legal-form register of eleven Thai forms plus the null default, DATA under A-80. The seven formerly organization_only capacities declare requires: [legal_registration] plus accepted form classes and NEVER a registrar: สอน., กอน. and OCSF are established by statute and ธ.ก.ส. is a state enterprise, so none of them can produce a DBD company extract. holder_kind retires with the enum, validator 7 is rewritten, and the scope axis is department — there is only ONE (R-ONESCOPE). New FR-394 (registered standing is derived) and FR-395 (depth guardrail 8).PROP-075 อนุมัติและ apply — spec v0.46.0 เพิ่ม qualification ตัวที่เก้า legal_registration และทะเบียนรูปแบบนิติฐานะสิบเอ็ดแถว โดย capacity ประกาศกลุ่มรูปแบบที่ยอมรับ ไม่ใช่ชื่อนายทะเบียน (A-81 · A-83 · A-80 · FR-394 · FR-395)
0.10.02026-08-03PROP-073 (spec v0.47.0): one word — Tenant. Party → Tenant, party_id (and every prefixed form) → tenant_id, PartyCapacity/PartyQualification/PartyFounded → Tenant*, party context/switcher → tenant context/switcher, cross-party → cross-tenant, organisation → organization, and ผู้เล่น retired as the Thai gloss (the Latin word tenant instead, R-THAI). Hold list untouched: counterparty · third party · tripartite working group · Person*/person_id; display codes and token claims were held by R-NULL for one release and then MOVED at v0.47.1 on client decision (C-1), because no token has ever been SIGNED — no auth exists in the built ocsb/ocsf prototypes — and the only printed codes were eight fixture strings in apps/ocsf/fund-shell.jsx, swept in the same pass: PTY- → TNT-, TCA- → TCA-, TQL- → TQL-, claim tnt → tnt, claim dep → dep. Carried in the same pass: the PROP-075 rectification — the retired directory noun domain becomes department (A-82 R-ONETREE) and the dangling A-86/A-87/A-88 citations are re-pointed at the ids they were actually given, A-81/A-82/A-83.PROP-073 (spec v0.47.0): คำเดียว — Tenant Party → Tenant, party_id ทุกรูป → tenant_id, PartyCapacity/PartyQualification/PartyFounded → Tenant*, cross-party → cross-tenant และเลิกใช้ ผู้เล่น เป็นคำแทนวัตถุนี้ในภาษาไทย (ใช้คำละติน tenant ตาม R-THAI) รายการห้ามแตะไม่ถูกแตะ: คู่สัญญา · third party · คณะทำงานไตรภาคี · Person*/person_id รอบเดียวกันแก้ค้างจาก PROP-075: domain → department (A-82) และแก้การอ้าง A-86/A-87/A-88 ที่ไม่มีอยู่จริงเป็น A-81/A-82/A-83
0.10.12026-08-03PROP-073 PATCH 1 (spec v0.47.1 / v0.47.2 / v0.47.3 as applicable): the identifiers v0.47.0 had held, moved on client decision. PTY-######## → TNT-######## · PCA-######## → TCA-######## · PQL-######## → TQL-######## · token claim pty → tnt · token claim dom → dep (v0.47.1, C-1 — R-NULL had held them as a stored VALUE and a wire format; reversed because no token has ever been signed and the only printed codes were fixture strings). quota_org_officer → quota_officer · lead_org_officer → lead_officer (v0.47.2, C-2 — org is organization abbreviated, not a resemblance). The retired role LABEL swept as a phrase family and quota organization naming the tenant → quota group / กลุ่มโควตา (v0.47.3). All retired forms are in the FR-396 crosswalk and refused in new text by NFR-142.PROP-073 PATCH 1 (spec v0.47.1 / v0.47.2 / v0.47.3 ตามที่เกี่ยวข้อง): ตัวระบุที่ v0.47.0 คงไว้ ถูกย้ายตามการตัดสินของลูกค้า PTY- → TNT- · PCA- → TCA- · PQL- → TQL- · claim pty → tnt · claim dom → dep (v0.47.1, C-1) · quota_org_officer → quota_officer · lead_org_officer → lead_officer (v0.47.2, C-2) · ป้ายชื่อบทบาทที่เลิกใช้และ องค์กรโควตา ที่เรียก tenant → กลุ่มโควตา (v0.47.3) ทุกรูปที่เลิกใช้อยู่ในตารางแปลง FR-396
0.10.22026-08-03Bilingual parity repair — spec v0.48.2 (patch). 4 .l-en/.l-th pairs in this document stated ids in English that the Thai half omitted; the Thai now carries every id its English states. Found by check V-5 of tools/validate.html (NFR-143, PROP-076, spec v0.48.0) and carried until now as a dated OVERRIDE in SPEC-APP-PLT Rev 0.9.0; this row discharges that override for this document. Thai is the primary language of this corpus, so a reader of the Thai half was missing facts the English half asserted. No model change: not one requirement, entity, event, state or number moved.ซ่อมความตรงกันสองภาษา — spec v0.48.2 (patch) คู่ .l-en/.l-th จำนวน 4 คู่ในเอกสารนี้ระบุรหัสในภาษาอังกฤษที่ฝั่งภาษาไทยไม่มี ตอนนี้ฝั่งภาษาไทยมีรหัสทุกตัวที่ภาษาอังกฤษระบุ พบโดยการตรวจ V-5 ของ tools/validate.html (NFR-143, PROP-076, spec v0.48.0) และถูกบันทึกเป็น OVERRIDE ที่มีวันที่ใน SPEC-APP-PLT Rev 0.9.0 มาจนถึงตอนนี้ แถวนี้ปลดการยกเว้นนั้นสำหรับเอกสารฉบับนี้ ภาษาไทยเป็นภาษาหลักของคลังเอกสารนี้ ผู้อ่านฝั่งภาษาไทยจึงขาดข้อเท็จจริงที่ภาษาอังกฤษยืนยันไว้ ไม่มีการเปลี่ยนแบบจำลอง: ไม่มี requirement เอนทิตี เหตุการณ์ สถานะ หรือตัวเลขใดขยับ
0.11.02026-08-04PROP-072 approved & applied — spec v0.50.0. New Section 15 — the product half of member admission, in four parts: 15.1 the four admissions told apart by WHAT IS ADMITTED (convention A-91), with the two deliberate invitation lifetimes — 14 days for an invitation offering a person his own records, 7 for one handing over authority over other people's; 15.2 what a person gains and what is never the tenant's to take, including the OQ-5 line that a tenant reads assurance as a LEVEL and never as evidence; 15.3 the eight-consequence removal contract as binding text, all eight binding V1 (OQ-2), the 72-hour queue window as a published constant (OQ-4), and the ending recording who, when and the reason (OQ-10); 15.4 the farmer app as the surface of the farming capacities, with the OQ-13 switcher and the OQ-9 plain list. Sections renumbered: Related documents 15 → 16, References 16 → 17, Revision history 17 → 18.PROP-072 อนุมัติและ apply แล้ว — spec v0.50.0 ข้อ 15 ใหม่ — ครึ่งด้านผลิตภัณฑ์ของการรับสมาชิก แบ่งสี่ส่วน: 15.1 การรับเข้าสี่แบบที่แยกกันด้วยสิ่งที่รับเข้า (ธรรมเนียม A-91) พร้อมอายุคำเชิญสองค่าอย่างตั้งใจ — 14 วันสำหรับคำเชิญที่ยื่นระเบียนของตัวเขาเอง และ 7 วัน สำหรับใบที่ส่งมอบอำนาจเหนือระเบียนของคนอื่น 15.2 คนได้อะไรและอะไรที่ไม่เคยเป็นของ tenant ที่จะเอาไป รวมถึงข้อ OQ-5 ที่ tenant อ่านความน่าเชื่อถือเป็นระดับ ไม่ใช่เป็นหลักฐาน 15.3 สัญญาการถอดออกแปดข้อในฐานะข้อความที่ผูกพัน ผูก V1 ทั้งแปดข้อ (OQ-2) ช่วงคิว 72 ชั่วโมงเป็นค่าที่ประกาศไว้ (OQ-4) และการจบบันทึกใคร เมื่อไร และเหตุผล (OQ-10) 15.4 แอปชาวไร่ในฐานะช่องทางของ capacity ด้านการปลูก พร้อมตัวสลับตาม OQ-13 และรายการเรียบตาม OQ-9 เปลี่ยนเลขข้อ: เอกสารที่เกี่ยวข้อง 15 → 16 แหล่งอ้างอิง 16 → 17 ประวัติการแก้ไข 17 → 18
0.12.02026-08-04PROP-071 approved & applied — spec v0.52.0. The Referral row of the Section 15.1 admission table stops citing an unapplied proposal and states its own terms: a person’s code, in his farming capacity, with no expiry. New Section 15.2 makes the fourth cell binding text — what a referral is, and the four things it may never do (create a relationship · take a third party’s number · show the referrer a person · pay for a head), each with the reason rather than the rule alone. Closes the standing obligation A-91 carried since v0.50.0: the noun did not change, so no amendment was owed anywhere else.PROP-071 อนุมัติและ apply — spec v0.52.0 แถว Referral ในตารางข้อ 15.1 เลิกอ้างข้อเสนอที่ยังไม่ apply และระบุเงื่อนไขของตัวเอง: รหัสของคน ในฐานะผู้ปลูก ไม่หมดอายุ ข้อ 15.2 ใหม่ ทำให้ช่องที่สี่เป็นข้อความผูกพัน — การบอกต่อคืออะไร และสี่สิ่งที่ทำไม่ได้เลย พร้อมเหตุผล ไม่ใช่แค่กฎ ปิดภาระผูกพันที่ A-91 ถือไว้ตั้งแต่ v0.50.0: คำนามไม่เปลี่ยน จึงไม่ติดค้างการแก้ที่อื่น
0.13.02026-08-06PROP-070 approved & applied — spec v0.53.0. New Section 16 — onboarding the farmer: five arrivals joining one spine, the three-rung assurance ladder (FR-420), the enrolment/binding split (FR-426/FR-427), the presentation as an act (FR-435) and recovery chosen by what survives (FR-429). FR-365 amended (three rungs, not two halves), FR-375 amended (four acts, five published minutes; PROP-068 D-5 re-opened), FR-379 amended (one enrolment order; the code never leaves the handset, NFR-147). One sensitive_acts register replaces three overlapping lists. Former Sections 16–18 renumbered 17–19.PROP-070 อนุมัติและ apply — spec v0.53.0 ข้อ 16 ใหม่ — การพาชาวไร่เข้าสู่แอป: ห้าการมาถึงบนแกนเดียว บันไดสามขั้น (FR-420) การแยกปัจจัยลงทะเบียน (FR-426) ออกจากการผูกเครื่อง (FR-427) การแสดงตัวเป็นการกระทำ (FR-435) การกู้คืนที่เลือกจากสิ่งที่เหลือ (FR-429) และรหัสที่ไม่ออกจากเครื่อง (NFR-147) แก้ FR-365 · FR-375 · FR-379 ทะเบียน sensitive_acts เดียวแทนสามรายการที่ทับกัน ข้อ 16–18 เดิมเปลี่ยนเป็น 17–19