Cane Agency · PWF Seriesสถาบันอ้อย · ชุดเอกสาร PWF
Four workflows carry the second tier from appointment to ending: WF-92 appoint, WF-93 build the network and allocate, WF-94 the second financing hop and the two-stage relay, WF-95 terminate and re-parent. Five existing workflows are amended in place rather than duplicated: WF-01 gains the lead onboarding path, WF-02 nests sub-allocation, WF-06 gains the second เงินเกี๊ยว hop, and WF-08/09 capture crop and activity at tier 2. The step contracts below render the graph (workflows.nodes[].spec).
สี่ workflow พาชั้นที่สองตั้งแต่การแต่งตั้งจนถึงการสิ้นสุด: WF-92 แต่งตั้ง, WF-93 สร้างเครือข่ายและจัดสรร, WF-94 ช่วงเงินทุนที่สองและการส่งต่อสองทอด, WF-95 ยกเลิกและย้ายต้นสังกัด ส่วน workflow เดิมห้ารายการแก้ในที่แทนการทำซ้ำ: WF-01 เพิ่มเส้นทางรับเข้าหัวตัน, WF-02 การจัดสรรย่อยซ้อนชั้น, WF-06 เพิ่มช่วงเงินเกี๊ยวที่สอง และ WF-08/09 บันทึกอ้อยและกิจกรรมที่ชั้น 2 สัญญาแต่ละขั้นด้านล่าง render จาก graph (workflows.nodes[].spec)
SLA: Active only on the counterparty's acceptance; capability grants follow activation, never precede it — States: LeadMandate.status: proposed | active | ended | terminated | declined
ระดับบริการ: Active only on the counterparty's acceptance; capability grants follow activation, never precede it — สถานะ: LeadMandate.status: proposed | active | ended | terminated | declined
| ## | Actor · surfaceผู้ทำ · ช่องทาง | Action, pre & postการกระทำ ก่อนและหลัง | Guards · events · failเงื่อนไข · event · กรณีล้มเหลว |
|---|---|---|---|
| 1 | cane_farmer | quota_farmer account | portal | Request the lead capacity (self-serve) or propose a mandate to a named counterparty pre: Both tenants exist; requester holds a grower or quota capacity post: Mandate proposed | · Capacity is requested self-serve; it stands only while a mandate stands · Either side may propose (P-8 — a mandate is commercial, not staffing) LeadMandateProposed |
| 2 | platform — | Validate the two-tier cap pre: Mandate proposed post: Validation passed | · REJECT if the proposed lead is himself a member of another lead's network · REJECT if any member of his network already holds a mandate (P-2, NFR-81) fail: Reject with the depth-cap reason; no partial state |
| 3 | counterparty portal | mobile | Accept pre: Validation passed post: Mandate active; lead capacity ACTIVE; entitlement row applies | · Acceptance is the binding act (P-4) LeadMandateActivated fail: Decline → status declined |
| 4 | quota_farmer portal | Grant capability down the hop — credit line, inputs, machinery access, agronomic support pre: Mandate active post: CreditLine / partnership lines reference the mandate | · Each hop is its own instrument; money is pass-through, never re-lent invisibly (P-5) · No obligation is created between tenants who did not sign (P-9) |
SLA: Allocation is written before the season's first delivery under the block — States: NetworkAllocation.tier: quota_to_lead | quota_to_grower | lead_to_grower
ระดับบริการ: Allocation is written before the season's first delivery under the block — สถานะ: NetworkAllocation.tier: quota_to_lead | quota_to_grower | lead_to_grower
| ## | Actor · surfaceผู้ทำ · ช่องทาง | Action, pre & postการกระทำ ก่อนและหลัง | Guards · events · failเงื่อนไข · event · กรณีล้มเหลว |
|---|---|---|---|
| 1 | lead_farmer mobile | Link a grower into the network — existing farmer, or a virtual farmer created on his behalf pre: Mandate active post: Farmer.lead_farmer_id set; quota_farmer_id keeps the quota anchor | · Two-tier cap re-validated at link time · A virtual farmer claims later by phone verification, keeping farmer_id (WF-01) LeadNetworkMemberLinked fail: Reject a grower who holds a mandate of his own |
| 2 | quota_farmer portal | Allocate tonnage to the lead's block for the season pre: Mandate active post: NetworkAllocation tier quota_to_lead, revision_no 1 | — NetworkAllocationIssued |
| 3 | lead_farmer portal | mobile | Sub-allocate to each grower pre: Block allocation exists post: NetworkAllocation rows tier lead_to_grower | · Over-allocation is signalled, never blocked — the lead may knowingly oversubscribe NetworkAllocationIssued · NetworkOverAllocationDetected |
| 4 | quota_farmer | lead_farmer portal | mobile | Revise mid-season pre: An allocation exists post: New append-only row; previous superseded | · Reason is mandatory · Never an overwrite (OQ-8) NetworkAllocationRevised |
| 5 | platform — | Publish plan-against-actual at every rung pre: Allocations and deliveries exist post: Allocated · delivered · remaining per rung, down to field and crop cycle | · ONE derivation reused by every surface (P-12, NFR-86) · Each rung obeys the Section 7 wall unchanged FieldCropAttestationIssued |
SLA: Onward relay follows the same ordering rules as WF-34, one hop further — States: CreditItem / Repayment unchanged; netting per hop
ระดับบริการ: Onward relay follows the same ordering rules as WF-34, one hop further — สถานะ: CreditItem / Repayment unchanged; netting per hop
| ## | Actor · surfaceผู้ทำ · ช่องทาง | Action, pre & postการกระทำ ก่อนและหลัง | Guards · events · failเงื่อนไข · event · กรณีล้มเหลว |
|---|---|---|---|
| 1 | quota_farmer portal | Open a credit line to the lead farmer pre: Mandate active post: CreditLine (lender = quota farmer, borrower = lead) | · Existing เงินเกี๊ยว rails — no new money rail (P-5) |
| 2 | lead_farmer portal | mobile | Open his own lines to his growers pre: Lead holds the lender capacity post: CreditLine (lender = lead, borrower = grower) | · A credit ITEM is financed once across the whole chain (NFR-83) · Terms are private in BOTH directions (P-6, NFR-82) fail: Reject a double-financed item |
| 3 | mill portal | Settle the delivery to the quota farmer as today pre: Cane delivered under the quota post: PaymentItem to the quota farmer | · The mill's world does not change (P-3) |
| 4 | quota_farmer portal | Relay net of his own line to the lead pre: Settlement received post: Onward payment to the lead | · Netting per hop; the grower never sees the upstream terms |
| 5 | lead_farmer portal | mobile | Relay net of his line to the grower pre: Onward payment received post: Grower paid; repayment posted | · Two stages, never a single collapsed hop · Books post at whichever ledger depth the lead elected (L-0/L-1/L-2) LeadLedgerElectionChanged |
SLA: No grower is left without an anchor; re-parenting is an explicit act, never automatic — States: LeadMandate.status → ended | terminated
ระดับบริการ: No grower is left without an anchor; re-parenting is an explicit act, never automatic — สถานะ: LeadMandate.status → ended | terminated
| ## | Actor · surfaceผู้ทำ · ช่องทาง | Action, pre & postการกระทำ ก่อนและหลัง | Guards · events · failเงื่อนไข · event · กรณีล้มเหลว |
|---|---|---|---|
| 1 | quota_farmer | lead_farmer portal | End the mandate — expiry, either side, or graduation to holding a quota pre: Mandate active post: Mandate ended | terminated | · Graduation is an ADDITION of the quota capacity, never a transition (OQ-5) · Existing mandates run to their season end LeadMandateTerminated |
| 2 | quota_farmer | lead_farmer portal | Re-parent each grower by explicit act — back to the quota farmer or across to another lead pre: Mandate ended post: Farmer.lead_farmer_id re-pointed or cleared | · No orphans; no silent re-parenting (P-9) LeadNetworkMemberReparented |
| 3 | platform — | Leave every historical record where it was produced pre: Re-parenting done post: History unchanged; no re-keying | — |
| 4 | platform — | Leave every obligation with its two signatories pre: Debts outstanding post: Growers keep repaying the lead; the quota farmer recovers from the lead | · NO debt moves (P-9, OQ-10) · No interception of a grower's delivery by the quota farmer · Transfer of a receivable is a separate, two-sided, priced act |
| Fromจาก | Toไป | Trigger & guardตัวกระตุ้นและเงื่อนไข |
|---|---|---|
| — | proposed | Either side proposes; the two-tier cap is validated before the row is writtenฝ่ายใดฝ่ายหนึ่งเสนอ; ตรวจเพดานสองชั้นก่อนเขียนแถว |
| proposed | active | The counterparty accepts. This is the binding act (P-4); capability grants follow, never precedeอีกฝ่ายตอบรับ นี่คือจังหวะที่ผูกพัน (P-4); การมอบศักยภาพตามมา ไม่ใช่มาก่อน |
| proposed | declined | The counterparty declines. No capacity, no grants, no trace beyond the record itselfอีกฝ่ายปฏิเสธ ไม่มี capacity ไม่มีการมอบศักยภาพ และไม่มีร่องรอยเกินกว่าตัวระเบียน |
| active | ended | Expiry at ends_on, or graduation to holding a quota — an ADDITION of the quota capacity, never a transition (OQ-5)ครบกำหนดที่ ends_on หรือเติบโตไปถือโควตา — เป็นการเพิ่ม capacity ไม่ใช่การเปลี่ยนสถานะ (OQ-5) |
| active | terminated | Either side terminates, with a mandatory reasonฝ่ายใดฝ่ายหนึ่งยกเลิก พร้อมเหตุผลบังคับ |
| ended | terminated | — | Terminal. Growers await explicit re-parenting; history stays; no debt moves; no delivery may be intercepted (P-9, OQ-10)สถานะสุดท้าย ลูกไร่รอการย้ายต้นสังกัดที่ชัดแจ้ง; ประวัติคงอยู่; ไม่โยกหนี้; และดักการส่งมอบไม่ได้ (P-9, OQ-10) |
| Caseกรณี | Behaviourพฤติกรรม | Ruleกติกา |
|---|---|---|
| Third tier attempted | Refuse at the mandate or at the member link, naming the rule in plain words. No partial state is written.ปฏิเสธที่คำแต่งตั้งหรือตอนเพิ่มสมาชิก โดยระบุกติกาเป็นถ้อยคำธรรมดา ไม่เขียนสถานะค้าง | P-2 · NFR-81 |
| Item already financed upstream | Refuse the second-hop line for that item and name the existing financing.ปฏิเสธวงเงินช่วงที่สองสำหรับรายการนั้น และระบุการให้ทุนที่มีอยู่ | NFR-83 |
| Over-allocation | Signal to both signatories; never block. A lead may knowingly oversubscribe and answer for it.แจ้งเตือนทั้งสองฝ่าย ไม่ปิดกั้น หัวตันอาจรับเกินโดยรู้ตัวและรับผิดชอบเอง | P-12 · FR-266 |
| Mandate ends with debt outstanding | Growers keep repaying the lead after re-parenting; the quota farmer recovers from the lead, whose relay he already controls. Any transfer of a receivable is a separate, two-sided, priced act.ลูกไร่ยังชำระคืนหัวตันต่อไปแม้ย้ายต้นสังกัด; หัวหน้าโควต้าเรียกคืนจากหัวตันซึ่งเขาคุมการส่งต่ออยู่แล้ว การโอนสิทธิเรียกร้องเป็นการกระทำแยกต่างหาก ยินยอมสองฝ่าย และมีราคา | P-9 · OQ-10 |
| Unverified tenure at attestation | No attestation is issued. It is never softened into a claim.ไม่ออกการรับรอง และไม่ลดรูปเป็นเพียงคำกล่าวอ้าง | P-11 · NFR-85 |
| Second quota farmer asks about another mandate | No enumeration, no inference, no denial signal. Counts are banded, never exact, to anyone who is not the lead.ไม่ให้ไล่รายการ ไม่ให้อนุมาน และไม่ส่งสัญญาณปฏิเสธ จำนวนรายงานเป็นช่วง ไม่ใช่ตัวเลขตรง ต่อผู้ที่ไม่ใช่หัวตัน | W-4 · L-7 · OQ-4 |
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)
| Revฉบับ | Dateวันที่ | Changeการเปลี่ยนแปลง |
|---|---|---|
| 0.1.0 | 2026-07-27 | Created by PROP-049 (spec v0.27.0, approved & applied 27 Jul 2026; all 10 open questions client-closed) — the CFL market perspective family opens with six documents. Per the OQ-3 decision the lead farmer gets his own family rather than being folded into CFQ: หัวตัน resembles the quota farmer superficially but differs significantly, and those differences are carried here as follow-on depth work. Rev starts at 0.1.0 per the post-PROP-014 semantic-versioning convention.สร้างโดย PROP-049 (spec v0.27.0 อนุมัติและ apply 27 ก.ค. 2569; ลูกค้าปิดคำถามเปิดครบทั้ง 10 ข้อ) — ตระกูล perspective ฝั่งตลาด CFL เปิดพร้อมเอกสารหกฉบับ ตามคำตัดสิน OQ-3 หัวตันได้ตระกูลของตนเองแทนการฝังไว้ใน CFQ: หัวตันดูคล้ายหัวหน้าโควต้าเพียงผิวเผินแต่ต่างกันอย่างมีนัยสำคัญ และความต่างเหล่านั้นถูกยกมาเป็นงานลงลึกต่อเนื่องในเอกสารชุดนี้ เริ่ม rev ที่ 0.1.0 ตามธรรมเนียม semantic versioning หลัง PROP-014 |
| 0.2.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.3.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.3.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 |