Cane Agency · Change proposal PROP-042 · spun out of PROP-022 (ex-OQ-8…14; relocated from the PROP-019 Q1 gate, Q-21)สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง PROP-042 · แยกจาก PROP-022 (เดิม OQ-8…14; ย้ายมาจากด่าน Q1 ของ PROP-019 ข้อ Q-21)
A-20 made strategic visibility graduated per viewer — absent → masked → full — and the federation model has nothing to build that on. The seven decisions below were first expanded inside PROP-022; on the client's one-proposal-per-topic direction (19 Jul 2026) they ride here as their own draft so the host suite stays reviewable. Verdicts land back against the relocated PROP-019 Q-21 blocker via this proposal's acceptance, and PROP-040's future consolidation treats this family as its proven pathfinder.
A-20 ทำให้การมองเห็นเชิงกลยุทธ์เป็นระดับตามผู้ดู — หายไป → mask → เต็ม — ขณะที่ federation model ยังไม่มีอะไรให้ต่อยอด เจ็ดการตัดสินด้านล่างถูกขยายครั้งแรกใน PROP-022; ตามแนวทางลูกค้าหนึ่งข้อเสนอต่อหัวข้อ (19 ก.ค. 2569) จึงมาอยู่ในร่างของตัวเองเพื่อให้ฉบับแม่ยังทบทวนได้ คำวินิจฉัยกลับไปปิด blocker Q-21 ของ PROP-019 ผ่านการรับข้อเสนอนี้ และการรวมในอนาคตของ PROP-040 ถือตระกูลนี้เป็น pathfinder ที่พิสูจน์แล้ว
A-20 made strategic visibility graduated per viewer — absent → present-but-masked → full amounts, assigned per factory — so no single binary key can gate the area. Today the federation model has nothing to build on: the PermissionCatalog's only named value is books_split, role nodes carry no permission sets, the entitlement matrix is capacity × surface only. Seven decisions define the model:
A-20 ทำให้การมองเห็นเชิงกลยุทธ์เป็นระดับตามผู้ดู — หายไป → เห็นแต่ถูก mask → เห็นจำนวนเต็ม กำหนดรายโรงงาน — key เดี่ยวแบบ binary จึง gate พื้นที่นี้ไม่ได้ ปัจจุบัน federation model ไม่มีอะไรให้ต่อยอด: ค่าที่ระบุชื่อเดียวของ PermissionCatalog คือ books_split, role ไม่ถือชุด permission, entitlement matrix เป็น capacity × surface เท่านั้น เจ็ดการตัดสินนิยาม model นี้:
Candidate key family in a new strategic domain group: str_view (the area exists — sidebar item, plan list, premium panels with masked amounts) · str_amounts (unmasked ฿ on payment items, delivery premium columns, the cost console) · str_plan_manage (create/edit scenarios) · str_plan_approve (executive grade — approve/activate a plan version from the executive review, PROP-022 Section 4; per client direction 19 Jul 2026 this is a level ABOVE factory staff/management, and the executive review's balance/justification/insight analytics render only to it) · str_release_approve (approve PremiumRelease) · str_config (calc-basis cascade & policy rows — home decided by PROP-022 OQ-2: own screen behind the wall). To decide: is this the right cut; A-20 mapping — no keys = absent, str_view only = masked, + str_amounts = full; is masking per-field (amount only) or per-record (whole premium row); does regenerating the combined slip need its own key?
ตระกูล key ที่เสนอในกลุ่ม domain ใหม่ strategic: str_view (รู้ว่าพื้นที่มีอยู่ — รายการ sidebar รายชื่อแผน panel premium แบบ mask จำนวน) · str_amounts (เห็น ฿ เต็มบน payment item คอลัมน์ premium และ console ต้นทุน) · str_plan_manage (สร้าง/แก้สถานการณ์) · str_plan_approve (ระดับผู้บริหาร — อนุมัติ/activate เวอร์ชันแผนจากหน้าทบทวนผู้บริหาร ข้อ 4 ของ PROP-022; ตามแนวทางลูกค้า 19 ก.ค. 2569 เป็นระดับที่สูงกว่าเจ้าหน้าที่/ฝ่ายจัดการของโรงงาน และฐานะการเงิน/เหตุผล/insight analytics ของหน้าทบทวนนี้ render ให้เฉพาะผู้ถือ key นี้) · str_release_approve (อนุมัติ PremiumRelease) · str_config (ลำดับชั้น calc basis และแถวนโยบาย — บ้านตัดสินโดย PROP-022 OQ-2: จอของตัวเองหลังกำแพง) ต้องตัดสิน: แบ่งแบบนี้ถูกไหม; map กับ A-20 — ไม่มี key = หายไป, มีแค่ str_view = mask, เพิ่ม str_amounts = เต็ม; mask ราย field (เฉพาะจำนวน) หรือราย record (ทั้งแถว premium); การสร้าง slip รวมซ้ำต้องมี key ของตัวเองไหม?
Recommendation:ข้อเสนอแนะ: the six-key family, with str_view as the floor implied by every other key and str_plan_approve strictly senior to str_plan_manage (an approver may not approve their own authored version); per-field masking (existence is visible, amounts are not).ใช้ตระกูลหก key โดย str_view เป็นพื้นที่ key อื่นทุกตัว imply และ str_plan_approve อาวุโสกว่า str_plan_manage เสมอ (ผู้อนุมัติอนุมัติเวอร์ชันที่ตนเขียนเองไม่ได้); mask ราย field (เห็นว่ามี แต่ไม่เห็นจำนวน)
Cross-ref (17 Jul 2026):อ้างโยง (17 ก.ค. 2569): A-48 already pins part of the slip’s mapping — the strategic card + grand total are permission-gated and non-holders see the statutory section only (per-section masking on the slip); the slip inherits ccs_source, fuel-credit lines and A-47 leg status. The verdict here should ratify that as the str_view/str_amounts mapping applied to slips and reports.A-48 ตรึงส่วนหนึ่งของ map บน slip แล้ว — การ์ดกลยุทธ์ + ยอดรวมใหญ่ gate ด้วย permission และผู้ไม่มีสิทธิ์เห็นเฉพาะส่วนตามกฎหมาย (mask รายส่วนบน slip); slip สืบทอด ccs_source บรรทัดเครดิตน้ำมัน และสถานะ leg ตาม A-47 คำวินิจฉัยที่นี่ควรรับรองสิ่งนั้นเป็น map ของ str_view/str_amounts ที่ใช้กับ slip และรายงาน
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): recommendation adopted in full — the six-key strategic family with str_view as the implied floor and str_plan_approve strictly senior to str_plan_manage (no self-approval); A-20 mapping confirmed (no keys = absent · str_view = masked · + str_amounts = full); masking is per-field (existence visible, amounts hidden); no dedicated slip-regeneration key — the slip follows the str_view/str_amounts mapping, ratifying the A-48 per-section rule.รับข้อเสนอแนะทั้งหมด — ตระกูลหก key ในกลุ่ม strategic โดย str_view เป็นพื้นที่ key อื่น imply และ str_plan_approve อาวุโสกว่า str_plan_manage เสมอ (อนุมัติงานตัวเองไม่ได้); ยืนยัน map ตาม A-20 (ไม่มี key = หายไป · str_view = mask · เพิ่ม str_amounts = เต็ม); mask ราย field (เห็นว่ามี แต่ไม่เห็นจำนวน); ไม่มี key แยกสำหรับสร้าง slip ซ้ำ — slip ใช้ map ของ str_view/str_amounts รับรองกติการายส่วนตาม A-48
The books_split precedent (FR-107) is an operator-granted entitlement per party. This suite is paid (PROP-016): does the mill's purchase mint a strategic entitlement that unlocks the domain group for role composition, with staff keys grantable only while entitled? On lapse — do grants stay dormant or get revoked? And is base PROP-009 recording (agreements, accrual, releases — no analytics) behind the same entitlement, or permissions only?
แบบอย่าง books_split (FR-107) คือ entitlement ที่ operator มอบราย party ชุดนี้เป็นของจ่ายเพิ่ม (PROP-016): การซื้อของโรงงานสร้าง entitlement เชิงกลยุทธ์ที่ปลดล็อกกลุ่ม domain ให้ประกอบ role ได้ โดย key พนักงานมอบได้เฉพาะขณะ entitled ใช่ไหม? เมื่อหมดอายุ — grant ค้างเฉย ๆ หรือถูกเพิกถอน? และการบันทึกพื้นฐานของ PROP-009 (ข้อตกลง accrual การปล่อย — ไม่รวมงานวิเคราะห์) อยู่หลัง entitlement เดียวกัน หรือ permission อย่างเดียว?
Recommendation:ข้อเสนอแนะ: two-layer: entitlement gates the catalog group; lapse leaves grants dormant; base recording is permissions-only (every mill).สองชั้น: entitlement คุมกลุ่ม catalog; หมดอายุแล้ว grant ค้างเฉย ๆ; การบันทึกพื้นฐานใช้ permission อย่างเดียว (ทุกโรงงาน)
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): recommendation adopted — two-layer model: the PROP-016 purchase mints a strategic entitlement that unlocks the domain group for role composition, staff keys grantable only while entitled; on lapse, grants go dormant (not revoked) and reactivate with renewal; base PROP-009 recording (agreements, accrual, releases — no analytics) is permissions-only, open to every mill without the entitlement.รับข้อเสนอแนะ — model สองชั้น: การซื้อตาม PROP-016 สร้าง entitlement strategic ที่ปลดล็อกกลุ่ม domain ให้ประกอบ role ได้ โดย key พนักงานมอบได้เฉพาะขณะ entitled; เมื่อหมดอายุ grant ค้างเฉย ๆ (ไม่ถูกเพิกถอน) และกลับมาทำงานเมื่อต่ออายุ; การบันทึกพื้นฐานของ PROP-009 (ข้อตกลง accrual การปล่อย — ไม่รวมงานวิเคราะห์) ใช้ permission อย่างเดียว เปิดให้ทุกโรงงานโดยไม่ต้องมี entitlement
PermissionCatalog is per-surface and platform-defined. Which surfaces carry the strategic group — portal (mill-str) certainly; books (strategic-book postings)? mobile (a field agent seeing premium columns on a delivery)? account (the grant flow itself)? And is a key one catalog entry per surface (portal.str_amounts ≠ mobile.str_amounts) or one logical key mapped across surfaces?
PermissionCatalog เป็นราย surface และ platform เป็นผู้นิยาม surface ใดถือกลุ่ม strategic — portal (mill-str) แน่นอน; books (การลงบัญชีกลยุทธ์)? mobile (agent ภาคสนามเห็นคอลัมน์ premium บนการส่งมอบ)? account (flow การมอบเอง)? และ key เป็น entry แยกราย surface (portal.str_amounts ≠ mobile.str_amounts) หรือ key เชิงตรรกะเดียว map ข้าม surface?
Recommendation:ข้อเสนอแนะ: per-surface entries sharing a logical id; mobile ships with none granted by default.entry ราย surface ใช้ id เชิงตรรกะร่วม; mobile เริ่มต้นโดยไม่มอบเลย
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): recommendation adopted — the strategic group mints per-surface catalog entries sharing one logical key id: rows on portal (mill-str area), books (strategic-book postings) and mobile (premium columns — entries exist, no default role carries them); account hosts the grant flow itself and carries no str_* keys (governance is OQ-12's question).รับข้อเสนอแนะ — กลุ่ม strategic สร้าง entry ใน catalog ราย surface ที่ใช้ key id เชิงตรรกะร่วมหนึ่งเดียว: แถวบน portal (พื้นที่ mill-str), books (การลงบัญชีกลยุทธ์) และ mobile (คอลัมน์ premium — มี entry แต่ไม่มี role เริ่มต้นใดถือ); account เป็นที่อยู่ของ flow การมอบเองและไม่ถือ key str_* (การกำกับเป็นคำถามของ OQ-12)
Cross-ref (SPEC-PRD-FED / SPEC-ERD-FED):อ้างโยง (SPEC-PRD-FED / SPEC-ERD-FED): the verdict is additive to the FED model as specified — SPEC-ERD-FED's PermissionCatalog (PMC-####, UNIQUE (surface, key), fields surface · group · key) already expresses per-surface rows with a shared key string; the shared logical id is that key under the new group value strategic — no schema change, operator-governed rows only. SPEC-PRD-FED's six-layer resolution is untouched: the OQ-9 entitlement sits at layer 2 (capacity × surface matrix), these keys resolve at layer 4 (role × permission, PermissionCatalog / RolePermission, FR-64); RolePermission's equal-or-narrower scope rule applies to str_* rows unchanged.คำวินิจฉัยเพิ่มเติมจาก model FED ตาม spec — PermissionCatalog ของ SPEC-ERD-FED (PMC-####, UNIQUE (surface, key), field surface · group · key) รองรับแถวราย surface ที่ใช้ key ร่วมอยู่แล้ว; id เชิงตรรกะคือ key นั้นใต้ค่า group ใหม่ strategic — ไม่แก้ schema เพิ่มเฉพาะแถวที่ operator กำกับ การ resolve หกชั้นของ SPEC-PRD-FED ไม่ถูกแตะ: entitlement ตาม OQ-9 อยู่ชั้น 2 (matrix capacity × surface) ส่วน key เหล่านี้ resolve ที่ชั้น 4 (role × permission, PermissionCatalog / RolePermission, FR-64); กติกา scope เท่าหรือแคบกว่าของ RolePermission ใช้กับแถว str_* เช่นเดิม
Roles are default role sets per surface, template-cloneable per party; the grant is one SurfaceRoleGrant per (membership, surface) — no role-union mechanic. Which defaults carry which keys — mill_manager (all five?), finance_officer (str_view + str_amounts + str_release_approve?), weighbridge clerk and field agent (none)? Is the baseline deny-all with explicit composition? And may a mill's cloned role widen a key beyond the platform template, or is the template a ceiling?
role เป็นชุดเริ่มต้นราย surface โคลนจาก template ราย party; grant คือ SurfaceRoleGrant หนึ่งต่อ (membership, surface) — ไม่มี role union role เริ่มต้นชุดใดถือ key ใด — mill_manager (ทั้งห้า?), finance_officer (str_view + str_amounts + str_release_approve?), เสมียนชั่งและ agent ภาคสนาม (ไม่มี)? ฐานคือ deny-all ต้องประกอบชัดเจนไหม? และ role ที่โรงงานโคลนขยาย key เกิน template ของ platform ได้ไหม หรือ template คือเพดาน?
Recommendation:ข้อเสนอแนะ: deny-all baseline; templates are suggestions, not ceilings — OQ-12 governance is the control.ฐาน deny-all; template เป็นข้อเสนอ ไม่ใช่เพดาน — การกำกับตาม OQ-12 คือตัวควบคุม
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): recommendation adopted in full — (1) deny-all baseline: every non-owner role starts with zero str_* keys; strategic sight is always an explicit composition act (owner fixed-full by construction, unaffected). (2) Template defaults: mill_manager = all six keys; finance_officer = str_view + str_amounts + str_release_approve; weighbridge clerk and field agent = none. (3) Templates are suggestions, not ceilings: a mill's cloned role may widen keys beyond the platform template — OQ-12 governance (owner-only grant, four-eyes on amount-bearing keys) is the control; the equal-or-narrower rule continues to bind scope rows only.รับข้อเสนอแนะทั้งหมด — (1) ฐาน deny-all: role ที่ไม่ใช่เจ้าของทุก role เริ่มต้นโดยไม่มี key str_*; การเห็นเชิงกลยุทธ์ต้องประกอบชัดเจนเสมอ (เจ้าของ fixed-full โดยโครงสร้าง ไม่กระทบ) (2) ค่าเริ่มต้นของ template: mill_manager = ทั้งหก key; finance_officer = str_view + str_amounts + str_release_approve; เสมียนชั่งและ agent ภาคสนาม = ไม่มี (3) template เป็นข้อเสนอ ไม่ใช่เพดาน: role ที่โรงงานโคลนขยาย key เกิน template ของ platform ได้ — การกำกับตาม OQ-12 (มอบโดยเจ้าของเท่านั้น สองผู้อนุมัติสำหรับ key ที่เห็นจำนวน) คือตัวควบคุม; กติกาเท่าหรือแคบกว่ายังผูกเฉพาะแถว scope
Premise updated (22 Jul 2026, FED cross-check):ปรับข้อตั้ง (22 ก.ค. 2569, ตรวจกับ FED): SPEC-PRD-FED Section 4 / SPEC-ERD-FED (Party → RolePermission) fix the owner role as fixed-full and locked in every surface — the party owner holds all six str_* keys by construction, so the deny-all baseline binds non-owner roles only. Template role sets ship per capacity; equal-or-narrower is enforced on scope rows only — widen-vs-ceiling for keys remains a real open choice.SPEC-PRD-FED ข้อ 4 / SPEC-ERD-FED (Party → RolePermission) ตรึง role เจ้าของเป็น fixed-full และล็อกทุก surface — เจ้าของ party จึงถือ key str_* ทั้งหกโดยโครงสร้าง ฐาน deny-all จึงผูกเฉพาะ role ที่ไม่ใช่เจ้าของ template role มีราย capacity; กติกาเท่าหรือแคบกว่าบังคับเฉพาะแถว scope — เรื่องขยายเกิน template ของ key ยังเป็นทางเลือกที่เปิดจริง
Grants happen only on the account surface (sole identity writer). Who may grant/revoke strategic keys — the party owner only, or any role holding a grant-permission? Does a hard confidentiality control require four-eyes (second approver) for str_amounts / str_config? What is audited — grant/revoke events certainly, but also a read-audit each time unmasked amounts render (full log or sampled)? Revocation timing: immediate, or next token refresh?
การมอบทำได้เฉพาะบน surface account (ผู้เขียน identity หนึ่งเดียว) ใครมอบ/เพิกถอน key กลยุทธ์ได้ — เจ้าของ party เท่านั้น หรือ role ที่ถือ permission การมอบ? การควบคุมความลับแบบแข็งต้องมีผู้อนุมัติคนที่สองสำหรับ str_amounts / str_config ไหม? audit อะไรบ้าง — event มอบ/เพิกถอนแน่นอน แต่ต้อง audit การอ่านทุกครั้งที่เห็นจำนวนไม่ mask ด้วยไหม (log เต็มหรือสุ่ม)? เวลาเพิกถอน: ทันที หรือรอ token ใหม่?
Recommendation:ข้อเสนอแนะ: owner + four-eyes for amount-bearing keys; full grant audit; read-audit on unmasked exports only; revocation immediate.เจ้าของ + สองผู้อนุมัติสำหรับ key ที่เห็นจำนวน; audit การมอบเต็ม; read-audit เฉพาะ export ที่ไม่ mask; เพิกถอนมีผลทันที
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): recommendation adopted in full — (1) grant/revoke is owner-only: no delegable grant-permission; the account surface hosts the flow and only the party owner acts. (2) Four-eyes on amount-bearing keys: grants of str_amounts and str_config to staff require a second approver before taking effect; per the FED boundary this governs staff grants only — the owner's own fixed-full sight is by construction and ungateable. (3) Audit: every grant/revoke event fully logged; read-audit only on unmasked exports (screen renders are not read-logged). (4) Revocation immediate at the API (FR-64 resolves server-side on every call); the shell may lag until token re-issue — both halves normative.รับข้อเสนอแนะทั้งหมด — (1) มอบ/เพิกถอนโดยเจ้าของเท่านั้น: ไม่มี permission การมอบที่ delegate ได้; flow อยู่บน surface account และเจ้าของ party เป็นผู้ act เพียงคนเดียว (2) สองผู้อนุมัติสำหรับ key ที่เห็นจำนวน: การมอบ str_amounts และ str_config ให้พนักงานต้องมีผู้อนุมัติคนที่สองก่อนมีผล; ตามเส้นเขต FED กติกานี้กำกับเฉพาะการมอบให้พนักงาน — การเห็นของเจ้าของเป็น fixed-full โดยโครงสร้างและกำกับไม่ได้ (3) Audit: log event มอบ/เพิกถอนทุกรายการเต็ม; read-audit เฉพาะ export ที่ไม่ mask (การ render บนจอไม่ log การอ่าน) (4) เพิกถอนมีผลทันทีที่ API (FR-64 resolve ฝั่ง server ทุก call); shell อาจช้าจนกว่า token ออกใหม่ — เป็นบรรทัดฐานทั้งสองส่วน
Premise updated (22 Jul 2026, FED cross-check):ปรับข้อตั้ง (22 ก.ค. 2569, ตรวจกับ FED): owner fixed-full (SPEC-PRD-FED Section 4) means four-eyes can govern grants to staff but never the owner's own sight — state that boundary in the verdict. And since permissions ride the token's perm claim (Section 7), "immediate" revocation is immediate at the API (FR-64 resolves server-side) while the shell may lag until token re-issue — the verdict should spec both halves.owner fixed-full (SPEC-PRD-FED ข้อ 4) หมายความว่าสองผู้อนุมัติกำกับการมอบให้พนักงานได้ แต่กำกับการเห็นของเจ้าของเองไม่ได้ — ควรระบุเส้นนี้ในคำวินิจฉัย และเมื่อ permission อยู่บน claim perm ของ token (ข้อ 7) การเพิกถอน "ทันที" มีผลทันทีที่ API (FR-64 resolve ฝั่ง server) แต่ shell อาจช้าจนกว่า token ออกใหม่ — คำวินิจฉัยควร spec ทั้งสองส่วน
The token's srf claim is capacity × surface; role × permission resolves server-side (FR-64). The sidebar item must be absent before first render — does the strategic key ride the token as a claim, or does the shell fetch a session permission set? How do the PermissionCatalog / EntitlementMatrixProvider singleton caches invalidate on grant events? And normatively: masking is server-side field-stripping — the amount never leaves the API for an unauthorized viewer; client-side hiding is non-compliant.
claim srf ของ token เป็น capacity × surface; role × permission resolve ฝั่ง server (FR-64) รายการ sidebar ต้องหายไปก่อน render แรก — key กลยุทธ์อยู่บน token เป็น claim หรือ shell ดึงชุด permission ราย session? cache singleton ของ PermissionCatalog / EntitlementMatrixProvider invalidate อย่างไรเมื่อมี event การมอบ? และเชิงบรรทัดฐาน: การ mask ต้องตัด field ฝั่ง server — จำนวนไม่ออกจาก API ไปหาผู้ดูที่ไม่มีสิทธิ์; ซ่อนฝั่ง client ถือว่าไม่ผ่าน
Recommendation:ข้อเสนอแนะ: session-scoped permission fetch (no token bloat); event-driven cache invalidation; server-side stripping written as an NFR.ดึง permission ราย session (ไม่ทำ token บวม); invalidate cache ตาม event; เขียนการตัดฝั่ง server เป็น NFR
Premise corrected (22 Jul 2026, FED cross-check):แก้ข้อตั้ง (22 ก.ค. 2569, ตรวจกับ FED): the transport half is already decided by the applied FED token contract — SPEC-PRD-FED Section 7 packs permissions AND scope into the perm claim (deterministic codec, no standalone scope claim); a session permission fetch would be a second, conflicting channel, so the recommendation above is withdrawn. The cache half is answered by the DDD lifetime register: PermissionCatalog / entitlement-matrix singletons invalidate on their domain events, never per-request. What remains open narrows to: do str_* keys enter the perm codec like any key (their presence is then client-readable) or stay server-only? Revised recommendation: str_* rides the codec unchanged — key presence is not the secret, amounts are, and the server-side stripping NFR covers those; grant events emit the cache invalidation.ส่วนการขนส่งถูกตัดสินแล้วโดยสัญญา token ของ FED ที่ apply แล้ว — SPEC-PRD-FED ข้อ 7 บรรจุ permission และ scope ลง claim perm (codec เชิงกำหนด ไม่มี claim scope แยก); การดึง permission ราย session จะเป็นช่องที่สองที่ขัดกัน ข้อเสนอแนะข้างต้นจึงถอน ส่วน cache ตอบแล้วในทะเบียน lifetime ของ DDD: singleton ของ PermissionCatalog / entitlement matrix invalidate ตาม domain event ไม่ใช่ราย request ที่เหลือเปิดแคบลง: key str_* เข้า codec perm เหมือน key ทั่วไป (การมีอยู่ของ key อ่านได้ฝั่ง client) หรือเก็บไว้ฝั่ง server เท่านั้น? ข้อเสนอใหม่: str_* เข้า codec ตามปกติ — ความลับคือจำนวนเงิน ไม่ใช่การมี key และ NFR การตัด field ฝั่ง server คุมส่วนนั้น; event การมอบเป็นตัวส่ง invalidation
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): revised recommendation adopted — str_* keys ride the perm token codec unchanged, like any other key: the shell reads them pre-first-render (sidebar item absent by construction), key presence is client-readable and is not the secret — amounts are, and the normative server-side field-stripping NFR protects those. No second permission channel. Grant/revoke events emit the PermissionCatalog / entitlement-matrix cache invalidation per the DDD lifetime register.รับข้อเสนอแนะฉบับปรับ — key str_* เข้า codec token perm โดยไม่เปลี่ยนแปลง เหมือน key ทั่วไป: shell อ่านได้ก่อน render แรก (รายการ sidebar หายไปโดยโครงสร้าง) การมีอยู่ของ key อ่านได้ฝั่ง client และไม่ใช่ความลับ — จำนวนเงินต่างหากที่ลับ และ NFR การตัด field ฝั่ง server เชิงบรรทัดฐานคุ้มครองส่วนนั้น ไม่มีช่อง permission ที่สอง event มอบ/เพิกถอนปล่อยการ invalidate cache ของ PermissionCatalog / entitlement matrix ตามทะเบียน lifetime ของ DDD
ViewAsSession — support view-as must not inherit strategic sight (strip strategic keys unconditionally?). Exports, printed reports and the combined slip must regenerate against the gate at render time, never from cached payloads. Notification payloads (accrual/release events) must carry no amounts to unauthorized recipients. Counterparty rule per A-20: the farmer always sees their own premium on the combined online slip — outside the gate; but does a quota farmer see sub-farmers' premiums, or only their own agreements'?
ViewAsSession — การ view-as ของฝ่าย support ต้องไม่สืบทอดการเห็นเชิงกลยุทธ์ (ตัด key กลยุทธ์เสมอ?) export รายงานพิมพ์ และ slip รวมต้องสร้างใหม่ผ่าน gate ทุกครั้ง ไม่ใช้ payload ที่ cache ไว้ payload การแจ้งเตือน (event accrual/การปล่อย) ต้องไม่มีจำนวนเงินไปถึงผู้รับที่ไม่มีสิทธิ์ กฎคู่สัญญาตาม A-20: ชาวไร่เห็น premium ของตนเองบน slip รวมเสมอ — อยู่นอก gate; แต่หัวหน้าโควต้าเห็น premium ของลูกไร่ไหม หรือเฉพาะข้อตกลงของตัวเอง?
Recommendation:ข้อเสนอแนะ: view-as always stripped; farmer sees own only; quota-farmer visibility a per-agreement flag.view-as ตัดเสมอ; ชาวไร่เห็นเฉพาะของตน; การเห็นของหัวหน้าโควต้าเป็น flag รายข้อตกลง
Cross-reference (17 Jul 2026, OQ pass 2):อ้างโยง (17 ก.ค. 2569, ทบทวน OQ รอบ 2): A-58 (v0.11.0) narrows the slip leak path: only the MILL-SIDE combined rendering regenerates against the viewer’s grade — farmer-side surfaces never carry strategic content.A-58 (v0.11.0) ทำให้ช่องรั่วทาง slip แคบลง: มีเพียงการ render รวมฝั่งโรงงานที่ต้องสร้างใหม่ตามระดับสิทธิ์ของผู้ดู — surface ฝั่งชาวไร่ไม่มีเนื้อหากลยุทธ์เด็ดขาด
Cross-ref (22 Jul 2026, FED cross-check):อ้างโยง (22 ก.ค. 2569, ตรวจกับ FED): SPEC-PRD-FED already binds view-as to read-only by default (write exceptions explicit and deferred, Q5), permission-gated start, persistent banner and dual logging (act · vas token claims) — unconditional strategic-key stripping is additive and consistent with that contract.SPEC-PRD-FED ผูก view-as เป็นอ่านอย่างเดียวโดยเริ่มต้นอยู่แล้ว (ข้อยกเว้นการเขียนต้องชัดเจนและถูกเลื่อนไป, Q5) เริ่ม session ต้องมี permission แถบค้างถาวร และ log คู่ (claim act · vas) — การตัด key กลยุทธ์เสมอเป็นของเพิ่มเติมและสอดคล้องกับสัญญานั้น
DECIDED (client, 22 Jul 2026):ตัดสินแล้ว (ลูกค้า, 22 ก.ค. 2569): recommendation adopted in full — (1) view-as always stripped: ViewAsSession never inherits strategic sight; str_* keys removed unconditionally, additive to the FED view-as contract. (2) Regenerate at render: mill-side exports, printed reports and the combined slip are re-rendered against the viewer's gate at view time, never served from cached payloads (farmer-side surfaces carry no strategic content per A-58). (3) Notifications amount-free: accrual/release payloads carry the event only, no amounts, to any recipient without the gate. (4) Quota-head visibility is a per-agreement flag: the farmer always sees their own premium (A-20, outside the gate); whether a quota head sees a sub-farmer's premium is set per strategic agreement by the mill, default off.รับข้อเสนอแนะทั้งหมด — (1) view-as ตัดเสมอ: ViewAsSession ไม่สืบทอดการเห็นเชิงกลยุทธ์ ตัด key str_* โดยไม่มีเงื่อนไข เป็นของเพิ่มเติมต่อสัญญา view-as ของ FED (2) สร้างใหม่ตอน render: export ฝั่งโรงงาน รายงานพิมพ์ และ slip รวม ต้อง render ใหม่ผ่าน gate ของผู้ดูทุกครั้งที่ดู ไม่ใช้ payload ที่ cache (surface ฝั่งชาวไร่ไม่มีเนื้อหากลยุทธ์ตาม A-58) (3) การแจ้งเตือนไร้จำนวนเงิน: payload ของ accrual/การปล่อยถือเฉพาะ event ไม่มีจำนวน สำหรับผู้รับที่ไม่ผ่าน gate (4) การเห็นของหัวหน้าโควตาเป็น flag รายข้อตกลง: ชาวไร่เห็น premium ของตนเองเสมอ (A-20 อยู่นอก gate); ส่วนหัวหน้าโควตาจะเห็น premium ของลูกไร่หรือไม่ ตั้งรายข้อตกลงกลยุทธ์โดยโรงงาน ค่าเริ่มต้นปิด
Pending verdicts, the recommended shape adds: a strategic domain group in PermissionCatalog (six per-surface entries — str_view / str_amounts / str_plan_manage / str_plan_approve / str_release_approve / str_config — sharing logical ids), a purchase-minted strategic entitlement (FR-107 precedent) gating the group's role composability, grant/revoke audit events with four-eyes on amount-bearing keys, and a normative server-side field-stripping NFR. PROP-022's FR-130 consumes the resulting gate.
ระหว่างรอคำวินิจฉัย รูปที่แนะนำเพิ่ม: กลุ่ม domain strategic ใน PermissionCatalog (หก entry ราย surface — str_view / str_amounts / str_plan_manage / str_plan_approve / str_release_approve / str_config — ใช้ id เชิงตรรกะร่วม), entitlement เชิงกลยุทธ์ที่เกิดจากการซื้อ (แบบอย่าง FR-107) คุมการประกอบ role ของกลุ่ม, event audit การมอบ/เพิกถอนพร้อมสองผู้อนุมัติสำหรับ key ที่เห็นจำนวน และ NFR การตัด field ฝั่ง server FR-130 ของ PROP-022 ใช้ gate ที่ได้
| Revรุ่น | Dateวันที่ | Changesการเปลี่ยนแปลง |
|---|---|---|
| 0.1 | 2026-07-19 | First draft — the strategic permission model relocated wholesale from PROP-022 Rev 0.16 (ex-OQ-8…OQ-14, numbering preserved; originally PROP-019 Q-21) on the client's one-proposal-per-topic direction; all recommendations and cross-reference notes (A-48 slip mapping) carried verbatim; candidate model impact sketched. Binds nothing until approved and applied.ร่างแรก — ย้าย model permission เชิงกลยุทธ์ทั้งชุดจาก PROP-022 Rev 0.16 (เดิม OQ-8…OQ-14 คงเลขเดิม; ต้นทางคือ Q-21 ของ PROP-019) ตามแนวทางลูกค้าหนึ่งข้อเสนอต่อหัวข้อ; ยกข้อเสนอแนะและหมายเหตุอ้างโยง (map slip ตาม A-48) มาทั้งหมด; ร่างผลกระทบ model ไม่มีผลผูกพันจนกว่าจะอนุมัติและปรับใช้ |
| 0.2 | 2026-07-22 | OQ-8 decided (client): recommendation adopted in full — six-key family, A-20 mapping, per-field masking, no dedicated slip-regeneration key (A-48 per-section rule ratified). OQ-9…OQ-14 remain open.OQ-8 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะทั้งหมด — ตระกูลหก key, map ตาม A-20, mask ราย field, ไม่มี key แยกสำหรับสร้าง slip ซ้ำ (รับรองกติการายส่วนตาม A-48) OQ-9…OQ-14 ยังเปิด |
| 0.3 | 2026-07-22 | OQ-9 decided (client): recommendation adopted — two-layer entitlement-then-permission model; lapse leaves grants dormant; base PROP-009 recording permissions-only for every mill. OQ-10…OQ-14 remain open.OQ-9 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะ — model สองชั้น entitlement แล้วจึง permission; หมดอายุแล้ว grant ค้างเฉย ๆ; การบันทึกพื้นฐานของ PROP-009 ใช้ permission อย่างเดียวทุกโรงงาน OQ-10…OQ-14 ยังเปิด |
| 0.4 | 2026-07-22 | OQ-10 decided (client): recommendation adopted — per-surface catalog entries sharing one logical key id; group spans portal / books / mobile (mobile: no default grants), account carries the grant flow only. Cross-referenced against SPEC-PRD-FED (six-layer resolution, FR-64) and SPEC-ERD-FED (PermissionCatalog UNIQUE (surface,key), group column) — additive, no schema change. OQ-11…OQ-14 remain open.OQ-10 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะ — entry ราย surface ใช้ key id เชิงตรรกะร่วม; กลุ่มครอบ portal / books / mobile (mobile ไม่มี grant เริ่มต้น) ส่วน account ถือเฉพาะ flow การมอบ อ้างโยงกับ SPEC-PRD-FED (การ resolve หกชั้น, FR-64) และ SPEC-ERD-FED (PermissionCatalog UNIQUE (surface,key), คอลัมน์ group) — เพิ่มเติม ไม่แก้ schema OQ-11…OQ-14 ยังเปิด |
| 0.5 | 2026-07-22 | FED cross-check over the remaining OQs: OQ-11/OQ-12 premises updated (owner role fixed-full — deny-all and four-eyes bind non-owner roles only; revocation immediate at the API, shell lags until token re-issue); OQ-13 premise corrected — the Section 7 perm token codec already decides transport, session-fetch recommendation withdrawn, revised to str_* riding the codec with server-side stripping as the confidentiality control, caches per the DDD event-invalidation rule; OQ-14 gains a supporting view-as cross-ref. No verdicts taken.ตรวจ OQ ที่เหลือกับ FED: ปรับข้อตั้ง OQ-11/OQ-12 (role เจ้าของ fixed-full — deny-all และสองผู้อนุมัติผูกเฉพาะ role ที่ไม่ใช่เจ้าของ; เพิกถอนทันทีที่ API แต่ shell ช้าจน token ใหม่); แก้ข้อตั้ง OQ-13 — codec perm ข้อ 7 ตัดสินการขนส่งแล้ว ถอนข้อเสนอ session-fetch เสนอใหม่เป็น str_* เข้า codec โดยมีการตัดฝั่ง server เป็นตัวคุมความลับ และ cache ตามกติกา event ของ DDD; OQ-14 เพิ่มอ้างโยง view-as สนับสนุน ยังไม่มีคำวินิจฉัยใหม่ |
| 0.6 | 2026-07-22 | OQ-12 decided (client): recommendation adopted in full — owner-only grant/revoke; four-eyes on str_amounts/str_config staff grants (owner sight ungateable per FED); full grant/revoke audit, read-audit on unmasked exports only; revocation immediate at the API, shell lags until token re-issue. OQ-11, OQ-13, OQ-14 remain open.OQ-12 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะทั้งหมด — มอบ/เพิกถอนโดยเจ้าของเท่านั้น; สองผู้อนุมัติสำหรับการมอบ str_amounts/str_config ให้พนักงาน (การเห็นของเจ้าของกำกับไม่ได้ตาม FED); audit การมอบ/เพิกถอนเต็ม read-audit เฉพาะ export ที่ไม่ mask; เพิกถอนทันทีที่ API แต่ shell ช้าจน token ใหม่ OQ-11, OQ-13, OQ-14 ยังเปิด |
| 0.7 | 2026-07-22 | OQ-11 decided (client): recommendation adopted in full — deny-all baseline for non-owner roles; template defaults: mill_manager all six, finance_officer str_view + str_amounts + str_release_approve, weighbridge clerk / field agent none; templates are suggestions, not ceilings (mills may widen — OQ-12 governance is the control; equal-or-narrower binds scope rows only). OQ-13, OQ-14 remain open.OQ-11 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะทั้งหมด — ฐาน deny-all สำหรับ role ที่ไม่ใช่เจ้าของ; ค่าเริ่มต้น template: mill_manager ทั้งหก, finance_officer str_view + str_amounts + str_release_approve, เสมียนชั่ง/agent ภาคสนามไม่มี; template เป็นข้อเสนอ ไม่ใช่เพดาน (โรงงานขยายได้ — การกำกับตาม OQ-12 คือตัวควบคุม; เท่าหรือแคบกว่าผูกเฉพาะแถว scope) OQ-13, OQ-14 ยังเปิด |
| 0.8 | 2026-07-22 | OQ-13 decided (client): revised recommendation adopted — str_* keys ride the perm token codec unchanged (presence client-readable, pre-first-render shell gating); amounts protected by the server-side field-stripping NFR; grant events drive cache invalidation. OQ-14 remains open.OQ-13 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะฉบับปรับ — key str_* เข้า codec token perm โดยไม่เปลี่ยนแปลง (การมีอยู่อ่านได้ฝั่ง client, shell กั้นก่อน render แรก); จำนวนเงินคุ้มครองด้วย NFR ตัด field ฝั่ง server; event การมอบขับการ invalidate cache OQ-14 ยังเปิด |
| 0.9 | 2026-07-22 | OQ-14 decided (client): recommendation adopted in full — view-as unconditionally stripped of str_* keys; mill-side exports/prints/combined slip regenerate against the gate at render time (A-58); notification payloads amount-free for ungated recipients; quota-head sight of sub-farmer premiums a per-agreement flag, default off. All OQs decided — draft fully decided, ready to apply.OQ-14 ตัดสินแล้ว (ลูกค้า): รับข้อเสนอแนะทั้งหมด — view-as ตัด key str_* เสมอ; export/พิมพ์/slip รวมฝั่งโรงงานสร้างใหม่ผ่าน gate ตอน render (A-58); payload แจ้งเตือนไร้จำนวนเงินสำหรับผู้รับที่ไม่ผ่าน gate; การเห็น premium ลูกไร่ของหัวหน้าโควตาเป็น flag รายข้อตกลง ค่าเริ่มต้นปิด OQ ครบทุกข้อ — ร่างตัดสินครบ พร้อม apply |
| 1.0 | 2026-07-22 | ACCEPTED & APPLIED as spec v0.17.0 (client, 22 Jul 2026): federation.strategicPermissions registered as the normative model; FR-160…164 + NFR-53 + WF-65; events StrategicKeyGranted / StrategicKeyRevoked / StrategicUnmaskedExported; StrategicAgreement +visible_to_quota?; the PermissionCatalog strategic group registered (reserved slot from PROP-019 Q-21 filled). Mirrored: SPEC-PRD-FED 0.2.0 (new Section 11), SPEC-ERD-MILL 0.9.0, SPEC-INDEX 0.2.4. The relocated PROP-019 Q-21 blocker closes with this application; PROP-040 consumes this family as its pathfinder.รับและปรับใช้แล้วเป็น spec v0.17.0 (ลูกค้า, 22 ก.ค. 2569): ลงทะเบียน federation.strategicPermissions เป็น model เชิงบรรทัดฐาน; FR-160…164 + NFR-53 + WF-65; event StrategicKeyGranted / StrategicKeyRevoked / StrategicUnmaskedExported; StrategicAgreement เพิ่ม visible_to_quota?; ลงทะเบียนกลุ่ม strategic ใน PermissionCatalog (เติมช่องที่จองไว้จาก PROP-019 Q-21) mirror แล้ว: SPEC-PRD-FED 0.2.0 (ข้อ 11 ใหม่), SPEC-ERD-MILL 0.9.0, SPEC-INDEX 0.2.4 blocker Q-21 ของ PROP-019 ปิดด้วยการปรับใช้นี้; PROP-040 ใช้ตระกูลนี้เป็น pathfinder |