SPEC-PWF-FED Rev 0.12.0 · 2026-08-06

Cane Agency · Specification · Platform infrastructureสถาบันอ้อย · เอกสารข้อกำหนด · โครงสร้างพื้นฐาน

Workflows — Federation PerspectiveWorkflow — มุมมองสหพันธ์อัตลักษณ์

Documentเอกสาร
SPEC-PWF-FED
Versionversion (เวอร์ชัน)
0.12.0 · Draftฉบับร่าง
Updatedปรับปรุงล่าสุด
2026-08-06
Parentเอกสารแม่
SPEC-PWF Section 6
Perspectiveมุมมอง
Federation (platform infrastructure)สหพันธ์อัตลักษณ์ (โครงสร้างพื้นฐาน)
Siblingsเอกสารพี่น้อง
SPEC-ERD-FED · SPEC-DDD-FED

1. Purpose1. วัตถุประสงค์

This document specifies the federation service's operational workflows on the account surface — unified onboarding (WF-24), capacity extension (WF-25), session & tenant switching (WF-26), and platform view-as (WF-27) — plus the six-layer resolution that runs at sign-in (Section 6) and the four cross-tenant mechanisms (Section 7). Actors and permissions are in SPEC-APP Section 3, Section 6; entities in SPEC-ERD-FED; events in SPEC-DDD-FED Section 5. Every workflow upholds the federation invariants: one person one sign-in (NFR-14), the compiler bind (NFR-15), capacity exclusivity (NFR-16) and the token budget (NFR-17).

เอกสารนี้ระบุworkflowเชิงปฏิบัติการของบริการ federation บนช่องทางใช้งาน account — การขึ้นทะเบียนแบบรวม (WF-24) การเพิ่ม capacity (WF-25) session (เซสชัน) และการสลับ tenant (WF-26) และ view-as ของ platform (WF-27) — พร้อมการตัดสินหกชั้นที่ทำงานตอนลงชื่อ (ข้อ 6) และกลไกข้าม tenant สี่อย่าง (ข้อ 7) ผู้กระทำและสิทธิ์อยู่ใน SPEC-APP Section 3, Section 6; entity ใน SPEC-ERD-FED; เหตุการณ์ใน SPEC-DDD-FED Section 5 ทุกworkflowรักษากฎคงที่ของ federation: หนึ่งบุคคลหนึ่งการลงชื่อ (NFR-14) การผูกตัวคอมไพล์ (NFR-15) เอกสิทธิ์ capacity (NFR-16) และงบ token (โทเคน) (NFR-17)

2. WF-24 — Unified onboarding2. WF-24 — การขึ้นทะเบียนแบบรวม

#Actorผู้กระทำActionการกระทำSystemระบบ
1New personบุคคลใหม่Register with a phone number; enter the OTP (or sign in with an external OIDC provider)ลงทะเบียนด้วยเบอร์โทร; กรอก OTP (หรือลงชื่อด้วยผู้ให้บริการ OIDC ภายนอก)Creates Person with id_verified_level = phone; phone UNIQUE platform-wide (NFR-14); emits PersonRegisteredสร้าง Person ที่ id_verified_level = phone; phone ไม่ซ้ำทั้ง platform (NFR-14); ปล่อย PersonRegistered v0.45.0 (PROP-074) — and nothing else: no tenant, no membership, no display name, no base province. A person holding no capacity and no membership is a valid, complete and permanent state (FR-391); TenantCreated leaves this step.
2PersonบุคคลFound a tenant (individual auto-created, or an organization) or accept an invitation to join oneตั้ง tenant (individual สร้างอัตโนมัติ หรือ organization) หรือรับคำเชิญเข้าร่วมCreates Tenant; an individual tenant auto-creates a self-membership (its owner); emits TenantCreated + MembershipActivatedสร้าง Tenant; tenant individual สร้าง self-membership อัตโนมัติ (เป็น owner); ปล่อย TenantCreated + MembershipActivated v0.45.0 (PROP-074) — this step is no longer a separate act: founding is a consequence of step 3, not a question of its own. The row stays only for the accept an invitation branch, where the tenant already exists.
3Tenant ownerเจ้าของ tenantRequest the first capacity (grower / quota / mill / contractor / bank / government)ขอ capacity แรก (grower / quota / mill / contractor / bank / government)Creates TenantCapacity pending; checks the required id_verified_level and exclusivity (NFR-16); routes to the capacity's verification branchสร้าง TenantCapacity pending; ตรวจ id_verified_level ที่ต้องมีและเอกสิทธิ์ (NFR-16); ส่งไปกิ่งการยืนยันของ capacity v0.45.0 (PROP-074) — the first tenant-held capacity request FOUNDS the tenant in the same act, and the requester's Membership is written with is_self — he is its owner from its first second (FR-392, event TenantFounded). 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.
4Verifierผู้ยืนยันApprove per the capacity's rule (registry match, license, platform review, appointment)อนุมัติตามกฎของ capacity (จับคู่ทะเบียน ใบอนุญาต การทบทวนของ platform การแต่งตั้ง)TenantCapacity → active; entitlement recompiles; emits CapacityGranted + SurfaceRoleGranted (owner)TenantCapacity → active; สิทธิ์คอมไพล์ใหม่; ปล่อย CapacityGranted + SurfaceRoleGranted (owner) v0.45.0 (PROP-074) — approval now evaluates the capacity's declared requires list rather than a free-text verification sentence (FR-393): the named qualifications must be registered and verified on the holder, and their expiry is watched from then on. A qualification that lapses or is revoked by its issuer suspends every capacity requiring it, and the surfaces those capacities entitle go dormant.

v0.45.0 (PROP-074) — 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, sign-up and stewardship; this is strictly simpler. A steward recording a capacity for an unonboarded person founds the tenant with representation = representative and stewarded_by the steward's membership — exactly as PROP-006 specifies, minus the sign-up that never happened — and claiming later attaches a Person, flips representation to real and preserves every id (WF-29, FR-73). An abandoned verification leaves a tenant that is closed, never deleted, and never demoted to a smaller kind; a person who ends up holding nothing is at rest, not in error.

v0.45.0 (PROP-074) — การเกิดของ tenant มีสาเหตุเดียวกันเสมอคือ capacity ถูกบันทึก ไม่ว่าบุคคลจะขอเองหรือผู้ดูแลบันทึกแทน แบบจำลองเดิมก่อตั้ง tenant ด้วยสองเส้นทาง นี่ง่ายกว่าอย่างเคร่งครัด การตรวจสอบที่ถูกทิ้งกลางคันทำให้ tenant ถูกปิด ไม่ถูกลบ และไม่ถูกลดชั้น

WF-24 replaces the six separate group onboardings as the single entry. Contractor onboarding (WF-18) and bank onboarding become verification branches of this flow. A virtual cane farmer is created here as a tenant with an unclaimed person (no sign-in until claimed, WF-01).

WF-24 แทนการขึ้นทะเบียนหกกลุ่มแยก เป็นทางเข้าเดียว การขึ้นทะเบียนผู้รับเหมา (WF-18) และธนาคารกลายเป็นกิ่งการยืนยันของโฟลว์นี้ ลูกไร่ virtual ถูกสร้างที่นี่เป็น tenant ที่มีบุคคลยังไม่อ้างสิทธิ์ (ยังลงชื่อไม่ได้จนกว่าจะอ้างสิทธิ์, WF-01)

v0.50.0 (PROP-072) — accepting a MemberInvitation is a BRANCH of this flow, not a seventh onboarding. Step 2 already reads "or accept an invitation to join one"; WF-126 and WF-127 are that clause drawn in full, and the single-entry claim above stays true. The two branches differ only in what step 1 finds: no person on the invited target, so he joins the spine at enrolment and returns to the acceptance screen (WF-126); or an existing person, in which case it is an ASSOCIATION and never a registration (WF-127, FR-399).

v0.50.0 (PROP-072) — การตอบรับ MemberInvitation เป็นกิ่งของโฟลว์นี้ ไม่ใช่การขึ้นทะเบียนชุดที่เจ็ด ขั้นที่ 2 เขียนไว้แล้วว่า "หรือรับคำเชิญเข้าร่วม" WF-126 และ WF-127 คือประโยคนั้นที่วาดออกมาเต็ม และข้ออ้างเรื่องทางเข้าเดียวข้างบนยังเป็นจริง สองกิ่งต่างกันแค่ที่ขั้นแรกเจออะไร: ไม่เจอคนบนปลายทางที่ถูกเชิญ เขาจึงเข้าร่วมแกนที่ขั้นลงทะเบียนแล้วกลับมาที่หน้าตอบรับ (WF-126) หรือเจอคนที่มีอยู่แล้ว ซึ่งเป็นการผูก ไม่ใช่การสมัครใหม่ (WF-127, FR-399)

3. WF-25 — Capacity extension3. WF-25 — การเพิ่ม capacity

#Actorผู้กระทำActionการกระทำSystemระบบ
1Tenant ownerเจ้าของ tenantRequest an additional capacity (a grower adds contractor; a mill adds a service arm)ขอ capacity เพิ่ม (grower เพิ่ม contractor; โรงงานเพิ่มหน่วยบริการ)Checks exclusivity FIRST: refuses if an active bank/government capacity exists, or if the new one is bank/government and any other is active (NFR-16); else creates TenantCapacity pendingตรวจเอกสิทธิ์ก่อน: ปฏิเสธหากมี bank/government ที่ active หรือถ้าตัวใหม่เป็น bank/government และมีอื่นที่ active (NFR-16); ไม่งั้นสร้าง TenantCapacity pending
2Systemระบบ—Locks only the pending capacity's surfaces with an explain-and-unlock state; the rest of the tenant is untouchedล็อกเฉพาะช่องทางของ capacity ที่ pending พร้อมสถานะอธิบายและปลดล็อก; ส่วนที่เหลือของ tenant ไม่ถูกแตะ
3Verifierผู้ยืนยันApprove per the capacity's verification rule (Q1 approval authority)อนุมัติตามกฎการยืนยันของ capacity (อำนาจอนุมัติ Q1)TenantCapacity → active; srf recompiles as the union over active capacities (NFR-15); new surface tiles appear; emits CapacityGrantedTenantCapacity → active; srf คอมไพล์ใหม่เป็นยูเนียนเหนือ capacity ที่ active (NFR-15); ไทล์ช่องทางใหม่ปรากฏ; ปล่อย CapacityGranted
4Marketplace (if contractor)ตลาด (ถ้า contractor)—If the tenant also holds mill or quota capacity, its contractor profile MUST disclose it (X3, Section 8.3 of PROP-005); the combination never privileges rank (NFR-12)ถ้า tenant ถือ capacity mill หรือ quota ด้วย โปรไฟล์ contractor ต้องเปิดเผย (X3, ข้อ 8.3 ของ PROP-005); การผสมไม่เพิ่มอันดับ (NFR-12)

4. WF-26 — Session & tenant switching4. WF-26 — session และการสลับ tenant

#Actorผู้กระทำActionการกระทำSystemระบบ
1PersonบุคคลSign in (OTP or OIDC)ลงชื่อเข้า (OTP หรือ OIDC)Authenticates the person; lists their memberships; if more than one tenant, shows the tenant chooser (the old account chooser becomes the tenant-context switcher)พิสูจน์ตัวบุคคล; แสดงสมาชิกภาพ; ถ้ามี tenant มากกว่าหนึ่ง แสดงตัวเลือก tenant (ตัวเลือกบัญชีเดิมกลายเป็นตัวสลับบริบท tenant)
2PersonบุคคลChoose a tenant to act forเลือก tenant ที่จะทำหน้าที่แทนRuns the six-layer resolution (Section 6) and compiles the token for exactly one active tenant (tnt); emits TenantContextIssuedทำการตัดสินหกชั้น (ข้อ 6) และคอมไพล์ token สำหรับ tenant ที่ใช้งานหนึ่งเดียว (tnt); ปล่อย TenantContextIssued
3Systemระบบ—Encrypted JWE (≤4 KB) for browser surfaces; JWS for offline field surfaces (crew, mobile) with a 72-hour window, silent refresh, revocation list on reconnect (NFR-17)JWE เข้ารหัส (≤4 KB) สำหรับช่องทางเบราว์เซอร์; JWS สำหรับช่องทางภาคสนามออฟไลน์ (crew, mobile) อายุ 72 ชั่วโมง รีเฟรชเงียบ รายการเพิกถอนเมื่อกลับมาเชื่อมต่อ (NFR-17)
4PersonบุคคลSwitch to another tenant via the switcherสลับไป tenant อื่นผ่านตัวสลับRe-issues the token for the new tenant context — never a merged session; emits TenantContextIssued againออก token ใหม่สำหรับบริบท tenant ใหม่ — ไม่ใช่ session รวม; ปล่อย TenantContextIssued อีกครั้ง

5. WF-27 — Platform view-as5. WF-27 — view-as ของ platform

