SPEC-PWF-OPS Rev 0.3.0 · 2026-08-20

Cane Agency · Specification · Platform operatorสถาบันอ้อย · เอกสารข้อกำหนด · ผู้ให้บริการ platform

Workflows — Operator PerspectiveWorkflow — มุมมองผู้ให้บริการ

Documentเอกสาร
SPEC-PWF-OPS
Versionversion (เวอร์ชัน)
0.3.0 · Draftฉบับร่าง
Updatedปรับปรุงล่าสุด
2026-08-20
Parentเอกสารแม่
SPEC-PWF Section 6j
Perspectiveมุมมอง
Operator (Cane Agency — platform)ผู้ให้บริการ (สถาบันอ้อย — platform)
Siblingsเอกสารพี่น้อง
SPEC-ERD-OPS · SPEC-DDD-OPS · SPEC-PRD-OPS

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

This document specifies the platform-operator workflows on the admin surface (PROP-006): invitation-gated admission (WF-28), representative-mill stewardship & conversion (WF-29), and the platform-operations loop (WF-30) — plus the admission-gate extension to WF-25 and the native hosting of view-as (WF-27). Flows mirror SPEC-PWF and the graph.

เอกสารนี้ระบุworkflowผู้ให้บริการ platform บนช่องทาง admin (PROP-006): การรับเข้าโดยการเชิญ (WF-28) การดูแลและแปลงโรงงานตัวแทน (WF-29) และวงรอบการดำเนินงาน (WF-30) พร้อมส่วนขยายประตูการรับเข้าใน WF-25 และการโฮสต์ view-as (WF-27)

2. WF-28 — Invitation-gated admission2. WF-28 — การรับเข้าโดยการเชิญ

#Stepขั้นตอน
1Operator (provisioning_officer) issues an Invitation for an invitation-only capacity (mill / bank / government) — targets a tenant or a representative mill, sets contact phone & expiry.ผู้ให้บริการออก Invitation สำหรับ capacity เข้าโดยการเชิญ (mill / bank / government) ระบุ tenant หรือโรงงานตัวแทน ตั้งเบอร์ติดต่อและวันหมดอายุ
2Invitee registers or signs in (WF-24) and claims the Invitation via its single-use token.ผู้ถูกเชิญลงทะเบียนหรือลงชื่อเข้าใช้ (WF-24) และรับ Invitation ด้วย token (โทเคน) ใช้ครั้งเดียว
3Per-capacity verification runs (สอน. mill registry / BOT license / government appointment).ยืนยันราย capacity (ทะเบียนโรงงาน สอน. / ใบอนุญาต ธปท. / การแต่งตั้งภาครัฐ)
4platform_ops commands federation to grant the TenantCapacity (writing invitation_id); capacity becomes active. A self-request for any invitation-only capacity is rejected upstream at WF-25 (FR-70).platform_ops สั่ง federation ให้ TenantCapacity (เขียน invitation_id); capacity active คำขอด้วยตนเองถูกปฏิเสธที่ WF-25 (FR-70)

3. WF-29 — Representative-mill stewardship & conversion3. WF-29 — การดูแลและแปลงโรงงานตัวแทน

#Stepขั้นตอน
1Operator creates a representative mill from สอน. public-registry data (name, province, geo, published capacity_tpd, license/registry ref); Tenant.representation = representative, Mill.onboard_status = representative.ผู้ให้บริการสร้างโรงงานตัวแทนจากข้อมูลทะเบียนสาธารณะ สอน.; representation = representative, onboard_status = representative
2Growers / quota farmers designate it as a delivery destination (Quota.mill_id) and plan the season — the picker shows the platform-maintained badge (NFR-19).ชาวไร่/หัวหน้าโควต้าระบุเป็นปลายทาง (Quota.mill_id) และวางแผนฤดู — ตัวเลือกแสดงป้าย “ดูแลโดย platform” (NFR-19)
3Operator invites the real mill (WF-28) referencing target_mill_id.ผู้ให้บริการเชิญโรงงานจริง (WF-28) อ้าง target_mill_id
4On claim, federation attaches the real person(s), flips representation → real and onboard_status → active, and grants the verified mill capacity — mill_id, tenant_id and every Quota.mill_id / plan link preserved (FR-73).เมื่ออ้างสิทธิ์ federation ผูกบุคคลจริง พลิก representation → real, onboard_status → active และให้ capacity mill — mill_id, tenant_id และทุกลิงก์คงไว้ (FR-73)

