Cane Agency · Specification · Platform infrastructureสถาบันอ้อย · เอกสารข้อกำหนด · โครงสร้างพื้นฐาน
This document defines the federation bounded context — the aggregates and invariants that guarantee "identity is scarce, roles are plentiful", the events it publishes, and the ubiquitous language of people, tenants and capacities. It mirrors SPEC-DDD and graph/spec-graph.json. Federation is the sole identity writer; every other context consumes the token claim contract (SPEC-PRD-FED Section 7) through shared, DI-free, never-throw decoders — never by querying this store. Its foundation is wangkanai/federation (OAuth 2.1 / OIDC) over ASP.NET Core Identity — extended, never replaced (Section 6).
เอกสารนี้นิยามบริบท federation — แอกกริเกตและกฎคงที่ที่รับประกันว่า "อัตลักษณ์มีน้อย บทบาทมีได้มาก" เหตุการณ์ที่มันเผยแพร่ และภาษากลางของบุคคล tenant และ capacity สะท้อน SPEC-DDD และ graph/spec-graph.json federation เป็นผู้เขียนอัตลักษณ์เพียงผู้เดียว; บริบทอื่นทุกบริบทบริโภคสัญญา claim (SPEC-PRD-FED ข้อ 7) ผ่านตัวถอดรหัสร่วมที่ไม่มี DI ไม่โยน error — ไม่ใช่โดยสอบถามคลังนี้ รากฐานคือ wangkanai/federation (OAuth 2.1 / OIDC) บน ASP.NET Core Identity — ต่อเติม ไม่แทนที่ (ข้อ 6)
| Contextบริบท | Ownsเป็นเจ้าของ | Responsibility & relationshipความรับผิดชอบและความสัมพันธ์ |
|---|---|---|
| Federation สหพันธ์อัตลักษณ์ | Person · Tenant · TenantCapacity · Membership · SurfaceRoleGrant · PermissionCatalog · RolePermission · ViewAsSession (+ domain profiles Farmer · Mill · FinancialInstitution · Contractor via tenant_id)(+ โปรไฟล์ capacity Farmer · Mill · FinancialInstitution · Contractor ผ่าน tenant_id) | Absorbs the former network_identity. One person, one sign-in (phone-first OTP + external OIDC); a tenant (a container, never a legal body) holds a capacity set; memberships join people to tenants; SurfaceRoleGrant is one-role-per-surface-per-membership. The account surface is the sole identity writer; every other context consumes the token contract through shared decoders. Keeps the virtual-farmer lifecycle (now person-claiming, WF-01). Network RELATIONS stay with their departments as X2.รวม network_identity เดิม หนึ่งบุคคล หนึ่งการลงชื่อ (OTP + OIDC ภายนอก); tenant (a container, never a legal body) ถือชุด capacity; สมาชิกภาพเชื่อมคนกับ tenant; SurfaceRoleGrant คือหนึ่งบทบาทต่อช่องทางต่อสมาชิกภาพ ช่องทาง account เป็นผู้เขียนอัตลักษณ์เพียงผู้เดียว; บริบทอื่นบริโภคสัญญา token (โทเคน) ผ่านตัวถอดรหัสร่วม คงวงจร virtual farmer (ตอนนี้เป็นการอ้างสิทธิ์ระดับบุคคล, WF-01) RELATION เครือข่ายคงอยู่กับหน่วยงานของตนเป็น X2 |
v0.42.0 (PROP-067): the Person aggregate absorbs the person’s ways in — PhoneNumber · ExternalIdentity · Passkey — because that is where their invariants belong: exactly one active primary number, uniqueness of an active e164 and of (provider, provider_subject) platform-wide, and the refusal to remove the last remaining way in. Three aggregates join the context: AuthSession (a session is its own boundary; wholesale revocation runs inside the transaction that caused it), AuthEvent (append-only, written in the act’s own transaction — a binding without its event is a failed binding) and IdentityCheck (identity proofing, whose biometric evidence has a lifecycle that ends while the result row survives). The invariant that governs all of them is convention A-75 — a credential is not an identity: no way in may raise id_verified_level or satisfy a capacity’s required_level, and no IdentityCheck is a way in.
v0.43.0 (PROP-068): the Person boundary gains DeviceCredential — the third entry factor — and loses the number from the entry set. The invariant that moves is the last-door test: it is now computed over passkeys, provider accounts and device keys, and a verified number is not counted for it (FR-368, FR-377). The asymmetry is deliberate and belongs inside the boundary: a device key counts for the last door and never satisfies the different-kind offer, because two device keys on two handsets are one basket (FR-369, D-8). The governing convention is the sibling of A-75: A-76 — a channel is not a credential. A-75 stops a credential claiming to be an identity; A-76 stops an address claiming to be a credential, which is the settled reading of the client’s direction that the phone number is a validation and not a way in.
v0.43.0 (PROP-068): ขอบเขต Person เพิ่ม DeviceCredential — ปัจจัยที่ให้เข้าตัวที่สาม — และถอนเบอร์ออกจากชุดที่ให้เข้า กฎที่ขยับคือการทดสอบประตูสุดท้าย: คิดจาก passkey บัญชีผู้ให้บริการ และกุญแจในเครื่อง โดยไม่นับเบอร์ที่ยืนยันแล้ว (FR-368, FR-377) ความไม่สมมาตรเป็นไปโดยเจตนาและอยู่ในขอบเขตนี้: กุญแจในเครื่องนับสำหรับประตูสุดท้าย และไม่ผ่านการเสนอทางเข้าต่างชนิด เพราะกุญแจในเครื่องสองอันบนสองเครื่องคือตะกร้าเดียว (FR-369, D-8) ธรรมเนียมที่คุมคือข้อพี่น้องของ A-75: A-76 — ช่องทางไม่ใช่ credential A-75 ห้าม credential อ้างว่าเป็นตัวตน A-76 ห้ามที่อยู่อ้างว่าเป็น credential ซึ่งคือการอ่านคำสั่งลูกค้าที่ว่าเบอร์โทรเป็นการยืนยัน ไม่ใช่ทางเข้า
v0.42.0 (PROP-067): aggregate Person รับทางเข้าของบุคคลเข้ามา — PhoneNumber · ExternalIdentity · Passkey — เพราะกฎคงที่ของสิ่งเหล่านี้อยู่ที่นั่น: เบอร์หลักที่ใช้งานอยู่หนึ่งเบอร์ ความไม่ซ้ำของ e164 ที่ใช้งานอยู่และของ (provider, provider_subject) ทั้งแพลตฟอร์ม และการปฏิเสธถอนทางเข้าสุดท้าย มี aggregate ใหม่สามตัว: AuthSession (เซสชันเป็นขอบเขตของตัวเอง การยกเลิกทั้งชุดทำใน transaction ที่เป็นเหตุ) AuthEvent (เพิ่มเท่านั้น เขียนใน transaction ของการกระทำ — การผูกที่ไม่มีเหตุการณ์คือการผูกที่ล้มเหลว) และ IdentityCheck (การพิสูจน์ตัวตน ที่หลักฐานชีวมิติมีวงจรชีวิตซึ่งจบก่อนแถวผลลัพธ์) กฎที่คุมทั้งหมดคือธรรมเนียม A-75 — credential ไม่ใช่ตัวตน: ทางเข้ายก id_verified_level ไม่ได้ ทำให้ผ่าน required_level ไม่ได้ และ IdentityCheck ไม่ใช่ทางเข้า
v0.25.0 (PROP-026 D-3/D-4): a sixth aggregate joins the context — fed-directory (Department · DirectoryGroup → DirectoryGroupMember · DirectoryGrant) with four invariants: the tree has exactly one root and NO TIER CAP (v0.47.0, PROP-073, carrying R-DEPTH/FR-395: unbounded in the model, an operational guardrail of 8 levels, a refusal that states the depth and the offending parent) — any department may hold children; a grant applies only to the department paths it names, the one built-in inherited exception being the root administrators group; an explicit deny at any level beats every allow; and a key flagged department_delegable = false cannot be granted across departments at all. Section 12 of SPEC-PRD-FED carries the normative contract.
v0.25.0 (PROP-026 D-3/D-4): บริบทเพิ่ม aggregate ที่หก — fed-directory (Department · DirectoryGroup → DirectoryGroupMember · DirectoryGrant) พร้อมกฎคงที่สี่ข้อ: ต้นไม้คือราก → ชั้นเสริม → ไซต์ สูงสุดสามชั้น และหน่วยงานประจำสถานที่ไม่มีลูก; grant มีผลเฉพาะ department path ที่ระบุ ยกเว้นกลุ่มผู้ดูแลระดับรากที่สืบทอดในตัว; การปฏิเสธที่ระบุชัดในชั้นใดก็ชนะการอนุญาตทั้งหมด; และกุญแจที่ department_delegable = false มอบข้ามหน่วยงานไม่ได้เลย สัญญาเชิงบรรทัดฐานอยู่ในข้อ 12 ของ SPEC-PRD-FED
| Aggregate (root)แอกกริเกต (ราก) | Invariantsกฎคงที่ |
|---|---|
| Person | v0.43.0 (PROP-068): one ACTIVE number = one person platform-wide (NFR-14) — a REACHABILITY constraint, not an entry one; the OTP is no longer a factor that admits anyone (FR-377, A-76), and the person’s entry factors are his passkeys, his provider accounts and the keys on his own devices, at least one of which must survive every removal (FR-368). Never deleted while memberships exist — PDPA erasure is by anonymization. A capacity's grant is refused unless id_verified_level meets the capacity minimum. Duplicate humans merge only on a verified phone, consent-confirmed and logged (FR-69).v0.43.0 (PROP-068): หนึ่งเบอร์ที่ active = หนึ่งบุคคลทั้ง platform (NFR-14) — เป็นข้อบังคับเรื่องการติดต่อได้ ไม่ใช่ทางเข้า; OTP ไม่เป็นปัจจัยที่ให้ใครเข้าระบบอีกต่อไป (FR-377, A-76) และปัจจัยทางเข้าของบุคคลคือ passkey บัญชีผู้ให้บริการ และกุญแจในเครื่องของตนเอง ซึ่งต้องเหลืออยู่อย่างน้อยหนึ่งอย่างทุกครั้งที่ถอนออก (FR-368) ไม่ลบขณะยังมีสมาชิกภาพ — การลบตาม PDPA ทำโดยลบการระบุตัวตน การให้ capacity ถูกปฏิเสธหาก id_verified_level ไม่ถึงขั้นต่ำของ capacity มนุษย์ที่ซ้ำรวมกันได้เฉพาะบนเบอร์ที่ยืนยัน ยืนยันความยินยอมและบันทึก (FR-69) |
| Tenant (owns TenantCapacity) | An individual tenant belongs to exactly one person (its self-membership, its owner); an organization tenant is one record per legal org. Capacity set is append-only and unique per (tenant_id, capacity). Exclusivity (NFR-16): an active bank or government capacity coexists with no other active capacity — enforced at grant and re-checked at every compile. Revoking a capacity suspends its surfaces' grants; it never deletes history.tenant individual สังกัดบุคคลเดียว (self-membership เป็น owner); tenant organization หนึ่งเรกคอร์ดต่อองค์กรตามกฎหมาย ชุด capacity ต่อท้ายและไม่ซ้ำต่อ (tenant_id, capacity) เอกสิทธิ์ (NFR-16): bank หรือ government ที่ active ร่วมกับ capacity อื่นที่ active ไม่ได้ — บังคับตอนให้และตรวจซ้ำทุกครั้งที่คอมไพล์ การเพิกถอน capacity ระงับ grant ของช่องทางนั้น ไม่ลบประวัติ v0.45.0 (PROP-074) — the tenant exists BECAUSE of a capacity: the first tenant-held capacity request FOUNDS it, writing the requester's Membership with is_self in the same transaction (FR-392). tenant_id is the one owning key and nothing else ever owns (NFR-141). Composition is governed by CompositionRule — first-class, three rules compiling the pairwise matrix — evaluated at grant, never in the permission layer (P-9). |
| Membership (owns SurfaceRoleGrant) | Joins one person to one tenant; is_self is the individual tenant's owner. Exactly one role per surface per membership (UNIQUE) — no role-union mechanic anywhere. Grants live only on entitled surfaces. Leaving a tenant suspends its grants and never touches the person's other memberships.เชื่อมบุคคลหนึ่งกับ tenant หนึ่ง; is_self คือ owner ของ tenant individual หนึ่งบทบาทต่อช่องทางต่อสมาชิกภาพ (UNIQUE) — ไม่มีกลไกรวมบทบาทที่ใด grant อยู่เฉพาะช่องทางที่มีสิทธิ์ การออกจาก tenant ระงับ grant และไม่กระทบสมาชิกภาพอื่นของบุคคล |
| RolePermission | The tenant-authored matrix cell; the owner role is fixed-full and locked in every matrix. A scoped row must be equal-or-narrower than the tenant-wide default (FR-65) — scope narrows, never widens. Tenants compose only from the platform catalog; they never invent permissions.เซลล์ตารางที่ tenant เขียน; บทบาท owner เต็มถาวรและล็อกในทุกตาราง แถวที่จำกัดต้องเท่าหรือแคบกว่าค่าเริ่มต้นทั้ง tenant (FR-65) — ขอบเขตแคบลง ไม่ขยาย tenant ประกอบจาก catalog (แคตตาล็อก) ของ platform เท่านั้น ไม่คิด permission เอง |
| ViewAsSession | The only way platform support acts inside a tenant (X4): permission-gated start, a persistent banner, dual logging, read-only by default. Append-only; write exceptions are explicit, permission-named and deferred (Q5). Every action attributed to acting tenant + acting person (FR-67).ทางเดียวที่ทีมสนับสนุนทำงานใน tenant (X4): เริ่มต้องมี permission แบนเนอร์ค้าง บันทึกสองชั้น อ่านอย่างเดียวโดยปริยาย ต่อท้าย; ข้อยกเว้นการเขียนต้องระบุชัด ตั้งชื่อ permission และเลื่อนออกไป (Q5) ทุกการกระทำระบุที่มาถึง tenant + บุคคลที่กระทำ (FR-67) |
| PersonCapacity | v0.45.0 (PROP-074) — the person-held capacity cell of A-78. Zero members at v1 (R-EMPTY): defined with its admission test and no rows. Confers evidence only — it owns nothing, isolates nothing and grants NO access; it reaches the permission model by exactly one route, as a requirement of a tenant capacity (FR-393). Always compatible: no matrix, no exclusivity.v0.45.0 (PROP-074) — ช่อง capacity ที่บุคคลถือ v1 ไม่มีสมาชิก ให้เพียงหลักฐาน ไม่ให้สิทธิ์เข้าถึง เข้าถึงแบบจำลองสิทธิ์ทางเดียวคือเป็นข้อเรียกร้องของ capacity (FR-393) |
| TenantQualification / PersonQualification | v0.45.0 (PROP-074) — externally-issued credentials, registered and verified here and never granted here (A-79). Status follows the ISSUER: a licence revoked by the Bank of Thailand is revoked here the moment we learn of it, and no platform act restores it. Competence, authority and standing are three things — a qualification is competence, a capacity is standing, and authority to act HERE is Membership + SurfaceRoleGrant; the model never lets one be read as another.v0.45.0 (PROP-074) — ตราสารที่ออกจากภายนอก ลงทะเบียนและตรวจสอบที่นี่ ไม่เคยให้ที่นี่ (A-79) สถานะตามผู้ออก ความสามารถ อำนาจ และสถานะเป็นสามสิ่ง |
| MemberInvitation | v0.50.0 (PROP-072) — an offer, not a membership. It names a tenant, ONE department, a position and one contact target, and at most one is open per (tenant, target). It is issued by a MEMBERSHIP, so revoking the issuer's own membership never invalidates what he issued. Acceptance is the ONE act that crosses into the Tenant boundary, and it is atomic: Membership + SurfaceRoleGrants + permission-group membership, or nothing (FR-398) — there is no state in which a person is a member of a tenant with no position. Nothing about the invited target is readable from the row: the target is hashed, and a decline records the fact and nothing else (NFR-144).v0.50.0 (PROP-072) — เป็นข้อเสนอ ไม่ใช่สมาชิกภาพ ระบุ tenant หน่วยงานหนึ่งแห่ง ตำแหน่ง และปลายทางติดต่อหนึ่งแห่ง และมีคำเชิญค้างได้หนึ่งใบต่อ (tenant, ปลายทาง) ออกโดยสมาชิกภาพ การเพิกถอนสมาชิกภาพของผู้ออกจึงไม่ทำให้สิ่งที่เขาออกไว้เป็นโมฆะ การตอบรับเป็นการกระทำเดียวที่ข้ามเข้าไปในขอบเขต Tenant และเป็น atomic: Membership + SurfaceRoleGrant + การเป็นสมาชิกกลุ่มสิทธิ์ หรือไม่เขียนเลย (FR-398) — ไม่มีสถานะที่คนเป็นสมาชิกของ tenant โดยไม่มีตำแหน่ง ไม่มีอะไรเกี่ยวกับปลายทางที่อ่านได้จากแถวนี้: ปลายทางถูกแฮช และการปฏิเสธบันทึกเพียงข้อเท็จจริง (NFR-144) |
| Referral / ReferralCredit | v0.52.0 (PROP-071) — the fourth admission of A-91, and the only one that admits nothing. A Referral is one durable, multi-use, untargeted eight-character code held by a person in his farming capacity; it carries one fact — who said our name first — and no record, debt, stewardship, membership, capacity or place in anybody's network (FR-409). A ReferralCredit is the arriving grower's own confirmation of that fact, one row per referred person, and it is never rendered to the holder of the code (FR-411). A referral is not a cross-tenant mechanism: it discloses nothing about anybody to anybody.v0.52.0 (PROP-071) — สิ่งรับเข้าอันที่สี่ของ A-91 และเป็นอันเดียวที่ไม่รับอะไรเข้าเลย Referral คือรหัสถาวรแปดตัวอักษร ใช้ได้หลายครั้ง ไม่มีปลายทาง ถือโดยคนในฐานะผู้ปลูก พาข้อเท็จจริงเดียวคือใครเอ่ยชื่อเราก่อน และไม่พาระเบียน หนี้ การดูแล สมาชิกภาพ capacity หรือตำแหน่งในเครือข่ายของใคร (FR-409) ReferralCredit คือการยืนยันของผู้มาถึงเอง หนึ่งแถวต่อหนึ่งคน และไม่เคยแสดงให้ผู้ถือรหัสเห็น (FR-411) การบอกต่อไม่ใช่กลไกข้ามคู่สัญญา เพราะไม่เปิดเผยอะไรเกี่ยวกับใครให้ใครเลย |
The normative consistency boundaries of this perspective's home context (federation), rendered from graph dataModeling.aggregates (v0.4.0, PROP-018). The prose invariants above stay explanatory; the rules here are the transactional contract an implementation must enforce. Column-level persistence for every member entity lives in the sibling SPEC-ERD family (see the Data column).
ขอบเขตความสอดคล้องเชิงบรรทัดฐานของ context ที่ home อยู่มุมมองนี้ (federation) render จาก dataModeling.aggregates ใน graph (v0.4.0, PROP-018) คำอธิบาย invariant ข้างบนคงไว้เพื่อความเข้าใจ; กติกาในส่วนนี้คือสัญญาเชิง transaction ที่ implementation ต้องบังคับใช้ ส่วน persistence ระดับ column ของ entity สมาชิกทุกตัวอยู่ในตระกูล SPEC-ERD พี่น้อง (ดู column ข้อมูล)
| Aggregate root | Membersสมาชิก | Context | Transaction ruleกติกา transaction | Dataข้อมูล |
|---|---|---|---|---|
| Person | Person | federation | Identity facts (phone, verification level) change in single-row transactions; claiming a virtual tenant's person keeps person_id and every reference intact (WF-01).ข้อเท็จจริงด้านอัตลักษณ์ (โทรศัพท์ ระดับการยืนยัน) เปลี่ยนใน transaction รายแถว; การ claim person ของ tenant ที่เป็น virtual คง person_id และการอ้างอิงทั้งหมด (WF-01) | ERD-FED |
| Tenant | Tenant · TenantCapacity · Membership · SurfaceRoleGrant · RolePermission | federation | Capacity grants, memberships and role grants commit atomically with the tenant; capacity exclusivity (NFR-16) and one-role-per-surface-per-membership hold inside this boundary. Written only via the account surface — federation is the sole identity writer.การให้ capacity, membership และ role commit พร้อม tenant ใน transaction เดียว; ความ exclusive ของ capacity (NFR-16) และหนึ่ง role ต่อ surface ต่อ membership ถูกยึดในขอบเขตนี้ เขียนได้ทาง surface account เท่านั้น — federation เป็นผู้เขียนอัตลักษณ์รายเดียว | ERD-FED |
| PersonCapacity | PersonCapacity | federation | v0.45.0 (PROP-074) — its own single-row boundary on the person; it never commits inside the Tenant boundary, which is what keeps the evidence-only rule structurally true. Zero rows at v1.v0.45.0 (PROP-074) — ขอบเขตรายแถวของตัวเองบนบุคคล ไม่ commit ภายในขอบเขต Tenant | ERD-FED |
| TenantQualification | TenantQualification | federation | v0.45.0 (PROP-074) — single-row boundary; status follows the issuer, not a platform transaction. The consequence (suspending every capacity that requires it) travels as a domain event, never as a shared transaction.v0.45.0 (PROP-074) — ขอบเขตรายแถว สถานะตามผู้ออก ผลที่ตามมาเดินทางเป็น domain event | ERD-FED |
| PersonQualification | PersonQualification | federation | v0.45.0 (PROP-074) — the same boundary on the person side; one member at v1 (the national ID credential).v0.45.0 (PROP-074) — ขอบเขตเดียวกันฝั่งบุคคล v1 มีสมาชิกเดียว | ERD-FED |
| MemberInvitation | MemberInvitation | federation | v0.50.0 (PROP-072) — its own boundary, deliberately OUTSIDE the Tenant root: an invitation is issued, revoked and expired without touching the tenant aggregate, and ACCEPTANCE is the one act that crosses — one transaction writing Membership, SurfaceRoleGrant and permission-group membership inside the Tenant boundary while marking this row accepted (FR-398). One open invitation per (tenant, target) is a schema fact — a partial unique index — not a screen rule.v0.50.0 (PROP-072) — ขอบเขตของตัวเอง ตั้งใจให้อยู่นอก root ของ Tenant: คำเชิญถูกออก เพิกถอน และหมดอายุได้โดยไม่แตะ aggregate ของ tenant และการตอบรับเป็นการกระทำเดียวที่ข้ามเส้น — ทรานแซกชันเดียวเขียน Membership SurfaceRoleGrant และการเป็นสมาชิกกลุ่มสิทธิ์ภายในขอบเขต Tenant พร้อมทำเครื่องหมายแถวนี้ว่า accepted (FR-398) หนึ่งคำเชิญค้างต่อ (tenant, ปลายทาง) เป็นข้อเท็จจริงของโครงสร้าง — partial unique index — ไม่ใช่กฎของหน้าจอ | — |
| Referral | Referral | federation | v0.52.0 (PROP-071) — its own boundary, outside every tenant root: a code belongs to a PERSON, is issued, paused and revoked without touching any tenant aggregate, and writes nothing anywhere else. One code per person is a schema fact (UNIQUE referrer_person_id), not a screen rule.v0.52.0 (PROP-071) — ขอบเขตของตัวเอง อยู่นอก root ของ tenant ทุกตัว: รหัสเป็นของคน ออก หยุด และเพิกถอนได้โดยไม่แตะ aggregate ของ tenant ใด และไม่เขียนอะไรที่อื่นเลย | |
| ReferralCredit | ReferralCredit | federation | v0.52.0 (PROP-071) — a separate boundary from Referral because the subject is a different person. Written once per referred person — attributed, or declined with a NULL code — and never updated afterwards; UNIQUE (referred_person_id).v0.52.0 (PROP-071) — ขอบเขตแยกจาก Referral เพราะประธานเป็นคนละคน เขียนครั้งเดียวต่อหนึ่งผู้ถูกแนะนำ และไม่แก้ไขภายหลัง | |
| ViewAsSession | ViewAsSession | federation | Audit record — one row per session; only ended_at may be set after start.ระเบียนตรวจสอบ — หนึ่งแถวต่อ session; แก้ได้เฉพาะ ended_at หลังเริ่ม | ERD-FED |
| Farmer | Farmer | federation | Registry root; quota_farmer_id links the sub-farmer chain — re-parenting is a single-row change guarded by chain validation.root ทะเบียน; quota_farmer_id เชื่อมสายลูกไร่ — การย้ายสายเป็นการแก้รายแถวภายใต้การตรวจสาย | ERD-CFQ |
| Mill | Mill · CanePurchasePolicy · MillPaymentSchedule | federation | Factory profile with season configuration; one policy and an effective-dated schedule per season.โปรไฟล์โรงงานพร้อมการตั้งค่ารายฤดู; หนึ่งนโยบายและตารางจ่ายมีผลตามวันต่อฤดู | ERD-MILL |
| FinancialInstitution | FinancialInstitution | federation | Registry root under a bank tenant.root ทะเบียนภายใต้ tenant ธนาคาร | ERD-FIN |
| PermissionCatalog | PermissionCatalog | federation | Reference catalogue — operator-governed rows; consumed read-only via the singleton cache.บัญชีอ้างอิง — แถวภายใต้ operator; อ่านอย่างเดียวผ่าน cache แบบ singleton | ERD-FED |
| AuthSession | AuthSession | federation | v0.42.0 (PROP-067) — minted in one transaction naming device, method, assurance level and tenant context; wholesale revocation (factor change · completed recovery · capacity or membership removal) revokes every OTHER session of the person inside the causing transaction (FR-373).v0.42.0 (PROP-067) — ออกใน transaction เดียวโดยระบุอุปกรณ์ วิธี ระดับความเชื่อมั่น และ tenant context; การยกเลิกทั้งชุด (เปลี่ยนปัจจัย · กู้คืนสำเร็จ · ถอน capacity หรือ membership) ยกเลิกทุกเซสชันอื่นของบุคคลนั้นใน transaction ที่เป็นเหตุ (FR-373) | — |
| AuthEvent | AuthEvent | federation | v0.42.0 (PROP-067) — append-only; one row per authentication fact, written inside the transaction of the act it records (FR-367).v0.42.0 (PROP-067) — เพิ่มเท่านั้น; หนึ่งแถวต่อหนึ่งข้อเท็จจริง เขียนใน transaction ของการกระทำที่บันทึก (FR-367) | — |
| Person (+ DeviceCredential)(+ DeviceCredential) | Person · PhoneNumber · ExternalIdentity · Passkey · DeviceCredential | federation | v0.43.0 (PROP-068) — a device key commits with the person, because the invariant it participates in is the person’s: at least one ENTRY factor survives (FR-368). Revoking a device key revokes every session it minted, in the same transaction. Enrolling one by OTP alone writes the credential, appends the AuthEvent and schedules the announcement in that one transaction — an enrolment nobody was told about is a failed enrolment (FR-380).v0.43.0 (PROP-068) — กุญแจในเครื่อง commit พร้อมบุคคล เพราะกฎคงที่ที่มันร่วมอยู่เป็นของบุคคล: ต้องมีปัจจัยที่ให้เข้าเหลืออย่างน้อยหนึ่ง (FR-368) การถอนกุญแจในเครื่องถอนทุกเซสชันที่มันสร้างใน transaction เดียวกัน การลงทะเบียนด้วย OTP เพียงอย่างเดียวเขียน credential ต่อท้าย AuthEvent และตั้งการแจ้งเตือนใน transaction เดียว — การลงทะเบียนที่ไม่มีใครถูกแจ้งคือการลงทะเบียนที่ล้มเหลว (FR-380) | |
| IdentityCheck | IdentityCheck | federation | v0.42.0 (PROP-067) — append-only proofing record; a passing check writes Person.national_id_hash and may raise id_verified_level in the same transaction, while the biometric evidence ends at evidence_retained_until (D-13).v0.42.0 (PROP-067) — ระเบียนพิสูจน์ตัวตนแบบเพิ่มเท่านั้น; การตรวจที่ผ่านเขียน Person.national_id_hash และยก id_verified_level ได้ใน transaction เดียวกัน ขณะที่หลักฐานชีวมิติจบที่ evidence_retained_until (D-13) | — |
v0.45.0 (PROP-074) — the persistence invariant, stated without naming a framework: every standing's holder key is NOT NULL and carries a foreign key. That one sentence rules out a single shared standing table with two nullable holder columns — the default mapping of a class hierarchy over the four cells — without mentioning an ORM or a mapping strategy, and it makes NFR-141 enforceable by the database rather than remembered by a service. Behaviour may share a base type; STORAGE may not. The corollary is A-80: a capacity or a qualification is a ROW in the register, never a class or a subclass, so Replace Type Code with Subclasses must never be applied to a standing code — it converts versioned, effective-dated data into a type system that cannot be versioned, and turns the twelfth capacity from a graph row into a release.
v0.45.0 (PROP-074) — กฎคงที่ของการจัดเก็บ โดยไม่เอ่ยชื่อเฟรมเวิร์ก: คีย์ผู้ถือของทุกสถานะเป็น NOT NULL และมี foreign key ประโยคเดียวนี้ตัดตารางร่วมที่มีคอลัมน์ผู้ถือว่างได้สองคอลัมน์ออก โดยไม่ต้องเอ่ยชื่อ ORM และทำให้ NFR-141 บังคับได้ที่ฐานข้อมูล พฤติกรรมใช้ชนิดฐานร่วมกันได้ การจัดเก็บใช้ไม่ได้ (A-80)
The DI registration contract for this perspective's contexts, from graph dataModeling.lifecycles — vocabulary singleton | scoped (per request / unit of work) | transient (.NET, per the PROP-005 ASP.NET Core foundation). Platform-wide conventions (DbContext, repositories, handlers, caches, hosted jobs) are stated once in SPEC-DDD and bind here unless a row below overrides them; the rows list the notable components an implementation must wire per context.
สัญญาการลงทะเบียน DI ของ context ในมุมมองนี้ จาก dataModeling.lifecycles ใน graph — ใช้ศัพท์ singleton | scoped (ต่อคำขอ / unit of work) | transient (.NET ตามรากฐาน ASP.NET Core ของ PROP-005) กติการวมทั้ง platform (DbContext, repository, handler, cache, hosted job) ประกาศครั้งเดียวใน SPEC-DDD และมีผลที่นี่เว้นแต่แถวด้านล่างกำหนดต่าง; แถวในตารางคือ component สำคัญที่ implementation ต้องต่อสายราย context
| Component | Kindชนิด | Lifetime | Rationaleเหตุผล |
|---|---|---|---|
| IdentityDbContext + Person/Tenant/Membership repositories | repository | scoped | — |
| TokenClaimCompiler | app_service | scoped | Compiles sub/tnt/cap/srf/perm claims per sign-in/tenant-switch (federation.claims).คอมไพล์ claim sub/tnt/cap/srf/perm ต่อการ sign-in/สลับ tenant (federation.claims) |
| EntitlementMatrixProvider | cache | singleton | Normative capacity × surface matrix; invalidated only on graph-driven redeploy.ตาราง capacity × surface เชิงบรรทัดฐาน; ล้างเฉพาะเมื่อ redeploy ตาม graph |
| OtpSender | integration | transient | Stateless send over a pooled typed HttpClient.ส่งแบบไร้สถานะบน typed HttpClient ที่ pool ไว้ |
| ViewAsAuditWriter | app_service | scoped | — |
| ViewAsReadOnlyPolicy | department_policy | singleton | — |
| PhoneNumberService | federation | scoped | v0.42.0 (PROP-067) — add · verify · promote · remove; owns the three refusals of FR-364 and the reusable_after holdv0.42.0 (PROP-067) — เพิ่ม · ยืนยัน · เลื่อนเป็นหลัก · ถอน; ถือการปฏิเสธสามกรณีของ FR-364 และระยะพัก reusable_after |
| DeviceCredentialService | federation | scoped | v0.43.0 (PROP-068) — enrol · verify · revoke · reverse an enrolment; owns the throttle on a failed PIN and the AAL decision from hardware_backed + user_verification (FR-379, FR-380)v0.43.0 (PROP-068) — ลงทะเบียน · ตรวจ · ถอน · ย้อนการลงทะเบียน; ถือการหน่วงเมื่อ PIN ผิด และการตัดสิน AAL จาก hardware_backed + user_verification (FR-379, FR-380) |
| RiskSignalEvaluator | federation | singleton | v0.43.0 (PROP-068) — reads the PUBLISHED five-signal register and nothing else; a signal may trigger a challenge and may never be one (FR-381, FR-382)v0.43.0 (PROP-068) — อ่านทะเบียนห้าสัญญาณที่ประกาศไว้เท่านั้น; สัญญาณจุดด่านได้ แต่เป็นด่านเองไม่ได้ (FR-381, FR-382) |
| ExternalIdentityLinker | federation | scoped | Matches on (provider, provider_subject) ONLY — never on an email claim (NFR-135)จับคู่ด้วย (provider, provider_subject) เท่านั้น — ไม่ใช้อีเมล (NFR-135) |
| ProviderOidcClients (Google · Apple · LINE · Facebook) | federation | transient | Stateless per-provider OIDC clients over pooled typed HttpClients; the authored enum lives in federation.authentication.providersOIDC client รายผู้ให้บริการแบบไม่เก็บสถานะบน typed HttpClient ที่ pool ไว้; enum ที่เขียนไว้อยู่ใน federation.authentication.providers |
| WebAuthnCredentialService | federation | scoped | ASP.NET Core Identity passkeys (.NET 10); sync flags and attestation recorded, never used to refuse (FR-370)passkey ของ ASP.NET Core Identity (.NET 10); บันทึก flag การซิงก์และ attestation ไม่ใช้ปฏิเสธ (FR-370) |
| AuthSessionStore | federation | scoped | Mints, lists and revokes sessions; wholesale revocation runs inside the causing transaction (FR-373)ออก แสดง และยกเลิกเซสชัน; การยกเลิกทั้งชุดทำใน transaction ที่เป็นเหตุ (FR-373) |
| AuthEventWriter | federation | scoped | Append-only; one row per authentication fact, written in the act’s own transactionเพิ่มเท่านั้น; หนึ่งแถวต่อหนึ่งข้อเท็จจริง เขียนใน transaction ของการกระทำเอง |
| IdentityCheckGateway | federation | transient | Card read + liveness vendor. DISABLED until the PDPA legal review and the Thai data-residency assessment are recorded (FR-372, D-13); keeps the result, never the faceอ่านบัตร + ผู้ให้บริการตรวจสด ปิดไว้จนกว่าจะมีบันทึกการทบทวนกฎหมาย PDPA และการประเมินที่เก็บข้อมูลในไทย (FR-372, D-13); เก็บผล ไม่เก็บใบหน้า |
| Eventเหตุการณ์ | Producerผู้ผลิต | Consumersผู้บริโภค |
|---|---|---|
| PersonRegistered / PersonMerged | federation | account, mobile, auditaccount, mobile, audit |
| TenantCreated | federation | account, portal, regulator, auditaccount, portal, regulator, audit |
| CapacityGranted / CapacitySuspended / CapacityRevoked | federation | service_marketplace, lending, regulator, auditservice_marketplace, lending, regulator, audit |
| MembershipActivated / MembershipLeft | federation | account, portal, mobile, dispatch, audit — v0.50.0 (PROP-072): MembershipLeft is reused unchanged and now MEANS the eight-consequence removal contract (FR-403), whoever triggered it; it carries who ended it, when and the reason, and nothing elseaccount, portal, mobile, dispatch, audit |
| MemberInvited / MemberInvitationDeclined | federation | account, portal, mobile, audit — v0.50.0 (PROP-072): a tenant offered a person a position, or the offer was closed by the person. The decline event carries the FACT and no reason, no timestamp the issuer reads and no read receipt (NFR-144, OQ-6).account, portal, mobile, audit — v0.50.0 (PROP-072): tenant ยื่นตำแหน่งให้คนหนึ่ง หรือข้อเสนอถูกปิดโดยเจ้าตัว เหตุการณ์การปฏิเสธพาข้อเท็จจริงไป ไม่มีเหตุผล ไม่มีเวลาที่ผู้ออกอ่านได้ และไม่มีสถานะการอ่าน (NFR-144, OQ-6) |
| MembershipJoined | federation | account, portal, mobile, audit — v0.50.0 (PROP-072): the acceptance transaction committed; the person is a member with a position and is told so (FR-398, FR-405). He is NOT switched into the new tenant.account, portal, mobile, audit — v0.50.0 (PROP-072): ทรานแซกชันการตอบรับ commit แล้ว คนคนนั้นเป็นสมาชิกพร้อมตำแหน่งและถูกแจ้งให้ทราบ (FR-398, FR-405) และไม่ถูกสลับเข้าไปใน tenant ใหม่ |
| PositionChanged | federation | account, portal, mobile, audit — v0.50.0 (PROP-072): a member's permission group or surface roles changed; the member is told what changed, which tenant changed it and when — never why (FR-405).account, portal, mobile, audit — v0.50.0 (PROP-072): กลุ่มสิทธิ์หรือบทบาทรายช่องทางของสมาชิกเปลี่ยน สมาชิกถูกบอกว่าอะไรเปลี่ยน tenant ใดเปลี่ยน และเมื่อไร ไม่บอกว่าทำไม (FR-405) |
| ReferralIssued / ReferralRevoked | federation | account, mobile, audit — v0.52.0 (PROP-071): a code came into existence, or was revoked for abuse. Neither event carries anything about anybody the code reached.account, mobile, audit — v0.52.0 (PROP-071): รหัสเกิดขึ้น หรือถูกเพิกถอนเพราะใช้ผิด ทั้งสองเหตุการณ์ไม่พาข้อมูลของใครที่รหัสไปถึงเลย |
| ReferralOpened | federation | audit — v0.52.0 (PROP-071): COUNTED, NEVER ROUTED. No consumer may turn it into a per-person feed, and it is why opens_count is a number rather than a list (FR-411, NFR-137).audit — v0.52.0 (PROP-071): นับเท่านั้น ไม่มีเส้นทางส่งต่อ ห้ามผู้บริโภคเหตุการณ์ทำให้เป็นสายข้อมูลรายบุคคล |
| ReferralAttributed | federation | account, mobile, audit — v0.52.0 (PROP-071): the arriving grower confirmed the source AND did one real thing (FR-412). The referrer's count rises; he is never told whose arrival raised it.account, mobile, audit — v0.52.0 (PROP-071): ผู้มาถึงยืนยันที่มาและทำสิ่งจริงหนึ่งอย่าง จำนวนของผู้แนะนำเพิ่มขึ้น แต่เขาไม่เคยรู้ว่าการมาถึงของใครทำให้เพิ่ม |
| SurfaceRoleGranted / SurfaceRoleRevoked | federation | every surface + auditทุกช่องทาง + audit |
| TenantContextIssued | federation | audit — fires on every sign-in and tenant switch (session forensics)audit — ยิงทุกการลงชื่อและการสลับ tenant (นิติวิทยา session (เซสชัน)) |
| ViewAsStarted / ViewAsEnded | federation | audit, account — dual-logged into the viewed tenant's audit AND the platform auditaudit, account — บันทึกซ้อนใน audit ของ tenant ที่ถูกดู และ audit ของ platform |
| FarmerRegistered / VirtualFarmerCreated / VirtualFarmerConverted | federation | quota_planning, financing, settlement, mobile, notificationsquota_planning, financing, settlement, mobile, notifications |
| FactorBound / FactorUnbound | federation | account, mobile, portal, audit — v0.42.0 (PROP-067): a way in was added or removed; notified on every OTHER bound channel (FR-367)account, mobile, portal, audit — v0.42.0 (PROP-067): เพิ่มหรือถอนทางเข้า แจ้งไปทุกช่องทางอื่นที่ผูกไว้ (FR-367) |
| NumberAdded / NumberRemoved / PrimaryNumberChanged | federation | account, mobile, portal, settlement, audit — the primary number is what invitations, notifications and the payment advice follow (FR-364)account, mobile, portal, settlement, audit — เบอร์หลักคือสิ่งที่คำเชิญ การแจ้งเตือน และใบแจ้งการจ่ายเงินตามไป (FR-364) |
| DeviceEnrolled / DeviceEnrolmentReversed | federation | account, mobile, portal, audit — v0.43.0 (PROP-068): a device key was created on a handset, or the holder undid it inside the published seven-day window. An enrolment authorised by an OTP alone is announced on every OTHER way in (N-5) and three act classes wait out the published 24-hour delay (FR-380). A risk challenge is deliberately NOT a domain event — it is an AuthEvent row read by the holder and by nobody else (NFR-139, D-7).account, mobile, portal, audit — v0.43.0 (PROP-068): มีการสร้างกุญแจในเครื่อง หรือเจ้าของย้อนกลับภายในเจ็ดวันที่ประกาศไว้ การลงทะเบียนด้วย OTP เพียงอย่างเดียวถูกแจ้งไปทางเข้าอื่นทุกทาง (N-5) และการกระทำสามชั้นรอเวลาหน่วง 24 ชั่วโมงที่ประกาศไว้ (FR-380) ด่านยืนยันเมื่อสงสัยจงใจไม่เป็นเหตุการณ์โดเมน — เป็นแถว AuthEvent ที่เจ้าของอ่าน และไม่มีใครอื่นเห็น (NFR-139, D-7) |
| IdentityChecked | federation | account, admin, audit — a card-and-liveness check passed or failed; may raise id_verified_level, never mints a session (A-75)account, admin, audit — การตรวจบัตรและตรวจสดผ่านหรือไม่ผ่าน; ยก id_verified_level ได้ แต่ไม่ออกเซสชัน (A-75) |
| RecoveryCompleted / SessionsRevoked | federation | account, mobile, portal, admin, audit — every other session revoked, pending identifier changes cancelled, every existing way in notified, seven-day reversal (FR-371)account, mobile, portal, admin, audit — ยกเลิกทุกเซสชันอื่น ยกเลิกการเปลี่ยนตัวระบุที่ค้าง แจ้งทุกทางเข้าเดิม ยกเลิกได้เจ็ดวัน (FR-371) |
The federation events replace the former network_identity set — TenantProvisioned is superseded by TenantCreated; UserLinkedToTenant by MembershipActivated. Virtual-farmer claiming re-homes here as person-claiming (WF-01), preserving farmer_id and every downstream reference.
เหตุการณ์ federation แทนชุด network_identity เดิม — TenantProvisioned ถูกแทนด้วย TenantCreated; UserLinkedToTenant ด้วย MembershipActivated การอ้างสิทธิ์ virtual farmer ย้ายมาที่นี่เป็นการอ้างสิทธิ์ระดับบุคคล (WF-01) คง farmer_id และการอ้างอิงปลายน้ำทุกจุด
The model is not built from scratch. Its authorization server is wangkanai/federation — OAuth 2.1 (Authorization Code + PKCE) and OIDC — over ASP.NET Core Identity, whose AspNet* tables are extended, never replaced: Person maps onto AspNetUsers (UNIQUE(PhoneNumber) replacing the email index); SurfaceRoleGrant onto AspNetRoles + AspNetUserRoles with a surface key on the join. Tenant, TenantCapacity, PermissionCatalog and RolePermission are extensions with no Identity equivalent. The claims compiler and its decoders are DI-free and never-throw so field clients can read offline-cached tokens in the browser.
model ไม่ได้สร้างจากศูนย์ เซิร์ฟเวอร์กำหนดสิทธิ์คือ wangkanai/federation — OAuth 2.1 (Authorization Code + PKCE) และ OIDC — บน ASP.NET Core Identity ซึ่งตาราง AspNet* ถูกต่อเติม ไม่แทนที่: Person แมปกับ AspNetUsers (UNIQUE(PhoneNumber) แทนดัชนีอีเมล); SurfaceRoleGrant แมปกับ AspNetRoles + AspNetUserRoles โดยมีคีย์ช่องทางบนการเชื่อม Tenant, TenantCapacity, PermissionCatalog และ RolePermission เป็นส่วนต่อเติมที่ไม่มีคู่เทียบใน Identity ตัวคอมไพล์ claim และตัวถอดรหัสไม่มี DI และไม่โยน error เพื่อให้ไคลเอนต์ภาคสนามอ่าน token ที่แคชออฟไลน์ในเบราว์เซอร์ได้
| Thaiไทย | Englishอังกฤษ | Meaningความหมาย |
|---|---|---|
| สหพันธ์อัตลักษณ์ | identity federation | The v6.0 access model: one person, one sign-in; tenants hold capacity sets; six layers resolve authorization; account is the sole identity writer.model การเข้าถึง v6.0: หนึ่งบุคคล หนึ่งการลงชื่อ; tenant ถือชุด capacity; หกชั้นตัดสินสิทธิ์; account เป็นผู้เขียนอัตลักษณ์เพียงผู้เดียว |
| บุคคล | person | The human (Person): one verified phone = one person (NFR-14); signs in once and acts for one tenant at a time.มนุษย์ (Person): หนึ่งเบอร์ที่ยืนยัน = หนึ่งบุคคล (NFR-14); ลงชื่อครั้งเดียวและทำหน้าที่แทน tenant ครั้งละหนึ่ง |
| tenant | tenant | The economic actor (Tenant): individual or organization; holds a capacity set and all domain profile records; supersedes the tenant.ผู้กระทำการทางเศรษฐกิจ (Tenant): individual หรือ organization; ถือชุด capacity และเรกคอร์ดโปรไฟล์ capacityทั้งหมด; แทน tenant |
| บทบาทความสามารถ / capacity | capacity | A grantable, verifiable role of a tenant (grower | quota | mill | contractor | bank | government) — the former customer groups; gates surfaces and data slices; bank/government exclusive (NFR-16).บทบาทที่ให้ได้และยืนยันได้ของ tenant (grower | quota | mill | contractor | bank | government) — กลุ่มลูกค้าเดิม; กั้นช่องทางและส่วนข้อมูล; bank/government เอกสิทธิ์ (NFR-16) |
| สมาชิกภาพ | membership | The person↔tenant join; each carries its own one-role-per-surface grants; an individual tenant's self-membership is its owner.การเชื่อม person↔tenant; แต่ละอันถือ grant หนึ่งบทบาทต่อช่องทางของตน; self-membership ของ tenant individual คือ owner |
| คำเชิญสมาชิก | member invitation | v0.50.0 (PROP-072) — the tenant-issued, single-use admission of a PERSON into a POSITION (MemberInvitation): a tenant, one department, the position, one contact target; 7 days, re-issuable without limit; issued by a membership so the authority is the position. Distinct from the operator Invitation (a capacity to a tenant) and from NetworkInvitation (a person to his own record and a steward) — the family is told apart by WHAT IS ADMITTED (A-91).v0.50.0 (PROP-072) — การรับคนเข้าสู่ตำแหน่ง ที่ tenant ออกให้ ใช้ครั้งเดียว (MemberInvitation): tenant หน่วยงานหนึ่งแห่ง ตำแหน่ง ปลายทางติดต่อหนึ่งแห่ง อายุ 7 วัน ออกใหม่ได้ไม่จำกัด ออกโดยสมาชิกภาพ อำนาจจึงอยู่ที่ตำแหน่ง ต่างจาก Invitation ของผู้ดำเนินการ (capacity ให้ tenant) และจาก NetworkInvitation (คนเข้าสู่ระเบียนของตัวเองและผู้ดูแล) — ตระกูลนี้แยกกันด้วยสิ่งที่รับเข้า (A-91) |
| ตำแหน่ง | position | v0.50.0 (PROP-072) — what an invitation admits somebody TO: the PermissionGroup and the SurfaceRoleGrants acceptance writes, inside one named department. A position is what a tenant may give; a capacity belongs to the tenant itself (FR-401) and a qualification belongs to the person.v0.50.0 (PROP-072) — สิ่งที่คำเชิญรับคนเข้าไปสู่: PermissionGroup และ SurfaceRoleGrant ที่การตอบรับเขียน ภายในหน่วยงานหนึ่งที่ระบุชื่อ ตำแหน่งเป็นสิ่งที่ tenant ให้ได้ ส่วน capacity เป็นของ tenant เอง (FR-401) และ qualification เป็นของคน |
| สัญญาการถอดออก | removal contract | v0.50.0 (PROP-072) — the eight consequences of ending a membership, and there is no ninth (FR-403): sessions for that tenant revoked · grants suspended never deleted · queued offline captures settled within the published 72-hour window and never discarded · in-flight approvals reassigned to the owner role never voided · cached tenant data purged at next launch · notifications for that tenant ended · the person told · the audit unchanged. All eight bind V1 and it binds every removal, including a person leaving of his own accord.v0.50.0 (PROP-072) — ผลตามมาแปดข้อของการจบสมาชิกภาพ และไม่มีข้อที่เก้า (FR-403): เพิกถอนเซสชันของ tenant นั้น · ระงับสิทธิ์ ไม่ลบ · สะสางการบันทึกที่ค้างคิวภายใน 72 ชั่วโมงที่ประกาศไว้ ไม่ทิ้ง · โอนรายการอนุมัติที่ค้างไปยังบทบาทเจ้าของ ไม่ยกเลิก · ล้างข้อมูล tenant ที่แคชไว้เมื่อเปิดครั้งถัดไป · จบการแจ้งเตือนของ tenant นั้น · บอกเจ้าตัว · ไม่แตะบันทึกตรวจสอบ ทั้งแปดข้อผูก V1 และผูกการถอดออกทุกกรณี รวมถึงการที่เจ้าตัวออกเอง |
| การบอกต่อ | referral | v0.52.0 (PROP-071) — the admission that admits nothing: one durable, multi-use, untargeted eight-character code per person in his farming capacity, carried as a link, a QR or spoken aloud. It carries one fact and creates no relationship, ever (FR-408, FR-409).v0.52.0 (PROP-071) — สิ่งรับเข้าที่ไม่รับอะไรเข้าเลย: หนึ่งรหัสถาวรแปดตัวอักษรต่อหนึ่งคนในฐานะผู้ปลูก พาข้อเท็จจริงเดียวและไม่สร้างความสัมพันธ์ใด ๆ |
| การระบุที่มาของการมาถึง | arrival attribution | v0.52.0 (PROP-071) — who told a new grower about the platform, confirmed by that grower himself, once, with an equally weighted decline (FR-410), and attributed only once he has also done one real act (FR-412). Always written with the qualifier: PROP-064's season-one attribution is a data-retention contract and a different term.v0.52.0 (PROP-071) — ใครบอกชาวไร่ใหม่เรื่องแพลตฟอร์ม ยืนยันโดยตัวเขาเอง ครั้งเดียว พร้อมปุ่มปฏิเสธน้ำหนักเท่ากัน และนับเมื่อเขาทำสิ่งจริงหนึ่งอย่างแล้ว ต้องเขียนพร้อมคำขยายเสมอ เพราะ การระบุที่มาในฤดูแรก ของ PROP-064 เป็นคำละความหมาย |
| การ์ดหลักฐาน | proof card | v0.52.0 (PROP-071) — a flat image generated from a real record the grower is viewing, from a closed allow-list of three types, every figure hidden until he reveals it, with no live link back into his account (FR-414). A marketing card is something the platform said; a proof card is something the platform did.v0.52.0 (PROP-071) — ภาพแบนที่สร้างจากระเบียนจริงที่ชาวไร่กำลังดู จากรายการอนุญาตแบบปิดสามชนิด ตัวเลขทุกตัวซ่อนไว้จนเขาเปิด และไม่มีลิงก์สดกลับเข้าบัญชี |
| ผู้บอกต่อ | seeded communicator | v0.52.0 (PROP-071) — an ORDINARY grower, a few per village, given a campaign-tagged code and paid for time and travel on a named day, never per person recruited. The platform selects them on evidence of ordinary standing, and quota farmers and หัวตัน are excluded by rule. A separately budgeted field campaign, not a feature.v0.52.0 (PROP-071) — ชาวไร่ธรรมดาไม่กี่คนต่อหมู่บ้าน ได้รหัสที่ติดป้ายแคมเปญ และได้ค่าเวลาและการเดินทางในวันที่กำหนด ไม่ใช่จ่ายต่อคนที่ชวนได้ แพลตฟอร์มเลือกจากหลักฐานว่าเป็นคนธรรมดาที่คนนับถือ และตัดหัวหน้าโควตากับหัวตันออกโดยกฎ |
| บทบาทเต็มถาวร (owner) | fixed-full role / owner | The undeletable role holding every permission, locked-on in every role × permission matrix; every tenant has exactly one.บทบาทที่ลบไม่ได้ ถือทุก permission ล็อกในทุกตาราง role × permission; ทุก tenant มีหนึ่งเดียว |
| ตัวคอมไพล์ claim | claims compiler | The sign-in step that compiles the resolved model onto the token as short-named claims (sub · tnt · cap · srf · perm · ver · act · vas); must equal the authored matrices (NFR-15).ขั้นตอนลงชื่อที่คอมไพล์ model ที่ตัดสินแล้วลง token เป็น claim ชื่อสั้น (sub · tnt · cap · srf · perm · ver · act · vas); ต้องเท่ากับตารางที่เขียน (NFR-15) |
| การสวมสิทธิ์แบบตรวจสอบได้ | audited view-as | Platform support acting inside a tenant via a ViewAsSession: permission-gated, banner-announced, dual-logged, read-only by default (X4).ทีมสนับสนุนทำงานใน tenant ผ่าน ViewAsSession: ต้องมี permission มีแบนเนอร์ บันทึกสองชั้น อ่านอย่างเดียวโดยปริยาย (X4) |
| ทางเข้า | way in | Any credential that gets a person into his own account — a verified phone number, an external provider account, or a passkey. The platform counts ways in, refuses to remove the last one, and offers a second of a different kind at the end of first run. Never a claim about who he is (A-75). v0.42.0 (PROP-067).credential ใดก็ตามที่พาคนเข้าบัญชีของตัวเอง — เบอร์โทรที่ยืนยันแล้ว บัญชีผู้ให้บริการภายนอก หรือ passkey แพลตฟอร์มนับทางเข้า ปฏิเสธการถอนทางสุดท้าย และเสนอทางที่สองต่างชนิดท้ายการใช้งานครั้งแรก ไม่ใช่ข้ออ้างว่าเขาเป็นใคร (A-75) v0.42.0 (PROP-067) |
| กุญแจผ่าน | passkey | A WebAuthn credential on the farmer’s own device, unlocked by fingerprint or face — in farmer words, not “WebAuthn”. The only phishing-resistant way in available to a consumer; syncable credentials are accepted without question. v0.42.0 (PROP-067).credential ตามมาตรฐาน WebAuthn บนเครื่องของชาวไร่เอง เปิดด้วยลายนิ้วมือหรือใบหน้า — พูดด้วยคำของชาวไร่ ไม่ใช่ “WebAuthn” เป็นทางเข้าเดียวที่ต้านฟิชชิงและผู้บริโภคใช้ได้; credential ที่ซิงก์ได้รับโดยไม่ตั้งคำถาม v0.42.0 (PROP-067) |
| ผู้ให้บริการตัวตน | identity provider | An external account the platform accepts as a way in — LINE, Google, Apple (Facebook at V1.1). Matched by (provider, subject) only, never by email; it supplies no profile data and no notification channel. v0.42.0 (PROP-067).บัญชีภายนอกที่แพลตฟอร์มรับเป็นทางเข้า — LINE, Google, Apple (Facebook ที่ V1.1) จับคู่ด้วย (provider, subject) เท่านั้น ไม่ใช้อีเมล; ไม่ให้ข้อมูลโปรไฟล์และไม่เป็นช่องทางแจ้งเตือน v0.42.0 (PROP-067) |
| กุญแจในเครื่อง | device credential | v0.43.0 (PROP-068) — the way in that lives on the farmer’s own handset when that handset cannot make a passkey: a key kept in the phone, opened by fingerprint, by the phone’s own lock, or by a six-digit code he sets for this app only. One per phone; a lost phone is one lost key, not a lost account. The code is never reset by SMS — forgetting it is a recovery.v0.43.0 (PROP-068) — ทางเข้าที่อยู่บนเครื่องของชาวไร่เอง เมื่อเครื่องนั้นสร้าง passkey ไม่ได้: กุญแจที่เก็บในเครื่อง เปิดด้วยลายนิ้วมือ ล็อกของเครื่อง หรือรหัสหกหลักที่ตั้งไว้สำหรับแอปนี้เท่านั้น หนึ่งอันต่อเครื่อง เครื่องหายคือกุญแจหายหนึ่งอัน ไม่ใช่บัญชีหาย รหัสนี้ตั้งใหม่ด้วย SMS ไม่ได้ — ลืมแล้วคือการกู้คืน |
| ด่านยืนยันเมื่อสงสัย | risk challenge | v0.43.0 (PROP-068) — one extra question, asked when something on the published list has happened. It stops the ACT and never the reading, states its cause in one sentence, and carries the recovery route on the same screen. Never a score, never a lock, and no other tenant is ever told (FR-381, NFR-139).v0.43.0 (PROP-068) — คำถามเพิ่มหนึ่งข้อ ถามเมื่อมีเรื่องในรายการที่ประกาศไว้เกิดขึ้น หยุดการกระทำ ไม่หยุดการอ่าน บอกเหตุหนึ่งประโยค และมีทางกู้คืนบนหน้าจอเดียวกัน ไม่มีคะแนน ไม่ล็อก และไม่บอกฝ่ายอื่นใด (FR-381, NFR-139) |
| สัญญาณเสี่ยง | risk signal | v0.43.0 (PROP-068) — one of the five published facts that may raise a challenge: a new device, a change to the ways in, repeated failures, a recovery, or the holder’s own alarm. Facts, not guesses — no location, no travel patterns, no typing habits, no vendor score. Adding a sixth is a specification change (FR-382).v0.43.0 (PROP-068) — หนึ่งในห้าข้อเท็จจริงที่ประกาศไว้ซึ่งยกด่านได้: เครื่องใหม่ การเปลี่ยนทางเข้า ความพยายามซ้ำที่ล้มเหลว การกู้คืน หรือสัญญาณเตือนของเจ้าของเอง เป็นข้อเท็จจริง ไม่ใช่การเดา — ไม่มีตำแหน่ง ไม่มีรูปแบบการเดินทาง ไม่มีนิสัยการพิมพ์ ไม่มีคะแนนของผู้ให้บริการ การเพิ่มข้อที่หกคือการเปลี่ยนข้อกำหนด (FR-382) |
| Invariantกฎคงที่ | Statementข้อความ |
|---|---|
| Sole compilerผู้คอมไพล์รายเดียว | federation compiles the effective permission set for exactly one active department at sign-in and at every department switch: (own grants ∪ directory-group grants, one nesting level) → department-scoped → FR-65 scope narrowing → deny-overrides. A resolver that disagrees with the authored matrices is a defect, never a configuration (NFR-15, FR-216).federation คอมไพล์ชุดสิทธิ์ที่ใช้ได้จริงสำหรับหน่วยงานที่ใช้งานหนึ่งเดียว ตอนลงชื่อและทุกครั้งที่สลับหน่วยงาน: (grant ของตน ∪ grant ของกลุ่มไดเรกทอรี ซ้อนหนึ่งชั้น) → บีบตามหน่วยงาน → บีบขอบเขตตาม FR-65 → การปฏิเสธชนะ ตัวแก้ที่ไม่ตรงกับตารางที่เขียนไว้คือข้อบกพร่อง ไม่ใช่การตั้งค่า (NFR-15, FR-216) |
| Token shapeรูปของ token | The token carries the compiled result plus the active department (dep) — never the transitive directory-group closure (NFR-67, NFR-17 4 KB). Directory-grant and domain events invalidate cached tokens.token บรรทุกผลที่คอมไพล์แล้วพร้อมหน่วยงานที่ใช้งาน (dep) — ไม่ใช่ closure ของกลุ่มไดเรกทอรีทั้งหมด (NFR-67, NFR-17 4 KB) เหตุการณ์ของ grant ไดเรกทอรีและหน่วยงานทำให้ token ที่ cache ไว้ใช้ไม่ได้ |
| No transitive trustไม่มีความเชื่อถือส่งต่อ | Nothing resolves between tenants and no directory grant crosses a tenant root; the X1–X4 mechanisms stay the only paths between tenants and none becomes transitive by grouping (NFR-65).ไม่มีสิ่งใด resolve ระหว่าง tenant และ grant ไดเรกทอรีไม่ข้ามรากของ tenant; กลไก X1–X4 ยังเป็นเส้นทางเดียวระหว่าง tenant และไม่มีข้อใดกลายเป็นแบบส่งต่อเพราะการจัดกลุ่ม (NFR-65) |
| Delegation is administrationการมอบอำนาจคือการดูแล | A delegated grant may carry administrative keys only; transactional and approval acts execute under the target department’s own chains and a root grant never substitutes for its four-eyes (G2, OQ-15).grant ที่มอบอำนาจถือได้เฉพาะกุญแจเชิงบริหาร; การทำรายการและการอนุมัติทำผ่านสายอนุมัติของหน่วยงานเป้าหมายเอง และ grant จากรากไม่แทนสี่ตาของมัน (G2, OQ-15) |
| Explainabilityอธิบายย้อนได้ | Every act performed under delegated authority is written to both departments with grant, directory group, granting principal, department path and time; delegated authority that cannot be reconstructed afterwards is a defect (NFR-66).ทุกการกระทำภายใต้อำนาจที่ได้รับมอบถูกเขียนทั้งสองหน่วยงานพร้อม grant กลุ่มไดเรกทอรี ผู้ให้สิทธิ์ department path และเวลา; อำนาจที่มอบแล้วสร้างย้อนไม่ได้คือข้อบกพร่อง (NFR-66) |
| Identity unchangedอัตลักษณ์ไม่เปลี่ยน | One person, one sign-in, no department-qualified logins (NFR-14 stands); the tenant switcher gains a department picker and each pick re-issues the token (FR-220, OQ-17). view-as remains an operator act, not a directory feature.หนึ่งคน หนึ่งการลงชื่อ ไม่มีการลงชื่อแบบระบุหน่วยงาน (NFR-14 คงอยู่); ตัวสลับ tenant เพิ่มตัวเลือกหน่วยงาน และทุกการเลือกออก token ใหม่ (FR-220, OQ-17) view-as ยังเป็นการกระทำของ operator ไม่ใช่ฟีเจอร์ของไดเรกทอรี |
Spec v0.41.0 (PROP-040, approved & applied 30 Jul 2026) adds nine entities to this context and one to on_site_gateway. Federation was already the sole identity writer; it is now also the sole permission resolver — no context evaluates access for itself (P-7). Normative model: graph federation.permissionModel.
spec v0.41.0 (PROP-040 อนุมัติและ apply 30 ก.ค. 2569) เพิ่ม entity เก้ารายการในบริบทนี้ และหนึ่งรายการใน on_site_gateway federation เป็นผู้เขียนอัตลักษณ์รายเดียวอยู่แล้ว และตอนนี้เป็นผู้ตัดสินสิทธิ์รายเดียวด้วย — ไม่มีบริบทใดประเมินการเข้าถึงเอง (P-7) model บรรทัดฐาน: federation.permissionModel ใน graph
| Aggregate rootรากของ aggregate | Membersสมาชิก | Transaction ruleกติกา transaction |
|---|---|---|
| ActionCatalog | ActionCatalog · ActionCategory | One platform-authored reference boundary, versioned and published together: a row may not cite a category outside the same published version, and a version publishes whole or not at all. Tenants read it and never write it (A1). Publication is additive — an action key is retired, never re-used, so a grant written years ago still resolves to the act it named.ขอบเขตอ้างอิงเดียวที่แพลตฟอร์มเขียน มีเวอร์ชันและประกาศพร้อมกัน: แถวอ้างหมวดนอกเวอร์ชันเดียวกันไม่ได้ และเวอร์ชันประกาศทั้งชุดหรือไม่ประกาศเลย tenant อ่านได้ ไม่เขียน (A1) การประกาศเป็นแบบเพิ่มเท่านั้น — action key ถูกปลด ไม่นำกลับมาใช้ซ้ำ |
| PermissionGroup | PermissionGroup · PermissionGroupGrant · PositionAppointment | The position, its grants and the appointments that carry it commit as ONE boundary — a grant never exists without its position and an appointment never outlives it. Validated inside: no grant without a scope tuple · no approve without reject (P-2) · no facet outside facets_available · at most one nesting level (PROP-026) · no row outside the tenant’s active capacities (P-8). Ending an appointment is a state change, never a delete; the set is recompiled at the next sign-in or department switch.ตำแหน่ง grant ของมัน และการแต่งตั้งที่ถือมันผูกเป็นขอบเขตเดียว — grant ไม่มีอยู่โดยไม่มีตำแหน่ง และการแต่งตั้งอยู่นานกว่าตำแหน่งไม่ได้ ตรวจภายใน: ไม่มี grant ที่ไม่มี scope · ไม่มี approve ที่ไม่มี reject (P-2) · ไม่มี facet นอก facets_available · ซ้อนไม่เกินหนึ่งชั้น (PROP-026) · ไม่มีแถวนอก capacity ที่ใช้งาน (P-8) การสิ้นสุดการแต่งตั้งเป็นการเปลี่ยนสถานะ ไม่ใช่การลบ; ชุดสิทธิ์คอมไพล์ใหม่ตอนลงชื่อเข้าหรือสลับหน่วยงานครั้งถัดไป |
| AccountActionOverride | AccountActionOverride | An override commits with its justification or not at all: reason, expiry, granting account and — on an amount_bearing row — a distinct second approver, all in one transaction. A live override is not editable; a wrong one is expired and replaced, so the access review reads a complete history of who cut which hole and why.การลบล้างผูกพร้อมมูลเหตุหรือไม่เกิดขึ้นเลย: เหตุผล วันหมดอายุ บัญชีผู้มอบ และเมื่อแถวมีจำนวนเงิน ต้องมีผู้อนุมัติที่สองที่ต่างคน ทั้งหมดใน transaction เดียว การลบล้างที่มีผลแก้ไขไม่ได้; ที่ผิดให้หมดอายุแล้วออกใหม่ การทบทวนสิทธิ์จึงอ่านประวัติได้ครบ |
| CompositionRule | CompositionRule | A platform reference version, evaluated at capacity grant and never inside the permission layer (P-9). Effective-forward: publishing a forbidden cell refuses future grants and never retroactively invalidates a tenant already holding the pair — separation is an operator act with its reason recorded, never a silent revocation.เวอร์ชันอ้างอิงของแพลตฟอร์ม ประเมินตอนมอบ capacity ไม่ประเมินในชั้นสิทธิ์ (P-9) มีผลไปข้างหน้า: การประกาศช่องห้ามปฏิเสธการมอบในอนาคต และไม่ทำให้ tenant ที่ถือคู่นั้นอยู่แล้วเป็นโมฆะย้อนหลัง — การแยกทำด้วย act ของ operator พร้อมบันทึกเหตุผล ไม่ใช่การเพิกถอนแบบเงียบ |
| EscalationRequest | EscalationRequest | The request, its routing set and its decision are one boundary: the routing set is resolved and FROZEN at creation, so a grant change mid-flight never silently re-routes a pending decision; the decision is written once with the decider’s identity; the resulting write carries both identities and P-4 is evaluated against the decider. An expiry escalates one department level; nothing auto-approves.คำขอ ชุดผู้รับ และคำตัดสินเป็นขอบเขตเดียว: ชุดผู้รับตัดสินและตรึงตอนสร้าง การเปลี่ยนสิทธิ์กลางทางจึงไม่เปลี่ยนเส้นทางคำขอที่ค้างอยู่แบบเงียบ; คำตัดสินเขียนครั้งเดียวพร้อมตัวตนของผู้ตัดสิน; การเขียนที่เกิดขึ้นถือสองตัวตน และประเมิน P-4 กับผู้ตัดสิน การหมดเวลาเลื่อนขึ้นหนึ่งชั้นหน่วยงาน ไม่มีการอนุมัติอัตโนมัติ |
| OfflineGrantSet | OfflineGrantSet (context on_site_gateway)(บริบท on_site_gateway) | A compiled set is append-only and signed: the gateway writes a new set rather than amending one, so what a station enforced during an outage is reconstructable frame by frame. The lease bound is part of the record — an expired lease resolves to nothing rather than to the last known answer — and a set holds appointment ids, action keys, facets and effects only, never personal data (NFR-47).ชุดที่คอมไพล์เป็น append-only และลงลายมือชื่อ: gateway เขียนชุดใหม่ ไม่แก้ชุดเดิม สิ่งที่สถานีบังคับใช้ระหว่างขาดสัญญาณจึงย้อนดูได้ทีละเฟรม ขอบเขตของ lease เป็นส่วนหนึ่งของบันทึก — lease ที่หมดอายุตัดสินเป็นไม่มีสิทธิ์ ไม่ใช่คำตอบล่าสุดที่รู้ — และชุดถือเพียง appointment id, action key, facet และผล ไม่มีข้อมูลส่วนบุคคล (NFR-47) |
Events (delta P-AUD). ActionGrantChanged · GroupComposed · PositionAppointmentChanged · OverrideGranted · OverrideExpired · ActionDeniedAtActTime · EscalationRequested · EscalationDecided · EscalationExpired · CapacityCompositionRefused · DepartmentRegistered — all produced by federation. The refusal is itself a fact worth keeping: it is how a mis-designed position is found (NFR-133).
event (delta P-AUD) ActionGrantChanged · GroupComposed · PositionAppointmentChanged · OverrideGranted · OverrideExpired · ActionDeniedAtActTime · EscalationRequested · EscalationDecided · EscalationExpired · CapacityCompositionRefused · DepartmentRegistered — ผลิตโดย federation ทั้งหมด การถูกปฏิเสธเป็นข้อเท็จจริงที่ควรเก็บ: เป็นวิธีค้นพบตำแหน่งที่ออกแบบผิด (NFR-133)
Ubiquitous language additions. ตำแหน่ง (position) — the tenant’s named post, which IS the permission group: it holds the grants and a person is appointed to it (D-5; a shift is not a permission, so the platform models appointments and never rosters). คำขออนุมัติ (escalation request) — the first-class object a refusal offers instead of a wall. facet — how far a grant reaches into an act’s own lifecycle; a vocabulary, not a template.
คำในภาษากลางที่เพิ่ม ตำแหน่ง — โพสต์ที่ tenant ตั้งชื่อ ซึ่งคือกลุ่มสิทธิ์: มันถือ grant และคนถูกแต่งตั้งเข้าไป (D-5; กะไม่ใช่สิทธิ์ แพลตฟอร์มจึงทำ model การแต่งตั้ง ไม่ใช่ตารางกะ) คำขออนุมัติ — วัตถุชั้นหนึ่งที่การปฏิเสธเสนอให้แทนกำแพง facet — grant เอื้อมถึงวงจรชีวิตของการกระทำได้ไกลเพียงใด เป็นคำศัพท์ ไม่ใช่ template
Spec v0.42.0 (PROP-067, approved & applied 31 Jul 2026) gives the federation context the layer below the six: how a person gets in at all. Three factors are modelled — a verified phone number, an external provider account, a passkey — and all of them resolve to one Person, so nothing above changes (FR-60 amended, FR-363). Two rules carry the department logic. An account is never selected by an email claim: matching runs on (provider, provider_subject), because selecting by email is the precondition the account pre-hijacking class needs and the virtual-farmer claim flow is exactly a pre-existing account. A provider is an authentication method and nothing else: no photo, no display name, no contact import — the profile is authored here (NFR-135, NFR-136). Recovery is authentication, so an account is only as strong as its weakest published route (FR-371), and the last remaining way in may not be removed (FR-368). The one thing a credential may never touch is who the person is: identity proofing lives in IdentityCheck and is governed by convention A-75. Six walks: WF-117 bind a provider · WF-118 create a passkey · WF-119 recover · WF-120 the number is gone · WF-121 add, promote or remove a number · WF-122 prove who you are, and get back in.
spec v0.42.0 (PROP-067 อนุมัติและ apply 31 ก.ค. 2569) เพิ่มชั้นที่อยู่ใต้หกชั้นให้ context federation: คนเข้าระบบได้อย่างไรตั้งแต่แรก มีสามปัจจัยในแบบจำลอง — เบอร์โทรที่ยืนยันแล้ว บัญชีผู้ให้บริการภายนอก และ passkey — ทั้งหมดชี้ไปที่ Person เดียว ชั้นบนจึงไม่เปลี่ยน (แก้ FR-60, FR-363) ตรรกะโดเมนมีสองกฎที่รับน้ำหนัก ไม่เลือกบัญชีด้วยอีเมล: จับคู่ด้วย (provider, provider_subject) เพราะการเลือกด้วยอีเมลคือเงื่อนไขที่การยึดบัญชีล่วงหน้าต้องการ และกระบวนการอ้างสิทธิ์ชาวไร่ virtual คือบัญชีที่มีอยู่ก่อนพอดี ผู้ให้บริการเป็นวิธียืนยันตัวตนเท่านั้น: ไม่เอารูป ไม่เอาชื่อที่แสดง ไม่นำเข้าข้อมูลติดต่อ — โปรไฟล์สร้างที่นี่ (NFR-135, NFR-136) การกู้คืนคือการยืนยันตัวตน บัญชีจึงแข็งเท่าทางที่อ่อนที่สุดที่ประกาศไว้ (FR-371) และห้ามถอนทางเข้าสุดท้าย (FR-368) สิ่งเดียวที่ credential แตะไม่ได้คือตัวตนของคน: การพิสูจน์ตัวตนอยู่ที่ IdentityCheck ภายใต้ธรรมเนียม A-75 หกเส้นทาง: WF-117 ผูกผู้ให้บริการ · WF-118 สร้าง passkey · WF-119 กู้คืน · WF-120 เบอร์หายไป · WF-121 เพิ่ม เลื่อน หรือถอนเบอร์ · WF-122 พิสูจน์ว่าคุณคือใครแล้วกลับเข้าไป
v0.43.0 (PROP-068) — one factor list becomes two. On client direction the day after PROP-067 was applied, the mobile number stops being an authentication method. entry_factors admit — passkey (aal2) · provider (aal1) · device_key (aal1, aal2 when hardware-backed with user verification). verification_factors verify and never mint a session — phone_otp, with no AAL of its own, and id_card_liveness. The OTP keeps exactly three jobs: verify a number to itself, answer a risk challenge, and authorise a device enrolment or a recovery (FR-377). The direction could not be applied by deletion — a grower whose handset has no provider account and no screen lock would have held an account he could not enter — so the third door is supplied in the same change set as the DeviceCredential (FR-379, D-1). What "suspicious" means is now published: five deterministic signals (new_device · factor_change · repeated_failure · recovery_started · holder_report), with location, impossible travel, typing cadence and vendor scores deliberately excluded and the four reasons for excluding them written into the specification rather than a decision log (FR-382, D-4). A challenge stops the act and never the reading, its only exception being the holder’s own alarm (FR-381, D-6), and it is between the platform and the holder alone (NFR-139, D-7). Two more walks: WF-123 a new phone · WF-124 a challenge is raised and answered; WF-117 and WF-120 are amended rather than replaced.
v0.43.0 (PROP-068) — รายการปัจจัยเดียวกลายเป็นสองรายการ ตามคำสั่งลูกค้าในวันถัดจากที่ PROP-067 apply เบอร์โทรมือถือเลิกเป็นวิธียืนยันตัวตนเพื่อเข้าใช้ entry_factors ให้เข้า — passkey (aal2) · provider (aal1) · device_key (aal1 และ aal2 เมื่อมีฮาร์ดแวร์รองรับพร้อมการยืนยันผู้ใช้) verification_factors ใช้ยืนยันและไม่สร้างเซสชัน — phone_otp ที่ไม่มี AAL ของตัวเอง และ id_card_liveness OTP เหลือสามงานพอดี: ยืนยันเบอร์กับตัวเบอร์เอง ตอบด่านเมื่อสงสัย และอนุญาตการลงทะเบียนเครื่องหรือการกู้คืน (FR-377) คำสั่งนี้ apply ด้วยการลบไม่ได้ — ชาวไร่ที่เครื่องไม่มีบัญชีผู้ให้บริการและไม่ได้ตั้งล็อกหน้าจอจะถือบัญชีที่เข้าไม่ได้ — จึงต้องให้ประตูที่สามมาในชุดเดียวกันเป็น DeviceCredential (FR-379, D-1) ความหมายของ "น่าสงสัย" ถูกประกาศแล้ว: ห้าสัญญาณที่ชี้ขาดได้ (new_device · factor_change · repeated_failure · recovery_started · holder_report) โดยตัดตำแหน่ง การเดินทางที่เป็นไปไม่ได้ จังหวะการพิมพ์ และคะแนนของผู้ให้บริการออกอย่างจงใจ พร้อมเขียนเหตุผลสี่ข้อไว้ในข้อกำหนด ไม่ใช่ในบันทึกการตัดสิน (FR-382, D-4) ด่านหยุดการกระทำ ไม่หยุดการอ่าน ยกเว้นเพียงสัญญาณเตือนของเจ้าของเอง (FR-381, D-6) และเป็นเรื่องระหว่างแพลตฟอร์มกับเจ้าของเท่านั้น (NFR-139, D-7) เพิ่มสองเส้นทาง: WF-123 โทรศัพท์เครื่องใหม่ · WF-124 ยกด่านและตอบด่าน; WF-117 และ WF-120 ถูกแก้ ไม่ใช่ถูกแทน
Applied 2026-08-06 as spec v0.53.0. Two aggregate roots enter the federation context, both deliberately outside every tenant root. NetworkInvitation holds the two invariants that make an invitation safe: a record is bound to at most ONE live invitation, and acceptance writes the claim in the same transaction as the status change, so a token cannot be spent twice. Issuing or revoking one never locks the steward’s farmer records. OnboardingSession holds nothing anyone else reads: it may be written on every step without touching Person, PhoneNumber, ExternalIdentity or DeviceCredential, and losing it costs a grower his place in the sequence and never a fact.
apply 2026-08-06 เป็น spec v0.53.0 aggregate root สองอันเข้าสู่ context federation ทั้งคู่อยู่นอก root ของ tenant โดยตั้งใจ NetworkInvitation ถือข้อคงที่สองข้อที่ทำให้คำเชิญปลอดภัย: หนึ่งระเบียนผูกกับคำเชิญที่ยังมีชีวิตได้ใบเดียว และการตอบรับเขียนการรับระเบียนในทรานแซกชันเดียวกับการเปลี่ยนสถานะ OnboardingSession ไม่ถืออะไรที่คนอื่นต้องอ่าน เขียนได้ทุกขั้นโดยไม่แตะ Person PhoneNumber ExternalIdentity หรือ DeviceCredential และถ้าหายไปก็เสียเพียงตำแหน่งในลำดับ
Five events join the context — NetworkInvitationIssued · NetworkInvitationAccepted · NetworkInvitationDeclined · NetworkInvitationExpired · OnboardingCompleted. The Invitation* family is owned by platform_ops and is not reused: one admits a capacity, the other admits a person to a record, and a shared event name would make the audit unreadable. The binding’s own life keeps the applied vocabulary — DeviceEnrolled and DeviceEnrolmentReversed are what the draft called DeviceBound and DeviceUnbound, and RecoveryCompleted is AccessRecovered; the change set reconciles the names rather than minting synonyms.
เหตุการณ์ห้าตัวเข้าสู่ context — NetworkInvitationIssued · NetworkInvitationAccepted · NetworkInvitationDeclined · NetworkInvitationExpired · OnboardingCompleted ตระกูล Invitation* เป็นของ platform_ops และไม่ถูกใช้ซ้ำ ส่วนวงจรชีวิตของการผูกเครื่องใช้คำเดิมที่ apply แล้ว — DeviceEnrolled และ DeviceEnrolmentReversed คือสิ่งที่ร่างเรียกว่า DeviceBound และ DeviceUnbound ส่วน RecoveryCompleted คือ AccessRecovered ชุดการเปลี่ยนแปลงนี้ปรับชื่อให้ตรงกันแทนการสร้างคำพ้อง
| Revฉบับ | Dateวันที่ | Changesการเปลี่ยนแปลง |
|---|---|---|
| 1.0 | 2026-07-08 | Initial version — PROP-005 (FED, spec v6.0): the federation bounded context — the sole-writer / decode-only consumption architecture, aggregates & invariants (Person · Tenant · Membership · RolePermission · ViewAsSession), federation domain events, the wangkanai/federation + ASP.NET Core Identity foundation, and the federation ubiquitous language.ฉบับแรก — PROP-005 (FED, spec (สเปก) v6.0): บริบท federation — สถาปัตยกรรมการบริโภคแบบผู้เขียนเดียว/ถอดรหัสอย่างเดียว แอกกริเกตและกฎคงที่ (Person · Tenant · Membership · RolePermission · ViewAsSession) เหตุการณ์โดเมน federation รากฐาน wangkanai/federation + ASP.NET Core Identity และภาษากลางของ federation |
| 0.1.0 | 2026-07-11 | PROP-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.0 | 2026-07-13 | PROP-018 P2 (spec v0.4.0): aggregate map figure + normative aggregate boundaries & transaction rules (Section 5) and the DI component lifetime map (Section 6) for federation — rendered from the graph's dataModeling block (aggregates · lifecycles).PROP-018 P2 (spec v0.4.0): ภาพผัง aggregate + ขอบเขต aggregate และกติกา transaction เชิงบรรทัดฐาน (ข้อ 5) และผัง lifetime ของ component แบบ DI (ข้อ 6) ของ federation — render จาก block dataModeling ใน graph (aggregates · lifecycles) |
| 0.3.0 | 2026-07-25 | PROP-026 accepted & applied (spec v0.25.0, D-3/D-4): the fed-directory aggregate joins Section 4 and a new Section 10 states the directory invariants — sole compiler, token shape, no transitive trust, delegation-is-administration, explainability and unchanged identity. Events DepartmentCreated / DepartmentReparented / DirectoryGrantIssued / DirectoryGrantRevoked are produced by federation.PROP-026 รับและ apply (spec v0.25.0, D-3/D-4): aggregate fed-directory เข้าข้อ 4 และเพิ่มข้อ 10 ระบุกฎคงที่ของไดเรกทอรี — ผู้คอมไพล์รายเดียว รูปของ token ไม่มีความเชื่อถือส่งต่อ การมอบอำนาจคือการดูแล การอธิบายย้อนได้ และอัตลักษณ์ที่ไม่เปลี่ยน เหตุการณ์ DepartmentCreated / DepartmentReparented / DirectoryGrantIssued / DirectoryGrantRevoked ผลิตโดย federation |
| 0.4.0 | 2026-07-30 | PROP-040 approved & applied (spec v0.41.0): new Section 11 — the permission foundation’s six aggregate boundaries (ActionCatalog · PermissionGroup · AccountActionOverride · CompositionRule · EscalationRequest · OfflineGrantSet), eleven audit events and three ubiquitous-language additions (ตำแหน่ง · คำขออนุมัติ · facet). Federation becomes the sole permission RESOLVER as well as the sole identity writer. Sections 11/12 renumbered to 12/13.PROP-040 อนุมัติและ apply (spec v0.41.0): เพิ่มข้อ 11 — หกขอบเขต aggregate ของฐานรากสิทธิ์ (ActionCatalog · PermissionGroup · AccountActionOverride · CompositionRule · EscalationRequest · OfflineGrantSet) event สำหรับ audit สิบเอ็ดรายการ และคำในภาษากลางสามคำ (ตำแหน่ง · คำขออนุมัติ · facet) federation เป็นผู้ตัดสินสิทธิ์รายเดียวเพิ่มจากการเป็นผู้เขียนอัตลักษณ์รายเดียว เลขข้อ 11/12 เปลี่ยนเป็น 12/13 |
| 0.5.0 | 2026-07-31 | PROP-067 approved & applied — spec v0.42.0. New Section 10 — ways in: authentication as its own subject beneath the six layers. The Person aggregate absorbs PhoneNumber · ExternalIdentity · Passkey; three aggregates join the context (AuthSession · AuthEvent · IdentityCheck, Sections 4 and 5); seven components enter the lifetime map (Section 6); eight events (Section 7); three terms in the ubiquitous language (Section 9) — ทางเข้า · กุญแจผ่าน · ผู้ให้บริการตัวตน. Convention A-75, a credential is not an identity, governs the whole section.PROP-067 อนุมัติและ apply — spec v0.42.0. เพิ่มข้อ 10 — ทางเข้า: การยืนยันตัวตนเป็นเรื่องของตัวเองใต้หกชั้น aggregate Person รับ PhoneNumber · ExternalIdentity · Passkey; เพิ่ม aggregate สามตัวใน context (AuthSession · AuthEvent · IdentityCheck ข้อ 4 และ 5); เพิ่ม component เจ็ดรายการในผัง lifetime (ข้อ 6); เหตุการณ์แปดรายการ (ข้อ 7); คำสามคำในภาษากลาง (ข้อ 9) — ทางเข้า · กุญแจผ่าน · ผู้ให้บริการตัวตน ธรรมเนียม A-75 credential ไม่ใช่ตัวตน คุมทั้งข้อนี้ |
| 0.6.0 | 2026-07-31 | PROP-068 approved & applied — spec v0.43.0. Section 10 extended: one factor list becomes two (entry_factors admit · verification_factors verify), the OTP keeps three jobs and mints no session (FR-377), and DeviceCredential joins the Person boundary as the third entry factor with the last-door invariant recomputed over entry factors only (FR-368 · FR-379, D-1, D-8). New convention A-76 — a channel is not a credential, the sibling of A-75. Two services in the lifetime map (DeviceCredentialService · RiskSignalEvaluator), two domain events (DeviceEnrolled · DeviceEnrolmentReversed — a risk challenge is deliberately not one, NFR-139), three ubiquitous-language terms (กุญแจในเครื่อง · ด่านยืนยันเมื่อสงสัย · สัญญาณเสี่ยง) and two walks (WF-123 · WF-124).PROP-068 อนุมัติและ apply — spec v0.43.0. ขยายข้อ 10: รายการปัจจัยเดียวกลายเป็นสองรายการ (entry_factors ให้เข้า · verification_factors ใช้ยืนยัน) OTP เหลือสามงานและไม่สร้างเซสชัน (FR-377) และ DeviceCredential เข้าสู่ขอบเขต Person เป็นปัจจัยที่ให้เข้าตัวที่สาม โดยคิดกฎประตูสุดท้ายจากปัจจัยที่ให้เข้าเท่านั้น (FR-368 · FR-379, D-1, D-8) ธรรมเนียมใหม่ A-76 — ช่องทางไม่ใช่ credential ข้อพี่น้องของ A-75 เพิ่มบริการสองรายการในผัง lifetime เหตุการณ์โดเมนสองรายการ คำในภาษากลางสามคำ และเส้นทางสองเส้น (WF-123 · WF-124) |
| 0.7.0 | 2026-08-03 | PROP-074 approved & applied — spec v0.45.0. Section 4 gains the PersonCapacity and qualification invariants (evidence only — competence, authority and standing are three things); Section 5 gains three single-row aggregate boundaries and the persistence invariant: every standing's holder key is NOT NULL and carries a foreign key — one sentence that rules out a single shared table without naming a framework (NFR-141, A-80). The Tenant boundary note records that the tenant exists because a capacity was requested (FR-392).PROP-074 อนุมัติและ apply แล้ว — spec v0.45.0 ข้อ 4 เพิ่มกฎคงที่ของ PersonCapacity และ qualification ข้อ 5 เพิ่มสามขอบเขตรายแถวและกฎคงที่ของการจัดเก็บ: คีย์ผู้ถือของทุกสถานะเป็น NOT NULL และมี foreign key (NFR-141 · A-80 · FR-392) |
| 0.8.0 | 2026-08-03 | PROP-075 approved & applied — spec v0.46.0. The federation model gains two axes inside the tenant and loses an enum. Tenant.kind is retired (A-81, R-CONTAINER); Department and LegalEntity merge into Department (A-82, R-ONETREE) with its own aggregate root moved into the federation context; Site gets a root of its own and DepartmentSite commits inside the department boundary (A-83, R-SITE / R-PRESENCE); OwnershipEdge keeps its own boundary and joins legally-classified departments. The legal_registration qualification commits in the qualification boundary applied at v0.45.0 and NEVER inside the tenant boundary. PartyUpgradedToOrganization is retired for DepartmentRegistered, joined by DepartmentReparented and DepartmentTransferred — there is no upgrade, only a registration (R-NOUPGRADE).PROP-075 อนุมัติและ apply — spec v0.46.0 Department กับ LegalEntity รวมเป็น Department และเพิ่มขอบเขต aggregate ของ Site กับ DepartmentSite (A-81 · A-82 · A-83 · v0.45.0) |
| 0.9.0 | 2026-08-03 | PROP-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.1 | 2026-08-03 | PROP-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.9.2 | 2026-08-03 | Bilingual parity repair — spec v0.48.2 (patch). 3 .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 จำนวน 3 คู่ในเอกสารนี้ระบุรหัสในภาษาอังกฤษที่ฝั่งภาษาไทยไม่มี ตอนนี้ฝั่งภาษาไทยมีรหัสทุกตัวที่ภาษาอังกฤษระบุ พบโดยการตรวจ V-5 ของ tools/validate.html (NFR-143, PROP-076, spec v0.48.0) และถูกบันทึกเป็น OVERRIDE ที่มีวันที่ใน SPEC-APP-PLT Rev 0.9.0 มาจนถึงตอนนี้ แถวนี้ปลดการยกเว้นนั้นสำหรับเอกสารฉบับนี้ ภาษาไทยเป็นภาษาหลักของคลังเอกสารนี้ ผู้อ่านฝั่งภาษาไทยจึงขาดข้อเท็จจริงที่ภาษาอังกฤษยืนยันไว้ ไม่มีการเปลี่ยนแบบจำลอง: ไม่มี requirement เอนทิตี เหตุการณ์ สถานะ หรือตัวเลขใดขยับ |
| 0.9.3 | 2026-08-03 | Thai-half correction — spec v0.48.3 (patch). The Section 4 Person-boundary note read, in Thai, “OTP เป็นปัจจัยหลัก” — the OTP is the primary factor — the opposite of the applied model its own English half states: the OTP is no longer a factor that admits anyone (FR-377, A-76), and the person’s entry factors are his passkeys, his provider accounts and the keys on his own devices, at least one of which survives every removal (FR-368). The Thai also omitted that one active number per person is a reachability constraint and not an entry one (NFR-14). Rewritten to the applied model. Found by reading the pairs check V-5 had flagged at spec v0.48.2 — the check reports missing ids, and here the missing ids were standing over an inverted requirement. State it plainly: V-5 PASSES on this note now, and passed on it the moment the ids were appended at v0.48.2, while the sentence still said the opposite of the model. A token diff cannot see an inverted claim; no check in the ten can. That is a limit of the tool, not a gap in this repair.แก้ฝั่งภาษาไทย — spec v0.48.3 (patch) หมายเหตุขอบเขต Person ในข้อ 4 ฝั่งภาษาไทยเขียนว่า “OTP เป็นปัจจัยหลัก” ซึ่งตรงข้ามกับแบบจำลองที่ apply แล้วตามที่ฝั่งภาษาอังกฤษของมันเองระบุ: OTP ไม่เป็นปัจจัยที่ให้ใครเข้าระบบอีกต่อไป (FR-377, A-76) และปัจจัยทางเข้าของบุคคลคือ passkey บัญชีผู้ให้บริการ และกุญแจในเครื่องของตน ซึ่งต้องเหลืออย่างน้อยหนึ่งอย่างทุกครั้งที่ถอนออก (FR-368) ฝั่งภาษาไทยยังขาดข้อความว่าหนึ่งเบอร์ active ต่อหนึ่งบุคคลเป็นข้อบังคับเรื่องการติดต่อได้ ไม่ใช่ทางเข้า (NFR-14) เขียนใหม่ให้ตรงกับแบบจำลองที่ apply แล้ว พบจากการอ่านคู่ที่ V-5 เคยรายงานไว้ที่ spec v0.48.2 กล่าวให้ตรง: V-5 ผ่านหมายเหตุนี้แล้ว และผ่านตั้งแต่วินาทีที่เติมรหัสเข้าไปที่ v0.48.2 ขณะที่ประโยคยังกล่าวตรงข้ามกับแบบจำลอง การเทียบโทเคนมองไม่เห็นข้อกำหนดที่กลับหัว และไม่มีการตรวจข้อใดในสิบข้อที่เห็น นั่นเป็นขอบเขตของเครื่องมือ ไม่ใช่ช่องว่างของการซ่อมครั้งนี้ |
| 0.10.0 | 2026-08-04 | PROP-072 approved & applied — spec v0.50.0. The MemberInvitation aggregate joins the context with its own boundary, deliberately outside the Tenant root (Sections 4 and 5): an invitation is issued, revoked and expired without touching the tenant aggregate, and ACCEPTANCE is the single act that crosses — one transaction writing Membership, SurfaceRoleGrant and permission-group membership, or nothing (FR-398), so no person is ever a member of a tenant with no position. Four domain events added in Section 7 — MemberInvited · MemberInvitationDeclined · MembershipJoined · PositionChanged, producer federation — deliberately NOT named Invitation*, because that family belongs to platform_ops and the operator object (PROP-072 L-2); MembershipLeft is reused unchanged and now MEANS the eight-consequence removal contract. Three ubiquitous-language rows: member invitation · position · removal contract. One inherited structural defect fixed in passing: Section 4's table closed its </tbody> BEFORE its last two rows (the PersonCapacity and qualification rows added at v0.45.0), so two normative invariants sat outside the table body; the close now follows the last row.PROP-072 อนุมัติและ apply แล้ว — spec v0.50.0 aggregate MemberInvitation เข้าร่วม context พร้อมขอบเขตของตัวเอง ซึ่งตั้งใจให้อยู่นอก root ของ Tenant (ข้อ 4 และ 5): คำเชิญถูกออก เพิกถอน และหมดอายุได้โดยไม่แตะ aggregate ของ tenant และการตอบรับเป็นการกระทำเดียวที่ข้ามเส้น — ทรานแซกชันเดียวเขียน Membership SurfaceRoleGrant และการเป็นสมาชิกกลุ่มสิทธิ์ หรือไม่เขียนเลย (FR-398) จึงไม่มีใครเป็นสมาชิกของ tenant โดยไม่มีตำแหน่ง เพิ่มเหตุการณ์โดเมนสี่รายการในข้อ 7 — MemberInvited · MemberInvitationDeclined · MembershipJoined · PositionChanged ผู้ผลิตคือ federation — ตั้งใจไม่ใช้ชื่อ Invitation* เพราะตระกูลนั้นเป็นของ platform_ops และวัตถุของผู้ดำเนินการ (PROP-072 L-2) ส่วน MembershipLeft ใช้ซ้ำโดยไม่เปลี่ยนและตอนนี้หมายถึงสัญญาการถอดออกแปดข้อ เพิ่มภาษากลางสามแถว: คำเชิญสมาชิก · ตำแหน่ง · สัญญาการถอดออก แก้ข้อบกพร่องเชิงโครงสร้างที่สืบทอดมาหนึ่งจุด: ตารางในข้อ 4 ปิด </tbody> ก่อนสองแถวสุดท้าย (แถว PersonCapacity และ qualification ที่เพิ่มที่ v0.45.0) ทำให้กฎคงที่สองข้ออยู่นอก body ของตาราง ตอนนี้ปิดหลังแถวสุดท้ายแล้ว |
| 0.11.0 | 2026-08-04 | PROP-071 approved & applied — spec v0.52.0. Two aggregates join the context, each with its own boundary outside every tenant root: Referral (a code belongs to a person, not to a tenant) and ReferralCredit (a different subject, so a different boundary and a different privacy class). Four events — ReferralIssued · ReferralOpened, declared counted, never routed so no consumer can build a per-person feed · ReferralAttributed · ReferralRevoked — all producer federation, deliberately NOT borrowing the Invitation* family, which belongs to platform_ops. Four glossary terms: referral · arrival attribution (always qualified, because PROP-064's season-one attribution is a different term) · proof card · seeded communicator.PROP-071 อนุมัติและ apply — spec v0.52.0 aggregate สองตัวเข้าสู่ context โดยแต่ละตัวมีขอบเขตของตัวเองนอก root ของ tenant ทุกตัว: Referral และ ReferralCredit เหตุการณ์สี่รายการ producer federation โดย ReferralOpened ประกาศว่านับเท่านั้น ไม่มีเส้นทางส่งต่อ และตั้งใจไม่ยืมตระกูล Invitation* ซึ่งเป็นของ platform_ops คำศัพท์สี่คำ: การบอกต่อ · การระบุที่มาของการมาถึง · การ์ดหลักฐาน · ผู้บอกต่อ |
| 0.12.0 | 2026-08-06 | PROP-070 approved & applied — spec v0.53.0. Two aggregate boundaries enter the federation context — NetworkInvitation (a record is bound to at most one live invitation; acceptance and claim commit in one transaction) and OnboardingSession (a sitting holds nothing anyone else reads and authorises nothing) — with five new events (NetworkInvitation·Issued/Accepted/Declined/Expired · OnboardingCompleted); the Invitation* family stays owned by platform_ops and is not reused.PROP-070 อนุมัติและ apply — spec v0.53.0 ขอบเขต aggregate สองอันเข้าสู่ context federation — NetworkInvitation และ OnboardingSession — พร้อมเหตุการณ์ใหม่ห้าตัว ตระกูล Invitation* ยังเป็นของ platform_ops และไม่ถูกนำมาใช้ซ้ำ |