#Actorผู้กระทำActionการกระทำSystemระบบ
1Platform adminผู้ดูแล platformStart a view-as into a target tenant, with a reasonเริ่ม view-as เข้า tenant เป้าหมาย พร้อมเหตุผลPermission-gated (X4); creates ViewAsSession read_only = true; token carries act (RFC 8693 actor) + vas; emits ViewAsStartedต้องมี permission (X4); สร้าง ViewAsSession read_only = true; token บรรทุก act (RFC 8693 actor) + vas; ปล่อย ViewAsStarted
2Systemระบบ—Shows a persistent banner naming the impersonated tenant for the whole sessionแสดงแบนเนอร์ค้างระบุ tenant ที่สวมสิทธิ์ตลอด session
3Platform adminผู้ดูแล platformRead the tenant's data to resolve the issue (writes only via an explicit, permission-named exception — deferred, Q5)อ่านข้อมูล tenant เพื่อแก้ปัญหา (เขียนได้เฉพาะผ่านข้อยกเว้นที่ตั้งชื่อ permission — เลื่อนออกไป Q5)Every action is dual-logged — the target tenant's audit trail AND the platform audit — attributed to acting tenant + acting person (FR-67)ทุกการกระทำบันทึกสองชั้น — audit ของ tenant เป้าหมายและ audit ของ platform — ระบุที่มาถึง tenant + บุคคลที่กระทำ (FR-67)
4Platform adminผู้ดูแล platformEnd the sessionจบ sessionSets ended_at; the banner clears; emits ViewAsEnded; the append-only session record stands as the audit artefactตั้ง ended_at; แบนเนอร์หาย; ปล่อย ViewAsEnded; เรกคอร์ด session ต่อท้ายคงไว้เป็นหลักฐานตรวจสอบ

6. Six-layer resolution at sign-in6. การตัดสินหกชั้นตอนลงชื่อ

Amended v0.25.0 (PROP-026 D-3): resolution now runs per active department. The funnel is: candidate set = the account's own SurfaceRoleGrant rows ∪ the DirectoryGrant rows of every directory group it belongs to (one nesting level) → keep only triples naming the active department_path (or the built-in root administrators group, DR-2) → narrow by the FR-65 scope axes inside that department → apply deny-overrides → emit perm. The token also carries dep; switching department re-issues it (FR-220). Contract: SPEC-PRD-FED Section 12.

แก้ v0.25.0 (PROP-026 D-3): การตัดสินสิทธิ์ทำรายหน่วยงานที่ใช้งาน ลำดับคือ: ชุดตั้งต้น = แถว SurfaceRoleGrant ของบัญชีเอง ∪ แถว DirectoryGrant ของทุกกลุ่มไดเรกทอรีที่บัญชีอยู่ (ซ้อนหนึ่งชั้น) → เก็บเฉพาะที่ระบุ department_path ที่ใช้งาน (หรือกลุ่มผู้ดูแลระดับรากในตัว DR-2) → บีบด้วยแกนขอบเขตตาม FR-65 ภายในหน่วยงานนั้น → ใช้การปฏิเสธชนะ → ส่งออก perm token ยังบรรทุก dep ด้วย; การสลับหน่วยงานออก token ใหม่ (FR-220) สัญญา: SPEC-PRD-FED ข้อ 12

Every session token is compiled by resolving the six layers in order; each layer only narrows the previous. The compiled srf and perm must equal the authored matrices (NFR-15).

token ทุก session คอมไพล์โดยตัดสินหกชั้นตามลำดับ แต่ละชั้นบีบให้แคบลงจากชั้นก่อน claim srf และ perm ที่คอมไพล์ต้องเท่ากับตารางที่เขียน (NFR-15)

1Tenant contextบริบท tenanttnt
→
2Entitlementสิทธิ์เข้าช่องทางsrf
→
3Roleบทบาทgrant
→
4PermissionPermissionperm
→
5Scopeขอบเขตin perm
→
6Cross-tenantข้าม tenantX1–X4
Layerชั้นResolvesตัดสินOnto claimลง claim
1 · tenant contextThe chosen Membership → exactly one active tenantMembership ที่เลือก → tenant ที่ใช้งานหนึ่งเดียวsub · tnt · cap
2 · entitlementUnion of the entitlement matrix over active capacitiesยูเนียนของตารางสิทธิ์เหนือ capacity ที่ activesrf
3 · roleThe SurfaceRoleGrant per entitled surface (one each)SurfaceRoleGrant รายช่องทางที่มีสิทธิ์ (ช่องละหนึ่ง)shell-side from grantsฝั่ง shell จาก grant
4 · permissionThe role × permission matrix cellsเซลล์ตาราง role × permissionperm
5 · scopeProvince / district / mill_zone / quota_network / field_set — equal-or-narrowerProvince / district / mill_zone / quota_network / field_set — เท่าหรือแคบกว่าpacked inside permแพ็กใน perm
6 · cross-tenantReads of another tenant — the four X-mechanisms only (Section 7)การอ่านของ tenant อื่น — กลไก X สี่อย่างเท่านั้น (ข้อ 7)runtime gateประตูขณะรัน

7. Cross-tenant access — exactly four mechanisms7. การเข้าถึงข้าม tenant — กลไกสี่อย่างเท่านั้น

#MechanismกลไกRuleกฎ
X1ConsentGrant (generalized)ConsentGrant (ขยายทั่วไป)Tenant↔tenant: grantor_tenant_id → grantee_tenant_id, scoped, term-limited, revocable, effective immediately. Bank reads (FIN), books sharing (CEC) and any future data grant ride this one rail (NFR-08).tenant↔tenant: grantor_tenant_id → grantee_tenant_id จำกัดขอบเขต มีอายุ เพิกถอนได้ มีผลทันที การอ่านของธนาคาร (FIN) การแบ่งปันสมุดบัญชี (CEC) และการให้ข้อมูลในอนาคตขี่รางเดียวนี้ (NFR-08)
X2Network relationsความสัมพันธ์เครือข่ายStanding structural visibility the department already defines: quota ↔ sub-farmer, mill ↔ quota — relation-scoped reads, not group privilege. A tenant sees network fields BECAUSE of the relation record, whatever else it is.การมองเห็นเชิงโครงสร้างที่หน่วยงานนิยามอยู่แล้ว: quota ↔ ลูกไร่, mill ↔ quota — การอ่านตามขอบเขตความสัมพันธ์ ไม่ใช่สิทธิพิเศษของกลุ่ม tenant เห็นข้อมูลเครือข่ายเพราะเรกคอร์ดความสัมพันธ์ ไม่ว่าจะเป็นอย่างอื่นด้วยหรือไม่
X3Marketplace visibilityการมองเห็นในตลาดPROP-004's rules (offering directory, verified reviews public, NFR-12 fairness): reads granted by publishing, bounded to what was published. Capacity disclosure is mandatory (Section 8.3) — a contractor profile must disclose its tenant's mill or quota capacity.กฎของ PROP-004 (ไดเรกทอรีบริการ รีวิวจากงานจริงเป็นสาธารณะ ความเป็นธรรม NFR-12): การอ่านได้จากการเผยแพร่ จำกัดที่สิ่งที่เผยแพร่ การเปิดเผย capacity บังคับ (ข้อ 8.3) — โปรไฟล์ contractor ต้องเปิดเผย capacity mill หรือ quota ของ tenant
X4Platform view-asview-as ของ platformPlatform support acts inside a tenant only through a ViewAsSession (WF-27): permission-gated, banner-announced, dual-logged, attributed to acting tenant + acting person; read-only by default (Q5).ทีมสนับสนุน platform ทำงานใน tenant ได้เฉพาะผ่าน ViewAsSession (WF-27): ต้องมี permission มีแบนเนอร์ บันทึกสองชั้น ระบุที่มาถึง tenant + บุคคลที่กระทำ; อ่านอย่างเดียวโดยปริยาย (Q5)
The default is no accessค่าเริ่มต้นคือเข้าไม่ได้ Outside these four mechanisms and the government's aggregate, anonymized structure reports (Q7), no read resolves across a tenant boundary. Every resolved cross-tenant access is logged and attributed (NFR-08, FR-67). นอกเหนือจากกลไกสี่อย่างนี้และรายงานโครงสร้างแบบรวมไม่ระบุตัวตนของรัฐ (Q7) ไม่มีการอ่านใดข้ามขอบเขต tenant ได้ ทุกการเข้าถึงข้าม tenant ที่สำเร็จถูกบันทึกและระบุที่มา (NFR-08, FR-67)

A referral is not a fifth mechanism (v0.52.0, PROP-071). Referral and ReferralCredit resolve nothing across a tenant boundary and disclose nothing about anybody to anybody: the referrer is shown counts and never a person, the newcomer is shown a display name he already knew, and no tenant other than the platform operator may read referral data at all (FR-411, NFR-146). A reader meeting the object for the first time will reach for X2 — network relations — and that is exactly the error the proposal was written to prevent: a referral creates no relationship, ever (FR-409). The count stays at four.

การบอกต่อไม่ใช่กลไกอันที่ห้า (v0.52.0, PROP-071) Referral และ ReferralCredit ไม่ resolve ข้ามเส้น tenant และไม่เปิดเผยอะไรเกี่ยวกับใครให้ใครเลย: ผู้แนะนำเห็นจำนวน ไม่เคยเห็นตัวคน ผู้มาใหม่เห็นชื่อที่เขารู้จักอยู่แล้ว และไม่มีคู่สัญญาใดนอกจากผู้ดำเนินการแพลตฟอร์มอ่านข้อมูลการบอกต่อได้ (FR-411, NFR-146) คนที่เจอวัตถุนี้ครั้งแรกจะเอื้อมไปหา X2 คือความสัมพันธ์เครือข่าย ซึ่งเป็นความผิดพลาดที่ข้อเสนอนี้เขียนขึ้นเพื่อป้องกันพอดี — การบอกต่อไม่สร้างความสัมพันธ์ ไม่ว่ากรณีใด (FR-409) จำนวนกลไกยังเป็นสี่

8. Exception paths8. เส้นทางกรณียกเว้น

9. WF-79 & WF-80 — directory delegation and department lifecycle (PROP-026)9. WF-79 และ WF-80 — การมอบอำนาจไดเรกทอรีและวงจรหน่วยงาน (PROP-026)

Two federation workflows arrive with the tenant directory. Their full step contracts live in SPEC-PWF-GRP Sections 5 and 6 (the group is the market-side owner of the walk); this section records their federation-side obligations.

workflow ของ federation สองรายการมาพร้อมไดเรกทอรีของ tenant สัญญาขั้นตอนฉบับเต็มอยู่ใน SPEC-PWF-GRP ข้อ 5 และ 6 (กลุ่มเป็นเจ้าของเส้นทางฝั่งตลาด); ข้อนี้บันทึกภาระฝั่ง federation ของทั้งสอง

WorkflowworkflowFederation obligationsภาระฝั่ง federation
WF-79Two-act at the tenant root, four-eyes on amount-bearing keys, refusal of any key flagged department_delegable = false; disclosure at the target department the moment the grant is live (FR-207); both-department audit of every act performed under it (NFR-66); DirectoryGrantIssued / DirectoryGrantRevoked invalidate cached tokens (NFR-67).สอง act ที่รากของ tenant สี่ตาสำหรับกุญแจที่มีตัวเงิน ปฏิเสธกุญแจที่ department_delegable = false; เปิดเผยที่หน่วยงานเป้าหมายทันทีที่ grant มีผล (FR-207); บันทึกสองหน่วยงานของทุกการกระทำภายใต้ grant นั้น (NFR-66); DirectoryGrantIssued / DirectoryGrantRevoked ทำให้ token ที่ cache ไว้ใช้ไม่ได้ (NFR-67)
WF-80The one-time backfill (every mill Tenant gets its own root-and-site department; every SurfaceRoleGrant takes that department id — a grant that cannot resolve a department blocks the backfill and is reported), the three-tier depth cap, and dated re-parenting on admission / divestment without moving any operational data (DR-6). DepartmentCreated / DepartmentReparented.การเติมข้อมูลครั้งเดียว (Tenant โรงงานทุกรายได้หน่วยงานรากและไซต์ของตน; SurfaceRoleGrant ทุกแถวรับ department id นั้น — grant ที่หาหน่วยงานไม่ได้จะ block การเติมข้อมูลและถูกรายงาน) การจำกัดความลึกสามชั้น และการย้ายรากตามวันที่ตอนรับเข้า/ขายออกโดยไม่ย้ายข้อมูลปฏิบัติการใด (DR-6) DepartmentCreated / DepartmentReparented

9. Ways in — binding, recovery, a new phone and a challenge (PROP-067 · PROP-068)9. ทางเข้า — การผูก การกู้คืน และเบอร์ที่หายไป (PROP-067)

