PROP-025 Rev 1.0 · 23 Jul 2026

Cane Agency · Change Proposal (ACCEPTED & APPLIED — spec v0.20.0)สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง (ยอมรับและปรับใช้แล้ว — spec v0.20.0)

Factory truck register & master truck record (ทะเบียนรถรายโรงงานและระเบียนรถหลัก) — register locally, understand nationally: per-factory truck management, a two-act duplicate merge, and an operator-owned master record built by intelligent plate matching at hundred-thousand-truck scaleทะเบียนรถรายโรงงานและระเบียนรถหลัก — ลงทะเบียนที่โรงงาน เข้าใจทั้งประเทศ: การจัดการรถรายโรงงาน การผสานแถวซ้ำแบบสองจังหวะ และระเบียนรถหลักของ operator ที่สร้างด้วยการจับคู่ทะเบียนอัจฉริยะที่สเกลแสนคัน

Documentเอกสาร
PROP-025
Statusสถานะ
ACCEPTED & APPLIED — spec v0.20.0, 23 Jul 2026ยอมรับและปรับใช้แล้ว — spec v0.20.0, 23 ก.ค. 2569 Applied IDs: WF-61‑63 → WF-66–69 (WF-66 merge · WF-67 pipeline · WF-68 administration · WF-69 declared plate change); FR-143…149 → FR-165…172 (FR-165/166 mill · FR-167…172 plt; FR-172 = the OQ-4 declaration flow); NFR-46…48 → NFR-54…56; plate_no/plate_norm → reg_no/reg_no_norm (existing graph attribute names are canonical).รหัสที่ใช้จริง: WF-61‑63 → WF-66–69; FR-143…149 → FR-165…172 (FR-165/166 ฝั่งโรงงาน · FR-167…172 plt); NFR-46…48 → NFR-54…56; plate_no/plate_norm → reg_no/reg_no_norm (ชื่อ attribute เดิมใน graph เป็น canonical)
Originที่มา
Spun out of the PROP-019 Q1 gate round-2 Q-32 verdict A-32 (15 Jul 2026): the truck register re-scopes to the factory (plate + province unique per factory, FR-29 amended); the same-factory duplicate merge becomes clerk-initiated, management-approved; and the client directed a platform-level master truck record, linked behind the scenes by intelligent matching, for deep insight into how trucks deliver cane across the whole platform.แยกออกมาจากคำวินิจฉัย A-32 (ข้อ Q-32) ของรอบที่ 2 ของ PROP-019 Q1 gate (15 ก.ค. 2569): ทะเบียนรถย่อขอบเขตเป็นรายโรงงาน (ทะเบียน + จังหวัด ไม่ซ้ำรายโรงงาน แก้ FR-29); การผสานแถวซ้ำภายในโรงงานเป็นแบบเสมียนเริ่ม ผู้บริหารอนุมัติ; และลูกค้าสั่งให้มีระเบียนรถหลักระดับ platform เชื่อมอยู่เบื้องหลังด้วยการจับคู่อัจฉริยะ เพื่อความเข้าใจเชิงลึกว่ารถส่งอ้อยกันอย่างไรทั้ง platform
Kindประเภท
Model re-scope + new intelligence domain — (a) the Truck entity re-scopes from platform-wide to per-factory, with a two-act merge workflow (the A-32 minimums); (b) a new fleet_intelligence context: an operator-owned MasterTruck registry, evidence-graded TruckLink rows produced by a tiered matching pipeline, and platform-level delivery-pattern analytics. Factory surfaces never see the master layer.การย่อขอบเขต model + โดเมนข่าวกรองใหม่ — (ก) entity Truck ย่อจาก platform-wide เป็นรายโรงงาน พร้อม workflow ผสานสองจังหวะ (ขั้นต่ำของ A-32); (ข) context ใหม่ fleet_intelligence: ระเบียน MasterTruck ของ operator แถว TruckLink ที่จัดชั้นตามหลักฐานจาก pipeline จับคู่เป็นชั้น และ analytics แบบแผนการส่งมอบระดับ platform surface ของโรงงานไม่มีวันเห็นชั้น master
Depends onขึ้นกับ
PROP-019 Q1 gate verdicts A-05 (merge mechanics), A-17 (two-act approval pattern), A-32; PROP-006 (platform operator, WF-30 family); PROP-004 (contractor operation); PROP-005 (federation walls); FR-29 as amended; Q-50 (config home, if any truck-register settings join the family).คำวินิจฉัย gate ของ PROP-019 Q1: A-05 (กลไกผสาน), A-17 (แบบอนุมัติสองจังหวะ), A-32; PROP-006 (operator ของ platform, ตระกูล WF-30); PROP-004 (การเดินรถโดยผู้รับเหมา); PROP-005 (กำแพง federation); FR-29 ฉบับแก้; Q-50 (บ้าน config หากการตั้งค่าทะเบียนรถเข้าตระกูล)
Affectsกระทบ
Graph: Truck +mill_id (uniqueness re-keyed), FR-29 amendment, TruckMergeRequest entity; new fleet_intelligence context (MasterTruck, TruckLink + 5 events); WF-61…63; FR-143…149, NFR-46…48. Docs: SPEC-PRD/PWF/UIX-MILL (truck register + merge), SPEC-PRD-OPS — re-homing to the -PLT infrastructure family per PROP-046 — (operator fleet console), ERD/DDD (re-scope + new context).graph: Truck +mill_id (เปลี่ยนคีย์ความไม่ซ้ำ) แก้ FR-29 เพิ่ม entity TruckMergeRequest; context ใหม่ fleet_intelligence (MasterTruck, TruckLink + 5 event); WF-61…63; FR-143…149, NFR-46…48 เอกสาร: SPEC-PRD/PWF/UIX-MILL (ทะเบียนรถ + การผสาน), SPEC-PRD-OPS — จะย้ายบ้านไปตระกูลโครงสร้างพื้นฐาน -PLT ตาม PROP-046 — (คอนโซล fleet ของ operator), ERD/DDD (ย่อขอบเขต + context ใหม่)
Version bumpการขยับเวอร์ชัน
MINOR with one breaking model amendment (Truck re-scope + FR-29), which rides the PROP-019 Q1 amendment pass per A-32 regardless of this proposal's fate; the fleet_intelligence layer is additive and sequences per OQ-10.MINOR พร้อมการแก้ model แบบ breaking หนึ่งจุด (ย่อขอบเขต Truck + FR-29) ซึ่งลงกับรอบแก้ Q1 ของ PROP-019 ตาม A-32 ไม่ว่าข้อเสนอนี้จะเป็นอย่างไร; ชั้น fleet_intelligence เป็นส่วนเพิ่ม ลำดับตาม OQ-10
Updatedปรับปรุงล่าสุด
23 Jul 2026

1. Summary1. สรุปข้อเสนอ

The pointใจความ A-32 split one entity into two layers. Registration is local: each factory keeps its own truck register — its clerks create, edit, and (with management approval) merge duplicate plates, and every delivery a register row carries belongs to that factory, so no tenant ever touches another's data. Intelligence is central: the platform operator keeps a master truck record no factory sees, and a tiered matching pipeline — exact plate+province first, probabilistic candidates next, a human review queue for the doubtful middle — links every factory registration to its master truck. One physical truck delivering to three mills becomes three local rows and one master identity. At industry scale (well over 100,000 trucks) that linked graph is the asset: utilization and routing patterns, contractor fleets seen whole, one plate weighing in at two mills in the same hour surfacing as a fraud signal — insight no single factory, and no rival, can produce. A-32 แยก entity เดียวเป็นสองชั้น การลงทะเบียนเป็นของท้องถิ่น: แต่ละโรงงานถือทะเบียนรถของตน — เสมียนสร้าง แก้ไข และ (ด้วยการอนุมัติของผู้บริหาร) ผสานทะเบียนซ้ำ และทุก delivery ของแถวทะเบียนเป็นของโรงงานนั้น จึงไม่มี tenant ใดแตะข้อมูลของ tenant อื่น ข่าวกรองเป็นของส่วนกลาง: operator ของ platform ถือระเบียนรถหลักที่โรงงานไม่เห็น และ pipeline จับคู่เป็นชั้น — ทะเบียน+จังหวัดตรงเป๊ะก่อน ตามด้วยผู้สมัครแบบความน่าจะเป็น และคิวตรวจทานโดยคนสำหรับช่วงคลุมเครือ — เชื่อมทะเบียนของทุกโรงงานเข้ากับรถหลักของมัน รถจริงหนึ่งคันที่ส่งสามโรงงานกลายเป็นแถวท้องถิ่นสามแถวและอัตลักษณ์หลักหนึ่งเดียว ที่สเกลอุตสาหกรรม (เกิน 100,000 คัน) กราฟที่เชื่อมแล้วคือสินทรัพย์: แบบแผนการใช้รถและเส้นทาง กองรถผู้รับเหมาที่เห็นทั้งก้อน ทะเบียนเดียวขึ้นชั่งสองโรงงานในชั่วโมงเดียวกันโผล่เป็นสัญญาณทุจริต — ความเข้าใจที่โรงงานเดี่ยวหรือคู่แข่งรายใดสร้างไม่ได้

2. What A-32 already decided — binding input, not reopened here2. สิ่งที่ A-32 ตัดสินแล้ว — ข้อมูลผูกพัน ไม่เปิดใหม่ที่นี่

