Cane Agency · Specification · Perspective documentสถาบันอ้อย · เอกสารข้อกำหนด · เอกสารรายมุมมอง
Department logic as it binds the quota farmer: network identity (incl. the virtual farmer lifecycle), quota planning, and the financing context whose credit book they run. Definitions mirror SPEC-DDD and the graph; this document adds the actor's reading, never divergent rules.
ตรรกะโดเมนที่ผูกพันหัวหน้าโควต้า: ตัวตนเครือข่าย (รวมวงจรชีวิตลูกไร่ virtual) การวางแผนโควตา และบริบทสินเชื่อที่เขาบริหารสมุด นิยามสะท้อน SPEC-DDD และ graph (กราฟ); เอกสารนี้เพิ่มการอ่านของผู้ใช้ ไม่สร้างกฎที่แตกต่าง
| Contextบริบท | My slice of itส่วนของฉัน |
|---|---|
| Network & Identity | My sub-farmer network; I create virtual farmers, invite and convert them with history intact.เครือข่ายลูกไร่ของฉัน; ฉันสร้างลูกไร่ virtual เชิญและแปลงเป็นบัญชีจริงโดยประวัติครบ |
| Quota & Planning | My committed tonnes and their drawdown by the whole chain.ตันผูกพันของฉันและการใช้โดยทั้งสาย |
| Financing & Contract Farming | The credit book: lines to sub-farmers, the factory pass-through above me, repayment offsets below.สมุดสินเชื่อ: วงเงินให้ลูกไร่ วงเงินส่งผ่านจากโรงงานเหนือฉัน การหักกลบใต้ฉัน |
| Strategic Pricing v8.0 | I receive the mill's confidential ค่าอ้อยกลยุทธ์ and own the onward relay to my sub-farmers (OnwardPremiumSettlement) — often cash on the factory receipt, mirror / flat_per_t / split — without exposing the mill's headline terms.ฉันรับค่าอ้อยกลยุทธ์ที่เป็นความลับจากโรงงาน และเป็นเจ้าของการส่งต่อไปยังลูกไร่ (OnwardPremiumSettlement) — มักจ่ายสดตามใบส่งมอบ mirror / flat_per_t / split — โดยไม่เปิดเงื่อนไขหลักของโรงงาน |
| Books · Receivables · Cash Management v9.0 | My full books (PROP-010): cane receivable from the mill, payables to sub-farmers, เงินเกี๊ยว lent (asset) & borrowed (liability), the onward-relay expense and transport/harvest costs — all auto-posting; AR/AP, cash/bank reconciliation, period close and statements shared to a bank only via ConsentGrant scope books (NFR-24…26).สมุดบัญชีเต็มของฉัน (PROP-010): ลูกหนี้ค่าอ้อยจากโรงงาน เจ้าหนี้ต่อลูกไร่ เงินเกี๊ยวที่ปล่อย (สินทรัพย์) และที่กู้ (หนี้สิน) ค่าส่งต่อ ค่าขนส่ง/เก็บเกี่ยว — ลงอัตโนมัติทั้งหมด; AR/AP การกระทบยอด การปิดงวดและงบ แบ่งให้ธนาคารผ่าน ConsentGrant scope books เท่านั้น (NFR-24…26) |
| Aggregateแอกกริเกต | Invariants that bind meกฎคงที่ที่ผูกพันฉัน |
|---|---|
| FarmerNetwork (Farmer) | Depth 1, no cycles; virtual farmers belong to exactly my network, cannot log in/lend/receive direct payments; conversion keeps farmer_id and runs a citizen-ID duplicate check.ลึก 1 ชั้น ไม่มีวงวน; ลูกไร่ virtual สังกัดเครือข่ายฉันเท่านั้น เข้าระบบ/ให้กู้/รับเงินตรงไม่ได้; แปลงเป็นบัญชีจริงคง farmer_id และตรวจเลขบัตรซ้ำ |
| Quota | Unique per (farmer, season, mill); 5% tolerance; no bookings after season close.ไม่ซ้ำต่อชุด (ชาวไร่, ฤดู, โรงงาน); เผื่อ 5%; ไม่จองหลังปิดฤดู |
| CreditLine (owns CreditItem, Repayment) | Disbursed ≤ limit; downstream ≤ upstream; offsets ≤ outstanding; everything append-only.เบิกจ่าย ≤ เพดาน; ปลายทาง ≤ ต้นทาง; หักกลบ ≤ คงค้าง; ทุกอย่างต่อท้ายเท่านั้น |
| Crop (CFC-owned, binds my desk) | My purchases (ขายเหมาไร่) append deeds; cross-network moves need the other side’s confirmation.การซื้อของฉัน (ขายเหมาไร่) ต่อท้ายสมุดโอน; ข้ามเครือข่ายต้องได้รับการยืนยันอีกฝั่ง |
The normative consistency boundaries of this perspective's home contexts (quota_planning · financing), 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 อยู่มุมมองนี้ (quota_planning · financing) 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ข้อมูล |
|---|---|---|---|---|
| Season | Season | quota_planning | Reference root; opening/closing a season is operator-governed configuration.root อ้างอิง; การเปิด/ปิดฤดูเป็นการตั้งค่าภายใต้ operator | ERD-FED |
| Quota | Quota | quota_planning | delivered_t is updated EVENTUALLY from delivery events — never inside the delivery transaction; committed_t changes only via the quota holder.delivered_t ปรับแบบ eventual จาก delivery event — ไม่อยู่ใน transaction ของการส่งมอบ; committed_t แก้ได้โดยผู้ถือโควตาเท่านั้น | ERD-CFQ |
| CreditLine | CreditLine · CreditItem · Repayment | financing | A disbursement (CreditItem) validates Σ items ≤ limit_amt inside the transaction; repayment offsets post against the line atomically with their PaymentItem reference.การเบิก (CreditItem) ตรวจ Σ รายการ ≤ limit_amt ใน transaction; การหักชำระ post เข้าวงเงินพร้อมการอ้าง PaymentItem แบบ atomic | ERD-CFQ |
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เหตุผล |
|---|---|---|---|
| QuotaRepository | repository | scoped | — |
| QuotaCommitmentService | app_service | scoped | Chain validation: quota must belong to the crop owner's chain.ตรวจสาย: โควตาต้องอยู่ในสายของเจ้าของอ้อย |
| SeasonProvider | cache | singleton | Current-season lookup used platform-wide.ค้นฤดูปัจจุบัน ใช้ทั้ง platform |
| Component | Kindชนิด | Lifetime | Rationaleเหตุผล |
|---|---|---|---|
| CreditLineRepository | repository | scoped | — |
| DisbursementService | app_service | scoped | Σ items ≤ limit_amt inside the transaction.Σ รายการ ≤ limit_amt ภายใน transaction |
| OffsetCalculator | calculator | transient | Settlement-time deduction plan across cycles (PROP-012).แผนการหักตอนปิดงวดข้ามหลายรอบ (PROP-012) |
| Directionทิศทาง | Eventsเหตุการณ์ |
|---|---|
| My actions raiseการกระทำของฉันก่อ | VirtualFarmerCreated · VirtualFarmerConverted (invite) · QuotaAllocated (quota officer) · CreditLineOpened · CreditItemDisbursed · CropOwnershipTransferred / CropPurchasedOutright (buyer side) |
| My views consumeมุมมองของฉันบริโภค | FarmerRegistered · CropRegistered · YieldEstimateUpdated · FarmActivityRecorded (financed items) · DeliveryAccepted · PaymentPosted · RepaymentPosted · CanePriceAnnounced |
| User storyเรื่องราวผู้ใช้ | Department logicตรรกะโดเมน | Events raisedเหตุการณ์ที่เกิด |
|---|---|---|
| I open a debt ledger for a grower with no phone.ฉันเปิดบัญชีลูกหนี้ให้ชาวไร่ที่ไม่มีโทรศัพท์ | Virtual Farmer created in my network; owns crops, borrows; every record survives conversion under the same farmer_id.สร้างลูกไร่ virtual ในเครือข่าย; เป็นเจ้าของอ้อย กู้ได้; ทุกระเบียนคงอยู่หลังแปลงเป็นบัญชีจริงใต้ farmer_id เดิม | VirtualFarmerCreated |
| I fund my network from the factory’s line.ฉันใช้วงเงินโรงงานสนับสนุนเครือข่าย | Downstream lines chain via upstream_credit_id; their total may never exceed my limit.วงเงินปลายทางต่อผ่าน upstream_credit_id; ยอดรวมห้ามเกินเพดานของฉัน | CreditLineOpened · CreditItemDisbursed |
| I buy a failing sub-farmer’s standing crop.ฉันซื้อเหมาอ้อยยืนแปลงของลูกไร่ที่ไปต่อไม่ไหว | Deed appended at ฿/rai × area snapshot; open credit settled or carried; ledger settlement posts a crop_purchase item; future deliveries draw my quota.ต่อท้ายสมุดโอนที่บาท/ไร่ × พื้นที่; หนี้ค้างเคลียร์หรือรับภาระ; ชำระผ่านบัญชีบันทึก crop_purchase; การส่งมอบต่อไปใช้โควตาฉัน | CropPurchasedOutright |
| Settlement closes the round.การปิดงวดปิดรอบ | PaymentPosted triggers repayment offsets against my lines; deductions and repayments match line by line.PaymentPosted กระตุ้นการหักกลบกับวงเงินของฉัน; การหักและการชำระคืนตรงกันทุกบรรทัด | RepaymentPosted |
Department rules the master carries generically, read from this actor. The QuotaOrganization boundary is described here as proposed (PROP-017 Q1) and today satisfied by the org Tenant + Farmer network + role-scoped Memberships.
กฎหน่วยงานที่แม่บทถือไว้กว้าง อ่านจากผู้ใช้คนนี้ ขอบเขต QuotaOrganization อธิบายไว้เป็นข้อเสนอ (PROP-017 Q1) ตอนนี้ทำได้ด้วย Tenant องค์กร + เครือข่าย Farmer + Membership ที่จำกัดตาม role
| Concernประเด็น | Rule / invariantกฎ / กฎคงที่ |
|---|---|
| QuotaOrganizationองค์กรโควตา PROP-017 Q1 | Root = the org Tenant (quota_org tenant), identity = one org Farmer. Members are its Farmer network; officers act through role-scoped Memberships. Every officer action is attributed to the acting person + logged. The org holds the aggregate Quota and sub-allocates advisory targets to members.ราก = Tenant องค์กร (tenant quota_org) ตัวตน = Farmer องค์กรหนึ่ง สมาชิกคือเครือข่าย Farmer; เจ้าหน้าทำงานผ่าน Membership ที่จำกัดตาม role ทุกการกระทำของเจ้าหน้าระบุผู้กระทำ + ถูกบันทึก องค์กรถือ Quota รวม และจัดสรรเป้าแนะนำให้สมาชิก |
| Over-commitmentการผูกพันเกิน | Sub-allocation targets may sum above committed_t as a planning buffer, but the binding cap is delivered_t ≤ committed_t × 1.05. Beyond it, a delivery needs an explicit mill/quota re-allocation — never silent acceptance.เป้าจัดสรรย่อยรวมกันเกิน committed_t ได้เป็นบัฟเฟอร์วางแผน แต่เพดานที่ผูกคือ delivered_t ≤ committed_t × 1.05 เกินกว่านั้นต้องจัดสรรใหม่โดยโรงงาน/โควตาชัดเจน — ไม่รับเงียบ — |
| Split fairnessความเป็นธรรมของการแบ่ง | At settlement each sub-farmer’s net = gross − Σ itemized offsets, and Σ offsets ≤ outstanding. A virtual farmer’s net routes through my split until conversion; a disputed offset freezes the offset, never the farmer’s payment.ตอนปิดงวด ของลูกไร่แต่ละราย สุทธิ = รวม − Σ การหักรายบรรทัด และ Σ หักกลบ ≤ คงค้าง สุทธิของลูกไร่ virtual จ่ายผ่านการแบ่งของฉันจนกว่าจะแปลงเป็นบัญชีจริง; การหักที่พิพาทถูกระงับ ไม่ระงับเงินของชาวไร่ |
PROP-050 (spec v0.28.0) — cost centres to field & crop level: the farmer's plantation ledger. The grower's books gain a cost dimension, not a second book: five columns on every journal line (centre_id · cost_class · alloc_id · qty · qty_unit) over a derived CostCentre register — holding → field → crop cycle → crop, with asset and overhead-pool attachments and no farmer-defined nesting. The CropCycle (one planting plus its ratoons) becomes the unit of return and carries the establishment asset, capitalised at first revenue, amortised on units of production and impaired only with a named cause and a date. Field capture is two decisions and under fifteen seconds, works offline, and opens from four doors into one sheet; the receipt is photographed into the PROP-048 document vault and the phone releases the file only once the cloud confirms durable storage. Eight artifacts S-1…S-8 — crop P&L · cycle statement · field lifetime · consolidated plantation · cost structure with a k-anonymous benchmark · settlement per crop · practice comparison · scenario & replant signal — every one computed from posted lines only and printing its own uncertainty. Capture, evidence and S-1/S-2/S-3/S-4/S-6 sit in the base grower entitlement, free and permanent; S-5/S-7/S-8 form the analytics tier. Owned land carries no imputed rent and family labour is off by default, so the bottom line is named return to land and own labour. FR-267…312 · NFR-87…106 · WF-96…111. PROP-048's CropExpense is withdrawn as a store and becomes a capture form that posts. The lender's side (Rev 0.2). A quota or lead farmer is borrower and lender at once, so two more centre kinds — network and borrower — form a second branch under the same holding, with a seventh cost class network_lending, the 1160/1161 · 2160 · 4210/4220 · 5710/5720/5730 chart rows, AdvanceEarmark (which field the money went to, reachable only through the per-counterparty alias) and the derived BorrowerPosition, reconciling to the control accounts exactly and printing that line on S-9. Artifacts S-9 network lending book · S-10 money-into-fields map · S-11 network book P&L. No allocation rule crosses between the farm branch and the network branch, and a quota or lead farmer never reads a sub-farmer's cost book — he reads what he funded and its delivery outcome, never a margin, a cost structure or a benchmark position (OQ-12).
PROP-050 (spec v0.28.0) — ศูนย์ต้นทุนถึงระดับแปลงและอ้อยรุ่น: สมุดต้นทุนไร่ของชาวไร่ สมุดบัญชีของชาวไร่ได้ มิติต้นทุน ไม่ใช่สมุดเล่มที่สอง: ห้าคอลัมน์บนทุกบรรทัดบัญชี (centre_id · cost_class · alloc_id · qty · qty_unit) บนทะเบียน CostCentre ที่ระบบสร้างเอง — ทั้งไร่ → แปลง → รอบปลูก → อ้อยรุ่น พร้อมส่วนที่มาเกาะคือสินทรัพย์และกองต้นทุน และไม่มีการซ้อนชั้นที่ชาวไร่กำหนดเอง CropCycle (การปลูกหนึ่งครั้งพร้อมอ้อยตอ) เป็นหน่วยของผลตอบแทนและถือสินทรัพย์ต้นทุนก่อตั้ง ซึ่งบันทึกเป็นสินทรัพย์เมื่อมีรายได้ครั้งแรก ตัดจำหน่ายตามหน่วยผลผลิต และด้อยค่าได้เฉพาะเมื่อมีสาเหตุและวันที่ระบุ การบันทึกหน้างานใช้การตัดสินใจสองครั้ง ไม่เกินสิบห้าวินาที ทำงานออฟไลน์ และเปิดได้จากสี่ประตูเข้าสู่แบบเดียวกัน ใบเสร็จถูกถ่ายเก็บเข้าคลังเอกสารของ PROP-048 และโทรศัพท์ปล่อยไฟล์ออกเมื่อคลาวด์ยืนยันแล้วเท่านั้น ชิ้นงานแปดชิ้น S-1…S-8 คำนวณจากบรรทัดที่ลงบัญชีแล้วเท่านั้น และแสดงความไม่แน่นอนของตัวเองทุกชิ้น การบันทึก หลักฐาน และ S-1/S-2/S-3/S-4/S-6 อยู่ในสิทธิพื้นฐานของชาวไร่ ฟรีถาวร ส่วน S-5/S-7/S-8 เป็นรุ่นวิเคราะห์ ที่ดินของตนเองไม่คิดค่าเช่าโดยอนุมาน และแรงงานครอบครัวปิดไว้เป็นค่าตั้งต้น บรรทัดสุดท้ายจึงเรียกว่า ผลตอบแทนต่อที่ดินและแรงงานตนเอง FR-267…312 · NFR-87…106 · WF-96…111 และ CropExpense ของ PROP-048 ถูกถอนออกจากการเป็นที่เก็บข้อมูล กลายเป็นแบบบันทึกที่ลงรายการบัญชี ฝั่งผู้ให้ยืม (Rev 0.2) หัวหน้าโควต้าและหัวตันเป็นทั้งผู้กู้และผู้ให้ยืม จึงมีชนิดศูนย์เพิ่มอีกสอง — network และ borrower — เป็นกิ่งที่สองใต้ศูนย์ระดับไร่เดียวกัน พร้อมประเภทต้นทุนที่เจ็ด network_lending แถวผังบัญชี 1160/1161 · 2160 · 4210/4220 · 5710/5720/5730 AdvanceEarmark (เงินไปลงแปลงไหน เข้าถึงได้ผ่านนามแฝงรายคู่สัญญาเท่านั้น) และ BorrowerPosition ที่กระทบยอดกับบัญชีคุมได้ตรงพอดีและพิมพ์บรรทัดนั้นบน S-9 ชิ้นงาน S-9 สมุดบัญชีเครือข่าย · S-10 แผนที่เงินลงแปลง · S-11 งบกำไรขาดทุนเครือข่าย ไม่มีกฎการปันส่วนใดข้ามระหว่างกิ่งไร่กับกิ่งเครือข่าย และหัวหน้าโควต้าหรือหัวตันไม่เคยอ่านสมุดต้นทุนของลูกไร่ — เขาเห็นสิ่งที่เขาให้ทุนและผลการส่งมอบของมัน ไม่เคยเห็นกำไร โครงสร้างต้นทุน หรือตำแหน่งเทียบกลุ่ม (OQ-12)
Applied 2026-08-17 as spec v0.73.0. The quota_planning context gains the durable account as its root and the applied per-season row is renamed QuotaAgreement. The Quota aggregate now holds Quota · QuotaAgreement · QuotaHolderPeriod · QuotaDocument · PayeeAssignment, and two invariants live inside it: exactly ONE open holder period, and exactly ONE active payment assignment per rank. Both are things a half-commit would turn into money going somewhere nobody authorised, which is why they are one boundary and not three. delivered_t is still updated EVENTUALLY from delivery events, never inside the delivery transaction.
apply 2026-08-17 เป็น spec v0.73.0 context quota_planning ได้บัญชีที่คงอยู่เป็นราก และแถวรายฤดูที่ apply แล้วเปลี่ยนชื่อเป็น QuotaAgreement aggregate Quota ถือห้าสมาชิกตามรายการข้างต้น และมีค่าคงที่สองข้ออยู่ภายใน คือมีช่วงผู้ถือที่เปิดอยู่หนึ่งช่วง และมีการผูกปลายทางที่ใช้งานหนึ่งรายการต่ออันดับ ทั้งสองข้อถ้า commit ครึ่งเดียวจะกลายเป็นเงินไปที่ที่ไม่มีใครอนุมัติ จึงเป็นขอบเขตเดียว ไม่ใช่สามขอบเขต ส่วน delivered_t ยังปรับแบบ eventual จาก delivery event
Two further roots sit deliberately apart, homed in SPEC-DDD-MILL: PayeeAccount (with its dated event history, so a verification can never disagree with the row it describes) and QuotaGroup (with its dated membership, which is what makes "at most one netting group per account" enforceable). Recording a holder change never locks a settlement run; verifying a bank account never touches a group; grouping never touches a season figure. Events on this side: QuotaOpened · QuotaNumberAssigned · QuotaHolderChanged · QuotaStatusChanged · QuotaClosed.
อีกสองรากอยู่แยกโดยเจตนา และ home ที่ SPEC-DDD-MILL คือ PayeeAccount พร้อมประวัติที่มีวันที่ และ QuotaGroup พร้อมสมาชิกภาพที่มีวันที่ การบันทึกการเปลี่ยนผู้ถือไม่ล็อกรอบการจ่าย การยืนยันบัญชีธนาคารไม่แตะกลุ่ม และการจัดกลุ่มไม่แตะตัวเลขรายฤดู เหตุการณ์ฝั่งนี้ตามรายการข้างต้น
| Revฉบับ | Dateวันที่ | Changesการเปลี่ยนแปลง |
|---|---|---|
| 1.0 | 2026-07-07 | Initial version — PROP-002 Proposal A (spec v3.0)ฉบับแรก — PROP-002 ข้อเสนอ A (spec (สเปก) v3.0) |
| 1.1 | 2026-07-08 | PROP-005 (FED, spec v6.0): perspective re-keyed from customer group to capacity (document code unchanged); identity defers to the federation context (Person · Tenant · TenantCapacity · Membership); every *_tenant_type + *_tenant_id pair collapses to tenant_id.PROP-005 (FED, spec v6.0): มุมมองเปลี่ยนคีย์จากกลุ่มลูกค้าเป็น capacity (รหัสเอกสารคงเดิม); อัตลักษณ์อ้างอิงบริบท federation (Person · Tenant · TenantCapacity · Membership); คู่ *_tenant_type + *_tenant_id ทั้งหมดยุบเป็น tenant_id |
| 1.2 | 2026-07-09 | PROP-009 (STR, spec v8.0): the quota farmer joins the Strategic Pricing context — receives the mill's confidential ค่าอ้อยกลยุทธ์ and owns OnwardPremiumSettlement, the cash-on-receipt relay to sub-farmers (WF-34); never a PaymentItem component, no edge to Regulation (NFR-21).PROP-009 (STR, spec v8.0): หัวหน้าโควต้าเข้าร่วมบริบท Strategic Pricing — รับค่าอ้อยกลยุทธ์ที่เป็นความลับจากโรงงานและเป็นเจ้าของ OnwardPremiumSettlement การส่งต่อจ่ายสดตามใบส่งมอบสู่ลูกไร่ (WF-34); ไม่เป็นส่วนของ PaymentItem ไม่มีเส้นไป Regulation (NFR-21) |
| 1.3 | 2026-07-09 | PROP-010 (GL, spec v9.0): the quota farmer keeps full Books (+ Receivables / Cash Management) — cane receivable/payables, เงินเกี๊ยว lent/borrowed and the onward-relay expense auto-post; AR/AP, reconciliation, period close & statements; shared to a bank only via ConsentGrant scope books (NFR-24…26).PROP-010 (GL, spec v9.0): หัวหน้าโควต้ามี Books เต็ม (+ Receivables / Cash Management) — ลูกหนี้/เจ้าหนี้ค่าอ้อย เงินเกี๊ยวปล่อย/กู้ และค่าส่งต่อลงอัตโนมัติ; AR/AP การกระทบยอด การปิดงวดและงบ; แบ่งให้ธนาคารผ่าน ConsentGrant scope books (NFR-24…26) |
| 1.4 | 2026-07-10 | PROP-012 (settlement & CCS-by-re-note correction, spec v10.0): consistent with the master — the quota farmer sees network tonnage instantly at weigh-out and CCS online once the government (สอน.) re-note is ingested & auto-matched; settlement splits into two statutory installments on the initial price with a season-end final-price true-up.PROP-012 (แก้การจ่ายเงินและ CCS จากรีโน้ต, spec v10.0): สอดคล้องกับแม่บท — หัวหน้าโควต้าเห็นน้ำหนักเครือข่ายทันทีตอนชั่งออก และ CCS ออนไลน์เมื่อนำเข้ารีโน้ตของรัฐ (สอน.) และจับคู่อัตโนมัติ; การจ่ายแบ่งเป็นสองงวดตามกฎหมายบนราคาขั้นต้นพร้อมสรุปราคาสุดท้ายปลายฤดู |
| 0.1.0 | 2026-07-11 | PROP-014 (spec v0.1.0): semantic versioning restarted at 0.1.0 (was Rev 1.4 · 2026-07-10); 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.4 · 2026-07-10); ปรับ docnav ตามการแยก gov_cluster — ย้าย GOV ไป docs/gov/ocsb/ เพิ่มพี่น้อง BOARD (กอน.) |
| 0.3.0 | 2026-07-12 | PROP-017 (spec v0.3.0): renamed to the canonical Quota Farmer / หัวหน้าโควต้า throughout (retiring “quota farmer”); added Section 6 Quota Farmer depth — the QuotaOrganization aggregate boundary, the over-commitment policy, and the settlement split-fairness invariant.PROP-017 (spec v0.3.0): เปลี่ยนชื่อเป็นทางการ Quota Farmer / หัวหน้าโควต้า ทั้งฉบับ (เลิก “quota farmer”); เพิ่ม Section 6 รายละเอียดเชิงลึก — ขอบเขตแอกกริเกต QuotaOrganization นโยบายการผูกพันเกิน และกฎความเป็นธรรมของการแบ่งจ่าย |
| 0.4.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 quota_planning · financing — rendered from the graph's dataModeling block (aggregates · lifecycles).PROP-018 P2 (spec v0.4.0): ภาพผัง aggregate + ขอบเขต aggregate และกติกา transaction เชิงบรรทัดฐาน (ข้อ 4) และผัง lifetime ของ component แบบ DI (ข้อ 5) ของ quota_planning · financing — render จาก block dataModeling ใน graph (aggregates · lifecycles) |
| 0.5.0 | 2026-07-27 | PROP-050 (spec v0.28.0, approved & applied 27 Jul 2026; all 26 OQs client-closed): cost centres to field & crop level — the cost dimension on the ledger, the crop cycle and its establishment asset, declared allocation, evidence in the cloud, the network lending branch, FR-267…312 / NFR-87…106 / WF-96…111PROP-050 (spec v0.28.0 อนุมัติและ apply 27 ก.ค. 2569; ปิดคำถามเปิดครบ 26 ข้อ): ศูนย์ต้นทุนถึงระดับแปลงและอ้อยรุ่น — มิติต้นทุนบนสมุดบัญชี รอบปลูกและสินทรัพย์ต้นทุนก่อตั้ง การปันส่วนที่ประกาศไว้ หลักฐานบนคลาวด์ กิ่งการให้ยืมของเครือข่าย FR-267…312 / NFR-87…106 / WF-96…111 |
| 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.2 | 2026-08-03 | PROP-073 PATCH 1–2 (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–2 (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.7.0 | 2026-08-17 | The account as a consistency boundary — spec v0.73.0 (PROP-085 approved & applied 17 Aug 2026). The Quota aggregate is re-rooted on the durable account and gains QuotaAgreement (renamed from the applied Quota), QuotaHolderPeriod, QuotaDocument and PayeeAssignment, with the one-open-period and one-active-assignment-per-rank invariants. Five events. New Section 9.บัญชีในฐานะขอบเขตความสอดคล้อง — spec v0.73.0 (PROP-085 อนุมัติและ apply 17 ส.ค. 2569) aggregate Quota เปลี่ยนรากเป็นบัญชีที่คงอยู่ และเพิ่มสมาชิกสี่ตัว พร้อมค่าคงที่สองข้อ เพิ่มห้าเหตุการณ์ และเพิ่มข้อ 9 |