Spec v0.42.0 (PROP-067, approved & applied 31 Jul 2026) adds six walks to this service. Two rules cut across all of them: binding or unbinding a way in is a personal act — only in a session authenticated as the holder himself, recorded as an AuthEvent and notified on every other bound channel (FR-367, the seventh member of the never-delegated set) — and no step ever reveals whether an identifier is registered (NFR-137). Every completed recovery revokes all other sessions, cancels pending identifier changes, lists the bound identities for pruning and notifies every way in (FR-371).

v0.43.0 (PROP-068) — two walks added and two amended. A third rule now cuts across all of them: a correct one-time code never mints a session (FR-377). Wherever a code appears below, what it authorises is the creation of a way in, the answer to a challenge or a recovery — never entry. WF-117 gains its closing beat (the sitting does not finish until the account has an entry factor) and WF-120’s first step is restated as a published recovery route with its cost and delay; WF-123 (a new phone) and WF-124 (a challenge is raised and answered) are new.

v0.43.0 (PROP-068) — เพิ่มสองเส้นทาง แก้สองเส้นทาง มีกฎที่สามพาดผ่านทุกเส้นทาง: รหัสครั้งเดียวที่ถูกต้องไม่สร้างเซสชัน (FR-377) ที่ใดมีรหัสปรากฏด้านล่าง สิ่งที่รหัสอนุญาตคือการสร้างทางเข้า การตอบด่าน หรือการกู้คืน — ไม่ใช่การเข้าใช้ WF-117 เพิ่มจังหวะปิดท้าย (การนั่งครั้งนั้นไม่จบจนบัญชีมีปัจจัยที่ให้เข้า) และขั้นแรกของ WF-120 ถูกเรียบเรียงใหม่เป็นทางกู้คืนที่ประกาศต้นทุนและเวลาหน่วง; WF-123 (โทรศัพท์เครื่องใหม่) และ WF-124 (ยกด่านและตอบด่าน) เป็นของใหม่

spec v0.42.0 (PROP-067 อนุมัติและ apply 31 ก.ค. 2569) เพิ่มหกเส้นทางให้บริการนี้ มีสองกฎที่พาดผ่านทุกเส้นทาง: การผูกและเลิกผูกทางเข้าเป็นการกระทำส่วนบุคคล — ทำได้เฉพาะในเซสชันที่ยืนยันว่าเป็นเจ้าของ บันทึกเป็น AuthEvent และแจ้งไปทุกช่องทางอื่นที่ผูกไว้ (FR-367 สมาชิกที่เจ็ดของชุดที่มอบหมายไม่ได้) — และไม่มีขั้นตอนใดเปิดเผยว่าตัวระบุนั้นลงทะเบียนไว้หรือไม่ (NFR-137) การกู้คืนที่สำเร็จทุกครั้งยกเลิกทุกเซสชันอื่น ยกเลิกการเปลี่ยนตัวระบุที่ค้าง แสดงรายการตัวตนที่ผูกไว้ให้จัดการ และแจ้งไปทุกทางเข้า (FR-371)

WFWalkเส้นทางEventsเหตุการณ์
WF-117Bind a provider — and sign up with one. (1) From an authenticated session the holder chooses a provider offered on this surface and presentable by this device (FR-376). (2) The provider returns a subject; matching runs on (provider, provider_subject) only (NFR-135) and no profile scope is requested (NFR-136). (3) A subject already bound to ANOTHER person is refused without naming him; otherwise the row is written, every other channel notified, the event recorded. (4) On sign-up the returning subject is unknown by definition — the platform OFFERS a phone number and, once given and verified, enters the existing claim flow (WF-01); declining leaves a look-and-learn account that says so once (FR-365). (5) v0.43.0 (PROP-068): the sitting does not finish until the account holds an ENTRY factor — a passkey where the platform reports support, otherwise a device key with a six-digit PIN. A correct OTP creates no session; it authorises that creation and nothing else (FR-377, FR-379).ผูกผู้ให้บริการ — และสมัครด้วยผู้ให้บริการ (1) จากเซสชันที่ยืนยันแล้ว เจ้าของเลือกผู้ให้บริการที่ surface นี้เสนอและเครื่องนี้แสดงได้ (FR-376) (2) ผู้ให้บริการคืน subject; จับคู่ด้วย (provider, provider_subject) เท่านั้น (NFR-135) และไม่ขอ scope โปรไฟล์ (NFR-136) (3) subject ที่ผูกกับคนอื่นอยู่แล้วถูกปฏิเสธโดยไม่ระบุชื่อ; ถ้าไม่ ก็เขียนแถว แจ้งทุกช่องทางอื่น บันทึกเหตุการณ์ (4) ตอนสมัคร subject ที่กลับมาย่อมไม่รู้จัก — แพลตฟอร์มเสนอเบอร์โทร เมื่อให้และยืนยันแล้วจึงเข้ากระบวนการอ้างสิทธิ์เดิม (WF-01); ถ้าไม่ให้ ก็เป็นบัญชีที่ดูและเรียนรู้ได้ และบอกครั้งเดียว (FR-365) (5) v0.43.0 (PROP-068): การนั่งครั้งนั้นไม่จบจนบัญชีมีปัจจัยที่ให้เข้า — passkey ถ้าแพลตฟอร์มรายงานว่ารองรับ ไม่ก็กุญแจในเครื่องพร้อม PIN หกหลัก OTP ที่ถูกต้องไม่สร้างเซสชัน แต่อนุญาตการสร้างนั้นเท่านั้น (FR-377, FR-379)FactorBound · NumberAdded
WF-118Create a passkey. (1) Offered only where the platform reports credential support — below the floor the surface says nothing and shows no greyed button (D-3). (2) WebAuthn registration with user verification required; sync flags and attestation are recorded, never used to refuse. (3) The farmer labels it in his own words. Offered at three moments and no more: the end of first run, after a recovery, and from account security.สร้าง passkey (1) เสนอเฉพาะที่แพลตฟอร์มรายงานว่ารองรับ credential — ต่ำกว่านั้นไม่พูดอะไรและไม่มีปุ่มเทา (D-3) (2) ลงทะเบียน WebAuthn โดยต้องยืนยันผู้ใช้; บันทึก flag การซิงก์และ attestation ไม่ใช้ปฏิเสธ (3) ชาวไร่ตั้งชื่อด้วยคำของตัวเอง เสนอสามจังหวะเท่านั้น: ท้ายการใช้งานครั้งแรก หลังกู้คืน และจากหน้าความปลอดภัยบัญชีFactorBound
WF-119Recover when a way in is lost. (1) The screen states what the account has — masked — and each remaining route with its honest cost and time BEFORE it is started. (2) The chosen route runs; staff-assisted means in person, ID card, two named staff, recorded, notified, reversible for seven days. (3) On completion every other session is revoked, pending identifier changes cancelled, the bound-identity list presented for pruning, every way in notified. (4) It ends by OFFERING a new way in — never binding one silently.กู้คืนเมื่อเสียทางเข้า (1) หน้าจอบอกว่าบัญชีมีอะไร — ปิดบางส่วน — และแต่ละทางที่เหลือพร้อมต้นทุนและเวลาตามจริง ก่อนเริ่ม (2) ทางที่เลือกทำงาน; แบบมีเจ้าหน้าที่ช่วยคือมาด้วยตัวเอง มีบัตรประชาชน เจ้าหน้าที่สองคน มีบันทึก มีการแจ้ง ยกเลิกได้เจ็ดวัน (3) เมื่อสำเร็จ ยกเลิกทุกเซสชันอื่น ยกเลิกการเปลี่ยนที่ค้าง แสดงรายการตัวตนที่ผูกไว้ แจ้งทุกทางเข้า (4) จบด้วยการเสนอทางเข้าใหม่ — ไม่ผูกให้เงียบ ๆRecoveryCompleted · SessionsRevoked · FactorBound
WF-120The number is gone. Amended v0.43.0 (PROP-068): with a second number the OTP to that other number is a published recovery route with its cost and delay stated before it starts — it ends in a device credential created on the handset in front of him, never in a session minted from a code (FR-377, FR-380) — and he removes the dead one (WF-121). With another factor but no second number: he signs in with it and edits the number like any other detail, re-verified by OTP to the NEW number, notified to the old ways in, the old number released only after its cooling period. With nothing else bound: the mill cane office (FR-371) or the self-serve card-and-liveness last resort (WF-122).เบอร์หายไป แก้ v0.43.0 (PROP-068): ถ้ามีเบอร์ที่สอง OTP ไปเบอร์นั้นเป็นทางกู้คืนที่ประกาศต้นทุนและเวลาหน่วงก่อนเริ่ม — จบด้วยการสร้างกุญแจในเครื่องบนเครื่องที่อยู่ตรงหน้า ไม่ใช่เซสชันที่สร้างจากรหัส (FR-377, FR-380) — แล้วถอนเบอร์ที่ตายออก (WF-121) ถ้ามีปัจจัยอื่นแต่ไม่มีเบอร์ที่สอง: เข้าระบบด้วยปัจจัยนั้นแล้วแก้เบอร์เหมือนรายละเอียดอื่น ยืนยันด้วย OTP ไปเบอร์ใหม่ แจ้งทางเข้าเดิม ปล่อยเบอร์เก่าหลังพ้นระยะพัก ถ้าไม่มีอะไรเลย: สำนักงานอ้อยของโรงงาน (FR-371) หรือทางสุดท้ายด้วยบัตรและการตรวจสด (WF-122)NumberAdded · NumberRemoved · PrimaryNumberChanged
WF-121Add, promote or remove a number. (1) A new number is verified by OTP to itself before it is usable, and is unique among active numbers platform-wide. (2) Promoting a different primary re-points invitations (FR-63), notifications and the payment advice, and is notified on every other way in. (3) Removal is refused in three cases, each in one plain sentence: it is the account’s last way in, the last verified number of a person who holds a membership, or the primary with none promoted first. A removed number is held for its cooling period before anyone may register it again.เพิ่ม เลื่อน หรือถอนเบอร์ (1) เบอร์ใหม่ยืนยันด้วย OTP ไปที่เบอร์นั้นเอง ก่อนใช้งานได้ และไม่ซ้ำกับเบอร์ที่ใช้งานอยู่ทั้งแพลตฟอร์ม (2) การเลื่อนเบอร์อื่นเป็นเบอร์หลักย้ายคำเชิญ (FR-63) การแจ้งเตือน และใบแจ้งการจ่ายเงินตามไป และแจ้งทุกทางเข้าอื่น (3) การถอนถูกปฏิเสธสามกรณี แต่ละกรณีประโยคเดียว: เป็นทางเข้าสุดท้าย เป็นเบอร์ที่ยืนยันแล้วเบอร์สุดท้ายของคนที่มี membership หรือเป็นเบอร์หลักที่ยังไม่ได้เลื่อนเบอร์อื่นขึ้นมา เบอร์ที่ถอนแล้วถูกพักไว้ก่อนใครจะลงทะเบียนซ้ำได้NumberAdded · PrimaryNumberChanged · NumberRemoved
WF-123
newใหม่
A new phone. Path A — an existing way in still works (a provider account, or a passkey synced to the new handset): he signs in, the device mints its OWN credential, one notification follows, no challenge. The ordinary case, and it needs no code at all. Path B — only the number is left: an OTP to a verified number raises the new_device signal, the credential is written with enrolled_via = otp_enrolment, every other way in is told, three act classes wait out the published 24-hour delay (credit requests, payment-detail changes, removal of a way in — reading, delivery recording and spend recording never wait), and the holder may reverse the enrolment himself for seven days. The delay and the window are PUBLISHED VALUES, not server settings (FR-380, D-2). Path C — the number is gone too: WF-120, then the counter, then WF-122.โทรศัพท์เครื่องใหม่ ทาง ก — ทางเข้าเดิมยังใช้ได้ (บัญชีผู้ให้บริการ หรือ passkey ที่ซิงก์มา): เข้าใช้ เครื่องสร้าง credential ของตัวเอง แจ้งเตือนหนึ่งครั้ง ไม่มีด่าน เป็นกรณีปกติและไม่ต้องใช้รหัสเลย ทาง ข — เหลือแต่เบอร์: OTP ไปเบอร์ที่ยืนยันแล้วทำให้เกิดสัญญาณ new_device เขียน credential ด้วย enrolled_via = otp_enrolment แจ้งทางเข้าอื่นทุกทาง การกระทำสามชั้นรอเวลาหน่วง 24 ชั่วโมงที่ประกาศไว้ (การขอสินเชื่อ การแก้ข้อมูลการรับเงิน การถอนทางเข้า — การอ่าน การบันทึกการส่งมอบ และการบันทึกค่าใช้จ่ายไม่ต้องรอ) และเจ้าของย้อนการลงทะเบียนเองได้เจ็ดวัน เวลาหน่วงและช่วงย้อนกลับเป็นค่าที่ประกาศไว้ ไม่ใช่ค่าตั้งของเซิร์ฟเวอร์ (FR-380, D-2) ทาง ค — เบอร์ก็ไม่มีแล้ว: WF-120 แล้วเคาน์เตอร์ แล้ว WF-122DeviceEnrolled · DeviceEnrolmentReversed · RecoveryCompleted
WF-124
newใหม่
A challenge is raised and answered. (1) A PUBLISHED signal fires — one of five — and AuthEvent challenge_raised names it in risk_signals; no challenge is ever raised by a rule outside the register (FR-382). (2) ac-03 states the fact in one plain Thai sentence and offers the step: an OTP to the primary number, or a second factor of a different kind where one exists. (3) Passed — the act continues, the challenge is recorded in amr, aal is unchanged. (4) Failed or unanswerable — the ACT stops, reading continues, and the recovery route is on the same screen; the single exception is holder_report, where the holder’s own alarm has already revoked every other session and credential (D-6). No other tenant is told that a person was challenged, why, or whether he passed — a counterparty sees only that an act has not completed (NFR-139, D-7).ยกด่านและตอบด่าน (1) สัญญาณที่ประกาศไว้ทำงาน — หนึ่งในห้า — และ AuthEvent challenge_raised ระบุไว้ใน risk_signals; ไม่มีด่านใดถูกยกด้วยกติกานอกทะเบียน (FR-382) (2) ac-03 บอกข้อเท็จจริงด้วยประโยคไทยธรรมดาหนึ่งประโยคและเสนอขั้นตอน: OTP ไปเบอร์หลัก หรือปัจจัยที่สองต่างชนิดถ้ามี (3) ผ่าน — การกระทำดำเนินต่อ บันทึกด่านไว้ใน amr aal ไม่เปลี่ยน (4) ไม่ผ่านหรือตอบไม่ได้ — การกระทำหยุด การอ่านดำเนินต่อ และทางกู้คืนอยู่บนหน้าจอเดียวกัน; ข้อยกเว้นเดียวคือ holder_report ที่สัญญาณเตือนของเจ้าของเองถอนทุกเซสชันและ credential อื่นไปแล้ว (D-6) ไม่มีฝ่ายอื่นได้รับแจ้งว่าใครถูกยกด่าน เพราะอะไร หรือผ่านหรือไม่ — คู่สัญญาเห็นเพียงว่าการกระทำยังไม่เสร็จ (NFR-139, D-7)none — an AuthEvent row, deliberately not a domain eventไม่มี — เป็นแถว AuthEvent จงใจไม่เป็นเหตุการณ์โดเมน
WF-122Prove who you are, and get back in. (1) Explicit, separable consent in Thai — purpose, what is kept, what is deleted, how to withdraw; refusing costs only this route. (2) He reads his national ID card and passes a short guided live check. (3) national_id_hash is matched against the account the ID already belongs to — a different person is refused without disclosure; nobody’s ID is bound to this account on the way through. (4) He binds a new way in, under every WF-119 consequence. Gate: the live check is unavailable in any environment until the PDPA legal review and the vendor data-residency assessment are recorded (FR-372, D-13).พิสูจน์ว่าคุณคือใคร แล้วกลับเข้าไป (1) ความยินยอมโดยชัดแจ้งแยกรายการ เป็นภาษาไทย — จุดประสงค์ เก็บอะไร ลบอะไร ถอนอย่างไร; การปฏิเสธปิดแค่ทางนี้ (2) สแกนบัตรประชาชนและผ่านการตรวจสดสั้น ๆ มีคำแนะนำ (3) เทียบ national_id_hash กับบัญชีที่เลขนั้นเป็นของ — ถ้าเป็นของคนอื่น ปฏิเสธโดยไม่เปิดเผย; ถ้ายังไม่เป็นของใคร ผูกเข้ากับบัญชีนี้ระหว่างทาง (4) ผูกทางเข้าใหม่ ภายใต้ผลของ WF-119 ทั้งหมด ด่าน: การตรวจสดใช้ไม่ได้ในทุกสภาพแวดล้อมจนกว่าจะมีบันทึกการทบทวนกฎหมาย PDPA และการประเมินที่เก็บข้อมูลของผู้ให้บริการ (FR-372, D-13)IdentityChecked · FactorBound · RecoveryCompleted · SessionsRevoked