3. The factory truck register3. ทะเบียนรถรายโรงงาน

Re-scope. Truck gains mill_id; the uniqueness key becomes (mill_id, plate_no, province). Owner (owner_party_id) and operator (operator_contractor_id) stay as-is — they describe this factory's knowledge of the truck. Registration happens where trucks first appear: at the queue booth (a walk-in plate not yet registered auto-creates a row, per the A-02/A-05 chain) or in the portal truck screen. Migration: each existing platform-wide Truck row is split into one row per factory that has deliveries on it, deliveries re-pointed factory-locally; the original rows seed the master registry (Section 4) so no history is lost. The migration is operator-run, evented, and reversible until verified (OQ-8).

การย่อขอบเขต Truck เพิ่ม mill_id; คีย์ความไม่ซ้ำเป็น (mill_id, plate_no, province) เจ้าของ (owner_party_id) และผู้เดินรถ (operator_contractor_id) คงเดิม — บรรยายความรู้ของโรงงานนี้ต่อรถคันนั้น การลงทะเบียนเกิดที่ที่รถโผล่ครั้งแรก: จุดแจ้งคิว (ทะเบียน walk-in ที่ยังไม่ลงทะเบียนสร้างแถวอัตโนมัติ ตามสาย A-02/A-05) หรือหน้าจอรถใน portal การ migrate: แถว Truck แบบ platform-wide เดิมแต่ละแถวถูกแยกเป็นหนึ่งแถวต่อโรงงานที่มี delivery บนมัน delivery ถูกชี้ใหม่ภายในโรงงาน; แถวดั้งเดิมกลายเป็นเมล็ดพันธุ์ของระเบียนหลัก (ข้อ 4) ประวัติจึงไม่สูญ operator เป็นผู้รัน มี event และย้อนกลับได้จนกว่าจะตรวจยืนยัน (OQ-8)

Duplicate merge (WF-61). The portal flags likely duplicates inside the factory (normalized-plate collision) and a clerk may also start from any two rows. The clerk composes the merge — surviving row, duplicate row, delivery re-point preview, reason — creating a TruckMergeRequest. A management-role approver sees the full blast-radius preview (row counts, affected deliveries and season totals) and approves or rejects; only approval executes the merge atomically. Every step is evented; the soft-deleted duplicate stays inspectable behind its surviving row. Master links transfer with the deliveries.

การผสานแถวซ้ำ (WF-61) portal ชี้แถวที่น่าจะซ้ำภายในโรงงาน (ทะเบียน normalize แล้วชนกัน) และเสมียนเริ่มจากสองแถวใดก็ได้ เสมียนประกอบการผสาน — แถวที่คงอยู่ แถวซ้ำ ตัวอย่างการชี้ delivery ใหม่ เหตุผล — สร้าง TruckMergeRequest ผู้อนุมัติ role ผู้บริหารเห็นตัวอย่างรัศมีผลกระทบเต็ม (จำนวนแถว delivery ที่กระทบ ยอดรวมรายฤดู) แล้วอนุมัติหรือปฏิเสธ; การอนุมัติเท่านั้นที่ดำเนินการผสานแบบ atomic ทุกขั้นมี event; แถวซ้ำที่ soft-delete ยังตรวจดูได้หลังแถวที่คงอยู่ link กับ master ย้ายตาม delivery

4. The master truck record4. ระเบียนรถหลัก

M1 · Registration is local; intelligence is centralM1 · การลงทะเบียนเป็นของท้องถิ่น ข่าวกรองเป็นของส่วนกลาง Factories own their registers and never see the master layer — no factory screen renders a master ID, another factory's rows, or any cross-factory fact. The master registry lives with the platform operator (WF-30 family) and is read by analytics only. โรงงานเป็นเจ้าของทะเบียนของตนและไม่มีวันเห็นชั้น master — ไม่มีหน้าจอโรงงานใดแสดง master ID แถวของโรงงานอื่น หรือข้อเท็จจริงข้ามโรงงานใด ๆ ระเบียนหลักอยู่กับ operator ของ platform (ตระกูล WF-30) และถูกอ่านโดย analytics เท่านั้น
M2 · The master record is derived, never authoritativeM2 · ระเบียนหลักเป็นผลลัพธ์ ไม่ใช่ต้นทาง A MasterTruck asserts nothing a factory must obey: it is a computed identity over factory rows. Factory edits flow up (a plate correction re-runs matching); nothing ever flows down. Deleting every link deletes the master — it has no independent life. MasterTruck ไม่ยืนยันสิ่งใดที่โรงงานต้องเชื่อฟัง: มันคืออัตลักษณ์ที่คำนวณจากแถวของโรงงาน การแก้ของโรงงานไหลขึ้น (แก้ทะเบียนรัน matching ใหม่) ไม่มีสิ่งใดไหลลง ลบ link ครบทุกอันก็ลบ master — มันไม่มีชีวิตอิสระ
M3 · Every link carries its evidence and is reversibleM3 · ทุก link ถือหลักฐานของมันและย้อนกลับได้ A TruckLink records how it was made (tier, score, signals, pipeline version) and by whom (system or reviewer). Unlink and re-link are first-class evented operations; a wrong match is corrected, never edited away. Master merge and split exist for when the corpus proves two masters are one truck — or one master is two. TruckLink บันทึกว่าถูกสร้างอย่างไร (ชั้น คะแนน สัญญาณ เวอร์ชัน pipeline) และโดยใคร (ระบบหรือผู้ตรวจ) การถอดและเชื่อมใหม่เป็นปฏิบัติการชั้นหนึ่งที่มี event; การจับคู่ผิดถูกแก้ ไม่ถูกลบทิ้งเงียบ ๆ การผสานและแยก master มีไว้เมื่อข้อมูลพิสูจน์ว่าสอง master คือรถคันเดียว — หรือหนึ่ง master คือสองคัน

5. The matching pipeline5. pipeline การจับคู่

Every factory truck row — created, migrated, or plate-edited — enters the pipeline. Thai plates are noisy inputs: booth typists, OCR from queue photos (PROP-020 chain), re-registered vehicles, look-alike glyphs (ข/ช, ฎ/ฏ), spacing and dash variants. The pipeline therefore runs in tiers, each cheaper than the next is smarter:

แถวรถของโรงงานทุกแถว — สร้างใหม่ migrate มา หรือแก้ทะเบียน — เข้าสู่ pipeline ทะเบียนไทยเป็น input ที่มีสัญญาณรบกวน: การพิมพ์ที่บูธ, OCR จากภาพถ่ายคิว (สาย PROP-020), รถจดทะเบียนใหม่, อักษรหน้าคล้าย (ข/ช, ฎ/ฏ), การเว้นวรรคและขีด pipeline จึงวิ่งเป็นชั้น ชั้นถูกกว่าก่อน ชั้นฉลาดกว่าตาม:

T-1 Normalizenormalize

Canonical plate form: strip spacing/dashes, normalize Thai numerals and glyph variants, validate against the plate grammar (category prefix · number · province). Output: plate_norm, stored on the factory row.

รูปทะเบียนมาตรฐาน: ตัดวรรค/ขีด normalize เลขไทยและอักษรแปรผัน ตรวจกับไวยากรณ์ทะเบียน (หมวด · เลข · จังหวัด) ผลลัพธ์: plate_norm เก็บบนแถวโรงงาน

T-2 Deterministic matchจับคู่เชิงกำหนด

Exact plate_norm + province equality against the master corpus → auto-link at confidence 1.0. No match → candidate generation.

เทียบ plate_norm + จังหวัด ตรงเป๊ะกับคลัง master → เชื่อมอัตโนมัติที่ความเชื่อมั่น 1.0 ไม่ตรง → สร้างผู้สมัคร

T-3 Probabilistic scoringให้คะแนนความน่าจะเป็น

Blocking on plate similarity, then a scored model. v1 signal set (OQ-3 decided): edit distance on plate_norm, province adjacency, truck_type and rated capacity — property data only. Owner-party name similarity, contractor identity, and behavioral signals (delivery seasons, quota networks served, geographic range) are v2 signals, enabled only behind a recorded PDPA processing basis — and owner-name is inherently partial: it exists only when the owner is a platform party (farmer, contractor, mill); externally-owned trucks carry no owner identity, so the model never treats a missing owner as a mismatch. Score ≥ auto-link threshold (launch: 0.97, no conflicting signal — OQ-1 decided) → link; between thresholds (launch band 0.75–0.97) → review queue; below → new MasterTruck.

คัดกลุ่มด้วยความคล้ายทะเบียน แล้วให้คะแนน ชุดสัญญาณ v1 (OQ-3 ตัดสินแล้ว): ระยะแก้ไขของ plate_norm ความใกล้เคียงจังหวัด truck_type และพิกัดบรรทุก — ข้อมูลทรัพย์สินเท่านั้น ความคล้ายชื่อ party เจ้าของ อัตลักษณ์ผู้รับเหมา และสัญญาณพฤติกรรม (ฤดูส่งมอบ เครือข่ายโควตาที่รับใช้ พิสัยภูมิศาสตร์) เป็นสัญญาณ v2 เปิดใช้หลังบันทึกฐานประมวลผล PDPA เท่านั้น — และชื่อเจ้าของมีเพียงบางส่วนโดยธรรมชาติ: มีเฉพาะเมื่อเจ้าของเป็น party ในแพลตฟอร์ม (ชาวไร่ ผู้รับเหมา โรงงาน); รถของเจ้าของภายนอกไม่มีอัตลักษณ์เจ้าของ model จึงไม่ถือว่าการไม่มีเจ้าของเป็นความไม่ตรงกัน คะแนน ≥ เกณฑ์เชื่อมอัตโนมัติ (เริ่มต้น: 0.97 ไม่มีสัญญาณขัดแย้ง — OQ-1 ตัดสินแล้ว) → เชื่อม; ระหว่างเกณฑ์ (ช่วงเริ่มต้น 0.75–0.97) → คิวตรวจทาน; ต่ำกว่า → สร้าง MasterTruck ใหม่