4. WF-30 — Platform operations4. WF-30 — การดำเนินงาน platform

The admin surface’s working loop across four areas. Provisioning: issue/revoke Invitations, steward representative mills, work the capacity-approval queue. Configuration: open/close the Season, publish cane-price announcements, version permission/offering catalogs & price formulas, toggle feature flags. Monitoring: watch platform-wide KPIs, delivery & settlement throughput, SLA & data-quality dashboards. Support: launch audited view-as (WF-27), triage cases, review cross-tenant audit. Every change is dual-logged (NFR-20).

วงรอบทำงานของช่องทาง admin สี่กลุ่ม Provisioning: ออก/เพิกถอน Invitation ดูแลโรงงานตัวแทน คิวอนุมัติ capacity การตั้งค่า: เปิด/ปิดฤดู ประกาศราคาอ้อย กำกับรุ่น catalog (แคตตาล็อก) และสูตรราคา สลับ feature flag การเฝ้าติดตาม: KPI ทั้ง platform ปริมาณการส่งมอบและการชำระ dashboard (แดชบอร์ด) SLA การสนับสนุน: เริ่ม view-as (WF-27) คัดกรองเคส ทบทวน audit ทุกการเปลี่ยนแปลงบันทึกคู่ (NFR-20)

5. WF-152 — a mill asks for its bill-to to be corrected5. WF-152 — โรงงานขอให้แก้ค่าผู้รับใบแจ้งหนี้ของตน

Applied v0.81.0 (PROP-099), A-116; the shape is SPEC-ERD-OPS Section 11. Service level: the decision lands inside the declared target OT-1 — 95% of complete requests answered within two business days on the OC-1 calendar — or it is escalated to a distinct eligible holder of platform_config_admin and audited. Either way it ends in an approval or a refusal, never in a lapse and never in an automatic approval.

apply แล้วที่ v0.81.0 (PROP-099) ตาม A-116 รูปร่างอยู่ที่ SPEC-ERD-OPS ข้อ 11 ระดับบริการ คือคำตัดสินลงภายในเป้าหมายที่ประกาศไว้ OT-1 ได้แก่ 95% ของคำขอที่ครบถ้วนได้คำตอบภายในสองวันทำการ ตามปฏิทิน OC-1 หรือถูกยกระดับไปที่ผู้ถือ platform_config_admin ที่มีสิทธิ์และเป็นคนละคน และบันทึกการตรวจสอบ ทั้งสองทางจบที่การอนุมัติหรือการปฏิเสธ ไม่ใช่การหมดเวลา และไม่ใช่การอนุมัติอัตโนมัติ