10. Permission workflows (PROP-040)10. workflow ของสิทธิ์ (PROP-040)

Spec v0.41.0 (PROP-040, approved & applied 30 Jul 2026) adds four walks to this service: composing a position and appointing a person, granting an account override, the hand-off a refusal offers, and the one-way individual → tenant upgrade. All four resolve through the same six steps as Section 6 (federation.permissionModel), because there is exactly one resolver for every capacity (P-7).

spec v0.41.0 (PROP-040 อนุมัติและ apply 30 ก.ค. 2569) เพิ่มสี่เส้นทางให้บริการนี้: การประกอบตำแหน่งและแต่งตั้งบุคคล การมอบการลบล้างรายบัญชี การส่งต่อที่การปฏิเสธเสนอให้ และการยกระดับบุคคล → tenant แบบทางเดียว ทั้งสี่ตัดสินผ่านหกขั้นเดียวกับข้อ 6 (federation.permissionModel) เพราะมี resolver เพียงตัวเดียวสำหรับทุก capacity (P-7)

WF-113 — Compose a position and appoint a personWF-113 — ประกอบตำแหน่งและแต่งตั้งบุคคล

Composition is immediate; an appointment takes effect at the appointee’s next sign-in or department switch. States: PermissionGroup.status draft → active → retired · PositionAppointment.status active → ended.

การประกอบมีผลทันที; การแต่งตั้งมีผลตอนผู้ถูกแต่งตั้งลงชื่อเข้าหรือสลับหน่วยงานครั้งถัดไป สถานะ: PermissionGroup.status draft → active → retired · PositionAppointment.status active → ended

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1mill_admin (access) · portal mill-access-groupsmill_admin (หมวด access) · portal mill-access-groupsClone a platform position template or create a position; name it in Thai and English; choose its department. Guards: at most one nesting level (PROP-026); names are the tenant’s, keys are the platform’s (D-4).โคลน template ตำแหน่งของแพลตฟอร์มหรือสร้างตำแหน่ง ตั้งชื่อไทยและอังกฤษ เลือกหน่วยงาน เงื่อนไข: ซ้อนได้ไม่เกินหนึ่งชั้น (PROP-026); ชื่อเป็นของ tenant key เป็นของแพลตฟอร์ม (D-4)
2mill_admin · portalmill_admin · portalSet one three-value control per (row, facet); read grade on amount-bearing reads; scope tuple and constraints per grant. Guards: no grant without a scope tuple · no approve without reject · no facet outside facets_available · rows outside the tenant’s capacities are absent.ตั้งตัวควบคุมสามค่าหนึ่งตัวต่อ (แถว, facet); ระดับการดูสำหรับแถวที่มีจำนวนเงิน; tuple ของ scope และเงื่อนไขราย grant เงื่อนไข: ไม่มี grant ที่ไม่มี scope · ไม่มี approve ที่ไม่มี reject · ไม่มี facet นอก facets_available · แถวนอก capacity ของ tenant ไม่ปรากฏ
3mill_admin · portalmill_admin · portalReview the diff act by act and save. Four-eyes where the position carries amount-bearing approve rows. Events: GroupComposed · ActionGrantChanged.ทบทวน diff ทีละการกระทำแล้วบันทึก ต้องสองผู้อนุมัติเมื่อตำแหน่งมีแถวอนุมัติที่มีจำนวนเงิน event: GroupComposed · ActionGrantChanged
4mill_admin · portalmill_admin · portalAppoint an account: department, optional place, valid_from, optional valid_to. Guards: a place must lie inside the appointment’s department; no shift or roster is asked for or accepted (D-5). Event: PositionAppointmentChanged.แต่งตั้งบัญชี: หน่วยงาน สถานที่ (ถ้ามี) valid_from และ valid_to (ถ้ามี) เงื่อนไข: สถานที่ต้องอยู่ในหน่วยงานของการแต่งตั้ง; ไม่ถามและไม่รับตารางกะ (D-5) event: PositionAppointmentChanged
5systemsystemInvalidate and recompile the appointee’s set at next sign-in or department switch; push the station slice to the gateway where the appointment is place-bounded (FR-362). Fail: gateway unreachable → the station keeps its current lease until it expires.ล้างและคอมไพล์ชุดสิทธิ์ของผู้ถูกแต่งตั้งใหม่ตอนลงชื่อเข้าหรือสลับหน่วยงานครั้งถัดไป; ส่งส่วนของสถานีไปยัง gateway เมื่อการแต่งตั้งผูกสถานที่ (FR-362) ล้มเหลว: ติดต่อ gateway ไม่ได้ → สถานีใช้ lease เดิมจนหมดอายุ

WF-114 — Grant an account override, and the standing access reviewWF-114 — มอบการลบล้างรายบัญชี และการทบทวนสิทธิ์ประจำ

Overrides expire by default at season close; the review is standing and always current. States: pending_second → active → expired | revoked.

การลบล้างหมดอายุตามค่าตั้งต้นเมื่อปิดฤดู; การทบทวนเป็นงานประจำและเป็นปัจจุบันเสมอ สถานะ: pending_second → active → expired | revoked

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1mill_admin · portal mill-access-reviewmill_admin · portal mill-access-reviewCompose the override: account, row, facets, effect, scope, written reason, expiry. Guards: a reason and an expiry are both mandatory (default one season).เขียนการลบล้าง: บัญชี แถว facet ผล scope เหตุผลเป็นลายลักษณ์ วันหมดอายุ เงื่อนไข: ต้องมีทั้งเหตุผลและวันหมดอายุ (ค่าตั้งต้นหนึ่งฤดู)
2a second, distinct approver · portalผู้อนุมัติที่สอง ต่างคน · portalApprove where the row is amount_bearing. Guards: no self-approval — the composer may not approve. Event: OverrideGranted.อนุมัติเมื่อแถวเป็น amount_bearing เงื่อนไข: ห้ามอนุมัติงานตนเอง — ผู้เขียนอนุมัติไม่ได้ event: OverrideGranted
3system · portalsystem · portalList the override in the access review beside every other live override, dormant grant and recorded refusal, each entry naming its deciding grant (NFR-133).แสดงการลบล้างในการทบทวนสิทธิ์ ข้างการลบล้างที่ยังมีผล grant ที่หลับ และการปฏิเสธที่บันทึกไว้ แต่ละรายการระบุ grant ที่ตัดสิน (NFR-133)
4systemsystemLapse at expiry without a further act; the account’s set is recompiled. Event: OverrideExpired.หมดอายุเองโดยไม่ต้องมี act เพิ่ม; ชุดสิทธิ์ของบัญชีถูกคอมไพล์ใหม่ event: OverrideExpired

WF-115 — Refused, then escalated — the hand-off a refusal offersWF-115 — ถูกปฏิเสธแล้วส่งต่อ — การส่งต่อที่การปฏิเสธเสนอให้

response_window comes from the catalog row; on expiry the request escalates one department level. States: pending → approved | refused | expired | withdrawn. Farmers are shown no permission language anywhere in this flow (D-8).

response_window มาจากแถวในแคตาล็อก; เมื่อหมดเวลา คำขอเลื่อนขึ้นหนึ่งชั้นหน่วยงาน สถานะ: pending → approved | refused | expired | withdrawn ชาวไร่ไม่เห็นภาษาเรื่องสิทธิ์ที่ใดในเส้นทางนี้ (D-8)

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1system · portal / station / mobilesystem · portal / station / mobileRefuse the act, naming the POSITION that holds it — never a person’s private details — and record the refusal. Event: ActionDeniedAtActTime.ปฏิเสธการกระทำ โดยระบุตำแหน่งที่ถือสิทธิ์ ไม่ใช่ข้อมูลส่วนตัวของบุคคล และบันทึกการปฏิเสธ event: ActionDeniedAtActTime
2the refused account · portal / station / mobileบัญชีที่ถูกปฏิเสธ · portal / station / mobileOne tap creates the request with the captured values, an optional reason and evidence; the routing set is resolved and FROZEN at creation. Event: EscalationRequested.กดครั้งเดียวสร้างคำขอพร้อมค่าที่บันทึกไว้ เหตุผลและหลักฐาน (ถ้ามี); ชุดผู้รับตัดสินและตรึงตอนสร้าง event: EscalationRequested
3a holder of the required facet in scope · portalผู้ถือ facet ที่ต้องการภายใน scope · portalDecide in his own name. The resulting write carries BOTH identities and P-4 is evaluated against the DECIDER. Nothing auto-approves. Event: EscalationDecided.ตัดสินในชื่อของตนเอง การเขียนที่เกิดขึ้นถือสองตัวตน และประเมิน P-4 กับผู้ตัดสิน ไม่มีการอนุมัติอัตโนมัติ event: EscalationDecided
4systemsystemOn expiry escalate one department level and notify; blocking decides whether work continued while pending. Event: EscalationExpired.เมื่อหมดเวลา เลื่อนขึ้นหนึ่งชั้นหน่วยงานและแจ้งเตือน; blocking ตัดสินว่างานเดินต่อได้หรือไม่ระหว่างรอ event: EscalationExpired