T-4 Human reviewตรวจทานโดยคน

Operator reviewers work the middle band in the ops-match console: side-by-side rows, signal breakdown, confirm / reject / defer. Decisions are training data for T-3's next version (pipeline versions are pinned on every link, NFR-48).

ผู้ตรวจของ operator ทำงานช่วงกลางในคอนโซล ops-match: เทียบแถวคู่กัน แจกแจงสัญญาณ ยืนยัน / ปฏิเสธ / พักไว้ การตัดสินเป็นข้อมูลฝึกของ T-3 รุ่นถัดไป (ตรึงเวอร์ชัน pipeline บนทุก link, NFR-48)

A nightly batch re-scores the full corpus (new evidence accumulates daily); re-scoring may promote, demote, or split links, always through the same thresholds and queue — never silently.

batch รายคืนให้คะแนนคลังทั้งหมดใหม่ (หลักฐานใหม่สะสมทุกวัน); การให้คะแนนใหม่อาจยก ลด หรือแยก link — ผ่านเกณฑ์และคิวเดิมเสมอ ไม่มีวันเงียบ ๆ

6. What the linked graph yields6. สิ่งที่กราฟที่เชื่อมแล้วมอบให้

Operator-level analytics over master identities (FR-148): fleet size and composition per region; utilization and idle patterns across a season; contractor fleets seen whole across every mill they serve; routing patterns (which trucks serve which quota networks, how far cane travels); capacity truths (declared vs weighed loads per truck over time); and integrity signals — the same master truck weighing in at two mills within an implausible window, plates that exist only at one booth, capacity outliers. Factory-facing value arrives only as signals about the factory's own trucks (e.g. "this plate's weighed loads run 18% over its rated capacity") — never as another tenant's data or any cross-factory finding (NFR-47; OQ-2 decided). The sole exception is a factory group — one owner operating several factories — whose group management portal may consolidate accounting and performance across its own factories: PROP-026.

analytics ระดับ operator บนอัตลักษณ์หลัก (FR-148): ขนาดและองค์ประกอบกองรถรายภูมิภาค; แบบแผนการใช้และการว่างตลอดฤดู; กองรถผู้รับเหมาเห็นทั้งก้อนข้ามทุกโรงงานที่รับใช้; แบบแผนเส้นทาง (รถคันใดรับใช้เครือข่ายโควตาใด อ้อยเดินทางไกลเท่าใด); ความจริงเรื่องพิกัด (น้ำหนักแจ้งกับน้ำหนักชั่งจริงต่อคันตามเวลา); และสัญญาณความสุจริต — รถหลักคันเดียวขึ้นชั่งสองโรงงานในช่วงเวลาที่เป็นไปไม่ได้ ทะเบียนที่มีอยู่แค่บูธเดียว ค่าผิดปกติของพิกัด คุณค่าฝั่งโรงงานมาเฉพาะสัญญาณเกี่ยวกับรถของโรงงานเอง (เช่น "น้ำหนักชั่งของทะเบียนนี้เกินพิกัด 18%") — ไม่มีวันเป็นข้อมูลของ tenant อื่นหรือสิ่งที่พบข้ามโรงงานใด ๆ (NFR-47; OQ-2 ตัดสินแล้ว) ข้อยกเว้นหนึ่งเดียวคือกลุ่มโรงงาน — เจ้าของเดียวดำเนินการหลายโรงงาน — ซึ่ง portal บริหารกลุ่มอาจรวมบัญชีและผลการดำเนินงานข้ามโรงงานของตนเอง: PROP-026

7. Domain model7. โมเดลโดเมน

EntityAttributes (proposed)แอตทริบิวต์ (เสนอ)Notesหมายเหตุ
Truck
รถบรรทุก (re-scoped)(ย่อขอบเขต)
truck_id, mill_id, plate_no, plate_norm, province, truck_type, owner_party_id, operator_contractor_id, status, merged_into_truck_id?Unique (mill_id, plate_norm, province). merged_into_truck_id carries the soft-delete lineage. FR-29 amended to per-factory.ไม่ซ้ำ (mill_id, plate_norm, จังหวัด) merged_into_truck_id ถือเชื้อสาย soft-delete แก้ FR-29 เป็นรายโรงงาน
TruckMergeRequest
คำขอผสานรถ
merge_request_id, mill_id, surviving_truck_id, duplicate_truck_id, delivery_count, reason, initiated_by, approved_by?, status (pending | approved | rejected | executed), requested_at, resolved_at?The two-act artifact (A-17 pattern); approve-then-execute is atomic; rejection keeps both rows and the audit.ศิลปวัตถุสองจังหวะ (แบบ A-17); อนุมัติ-แล้ว-ดำเนินการเป็น atomic; การปฏิเสธคงทั้งสองแถวและ audit
MasterTruck
ระเบียนรถหลัก
master_truck_id, plate_norm, province, truck_type?, first_seen_at, link_count, status (active | merged | split)Operator-owned, derived (M2); no tenant read/write surface. Canonical attributes are recomputed from links, majority-evidence.ของ operator เป็นผลลัพธ์ (M2); tenant ไม่มี surface อ่าน/เขียน attribute มาตรฐานคำนวณใหม่จาก link ตามหลักฐานเสียงข้างมาก
TruckLink
การเชื่อมรถ
link_id, truck_id, master_truck_id, tier (deterministic | probabilistic | manual), confidence, signals{}, pipeline_version, linked_by (system | reviewer_id), status (linked | review | rejected | unlinked), linked_atEvidence-graded, reversible (M3); exactly one linked row per factory truck; review-band rows sit in the ops-match queue.จัดชั้นตามหลักฐาน ย้อนกลับได้ (M3); แถว linked หนึ่งเดียวต่อรถโรงงาน; แถวช่วงตรวจทานอยู่ในคิว ops-match

Events. TruckMergeRequested · TruckMergeExecuted · MasterTruckLinked · MasterTruckUnlinked · MasterTruckMerged — producers: mill portal (merge pair) and fleet_intelligence (link family); consumers: audit, the ops consoles, analytics read models. No farmer- or mill-facing notification consumes the link family (the layer is invisible by design).producer: portal โรงงาน (คู่ผสาน) และ fleet_intelligence (ตระกูล link); consumer: audit, คอนโซล ops, read model ของ analytics ไม่มีการแจ้งเตือนฝั่งชาวไร่หรือโรงงานบริโภคตระกูล link (ชั้นนี้ล่องหนโดยออกแบบ)

8. Workflows (proposed WF-61…63)8. Workflow (เสนอ WF-61…63)

WFNameชื่อSubstanceสาระ
WF-61Duplicate merge (factory, two-act)ผสานแถวซ้ำ (โรงงาน สองจังหวะ)Clerk composes TruckMergeRequest (duplicate hints or manual pair, re-point preview, reason) → management approver reviews blast radius → approve executes atomically (re-point, soft-delete, master-link transfer) / reject closes with audit. Amends the A-05 merge paragraph.เสมียนประกอบ TruckMergeRequest (คำใบ้แถวซ้ำหรือจับคู่เอง ตัวอย่างการชี้ใหม่ เหตุผล) → ผู้อนุมัติผู้บริหารดูรัศมีผลกระทบ → อนุมัติดำเนินการ atomic (ชี้ใหม่, soft-delete, ย้าย link) / ปฏิเสธปิดพร้อม audit แก้ย่อหน้าผสานของ A-05
WF-62Master matching pipelinepipeline จับคู่ masterRow created/edited/migrated → T-1 normalize → T-2 exact → T-3 scored (auto-link / review / new master) → T-4 reviewer decision; nightly full-corpus re-score through the same gates. Every transition evented with tier + confidence + version.แถวสร้าง/แก้/migrate → T-1 normalize → T-2 ตรงเป๊ะ → T-3 ให้คะแนน (เชื่อมอัตโนมัติ / ตรวจทาน / master ใหม่) → T-4 ผู้ตรวจตัดสิน; คะแนนใหม่ทั้งคลังรายคืนผ่านด่านเดิม ทุกการเปลี่ยนมี event พร้อมชั้น + ความเชื่อมั่น + เวอร์ชัน
WF-63Fleet intelligence administration (operator)บริหารข่าวกรองกองรถ (operator)Ops consoles: work the review queue, unlink/re-link with reason, master merge/split, tune thresholds (versioned config), run/verify the one-time migration, browse analytics (FR-148).คอนโซล ops: ทำคิวตรวจทาน ถอด/เชื่อมใหม่พร้อมเหตุผล ผสาน/แยก master ปรับเกณฑ์ (config เก็บเวอร์ชัน) รัน/ตรวจ migration ครั้งเดียว ดู analytics (FR-148)

