SPEC-PWF-FIN Rev 0.4.1 · 2026-08-03

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

Workflows — Financial Institution PerspectiveWorkflow — มุมมองสถาบันการเงิน

Documentเอกสาร
SPEC-PWF-FIN
Versionversion (เวอร์ชัน)
0.4.1 · Draftฉบับร่าง
Updatedปรับปรุงล่าสุด
2026-08-03
Parentเอกสารแม่
SPEC-PWF
Perspectiveมุมมอง
Financial institution (ธนาคาร)สถาบันการเงิน (ธนาคาร)
Siblingsเอกสารพี่น้อง
SPEC-ERD-FIN · SPEC-DDD-FIN

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

This document specifies the bank's operational workflows on the finance surface — data-sharing consent (WF-13), cane credit scoring (WF-14), loan origination (WF-15), disbursement & repayment (WF-16), collections & restructuring (WF-17) — plus the WF-05 settlement extension and the loan state machine (Section 7). Actors and permissions are in SPEC-APP Section 3; entities in SPEC-ERD-FIN; events in SPEC-DDD-FIN Section 5. Every step that touches another tenant's data first checks an active ConsentGrant (NFR-08).

เอกสารนี้ระบุworkflowเชิงปฏิบัติการของธนาคารบนช่องทางใช้งานการเงิน — ความยินยอมแบ่งปันข้อมูล (WF-13) การให้คะแนนเครดิตอ้อย (WF-14) การออกสินเชื่อ (WF-15) การเบิกและชำระคืน (WF-16) การเร่งรัดหนี้และปรับโครงสร้าง (WF-17) — พร้อมส่วนขยาย WF-05 และ state machine สินเชื่อ (ข้อ 7) ผู้กระทำและสิทธิ์อยู่ใน SPEC-APP Section 3; entity ใน SPEC-ERD-FIN; เหตุการณ์ใน SPEC-DDD-FIN Section 5 ทุกขั้นที่แตะข้อมูลฝ่ายอื่นตรวจ ConsentGrant ที่ยังใช้อยู่ก่อน (NFR-08)

2. WF-13 — Data-sharing consent (PDPA)2. WF-13 — ความยินยอมแบ่งปันข้อมูล (PDPA)

#Actorผู้กระทำActionการกระทำSystemระบบ
1Relationship officerเจ้าหน้าที่ลูกค้าสัมพันธ์Request access to a borrower's platform data — pick scopes and an expiryขอเข้าถึงข้อมูลผู้กู้ — เลือก scope และวันหมดอายุDrafts a consent request to the grantor (farmer / mill); no data is readable yetร่างคำขอความยินยอมถึงผู้ให้ (ชาวไร่/โรงงาน); ยังอ่านข้อมูลไม่ได้
2Grantor (farmer / mill)ผู้ให้ (ชาวไร่/โรงงาน)Review scope & purpose on mobile/portal; approve with a typed confirmตรวจ scope และวัตถุประสงค์บนมือถือ/portal; อนุมัติด้วยการพิมพ์ยืนยันCreates ConsentGrant active (grantor × FI × scope, expires_at); emits ConsentGrantedสร้าง ConsentGrant active (ผู้ให้ × FI × scope, expires_at); ปล่อย ConsentGranted
3System (every read)ระบบ (ทุกการอ่าน)—Resolves each cross-tenant read against an active grant covering the scope; logs the access with the consent_id; a read without a covering grant is refused (NFR-08)ตรวจการอ่านข้ามฝ่ายกับความยินยอมที่ครอบคลุม scope; บันทึกการเข้าถึงพร้อม consent_id; การอ่านที่ไม่มีความยินยอมถูกปฏิเสธ (NFR-08)
4Grantor (any time)ผู้ให้ (ทุกเมื่อ)Revoke the grantเพิกถอนความยินยอมAppends a superseding record → status = revoked; emits ConsentRevoked; future reads stop; existing assessments keep their frozen snapshotบันทึกระเบียนแทนที่ → status = revoked; ปล่อย ConsentRevoked; การอ่านในอนาคตหยุด; การประเมินเดิมคง snapshot (สแนปช็อต) ที่ตรึงไว้
Applied — PROP-037 · spec v0.29.0 · WF-13 / WF-14 amendmentapply แล้ว — PROP-037 · spec v0.29.0 · แก้ WF-13 / WF-14WF-13 accepts scope reliability_score with three conditions: its own consent screen in plain Thai, a mandatory expiry, and no bundling with any other scope or pre-ticked default (FR-313, C1). The grant, its expiry, every read against it and the revoke action appear in the farmer's consent register, which rel-01 links to. WF-14 step 2 may include the Reliability Extract in the feature snapshot only while an active grant covers the applicant; the consumed extract is pinned into factors_snapshot at step 3, so revocation stops the next read without unmaking the decision already taken (FR-315, NFR-09). Refusal and revocation carry no platform consequence (NFR-107). Enabling the FIRST bank on this scope is a separate operator act, conditioned on the written Bank of Thailand opinion (A-64, PROP-037 OQ-1 — open).WF-13 รับ scope reliability_score โดยมีสามเงื่อนไข: หน้าจอความยินยอมของตัวเองเป็นภาษาไทยธรรมดา วันหมดอายุที่บังคับ และห้ามมัดรวมกับ scope อื่นหรือติ๊กไว้ล่วงหน้า (FR-313, C1) การให้ วันหมดอายุ ทุกการอ่าน และการเพิกถอน ปรากฏในทะเบียนความยินยอมของชาวไร่ซึ่ง rel-01 ลิงก์ถึง WF-14 ขั้นที่ 2 ใส่ Reliability Extract ใน feature snapshot ได้เฉพาะเมื่อมีความยินยอมที่ยังมีผลครอบคลุมผู้ขอ และ extract ที่ใช้ถูกตรึงใน factors_snapshot ที่ขั้นที่ 3 (FR-315, NFR-09) การปฏิเสธและการเพิกถอนไม่มีผลใด ๆ บน platform (NFR-107) การเปิดใช้กับธนาคารรายแรกเป็นการกระทำของ operator ที่มีเงื่อนไขว่าต้องมีความเห็นของ ธปท. เป็นลายลักษณ์อักษร (A-64, PROP-037 OQ-1 ยังเปิดอยู่)

