SPEC-DDD-CFC Rev 0.5.1 · 2026-08-03

Cane Agency · Specification · Perspective documentสถาบันอ้อย · เอกสารข้อกำหนด · เอกสารรายมุมมอง

Department Logic — Cane Farmer Perspectiveตรรกะโดเมน — มุมมองลูกไร่อ้อย

Documentเอกสาร
SPEC-DDD-CFC
Versionversion (เวอร์ชัน)
0.5.1 · Draftฉบับร่าง
Updatedปรับปรุงล่าสุด
2026-08-03
Parentเอกสารแม่
SPEC-DDD
Perspectiveมุมมอง
Cane farmer (ลูกไร่อ้อย)ลูกไร่อ้อย
Siblingsเอกสารพี่น้อง
SPEC-ERD-CFC · SPEC-PWF-CFC

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

Department logic as it binds the cane farmer: the contexts they live in (Land & Crop Registry, Farm Agronomy), the aggregates their actions touch, the events those actions raise, and the user stories that transform crops from planned to settled money. Definitions mirror SPEC-DDD and the graph; this document adds the actor's reading, never divergent rules.

ตรรกะโดเมนที่ผูกพันลูกไร่: บริบทที่ใช้ชีวิตอยู่ (Land & Crop Registry, Farm Agronomy) แอกกริเกตที่การกระทำของเขาแตะ เหตุการณ์ที่เกิดตามมา และเรื่องราวผู้ใช้ที่เปลี่ยนอ้อยจากแผนสู่เงินที่ปิดงวด นิยามสะท้อน SPEC-DDD และ graph (กราฟ); เอกสารนี้เพิ่มการอ่านของผู้ใช้ ไม่สร้างกฎที่แตกต่าง

2. My contexts2. บริบทของฉัน

ContextบริบทMy slice of itส่วนของฉัน
Land & Crop RegistryMy fields (land facts) and my season crops; the ownership deed trail records every transfer I confirm.แปลง (ข้อมูลที่ดิน) และอ้อยรายฤดูของฉัน; สมุดโอนบันทึกทุกการโอนที่ฉันยืนยัน
Farm AgronomyMy activity log, weather records and yield estimates — upstream of quota planning and credit sizing.สมุดกิจกรรม ข้อมูลอากาศ และประมาณการผลผลิตของฉัน — อยู่ต้นน้ำของแผนโควตาและวงเงิน
Strategic Pricing v8.0As a mill's counterparty I may hold a confidential strategic agreement (checkpoint / เหมาจ่าย) and receive step-released ค่าอ้อยกลยุทธ์ on top of the statutory price; as a quota farmer's sub-farmer I may receive the onward relay — never on my audited PaymentItem (NFR-21).ในฐานคู่สัญญาของโรงงาน ฉันอาจถือข้อตกลงกลยุทธ์ที่เป็นความลับ (checkpoint / เหมาจ่าย) และรับค่าอ้อยกลยุทธ์จ่ายเป็นงวดเพิ่มจากราคาตามกฎหมาย; ในฐานลูกไร่ของหัวหน้าโควต้า อาจรับการส่งต่อ — ไม่อยู่บน PaymentItem ที่ถูกตรวจสอบ (NFR-21)
Books · Receivables · Cash Management v9.0My own simple books (PROP-010): a cash-basis-by-default cash book that still posts double-entry underneath — cane income and input costs auto-post from settlement & เงินเกี๊ยว; I can share a plain statement to a bank only via ConsentGrant scope books.สมุดบัญชีอย่างง่ายของฉันเอง (PROP-010): สมุดเงินสดเกณฑ์เงินสดที่ยังลง double-entry ข้างใต้ — รายได้ขายอ้อยและต้นทุนปัจจัยการผลิตลงอัตโนมัติจากการปิดยอดและเงินเกี๊ยว; แบ่งงบอย่างง่ายให้ธนาคารได้ผ่าน ConsentGrant scope books เท่านั้น

3. Aggregates & invariants that bind me3. แอกกริเกตและกฎคงที่ที่ผูกพันฉัน