9. Requirements (proposed FR-143…149 · NFR-46…48)9. ความต้องการ (เสนอ FR-143…149 · NFR-46…48)

IDRequirementความต้องการSurfacesช่องทาง
FR-143Factory-scoped truck register: create/edit at booth or portal; uniqueness (mill_id, plate_norm, province); FR-29 amended accordingly.ทะเบียนรถรายโรงงาน: สร้าง/แก้ที่บูธหรือ portal; ความไม่ซ้ำ (mill_id, plate_norm, จังหวัด); แก้ FR-29 ตามportal · booth
FR-144Two-act duplicate merge per WF-61: clerk initiates, management approves with blast-radius preview, atomic execution, full audit, inspectable soft-deleted lineage.ผสานแถวซ้ำสองจังหวะตาม WF-61: เสมียนเริ่ม ผู้บริหารอนุมัติพร้อมตัวอย่างรัศมีผลกระทบ ดำเนินการ atomic audit ครบ เชื้อสาย soft-delete ตรวจดูได้portal
FR-145Operator-owned master registry: derived identities (M2), no tenant read/write surface, canonical attributes recomputed from links.ระเบียนหลักของ operator: อัตลักษณ์เป็นผลลัพธ์ (M2) tenant ไม่มี surface อ่าน/เขียน attribute มาตรฐานคำนวณใหม่จาก linkadmin
FR-146Tiered matching pipeline per WF-62 (normalize → deterministic → probabilistic → review), thresholds and signal weights as versioned operator config.pipeline จับคู่เป็นชั้นตาม WF-62 (normalize → เชิงกำหนด → ความน่าจะเป็น → ตรวจทาน) เกณฑ์และน้ำหนักสัญญาณเป็น config ของ operator เก็บเวอร์ชัน—
FR-147Review queue + corrections: confirm/reject/defer with reason; unlink, re-link, master merge/split — all evented and reversible (M3).คิวตรวจทาน + การแก้: ยืนยัน/ปฏิเสธ/พักพร้อมเหตุผล; ถอด เชื่อมใหม่ ผสาน/แยก master — ทุกอย่างมี event และย้อนกลับได้ (M3)admin
FR-148Fleet analytics on master identities: fleet composition, utilization, contractor fleets, routing patterns, declared-vs-weighed capacity, integrity signals (incl. implausible dual weigh-ins).analytics กองรถบนอัตลักษณ์หลัก: องค์ประกอบกองรถ การใช้งาน กองรถผู้รับเหมา แบบแผนเส้นทาง พิกัดแจ้ง-เทียบ-ชั่ง สัญญาณความสุจริต (รวมการขึ้นชั่งคู่ที่เป็นไปไม่ได้)admin
FR-149One-time migration: split platform-wide Truck rows per factory-with-deliveries, seed masters from originals, operator-run, verified, reversible until sign-off.migration ครั้งเดียว: แยกแถว Truck แบบ platform-wide ตามโรงงานที่มี delivery ใช้แถวเดิมเป็นเมล็ด master, operator รัน ตรวจยืนยัน ย้อนกลับได้จนกว่าลงนามadmin
NFR-46Scale: ≥150,000 master identities; registration-time matching decision p95 < 2 s; nightly full-corpus re-score completes before day open.สเกล: อัตลักษณ์หลัก ≥150,000; การตัดสินจับคู่ตอนลงทะเบียน p95 < 2 วินาที; คะแนนใหม่ทั้งคลังรายคืนเสร็จก่อนเปิดวัน—
NFR-47Tenant isolation: no factory surface renders master IDs, another factory's rows, or cross-factory facts; factory-facing analytics are own-fleet signals only — no cross-factory finding reaches any factory tenant. Sole exception: the factory-group portal for commonly-owned factories (PROP-026). Truck-movement data tied to an owner Party is personal data under PDPA.การแยก tenant: ไม่มี surface โรงงานแสดง master ID แถวของโรงงานอื่น หรือข้อเท็จจริงข้ามโรงงาน; analytics ฝั่งโรงงานเป็นสัญญาณกองรถของตนเท่านั้น — สิ่งที่พบข้ามโรงงานไม่มีวันถึง tenant โรงงานใด ข้อยกเว้นเดียว: portal กลุ่มโรงงานสำหรับโรงงานเจ้าของเดียวกัน (PROP-026) ข้อมูลการเคลื่อนที่ของรถที่ผูกกับ Party เจ้าของเป็นข้อมูลส่วนบุคคลตาม PDPA—
NFR-48Provenance: every link/unlink/merge/split carries tier, confidence, signals, pipeline version and actor; the link state is fully replayable from the event log.ที่มาที่ไป: ทุกการเชื่อม/ถอด/ผสาน/แยก ถือชั้น ความเชื่อมั่น สัญญาณ เวอร์ชัน pipeline และผู้กระทำ; สถานะ link เล่นซ้ำได้ครบจาก log เหตุการณ์—

10. Surfaces & screens10. ช่องทางและหน้าจอ

Screenหน้าจอSurfaceช่องทางSubstanceสาระ
mill-trucksportalThe factory truck register: search/add/edit, duplicate hints (normalized-plate collisions), merge initiation (WF-61), per-truck delivery history and own-fleet signals.ทะเบียนรถของโรงงาน: ค้น/เพิ่ม/แก้ คำใบ้แถวซ้ำ (ทะเบียน normalize ชนกัน) เริ่มการผสาน (WF-61) ประวัติ delivery รายคันและสัญญาณกองรถของตน
mill-truck-approvalsportalManagement approval inbox for TruckMergeRequests: blast-radius preview, approve/reject with reason. (Whether it folds into a general approvals inbox is the A-17 family's call.)กล่องอนุมัติของผู้บริหารสำหรับ TruckMergeRequest: ตัวอย่างรัศมีผลกระทบ อนุมัติ/ปฏิเสธพร้อมเหตุผล (จะพับเข้ากล่องอนุมัติรวมหรือไม่เป็นเรื่องของตระกูล A-17)
ops-matchadminReviewer queue: candidate pairs side-by-side with signal breakdown, confirm/reject/defer; correction tools (unlink, re-link, master merge/split).คิวผู้ตรวจ: คู่ผู้สมัครเทียบกันพร้อมแจกแจงสัญญาณ ยืนยัน/ปฏิเสธ/พัก; เครื่องมือแก้ (ถอด เชื่อมใหม่ ผสาน/แยก master)
ops-fleetadminMaster registry browser + FR-148 analytics: fleet composition, utilization, contractor fleets, routing, integrity alerts; threshold config and pipeline-version management.เบราว์เซอร์ระเบียนหลัก + analytics FR-148: องค์ประกอบกองรถ การใช้งาน กองรถผู้รับเหมา เส้นทาง การแจ้งเตือนความสุจริต; ตั้งค่าเกณฑ์และจัดการเวอร์ชัน pipeline

11. Impact matrix11. ตารางผลกระทบ

Layerชั้นChangeการเปลี่ยนแปลง
graph · entitiesTruck +mill_id/plate_norm/merged_into_truck_id, uniqueness re-keyed; +TruckMergeRequest; new fleet_intelligence context (MasterTruck, TruckLink).Truck +mill_id/plate_norm/merged_into_truck_id เปลี่ยนคีย์ความไม่ซ้ำ; +TruckMergeRequest; context ใหม่ fleet_intelligence (MasterTruck, TruckLink)
graph · events / workflows / requirements+5 events · WF-61…63 · FR-143…149, NFR-46…48; FR-29 amended (per-factory uniqueness); A-05 merge paragraph superseded by WF-61. IDs renumber on acceptance if intervening proposals land first.+5 event · WF-61…63 · FR-143…149, NFR-46…48; แก้ FR-29 (ไม่ซ้ำรายโรงงาน); WF-61 แทนย่อหน้าผสานของ A-05 เลขขยับตอนรับหากมีข้อเสนอแทรกก่อน
graph · uix / copy / glossary+mill-trucks, mill-truck-approvals, ops-match, ops-fleet screen specs + trk.* bilingual copy keys; glossary +ระเบียนรถหลัก (master truck record), การผสานทะเบียนซ้ำ (duplicate merge).+สเปกหน้าจอ mill-trucks, mill-truck-approvals, ops-match, ops-fleet + คีย์ข้อความ trk.*; อภิธานศัพท์ +ระเบียนรถหลัก การผสานทะเบียนซ้ำ
docsSPEC-PRD/PWF/UIX-MILL (truck register + merge, PROP-019 depth), SPEC-PRD-OPS → -PLT per PROP-046 (fleet consoles), SPEC-ERD/DDD (re-scope + new context), masters + SPEC-INDEX.SPEC-PRD/PWF/UIX-MILL (ทะเบียนรถ + การผสาน ที่ความลึก PROP-019), SPEC-PRD-OPS → -PLT ตาม PROP-046 (คอนโซล fleet), SPEC-ERD/DDD (ย่อขอบเขต + context ใหม่), เอกสารหลัก + SPEC-INDEX
apps / webNone now (apps/ waits for the finalized spec, project rule).ยังไม่มี (apps/ รอสเปกสรุป ตามกติกาโปรเจกต์)

12. Open questions12. คำถามเปิด

OQ-1 Auto-link vs human confirmation — where exactly do the thresholds sit?เชื่อมอัตโนมัติหรือคนยืนยัน — เกณฑ์อยู่ตรงไหนแน่?

T-2 exact matches auto-link uncontroversially. For T-3: does any probabilistic score auto-link, or does everything below 1.0 pass through review at first (thresholds tighten as the corpus and model mature)? The queue's size at 100k+ scale depends on this.

การจับคู่ตรงเป๊ะของ T-2 เชื่อมอัตโนมัติโดยไม่มีข้อโต้แย้ง สำหรับ T-3: คะแนนความน่าจะเป็นใด ๆ เชื่อมอัตโนมัติได้ไหม หรือทุกอย่างต่ำกว่า 1.0 ผ่านการตรวจทานก่อนในช่วงแรก (เกณฑ์ค่อยเข้มเมื่อคลังและ model โต)? ขนาดคิวที่สเกลแสนคันขึ้นกับข้อนี้

Recommend:แนะนำ: launch conservative — auto-link only ≥0.97 with no conflicting signal; review band 0.75–0.97; below → new master. Re-tune from reviewer agreement rates.เริ่มแบบระมัดระวัง — เชื่อมอัตโนมัติเฉพาะ ≥0.97 โดยไม่มีสัญญาณขัดแย้ง; ช่วงตรวจทาน 0.75–0.97; ต่ำกว่า → master ใหม่ ปรับใหม่จากอัตราความเห็นตรงของผู้ตรวจ

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): recommendation accepted in full. Launch thresholds: T-3 auto-link only at score ≥0.97 with no conflicting signal; review band 0.75–0.97 → T-4 queue; <0.75 → new MasterTruck. Thresholds are pipeline-version parameters (NFR-48) re-tuned from reviewer agreement rates — loosened only as the corpus and model mature, never silently.รับข้อแนะนำทั้งหมด เกณฑ์เริ่มต้น: T-3 เชื่อมอัตโนมัติเฉพาะคะแนน ≥0.97 โดยไม่มีสัญญาณขัดแย้ง; ช่วงตรวจทาน 0.75–0.97 → คิว T-4; <0.75 → สร้าง MasterTruck ใหม่ เกณฑ์เป็นพารามิเตอร์ตามเวอร์ชัน pipeline (NFR-48) ปรับจากอัตราความเห็นตรงของผู้ตรวจ — ผ่อนเมื่อคลังและ model โตเท่านั้น ไม่มีวันเงียบ ๆ