3. WF-14 — Cane credit scoring3. WF-14 — การให้คะแนนเครดิตอ้อย

#Actorผู้กระทำActionการกระทำSystemระบบ
1Credit analystนักวิเคราะห์สินเชื่อStart an assessment for the subject (farmer / mill)เริ่มการประเมินสำหรับผู้ถูกประเมิน (ชาวไร่/โรงงาน)Verifies an active ConsentGrant covers the required scopes; otherwise blocks and prompts WF-13ตรวจว่ามี ConsentGrant ครอบคลุม scope ที่ต้องใช้; ถ้าไม่มีจะบล็อกและชี้ไป WF-13
2Systemระบบ—Assembles the consented feature snapshot: multi-season net tonnage, CCS/trash trend, quota fulfilment, on-platform repayment, yield estimateประกอบ snapshot คุณลักษณะที่ได้รับความยินยอม: ปริมาณสุทธิหลายฤดู แนวโน้ม CCS/สิ่งปนเปื้อน การทำโควตา การชำระคืนบน platform ประมาณการผลผลิต
3Systemระบบ—Runs the model; produces score + grade (A–E); freezes model_ver + factors_snapshot; on a low grade records decision_reasons (adverse action); emits CreditAssessmentCompleted (NFR-09)รัน model (โมเดล); ให้คะแนน + เกรด (A–E); ตรึง model_ver + factors_snapshot; เกรดต่ำบันทึก decision_reasons; ปล่อย CreditAssessmentCompleted (NFR-09)
4Credit analystนักวิเคราะห์สินเชื่อReview the dossier — factors, grade, reasonsทบทวนแฟ้ม — ปัจจัย เกรด เหตุผลRead-only & reproducible; a re-score posts a new assessment, never edits the old oneอ่านอย่างเดียวและทำซ้ำได้; การให้คะแนนใหม่บันทึกรายการใหม่ ไม่แก้ของเดิม

4. WF-15 — Loan origination4. WF-15 — การออกสินเชื่อ

#Actorผู้กระทำActionการกระทำSystemระบบ
1Relationship officer / borrowerเจ้าหน้าที่ลูกค้าสัมพันธ์ / ผู้กู้File an application against a loan product (amount, purpose, borrower)ยื่นคำขอต่อผลิตภัณฑ์สินเชื่อ (จำนวน วัตถุประสงค์ ผู้กู้)Creates LoanApplication submitted; requires a covering ConsentGrant to proceed; emits LoanApplicationSubmittedสร้าง LoanApplication submitted; ต้องมี ConsentGrant คุ้มครองจึงไปต่อ; ปล่อย LoanApplicationSubmitted
2Systemระบบ—Application → scoring (WF-14 attaches the assessment_id) → underwritingคำขอ → scoring (WF-14 แนบ assessment_id) → underwriting
3Credit analystนักวิเคราะห์สินเชื่อUnderwrite: structure the facility, register collateral (standing crop / quota / delivery receivable / land / contract)วิเคราะห์: จัดโครงสร้างวงเงิน จดหลักประกัน (อ้อยยืนต้น / โควตา / ลูกหนี้การค้า / ที่ดิน / สัญญา)Creates Collateral linked to the application; a delivery_receivable pledge is registered as a lienสร้าง Collateral ผูกกับคำขอ; การจำนำ delivery_receivable จดเป็นสิทธิ
4Credit analyst / risk officerนักวิเคราะห์ / เจ้าหน้าที่ความเสี่ยงDecide: approve or reject (typed confirm)ตัดสิน: อนุมัติหรือปฏิเสธ (พิมพ์ยืนยัน)Approve requires an assessment_id → opens a LoanAccount, emits LoanApproved; reject records decision_reasons, emits LoanRejectedอนุมัติต้องมี assessment_id → เปิด LoanAccount, ปล่อย LoanApproved; ปฏิเสธบันทึก decision_reasons, ปล่อย LoanRejected