AggregateแอกกริเกตInvariants that bind meกฎคงที่ที่ผูกพันฉัน
Crop (owns CropTransfer)One crop per field per season; my ownership changes only by an appended deed; no transfers after closed/failed; a sale with open credit needs the debt settled or carried.อ้อยหนึ่งรายการต่อแปลงต่อฤดู; ความเป็นเจ้าของเปลี่ยนด้วยการต่อท้ายสมุดโอนเท่านั้น; ห้ามโอนหลัง closed/failed; ขายทั้งที่มีหนี้ค้างต้องเคลียร์หรือรับภาระ
FarmActivityLog (FarmActivity)Append-only; a credit link must reference a disbursed item of a line I borrowed against this crop; linked entries are visible to that lender.ต่อท้ายเท่านั้น; การเชื่อมสินเชื่อต้องอ้างรายการที่เบิกแล้วของวงเงินที่ฉันกู้กับอ้อยนี้; รายการที่เชื่อมผู้ให้กู้เห็นได้
Delivery (mill-owned, binds me at booking)My booking must sit in my owner-chain quota, name one crop, declare cane type + harvest method, and fit the crushing day (capacity + burnt cap).การจองต้องอยู่ในโควตาสายเจ้าของ ระบุอ้อยหนึ่งรายการ แจ้งประเภทอ้อย + วิธีเก็บเกี่ยว และพอดีกับวันหีบ (กำลัง + เพดานไฟไหม้)

4. Aggregate boundaries & transaction rules4. ขอบเขต aggregate และกติกา transaction

The normative consistency boundaries of this perspective's home contexts (land_crop_registry · farm_agronomy), 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 อยู่มุมมองนี้ (land_crop_registry · farm_agronomy) render จาก dataModeling.aggregates ใน graph (v0.4.0, PROP-018) คำอธิบาย invariant ข้างบนคงไว้เพื่อความเข้าใจ; กติกาในส่วนนี้คือสัญญาเชิง transaction ที่ implementation ต้องบังคับใช้ ส่วน persistence ระดับ column ของ entity สมาชิกทุกตัวอยู่ในตระกูล SPEC-ERD พี่น้อง (ดู column ข้อมูล)

land_crop_registryfarm_agronomyFieldแปลงอ้อยCropอ้อยรายฤดูFarmActivityYieldEstimateCropTransferWeatherObservationข้อมูลอากาศCaneVarietyพันธุ์อ้อยSoilGroupกลุ่มชุดดิน
Fig. 1 — Consistency boundaries of land_crop_registry · farm_agronomy: one box per aggregate — title = root, rows = member entities. Everything inside a box commits in one database transaction; everything between boxes flows through domain events.ภาพที่ 1 — ขอบเขตความสอดคล้องของ land_crop_registry · farm_agronomy: หนึ่งกล่องต่อ aggregate — ชื่อกล่อง = root, รายการในกล่อง = entity สมาชิก ทุกอย่างในกล่อง commit ใน database transaction เดียว; ระหว่างกล่องไหลผ่าน domain event
Aggregate rootMembersสมาชิกContextTransaction ruleกติกา transactionDataข้อมูล
FieldFieldland_crop_registryLand facts only (PROP-001); geometry edits are single-row.ข้อเท็จจริงที่ดินเท่านั้น (PROP-001); แก้ขอบเขตแปลงเป็นรายแถวERD-CFC
CropCrop · FarmActivity · YieldEstimate · CropTransferland_crop_registryOwnership transfer appends a CropTransfer and updates owner_farmer_id in one transaction; activities and estimates append without touching crop state.การโอนกรรมสิทธิ์ append CropTransfer และแก้ owner_farmer_id ใน transaction เดียว; กิจกรรมและการประมาณผลผลิต append โดยไม่แตะสถานะอ้อยERD-CFC
WeatherObservationWeatherObservationfarm_agronomyAppend-only observation stream keyed by field or zone.สายข้อมูลสังเกตแบบ append-only อ้างแปลงหรือ zoneERD-CFC
CaneVarietyCaneVarietyfarm_agronomyReference catalogue — operator-curated; crops pin a variety row.บัญชีอ้างอิง — operator ดูแล; อ้อยตรึงแถวพันธุ์ที่ใช้ERD-CFC
SoilGroupSoilGroupfarm_agronomyReference catalogue — LDD soil groups; fields pin a group row.บัญชีอ้างอิง — กลุ่มชุดดิน LDD; แปลงตรึงแถวกลุ่มที่ใช้ERD-CFC

