Cane Agency · DDD Seriesสถาบันอ้อย · ชุดเอกสาร DDD
The Platform Intelligence (PLT) perspective of SPEC-DDD, created by PROP-046 (spec v0.18.0). PLT is the department of derived intelligence: contexts that compute over facts owned by tenant contexts and publish platform-wide read models behind explicit isolation walls.
มุมมอง ข่าวกรองระดับ platform (PLT) ของ SPEC-DDD สร้างโดย PROP-046 (spec (สเปก) v0.18.0) PLT คือหน่วยงานของข่าวกรองเชิงผลลัพธ์: context ที่คำนวณจากข้อเท็จจริงของ context ฝั่ง tenant แล้วเผยแพร่ read model ระดับ platform หลังกำแพงการแยกที่ชัดแจ้ง
Re-homed here from the mill family (OQ-3, graph-first). The reliability loop over the slot machinery — invariants:
ย้ายบ้านมาจากตระกูลโรงงาน (OQ-3 แบบ graph-first) วงจรความน่าเชื่อถือเหนือกลไก slot — กฎคงที่:
Aggregates: ReliabilityEvent (append-only fact) · ReliabilityScore (recomputable read model) · ScoringPolicy (operator-versioned) · BookingPrivilegePolicy (mill policy). Events: ReliabilityEventRecorded, BookingPrivilegeChanged (consumed by mobile, notifications, mill portal). Wall: event rows are mill-scoped; only the derived score crosses tenants — bank reads resolve through exactly one door — an active ConsentGrant scope reliability_score delivering the Reliability Extract, never event rows (PROP-037 applied, spec v0.29.0; FR-313…315, NFR-107/108).
Aggregate: ReliabilityEvent (ข้อเท็จจริง append-only) · ReliabilityScore (read model คำนวณซ้ำได้) · ScoringPolicy (operator กำกับ version) · BookingPrivilegePolicy (นโยบายโรงงาน) เหตุการณ์: ReliabilityEventRecorded, BookingPrivilegeChanged (ผู้บริโภค: mobile การแจ้งเตือน portal โรงงาน) กำแพง: แถวเหตุการณ์เป็นระดับโรงงาน; มีเพียงคะแนนที่เป็นผลลัพธ์ข้าม tenant — ธนาคารอ่านได้ทางเดียว — ConsentGrant scope reliability_score ที่ยังมีผล ซึ่งส่งมอบ Reliability Extract ไม่ใช่แถวเหตุการณ์ (apply PROP-037 แล้ว spec v0.29.0; FR-313…315, NFR-107/108)
SeasonContext (v0.30.0, PROP-052). The context gains a further aggregate: an append-only register of exogenous season conditions — cause, severity, area and period, a named external authority as source, and a visible declared_at. Two invariants govern it. Recording is not judging (R-1): a stored fact carries no verdict — the register feeds no score, permits no comparison and reaches no surface, report or export in v1 (NFR-109). Nobody with an interest writes the context of the comparison (OQ-2): a mill or association may submit; only the platform records. Default grain is the tumboon (ตำบล) on the PROP-047 closed registries (OQ-1). The lead reference on ReliabilityEvent (lead_tenant_id? · lead_mandate_id?, FR-316) is a snapshot and never a pointer: it answers "under whom did this happen", not "who is his lead now".
SeasonContext (v0.30.0, PROP-052) context นี้ได้ aggregate เพิ่มอีกหนึ่ง: ทะเบียน append-only ของสภาพฤดูกาลภายนอก — สาเหตุ ความรุนแรง พื้นที่และช่วงเวลา หน่วยงานภายนอกที่ระบุชื่อใน source และ declared_at ที่มองเห็นได้ มีกฎคงที่สองข้อ การบันทึกไม่ใช่การตัดสิน (R-1) ข้อเท็จจริงที่เก็บไว้ไม่มีคำตัดสิน ไม่ป้อนคะแนน ไม่เปิดให้เปรียบเทียบ และไม่ปรากฏบนหน้าจอ รายงาน หรือการส่งออกใดใน v1 (NFR-109) ผู้มีส่วนได้เสียไม่เขียนบริบทของการเปรียบเทียบ (OQ-2) โรงงานหรือสมาคมเสนอได้ แต่ผู้บันทึกคือ platform เท่านั้น ค่าเริ่มต้นคือระดับตำบลบนทะเบียนปิดของ PROP-047 (OQ-1) ส่วนข้อมูลอ้างอิงหัวตันบน ReliabilityEvent (FR-316) เป็น snapshot ไม่ใช่ตัวชี้: ตอบว่า “เรื่องนี้เกิดใต้ใคร” ไม่ใช่ “ตอนนี้ใครเป็นหัวตันของเขา”
SuspensionSpell (v0.31.0, PROP-036 Part 1). A fourth aggregate, and the first in this context that is a privilege state rather than a measurement: one spell of one tenant at ONE mill, active → closed only, with started_at and ends_at fixed at open so a published-ladder revision can never lengthen a running spell (NFR-110). Its invariant is deliberately narrow, and the narrowness is the design: because no transaction may span two mills or two tenants, non-propagation is structural — a member's spell cannot reach the lead's other members, a lead's spell cannot reach his network, and a group site's spell cannot reach its sibling site (FR-319). The score remains platform-wide; the consequence of the score is not.
SuspensionSpell (v0.31.0, PROP-036 ส่วนที่ 1) aggregate ที่สี่ และเป็นตัวแรกใน context นี้ที่เป็นสถานะสิทธิ์ ไม่ใช่การวัด: หนึ่งช่วงพักของ tenant เดียวที่โรงงานเดียว เปลี่ยนสถานะ active → closed เท่านั้น และ started_at กับ ends_at ตรึงตอนเปิด การแก้บันไดที่ประกาศไว้จึงยืดช่วงพักที่กำลังเดินไม่ได้ (NFR-110) กฎคงที่ของมันแคบโดยเจตนา และความแคบนั้นคือการออกแบบ: เพราะไม่มี transaction ใดคร่อมสองโรงงานหรือสอง tenant การไม่ส่งผลข้ามจึงเป็นเรื่องโครงสร้าง (FR-319) คะแนนยังเป็นระดับ platform แต่ผลของคะแนนไม่ใช่
Release tags belong to artifacts, not containers (v0.40.0, PROP-064 OQ-4). The farmer_reliability context no longer carries a container-level release: v2 tag — the five deferred entities carry their own (ReliabilityEvent · ReliabilityScore · ScoringPolicy · BookingPrivilegePolicy · SuspensionSpell). Tagging the container had deferred two v1 members nobody voted to defer, SeasonContext and BenchmarkCohort, along with FR-317 and NFR-109. A context is a domain boundary; release is a property of artifacts (A-66).
ป้ายรุ่นเป็นของ artifact ไม่ใช่ของภาชนะ (v0.40.0, PROP-064 OQ-4) context farmer_reliability ไม่ถือป้าย release: v2 ระดับภาชนะอีกต่อไป — entity ที่เลื่อนทั้งห้าตัวถือป้ายของตนเอง (ReliabilityEvent · ReliabilityScore · ScoringPolicy · BookingPrivilegePolicy · SuspensionSpell) การติดป้ายที่ภาชนะได้เลื่อนสมาชิก v1 สองตัวที่ไม่มีใครลงมติให้เลื่อน คือ SeasonContext และ BenchmarkCohort พร้อมกับ FR-317 และ NFR-109 context คือขอบเขตโดเมน ส่วน release เป็นคุณสมบัติของ artifact (A-66)
The anchor tenant. Register locally, understand nationally — invariants:
ผู้อยู่อาศัยหลัก ลงทะเบียนที่โรงงาน เข้าใจทั้งประเทศ — กฎคงที่:
Aggregates: MasterTruck (derived identity) · TruckLink (evidence-graded link) · MasterPlatePeriod (declared plate history) · PlateChangeDeclaration (two-act change artifact). Events: MasterTruckLinked / MasterTruckUnlinked / MasterTruckMerged / PlateChangeDeclared / PlateChangeExecuted — consumed by admin + audit only; no tenant-facing notification ever consumes the link family. Wall: the linked movement graph is PDPA personal (OQ-7) — legitimate-interest operator analytics, anonymized outputs, no external/government access without its own future proposal.
Aggregate: MasterTruck (อัตลักษณ์ผลลัพธ์) · TruckLink (link จัดชั้นตามหลักฐาน) · MasterPlatePeriod (ประวัติป้ายแบบประกาศ) · PlateChangeDeclaration (เอกสารเปลี่ยนป้ายสองจังหวะ) เหตุการณ์: MasterTruckLinked / MasterTruckUnlinked / MasterTruckMerged / PlateChangeDeclared / PlateChangeExecuted — ผู้บริโภค: admin + audit เท่านั้น; ไม่มีการแจ้งเตือนฝั่ง tenant บริโภคตระกูล link เด็ดขาด กำแพง: กราฟการเคลื่อนที่ที่เชื่อมแล้วเป็นข้อมูลส่วนบุคคลตาม PDPA (OQ-7) — analytics ของ operator ตามประโยชน์อันชอบธรรม ผลลัพธ์นิรนาม ไม่มีการเข้าถึงจากภายนอก/ภาครัฐโดยไม่มีข้อเสนอใหม่
| Revฉบับ | Dateวันที่ | Changeการเปลี่ยนแปลง |
|---|---|---|
| 0.2.0 | 2026-07-23 | PROP-025 applied (spec v0.20.0) — new Section 3: the fleet_intelligence context with invariants M1–M4, four aggregates, the five-event link family, and the PDPA wall; delivery_weighbridge → fleet_intelligence relationship added; sections renumbered 3→4, 4→5.apply PROP-025 (spec v0.20.0) — ข้อ 3 ใหม่: context fleet_intelligence พร้อมกฎคงที่ M1–M4 สี่ aggregate ตระกูลเหตุการณ์ห้าตัว และกำแพง PDPA; เพิ่มความสัมพันธ์ delivery_weighbridge → fleet_intelligence; เลขข้อขยับ 3→4, 4→5 |
| 0.1.0 | 2026-07-22 | Created by PROP-046 (spec v0.18.0). Normative home of the farmer_reliability context (OQ-3 graph-first re-homing); R1–R3 invariants and the tenant wall stated as PLT content. Applied alone by client instruction (OQ-5 sequencing overridden).สร้างโดย PROP-046 (spec v0.18.0) บ้านเชิงบรรทัดฐานของ context farmer_reliability (ย้ายบ้านแบบ graph-first ตาม OQ-3); กฎคงที่ R1–R3 และกำแพง tenant เป็นเนื้อหาของ PLT apply เดี่ยวตามคำสั่งลูกค้า (ยกเว้นลำดับตาม OQ-5) |
| 0.3.0 | 2026-07-28 | PROP-037 applied (spec v0.29.0) — the farmer_reliability wall statement is resolved: the bank route is the ConsentGrant scope reliability_score and the aggregate Reliability Extract; the dangling control in ReliabilityScore’s note now points at an existing scope.apply PROP-037 (spec v0.29.0) — ข้อความกำแพงของ farmer_reliability ชี้ไปยัง scope ที่มีอยู่จริงแล้ว |
| 0.4.0 | 2026-07-28 | PROP-052 applied (spec v0.30.0) — the farmer_reliability context gains the SeasonContext aggregate (append-only exogenous season conditions; platform-authored per OQ-2, default grain tumboon per OQ-1) and the R-1 “recording is not judging” invariant, plus the R-2 snapshot-never-a-pointer rule behind the lead reference on ReliabilityEvent. No score, no band, no surface: retained but unreachable in v1 (NFR-109).apply PROP-052 (spec v0.30.0) — context farmer_reliability ได้ aggregate SeasonContext (สภาพฤดูกาลภายนอกแบบ append-only; platform เขียนตาม OQ-2 ค่าเริ่มต้นระดับตำบลตาม OQ-1) และกฎ R-1 “บันทึกไม่ใช่ตัดสิน” พร้อมกฎ R-2 snapshot ไม่ใช่ตัวชี้ที่อยู่เบื้องหลังข้อมูลอ้างอิงหัวตันบน ReliabilityEvent ไม่มีคะแนน ไม่มีชั้น ไม่มีหน้าจอ: เก็บไว้แต่เข้าไม่ถึงใน v1 (NFR-109) |
| 0.5.0 | 2026-07-28 | PROP-036 Part 1 applied — spec v0.31.0. Section 2 gains the SuspensionSpell aggregate — the context's first privilege state rather than a measurement — with the narrow invariant that makes suspension non-propagation structural (FR-319) and the fixed open/end timestamps behind NFR-110.apply PROP-036 ส่วนที่ 1 — spec v0.31.0 ข้อ 2 เพิ่ม aggregate SuspensionSpell ซึ่งเป็นสถานะสิทธิ์ตัวแรกของ context นี้ พร้อมกฎคงที่แคบที่ทำให้การไม่ส่งผลข้ามเป็นโครงสร้าง (FR-319) และเวลาที่ตรึงไว้เบื้องหลัง NFR-110 |
| 0.5.1 | 2026-07-30 | PROP-064 applied — spec v0.40.0 (patch). Release-tag hygiene: the farmer_reliability context is no longer tagged release: v2 as a container — its five deferred entities carry their own tags, so SeasonContext (PROP-052) and BenchmarkCohort (PROP-050), both v1, no longer read as deferred. No model change.apply PROP-064 — spec v0.40.0 (patch) จัดระเบียบป้ายรุ่น: context farmer_reliability ไม่ถูกติดป้าย release: v2 ในระดับภาชนะอีกต่อไป — entity ที่เลื่อนทั้งห้าถือป้ายของตน จึงทำให้ SeasonContext (PROP-052) และ BenchmarkCohort (PROP-050) ซึ่งเป็น v1 ไม่ถูกอ่านว่าเลื่อน ไม่มีการเปลี่ยนแบบจำลอง |
| 0.6.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.6.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 |