5. WF-16 — Disbursement & repayment5. WF-16 — การเบิกจ่ายและชำระคืน

#Actorผู้กระทำActionการกระทำSystemระบบ
1Credit analystนักวิเคราะห์สินเชื่อSet the repayment schedule and disburseตั้งตารางชำระและเบิกจ่ายPosts a LoanLedgerEntry(disbursement); account → current; emits LoanDisbursedบันทึก LoanLedgerEntry(disbursement); บัญชี → current; ปล่อย LoanDisbursed
2Borrowerผู้กู้Assign a delivery receivable as the repayment source (optional)โอนสิทธิลูกหนี้การค้าเป็นแหล่งชำระ (ทางเลือก)Registers the pledge on future PaymentItems; emits DeliveryReceivableAssigned to Settlementจดจำนำบน PaymentItem อนาคต; ปล่อย DeliveryReceivableAssigned ถึง Settlement
3System (interest)ระบบ (ดอกเบี้ย)—Accrues interest per the schedule as LoanLedgerEntry(interest_accrual); outstanding_amt is the running balanceคิดดอกเบี้ยตามตารางเป็น LoanLedgerEntry(interest_accrual); outstanding_amt คือยอดคงเหลือ
4System (repayment)ระบบ (การชำระ)—Cash repayment or a settlement offset (WF-05) posts LoanLedgerEntry(repayment) with the payment_item_id; emits LoanRepaymentPosted; at zero balance account → closedการชำระเงินสดหรือการหักกลบ (WF-05) บันทึก LoanLedgerEntry(repayment) พร้อม payment_item_id; ปล่อย LoanRepaymentPosted; ยอดเป็นศูนย์ บัญชี → closed
WF-05 extension — settlement offsetส่วนขยาย WF-05 — การหักกลบตอนปิดงวด When a settled delivery carries an assigned delivery_receivable, Settlement (mill) routes part of the PaymentItem deduction to a LoanAccount repayment — after เงินเกี๊ยว offsets per the settlement ordering, assigned-receivable pledges rank first as a registered lien. The mill's PaymentPosted keeps its original contract. เมื่อการส่งมอบที่ปิดงวดมี delivery_receivable ที่โอนสิทธิ Settlement (โรงงาน) ส่งส่วนหนึ่งของการหัก PaymentItem ไปเป็นการชำระ LoanAccount — หลังการหักเงินเกี๊ยวตามลำดับ การจำนำลูกหนี้ที่โอนสิทธิมาก่อนในฐานะสิทธิที่จดแจ้ง PaymentPosted ของโรงงานคงสัญญาเดิม

6. WF-17 — Collections, delinquency & restructuring6. WF-17 — การเร่งรัดหนี้ ค้างชำระ และปรับโครงสร้าง

#Actorผู้กระทำActionการกระทำSystemระบบ
1Systemระบบ—A scheduled repayment overdue beyond grace moves the account current → delinquent; emits LoanDelinquentค่างวดค้างเกินระยะผ่อนผัน ทำให้บัญชี current → delinquent; ปล่อย LoanDelinquent
2Risk officerเจ้าหน้าที่ความเสี่ยงFollow up arrears; agree a cure or a restructuringติดตามหนี้ค้าง; ตกลงเคลียร์หรือปรับโครงสร้างA cure returns delinquent → current; a restructure records revised terms → restructured → current; emits LoanRestructuredการเคลียร์คืน delinquent → current; การปรับโครงสร้างบันทึกเงื่อนไขใหม่ → restructured → current; ปล่อย LoanRestructured
3Risk officerเจ้าหน้าที่ความเสี่ยงClassify NPL and write off where unrecoverableจำแนก NPL และตัดหนี้สูญเมื่อเรียกคืนไม่ได้Posts a LoanLedgerEntry(write_off); account → written_off; emits LoanWrittenOffบันทึก LoanLedgerEntry(write_off); บัญชี → written_off; ปล่อย LoanWrittenOff
4Compliance officerเจ้าหน้าที่กำกับReport to BoT / NCB; export portfolio & risk figuresรายงาน ธปท./เครดิตบูโร; ส่งออกตัวเลขพอร์ตและความเสี่ยงAligned exports (FR-43); only aggregate, anonymized figures cross to สอน.การส่งออกที่สอดคล้อง (FR-43); เฉพาะตัวเลขรวมและไม่ระบุตัวตนที่ข้ามไป สอน.