5. Component lifetime map5. ผัง lifetime ของ component

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

land_crop_registry แปลงและอ้อยรายฤดู

events producedevent ที่ผลิต FieldRegistered · CropRegistered · CropOwnershipTransferred · CropPurchasedOutright · CropClosed

ComponentKindชนิดLifetimeRationaleเหตุผล
Field/Crop repositoriesrepositoryscoped—
CropTransferServiceapp_servicescopedAppends transfer + owner change in one transaction.append การโอน + เปลี่ยนเจ้าของใน transaction เดียว
GeoBoundaryValidatorvalidatortransient—

farm_agronomy ไร่และภูมิอากาศ

events producedevent ที่ผลิต FarmActivityRecorded · WeatherObserved · YieldEstimateUpdated

ComponentKindชนิดLifetimeRationaleเหตุผล
AgronomyCatalogCache (CaneVariety · SoilGroup)cachesingletonReference data; refresh on catalogue-change events.ข้อมูลอ้างอิง; refresh เมื่อ catalogue เปลี่ยน (ผ่าน event)
FarmActivityRecorderapp_servicescopedLinks credit_item_id / work_order_id provenance on the way in.ผูกที่มา credit_item_id / work_order_id ตั้งแต่ขาเข้า
YieldEstimatorcalculatortransientPure — writes an append-only YieldEstimate snapshot.pure — เขียน snapshot YieldEstimate แบบ append-only
WeatherIngestJobhosted_servicesingletonScoped unit per ingest batch.เปิด scope ใหม่ต่อชุดนำเข้า

6. Events — my side of the streams6. เหตุการณ์ — ฝั่งของฉันในสายข้อมูล

DirectionทิศทางEventsเหตุการณ์
My actions raiseการกระทำของฉันก่อFarmerRegistered · FieldRegistered · CropRegistered · FarmActivityRecorded · WeatherObserved · YieldEstimateUpdated · DeliveryBooked · CropOwnershipTransferred (confirmed)
My views consumeมุมมองของฉันบริโภคQuotaAllocated · CreditLineOpened · CreditItemDisbursed · WeightRecorded · QualityRecorded · PaymentPosted · RepaymentPosted · CanePriceAnnounced · VirtualFarmerConverted

7. User stories → department logic7. เรื่องราวผู้ใช้ → ตรรกะโดเมน

User storyเรื่องราวผู้ใช้Department logicตรรกะโดเมนEvents raisedเหตุการณ์ที่เกิด
I confirm the ratoon at season open and set my expected yield.ฉันยืนยันไว้ตอตอนเปิดฤดูและระบุประมาณการผลผลิตCrop created with previous_crop_id chain; first deed = initial assignment; estimate snapshots its basis and mirrors into the crop.สร้าง Crop พร้อมสาย previous_crop_id; สมุดโอนแรก = การมอบหมายครั้งแรก; ประมาณการตรึงฐานและสะท้อนเข้าอ้อยCropRegistered · YieldEstimateUpdated
I fertilize with sacks bought on my credit line.ฉันใส่ปุ๋ยที่ซื้อจากวงเงินสินเชื่อActivity appended with credit_item_id; the lender’s financed-vs-applied view updates; entry immutable.ต่อท้ายกิจกรรมพร้อม credit_item_id; มุมมองเบิกเทียบใช้จริงของผู้ให้กู้อัปเดต; แก้ไขไม่ได้FarmActivityRecorded
I sell my standing crop at ฿/rai to my quota farmer.ฉันขายเหมาอ้อยยืนแปลงเป็นบาท/ไร่ให้หัวหน้าโควต้าDeed appended (outright_purchase, price × area snapshot); ledger settlement posts a crop_purchase credit item; future deliveries follow the buyer.ต่อท้ายสมุดโอน (outright_purchase ราคา × พื้นที่); ชำระผ่านบัญชีบันทึกรายการ crop_purchase; การส่งมอบต่อไปเป็นของผู้ซื้อCropOwnershipTransferred · CropPurchasedOutright
My cane is weighed and, weeks later, paid.อ้อยของฉันถูกชั่ง และได้เงินในอีกหลายสัปดาห์Ticket immutable; per-truck CCS publishes same day; settlement pays base × net + premium ± type-adjustment − offsets; my statement itemizes every line.บัตรชั่งแก้ไขไม่ได้; CCS รายคันรถออกวันเดียวกัน; ปิดงวดจ่าย ฐาน × สุทธิ + พรีเมียม ± ส่วนต่างประเภท − หักหนี้; ใบแจ้งยอดแสดงทุกบรรทัดWeightRecorded · QualityRecorded · PaymentPosted · RepaymentPosted

