SPEC-APP-GRP Rev 0.3.1 · 2026-08-03

Cane Agency · APP Seriesสถาบันอ้อย · ชุดเอกสาร APP

Application Design — Factory Groups (กลุ่มโรงงาน)การออกแบบ application — กลุ่มโรงงาน

Documentเอกสาร
SPEC-APP-GRP
Versionversion (เวอร์ชัน)
0.3.1
Scopeขอบเขต
grp · factory_group · the tenant directoryไดเรกทอรีของ tenant
Surfaceช่องทางใช้งาน
group (group capacity — the thirteenth surfacecapacity group — surface ที่สิบสาม)
Updatedปรับปรุงล่าสุด
2026-08-03
Masterเอกสารหลัก
SPEC-APP

1. Scope & perspective1. ขอบเขตและมุมมอง

This is the Factory Group (GRP) perspective of SPEC-APP, created by PROP-026 (spec v0.25.0). It documents the owner above the factory: a platform-verified FactoryGroup of mill tenants under common control, its own console on the thirteenth surface group, and — per client directions D-3/D-4 — the fact that the verified group is the tenant, operating as a directory whose root department is the group head office and whose site departments are the factories. The single source of truth is the graph (docs/graph/spec-graph.json, perspectives.grp).

นี่คือมุมมอง กลุ่มโรงงาน (GRP) ของ SPEC-APP สร้างโดย PROP-026 (spec (สเปก) v0.25.0) เอกสารนี้อธิบายเจ้าของที่อยู่เหนือโรงงาน: FactoryGroup ที่ platform ตรวจยืนยันแล้วของ tenant โรงงานภายใต้อำนาจควบคุมเดียวกัน console ของตนบน surface ที่สิบสาม group และตามคำสั่งลูกค้า D-3/D-4 กลุ่มที่ตรวจยืนยันแล้วคือ tenant ซึ่งทำงานเป็นไดเรกทอรีที่มีหน่วยงานรากเป็นสำนักงานใหญ่ของกลุ่ม และหน่วยงานประจำสถานที่เป็นโรงงาน แหล่งความจริงเดียวคือ graph (กราฟ) (docs/graph/spec-graph.json, perspectives.grp)

Why GRP is a market family, not infrastructureเหตุที่ GRP เป็นตระกูลฝั่งตลาด ไม่ใช่โครงสร้างพื้นฐาน PROP-046's homing test fails on all three legs: the group is a customer, not the operator; its facts are its own factories' facts, not cross-tenant derivations; and no other capacity family depends on it. GRP therefore sits with the market capacities (CFQ · CFC · MILL · FIN · CEC), while the directory entities it introduces are rendered as amended federation machinery in the FED family (D-4). บททดสอบการมีบ้านของ PROP-046 ไม่ผ่านทั้งสามข้อ: กลุ่มเป็นลูกค้า ไม่ใช่ operator; ข้อเท็จจริงของมันคือข้อเท็จจริงของโรงงานตนเอง ไม่ใช่ผลลัพธ์ข้าม tenant; และไม่มีตระกูล capacity อื่นพึ่งพามัน GRP จึงอยู่กับ capacity ฝั่งตลาด (CFQ · CFC · MILL · FIN · CEC) ขณะที่ entity ไดเรกทอรีที่มันเพิ่มเข้ามาถูก render เป็นกลไก federation ฉบับแก้ไขในตระกูล FED (D-4)

2. Boundary principles — binding2. หลักเขตแดน — ผูกพัน