#Stepขั้นตอน
1Tenant billing position (submit facet), account surface — submits an amendment to the identity-plus-provenance bundle. The profile is resolved from the transaction-local tenant context: no read by identifier, no list, no search (FR-608). A field outside the allowlist, an operator-only field, or a profile more than one tenant is billed from refuses the whole request. An incomplete submission does not start the clock and is returned with the field named. The requester is notified on submission.ตำแหน่งการเรียกเก็บฝั่ง tenant (facet submit) ช่องทาง account ยื่นคำขอแก้ชุดตัวตนบวกที่มา profile สืบค้นจากบริบท tenant ของธุรกรรมนั้น ไม่มีการอ่านด้วยรหัส ไม่มีรายการ ไม่มีการค้นหา (FR-608) ฟิลด์นอกบัญชีอนุญาต ฟิลด์ที่เฉพาะผู้ดำเนินการ หรือ profile ที่มี tenant มากกว่าหนึ่งรายถูกเรียกเก็บจากมัน ปฏิเสธคำขอทั้งคำขอ คำขอที่ไม่ครบไม่เริ่มนับเวลาและถูกส่งคืนโดยระบุฟิลด์ ผู้ยื่นได้รับแจ้งเมื่อยื่น
2ONE distinct authorized Cane operator, admin surface — verifies the request against the recorded evidence and approves or refuses it. One operator, not two: on the tenant route the four eyes are the tenant submitter’s and that operator’s, and there is no third actor and no separate verifier field. Nobody approves their own action; an approver inside the tenant is refused. The bundle is written in ONE commit — values, the four references, the copied verification state and the read date — or the request is refused with a reason from the declared set. The copied verification state is never upgraded. The requester is notified on decision.ผู้ดำเนินการของ Cane ที่มีสิทธิ์และต่างคน หนึ่ง คน ช่องทาง admin ตรวจคำขอเทียบหลักฐานที่บันทึกไว้ และอนุมัติหรือปฏิเสธ หนึ่งคน ไม่ใช่สองคน บนเส้นทางฝั่ง tenant สี่ตาคือผู้ยื่นฝั่ง tenant กับผู้ดำเนินการคนนั้น และไม่มีผู้กระทำคนที่สามและไม่มีฟิลด์ผู้ตรวจแยก ไม่มีใครอนุมัติการกระทำของตัวเอง และผู้อนุมัติที่อยู่ภายใน tenant ถูกปฏิเสธ ชุดนั้นเขียนในธุรกรรมเดียว คือค่า ตัวอ้างอิงทั้งสี่ สถานะการตรวจที่คัดมา และวันที่อ่าน หรือคำขอถูกปฏิเสธพร้อมเหตุผลจากชุดที่ประกาศไว้ สถานะการตรวจที่คัดมาไม่ถูกยกระดับเลย ผู้ยื่นได้รับแจ้งเมื่อมีคำตัดสิน
3Platform operations, admin surface — a request that passes the target escalates to a distinct eligible holder of platform_config_admin, who is notified and may reassign it to another eligible approver. The escalation never makes the recipient an approver of that request and relaxes neither four_eyes nor no_self_approval; where no distinct eligible holder exists the notice goes to the operator tenant’s applied fixed-full owner role, likewise not an approver by the notice. The escalation, the elapsed time and the recorded pauses are written to the audit. Nothing is approved, assigned, granted or restored by the passage of time.ฝ่ายปฏิบัติการแพลตฟอร์ม ช่องทาง admin คำขอที่เกินเป้าหมายยกระดับไปที่ผู้ถือ platform_config_admin ที่มีสิทธิ์และเป็นคนละคน ซึ่งได้รับแจ้งและโอนคำขอให้ผู้อนุมัติที่มีสิทธิ์คนอื่นได้ การยกระดับไม่ทำให้ผู้รับเป็นผู้อนุมัติคำขอนั้น และไม่ผ่อน four_eyes หรือ no_self_approval เมื่อไม่มีผู้ถือที่มีสิทธิ์คนอื่น ให้แจ้งไปที่บทบาท owner ที่ apply แล้วและมีสิทธิ์เต็มของ tenant ผู้ดำเนินการ ซึ่งก็ไม่เป็นผู้อนุมัติเพราะการแจ้งเช่นกัน การยกระดับ เวลาที่ใช้ และการหยุดนับที่บันทึกไว้ เขียนลงการตรวจสอบย้อนหลัง ไม่มีสิ่งใดถูกอนุมัติ ผูก ให้ หรือคืน ด้วยเวลาที่ล่วงไป