OQ-2 Does any factory ever see master-level output?โรงงานเห็นผลลัพธ์ระดับ master บ้างไหม?

M1 hides the layer, but some of its findings serve the factory (a truck habitually over its rated capacity; a plate seen at a rival mill an hour before claiming a full load). Sharing the second kind leaks cross-tenant facts A-30 called commercially loaded. Where is the line — own-fleet signals only, or curated integrity alerts too?

M1 ซ่อนชั้นนี้ แต่บางสิ่งที่มันพบมีประโยชน์ต่อโรงงาน (รถที่น้ำหนักเกินพิกัดเป็นนิสัย; ทะเบียนที่ถูกเห็นที่โรงงานคู่แข่งหนึ่งชั่วโมงก่อนอ้างว่าบรรทุกเต็ม) การแชร์อย่างหลังรั่วข้อเท็จจริงข้าม tenant ที่ A-30 เรียกว่าอ่อนไหวเชิงพาณิชย์ เส้นอยู่ตรงไหน — สัญญาณกองรถของตนเท่านั้น หรือรวมการแจ้งเตือนความสุจริตที่คัดสรรด้วย?

Decided (client, 15 Jul 2026):ตัดสินแล้ว (ลูกค้า 15 ก.ค. 2569): no factory ever sees a master-level finding — nothing cross-factory reaches any factory tenant, curated or not; integrity findings stay with the operator (OQ-9 still governs any case-by-case escalation). Sole exception: a factory group — one owner operating multiple factories — may see consolidated accounting and a performance overview across its own factories through a group management portal. That exception is owned and explored in depth by PROP-026, not here.ไม่มีโรงงานใดเห็นสิ่งที่พบระดับ master — ไม่มีสิ่งข้ามโรงงานถึง tenant โรงงานใด ๆ ไม่ว่าคัดสรรหรือไม่; สิ่งที่พบด้านความสุจริตอยู่กับ operator (OQ-9 ยังคุมการส่งต่อรายกรณี) ข้อยกเว้นเดียว: กลุ่มโรงงาน — เจ้าของเดียวดำเนินการหลายโรงงาน — เห็นบัญชีรวมและภาพรวมผลการดำเนินงานข้ามโรงงานของตนผ่าน portal บริหารกลุ่ม ข้อยกเว้นนี้เป็นของและถูกสำรวจเชิงลึกโดย PROP-026 ไม่ใช่ที่นี่

OQ-3 Matching signals — which are in scope for v1, and what may the model learn from?สัญญาณจับคู่ — ชุดใดอยู่ใน v1 และ model เรียนจากอะไรได้?

T-3 lists plate distance, province, truck_type, capacity, owner-name similarity, contractor identity, behavior. Owner-name similarity touches personal data (PDPA basis for processing?); behavioral signals require delivery history the link is supposed to help build (bootstrap circularity). Which signals ship first, and is reviewer-decision training data governed?

T-3 ระบุระยะทะเบียน จังหวัด truck_type พิกัด ความคล้ายชื่อเจ้าของ อัตลักษณ์ผู้รับเหมา พฤติกรรม ความคล้ายชื่อเจ้าของแตะข้อมูลส่วนบุคคล (ฐานประมวลผลตาม PDPA?); สัญญาณพฤติกรรมต้องใช้ประวัติ delivery ที่ link ควรช่วยสร้าง (วนก่อร่าง) สัญญาณชุดใดมาก่อน และข้อมูลฝึกจากการตัดสินของผู้ตรวจถูกกำกับไหม?

Recommend:แนะนำ: v1 = plate + province + truck_type + capacity (property data, no PDPA exposure); owner/behavior signals in v2 behind a recorded PDPA basis.v1 = ทะเบียน + จังหวัด + truck_type + พิกัด (ข้อมูลทรัพย์สิน ไม่แตะ PDPA); สัญญาณเจ้าของ/พฤติกรรมใน v2 หลังบันทึกฐาน PDPA

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): recommendation accepted — v1 matches on plate + province + truck_type + capacity only; owner-name and behavioral signals deferred to v2 behind a recorded PDPA basis, and reviewer-decision training data is governed under NFR-48 (pipeline versions pinned per link). Client observation folded in: owner identity is only known when the owner is a platform party (farmer, contractor, mill) — trucks owned by outside parties have no owner record at all, so owner-name can never be a required signal; absence of an owner is neutral, never a mismatch.รับข้อแนะนำ — v1 จับคู่ด้วยทะเบียน + จังหวัด + truck_type + พิกัดเท่านั้น; สัญญาณชื่อเจ้าของและพฤติกรรมเลื่อนไป v2 หลังบันทึกฐาน PDPA และข้อมูลฝึกจากการตัดสินของผู้ตรวจถูกกำกับตาม NFR-48 (ตรึงเวอร์ชัน pipeline ต่อ link) ข้อสังเกตลูกค้าผนวกแล้ว: รู้อัตลักษณ์เจ้าของเฉพาะเมื่อเจ้าของเป็น party ในแพลตฟอร์ม (ชาวไร่ ผู้รับเหมา โรงงาน) — รถของบุคคลภายนอกไม่มีระเบียนเจ้าของเลย ชื่อเจ้าของจึงเป็นสัญญาณบังคับไม่ได้; การไม่มีเจ้าของเป็นกลาง ไม่ใช่ความไม่ตรงกัน

OQ-4 Re-registration and plate transfer — one truck, two plates; one plate, two trucks.การจดทะเบียนใหม่และโอนป้าย — รถเดียวสองป้าย; ป้ายเดียวสองคัน

Thai plates move: a truck re-registered in another province gets a new plate; a retired plate can be reissued to a different vehicle. Pure plate matching then produces both false splits (one truck, two masters) and false merges (two trucks, one master over time). Does MasterTruck model plate periods (valid-from/to per plate), and what evidence closes a period?

ทะเบียนไทยเคลื่อนที่: รถจดใหม่ต่างจังหวัดได้ป้ายใหม่; ป้ายที่ถูกยกเลิกอาจถูกออกใหม่ให้รถคันอื่น การจับคู่ด้วยป้ายล้วน ๆ จึงให้ทั้งการแยกผิด (รถเดียว สอง master) และการรวมผิด (สองคัน master เดียวตามเวลา) MasterTruck ควรมีช่วงเวลาของป้าย (มีผลจาก/ถึง ต่อป้าย) ไหม และหลักฐานใดปิดช่วง?