RuleกติกาContractสัญญา
G1Cross-factory visibility exists solely inside a verified common-ownership group. All three legal topologies qualify (branches · parent-subsidiary · cross-holdings); no alliance, association or joint venture short of control opens the door. Between factories of different groups, isolation stays absolute (PROP-025 OQ-2).การมองเห็นข้ามโรงงานมีเฉพาะภายในกลุ่มเจ้าของเดียวที่ตรวจยืนยันแล้ว ทั้งสามโครงสร้างทางกฎหมายเข้าเกณฑ์ (สาขา · แม่-ลูก · ถือหุ้นไขว้); พันธมิตร สมาคม หรือการร่วมทุนที่ไม่ถึงอำนาจควบคุม ไม่เปิดประตูนี้ ระหว่างโรงงานต่างกลุ่ม การแยกยังเด็ดขาด (OQ-2 ของ PROP-025)
G2The group administers; the factory transacts. Configuration, master data, chart mapping, role grants and reporting may be delegated; intake, weighing, acceptance, settlement approval and credit acts execute inside the factory department under that department's own four-eyes (OQ-15 — transactional keys ship department_delegable = false).กลุ่มดูแล โรงงานทำรายการ การตั้งค่า ข้อมูลหลัก การ map ผังบัญชี การให้ role และการออกรายงาน มอบอำนาจได้; การรับอ้อย ชั่ง รับมอบ อนุมัติชำระ และสินเชื่อ ทำในหน่วยงานของโรงงานภายใต้สี่ตาของหน่วยงานนั้น (OQ-15 — กุญแจเชิงรายการออกด้วย department_delegable = false)
G3Farmers' data does not pool. No unified farmer profile, no cross-mill quota view, no pooled reliability, no linked movement graph. Group reads are aggregates above the k = 5 anonymity floor (NFR-63). ONE named exception: keyed per-farmer strategic-agreement detail (FR-221, OQ-5).ข้อมูลชาวไร่ไม่รวมกอง ไม่มีโปรไฟล์ชาวไร่รวม ไม่มีมุมมองโควตาข้ามโรงงาน ไม่มีคะแนนรวมกอง ไม่มีกราฟการเคลื่อนที่เชื่อมโยง การอ่านของกลุ่มเป็นค่ารวมเหนือเกณฑ์ปิดบังตัวตน k = 5 (NFR-63) ข้อยกเว้นที่ระบุชื่อหนึ่งข้อ: รายละเอียดข้อตกลงกลยุทธ์รายชาวไร่ที่ต้องมีกุญแจ (FR-221, OQ-5)
G4Consolidate in a derived layer — never open a tenant wall. Member departments publish facts; the platform materializes the factory_group read model from them, so no group number ever depends on a live read inside a factory and revoking a group revokes a read model.รวมในชั้นอนุพันธ์ — ไม่เปิดกำแพง tenant หน่วยงานสมาชิกเผยแพร่ข้อเท็จจริง; platform สร้าง read model factory_group จากสิ่งนั้น ตัวเลขของกลุ่มจึงไม่พึ่งการอ่านสดในโรงงาน และการเพิกถอนกลุ่มคือการเพิกถอน read model
G5Membership-period truth. A factory appears in group views only for the periods it was a member. Buying does not retro-consolidate; selling does not erase. Published statements are immutable — divestment is a forward cut (OQ-4).ความจริงตามช่วงสมาชิกภาพ โรงงานปรากฏในมุมมองกลุ่มเฉพาะงวดที่เป็นสมาชิก การซื้อไม่ย้อนรวม การขายไม่ลบ งบที่เผยแพร่แล้วเปลี่ยนไม่ได้ — การขายกิจการคือการตัดไปข้างหน้า (OQ-4)
G6One tenant, one directory — the wall is at the tenant root (OQ-12, re-cut platform-wide). A standalone mill is a single-department tenant, so there is exactly one authorization model for every factory, grouped or not.หนึ่ง tenant หนึ่งไดเรกทอรี — กำแพงอยู่ที่รากของ tenant (OQ-12 ตัดใหม่ทั้ง platform) โรงงานเดี่ยวคือ tenant หน่วยงานเดียว จึงมี model สิทธิ์แบบเดียวสำหรับทุกโรงงาน ไม่ว่าจะอยู่ในกลุ่มหรือไม่

3. Access contract3. สัญญาการเข้าถึง

