Cane Agency · Change Proposal (ACCEPTED — applied graph-first in spec v0.2.0)สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง (อนุมัติแล้ว — นำเข้า graph ก่อนใน spec v0.2.0)
Two government agencies, named officially — OCSB (สอน.) & OCSF (กองทุน): a naming correction, a folder re-layout, a navigation redesign, and a React prototypeสองหน่วยงานภาครัฐ ตั้งชื่อตามทางการ — OCSB (สอน.) และ OCSF (กองทุน): แก้ชื่อ จัดโฟลเดอร์ใหม่ ออกแบบการนำทางใหม่ และต้นแบบ React
- Documentเอกสาร
- PROP-015
- Statusสถานะ
- ACCEPTED — applied v0.2.0อนุมัติแล้ว — นำเข้า v0.2.0
- Kindประเภท
- Naming correction + structural refactor + prototype scope — refines the just-accepted PROP-014; renames two capacities to their official abbreviations, re-lays the GOV documents per area, redesigns navigation, updates the public website, and scopes a React web-app prototype for the two agencies.แก้ชื่อ + ปรับโครงสร้าง + ขอบเขตต้นแบบ — ปรับปรุง PROP-014 ที่เพิ่งอนุมัติ เปลี่ยนชื่อสอง capacity เป็นอักษรย่อทางการ จัดวางเอกสาร GOV รายพื้นที่ ออกแบบการนำทางใหม่ ปรับเว็บไซต์สาธารณะ และกำหนดขอบเขตต้นแบบ React ของสองหน่วยงาน
- Updatedปรับปรุงล่าสุด
- 11 Jul 2026
- Depends onขึ้นกับ
- PROP-014 (the gov_cluster class, the GOV document hub, semantic versioning); PROP-013 (the Fund / OCSF); PROP-005/006 (party, capacity, admission)PROP-014 (ชั้น gov_cluster ศูนย์เอกสาร GOV และ semantic versioning); PROP-013 (กองทุน / OCSF); PROP-005/006 (party, capacity, การรับเข้า)
- Affectsกระทบ
- Graph, APP, PRD, ERD, DDD, PWF, UIX, the docs/ folder layout, the shared navbar, web/ (public site) and apps/ (prototype)graph, APP, PRD, ERD, DDD, PWF, UIX, โครงสร้างโฟลเดอร์ docs/, navbar ร่วม, web/ และ apps/
- Version bumpการขยับเวอร์ชัน
- 0.1.0 → 0.2.0 — a capacity/surface rename is a breaking model change, MINOR under pre-1.0 semver (PROP-014)0.1.0 → 0.2.0 — การเปลี่ยนชื่อ capacity/surface เป็น breaking ระดับ MINOR ในช่วงก่อน 1.0 (PROP-014)
- Sourcesแหล่งอ้างอิง
- ocsb.go.th · ocsf.or.th
1. Summary1. สรุปข้อเสนอ
Statusสถานะ
This is ACCEPTED and applied graph-first in spec v0.2.0 (see drafts/CLAUDE.md). It follows directly from PROP-014: now that the government is modelled as a cluster, this proposal (a) names the two operative agencies by their official abbreviations, (b) re-lays their documents inside each area folder, (c) redesigns the spec navbar into a hierarchical dropdown, (d) refines the three project roots (apps · docs · web), (e) corrects the public website for the government sector, and (f) scopes a React web-app prototype for both agencies.
นี่คือข้อเสนอที่อนุมัติแล้ว และนำเข้า graph ก่อนใน spec v0.2.0 (ดู drafts/CLAUDE.md) ต่อยอดจาก PROP-014 โดยตรง: เมื่อภาครัฐถูกจำลองเป็นกลุ่มแล้ว ข้อเสนอนี้ (ก) ตั้งชื่อสองหน่วยงานหลักด้วยอักษรย่อทางการ (ข) จัดวางเอกสารไว้ในโฟลเดอร์รายพื้นที่ (ค) ออกแบบ navbar ของ spec เป็นเมนูดรอปดาวน์ตามลำดับชั้น (ง) จัดระเบียบสามรากโครงการ (apps · docs · web) (จ) แก้เว็บไซต์สาธารณะสำหรับภาคราชการ และ (ฉ) กำหนดขอบเขตต้นแบบ React ของทั้งสองหน่วยงาน
Two corrections first — please confirmแก้สองจุดก่อน — โปรดยืนยัน
(1) The official abbreviations are OCSB and OCSF, not oscb/oscf. typo The brief writes oscb / oscf, which transpose the C and S. The agencies' own domains confirm the order — ocsb.go.th (Office of the Cane and Sugar Board) and ocsf.or.th (…Fund). Since the whole point is to use the official abbreviation, this proposal uses ocsb / ocsf throughout and treats the transposed spelling as a slip to fix, not adopt.
(1) อักษรย่อทางการคือ OCSB และ OCSF ไม่ใช่ oscb/oscf พิมพ์สลับ โจทย์เขียน oscb / oscf ซึ่งสลับตัว C กับ S โดเมนของหน่วยงานยืนยันลำดับ — ocsb.go.th และ ocsf.or.th เมื่อเป้าหมายคือใช้อักษรย่อทางการ ข้อเสนอนี้จึงใช้ ocsb / ocsf ตลอด และถือว่าการสะกดสลับเป็นข้อผิดพลาดที่ต้องแก้
(2) The mapping to PROP-014 — clarified 11 Jul. PROP-014 modelled three gov bodies: government = สอน./OCSB (the office), a separate board = กอน. (the Board), and fund = OCSF. Per the reviewer: สอน. is the OFFICE and กอน. is the BOARD that governs the office and the whole Thai cane–sugar industry — they are distinct. So this proposal keeps them separate (PROP-014 was right): it renames only the two offices to their official abbreviations — government→ocsb (สอน.) and fund→ocsf (OCSF) — and keeps the governing Board (กอน.) as its own board capacity. Where the Board's docs sit in the two-office per-area tree is the remaining decision — see Q1.
(2) การจับคู่กับ PROP-014 — ชี้แจง 11 ก.ค. PROP-014 จำลองสามหน่วยรัฐ: government = สอน./OCSB (สำนักงาน), board = กอน. (คณะกรรมการ) แยกต่างหาก และ fund = OCSF ตามคำชี้แจง: สอน. คือสำนักงาน และ กอน. คือคณะกรรมการที่กำกับสำนักงานและอุตสาหกรรมอ้อย–น้ำตาลทั้งหมด — เป็นคนละหน่วย ข้อเสนอนี้จึงคงแยกกัน (PROP-014 ถูกแล้ว): เปลี่ยนชื่อเฉพาะสองสำนักงานเป็นอักษรย่อทางการ — government→ocsb (สอน.) และ fund→ocsf (OCSF) — และคงคณะกรรมกำกับ (กอน.) เป็น capacity board ของตัวเอง ที่เหลือคือเอกสารคณะกรรมอยู่ที่ใดในต้นไม้สองสำนักงาน — ดู Q1
2. The two agencies2. สองหน่วยงาน
Agency 1หน่วยงาน 1OCSB · สอน.Office of the Cane & Sugar Board (สำนักงานคณะกรรมการอ้อยและน้ำตาลทราย). The regulator — registration, CCS audit, price announcements the Board approves, 70:30 revenue account, burnt-cane compliance, distribution oversight. ocsb.go.thสำนักงานคณะกรรมการอ้อยและน้ำตาลทราย ผู้กำกับ — ทะเบียน ตรวจ CCS ประกาศราคาที่คณะกรรมการอนุมัติ บัญชี 70:30 กำกับอ้อยไฟไหม้ ดูแลการกระจาย ocsb.go.th
Agency 2หน่วยงาน 2OCSF · กองทุนOffice of the Cane & Sugar Fund (สำนักงานกองทุนอ้อยและน้ำตาลทราย). The fund administrator — statutory contributions, Article 56 compensation, solvency (PROP-013). ocsf.or.thสำนักงานกองทุนอ้อยและน้ำตาลทราย ผู้บริหารกองทุน — เงินสมทบตามกฎหมาย การชดเชยมาตรา 56 สภาพคล่อง (PROP-013) ocsf.or.th
Governsกำกับดูแลกอน. · BoardThe Cane & Sugar Board (คณะกรรมการอ้อยและน้ำตาลทราย) — governs สอน./OCSB and the whole industry. Kept as its own distinct board capacity (NOT folded); its policy acts FR-109…111 stay.คณะกรรมการอ้อยและน้ำตาลทราย — กำกับ สอน./OCSB และทั้งอุตสาหกรรม คงเป็น capacity board แยกของตัวเอง (ไม่ยุบ) FR-109…111 คงอยู่
Move A · Rename to official abbreviationsเปลี่ยนชื่อเป็นอักษรย่อทางการ
| PROP-014 (current)PROP-014 (ปัจจุบัน) | PROP-015 (proposed)PROP-015 (เสนอ) | Noteหมายเหตุ |
| capacity government (สอน., the office) | capacity ocsb (สอน.) | Rename the OFFICE to its official abbreviation. Keeps FR-19 (regulator duties).เปลี่ยนชื่อสำนักงานเป็นอักษรย่อทางการ คง FR-19 |
| capacity board (กอน., the Board) | capacity board — kept distinctคงแยก | The governing Board is NOT folded (it governs สอน. + the industry). Holds FR-109…111. Thai abbr กอน.; no Latin office-abbr — it is a board, not an office.คณะกรรมกำกับไม่ถูกยุบ (กำกับ สอน. + อุตสาหกรรม) ถือ FR-109…111 อักษรย่อไทย กอน.; ไม่มีอักษรย่อสำนักงานภาษาอังกฤษ เพราะเป็นคณะกรรมการ ไม่ใช่สำนักงาน |
| capacity fund (OCSF) | capacity ocsf (OCSF) | Rename the OFFICE; OCSF gains its own perspective doc family (masters-only in PROP-013).เปลี่ยนชื่อสำนักงาน; OCSF ได้ตระกูลเอกสารมุมมองของตัวเอง |
| surface regulator · board · fund | ocsb · board · ocsf | Rename the two office surfaces; the board surface stays (Q2).เปลี่ยนชื่อ surface สองสำนักงาน; surface board คงไว้ (Q2) |
| class gov_cluster = {government, board, fund} | = {ocsb, board, ocsf} | Two offices + the governing Board; extensible for future bodies.สองสำนักงาน + คณะกรรมกำกับ; ขยายได้ |
Both renames are breaking (capacity/surface ids change), so the token contract, entitlement matrix and every -GOV/-BOARD doc code shift. Under PROP-014's pre-1.0 semver a breaking change bumps MINOR → 0.2.0. All old ids get a one-line migration note; no data is lost.
การเปลี่ยนชื่อทั้งสองเป็น breaking (id ของ capacity/surface เปลี่ยน) จึงกระทบสัญญา token ตารางสิทธิ์ และรหัสเอกสาร -GOV/-BOARD ทุกฉบับ ตาม semver ก่อน 1.0 ของ PROP-014 การเปลี่ยน breaking ขยับ MINOR → 0.2.0 id เดิมมีบันทึกการย้ายบรรทัดเดียว ไม่มีข้อมูลสูญ
Move B · GOV documents, per areaเอกสาร GOV รายพื้นที่
Replace PROP-014's central docs/gov/{ocsb,board}/ hub layout with a per-area gov/ subfolder, one file per agency per area — the structure in the brief:
แทนที่โครงสร้างศูนย์กลาง docs/gov/{ocsb,board}/ ของ PROP-014 ด้วยโฟลเดอร์ย่อย gov/ รายพื้นที่ หนึ่งไฟล์ต่อหน่วยงานต่อพื้นที่ — ตามโครงสร้างในโจทย์:
docs/
├─ app/ gov/ spec-app-gov-ocsb.html spec-app-gov-ocsf.html
├─ prd/ gov/ spec-prd-gov-ocsb.html spec-prd-gov-ocsf.html
├─ erd/ gov/ spec-erd-gov-ocsb.html spec-erd-gov-ocsf.html
├─ ddd/ gov/ spec-ddd-gov-ocsb.html spec-ddd-gov-ocsf.html
├─ pwf/ gov/ spec-pwf-gov-ocsb.html spec-pwf-gov-ocsf.html
└─ uix/ gov/ spec-uix-gov-ocsb.html spec-uix-gov-ocsf.html
- OCSB docs = the moved PROP-014 -GOV files (from docs/gov/ocsb/) plus the folded -BOARD content, landing at docs/<area>/gov/spec-<area>-gov-ocsb.html.เอกสาร OCSB = ไฟล์ -GOV ของ PROP-014 (จาก docs/gov/ocsb/) รวมเนื้อหา -BOARD ที่ยุบเข้ามา ไปอยู่ที่ docs/<area>/gov/spec-<area>-gov-ocsb.html
- OCSF docs = a new perspective family (OCSF was masters-only under PROP-013), at docs/<area>/gov/spec-<area>-gov-ocsf.html.เอกสาร OCSF = ตระกูลมุมมองใหม่ (เดิมอยู่ในเอกสารหลัก) ที่ docs/<area>/gov/spec-<area>-gov-ocsf.html
- The PROP-014 docs/gov/ hub — keep as a lightweight cross-area agency directory that links into the per-area files, or retire it in favour of the navbar dropdown (Q3).ศูนย์ docs/gov/ ของ PROP-014 — คงไว้เป็นสารบบข้ามพื้นที่แบบเบา หรือยกเลิกแล้วใช้ดรอปดาวน์บน navbar แทน (Q3)
- The Board (กอน.) is not an office in the two-office tree; recommend documenting its governance within -gov-ocsb (the office it governs) rather than a separate per-area file — or keep a -gov-board doc if preferred (Q1).คณะกรรมการ (กอน.) ไม่ใช่สำนักงานในต้นไม้สองสำนักงาน; แนะนำให้บันทึกการกำกับภายใน -gov-ocsb (สำนักงานที่กำกับ) แทนไฟล์รายพื้นที่แยก — หรือคงเอกสาร -gov-board หากต้องการ (Q1)
- Redirects from every retired path (PROP-014 docs/gov/ocsb/*, docs/gov/board/*) so no accepted cross-reference breaks. The graph documents map and all .spec-docnav rows re-point.redirect จากทุกพาธที่เลิกใช้ (docs/gov/ocsb/*, docs/gov/board/*) เพื่อไม่ให้การอ้างอิงที่อนุมัติเสีย; แมป documents และ .spec-docnav ทุกแถวชี้ใหม่
Move C · Refine the three project rootsจัดระเบียบสามรากโครงการ
| Rootราก | Ownsรับผิดชอบ | Government homeที่อยู่ภาครัฐ |
| docs/ | The specification — the graph (single source of truth) + the six spec doc families. No runnable UI.ข้อกำหนด — graph (แหล่งความจริงเดียว) + หกตระกูลเอกสาร ไม่มี UI ที่รันได้ | docs/<area>/gov/ |
| apps/ | Runnable React prototypes, one per surface: portal, mobile, dispatch, crew, finance, admin, account — and the government consoles.ต้นแบบ React ที่รันได้ หนึ่งตัวต่อ surface: portal, mobile, dispatch, crew, finance, admin, account — และ console ภาครัฐ | apps/gov/ocsb/ · apps/gov/ocsf/ |
| web/ | The public marketing website (PROP-007/008) — audience landing, onboarding, trust. Not a product surface.เว็บไซต์การตลาดสาธารณะ (PROP-007/008) — หน้า audience การเริ่มใช้ ความน่าเชื่อถือ ไม่ใช่ surface ผลิตภัณฑ์ | web/for/government.* |
Rename the existing apps/fund/ prototype (PROP-013) to apps/gov/ocsf/ and add apps/gov/ocsb/ — so apps/gov/ mirrors docs/<area>/gov/ (Q4). Every root keeps relative paths (no leading /) for Azure Static Website hosting, per the project rule.
เปลี่ยนชื่อต้นแบบ apps/fund/ (PROP-013) เป็น apps/gov/ocsf/ และเพิ่ม apps/gov/ocsb/ — ให้ apps/gov/ สะท้อน docs/<area>/gov/ (Q4) ทุกรากใช้พาธสัมพัทธ์ (ไม่มี / นำหน้า) สำหรับ Azure Static Website ตามกติกาโครงการ
Move D · Navbar + nested dropdown menunavbar + เมนูดรอปดาวน์ตามลำดับชั้น
Today two flat bars stack: the global .spec-nav (APP · PRD · ERD · DDD · PWF · UIX) and a per-family .spec-docnav chip row. As the tree deepens (area → capacity → gov → agency) a flat chip row can't express the hierarchy. Redesign:
วันนี้มีสองแถวเรียงกัน: .spec-nav รวม (APP · PRD · ERD · DDD · PWF · UIX) และแถวชิป .spec-docnav รายตระกูล เมื่อลำดับชั้นลึกขึ้น (พื้นที่ → capacity → gov → หน่วยงาน) แถวชิปแบนอธิบายลำดับชั้นไม่ได้ จึงออกแบบใหม่:
- Global bar = the six areas. Each area is a dropdown trigger: hovering/clicking opens a popup menu of that area's whole tree — Master, the capacity perspectives (CFQ · CFC · MILL · FIN · CEC), a Government ▸ submenu (OCSB, OCSF), and infra (FED · OPS). The current doc is highlighted in place.แถวรวม = หกพื้นที่ แต่ละพื้นที่เป็นตัวเปิดดรอปดาวน์: hover/คลิกเปิดเมนูป็อปอัปของทั้งต้นไม้ในพื้นที่นั้น — Master, มุมมอง capacity (CFQ · CFC · MILL · FIN · CEC), เมนูย่อย Government ▸ (OCSB, OCSF) และโครงสร้างพื้นฐาน (FED · OPS) เอกสารปัจจุบันถูกไฮไลต์
- The dropdown is the nested-hierarchy navigator. It mirrors the folder tree exactly, so "where am I / where can I go" reads at a glance. It supersedes the flat .spec-docnav chip row (Q5: keep the chip row as a fallback, or replace it entirely).ดรอปดาวน์คือตัวนำทางลำดับชั้น สะท้อนต้นไม้โฟลเดอร์ตรง ๆ ให้เห็น "อยู่ไหน / ไปไหนได้" ทันที แทนที่แถวชิป .spec-docnav แบน (Q5: คงแถวชิปเป็นทางเลือกสำรอง หรือแทนที่ทั้งหมด)
- Behaviour: click-open (touch-friendly), Escape/outside-click closes, full keyboard nav (arrow keys + Enter), aria-expanded/role="menu", respects prefers-reduced-motion. Built with DS tokens only; no new colours.พฤติกรรม: คลิกเปิด (รองรับสัมผัส) Escape/คลิกนอกปิด นำทางด้วยคีย์บอร์ดครบ (ลูกศร + Enter) aria-expanded/role="menu" เคารพ prefers-reduced-motion ใช้ DS token เท่านั้น ไม่มีสีใหม่
Move E · Public website — the government sectorเว็บไซต์สาธารณะ — ภาคราชการ
Correct web/ so the government audience is accurate and addressed. Add a “For government” segment that names the two agencies correctly (OCSB the regulator, OCSF the fund) and states what the platform offers each — for OCSB: live cross-mill CCS via re-note ingestion, price-announcement publication, compliance oversight; for OCSF: contribution register, Article 56 compensation tracking, solvency. Fix any copy that mislabels the government as a single body or uses the transposed abbreviations. Align with the PROP-007/008 site structure and the design system’s public-web chrome (SiteShell).
แก้ web/ ให้กลุ่มเป้าหมายภาครัฐถูกต้องและได้รับการสื่อสาร เพิ่มส่วน “สำหรับภาครัฐ” ที่ระบุสองหน่วยงานถูกต้อง (OCSB ผู้กำกับ, OCSF กองทุน) และบอกสิ่งที่ platform มอบให้แต่ละหน่วย — OCSB: CCS ข้ามโรงงานแบบสดผ่านการรับรีโน้ต การเผยแพร่ประกาศราคา การกำกับ; OCSF: ทะเบียนเงินสมทบ การติดตามชดเชยมาตรา 56 สภาพคล่อง แก้ข้อความที่ระบุภาครัฐเป็นหน่วยเดียวหรือใช้อักษรย่อสลับ ให้สอดคล้องโครงสร้างเว็บ PROP-007/008 และ chrome เว็บสาธารณะของ design system (SiteShell)
Move F · React web-app prototype (the headline)ต้นแบบ React (หัวใจของข้อเสนอ)
Build two React prototype consoles on the bound Cane Agency design system (window.SugarcaneDesignSystem_c153e7 + _ds_bundle.js), starting from the portal template and the existing apps/fund/ (→ apps/gov/ocsf/) work:
สร้าง console ต้นแบบ React สองตัวบน design system Cane Agency ที่ผูกไว้ (window.SugarcaneDesignSystem_c153e7 + _ds_bundle.js) เริ่มจาก template portal และงาน apps/fund/ เดิม (→ apps/gov/ocsf/):
| Appแอป | Key screensหน้าจอหลัก |
apps/gov/ocsb/ OCSB regulator consoleconsole ผู้กำกับ OCSB | Cross-mill CCS audit (re-note %N-### queue), price-announcement approval & publication (Board acts), 70:30 revenue account, burnt-cane compliance dashboard, season oversight, quota allocation.ตรวจ CCS ข้ามโรงงาน (คิวรีโน้ต %N-###) อนุมัติและเผยแพร่ประกาศราคา (การกระทำคณะกรรมการ) บัญชี 70:30 แดชบอร์ดกำกับอ้อยไฟไหม้ กำกับฤดูกาล จัดสรรโควตา |
apps/gov/ocsf/ OCSF fund consoleconsole กองทุน OCSF | Contribution register (Article 28 fee + per-tonne levy), levy-rate configurator, Article 56 compensation queue with receivable aging, fund-balance / solvency panel (PROP-013 Option A, ported from apps/fund/).ทะเบียนเงินสมทบ (ค่าธรรมเนียม ม.28 + เงินเก็บรายตัน) ตัวตั้งอัตรา คิวชดเชย ม.56 พร้อมอายุลูกหนี้ แผงยอด/สภาพคล่อง (PROP-013 ทางเลือก A พอร์ตจาก apps/fund/) |
Both are dense desktop portals (≥1280px), light default, using AppShell + Table + Stat + the icon set; variable names match the graph (CcsReNote, FundCompensation, FundLevyRate…) per the project rule. Interactions are real (filters, selection, drill-in, form validation, multi-step flows) — a working prototype, not a mockup. Build order is Q6.
ทั้งคู่เป็น portal เดสก์ท็อปหนาแน่น (≥1280px) ค่าเริ่มต้นสว่าง ใช้ AppShell + Table + Stat + ชุดไอคอน; ชื่อตัวแปรตรงกับ graph (CcsReNote, FundCompensation, FundLevyRate…) ตามกติกาโครงการ การโต้ตอบเป็นจริง (ตัวกรอง การเลือก เจาะดู ตรวจฟอร์ม โฟลว์หลายขั้น) — ต้นแบบที่ทำงานได้ ไม่ใช่ภาพนิ่ง ลำดับการสร้างคือ Q6
3. Impact matrix3. ตารางผลกระทบ
| Targetเป้าหมาย | Changeการเปลี่ยนแปลง | Moveย้าย |
| graph capacities / surfaces / roles / entitlementMatrix / claims | Rename government→ocsb (absorb board as a role), fund→ocsf; rename surfaces; update the matrix + token claim contract.เปลี่ยน government→ocsb (ดูด board เป็นบทบาท), fund→ocsf; เปลี่ยนชื่อ surface; ปรับตารางและสัญญา token | A |
| graph documents + version | Re-path GOV docs to docs/<area>/gov/ with -gov-ocsb/-gov-ocsf codes; add the OCSF family; bump to 0.2.0.เปลี่ยนพาธ GOV เป็น docs/<area>/gov/ รหัส -gov-ocsb/-gov-ocsf; เพิ่มตระกูล OCSF; ขยับเป็น 0.2.0 | A·B |
| GOV doc files | Move + rename PROP-014 OCSB docs; fold BOARD content in; create the OCSF family (12 files, 2 per area); redirects.ย้าย+เปลี่ยนชื่อเอกสาร OCSB ของ PROP-014; ยุบ BOARD เข้า; สร้างตระกูล OCSF (12 ไฟล์ 2 ต่อพื้นที่); redirect | B |
| FR-19 / FR-109…111, glossary, conventions | Re-attribute Board acts to the OCSB board role; glossary keeps สอน./กอน./กองทุน; note the official abbreviations.ย้ายการกระทำคณะกรรมการไปบทบาท board ของ OCSB; glossary คง สอน./กอน./กองทุน; ระบุอักษรย่อทางการ | A |
| shared navbar (docs/shared/) | Build the hierarchical dropdown; re-point/retire .spec-docnav; ship across all ~60 docs + the SPEC-INDEX.สร้างดรอปดาวน์ลำดับชั้น; ชี้ใหม่/เลิก .spec-docnav; ใช้ทั่ว ~60 เอกสาร + SPEC-INDEX | D |
| web/ | Add the “For government” segment; correct agency names & targeting.เพิ่มส่วน “สำหรับภาครัฐ”; แก้ชื่อหน่วยงานและการวางเป้าหมาย | E |
| apps/ | Rename apps/fund/→apps/gov/ocsf/; build apps/gov/ocsb/. React on the bound DS.เปลี่ยน apps/fund/→apps/gov/ocsf/; สร้าง apps/gov/ocsb/ React บน DS ที่ผูก | C·F |
4. Guardrails4. กรอบป้องกัน
- Rename, don't redesign. The domain model (entities, events, workflows, FR/NFR) is unchanged except the capacity/surface ids and the board fold; every renamed id carries a migration note.เปลี่ยนชื่อ ไม่ออกแบบใหม่ โมเดลโดเมนคงเดิม ยกเว้น id ของ capacity/surface และการยุบ board; ทุก id ที่เปลี่ยนมีบันทึกการย้าย
- Proportionality inherited (PROP-013 NFR-29). OCSF stays the narrow fund actor; OCSB stays the regulator + policy body — neither gains market power.สืบทอดความได้สัดส่วน (PROP-013 NFR-29) OCSF คงเป็นผู้เล่นกองทุนแคบ; OCSB คงเป็นผู้กำกับ + ผู้กำหนดนโยบาย ไม่มีอำนาจตลาด
- Confidentiality walls unbroken. The strategic-pricing wall (PROP-009 NFR-21) and government-facing statement redaction (PROP-010 FR-94) apply to ocsb and ocsf exactly as before.กำแพงความลับไม่แตก กำแพงค่าอ้อยกลยุทธ์ (PROP-009 NFR-21) และการปิดบังงบต่อภาครัฐ (PROP-010 FR-94) ใช้กับ ocsb และ ocsf เหมือนเดิม
- No dead links. Every retired PROP-014 GOV path redirects; the graph is updated first, then docs, then web/apps.ไม่มีลิงก์ตาย ทุกพาธ GOV ของ PROP-014 ที่เลิกใช้ redirect; อัปเดต graph ก่อน แล้ว docs แล้ว web/apps
- Prototype ≠ spec. The React apps are illustrative; SPEC-UIX remains the binding visual design. Variable names still match the graph.ต้นแบบ ≠ spec แอป React เป็นตัวอย่าง; SPEC-UIX ยังเป็นการออกแบบผูกพัน ชื่อตัวแปรตรงกับ graph
5. Open questions5. คำถามที่ต้องตัดสิน
- Q1 Fold the Board (กอน.) into OCSB? Recommended: yes — one official OCSB capacity with a board role holding FR-109…111. Alternative: keep กอน. as a separate capacity (PROP-014 as-is) and only rename. This reverses part of PROP-014, so confirm explicitly.ยุบคณะกรรมการ (กอน.) เข้า OCSB? แนะนำ: ใช่ — capacity OCSB ทางการเดียว มีบทบาท board ถือ FR-109…111 ทางเลือก: คง กอน. เป็น capacity แยก (ตาม PROP-014) แล้วเปลี่ยนชื่ออย่างเดียว ข้อนี้ย้อน PROP-014 บางส่วน โปรดยืนยัน
✓ Decided (11 Jul) — Do NOT fold. สอน. is the OFFICE (→ ocsb) and กอน. is the BOARD that governs the office and the industry; they stay distinct (PROP-014's split was correct). Move A renames only the two offices and keeps the board capacity. Confirmed 11 Jul — the Board's docs live within -gov-ocsb; no separate -gov-board file — กอน.'s governance is a section of the OCSB docs (it governs through the office, needs no separate office/app).✓ ตัดสิน (11 ก.ค.) — ไม่ยุบ สอน. คือสำนักงาน (→ ocsb) กอน. คือคณะกรรมการที่กำกับสำนักงานและอุตสาหกรรม; คงแยกกัน (การแยกของ PROP-014 ถูก) Move A เปลี่ยนชื่อเฉพาะสองสำนักงานและคง capacity board ยืนยัน 11 ก.ค. — เอกสารคณะกรรมอยู่ภายใน -gov-ocsb; ไม่มีไฟล์ -gov-board แยก — การกำกับของ กอน. เป็นส่วนหนึ่งของเอกสาร OCSB
- Q2 Rename surfaces too? Rename regulator→ocsb and fund→ocsf for consistency, or keep the surface ids and rename only capacities + doc codes?เปลี่ยนชื่อ surface ด้วยไหม? เปลี่ยน regulator→ocsb และ fund→ocsf เพื่อความสอดคล้อง หรือคง id surface แล้วเปลี่ยนเฉพาะ capacity + รหัสเอกสาร?
- Q3 Keep the docs/gov/ hub? As a cross-area agency directory, or retire it now that navigation lives in the navbar dropdown and docs live per area?คงศูนย์ docs/gov/ ไหม? เป็นสารบบข้ามพื้นที่ หรือยกเลิกเพราะการนำทางอยู่ในดรอปดาวน์และเอกสารอยู่รายพื้นที่แล้ว?
- Q4 apps/ layout. Nested apps/gov/{ocsb,ocsf}/ (mirrors docs), or flat apps/{ocsb,ocsf}/? And confirm renaming apps/fund/→apps/gov/ocsf/.โครงสร้าง apps/ ซ้อน apps/gov/{ocsb,ocsf}/ (สะท้อน docs) หรือแบน apps/{ocsb,ocsf}/? และยืนยันเปลี่ยน apps/fund/→apps/gov/ocsf/
- Q5 Dropdown vs chip row. Does the new hierarchical dropdown replace the flat .spec-docnav chip row, or supplement it (dropdown for jumping, chips for the current family)?ดรอปดาวน์ vs แถวชิป ดรอปดาวน์ลำดับชั้นใหม่ แทนที่ แถวชิป .spec-docnav หรือเสริม (ดรอปดาวน์ไว้กระโดด ชิปไว้ตระกูลปัจจุบัน)?
- Q6 Prototype build order & depth. OCSB regulator console first, or OCSF fund console (already partly built as apps/fund/)? One flagship app fully, or both to equal breadth?ลำดับและความลึกของต้นแบบ console ผู้กำกับ OCSB ก่อน หรือ console กองทุน OCSF (สร้างบางส่วนแล้วใน apps/fund/)? ทำแอปเรือธงหนึ่งตัวให้ครบ หรือทั้งคู่กว้างเท่ากัน?
- Q7 Website scope. A dedicated web/for/government page, or fold the two agencies into the existing audience-segments section?ขอบเขตเว็บไซต์ หน้า web/for/government เฉพาะ หรือรวมสองหน่วยงานเข้ากับส่วน audience เดิม?
6. Sources6. แหล่งอ้างอิง
- S1 — ocsb.go.th — Office of the Cane and Sugar Board (สำนักงานคณะกรรมการอ้อยและน้ำตาลทราย, สอน.); confirms the official abbreviation OCSB.ocsb.go.th — สำนักงานคณะกรรมการอ้อยและน้ำตาลทราย (สอน.); ยืนยันอักษรย่อทางการ OCSB
- S2 — ocsf.or.th — Office of the Cane and Sugar Fund (สำนักงานกองทุนอ้อยและน้ำตาลทราย); confirms the official abbreviation OCSF.ocsf.or.th — สำนักงานกองทุนอ้อยและน้ำตาลทราย; ยืนยันอักษรย่อทางการ OCSF
- S3 — Internal: PROP-014 (gov_cluster, GOV hub, semantic versioning); PROP-013 (Fund / OCSF, proportionality NFR-29); PROP-007/008 (public website).ภายใน: PROP-014 (gov_cluster ศูนย์ GOV semantic versioning); PROP-013 (กองทุน / OCSF ความได้สัดส่วน NFR-29); PROP-007/008 (เว็บไซต์สาธารณะ)
- S4 — Thai Wikipedia, “สำนักงานคณะกรรมการอ้อยและน้ำตาลทราย” — confirms สอน. is the OFFICE (secretariat) and กอน. (the Cane & Sugar Board) is the governing board over the office and the industry.วิกิพีเดียไทย “สำนักงานคณะกรรมการอ้อยและน้ำตาลทราย” — ยืนยันว่า สอน. คือสำนักงาน (ฝ่ายเลขานุการ) และ กอน. คือคณะกรรมการที่กำกับสำนักงานและอุตสาหกรรม
Revision historyประวัติการแก้ไข
| Revฉบับ | Dateวันที่ | Changeการเปลี่ยนแปลง |
| 1.0 | 11 Jul 2026 | ACCEPTED — applied graph-first in spec v0.2.0. Graph: capacities government→ocsb and fund→ocsf (official abbreviations; board/กอน. kept distinct); surfaces regulator→ocsb, fund→ocsf; entitlement matrix, roles, FR surfaces & documents capacities remapped; version 0.1.0→0.2.0. Prototype: apps/ocsb/ regulator console built + apps/fund/→apps/ocsf/ renamed (both live). Remaining (in progress): per-area GOV doc re-layout, the hierarchical navbar dropdown, and the web/for/government page.อนุมัติแล้ว — นำเข้า graph ก่อนใน spec v0.2.0 graph: capacity government→ocsb และ fund→ocsf (อักษรย่อทางการ; คง board/กอน. แยก); surface regulator→ocsb, fund→ocsf; รีแมปสิทธิ์ บทบาท FR surface และ documents; version 0.1.0→0.2.0 ต้นแบบ: สร้าง apps/ocsb/ + เปลี่ยน apps/fund/→apps/ocsf/ ที่เหลือ: จัดวางเอกสาร GOV รายพื้นที่ navbar ดรอปดาวน์ และหน้า web/for/government |
| 0.2 | 11 Jul 2026 | Reviewer clarification folded in: สอน. is the OFFICE (→ ocsb) and กอน. is the BOARD that governs the office and the whole Thai cane–sugar industry — they are distinct. Q1 decided: do NOT fold the Board into OCSB (PROP-014's split stands); Move A now renames only the two offices (government→ocsb, fund→ocsf) and keeps the board (กอน.) capacity. Remaining: where the Board's docs sit in the two-office per-area tree. Added source S4 (Thai Wikipedia).รวมคำชี้แจงจากผู้ทบทวน: สอน. คือสำนักงาน (→ ocsb) กอน. คือคณะกรรมการที่กำกับสำนักงานและอุตสาหกรรมทั้งหมด — คนละหน่วย Q1 ตัดสิน: ไม่ยุบคณะกรรมเข้า OCSB (การแยกของ PROP-014 คงอยู่); Move A เปลี่ยนชื่อเฉพาะสองสำนักงาน และคง capacity board (กอน.) ที่เหลือ: เอกสารคณะกรรมอยู่ที่ใด เพิ่มแหล่ง S4 (วิกิพีเดียไทย) |
| 0.1 | 11 Jul 2026 | Initial draft — refines PROP-014: (A) rename capacities to official abbreviations government→ocsb (absorbing board/กอน.) and fund→ocsf, correcting the transposed oscb/oscf in the brief; (B) re-lay GOV docs per area at docs/<area>/gov/spec-<area>-gov-{ocsb,ocsf}.html; (C) refine the apps/docs/web roots + gov prototype homes; (D) a hierarchical navbar dropdown; (E) a public-website government segment; (F) React consoles for OCSB & OCSF. Version 0.1.0→0.2.0. Seven open questions (Q1 board-fold load-bearing). Not applied to the graph until accepted.ร่างแรก — ปรับปรุง PROP-014: (A) เปลี่ยนชื่อ capacity เป็นอักษรย่อทางการ government→ocsb (ดูด board/กอน.) และ fund→ocsf แก้การสะกดสลับ oscb/oscf ในโจทย์; (B) จัดวางเอกสาร GOV รายพื้นที่ที่ docs/<area>/gov/spec-<area>-gov-{ocsb,ocsf}.html; (C) จัดระเบียบราก apps/docs/web + ที่อยู่ต้นแบบภาครัฐ; (D) ดรอปดาวน์ navbar ลำดับชั้น; (E) ส่วนภาครัฐบนเว็บไซต์; (F) console React ของ OCSB & OCSF เวอร์ชัน 0.1.0→0.2.0 เจ็ดคำถาม (Q1 การยุบ board คือข้อรับน้ำหนัก) ยังไม่นำเข้า graph จนกว่าจะอนุมัติ |