Recommend:แนะนำ: yes — plate periods on the master; a reissue detected by conflicting truck_type/capacity opens a review case rather than auto-merging.ควร — ช่วงป้ายบน master; การออกป้ายซ้ำที่ truck_type/พิกัดขัดแย้งเปิดเคสตรวจทาน ไม่รวมอัตโนมัติ

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): the system never infers cross-plate identity — without a chassis identification number there is no way to know a re-plated truck is the same truck, and the platform does not hold chassis IDs for most trucks. Plate periods exist, but they are declared, not detected: only when the owner is a platform party (farmer, contractor, mill — per OQ-3) who has recorded the truck's chassis ID may they report a plate change, which closes the old plate period and opens the new one on the same MasterTruck (with management-grade approval and full audit). Absent such a declaration, a new plate is simply a new truck row → new MasterTruck. Suspected reissue (same plate, conflicting truck_type/capacity) still opens a review case — resolved as a split, never an auto-merge. Adds optional chassis_id to the truck attributes.ระบบไม่อนุมานอัตลักษณ์ข้ามป้าย — ไม่มีเลขตัวถัง (chassis ID) ก็ไม่มีทางรู้ว่ารถเปลี่ยนป้ายคือคันเดิม และแพลตฟอร์มไม่มี chassis ID ของรถส่วนใหญ่ ช่วงป้ายมีอยู่ แต่เป็นแบบประกาศ ไม่ใช่ตรวจจับ: เฉพาะเมื่อเจ้าของเป็น party ในแพลตฟอร์ม (ชาวไร่ ผู้รับเหมา โรงงาน — ตาม OQ-3) ที่บันทึก chassis ID ของรถไว้ จึงแจ้งเปลี่ยนป้ายได้ ซึ่งปิดช่วงป้ายเดิมและเปิดช่วงใหม่บน MasterTruck เดิม (ผ่านการอนุมัติระดับผู้จัดการและ audit เต็ม) หากไม่มีการประกาศ ป้ายใหม่ก็คือแถวรถใหม่ → MasterTruck ใหม่ สงสัยออกป้ายซ้ำ (ป้ายเดิม truck_type/พิกัดขัดแย้ง) ยังเปิดเคสตรวจทาน — จบด้วยการแยก ไม่มีการรวมอัตโนมัติ เพิ่ม chassis_id (ไม่บังคับ) ในแอตทริบิวต์ของรถ

OQ-5 Which mill role approves the merge?role ใดของโรงงานอนุมัติการผสาน?

A-32 says "higher management of the factory". The roles list has several manager-grade roles; is merge approval a named permission on an existing role (which?), a new role, or configurable per factory (Q-50 family, like A-17's approval-policy chain)?

A-32 ว่า "ผู้บริหารระดับสูงกว่าของโรงงาน" รายการ role มีหลาย role ระดับผู้จัดการ; การอนุมัติผสานเป็น permission ระบุชื่อบน role เดิม (อันไหน?) role ใหม่ หรือตั้งค่าได้รายโรงงาน (ตระกูล Q-50 แบบสายนโยบายอนุมัติของ A-17)?

Recommend:แนะนำ: fold into A-17's approval-policy chain — merge approval is one more consequential-action policy, configured in the same home.พับเข้าสายนโยบายอนุมัติของ A-17 — การอนุมัติผสานเป็นนโยบายการกระทำสำคัญอีกหนึ่งรายการ ตั้งค่าในบ้านเดียวกัน

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): recommendation accepted — truck-merge approval is registered as one more consequential action in A-17's approval-policy chain; each factory configures which of its manager-grade roles approves, in the same policy home. No new role, no hard-coded platform-wide role.รับข้อแนะนำ — การอนุมัติผสานรถถูกลงทะเบียนเป็นการกระทำสำคัญอีกรายการในสายนโยบายอนุมัติของ A-17; แต่ละโรงงานตั้งค่าเองว่า role ระดับผู้จัดการใดเป็นผู้อนุมัติ ในบ้านนโยบายเดิม ไม่มี role ใหม่ ไม่ผูก role ตายตัวทั่วแพลตฟอร์ม

OQ-6 Does the booth's auto-created truck row enter matching synchronously?แถวรถที่บูธสร้างอัตโนมัติเข้า matching แบบ synchronous ไหม?

NFR-46 budgets 2 s at registration, but the booth is the intake chain's throughput bottleneck (PROP-020). Is the pipeline fire-and-forget from the booth's perspective (row usable immediately, link arrives whenever), or does anything at intake wait on a match?

NFR-46 ให้งบ 2 วินาทีตอนลงทะเบียน แต่บูธคือคอขวด throughput ของสายรับเข้า (PROP-020) pipeline เป็นแบบยิงแล้วลืมจากมุมของบูธ (แถวใช้ได้ทันที link มาเมื่อไรก็ได้) หรือมีสิ่งใดตอนรับเข้ารอการจับคู่?

Recommend:แนะนำ: strictly asynchronous — nothing tenant-facing ever waits on the master layer (M1 corollary).asynchronous เคร่งครัด — ไม่มีสิ่งใดฝั่ง tenant รอชั้น master (ผลพวงของ M1)

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): fire-and-forget — the booth saves the truck row and moves on immediately; matching runs in the background and the master-link attaches whenever it completes (seconds or minutes later). The booth never waits; nothing tenant-facing ever blocks on the master layer. NFR-46's 2 s budget applies to the background pipeline's own latency, not to any intake interaction.ยิงแล้วลืม — บูธบันทึกแถวรถแล้วไปต่อทันที; matching ทำงานเบื้องหลัง และ link มาติดเมื่อเสร็จ (วินาทีหรือนาทีถัดมา) บูธไม่มีวันรอ; ไม่มีสิ่งใดฝั่ง tenant ถูกบล็อกโดยชั้น master งบ 2 วินาทีของ NFR-46 เป็น latency ของ pipeline เบื้องหลังเอง ไม่ใช่การโต้ตอบที่จุดรับเข้า

OQ-7 PDPA classification of the linked movement graph?ชั้น PDPA ของกราฟการเคลื่อนที่ที่เชื่อมแล้ว?

A truck is property, but a master identity linked to owner_party_id makes cross-factory movement a profile of a person's economic activity. dataModeling class (personal? consent_gated for anything beyond operator analytics?), retention, and whether OCSB/government capacities may ever query it.

รถเป็นทรัพย์สิน แต่อัตลักษณ์หลักที่เชื่อม owner_party_id ทำให้การเคลื่อนที่ข้ามโรงงานเป็น profile กิจกรรมเศรษฐกิจของบุคคล ชั้นใน dataModeling (personal? consent_gated สำหรับสิ่งที่เกิน analytics ของ operator?) การเก็บรักษา และ capacity รัฐ/สอน. จะ query ได้ไหม

Recommend:แนะนำ: personal; operator analytics under legitimate-interest with anonymized outputs; any external or government access via a later, explicit proposal.personal; analytics ของ operator ใต้ประโยชน์อันชอบธรรมพร้อมผลลัพธ์นิรนาม; การเข้าถึงภายนอกหรือภาครัฐผ่านข้อเสนอชัดเจนภายหลัง

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): recommendation accepted — the linked movement graph is classified personal; operator analytics run under legitimate-interest with anonymized outputs only; no external or government access is granted by this proposal — any such access requires its own explicit future proposal. Client rationale recorded: letting an external party reach this personal information would itself create distrust in the platform — trust of farmers and contractors is a platform asset the default must protect.รับข้อแนะนำ — กราฟการเคลื่อนที่ถูกจัดชั้น personal; analytics ของ operator ใต้ประโยชน์อันชอบธรรม ผลลัพธ์นิรนามเท่านั้น; ข้อเสนอนี้ไม่ให้สิทธิการเข้าถึงแก่ภายนอกหรือภาครัฐ — ต้องมาเป็นข้อเสนอใหม่ชัดเจนในอนาคต เหตุผลลูกค้าบันทึกไว้: การให้บุคคลภายนอกเข้าถึงข้อมูลส่วนบุคคลนี้จะสร้างความไม่ไว้วางใจต่อแพลตฟอร์มเอง — ความไว้วางใจของชาวไร่และผู้รับเหมาคือทรัพย์สินของแพลตฟอร์มที่ค่าเริ่มต้นต้องปกป้อง

OQ-8 Migration mechanics for the existing platform-wide rows?กลไก migration ของแถว platform-wide เดิม?

FR-149 sketches the split. Open: rows referenced by zero deliveries (park on the master only, or copy to the registering mill?); in-flight deliveries during the cutover; whether the old global truck_id survives as the master's seed ID so audit trails stay resolvable.

FR-149 ร่างการแยกไว้ ที่ยังเปิด: แถวที่ไม่มี delivery อ้างถึง (พักไว้บน master เท่านั้น หรือคัดลอกให้โรงงานที่ลงทะเบียน?); delivery ที่ค้างกลางระหว่าง cutover; truck_id ระดับ global เดิมคงอยู่เป็น seed ID ของ master ไหม เพื่อให้ audit trail ยัง resolve ได้

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): zero-delivery rows are copied into the register of the mill that originally entered them (their data, their register); the cutover runs in an off-season maintenance window with no in-flight deliveries permitted; and the old global truck_id survives as the MasterTruck's immutable seed ID so every historical audit trail, ticket, and reference stays resolvable. FR-149 to be detailed accordingly.แถวที่ไม่มี delivery ถูกคัดลอกเข้าทะเบียนของโรงงานที่ป้อนข้อมูลเดิม (ข้อมูลของเขา ทะเบียนของเขา); cutover ทำในหน้าต่างฤดูหีบช่วงปิดปรับปรุง ไม่อนุญาต delivery ค้างกลาง; และ truck_id เดิมคงอยู่เป็น seed ID ถาวรของ MasterTruck ให้ทุก audit trail ตั๋ว และการอ้างอิงเก่ายัง resolve ได้ จะลงรายละเอียดใน FR-149

OQ-9 Integrity-signal duty of care — who acts on a fraud pattern?หน้าที่ต่อสัญญาณความสุจริต — ใครลงมือเมื่อพบแบบแผนทุจริต?