WF-116 — The individual → tenant upgrade — one-way, two acts, nothing rewrittenWF-116 — การยกระดับบุคคล → tenant — ทางเดียว สอง act ไม่เขียนอะไรใหม่

v0.45.0 (PROP-074) — the pre-condition is re-worded now that founding is deliberate: the tenant exists at all because a tenant-held capacity was requested (FR-392), so the upgrade is the ladder's second rung rather than its first. Both rungs — Person → individual-kind tenant → organization-kind tenant — are climbed on purpose and neither is reversible. A wound-down organization tenant is a closed organization tenant, not an individual one again.

v0.45.0 (PROP-074) — เงื่อนไขก่อนถูกปรับถ้อยคำเพราะการก่อตั้งเป็นเรื่องตั้งใจแล้ว: tenant มีอยู่ได้เพราะมีการขอ capacity ของ tenant (FR-392) การยกระดับจึงเป็นขั้นที่สองของบันได ไม่ใช่ขั้นแรก ทั้งสองขั้นถูกก้าวขึ้นอย่างตั้งใจและย้อนกลับไม่ได้

Self-serve to start; completion waits only on registration verification where the capacity’s requiredLevel demands it. Department.legal_form individual → organization is ONE-WAY: a wound-down organization tenant is closed, never demoted (D-11).

เริ่มเองได้; การปิดรอเพียงการตรวจการจดทะเบียนเมื่อ requiredLevel ของ capacity กำหนด Department.legal_form บุคคล → องค์กร เป็นทางเดียว: tenant องค์กรที่เลิกกิจการถูกปิด ไม่ใช่ลดชั้น (D-11)

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1the tenant (grower · quota · lead · contractor) · mobile / accounttenant (grower · quota · lead · contractor) · mobile / accountStart the upgrade from his own app — a growth event, not an admission, so no operator invitation is required.เริ่มการยกระดับจากแอปของตนเอง — เป็นเหตุการณ์การเติบโต ไม่ใช่การรับเข้า จึงไม่ต้องมีคำเชิญจาก operator
2the tenant · account acct-upgradetenant · account acct-upgradeRead and acknowledge the one-way notice: in his own language, in plain words, that the change cannot be undone — a named warning on the confirm act, not fine print and not a tooltip; refusal as prominent as acceptance (NFR-125). Fail: not acknowledged → the platform does not proceed.อ่านและรับทราบคำเตือนทางเดียว: เป็นภาษาของตน คำพื้น ๆ ว่าการเปลี่ยนนี้ย้อนกลับไม่ได้ — คำเตือนที่มีชื่อบน act ยืนยัน ไม่ใช่ตัวอักษรเล็กและไม่ใช่ tooltip; การปฏิเสธเด่นเท่าการยอมรับ (NFR-125) ล้มเหลว: ไม่รับทราบ → แพลตฟอร์มไม่ดำเนินการ
3platform · account / adminplatform · account / adminVerify the organization’s registration where required; evidence lands in the document vault. Fail: unverified → the upgrade waits; nothing is half-applied.ตรวจการจดทะเบียนขององค์กรเมื่อกำหนด; หลักฐานเก็บในคลังเอกสาร ล้มเหลว: ยังไม่ผ่านการตรวจ → การยกระดับรอ ไม่มีอะไรทำครึ่ง ๆ
4systemsystemFound the organization tenant, move the capacity with its verification, materialize the implicit owner group as an editable group set, name the department, open staff memberships, re-check the compatibility matrix. Guards: no id changes, no ledger movement, no re-grant; history stays where it was produced (DR-6). Event: DepartmentRegistered.ตั้ง tenant องค์กร ย้าย capacity พร้อมการตรวจสอบ ทำกลุ่มเจ้าของโดยปริยายให้เป็นชุดกลุ่มที่แก้ได้ ตั้งชื่อหน่วยงาน เปิดสมาชิกภาพพนักงาน และตรวจตารางความเข้ากันได้ใหม่ เงื่อนไข: ไม่เปลี่ยนรหัส ไม่ย้ายบัญชี ไม่มอบสิทธิ์ใหม่; ประวัติอยู่ที่เดิม (DR-6) event: DepartmentRegistered

11. Member admission and removal (PROP-072)11. การรับสมาชิกและการถอดออก (PROP-072)

v0.50.0 (PROP-072 approved & applied 4 Aug 2026). Five workflows for the act the applied model had no object for: a tenant admitting a PERSON to a POSITION, and ending that membership under a contract. WF-126 and WF-127 are branches of WF-24 (Section 2), never a parallel onboarding. States throughout: MemberInvitation issued → accepted | declined | expired | revoked · Membership invited → active → left.

v0.50.0 (PROP-072 อนุมัติและ apply แล้ว 4 ส.ค. 2569) workflow ห้าตัวสำหรับการกระทำที่แบบจำลองเดิมไม่มีวัตถุรองรับ: tenant รับคนเข้าสู่ตำแหน่ง และการจบสมาชิกภาพนั้นภายใต้สัญญา WF-126 และ WF-127 เป็นกิ่งของ WF-24 (ข้อ 2) ไม่ใช่การขึ้นทะเบียนขนานกัน สถานะทั้งชุด: MemberInvitation issued → accepted | declined | expired | revoked · Membership invited → active → left

WF-125 — Invite a person into a positionWF-125 — เชิญคนเข้าสู่ตำแหน่ง

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1a membership holding members & roles → invite · account (invitation composer, mode: admit a person to a position)สมาชิกภาพที่ถือสิทธิ์ สมาชิกและบทบาท → เชิญ · account (ตัวเขียนคำเชิญ โหมด: รับคนเข้าสู่ตำแหน่ง)Compose the invitation: the department, the position (PermissionGroup + SurfaceRoleGrants) and ONE contact target — a phone number, or an email that resolves to the invitee’s external identity provider. Guards: the issuer holds the permission IN the target department — the owner role by construction, the capacity administrative template role by default, delegable within a department and never across one (A-82); at most one open invitation per (tenant, target), a second revoking the first. Events: MemberInvited. Fail: no permission in that department → refused, and the refusal names the department.เขียนคำเชิญ: หน่วยงาน ตำแหน่ง (PermissionGroup + SurfaceRoleGrant) และปลายทางติดต่อหนึ่งแห่ง — เบอร์โทร หรืออีเมลที่ลงตัวกับผู้ให้บริการตัวตนภายนอกของผู้ถูกเชิญ เงื่อนไข: ผู้ออกถือสิทธิ์ในหน่วยงานปลายทาง — บทบาท owner ถือโดยโครงสร้าง บทบาทแม่แบบผู้ดูแลของ capacity ถือโดยปริยาย มอบหมายได้ภายในหน่วยงานและไม่ข้ามหน่วยงาน (A-82) มีคำเชิญค้างได้หนึ่งใบต่อ (tenant, ปลายทาง) ใบที่สองเพิกถอนใบแรก event: MemberInvited ล้มเหลว: ไม่มีสิทธิ์ในหน่วยงานนั้น → ปฏิเสธ และการปฏิเสธระบุชื่อหน่วยงาน
2systemsystemDeliver the single-use token as a link or QR; store the target HASHED and never render it back to the issuer after issue. Guards: issue, delivery, timing, wording and every error are identical whether the target belongs to an account or not — including a provider email with no matching provider identity (NFR-144). Fail: a delivery failure is never disclosed as a fact about the target.ส่งโทเคนใช้ครั้งเดียวเป็นลิงก์หรือ QR เก็บปลายทางแบบแฮช และไม่แสดงกลับให้ผู้ออกหลังออกแล้ว เงื่อนไข: การออก การส่ง จังหวะเวลา ถ้อยคำ และข้อผิดพลาดทุกแบบ เหมือนกันทุกประการไม่ว่าปลายทางจะเป็นของบัญชีหรือไม่ รวมถึงอีเมลของผู้ให้บริการที่ไม่มีตัวตนตรงกัน (NFR-144) ล้มเหลว: การส่งไม่สำเร็จไม่ถูกเปิดเผยเป็นข้อเท็จจริงเกี่ยวกับปลายทาง
3the issuer · account (member list)ผู้ออก · account (รายชื่อสมาชิก)Revoke while open, or re-issue without limit (the 7-day life is published on the invitation). Guards: the list shows STATUS only; who accepted appears after acceptance, and a decline shows the bare fact of it — no reason, no timing, no read receipt.เพิกถอนขณะยังค้าง หรือออกใหม่ได้ไม่จำกัด (อายุ 7 วันประกาศบนคำเชิญ) เงื่อนไข: รายการแสดงสถานะเท่านั้น ผู้ตอบรับปรากฏหลังตอบรับ และการปฏิเสธแสดงเพียงข้อเท็จจริง ไม่มีเหตุผล ไม่มีเวลา ไม่มีสถานะการอ่าน

WF-126 — Accept as a new person — a branch of WF-24WF-126 — ตอบรับในฐานะคนใหม่ — กิ่งของ WF-24

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1the invited person · mobile / portal (ac-10)ผู้ถูกเชิญ · mobile / portal (ac-10)Open the link or QR. The landing states which tenant invites him, into what position, what the position lets him do and what the tenant will be able to see about him. Guards: nothing is written by opening a link. Fail: expired, used or revoked → one sentence, disclosing nothing about the tenant or the target.เปิดลิงก์หรือ QR หน้าเปิดบอกว่า tenant ใดเชิญ เข้าสู่ตำแหน่งใด ตำแหน่งนั้นให้ทำอะไรได้ และ tenant จะเห็นอะไรเกี่ยวกับเขา เงื่อนไข: การกดลิงก์ไม่เขียนอะไรเลย ล้มเหลว: หมดอายุ ใช้แล้ว หรือถูกเพิกถอน → หนึ่งประโยค ไม่เปิดเผยอะไรเกี่ยวกับ tenant หรือปลายทาง
2the invited person · mobile (the WF-24 spine)ผู้ถูกเชิญ · mobile (แกนของ WF-24)The invited target resolves to NOBODY, so he joins the onboarding spine at the enrolment step and returns to the same acceptance screen. Guards: a provider-email target enrols through the provider that owns the address; uniqueness and recovery stay on the verified number. Fail: he abandons → the invitation stays open until it expires.ปลายทางที่ถูกเชิญไม่ไปเจอใคร เขาจึงเข้าร่วมแกนการขึ้นทะเบียนที่ขั้นลงทะเบียน แล้วกลับมาที่หน้าตอบรับเดิม เงื่อนไข: ปลายทางแบบอีเมลลงทะเบียนผ่านผู้ให้บริการที่เป็นเจ้าของที่อยู่นั้น ความไม่ซ้ำและการกู้คืนยังอยู่บนเบอร์ที่ยืนยันแล้ว ล้มเหลว: เขาเลิกกลางทาง → คำเชิญค้างไว้จนหมดอายุ
3the invited person · mobile / portal (ac-10)ผู้ถูกเชิญ · mobile / portal (ac-10)Accept or decline, with equal weight. Acceptance writes Membership + SurfaceRoleGrants + permission-group membership in ONE transaction. Guards: the act is personal — never delegable, never automatic, never a side effect of following a link (FR-400); he is NOT switched into the new tenant, he is told he MAY switch (FR-343). Events: MembershipJoined | MemberInvitationDeclined.ตอบรับหรือปฏิเสธ ด้วยน้ำหนักเท่ากัน การตอบรับเขียน Membership + SurfaceRoleGrant + การเป็นสมาชิกกลุ่มสิทธิ์ในทรานแซกชันเดียว เงื่อนไข: เป็นการกระทำส่วนตัว — มอบหมายไม่ได้ ไม่เกิดอัตโนมัติ ไม่ใช่ผลพลอยได้ของการกดลิงก์ (FR-400) เขาไม่ถูกสลับเข้าไปใน tenant ใหม่ แต่ถูกบอกว่าสลับได้ (FR-343) event: MembershipJoined | MemberInvitationDeclined