7. Loan state machine7. สเตตแมชีนสินเชื่อ

appliedยื่นคำขอ
→
scoredให้คะแนนแล้ว
→
underwritingวิเคราะห์
→
approvedอนุมัติ
→
currentเบิกจ่าย · ปกติ
→
closedปิดบัญชี
FromจากEventเหตุการณ์ToไปยังGuardเงื่อนไข
appliedCreditAssessmentCompletedscoredAn active ConsentGrant covers the scope (NFR-08); score + grade + factors_snapshot recorded (NFR-09)มี ConsentGrant active ครอบคลุม scope (NFR-08); บันทึกคะแนน + เกรด + factors_snapshot (NFR-09)
scoredUnderwriteStartedunderwritingAnalyst review of the assessment, facility structure & collateralนักวิเคราะห์ทบทวนการประเมิน โครงสร้างวงเงิน และหลักประกัน
underwritingLoanApprovedapprovedassessment_id present; collateral registered as requiredมี assessment_id; จดหลักประกันตามที่กำหนด
underwritingLoanRejectedrejecteddecision_reasons recorded; terminalบันทึก decision_reasons; สถานะสุดท้าย
approvedLoanDisburseddisbursed → currentAgreement signed; disbursement ledger entry posted; schedule activatedทำสัญญา; บันทึกการเบิก; เริ่มตารางชำระ
currentPaymentMisseddelinquentScheduled repayment overdue beyond graceค่างวดค้างเกินระยะผ่อนผัน
delinquentArrearsCuredcurrentArrears cleared (cash or settlement offset)เคลียร์หนี้ค้าง (เงินสดหรือหักกลบ)
delinquentLoanRestructuredrestructured → currentRevised terms agreed; borrower performingตกลงเงื่อนไขใหม่; ผู้กู้ชำระตามใหม่
currentLoanRepaymentPostedclosedoutstanding_amt reaches zero; terminaloutstanding_amt เป็นศูนย์; สถานะสุดท้าย
delinquentLoanWrittenOffwritten_offNPL classified and written off per risk policy; terminalจำแนก NPL และตัดหนี้สูญตามนโยบายความเสี่ยง; สถานะสุดท้าย

The loan machine parallels — never replaces — the delivery (SPEC-PWF Section 7) and crop (Section 8) machines; a loan's repayments may draw on the same settlement stream via an assigned receivable.

state machine สินเชื่อทำงานคู่ขนาน — ไม่แทนที่ — state machine การส่งมอบ (SPEC-PWF ข้อ 7) และอ้อย (ข้อ 8); การชำระคืนของสินเชื่ออาจดึงจากสายการปิดงวดเดียวกันผ่านลูกหนี้ที่โอนสิทธิ

8. Exception paths8. เส้นทางกรณียกเว้น

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

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

RevฉบับDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-07Initial version — PROP-003 (spec v4.0): WF-13…17, the WF-05 settlement extension, and the loan state machine (Section 7)ฉบับแรก — PROP-003 (spec (สเปก) v4.0): WF-13…17 ส่วนขยาย WF-05 และ state machine สินเชื่อ (ข้อ 7)
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
0.1.02026-07-11PROP-014 (spec v0.1.0): semantic versioning restarted at 0.1.0 (was Rev 1.1 · 2026-07-08); 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.1 · 2026-07-08); ปรับ docnav ตามการแยก gov_cluster — ย้าย GOV ไป docs/gov/ocsb/ เพิ่มพี่น้อง BOARD (กอน.)
0.3.02026-07-28PROP-037 applied (spec v0.29.0) — WF-13 accepts scope reliability_score (own screen, mandatory expiry, never bundled) and WF-14 may carry the Reliability Extract as a factor under an active grant, pinned into factors_snapshot. No new workflow.apply PROP-037 (spec v0.29.0) — WF-13 รับ scope reliability_score และ WF-14 ใช้ Reliability Extract เป็นปัจจัยได้ภายใต้ความยินยอมที่ยังมีผล ไม่มี workflow ใหม่
0.4.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.4.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