8. Land, capability & partnership contexts (PROP-048)8. context ที่ดิน ศักยภาพ และความร่วมมือ (PROP-048)

Spec v0.26.0 adds three bounded contexts around the field. Two are mine to write (land_rights and the agronomy growth inside farm_agronomy); the third, field_partnership, is the quota farmer to write and mine to accept. The vault (document_vault) is platform infrastructure I upload into.

spec v0.26.0 เพิ่ม bounded context สามชุดรอบแปลง สองชุดเป็นของฉันที่เขียนเอง (land_rights และส่วนที่ขยายใน farm_agronomy) ชุดที่สามคือ field_partnership เป็นของหัวหน้าโควต้าที่เขียน และของฉันที่ตอบรับ ส่วนคลังเอกสาร (document_vault) เป็นโครงสร้างพื้นฐานของ platform ที่ฉันอัปโหลดเข้าไป

8.1 Aggregates & transaction rules8.1 aggregate และกฎของ transaction

Aggregate rootaggregate rootInside the boundaryอยู่ในขอบเขตInvariant held in one transactioninvariant ที่รักษาไว้ใน transaction เดียว
LandRightFieldRight links, the pointer to its one DocumentLandRight links, the pointer to its one DocumentA right has exactly one document; every field link is dated, never edited. A subdivision opens new fields and closes the old one rather than rewriting the link (OQ-11).สิทธิหนึ่งรายการมีเอกสารหนึ่งฉบับพอดี; การเชื่อมกับแปลงทุกรายการมีวันที่ ไม่แก้ทับ การแบ่งแปลงเปิดแปลงใหม่และปิดแปลงเดิม ไม่ใช่เขียนทับการเชื่อม (OQ-11)
TenureRecordIts own root — it outlives both the right and the fieldIts own root — it outlives both the right and the fieldExactly ONE governing row per (field, season); append-only; an overlap opens a field-officer task and never surfaces as a conflict to either claimant (T-2, W-4). No state here blocks farming (T-1).เป็น root ของตนเอง — อยู่ยืนกว่าทั้งสิทธิและแปลง มีแถวที่มีผลหนึ่งเดียวต่อ (แปลง ฤดู); append-only; การทับซ้อนเปิดงานให้เจ้าหน้าที่ภาคสนามและไม่แสดงเป็นความขัดแย้งให้ผู้อ้างสิทธิฝ่ายใดเห็น (T-2, W-4) ไม่มีสถานะใดในนี้กีดขวางการทำไร่ (T-1)
Field (grown)FieldBoundary versions, FieldWaterSource, BufferZone, LandHistory, FieldSurveyFieldBoundary versions, FieldWaterSource, BufferZone, LandHistory, FieldSurveyExactly one boundary version is effective at a time and area is derived from it in a projected CRS; a re-walk appends. Capability facts are only ever written together with the survey that observed them.มีขอบเขตที่มีผลเพียงรุ่นเดียวในแต่ละช่วงเวลา และพื้นที่คำนวณจากรุ่นนั้นบน projection หน่วยเมตร; การเดินวัดใหม่เพิ่มรุ่น ข้อเท็จจริงศักยภาพเขียนพร้อมกับการสำรวจที่สังเกตมันเสมอ
SoilAnalysisSoilAnalysisResult rowsSoilAnalysisResult rowsThe sampling event and its results are one boundary: status moves sampled → in_lab → reported, the sample point must lie inside the current boundary, a unit is present whenever a number is, and advice rows never feed a valuation (S-1).เหตุการณ์เก็บตัวอย่างและผลของมันเป็นขอบเขตเดียว: สถานะเดินจาก เก็บตัวอย่าง → อยู่ห้องปฏิบัติการ → รายงานผล จุดเก็บตัวอย่างต้องอยู่ในขอบเขตปัจจุบัน มีหน่วยทุกครั้งที่มีตัวเลข และแถวคำแนะนำไม่เข้าไปในการตีมูลค่า (S-1)
Crop (grown)Planting, SoilAdjustment, CropExpense, CropOutcomePlanting, SoilAdjustment, CropExpense, CropOutcomeGap-filling is a second Planting on the same Crop; an expense carries its origin (partnership line or credit item) so cost-per-tonne cannot double count; CropOutcome closes the season once and states whether it was derived or declared.การปลูกซ่อมเป็นการปลูกครั้งที่สองบนอ้อยรุ่นเดิม; ค่าใช้จ่ายพาต้นทางไปด้วย (รายการความร่วมมือหรือรายการสินเชื่อ) ต้นทุนต่อตันจึงไม่นับซ้ำ; CropOutcome ปิดฤดูครั้งเดียวและระบุว่ามาจากการคำนวณหรือการแจ้งเอง
ProductivityPartnershipPartnershipLine rowsPartnershipLine rowsTwo-act: proposed → active only on the counterparty acceptance, and the same rule governs a line added mid-season. Closing keeps history and debts. Written by the quota farmer side (SPEC-DDD-CFQ) and accepted from mine.สองจังหวะ: เสนอ → มีผลเมื่อคู่สัญญาตอบรับ และการเพิ่มรายการกลางฤดูใช้กติกาเดียวกัน การปิดยังเก็บประวัติและหนี้ไว้ ฝ่ายหัวหน้าโควต้าเป็นผู้เขียน (SPEC-DDD-CFQ) และฝั่งฉันเป็นผู้ตอบรับ