FR-148 will surface implausible dual weigh-ins and plate anomalies. Is the operator obliged to notify affected mills (and does silence create liability), or is the console observational until a mill asks? Interacts with OQ-2's disclosure line and the WF-30 escalation family.

FR-148 จะเผยการขึ้นชั่งคู่ที่เป็นไปไม่ได้และความผิดปกติของป้าย operator มีหน้าที่แจ้งโรงงานที่กระทบไหม (และความเงียบสร้างความรับผิดหรือไม่) หรือคอนโซลเป็นเพียงการสังเกตจนกว่าโรงงานถาม? พันกับเส้นการเปิดเผยของ OQ-2 และตระกูลการส่งต่อ WF-30

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): observational by default — the console creates no general duty to notify. Exception: a defined severe class (e.g. physically impossible dual weigh-in — likely fraud in progress) triggers a formal notification to each affected mill via the existing WF-30 escalation channel; each mill is told only about its own deliveries, never a cross-factory finding, preserving OQ-2's absolute isolation. The severe-class list is a written, versioned operator policy — bounding liability with a clear rule.โดยปริยายเป็นการสังเกต — คอนโซลไม่สร้างหน้าที่แจ้งทั่วไป ข้อยกเว้น: ชั้นรุนแรงที่นิยามไว้ (เช่น ขึ้นชั่งคู่ที่เป็นไปไม่ได้ — น่าจะเป็นทุจริตกำลังดำเนิน) กระตุ้นการแจ้งเตือนทางการถึงแต่ละโรงงานที่กระทบผ่านช่องส่งต่อ WF-30 เดิม; แต่ละโรงงานรู้เฉพาะ delivery ของตน ไม่ใช่สิ่งที่พบข้ามโรงงาน คงการแยกเด็ดขาดของ OQ-2; รายการชั้นรุนแรงเป็นนโยบาย operator ที่เขียนเป็นลายลักษณ์อักษรและมีเวอร์ชัน — จำกัดความรับผิดด้วยกติกาชัดเจน

OQ-10 Sequencing & versioning?ลำดับและเวอร์ชัน?

The A-32 minimums (Truck re-scope, FR-29 amendment, two-act merge) ride the Q1 amendment pass. Does the fleet_intelligence layer land as its own minor after Q1, and does it need any minimum corpus (mill count) before matching is worth switching on?

ขั้นต่ำของ A-32 (ย่อขอบเขต Truck แก้ FR-29 ผสานสองจังหวะ) ลงกับรอบแก้ Q1 ชั้น fleet_intelligence ลงเป็น minor ของตัวเองหลัง Q1 ไหม และต้องมีคลังขั้นต่ำ (จำนวนโรงงาน) ก่อนเปิด matching จึงคุ้มหรือไม่?

Recommend:แนะนำ: minimums in the Q1 pass; fleet_intelligence as its own minor, switchable on from the first multi-mill season.ขั้นต่ำลงรอบ Q1; fleet_intelligence เป็น minor ของตัวเอง เปิดใช้ได้ตั้งแต่ฤดูแรกที่มีหลายโรงงาน

Premise refreshed (17 Jul 2026):ปรับข้อตั้งใหม่ (17 ก.ค. 2569): The Q1 amendment pass (spec v0.7.0) applied all judged verdict minimums, A-32’s included (Truck re-scope, FR-29 amendment, two-act merge). Remaining here: fleet_intelligence as its own minor, and the minimum-corpus threshold.รอบแก้ Q1 (spec v0.7.0) ใช้ขั้นต่ำของคำวินิจฉัยที่ตัดสินแล้วทั้งหมด รวมของ A-32 (ย่อขอบเขต Truck แก้ FR-29 ผสานสองจังหวะ) ที่เหลือ: fleet_intelligence เป็น minor ของตัวเอง และเกณฑ์คลังขั้นต่ำ

Premise refreshed (17 Jul 2026, OQ pass 2):ปรับข้อตั้ง (17 ก.ค. 2569, ทบทวน OQ รอบ 2): The queue train has now APPLIED (v0.12.0) and supplies two decided inputs: QueueTicket binds the plate at issuance (FR-120) — a pre-delivery plate capture feeding the T-1…T-4 matching pipeline; and ReliabilityEvent carries truck own/hired + contractor attribution (FR-130) — the registry’s fleet analytics (FR-148) gain a decided consumer.ขบวนคิว apply แล้ว (v0.12.0) และให้ข้อมูลตั้งต้นที่ตัดสินแล้วสองอย่าง: QueueTicket ผูกทะเบียนรถตั้งแต่ออกบัตร (FR-120) — การเก็บทะเบียนก่อนการส่งมอบที่ป้อนสาย matching T-1…T-4; และ ReliabilityEvent เก็บ attribution รถของตนเอง/จ้าง + ผู้รับเหมา (FR-130) — งานวิเคราะห์ fleet ของทะเบียน (FR-148) ได้ผู้ใช้ที่ตัดสินแล้ว

Decided (client, 23 Jul 2026):ตัดสินแล้ว (ลูกค้า 23 ก.ค. 2569): recommendation accepted — fleet_intelligence lands as its own minor release after the Q1 pass; matching is switchable on from the first season with two or more mills live (no larger minimum corpus required).รับข้อแนะนำ — fleet_intelligence ลงเป็น minor ของตัวเองหลังรอบ Q1; เปิด matching ได้ตั้งแต่ฤดูแรกที่มีโรงงานสองแห่งขึ้นไป (ไม่ต้องมีคลังขั้นต่ำใหญ่กว่านี้)

13. Revision history13. ประวัติการแก้ไข