WF-127 — Accept as an existing person — an association, never a registrationWF-127 — ตอบรับในฐานะคนที่มีบัญชีแล้ว — เป็นการผูก ไม่ใช่การสมัครใหม่

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1the invited person · mobile / portal (ac-10)ผู้ถูกเชิญ · mobile / portal (ac-10)The invited target resolves to an EXISTING person; he signs in as himself and the same acceptance screen is shown. Guards: no new Person, no duplicate, no merge prompt (FR-399); a different number, or the same address at a different provider, is a different invitation. Fail: he signs in on another identity → acceptance refused, invitation untouched.ปลายทางที่ถูกเชิญไปเจอคนที่มีอยู่แล้ว เขาลงชื่อเข้าในฐานะตัวเอง และเห็นหน้าตอบรับเดิม เงื่อนไข: ไม่สร้าง Person ใหม่ ไม่มีข้อมูลซ้ำ ไม่ถามให้รวมบัญชี (FR-399) เบอร์อื่น หรือที่อยู่เดิมที่ผู้ให้บริการอื่น คือคำเชิญอีกใบ ล้มเหลว: ลงชื่อด้วยตัวตนอื่น → ปฏิเสธการตอบรับ คำเชิญไม่ถูกแตะ
2the invited person · mobile / portalผู้ถูกเชิญ · mobile / portalAccept: a membership is ADDED to the person he already is, in one transaction with its grants. Guards: capacity exclusivity is per TENANT and never per person (FR-402, NFR-16) — a bank officer may also farm; his own tenant, its capacities and its records are untouched (FR-404). Events: MembershipJoined.ตอบรับ: สมาชิกภาพถูกเพิ่มให้คนที่เขาเป็นอยู่แล้ว ในทรานแซกชันเดียวพร้อมสิทธิ์ เงื่อนไข: การผูกขาด capacity อยู่ที่ tenant ไม่ใช่ที่คน (FR-402, NFR-16) — เจ้าหน้าที่ธนาคารทำไร่ได้ด้วย tenant ของเขาเอง capacity และระเบียนของมันไม่ถูกแตะ (FR-404) event: MembershipJoined
3system · mobile (บัญชี)system · mobile (บัญชี)Tell him what changed: one notification and one line where the surface changed, naming what, which tenant and when. Guards: never the reason, always the fact (FR-405).บอกเขาว่าอะไรเปลี่ยน: การแจ้งเตือนหนึ่งครั้งและหนึ่งบรรทัดตรงที่หน้าจอเปลี่ยน ระบุว่าอะไร tenant ใด และเมื่อไร เงื่อนไข: ไม่บอกเหตุผล บอกข้อเท็จจริงเสมอ (FR-405)

WF-128 — Remove a member — the eight-consequence contractWF-128 — ถอดสมาชิกออก — สัญญาผลตามมาแปดข้อ

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1a membership holding members & roles → invite, or the person himself · account (member list) / mobile (บัญชี)สมาชิกภาพที่ถือสิทธิ์ สมาชิกและบทบาท → เชิญ หรือเจ้าตัวเอง · account (รายชื่อสมาชิก) / mobile (บัญชี)Confirm the removal; the confirmation STATES the eight consequences. Guards: refused if it would leave the tenant with zero active memberships holding the owner role (FR-407); self-departure is the same act with a different actor and carries the same eight consequences. Fail: last owner → refused at the point of attempt, naming the alternative.ยืนยันการถอดออก หน้ายืนยันแสดงผลตามมาแปดข้อ เงื่อนไข: ปฏิเสธถ้าจะทำให้ tenant เหลือสมาชิกภาพที่ถือบทบาท owner เป็นศูนย์ (FR-407) การออกเองเป็นการกระทำเดียวกันที่ผู้กระทำต่างกัน และมีผลตามมาแปดข้อเดียวกัน ล้มเหลว: เจ้าของคนสุดท้าย → ปฏิเสธตั้งแต่ตอนพยายามทำ พร้อมบอกทางเลือก
2systemsystemRun the contract: sessions for THAT tenant revoked · grants suspended never deleted · queued offline captures settled within the published 72-hour window from the removal and never discarded · in-flight approvals reassigned to the owner role never voided · cached tenant data purged at next launch and said so · notifications for that tenant ended · the person told · the audit unchanged. Guards: if the window expires unsynced, BOTH sides are told the same count (FR-403, FR-343); removal from one tenant changes nothing anywhere else (FR-404). Events: MembershipLeft. Fail: anything else a removal touches is a defect, not a branch.เดินตามสัญญา: เพิกถอนเซสชันของ tenant นั้น · ระงับสิทธิ์ ไม่ลบ · สะสางการบันทึกออฟไลน์ที่ค้างคิวภายใน 72 ชั่วโมง ที่ประกาศไว้นับจากการถอดออก ไม่ทิ้ง · โอนรายการอนุมัติที่ค้างไปยังบทบาทเจ้าของ ไม่ยกเลิก · ล้างข้อมูล tenant ที่แคชไว้เมื่อเปิดครั้งถัดไปและบอกว่าล้างแล้ว · จบการแจ้งเตือนของ tenant นั้น · บอกเจ้าตัว · ไม่แตะบันทึกตรวจสอบ เงื่อนไข: ถ้าหมดช่วงผ่อนผันแล้วยังซิงก์ไม่ได้ แจ้งจำนวนเดียวกันให้ทั้งสองฝ่าย (FR-403, FR-343) การถูกถอดจาก tenant หนึ่งไม่เปลี่ยนอะไรที่อื่น (FR-404) event: MembershipLeft ล้มเหลว: สิ่งอื่นใดที่การถอดออกไปแตะคือข้อบกพร่อง ไม่ใช่กิ่ง
3systemsystemRecord the ending: WHO ended it (self | the tenant), WHEN, and the REASON — and nothing else (PROP-072 OQ-10, client direction). Guards: the consequence set never depended on why, so the reason changes no behaviour; it exists so that a removal is arguable by the person it happened to.บันทึกการจบ: ใครเป็นผู้จบ (ตัวเอง | tenant) เมื่อไร และเหตุผล — และไม่บันทึกอย่างอื่น (PROP-072 OQ-10 คำสั่งลูกค้า) เงื่อนไข: ชุดผลตามมาไม่เคยขึ้นกับเหตุผล เหตุผลจึงไม่เปลี่ยนพฤติกรรมใด มีไว้เพื่อให้คนที่ถูกกระทำโต้แย้งได้

WF-129 — Re-admit a former member — a new membership, never a resurrectionWF-129 — รับสมาชิกเดิมกลับ — สมาชิกภาพใหม่ ไม่ใช่การชุบชีวิต

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1a membership holding members & roles → invite · account (member list)สมาชิกภาพที่ถือสิทธิ์ สมาชิกและบทบาท → เชิญ · account (รายชื่อสมาชิก)Issue a NEW invitation and choose the position again — the seasonal weighbridge clerk who left in May is invited again in November. Guards: a membership that has ended is never reactivated (FR-406); the position is re-chosen, never inherited from the previous spell. Events: MemberInvited.ออกคำเชิญใหม่และเลือกตำแหน่งอีกครั้ง — เสมียนชั่งตามฤดูที่ออกไปเดือนพฤษภาคมถูกเชิญอีกครั้งในเดือนพฤศจิกายน เงื่อนไข: สมาชิกภาพที่จบแล้วไม่ถูกเปิดใช้ใหม่ (FR-406) ตำแหน่งถูกเลือกใหม่ ไม่สืบทอดจากช่วงก่อน event: MemberInvited
2system · account (member list)system · account (รายชื่อสมาชิก)Present the person as a LIST OF SPELLS, each with its own start, end and position. Guards: work already done stays attributed to the spell that did it — the audit is the one thing a removal never touches.แสดงคนคนนั้นเป็นรายการช่วงเวลา แต่ละช่วงมีวันเริ่ม วันจบ และตำแหน่งของตัวเอง เงื่อนไข: งานที่ทำไปแล้วยังผูกกับช่วงที่ทำ — บันทึกตรวจสอบเป็นสิ่งเดียวที่การถอดออกไม่แตะ

12. The referral loop — WF-130 · WF-131 (PROP-071)12. วงจรการบอกต่อ — WF-130 · WF-131 (PROP-071)

Spec v0.52.0 (PROP-071, approved & applied 4 Aug 2026). Two workflows carry the loop, and neither of them admits anybody: the friend who follows a code arrives at the ordinary self sign-up (WF-24, Route A) as if he had found us himself, and everything the referral adds happens after he has an account and is his to accept or decline.

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

WF-130 — Refer a neighbour, and let him say so — the loop that admits nothingWF-130 — บอกต่อให้เพื่อนบ้าน และให้เขาเป็นคนบอกเอง — วงจรที่ไม่รับอะไรเข้า

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1a grower, in his farming capacity · mobile (เครือข่าย section front — one row)ชาวไร่ในฐานะผู้ปลูก · mobile (หน้าหมวดเครือข่าย — หนึ่งแถว)Read his own eight-character code, or share it as a link, a QR or a code spoken aloud. Guards: one durable code per person and no institution holds one in V1 (FR-408); no field anywhere accepts a third party’s phone number (NFR-145). Events: ReferralIssued.อ่านรหัสแปดตัวอักษรของตัวเอง หรือส่งต่อเป็นลิงก์ QR หรือรหัสที่พูดออกเสียง เงื่อนไข: หนึ่งรหัสถาวรต่อหนึ่งคน V1 สถาบันถือไม่ได้ (FR-408) ไม่มีช่องใดรับเบอร์ของบุคคลที่สาม (NFR-145) event: ReferralIssued
2anybody holding the code · outside the platformใครก็ได้ที่ถือรหัส · นอกแพลตฟอร์มOpen the link, scan the QR or type the code. Guards: multi-use and untargeted by construction — nine openings out of a LINE group of forty are the intended case, not the abuse; ReferralOpened is counted, never routed, so no per-person feed may be built from it (FR-411). Fail: a paused or revoked code says only that it cannot be used, and never why. Events: ReferralOpened.เปิดลิงก์ สแกน QR หรือพิมพ์รหัส เงื่อนไข: ใช้ได้หลายครั้งและไม่มีปลายทางโดยการออกแบบ — เก้าคนเปิดจากกลุ่มไลน์สี่สิบคนคือกรณีที่ตั้งใจ ไม่ใช่การใช้ผิด ReferralOpened นับเท่านั้น ไม่มีเส้นทางส่งต่อ ล้มเหลว: รหัสที่ปิดหรือถูกเพิกถอนบอกเพียงว่าใช้ไม่ได้ และไม่บอกว่าทำไม
3the newcomer · mobile (the ordinary self sign-up — WF-24 Route A)ผู้มาใหม่ · mobile (หน้าสมัครเองตามปกติ — WF-24 เส้นทาง A)Arrive at the ORDINARY sign-up and enrol on his own number. Guards: a referral opens no door and carries no admission (FR-409, A-91); where the number resolves to a virtual record the claim path wins and the referral is recorded beside it, never merged. Fail: an existing account signs in normally and is never asked the question.มาถึงหน้าสมัครตามปกติและลงทะเบียนด้วยเบอร์ของตัวเอง เงื่อนไข: การบอกต่อไม่เปิดประตูและไม่พาการรับเข้าใด (FR-409, A-91) ถ้าเบอร์ไปเจอระเบียนเสมือน เส้นทางการรับบัญชีชนะ และการบอกต่อถูกบันทึกไว้ข้าง ๆ ไม่ถูกรวมกัน ล้มเหลว: บัญชีที่มีอยู่แล้วเข้าใช้ตามปกติ และไม่ถูกถามคำถามนี้
4the newcomer · mobile (ac-09, first open with an account)ผู้มาใหม่ · mobile (ac-09 เปิดครั้งแรกเมื่อมีบัญชี)Answer once — ใครแนะนำแอปนี้ให้คุณ — with the code pre-filled if he arrived by link, the referrer’s display name shown for recognition, and a plainly equal ไม่มีใคร / ข้าม. Guards: the newcomer owns the attribution and the referrer may never assert it (FR-410); UNIQUE (referred_person_id) makes it once in a lifetime; declining has no consequence anywhere. Fail: an unknown or revoked code is refused in the same words as any other (NFR-137).ตอบครั้งเดียว — ใครแนะนำแอปนี้ให้คุณ — เติมรหัสไว้ให้ถ้ามาจากลิงก์ แสดงชื่อผู้แนะนำเพื่อให้จำได้ และมีปุ่ม ไม่มีใคร / ข้าม ที่น้ำหนักเท่ากัน เงื่อนไข: ผู้มาใหม่เป็นเจ้าของการระบุที่มา ผู้แนะนำยืนยันแทนไม่ได้ (FR-410) UNIQUE (referred_person_id) ทำให้เกิดครั้งเดียวในชีวิต การปฏิเสธไม่มีผลใด
5the newcomer · mobile (แปลง or a delivery record)ผู้มาใหม่ · mobile (แปลง หรือระเบียนการส่งมอบ)Do one real thing — register a plot or record a delivery. Guards: never on install, never on account creation, never on a link opened (FR-412); the referrer is told a number and never a person (FR-411); nothing of value is conferred either way (FR-413). Events: ReferralAttributed.ทำสิ่งจริงหนึ่งอย่าง — ลงทะเบียนแปลง หรือบันทึกการส่งมอบ เงื่อนไข: ไม่นับตอนติดตั้ง ไม่นับตอนสร้างบัญชี ไม่นับตอนเปิดลิงก์ (FR-412) ผู้แนะนำได้ยินตัวเลข ไม่เคยเห็นตัวคน (FR-411) ไม่มีสิ่งมีค่าให้ทั้งสองฝ่าย (FR-413) event: ReferralAttributed
6the holder, or the platform · mobile / adminเจ้าของรหัส หรือแพลตฟอร์ม · mobile / adminPause his own code; or, for abuse, the platform revokes it. Guards: a revoked code never says why to whoever still holds it in a group chat; the sprayed accounts were never attributed anyway, so revocation is about the group chats and not the ledger. Events: ReferralRevoked.ปิดรหัสของตัวเอง หรือแพลตฟอร์มเพิกถอนเมื่อมีการใช้ผิด เงื่อนไข: รหัสที่ถูกเพิกถอนไม่บอกเหตุผลกับคนที่ยังถือมันอยู่ในกลุ่มแชท และบัญชีที่ถูกหว่านไม่เคยถูกระบุที่มาอยู่แล้ว event: ReferralRevoked