8.2 Events on my side of the stream8.2 event ในสายที่ฝั่งฉันเกี่ยวข้อง

I produce: FieldRegistered · FieldBoundaryRevised · LandHistoryRecorded · IrrigationAssetRegistered · LandRightRegistered · LeaseRecorded · DocumentUploaded · FieldCapabilitySurveyed · FieldWaterSourceSurveyed · SoilAnalysisSampled · PlantingRecorded · SoilAdjustmentRecorded · CropExpenseRecorded · CropRenovationPlanned. I consume: TenureEstablished / TenureExpired / LeaseExpiring (what I may be funded for), SoilAnalysisResultsPublished (my advice and input package), FieldCapabilityProfiled / CropValueEstimated (what my crop is worth, with its basis), PartnershipAccepted (what I owe and am owed), FieldEnrolled / EnrollmentEnded (which of my fields a factory is funding), IdentityDisclosureGranted / IdentityDisclosureRevoked (my own consent, and only mine). FieldAliasIssued never reaches me or the mill in a form that reveals the mapping (W-5).

ฉันเป็นผู้ผลิต event: FieldRegistered · FieldBoundaryRevised · LandHistoryRecorded · IrrigationAssetRegistered · LandRightRegistered · LeaseRecorded · DocumentUploaded · FieldCapabilitySurveyed · FieldWaterSourceSurveyed · SoilAnalysisSampled · PlantingRecorded · SoilAdjustmentRecorded · CropExpenseRecorded · CropRenovationPlanned และเป็นผู้บริโภค: TenureEstablished / TenureExpired / LeaseExpiring (ฉันมีคุณสมบัติรับทุนเรื่องใด) SoilAnalysisResultsPublished (คำแนะนำและชุดปัจจัยการผลิตของฉัน) FieldCapabilityProfiled / CropValueEstimated (อ้อยของฉันมีมูลค่าเท่าไร พร้อมที่มา) PartnershipAccepted (ฉันเป็นหนี้และมีสิทธิได้รับอะไร) FieldEnrolled / EnrollmentEnded (แปลงใดของฉันที่โรงงานให้ทุน) IdentityDisclosureGranted / IdentityDisclosureRevoked (ความยินยอมของฉันเอง และของฉันเท่านั้น) ส่วน FieldAliasIssued ไม่ถึงฉันหรือโรงงานในรูปที่เปิดเผยตารางเทียบ (W-5)

8.3 State machines I live inside8.3 state machine ที่ฉันอยู่ในนั้น

SoilAnalysis: sampled → in_lab → reported (or void when a sample is lost or rejected — a new sampling event replaces it, never an edit). TenureRecord: draft → active → expired | superseded, with disputed as the officer-resolved branch on an overlap. Both are rendered in SPEC-PWF-CFC Section 6.