RevDateวันที่Changesการเปลี่ยนแปลง
1.02026-07-23ACCEPTED & APPLIED as spec v0.20.0 (client, 23 Jul 2026) — all 10 OQ decisions folded in. Graph: Truck re-keyed (mill_id, reg_no_norm, province) + chassis_id?/merged_into_truck_id?, FR-29 amendment record; +TruckMergeRequest (delivery_weighbridge, mill) and the fleet_intelligence context (MasterTruck · TruckLink · MasterPlatePeriod · PlateChangeDeclaration, plt); 7 events; WF-66…69; FR-165…172; NFR-54…56; screens mill-trucks / mill-truck-approvals / ops-match / ops-fleet + trk.* copy (34 keys); 3 glossary terms; Truck dataModeling profile re-keyed. Draft IDs renumbered at application (WF-61‑63 → WF-66–69, FR-143…149 → FR-165…172, NFR-46—48 → NFR-54–56). Mirrored into SPEC-{PRD,ERD,DDD,PWF,UIX}-MILL and SPEC-{PRD,ERD,DDD,PWF,UIX}-PLT + SPEC-INDEX.ยอมรับและปรับใช้เป็น spec v0.20.0 (ลูกค้า 23 ก.ค. 2569) — รวมผลตัดสิน OQ ทั้ง 10 ข้อ graph: Truck เปลี่ยนคีย์ (mill_id, reg_no_norm, จังหวัด) + chassis_id?/merged_into_truck_id?, ระเบียนแก้ FR-29; +TruckMergeRequest และ context fleet_intelligence (สี่ entity, plt); 7 event; WF-66…69; FR-165…172; NFR-54…56; หน้าจอ mill-trucks / mill-truck-approvals / ops-match / ops-fleet + ข้อความ trk.* (34 key); ศัพท์ 3 คำ; เลขร่างถูกจัดใหม่ตอนปรับใช้ สะท้อนเข้าเอกสาร MILL + PLT ทั้งห้าฉบับต่อข้าง + SPEC-INDEX
0.12026-07-15First draft — spun out of the PROP-019 Q1 gate round-2 verdict A-32. Truck re-scope + two-act merge (WF-61, TruckMergeRequest), principles M1–M3, MasterTruck/TruckLink model, tiered matching pipeline T-1…T-4 (WF-62), fleet analytics (FR-148), operator consoles, migration (FR-149), FR-143…149, NFR-46…48, impact matrix, 10 open questions.ร่างแรก — แยกจากคำวินิจฉัย A-32 รอบที่ 2 ของ PROP-019 Q1 gate การย่อขอบเขต Truck + ผสานสองจังหวะ (WF-61, TruckMergeRequest) หลักการ M1–M3 โมเดล MasterTruck/TruckLink pipeline จับคู่เป็นชั้น T-1…T-4 (WF-62) analytics กองรถ (FR-148) คอนโซล operator migration (FR-149) FR-143…149 NFR-46…48 ตารางผลกระทบ และคำถามเปิด 10 ข้อ
0.22026-07-15OQ-2 decided by the client: no factory ever sees a master-level or cross-factory finding — tenant isolation is absolute (Section 6 and NFR-47 tightened; anonymized cross-factory aggregates dropped from factory surfaces). Sole exception: factory groups (one owner, multiple factories) with consolidated accounting + a group performance overview via a group management portal — spun out as PROP-026 for a comprehensive deep dive.ลูกค้าตัดสิน OQ-2: ไม่มีโรงงานใดเห็นสิ่งที่พบระดับ master หรือข้ามโรงงาน — การแยก tenant เด็ดขาด (กระชับข้อ 6 และ NFR-47; ตัดตัวรวมนิรนามข้ามโรงงานออกจาก surface โรงงาน) ข้อยกเว้นเดียว: กลุ่มโรงงาน (เจ้าของเดียว หลายโรงงาน) กับบัญชีรวม + ภาพรวมผลการดำเนินงานกลุ่มผ่าน portal บริหารกลุ่ม — แยกออกเป็น PROP-026 เพื่อเจาะลึกอย่างครอบคลุม
0.32026-07-17Open-question cross-reference pass (client request): OQ-10 premise refreshed — the A-32 minimums rode the Q1 amendment pass (v0.7.0); remaining OQs unchanged, no conflicts found.รอบอ้างโยงคำถามเปิด (ตามคำขอลูกค้า): ปรับข้อตั้ง OQ-10 — ขั้นต่ำ A-32 ไปกับรอบแก้ Q1 แล้ว (v0.7.0); OQ ที่เหลือคงเดิม ไม่พบข้อขัดแย้ง
0.42026-07-17OQ review pass 2: OQ-10 premise refreshed again — the queue train applied (v0.12.0); FR-120 plate-at-issuance and FR-130 truck/contractor attribution are decided inputs to the matching pipeline and fleet analytics.ทบทวน OQ รอบ 2: ปรับข้อตั้ง OQ-10 อีกครั้ง — ขบวนคิว apply แล้ว (v0.12.0); FR-120 ทะเบียนรถตอนออกบัตร และ attribution ตาม FR-130 เป็นข้อมูลตั้งต้นที่ตัดสินแล้วของสาย matching และงานวิเคราะห์ fleet
0.132026-07-23OQ-9 + OQ-10 DECIDED (client, 23 Jul 2026) — all 10 open questions now resolved. OQ-9: console observational by default; a written, versioned severe class (e.g. impossible dual weigh-in) triggers formal WF-30 notification to affected mills, each told only about its own deliveries (OQ-2 isolation preserved). OQ-10: fleet_intelligence as its own minor after Q1; matching switchable on from the first season with 2+ mills.ตัดสิน OQ-9 + OQ-10 (ลูกค้า 23 ก.ค. 2569) — คำถามเปิดครบ 10 ข้อแล้ว OQ-9: คอนโซลสังเกตโดยปริยาย; ชั้นรุนแรงที่เขียนไว้กระตุ้นการแจ้งผ่าน WF-30 เฉพาะ delivery ของแต่ละโรงงาน (คง OQ-2) OQ-10: fleet_intelligence เป็น minor หลัง Q1; เปิด matching ตั้งแต่ฤดูแรกที่มี 2+ โรงงาน
0.122026-07-23OQ-8 DECIDED (client, 23 Jul 2026) — zero-delivery rows copy to the registering mill; cutover in an off-season maintenance window with no in-flight deliveries; old global truck_id survives as the MasterTruck's immutable seed ID so audit trails stay resolvable. FR-149 to be detailed accordingly.ตัดสิน OQ-8 (ลูกค้า 23 ก.ค. 2569) — แถวไม่มี delivery คัดลอกให้โรงงานที่ลงทะเบียน; cutover นอกฤดูกาล ไม่มี delivery ค้างกลาง; truck_id เดิมเป็น seed ID ถาวรของ MasterTruck รายละเอียดลง FR-149
0.112026-07-23OQ-7 DECIDED (client, 23 Jul 2026) — recommendation accepted: linked movement graph classified personal; operator analytics under legitimate-interest, anonymized outputs only; no external/government access granted — any such access needs its own future proposal. Client rationale: external access to this personal information would create distrust in the platform.ตัดสิน OQ-7 (ลูกค้า 23 ก.ค. 2569) — รับข้อแนะนำ: กราฟการเคลื่อนจัดชั้น personal; analytics ใต้ประโยชน์อันชอบธรรม ผลนิรนามเท่านั้น; ไม่ให้สิทธิภายนอก/ภาครัฐ — ต้องเป็นข้อเสนอใหม่ในอนาคต เหตุผล: การเข้าถึงจากภายนอกสร้างความไม่ไว้วางใจต่อแพลตฟอร์ม
0.102026-07-23OQ-6 DECIDED (client, 23 Jul 2026) — fire-and-forget: booth saves the row and moves on immediately; matching runs in the background, link attaches when done. Nothing tenant-facing ever waits on the master layer; NFR-46's 2 s applies to the background pipeline itself.ตัดสิน OQ-6 (ลูกค้า 23 ก.ค. 2569) — ยิงแล้วลืม: บูธบันทึกแล้วไปต่อทันที matching เบื้องหลัง link มาติดเมื่อเสร็จ; ไม่มีสิ่งใดฝั่ง tenant รอชั้น master; 2 วินาทีของ NFR-46 คืองบของ pipeline เอง
0.92026-07-23OQ-5 DECIDED (client, 23 Jul 2026) — option 3 accepted: truck-merge approval folds into A-17's approval-policy chain as one more consequential action; each factory configures the approving manager-grade role. No new role, no hard-coded platform-wide role.ตัดสิน OQ-5 (ลูกค้า 23 ก.ค. 2569) — รับตัวเลือก 3: การอนุมัติผสานพับเข้าสายนโยบายอนุมัติ A-17 เป็นการกระทำสำคัญอีกรายการ; แต่ละโรงงานตั้งค่า role ผู้อนุมัติเอง ไม่มี role ใหม่
0.82026-07-23OQ-4 DECIDED (client, 23 Jul 2026) — no inferred cross-plate identity: without a chassis ID the platform cannot know a re-plated truck is the same truck. Plate periods are declared, not detected — only a platform-party owner (farmer/contractor/mill) who recorded the truck's chassis_id may report a plate change (closes old period, opens new, approved + audited). Otherwise new plate = new MasterTruck; suspected reissue conflicts still open a review case, resolved as splits, never auto-merged. Optional chassis_id added to truck attributes.ตัดสิน OQ-4 (ลูกค้า 23 ก.ค. 2569) — ไม่อนุมานอัตลักษณ์ข้ามป้าย: ไม่มี chassis ID ก็รู้ไม่ได้ว่ารถเปลี่ยนป้ายคือคันเดิม ช่วงป้ายเป็นแบบประกาศเท่านั้น — เจ้าของที่เป็น party ในแพลตฟอร์มและบันทึก chassis_id ไว้จึงแจ้งเปลี่ยนป้ายได้ นอกนั้นป้ายใหม่ = MasterTruck ใหม่; ข้อขัดแย้งออกป้ายซ้ำเปิดเคสตรวจทาน จบด้วยการแยก ไม่รวมอัตโนมัติ เพิ่ม chassis_id (ไม่บังคับ)
0.72026-07-23OQ-3 DECIDED (client, 23 Jul 2026) — recommendation accepted: v1 signals = plate + province + truck_type + capacity (property data only); owner-name + behavioral signals deferred to v2 behind a recorded PDPA basis; reviewer training data governed under NFR-48. Client observation recorded: owner identity exists only for platform-party owners — externally-owned trucks have none, so missing owner is neutral, never a mismatch. Section 5 T-3 updated.ตัดสิน OQ-3 (ลูกค้า 23 ก.ค. 2569) — รับข้อแนะนำ: สัญญาณ v1 = ทะเบียน + จังหวัด + truck_type + พิกัด (ข้อมูลทรัพย์สินเท่านั้น); ชื่อเจ้าของ + พฤติกรรมเลื่อนไป v2 หลังบันทึกฐาน PDPA; ข้อมูลฝึกผู้ตรวจกำกับตาม NFR-48 บันทึกข้อสังเกตลูกค้า: อัตลักษณ์เจ้าของมีเฉพาะเจ้าของที่เป็น party ในแพลตฟอร์ม — รถของภายนอกไม่มี การไม่มีเจ้าของจึงเป็นกลาง ปรับข้อ 5 T-3
0.62026-07-23OQ-1 DECIDED (client, 23 Jul 2026) — recommendation accepted in full: T-3 auto-link ≥0.97 with no conflicting signal, review band 0.75–0.97, below → new MasterTruck; thresholds are pipeline-version parameters re-tuned from reviewer agreement rates. Section 5 T-3 updated with the launch numbers.ตัดสิน OQ-1 (ลูกค้า 23 ก.ค. 2569) — รับข้อแนะนำทั้งหมด: T-3 เชื่อมอัตโนมัติ ≥0.97 ไม่มีสัญญาณขัดแย้ง ช่วงตรวจทาน 0.75–0.97 ต่ำกว่า → MasterTruck ใหม่; เกณฑ์เป็นพารามิเตอร์ตามเวอร์ชัน pipeline ปรับจากอัตราความเห็นตรงของผู้ตรวจ ปรับข้อ 5 T-3 ด้วยตัวเลขเริ่มต้น
0.52026-07-22Documentation-home rectification: the impact matrix and Affects row cited "SPEC-PRD-ADM", a family that does not exist — repointed to SPEC-PRD-OPS, re-homing to the -PLT infrastructure family proposed by PROP-046 (commissioned by the client's platform-master-spec question, 22 Jul 2026). No substance changed.แก้บ้านเอกสาร: ตารางผลกระทบและแถว Affects เคยอ้าง "SPEC-PRD-ADM" ตระกูลที่ไม่มีอยู่จริง — ชี้ใหม่เป็น SPEC-PRD-OPS และจะย้ายบ้านไปตระกูลโครงสร้างพื้นฐาน -PLT ที่เสนอโดย PROP-046 (เกิดจากคำถามของลูกค้าเรื่อง spec ระดับ platform, 22 ก.ค. 2569) สาระไม่เปลี่ยน