Elementองค์ประกอบContractสัญญา
capacity groupClass market, EXCLUSIVE by construction (a group tenant produces nothing), admission by operator-verified ownership evidence, two-act (WF-76, OQ-1). Entitlement: account + group.class market เอกสิทธิ์โดยการออกแบบ (tenant กลุ่มไม่ผลิตอะไร) เข้าโดย operator ตรวจหลักฐานความเป็นเจ้าของ สอง act (WF-76, OQ-1) สิทธิ์เข้า: account + group
surface groupThe thirteenth surface — desktop web ≥1280px, portal shell chrome, seven screens grp-01…grp-07. Sibling of the mill portal, never its mode (OQ-2).surface ที่สิบสาม — desktop web ≥1280px ใช้เปลือกของ portal เจ็ดหน้าจอ grp-01…grp-07 เป็นพี่น้องของ portal โรงงาน ไม่ใช่โหมดของมัน (OQ-2)
rolesgroup_owner (only role that may apply for admission/divestment and grant group roles, FR-208) · group_finance (amount-bearing statements) · group_analyst (aggregates) · group_admin (the tenant's federation administrator — directory only, no business data).group_owner (role เดียวที่ยื่นรับเข้า/ขายออกและให้ role กลุ่มได้ FR-208) · group_finance (งบที่มีตัวเงิน) · group_analyst (ค่ารวม) · group_admin (ผู้ดูแล federation ของ tenant — ไดเรกทอรีเท่านั้น ไม่เห็นข้อมูลธุรกิจ)
keysDeny-all baseline over six: grp_view (implied floor, amounts masked) · grp_books · grp_amounts · grp_fleet · grp_admin · grp_str_agreements (four-eyes to grant; requires grp_amounts + the member factory's live strategic entitlement). A-20 grade: no key = absent · grp_view = masked · + grp_amounts = full.ตั้งต้นปฏิเสธทั้งหมด หกกุญแจ: grp_view (พื้นโดยนัย ปิดบังตัวเงิน) · grp_books · grp_amounts · grp_fleet · grp_admin · grp_str_agreements (ให้ด้วยสี่ตา ต้องมี grp_amounts + entitlement กลยุทธ์ของโรงงานสมาชิกที่ใช้งานอยู่) ระดับ A-20: ไม่มีกุญแจ = ไม่เห็น · grp_view = ปิดบัง · + grp_amounts = เต็ม
identityOne Person, an additional Membership in the group tenant — the same federation machinery as every capacity. A head-office CFO who also runs a factory finance desk holds two memberships and switches explicitly; the group membership never silently escalates a factory session. The token carries exactly one active department (dep, FR-220).หนึ่ง Person มี Membership เพิ่มใน tenant กลุ่ม — กลไก federation เดียวกับทุก capacity CFO สำนักงานใหญ่ที่ดูแลโต๊ะการเงินโรงงานด้วยถือสองสมาชิกภาพและสลับอย่างชัดแจ้ง; สมาชิกภาพกลุ่มไม่ยกระดับ session โรงงานโดยเงียบ token บรรทุกหน่วยงานที่ใช้งานหนึ่งเดียว (dep, FR-220)
commercialPaid tier under PROP-016, signed by the group entity, priced per member factory with a group-tier discount (PROP-039 SKU tree, OQ-7); requires at least two verified member tenants live. It unlocks nothing inside a member mill.ชั้นเสียเงินตามกรอบ PROP-016 ลงนามโดยนิติบุคคลกลุ่ม คิดราคารายโรงงานสมาชิกพร้อมส่วนลดชั้นกลุ่ม (ต้นไม้ SKU ของ PROP-039, OQ-7); ต้องมี tenant สมาชิกที่ตรวจยืนยันแล้วอย่างน้อยสองรายใช้งานจริง ไม่ปลดล็อกสิ่งใดในโรงงานสมาชิก

4. The directory — PROP-005 extended (D-3/D-4)4. ไดเรกทอรี — การขยาย PROP-005 (D-3/D-4)

The federation service already answered "who are you, for whom are you acting, and what may you do there". The directory adds exactly two missing relationships: a place for a grant to point at (Department) and a set for a grant to be inherited from (DirectoryGroup). Everything else in PROP-005 stands as applied; the normative model lives in the graph block federation.directory and renders in SPEC-PRD-FED Section 12, SPEC-ERD-FED, SPEC-DDD-FED and SPEC-PWF-FED.

บริการ federation ตอบได้แล้วว่า "คุณเป็นใคร ทำหน้าที่แทนใคร และทำอะไรได้ที่นั่น" ไดเรกทอรีเพิ่มความสัมพันธ์ที่ขาดไปสองอย่างเท่านั้น: ที่ ให้ grant ชี้ไป (Department) และชุด ให้ grant ถูกสืบทอดมา (DirectoryGroup) ส่วนอื่นของ PROP-005 คงเดิมตามที่ใช้แล้ว; model เชิงบรรทัดฐานอยู่ในบล็อก federation.directory ของ graph และ render ใน SPEC-PRD-FED ข้อ 12, SPEC-ERD-FED, SPEC-DDD-FED และ SPEC-PWF-FED

Directory ruleกติกาไดเรกทอรีContractสัญญา
DR-1The tenant is the wall; the department is the scope. Across tenants nothing resolves and no trust is transitive (NFR-65).tenant คือกำแพง หน่วยงานคือขอบเขต ข้าม tenant ไม่มีสิ่งใด resolve และไม่มีความเชื่อถือแบบส่งต่อ (NFR-65)
DR-2Nothing inherits silently. The single built-in exception is grp_enterprise_admin — in every child department by construction, listed by name on each factory's admin screen, four-eyes to add a member, revocable only at the root, barred from transactional keys (OQ-13).ไม่มีอะไรสืบทอดโดยเงียบ ข้อยกเว้นในตัวมีเพียง grp_enterprise_admin — อยู่ในทุกหน่วยงานลูกโดยการออกแบบ แสดงรายชื่อบนหน้าจอผู้ดูแลของแต่ละโรงงาน เพิ่มสมาชิกด้วยสี่ตา เพิกถอนได้ที่รากเท่านั้น และห้ามถือกุญแจเชิงรายการ (OQ-13)
DR-3Effective permission = own grants ∪ directory-group grants (one level of nesting), narrowed to the active department, deny-overrides (FR-216).สิทธิ์ที่ใช้ได้จริง = grant ของตน ∪ grant ของกลุ่มไดเรกทอรี (ซ้อนหนึ่งชั้น) บีบด้วยหน่วยงานที่ใช้งาน การปฏิเสธชนะ (FR-216)
DR-4Administrative reach is not data reach — a directory confers administration, never consent (NFR-63).สิทธิ์ดูแลไม่ใช่สิทธิ์ข้อมูล — ไดเรกทอรีให้สิทธิ์การดูแล ไม่ใช่ความยินยอม (NFR-63)
DR-5Two-department audit of every delegated act, with the full delegation path (NFR-66).บันทึกสองหน่วยงานสำหรับทุกการกระทำที่ได้รับมอบ พร้อมเส้นทางการมอบอำนาจครบ (NFR-66)
DR-6Grouping never moves data — admission re-parents a department, divestment re-parents it out (WF-80).การจัดกลุ่มไม่ย้ายข้อมูล — การรับเข้าย้ายรากของหน่วยงาน การขายออกย้ายมันออก (WF-80)

5. Requirement index5. บัญชีข้อกำหนด

Groupกลุ่มRequirementsข้อกำหนด
FR-196…208The group model and its console: formation with evidence · single active membership · dated admission/divestment · membership-period clipping · chart mapping with a blocking unmapped line · declared eliminations with exception surfacing · provisional vs final runs · immutable runs with an inputs snapshot · statement set + auditor export pack · performance datasets · group-scoped fleet read · member-mill standing disclosure · group role grants by group_owner only.โมเดลกลุ่มและ console: การตั้งกลุ่มพร้อมหลักฐาน · สมาชิกภาพเปิดหนึ่งเดียว · รับเข้า/ขายออกตามวันที่ · การตัดตามช่วงสมาชิกภาพ · การ map ผังบัญชีพร้อมบรรทัดที่ block · การตัดรายการที่ประกาศไว้พร้อมแสดงข้อยกเว้น · provisional เทียบ final · การรันที่เปลี่ยนไม่ได้พร้อม snapshot · ชุดงบ + ชุด export ผู้สอบบัญชี · ชุดข้อมูลผลงาน · การอ่านกองรถขอบเขตกลุ่ม · การเปิดเผยประจำที่โรงงานสมาชิก · การให้ role กลุ่มโดย group_owner เท่านั้น
FR-209…212The D-2 legal layer: legal-entity registry with tax id + branch codes · dated ownership graph with evidence per edge · derived control resolution (no apex = no group) · topology-dependent run semantics.ชั้นกฎหมายตาม D-2: ทะเบียนนิติบุคคลพร้อมเลขภาษีและเลขสาขา · กราฟการถือหุ้นที่มีวันที่และหลักฐานรายเส้น · การคำนวณอำนาจควบคุม (ไม่มียอด = ไม่มีกลุ่ม) · semantics ของการรันตามโครงสร้าง
FR-213…220The D-3/D-4 directory: department tree per tenant · every mill Tenant resolves to one department · directory groups with one nesting level · effective permission as a per-department union with deny-overrides · department-scoped grants with no implicit inheritance · delegated-act stamping · re-parenting without moving data · exactly one active department per session.ไดเรกทอรีตาม D-3/D-4: ต้นไม้หน่วยงานต่อ tenant · Tenant โรงงานทุกรายชี้ไปหน่วยงานเดียว · กลุ่มไดเรกทอรีซ้อนหนึ่งชั้น · สิทธิ์ที่ใช้ได้จริงเป็นการรวมรายหน่วยงานโดยการปฏิเสธชนะ · grant ผูกหน่วยงานไม่มีการสืบทอดโดยนัย · การประทับการกระทำที่ได้รับมอบ · การย้ายรากโดยไม่ย้ายข้อมูล · หนึ่งหน่วยงานที่ใช้งานต่อ session
FR-221The OQ-5 amendment — keyed, audited per-farmer strategic-agreement drill-through, one member factory at a time, no cross-factory join.การแก้ไขตาม OQ-5 — การเจาะดูข้อตกลงกลยุทธ์รายชาวไร่ที่ต้องมีกุญแจและมีบันทึกตรวจสอบ ทีละโรงงานสมาชิก ไม่รวมข้ามโรงงาน
NFR-61…68Tenant-rooted isolation wall · group read audit · k = 5 floor enforced server-side · consolidation determinism · no transitive trust · two-department audit · token shape under the directory · farmer-detail read audit with no cross-factory join capability.กำแพงการแยกที่รากของ tenant · บันทึกการอ่านของกลุ่ม · บังคับเกณฑ์ k = 5 ฝั่ง server · ความ deterministic ของการรวม · ไม่มีความเชื่อถือส่งต่อ · บันทึกสองหน่วยงาน · รูปของ token ใต้ไดเรกทอรี · บันทึกการอ่านรายละเอียดชาวไร่ที่รวมข้ามโรงงานไม่ได้
Amendedที่แก้ไขFR-60 (active department in the session context) · FR-63 (one role per surface per department) · FR-64 (per-department compiled permission + department_delegable) · FR-65 (department_path as the outermost scope axis) — all amended IN PLACE, none superseded (D-4).FR-60 (หน่วยงานที่ใช้งานในบริบท session) · FR-63 (หนึ่ง role ต่อ surface ต่อหน่วยงาน) · FR-64 (สิทธิ์ที่คอมไพล์รายหน่วยงาน + department_delegable) · FR-65 (department_path เป็นแกนขอบเขตนอกสุด) — แก้ในที่ทั้งหมด ไม่มีฉบับใดถูกแทนที่ (D-4)

6. Constraints & deferrals6. ข้อจำกัดและสิ่งที่เลื่อน

Related documentsเอกสารที่เกี่ยวข้อง

Revision historyประวัติการแก้ไข

RevฉบับDateวันที่Changeการเปลี่ยนแปลง
0.1.02026-07-25Created by PROP-026 (spec v0.25.0, accepted & applied 25 Jul 2026; all 17 open questions client-decided) — the GRP market perspective family opens with six documents. Rev starts at 0.1.0 per the post-PROP-014 semantic-versioning convention.สร้างโดย PROP-026 (spec v0.25.0 รับและ apply 25 ก.ค. 2569; ลูกค้าตัดสินคำถามเปิดครบทั้ง 17 ข้อ) — ตระกูล perspective ฝั่งตลาด GRP เปิดพร้อมเอกสารหกฉบับ เริ่ม rev ที่ 0.1.0 ตามธรรมเนียม semantic versioning หลัง PROP-014
0.2.02026-08-03PROP-075 approved & applied — spec v0.46.0. Editorial: the customer-profile line stops calling a tenant “an individual or organization tenant” — a tenant is a container (A-81, R-CONTAINER) and the registered legal body is a Department carrying a legal_form. department_id / department_path → department_* where cited.PROP-075 อนุมัติและ apply — spec v0.46.0 เชิงบรรณาธิการ: เลิกเรียก tenant ว่า tenant แบบบุคคลหรือองค์กร
0.3.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), so one tree has one name.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; รหัสแสดงผลและ claim ถูก R-NULL คงไว้หนึ่งรุ่น แล้วย้ายที่ v0.47.1 ตามการตัดสินของลูกค้า (C-1) เพราะยังไม่มีโทเคนใดถูกลงนาม (ต้นแบบ ocsb/ocsf ที่สร้างแล้วไม่มีระบบ auth) และรหัสที่พิมพ์มีเพียงแปดสายใน apps/ocsf/fund-shell.jsx ซึ่งถูกกวาดในรอบเดียวกัน: PTY- → TNT-, TCA- → TCA-, TQL- → TQL-, claim tnt → tnt, claim dep → dep รอบเดียวกันแก้ค้างจาก PROP-075: คำนามไดเรกทอรีที่เลิกใช้ domain เปลี่ยนเป็น department (A-82 R-ONETREE)
0.3.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