WF-131 — Generate and share a proof card — he shares what happened, not what we claimWF-131 — สร้างและแชร์การ์ดหลักฐาน — เขาแชร์สิ่งที่เกิดขึ้น ไม่ใช่สิ่งที่เราคุย

#Actor · surfaceผู้กระทำ · ช่องทางStep, guards & eventsขั้น เงื่อนไข และ event
1a grower · mobile (a completed delivery, a settled payment or a season summary)ชาวไร่ · mobile (การส่งมอบที่เสร็จแล้ว เงินที่จ่ายแล้ว หรือสรุปฤดูกาล)Choose แชร์ on a record he is already looking at. Guards: a CLOSED, published allow-list of three record types and nothing else in V1 — a fourth type is a specification change, not a configuration one (FR-414); the sheet opens over the record and registers no screen of its own. Fail: any other record has no share control at all.เลือก แชร์ บนระเบียนที่เขากำลังดูอยู่ เงื่อนไข: รายการอนุญาตแบบปิดสามชนิด และไม่มีอย่างอื่นใน V1 — ชนิดที่สี่คือการแก้ข้อกำหนด ไม่ใช่การตั้งค่า (FR-414) แผ่นการ์ดเปิดทับหน้าระเบียนและไม่ลงทะเบียนหน้าจอของตัวเอง ล้มเหลว: ระเบียนอื่นไม่มีปุ่มแชร์เลย
2the grower · mobile (the card sheet)ชาวไร่ · mobile (แผ่นการ์ด)Reveal, field by field, what he wants shown — the tonnes but not the baht, the CCS but not the plot, the fact that a payment arrived on the day the app said it would without the amount. Guards: redaction is default-on and per field, so nothing is disclosed by not noticing; a second tenant in the record is not named without a separate explicit reveal.เปิดทีละช่องว่าจะให้เห็นอะไร — ตันแต่ไม่เอาบาท ค่าความหวานแต่ไม่เอาแปลง หรือแค่ข้อเท็จจริงว่าเงินเข้าตรงวันที่แอปบอกไว้โดยไม่มีจำนวน เงื่อนไข: การปิดบังเปิดไว้ตั้งแต่ต้นและแยกรายช่อง จึงไม่มีอะไรหลุดเพราะเผลอ และคู่กรณีที่สองในระเบียนจะไม่ถูกระบุชื่อโดยไม่มีการเปิดเผยแยกอย่างชัดแจ้ง
3the grower · mobile (the card sheet)ชาวไร่ · mobile (แผ่นการ์ด)Send the card — a flat image carrying the wordmark, one short line and his code. Guards: the preview IS the second beat NFR-125 requires, and no confirmation dialog is added on top of it; the figures are baked in, so there is no link back into the account and no live data behind it. Fail: disclosing an amount by choice is his right; by inattention it cannot happen.ส่งการ์ด — ภาพแบนที่มีโลโก ข้อความสั้นหนึ่งบรรทัด และรหัสของเขา เงื่อนไข: การพรีวิวคือจังหวะที่สองที่ NFR-125 ต้องการ และห้ามเติม dialog ทับ ตัวเลขถูกฝังในภาพ จึงไม่มีลิงก์กลับเข้าบัญชีและไม่มีข้อมูลสดอยู่ข้างหลัง ล้มเหลว: การเปิดเผยจำนวนโดยเลือกเองเป็นสิทธิ์ของเขา แต่เกิดจากความเผลอไม่ได้

13. The arrival workflows — WF-132…WF-137 (PROP-070)13. workflow ของการมาถึง — WF-132…WF-137 (PROP-070)

Applied 2026-08-06 as spec v0.53.0. The spine is a sequence of screens; a workflow is a sequence of ACTS with an actor against each one. Six are owed, and they are sorted on the right axis: an invitation has two modes and the inviter’s type is not one of them (FR-433) — a quota farmer, a หัวตัน and a sugar mill invite identically. Full step contracts (actor · surface · action · pre · post · guards · events · fail) live in the graph at workflows.nodes. Drafted as WF-125…WF-130 and re-based at application, PROP-072 having taken WF-125…WF-129 and PROP-071 WF-130…WF-131.

apply 2026-08-06 เป็น spec v0.53.0 แกนคือลำดับของหน้าจอ ส่วน workflow คือลำดับของการกระทำที่มีผู้กระทำกำกับทุกขั้น หกตัวที่ต้องมี ถูกแบ่งบนแกนที่ถูกต้อง: คำเชิญมีสองแบบ และประเภทของผู้เชิญไม่ใช่ตัวแบ่ง (FR-433) สัญญาขั้นตอนเต็มอยู่ใน graph ที่ workflows.nodes ร่างไว้เป็น WF-125…WF-130 แล้วปรับเลขตอน apply

WorkflowworkflowTrigger and actorตัวกระตุ้นและผู้กระทำWhat it writes, and where it stopsเขียนอะไร และหยุดที่ไหน
WF-132Invitation carrying no record. Any inviter that may hold a relationship — a quota farmer, a หัวตัน, a mill — issues a NetworkInvitation to a prospect it keeps no record of.คำเชิญที่ไม่พ่วงระเบียน ผู้เชิญรายใดที่ถือความสัมพันธ์ได้ — หัวหน้าโควตา หัวตัน โรงงาน — ออก NetworkInvitation ถึงคนที่ตนไม่มีระเบียนอยู่NetworkInvitationIssued → the token is spent on the landing → the ordinary spine → a new account at rung 0 or 1 → the relationship is offered last, accepted or declined by him. No record is claimed, so registration_status never passes through virtual.NetworkInvitationIssued → โทเคนถูกใช้ที่หน้าเปิด → แกนปกติ → บัญชีใหม่ที่ขั้น 0 หรือ 1 → เสนอความสัมพันธ์เป็นขั้นสุดท้าย เขาตอบรับหรือปฏิเสธเอง ไม่มีการรับระเบียน registration_status จึงไม่เคยผ่าน virtual
WF-133Invitation carrying a record. The same inviters, where one already keeps a virtual record of the person. The invitation is issued with that record’s reference bound to it — the only difference from WF-132.คำเชิญที่พ่วงระเบียน ผู้เชิญกลุ่มเดียวกัน ในกรณีที่ถือระเบียนเสมือนของคนคนนั้นอยู่แล้ว คำเชิญถูกออกโดยผูกการอ้างอิงระเบียนนั้นไว้ — ต่างจาก WF-132 เพียงเท่านี้registration_status = invited → the spine → the claim is authorised on the enrolment credential, never on a code alone → VirtualFarmerConverted, stewardship ends. Two invariants: at most one live invitation per record, and conversion never rewrites history.registration_status = invited → แกน → การรับระเบียนอนุญาตด้วยปัจจัยลงทะเบียน ไม่ใช่ด้วยรหัสอย่างเดียว → VirtualFarmerConverted การดูแลสิ้นสุด ข้อคงที่สองข้อ: หนึ่งระเบียนมีคำเชิญที่ยังมีชีวิตได้ใบเดียว และการแปลงไม่เคยเขียนประวัติใหม่
WF-134Climb a rung. The grower, from the บัญชี section front, at any time after the sitting — never a banner, never a modal, never a demand.ไต่ขึ้นหนึ่งขั้น ชาวไร่ จากหน้าหมวดบัญชี เมื่อใดก็ได้หลังจบนัด ไม่ใช่แถบเตือน ไม่ใช่กล่องเด้ง และไม่ใช่การบังคับRung 0 → a verified PhoneNumber → rung 1 → an IdentityCheck at purpose = admission → rung 2. A liveness failure or a card already claimed costs the RUNG and never the account. Gated on the recorded FR-372 review.ขั้น 0 → PhoneNumber ที่ยืนยันแล้ว → ขั้น 1 → IdentityCheck ที่ purpose = admission → ขั้น 2 ใบหน้าไม่ผ่านหรือบัตรถูกใช้แล้ว เสียแค่ขั้น ไม่เสียบัญชี และยังมีด่านตาม FR-372
WF-135Assisted arrival and handover. A son, a หัวตัน or a mill clerk signs a grower up on his own handset (PROP-054 delegated mode, with the persistent named-party banner).การมาถึงโดยมีผู้ช่วย และการส่งมอบ ลูกชาย หัวตัน หรือเสมียนโรงงาน สมัครให้ชาวไร่บนเครื่องของตนเอง (โหมดทำแทนของ PROP-054 พร้อมแถบระบุชื่อผู้กระทำถาวร)Account, verified number and claim — then a full stop at the door. The end state is named on the helper’s screen, in the owner’s presence, with one action: send the owner a link. It is a state, not a defect; the defect would be nobody being told.สร้างบัญชี ยืนยันเบอร์ และรับระเบียน — แล้วหยุดที่ประตู สถานะสุดท้ายถูกระบุชื่อบนจอผู้ช่วยต่อหน้าเจ้าของ พร้อมการกระทำหนึ่งอย่าง: ส่งลิงก์ให้เจ้าของ มันเป็นสถานะ ไม่ใช่ข้อบกพร่อง สิ่งที่จะเป็นข้อบกพร่องคือไม่มีใครถูกบอก
WF-136Recover access. A grower who already arrived once and cannot get back in — a new number, a lost or wiped handset, a forgotten code. Actor: the grower, with staff only on the last route.กู้คืนการเข้าใช้ ชาวไร่ที่เคยมาถึงแล้วและกลับเข้าไม่ได้ — เปลี่ยนเบอร์ เครื่องหายหรือถูกล้าง ลืมรหัส ผู้กระทำคือชาวไร่ มีเจ้าหน้าที่เฉพาะเส้นทางสุดท้ายRecoveryCompleted · DeviceEnrolled on the handset in his hand · DeviceEnrolmentReversed on the old one. It never returns a credential we do not hold and never grants a rung the account did not have.RecoveryCompleted · DeviceEnrolled บนเครื่องที่อยู่ในมือ · DeviceEnrolmentReversed บนเครื่องเดิม ไม่เคยคืนปัจจัยที่เราไม่ได้ถือ และไม่เคยมอบขั้นที่บัญชีไม่เคยมี
WF-137Bind and unbind a handset. The account holder, on the handset in his hand — never a helper. The whole life of a binding, from the choice through the presentation that writes it to the day it ends.ผูกและเลิกผูกเครื่อง เจ้าของบัญชี บนเครื่องที่อยู่ในมือ ไม่ใช่ผู้ช่วย ตลอดวงจรชีวิตของการผูกเครื่อง ตั้งแต่การเลือก ผ่านการแสดงตัวที่เขียนมันขึ้น จนถึงวันที่มันจบA Passkey or DeviceCredential written only when the platform’s sheet returns or the code entry completes. A sign-out leaves the binding standing; only a deliberate removal, an uninstall, a wipe or a credential-moving recovery reverses it.เขียน Passkey หรือ DeviceCredential เฉพาะเมื่อแผ่นของแพลตฟอร์มตอบกลับหรือการกรอกรหัสเสร็จ การออกจากระบบไม่ถอนการผูก มีแต่การถอดโดยเจตนา การถอนติดตั้ง การล้างเครื่อง หรือการกู้คืนที่ย้ายปัจจัยลงทะเบียน

Two amended workflows sit beside these six. WF-01 step 5 and WF-117 step 4 both terminated in the claim-by-phone-verification door that PROP-068 retired at v0.43.0 (FR-377). Both now read the same way: a correct OTP authorises the claim and mints no session; an entry factor commits it. No history is handed to a session nobody can return to (FR-418).

มี workflow ที่ถูกแก้สองตัวอยู่ข้างหกตัวนี้ ขั้น 5 ของ WF-01 และขั้น 4 ของ WF-117 เคยไปจบที่ประตูการรับด้วยเบอร์ซึ่ง PROP-068 ปลดไปแล้วที่ v0.43.0 ตอนนี้ทั้งคู่อ่านเหมือนกัน: OTP ที่ถูกต้องอนุญาตการรับและไม่สร้างเซสชัน ปัจจัยทางเข้าทำให้สำเร็จ (FR-418)

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

15. Revision history15. ประวัติการแก้ไข

RevฉบับDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-08Initial version — PROP-005 (FED, spec v6.0): WF-24 (unified onboarding), WF-25 (capacity extension), WF-26 (session & tenant switching), WF-27 (platform view-as), the six-layer resolution at sign-in, the four cross-tenant mechanisms (X1–X4) and federation exception paths.ฉบับแรก — PROP-005 (FED, spec (สเปก) v6.0): WF-24 (การขึ้นทะเบียนแบบรวม) WF-25 (การเพิ่ม capacity) WF-26 (session และการสลับ tenant) WF-27 (view-as ของ platform) การตัดสินหกชั้นตอนลงชื่อ กลไกข้าม tenant สี่อย่าง (X1–X4) และเส้นทางกรณียกเว้นของ federation
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.3.02026-07-25PROP-026 accepted & applied (spec v0.25.0, D-3): Section 6 resolution amended to run per active department (account grants ∪ directory-group grants, department-scoped, deny-overrides) and a new Section 9 records the federation-side obligations of WF-79 (directory delegation) and WF-80 (department creation, backfill & re-parenting). Page rev re-synced with the graph document registry (header previously showed 0.1.0).PROP-026 รับและ apply (spec v0.25.0, D-3): แก้การตัดสินสิทธิ์ในข้อ 6 ให้ทำรายหน่วยงานที่ใช้งาน (grant ของบัญชี ∪ grant ของกลุ่มไดเรกทอรี บีบตามหน่วยงาน การปฏิเสธชนะ) และเพิ่มข้อ 9 บันทึกภาระฝั่ง federation ของ WF-79 (การมอบอำนาจไดเรกทอรี) และ WF-80 (การสร้างหน่วยงาน การเติมข้อมูล และการย้ายราก) ปรับ rev ของหน้าให้ตรงกับ registry เอกสารใน graph (เดิมหัวกระดาษแสดง 0.1.0)
0.4.02026-07-30PROP-040 approved & applied (spec v0.41.0): new Section 10 — permission workflows: WF-113 compose a position and appoint a person (a shift is not a permission, D-5) · WF-114 account override with reason, expiry, four-eyes and the standing access review · WF-115 refused-then-escalated, the one-tap hand-off with a frozen routing set decided in the approver’s own name (D-8) · WF-116 the one-way individual → tenant upgrade behind an acknowledged notice (D-11). Sections 10/11 renumbered to 11/12.PROP-040 อนุมัติและ apply (spec v0.41.0): เพิ่มข้อ 10 — workflow ของสิทธิ์: WF-113 ประกอบตำแหน่งและแต่งตั้งบุคคล (กะไม่ใช่สิทธิ์ D-5) · WF-114 การลบล้างรายบัญชีพร้อมเหตุผล วันหมดอายุ สองผู้อนุมัติ และการทบทวนสิทธิ์ประจำ · WF-115 ถูกปฏิเสธแล้วส่งต่อ กดครั้งเดียว ชุดผู้รับตรึงไว้ ตัดสินในชื่อผู้อนุมัติเอง (D-8) · WF-116 การยกระดับบุคคล → tenant ทางเดียวหลังการรับทราบ (D-11) เลขข้อ 10/11 เปลี่ยนเป็น 11/12
0.5.02026-07-31PROP-067 approved & applied — spec v0.42.0. New Section 9 — ways in: six walks (WF-117 bind a provider and sign up with one · WF-118 create a passkey · WF-119 recover when a way in is lost · WF-120 the number is gone · WF-121 add, promote or remove a number · WF-122 prove who you are with the national ID card and a live check). Two rules cut across all six: binding is a personal act, recorded and notified (FR-367), and no step reveals whether an identifier is registered (NFR-137). WF-122 carries the D-13 legal-review gate.PROP-067 อนุมัติและ apply — spec v0.42.0. เพิ่มข้อ 9 — ทางเข้า: หกเส้นทาง (WF-117 ผูกผู้ให้บริการและสมัครด้วยผู้ให้บริการ · WF-118 สร้าง passkey · WF-119 กู้คืนเมื่อเสียทางเข้า · WF-120 เบอร์หายไป · WF-121 เพิ่ม เลื่อน หรือถอนเบอร์ · WF-122 พิสูจน์ตัวตนด้วยบัตรประชาชนและการตรวจสด) สองกฎพาดผ่านทั้งหก: การผูกเป็นการกระทำส่วนบุคคล มีบันทึกและการแจ้ง (FR-367) และไม่มีขั้นตอนใดเปิดเผยว่าตัวระบุลงทะเบียนไว้หรือไม่ (NFR-137) WF-122 มีด่านการทบทวนกฎหมายตาม D-13
0.6.02026-07-31PROP-068 approved & applied — spec v0.43.0. Section 9 extended by two walks and two amendments: WF-123 a new phone (path A an existing way in · path B OTP-authorised enrolment under published governance · path C recovery) and WF-124 a challenge is raised and answered; WF-117 gains its closing beat (the sitting does not finish until the account holds an entry factor) and WF-120’s first step is restated as a published recovery route. A third cross-cutting rule is stated at the head of the section: a correct one-time code never mints a session (FR-377).PROP-068 อนุมัติและ apply — spec v0.43.0. ขยายข้อ 9 ด้วยสองเส้นทางและสองการแก้: WF-123 โทรศัพท์เครื่องใหม่ (ทาง ก ทางเข้าเดิม · ทาง ข การลงทะเบียนด้วย OTP ภายใต้การกำกับที่ประกาศไว้ · ทาง ค การกู้คืน) และ WF-124 ยกด่านและตอบด่าน; WF-117 เพิ่มจังหวะปิดท้าย และขั้นแรกของ WF-120 เรียบเรียงใหม่เป็นทางกู้คืนที่ประกาศไว้ พร้อมระบุกฎที่พาดผ่านข้อที่สามไว้ต้นข้อ: รหัสครั้งเดียวที่ถูกต้องไม่สร้างเซสชัน (FR-377)
0.7.02026-08-03PROP-074 approved & applied — spec v0.45.0. WF-24/WF-01 steps 1–3 rewritten: sign-up creates a Person and nothing else (FR-391), and the first tenant-held capacity request founds the tenant with the requester as its owner (FR-392, new event TenantFounded). Verification now evaluates the capacity's declared requires list instead of a free-text sentence (FR-393). Tenant birth has one uniform cause; WF-116's pre-condition is re-worded for the deliberate founding.PROP-074 อนุมัติและ apply แล้ว — spec v0.45.0 ขั้น 1–3 ของ WF-24/WF-01 ถูกเขียนใหม่: การสมัครสร้าง Person เท่านั้น (FR-391) และคำขอ capacity ของ tenant ครั้งแรกก่อตั้ง tenant (FR-392 เหตุการณ์ TenantFounded)
0.8.02026-08-03PROP-075 approved & applied — spec v0.46.0. WF-116 is re-specified: step 3 verifies the evidence named by the department’s legalForms row (a DBD extract, a cooperative certificate, or the establishing statute where the form has no registrar), step 4 writes a Department, its legal_form and a legal_registration qualification, and emits DepartmentRegistered. The FIRST registration classifies the tenant’s ROOT department rather than adding a child beneath it. Screens and the plain-language one-way acknowledgement are unchanged (NFR-125) — but the workflow MAY NOW RUN AGAIN for a second department, which the retired one-way enum transition made structurally impossible (R-NOUPGRADE).PROP-075 อนุมัติและ apply — spec v0.46.0 ระบุ WF-116 ใหม่ โดยหน้าจอและการรับทราบไม่เปลี่ยน แต่ workflow รันซ้ำสำหรับหน่วยงานที่สองได้
0.9.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.9.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.02026-08-04PROP-072 approved & applied — spec v0.50.0. New Section 11: five workflows for member admission and removal — WF-125 invite a person into a position · WF-126 accept as a new person · WF-127 accept as an existing person · WF-128 remove (the eight-consequence contract) · WF-129 re-admit. Ids re-based at application: the draft carried candidate numbers from an assumed sequence nine ahead of the register (they remain readable in the proposal, which is where a candidate id belongs); the applied maximum is WF-124, so these take WF-125…WF-129. Section 2 gains the load-bearing sentence: accepting a member invitation is a BRANCH of WF-24 and never a seventh onboarding — step 2 already read "or accept an invitation to join one", and WF-126/WF-127 are that clause drawn in full, so the single-entry claim this document makes stays true (PROP-072 L-8). WF-128 step 3 carries the client direction that the ending records who, when AND the reason (OQ-10), and step 2 carries the 72-hour window as a published constant rather than a server setting (OQ-4). Related documents and Revision history renumbered 11 → 12 and 12 → 13.PROP-072 อนุมัติและ apply แล้ว — spec v0.50.0 ข้อ 11 ใหม่: workflow ห้าตัวสำหรับการรับสมาชิกและการถอดออก — WF-125 เชิญคนเข้าสู่ตำแหน่ง · WF-126 ตอบรับในฐานะคนใหม่ · WF-127 ตอบรับในฐานะคนที่มีบัญชีแล้ว · WF-128 ถอดออก (สัญญาแปดข้อ) · WF-129 รับกลับ เลข id ถูกตั้งใหม่ตอน apply: ร่างใช้เลขที่สมมติไว้ล่วงหน้าเก้าเลขจากทะเบียนจริง (ยังอ่านได้ในตัวข้อเสนอ ซึ่งเป็นที่ที่ id ที่ยังเสนออยู่ควรอยู่) ค่าสูงสุดที่ apply แล้วคือ WF-124 ชุดนี้จึงใช้ WF-125…WF-129 ข้อ 2 ได้ประโยคที่เป็นสาระ: การตอบรับคำเชิญสมาชิกเป็นกิ่งของ WF-24 ไม่ใช่การขึ้นทะเบียนชุดที่เจ็ด — ขั้นที่ 2 เขียนไว้แล้วว่า "หรือรับคำเชิญเข้าร่วม" และ WF-126/WF-127 คือประโยคนั้นที่วาดออกมาเต็ม ข้ออ้างเรื่องทางเข้าเดียวของเอกสารนี้จึงยังเป็นจริง (PROP-072 L-8) WF-128 ขั้นที่ 3 พาคำสั่งลูกค้าว่าการจบบันทึกใคร เมื่อไร และเหตุผล (OQ-10) และขั้นที่ 2 พาช่วง 72 ชั่วโมงในฐานะค่าที่ประกาศไว้ ไม่ใช่การตั้งค่าเซิร์ฟเวอร์ (OQ-4) เอกสารที่เกี่ยวข้องและประวัติการแก้ไขเปลี่ยนเลขจาก 11 → 12 และ 12 → 13
0.11.02026-08-04PROP-071 approved & applied — spec v0.52.0. New Section 12: two workflows, WF-130 refer and attribute (six steps, ending in a code the holder may pause and the platform may revoke) and WF-131 generate and share a proof card (three steps, redaction default-on per field). Neither admits anybody: step 3 of WF-130 is the ORDINARY sign-up of WF-24 Route A, unchanged. Section 7 gains the sentence that keeps the count at four — a referral is not a fifth cross-tenant mechanism, because it discloses nothing about anybody to anybody, and the reader who files it under X2 has made exactly the error FR-409 exists to prevent. Sections 12 and 13 renumbered to 13 and 14.PROP-071 อนุมัติและ apply — spec v0.52.0 ข้อ 12 ใหม่: workflow สองตัว WF-130 บอกต่อและระบุที่มา (หกขั้น) และ WF-131 สร้างและแชร์การ์ดหลักฐาน (สามขั้น) ไม่มีตัวใดรับใครเข้าอะไร — ขั้น 3 ของ WF-130 คือหน้าสมัครตามปกติของ WF-24 เส้นทาง A ที่ไม่เปลี่ยน ข้อ 7 ได้ประโยคที่ทำให้จำนวนกลไกยังเป็นสี่ — การบอกต่อไม่ใช่กลไกข้ามคู่สัญญาอันที่ห้า เพราะไม่เปิดเผยอะไรเกี่ยวกับใครให้ใครเลย ข้อ 12 และ 13 เดิมเปลี่ยนเลขเป็น 13 และ 14
0.12.02026-08-06PROP-070 approved & applied — spec v0.53.0. Six new workflow contracts — WF-132 invitation carrying no record · WF-133 invitation carrying a record · WF-134 climb a rung · WF-135 assisted arrival and handover · WF-136 recover access · WF-137 bind and unbind a handset (drafted WF-125…WF-130 and re-based at application). WF-01 step 5 and WF-117 step 4 amended: the OTP AUTHORISES a claim and an entry factor COMMITS it (F-1).PROP-070 อนุมัติและ apply — spec v0.53.0 สัญญา workflow ใหม่หกตัว — WF-132 คำเชิญที่ไม่พ่วงระเบียน · WF-133 คำเชิญที่พ่วงระเบียน · WF-134 ไต่ขึ้นหนึ่งขั้น · WF-135 การมาถึงโดยมีผู้ช่วยและการส่งมอบ · WF-136 กู้คืนการเข้าใช้ · WF-137 ผูกและเลิกผูกเครื่อง (ร่างเป็น WF-125…WF-130 แล้วปรับเลขตอน apply) และแก้ WF-01 ขั้น 5 กับ WF-117 ขั้น 4: OTP อนุญาตการรับระเบียน ปัจจัยทางเข้าเป็นตัวทำให้สำเร็จ (F-1)