SoilAnalysis: เก็บตัวอย่าง → อยู่ห้องปฏิบัติการ → รายงานผล (หรือ ยกเลิก เมื่อตัวอย่างสูญหายหรือถูกปฏิเสธ — ใช้การเก็บตัวอย่างครั้งใหม่แทน ไม่ใช่การแก้ของเดิม) TenureRecord: ร่าง → มีผล → สิ้นผล | ถูกแทนที่ โดยมี มีข้อพิพาท เป็นทางแยกที่เจ้าหน้าที่เป็นผู้ชี้ขาดเมื่อมีการทับซ้อน ทั้งสองแสดงไว้ใน SPEC-PWF-CFC ข้อ 6

Applied — PROP-050 · spec v0.28.0apply แล้ว — PROP-050 · spec v0.28.0

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.

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 ถูกถอนออกจากการเป็นที่เก็บข้อมูล กลายเป็นแบบบันทึกที่ลงรายการบัญชี

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

10. Revision history10. ประวัติการแก้ไข

RevฉบับDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-07Initial version — PROP-002 Proposal A (spec v3.0)ฉบับแรก — PROP-002 ข้อเสนอ A (spec (สเปก) v3.0)
1.12026-07-08PROP-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.22026-07-09PROP-009 (STR, spec v8.0): the cane farmer joins the Strategic Pricing context — as a mill's counterparty (checkpoint / เหมาจ่าย) or a quota farmer's onward-relay recipient; the premium is confidential, on top of the statutory price and never a PaymentItem component (NFR-21).PROP-009 (STR, spec v8.0): ลูกไร่เข้าร่วมบริบท Strategic Pricing — ในฐานคู่สัญญาของโรงงาน (checkpoint / เหมาจ่าย) หรือผู้รับการส่งต่อของหัวหน้าโควต้า; เงินเพิ่มเป็นความลับ จ่ายเพิ่มจากราคาตามกฎหมาย ไม่เป็นส่วนของ PaymentItem (NFR-21)
1.32026-07-09PROP-010 (GL, spec v9.0): the cane farmer keeps simple Books (+ Receivables / Cash Management) — a cash-basis cash book posting double-entry underneath; cane income & input costs auto-post; a plain statement shares to a bank only via ConsentGrant scope books (NFR-24…26).PROP-010 (GL, spec v9.0): ลูกไร่มี Books อย่างง่าย (+ Receivables / Cash Management) — สมุดเงินสดที่ลง double-entry ข้างใต้; รายได้และต้นทุนลงอัตโนมัติ; แบ่งงบให้ธนาคารผ่าน ConsentGrant scope books (NFR-24…26)
1.42026-07-10PROP-012 (settlement & CCS-by-re-note correction, spec v10.0): consistent with the master — the cane farmer sees net tonnage instantly at weigh-out and CCS online once the government (สอน.) re-note is ingested & auto-matched; payment arrives as two statutory installments on the initial price with a season-end final-price true-up.PROP-012 (แก้การจ่ายเงินและ CCS จากรีโน้ต, spec v10.0): สอดคล้องกับแม่บท — ชาวไร่เห็นน้ำหนักทันทีตอนชั่งออก และ CCS ออนไลน์เมื่อนำเข้ารีโน้ตของรัฐ (สอน.) และจับคู่อัตโนมัติ; รับเงินสองงวดตามกฎหมายบนราคาขั้นต้นพร้อมสรุปราคาสุดท้ายปลายฤดู
0.1.02026-07-11PROP-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.2.02026-07-13PROP-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 land_crop_registry · farm_agronomy — rendered from the graph's dataModeling block (aggregates · lifecycles).PROP-018 P2 (spec v0.4.0): ภาพผัง aggregate + ขอบเขต aggregate และกติกา transaction เชิงบรรทัดฐาน (ข้อ 4) และผัง lifetime ของ component แบบ DI (ข้อ 5) ของ land_crop_registry · farm_agronomy — render จาก block dataModeling ใน graph (aggregates · lifecycles)
0.3.02026-07-25PROP-048 (spec v0.26.0): new Section 8 — the land_rights, document_vault and field_partnership contexts; aggregate boundaries (LandRight with its field links · TenureRecord as its own root · the grown Field and Crop aggregates · SoilAnalysis with its results · ProductivityPartnership with its lines), the invariants that hold in one transaction, my side of the 38 new event streams, and the two new state machines (SoilAnalysis, TenureRecord).PROP-048 (spec v0.26.0): เพิ่มข้อ 8 — context land_rights, document_vault และ field_partnership; ขอบเขต aggregate (LandRight กับการเชื่อมแปลง · TenureRecord เป็น root ของตนเอง · Field และ Crop ที่ขยายขึ้น · SoilAnalysis กับผลของมัน · ProductivityPartnership กับรายการ) invariant ที่รักษาไว้ใน transaction เดียว ฝั่งของฉันในสาย event ใหม่ 38 รายการ และ state machine ใหม่สองตัว (SoilAnalysis, TenureRecord)
0.4.02026-07-27PROP-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.5.02026-08-03PROP-073 (spec v0.47.0): one word — Tenant. Party → Tenant, party_id (and every prefixed form) → tenant_id, PartyCapacity/PartyQualification/PartyFounded → Tenant*, party context/switcher → tenant context/switcher, cross-party → cross-tenant, organisation → organization, and ผู้เล่น retired as the Thai gloss (the Latin word tenant instead, R-THAI). Hold list untouched: counterparty · third party · tripartite working group · Person*/person_id; display codes and token claims were held by R-NULL for one release and then MOVED at v0.47.1 on client decision (C-1), because no token has ever been SIGNED — no auth exists in the built ocsb/ocsf prototypes — and the only printed codes were eight fixture strings in apps/ocsf/fund-shell.jsx, swept in the same pass: PTY- → TNT-, TCA- → TCA-, TQL- → TQL-, claim tnt → tnt, claim dep → dep. Carried in the same pass: the PROP-075 rectification — the retired directory noun domain becomes department (A-82 R-ONETREE) and the dangling A-86/A-87/A-88 citations are re-pointed at the ids they were actually given, A-81/A-82/A-83.PROP-073 (spec v0.47.0): คำเดียว — Tenant Party → Tenant, party_id ทุกรูป → tenant_id, PartyCapacity/PartyQualification/PartyFounded → Tenant*, cross-party → cross-tenant และเลิกใช้ ผู้เล่น เป็นคำแทนวัตถุนี้ในภาษาไทย (ใช้คำละติน tenant ตาม R-THAI) รายการห้ามแตะไม่ถูกแตะ: คู่สัญญา · third party · คณะทำงานไตรภาคี · Person*/person_id รอบเดียวกันแก้ค้างจาก PROP-075: domain → department (A-82) และแก้การอ้าง A-86/A-87/A-88 ที่ไม่มีอยู่จริงเป็น A-81/A-82/A-83
0.5.12026-08-03PROP-073 PATCH 1 (spec v0.47.1 / v0.47.2 / v0.47.3 as applicable): the identifiers v0.47.0 had held, moved on client decision. PTY-######## → TNT-######## · PCA-######## → TCA-######## · PQL-######## → TQL-######## · token claim pty → tnt · token claim dom → dep (v0.47.1, C-1 — R-NULL had held them as a stored VALUE and a wire format; reversed because no token has ever been signed and the only printed codes were fixture strings). quota_org_officer → quota_officer · lead_org_officer → lead_officer (v0.47.2, C-2 — org is organization abbreviated, not a resemblance). The retired role LABEL swept as a phrase family and quota organization naming the tenant → quota group / กลุ่มโควตา (v0.47.3). All retired forms are in the FR-396 crosswalk and refused in new text by NFR-142.PROP-073 PATCH 1 (spec v0.47.1 / v0.47.2 / v0.47.3 ตามที่เกี่ยวข้อง): ตัวระบุที่ v0.47.0 คงไว้ ถูกย้ายตามการตัดสินของลูกค้า PTY- → TNT- · PCA- → TCA- · PQL- → TQL- · claim pty → tnt · claim dom → dep (v0.47.1, C-1) · quota_org_officer → quota_officer · lead_org_officer → lead_officer (v0.47.2, C-2) · ป้ายชื่อบทบาทที่เลิกใช้และ องค์กรโควตา ที่เรียก tenant → กลุ่มโควตา (v0.47.3) ทุกรูปที่เลิกใช้อยู่ในตารางแปลง FR-396