Cane Agency · DDD Seriesสถาบันอ้อย · ชุดเอกสาร DDD
This is the OCSB — regulator office (สอน.) perspective of SPEC-DDD for the ocsb capacity. Cross-cutting content lives in the master; the single source of truth is the graph. Re-homed and renamed by PROP-015 (v0.2.0) — formerly SPEC-DDD-GOV at docs/gov/ocsb/.
นี่คือมุมมอง สำนักงานคณะกรรมการอ้อยและน้ำตาลทราย (สอน.) ของ SPEC-DDD สำหรับ capacity ocsb เนื้อหาข้ามมุมมองอยู่ในเอกสารหลัก แหล่งความจริงเดียวคือ graph ย้ายและเปลี่ยนชื่อโดย PROP-015 (v0.2.0) — เดิมคือ SPEC-DDD-GOV ที่ docs/gov/ocsb/
The normative consistency boundaries of this perspective's home context (regulation), 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 อยู่มุมมองนี้ (regulation) 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ข้อมูล |
|---|---|---|---|---|
| RevenueAccount | RevenueAccount | regulation | One per season; figures mutate until the 70:30 split is finalized, then frozen.หนึ่งรายการต่อฤดู; ตัวเลขแก้ได้จนสรุปการแบ่ง 70:30 แล้วตรึง | ERD-GOV-OCSB |
| CanePriceAnnouncement | CanePriceAnnouncement | regulation | Announcements append; a correction is a new announcement superseding by announced_at.ประกาศ append; การแก้คือประกาศใหม่ที่แทนที่ตาม announced_at | ERD-GOV-OCSB |
| CcsAudit | CcsAudit | regulation | Findings freeze on closure; mills annotate — never author — audit records.ผลตรวจตรึงเมื่อปิด; โรงงานหมายเหตุได้แต่ไม่ใช่ผู้เขียนระเบียนตรวจ | ERD-GOV-OCSB |
| BurntCaneCompliance | BurntCaneCompliance | regulation | Derived nightly from CrushingDay closes — system-authored, append-only.คำนวณรายคืนจากการปิดวันหีบ — ระบบเป็นผู้เขียน append-only | ERD-GOV-OCSB |
| SugarBid | SugarBid | regulation | Append-only auction results.ผลประมูลแบบ append-only | ERD-GOV-OCSB |
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เหตุผล |
|---|---|---|---|
| PriceAnnouncementCache | cache | singleton | Read platform-wide at settlement; refresh on announcement events.อ่านทั้ง platform ตอนปิดงวด; refresh เมื่อมีประกาศใหม่ |
| CcsAuditService | app_service | scoped | — |
| ComplianceDeriveJob | hosted_service | singleton | Nightly; scoped unit per mill-day close → BurntCaneCompliance.รายคืน; scope ต่อการปิดวันหีบ → BurntCaneCompliance |
| Revฉบับ | Dateวันที่ | Changeการเปลี่ยนแปลง |
|---|---|---|
| 0.2.0 | 2026-07-12 | PROP-015: renamed capacity government→ocsb and surface regulator→ocsb; re-homed to docs/ddd/gov/; folded the กอน. Board governance (Section 3) in from the retired SPEC-DDD-BOARD. Redirect left at the old path.PROP-015: เปลี่ยนชื่อ capacity government→ocsb และ surface regulator→ocsb; ย้ายมา docs/ddd/gov/; ยุบการกำกับของ กอน. (Section 3) จาก SPEC-DDD-BOARD ที่ยกเลิก มี redirect ที่พาธเดิม |
| 0.1.0 | 2026-07-11 | Initial split from the area master (PROP-014, spec v0.1.0).แยกจากเอกสารหลัก (PROP-014, spec v0.1.0) |
| 0.3.0 | 2026-07-13 | PROP-018 P2 (spec v0.4.0): aggregate map figure + normative aggregate boundaries & transaction rules (Section 4) and the DI component lifetime map (Section 5) for regulation — rendered from the graph's dataModeling block (aggregates · lifecycles).PROP-018 P2 (spec v0.4.0): ภาพผัง aggregate + ขอบเขต aggregate และกติกา transaction เชิงบรรทัดฐาน (ข้อ 4) และผัง lifetime ของ component แบบ DI (ข้อ 5) ของ regulation — render จาก block dataModeling ใน graph (aggregates · lifecycles) |
| 0.4.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.4.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 |