The amendment is effective for the next invoice and for nothing already issued. An operator-initiated correction, and every one of the five BillingProfileAssignment transitions, takes two distinct authorized Cane operators instead — same journal, same refusals, and no tenant-side facet at all (FR-610, A-116 R-ASSIGNOPERATOR).

การแก้มีผลกับใบแจ้งหนี้ครั้งถัดไป และไม่มีผลกับใบที่ออกไปแล้ว การแก้ที่ผู้ดำเนินการเริ่มเอง และการเปลี่ยนสถานะ BillingProfileAssignment ทั้งห้าอย่าง ใช้ผู้ดำเนินการของ Cane ที่มีสิทธิ์และต่างกัน สอง คนแทน บันทึกเดียวกัน การปฏิเสธเดียวกัน และไม่มี facet ฝั่ง tenant เลย (FR-610 · A-116 R-ASSIGNOPERATOR)

6. Extensions — WF-25 & WF-275. ส่วนขยาย — WF-25 และ WF-27

WF-25 (capacity extension) now rejects a self-request for any invitation-only capacity with an explain-and-redirect state (“this capacity is by invitation — contact Cane Agency”, FR-70); self-serve capacities are untouched. WF-27 (platform view-as) is hosted natively in the admin Support area — support no longer borrows the tenant portal; behaviour (banner, dual log, read-only default) is unchanged (X4).

WF-25 ตอนนี้ปฏิเสธคำขอด้วยตนเองสำหรับ capacity เข้าโดยการเชิญ พร้อมสถานะอธิบายและพาไป (FR-70); capacity แบบสมัครเองไม่ถูกแตะ WF-27 โฮสต์ในกลุ่ม Support ของ admin โดยตรง — ไม่ยืม portal ของ tenant อีก; พฤติกรรมคงเดิม (X4)

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

8. Revision history8. ประวัติการแก้ไข

RevDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-08Initial version — PROP-006 (OPS, spec v7.0): operator workflows — WF-28 invitation-gated admission, WF-29 representative-mill stewardship & conversion, WF-30 platform operations, plus WF-25 admission gate and WF-27 native hosting.ฉบับแรก — PROP-006 (OPS, spec (สเปก) v7.0): workflowผู้ให้บริการ — WF-28 การรับเข้าโดยการเชิญ WF-29 การดูแลและแปลงโรงงานตัวแทน WF-30 การดำเนินงาน พร้อมประตู WF-25 และการโฮสต์ WF-27
0.1.02026-07-11PROP-014 (spec v0.1.0): semantic versioning restarted at 0.1.0 (was Rev 1.0 · 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.0 · 2026-07-08); ปรับ docnav ตามการแยก gov_cluster — ย้าย GOV ไป docs/gov/ocsb/ เพิ่มพี่น้อง BOARD (กอน.)
0.2.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.2.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
0.3.02026-08-20PROP-099 approved & applied — spec v0.81.0. New Section 5 walks WF-152 — a mill asks for its bill-to to be corrected: the tenant submits, ONE distinct authorized Cane operator verifies and approves, and a request that passes the OT-1 target escalates to a distinct eligible holder of platform_config_admin and is audited, approving nothing. Sections 5, 6 and 7 renumbered to 6, 7 and 8.PROP-099 อนุมัติและ apply แล้ว — spec v0.81.0 ข้อ 5 ใหม่เดิน WF-152 คือโรงงานขอให้แก้ค่าผู้รับใบแจ้งหนี้ของตน tenant ยื่น ผู้ดำเนินการของ Cane ที่มีสิทธิ์และต่างคนหนึ่งคนตรวจและอนุมัติ และคำขอที่เกินเป้าหมาย OT-1 ยกระดับไปที่ผู้ถือ platform_config_admin ที่มีสิทธิ์และเป็นคนละคน พร้อมบันทึกการตรวจสอบ โดยไม่อนุมัติสิ่งใด ข้อ 5 6 และ 7 เดิมเปลี่ยนเลขเป็น 6 7 และ 8