Cane Agency · Change Proposal — APPROVED & APPLIED as spec v0.79.0, 20 Aug 2026, as a MINOR marked breaking under A-120 (the governance amendment PROP-102, applied first as v0.78.0, is what admits the classification). This is the controlled successor to PROP-030, not a rewrite of it. PROP-030 Rev 1.0 is ACCEPTED AND APPLIED as spec v0.21.0 and keeps its historical meaning verbatim; the graph registers and the validator now carry this amendment, and the document publication is the owed second pass of the same change set. Allocated a new identifier through the draft register rather than renumbering PROP-030.สถาบันอ้อย · ข้อเสนอการเปลี่ยนแปลง — อนุมัติและ apply แล้วเป็น spec v0.79.0 วันที่ 20 ส.ค. 2569 เป็น MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ตาม A-120 (การแก้ไขด้านธรรมาภิบาล PROP-102 ซึ่ง apply ก่อนเป็น v0.78.0 คือสิ่งที่ยอมให้จัดชั้นแบบนี้) นี่คือฉบับสืบทอดที่ควบคุมของ PROP-030 ไม่ใช่การเขียน PROP-030 ใหม่ PROP-030 Rev 1.0 รับและ apply แล้วเป็น spec v0.21.0 และคงความหมายทางประวัติศาสตร์ไว้ตามเดิมทุกตัวอักษร; ทะเบียนใน graph และ validator รับการแก้ไขนี้แล้ว และการเผยแพร่ในเอกสารเป็นรอบที่สองที่ค้างอยู่ของชุดการเปลี่ยนแปลงเดียวกัน ขอหมายเลขใหม่ผ่านทะเบียนร่าง ไม่ใช่เปลี่ยนเลขของ PROP-030
Evidence classes used throughout: A applied fact (in the graph or an applied document today) · F field evidence recorded in PROP-029 or PROP-030 · X assumption or open reading of this draft · R recommendation · D Product Owner decision of 19 Aug 2026. Where an A and an X disagree, the applied fact wins and the disagreement becomes an open question rather than a silent choice.ชั้นหลักฐานที่ใช้ทั้งฉบับ: A ข้อเท็จจริงที่ใช้จริง (อยู่ใน graph หรือเอกสารที่ใช้จริงวันนี้) · F หลักฐานหน้างานที่บันทึกใน PROP-029 หรือ PROP-030 · X ข้อสมมติหรือการอ่านที่ยังเปิดของร่างนี้ · R ข้อแนะนำ · D คำตัดสินของเจ้าของผลิตภัณฑ์ 19 ส.ค. 2569 เมื่อ A กับ X ขัดกัน ข้อเท็จจริงที่ใช้จริงชนะ และความขัดแย้งกลายเป็นคำถามเปิด ไม่ใช่การเลือกอย่างเงียบ
| Applied artifactสิ่งที่ใช้จริง | What it says today (verbatim in substance)วันนี้ระบุอะไร (ตรงตามสาระ) |
|---|---|
| CraneToken A | Entity in the transfer_station context, Thai เหรียญเครน, code format CT-###, attributes crane_token_id · transfer_station_id · token_no · transfer_truck_id · truck_unit · station_bill_id · issued_at · returned_at. Issued by the crane at load time; tells the station exit-weigh clerk which transfer unit received the farmer's cane; surrendered at station exit weigh; described as the station analog of the mill's coin pair.entity ในบริบท transfer_station ชื่อไทย เหรียญเครน รูปแบบรหัส CT-### แอตทริบิวต์ crane_token_id · transfer_station_id · token_no · transfer_truck_id · truck_unit · station_bill_id · issued_at · returned_at ออกโดยเครนตอนบรรทุก; บอกเสมียนชั่งออกของสถานีว่าหน่วยขนถ่ายตัวไหนรับอ้อยของชาวไร่; คืนตอนชั่งออกจากสถานี; อธิบายว่าเทียบเท่าเหรียญคู่ของโรงงาน |
| StationBill → CraneToken A | Relationship at cardinality 1 — 1..*: "every crane load onto a transfer unit issues a token; the token pins the unit for CCS attribution and is surrendered at station exit weigh (FR-175)". Note what this admits: one station bill can have SEVERAL tokens — which is why counting tokens can never be a way of counting cane (Section 18).ความสัมพันธ์ที่ cardinality 1 — 1..*: "ทุกการยกขึ้นหน่วยขนถ่ายออกเหรียญหนึ่งอัน; เหรียญตรึงหน่วยเพื่อการปันส่วน CCS และคืนตอนชั่งออกจากสถานี (FR-175)" สังเกตสิ่งที่ข้อนี้ยอมรับ: ใบชั่งสถานีหนึ่งใบมีเหรียญได้หลายอัน — จึงเป็นเหตุที่การนับเหรียญเป็นวิธีนับอ้อยไม่ได้เลย (ข้อ 18) |
| StationBill A | The station's ใบชั่งอ้อย: station_bill_id · transfer_station_id · delivery_no · farmer_tenant_id · quota_id · cane_type · gross/tare/net_weight_t · transfer_truck_id · cut_from_bill_id · status. The same statutory 4-ply carbonless form as the factory weighbridge note, numbered inside the station's prefix range (FR-179), the farmer settles on these station weights, it supports cut-and-reopen when the transfer truck fills mid-load (FR-176), and it travels to the mill in the truck's sub-delivery-note bundle and is surrendered at the factory weighbridge.ใบชั่งอ้อยของสถานี: station_bill_id · transfer_station_id · delivery_no · farmer_tenant_id · quota_id · cane_type · gross/tare/net_weight_t · transfer_truck_id · cut_from_bill_id · status เป็นแบบฟอร์มคาร์บอนเลส 4 สำเนาตามกฎหมายเดียวกันกับใบของห้องชั่งโรงงาน ออกเลขในช่วง prefix ของสถานี (FR-179) ชาวไร่ชำระบนน้ำหนักสถานีเหล่านี้ รองรับการตัดใบแล้วเปิดใบใหม่เมื่อรถขนถ่ายเต็มกลางการบรรทุก (FR-176) และเดินทางไปโรงงานในชุดใบชั่งย่อยของรถ และถูกยื่นที่ห้องชั่งโรงงาน |
| FR-179 A | One shared 7-digit delivery-number series per mill: 1–999,999 = factory weighbridge; each station holds a unique prefix NN (10–99) issuing NN×100,000+1 … NN×100,000+99,999, so a mill supports up to 90 stations. The station's note is the same statutory 4-ply form as the factory's. On mill arrival the transfer truck submits all farmer sub-delivery notes it carries together with its own note at the factory weighbridge.เลขที่ใบชั่งเป็นชุด 7 หลักชุดเดียวต่อโรงงาน: 1–999,999 = ห้องชั่งโรงงาน; แต่ละสถานีถือ prefix NN (10–99) ไม่ซ้ำ ออกเลข NN×100,000+1 … NN×100,000+99,999 โรงงานหนึ่งจึงรองรับได้ถึง 90 สถานี ใบชั่งของสถานีเป็นฟอร์ม 4 สำเนาตามกฎหมายแบบเดียวกับของโรงงาน เมื่อถึงโรงงาน รถขนถ่ายยื่นใบชั่งย่อยของชาวไร่ทุกใบที่พกมา พร้อมใบชั่งของรถเอง ที่ห้องชั่งโรงงาน |
| Ply routingเส้นทางสำเนา F | PROP-029 Section 2.6, the mill of record: white + pink → farmer, yellow travels with the transfer truck, blue stays at the station. A-36 residual (c) makes ply routing a per-mill configuration, and TransferStation carries a bill-series config for exactly that. The factory-side note routing observed at the same mill is white → farmer, yellow → factory, pink → regulator, blue → farmer association.PROP-029 ข้อ 2.6 โรงงานที่บันทึกไว้: ขาว + ชมพู → ชาวไร่, เหลืองไปกับรถขนถ่าย, ฟ้าเก็บที่สถานี ข้อตกค้าง (c) ของ A-36 ทำให้เส้นทางสำเนาเป็นค่าตั้งรายโรงงาน และ TransferStation เก็บ config ชุดบิลไว้เพื่อการนั้นพอดี เส้นทางสำเนาฝั่งโรงงานที่สังเกตที่โรงงานเดียวกันคือ ขาว → ชาวไร่, เหลือง → โรงงาน, ชมพู → ผู้กำกับ, ฟ้า → สมาคมชาวไร่ |
| A-36 note chainสายใบตาม A-36 A | The printed artifact at exit weigh is the statutory 4-ply carbonless delivery note (แบบ อ. 1 ใบรับอ้อย) on a multi-copy impact printer; a spoiled set re-runs whole at the bridge before the truck leaves; a ply lost later re-issues only at the mill cane office, marked COPY, never as a reprint; and the record, not the paper, is authoritative. Nothing prints at entry weigh.สิ่งที่พิมพ์ตอนชั่งออกคือใบส่งมอบคาร์บอนเลส 4 สำเนาตามกฎหมาย (แบบ อ. 1 ใบรับอ้อย) บนเครื่องพิมพ์กระทบหลายสำเนา; ชุดที่เสียต้องพิมพ์ใหม่ทั้งชุดที่ห้องชั่งก่อนรถออก; สำเนาที่หายภายหลังออกใหม่ได้ที่สำนักงานอ้อยของโรงงานเท่านั้น และประทับว่า COPY ไม่ใช่การพิมพ์ซ้ำ; และระเบียนมีอำนาจ ไม่ใช่กระดาษ ตอนชั่งเข้าไม่พิมพ์อะไรเลย |
| WF-70 A | Transfer-station intake, farmer side — four steps, not six: (1) weigh-in against the station's prefix range, (2) crane loads onto a transfer unit and issues CraneToken naming the unit, (3) exit weigh — surrender the token, record the loaded unit, print the 4-ply StationBill, with the failure path "token mismatch → hold at exit weigh, supervisor resolves", (4) mid-load full truck: cut the bill, truck weighs out and back in, new bill linked by cut_from_bill_id, event StationBillCut. Its SLA: the bill is printed at exit weigh before the farmer truck leaves.การรับอ้อยที่สถานีขนถ่าย ฝั่งชาวไร่ — สี่ขั้นตอน ไม่ใช่หก: (1) ชั่งเข้าโดยใช้ช่วง prefix ของสถานี (2) เครนบรรทุกขึ้นหน่วยขนถ่ายและออก CraneToken ที่ระบุหน่วย (3) ชั่งออก — คืนเหรียญ บันทึกหน่วยที่บรรทุก พิมพ์ StationBill 4 สำเนา โดยมีเส้นทางล้มเหลว "เหรียญไม่ตรง → กันไว้ที่ชั่งออก หัวหน้าชี้ขาด" (4) รถเต็มกลางการบรรทุก: ตัดใบ รถชั่งออกแล้วเข้าใหม่ ใบใหม่เชื่อมด้วย cut_from_bill_id event StationBillCut SLA ของมัน: พิมพ์ใบชั่งตอนชั่งออกก่อนรถชาวไร่ออกไป |
| WF-71 A | Station→mill delivery and haulage settlement. Step 1: the transfer-truck driver departs the station carrying the yellow ply plus EVERY farmer sub-delivery note loaded onto this truck, guarded by the FR-178 overweight approval. Bundle reconciliation happens in the factory weigh-in transaction; HaulageSettlement computes when the trip's exit weigh closes.การส่งเข้าโรงงานฝั่งสถานีและการชำระค่าขนส่ง ขั้นที่ 1: คนขับรถขนถ่ายออกจากสถานีโดยพกใบเหลืองพร้อมใบชั่งย่อยของชาวไร่ทุกใบที่บรรทุกขึ้นคันนี้ มีการอนุมัติน้ำหนักเกินตาม FR-178 เป็นด่าน การกระทบยอดชุดเอกสารเกิดขึ้นในรายการชั่งเข้าของโรงงาน; HaulageSettlement คำนวณเมื่อการชั่งออกของเที่ยวนั้นปิด |
| FR-175 A | "Crane-token CCS attribution": CraneToken links every farmer load to a specific transfer unit (mother/daughter); CCS attribution resolves through that link; the link is verifiable at station exit weigh. Entities named: CraneToken, TransferTruck."การปันส่วน CCS ด้วยเหรียญเครน": CraneToken เชื่อมการบรรทุกของชาวไร่ทุกครั้งกับหน่วยขนถ่ายเฉพาะตัว (แม่/ลูก); การปันส่วน CCS resolve ผ่านการเชื่อมนั้น; ตรวจการเชื่อมได้ตอนชั่งออกจากสถานี entity ที่ระบุ: CraneToken, TransferTruck |
| CCS attributionการปันส่วน CCS FA | PROP-029 and PROP-030 flow 4.1: a load takes the CCS of the transfer unit it was loaded onto, and every farmer truck loaded onto that unit shares its CCS — one value, shared, not divided. Direct-delivering อีแต๋น take the day-average CCS. Applied model: Delivery → QualityTest is 1 — 1, CCS is the government (สอน.) juice measurement delivered on a re-note and matched on the %N-### tag (FR-100), stored numeric(4,2), provisional then confirmed. A trailer (mother + daughter) yields two deliveries, two weigh sequences, two note sets in one trip.PROP-029 และ flow 4.1 ของ PROP-030: การบรรทุกใช้ค่า CCS ของหน่วยขนถ่ายที่ถูกบรรทุกขึ้น และรถชาวไร่ทุกคันที่บรรทุกขึ้นหน่วยนั้นใช้ค่า CCS เดียวกัน — ค่าเดียว ใช้ร่วมกัน ไม่ใช่หารกัน อีแต๋นที่ส่งตรงใช้ CCS เฉลี่ยของวัน โมเดลที่ใช้จริง: Delivery → QualityTest เป็น 1 — 1 CCS คือผลวัดน้ำคั้นของหน่วยงานรัฐ (สอน.) ที่ส่งมาบน re-note และจับคู่ด้วยแท็ก %N-### (FR-100) เก็บเป็น numeric(4,2) ชั่วคราวแล้วยืนยัน รถพ่วง (แม่ + ลูก) ให้ สองการส่งมอบ สองลำดับการชั่ง สองชุดใบ ในเที่ยวเดียว |
| NFR-57 A | Station offline-first operation: transfer-station surfaces run offline-first with pre-fetched reference data (quotas, policies, local number range), a 24:00 day cutoff, scheduled sync (default 2 h) with physical-media fallback, and full reconciliation on reconnect; ERP-connected stations stream in real time.การทำงานแบบ offline มาก่อนที่สถานี: ช่องทางใช้งานของสถานีขนถ่ายทำงานแบบ offline มาก่อน โดยมีข้อมูลอ้างอิงที่ดึงมาล่วงหน้า (โควตา นโยบาย ช่วงเลขในเครื่อง) ตัดวันเวลา 24:00 sync ตามรอบ (ค่าปกติ 2 h) พร้อมทางถอยเป็นสื่อกายภาพ และกระทบยอดทั้งหมดเมื่อกลับมาเชื่อมต่อ; สถานีที่ต่อ ERP ส่งข้อมูลทันที |
| FR-134 · FR-137 · FR-141 A | The gateway is the FACTORY's single allocator (FR-134: one allocator per factory, every local number space dispensed transactionally by the gateway alone). FR-137 puts the five factory station apps LAN-normal against that gateway, where "offline is not a mode". FR-141: when the gateway is down, number allocation hard-stops — readings buffer, no station dispenses numbers, and HA is ladder tier A-2 warm standby with operator-attended two-act promotion; automatic failover is out of scope. There is no applied station gateway at a transfer station and no applied automatic failover anywhere.gateway คือผู้จ่ายเลขรายเดียวของโรงงาน (FR-134: หนึ่งผู้จ่ายเลขต่อโรงงาน ทุกช่องเลขในพื้นที่จ่ายโดย gateway เท่านั้นแบบ transaction) FR-137 วาง station app ห้าตัวของโรงงาน ให้ทำงานบน LAN กับ gateway นั้นเป็นปกติ ซึ่ง "offline ไม่ใช่โหมด" FR-141: เมื่อ gateway ล่ม การจ่ายเลขหยุดตาย — ค่าที่อ่านได้บัฟเฟอร์ไว้ ไม่มีสถานีใดจ่ายเลข และ HA คือชั้น A-2 warm standby ที่ ผู้ปฏิบัติงานกดสองจังหวะ; การสลับอัตโนมัติ อยู่นอกขอบเขต ไม่มี station gateway ที่ใช้จริงที่สถานีขนถ่าย และไม่มีการสลับอัตโนมัติที่ใช้จริงที่ใดเลย |
| StationJournal A | The applied append-only per-station local journal (journal_id · station_client_id · seq · record_type · payload · idempotency_key · recorded_at · synced_at? · purge_after?): every captured record carries an idempotency key and replays losslessly to the gateway and onward. PDPA personal data, ordinary class, encrypted at rest on station and gateway.journal ในเครื่องรายสถานีแบบ append-only ที่ใช้จริง (journal_id · station_client_id · seq · record_type · payload · idempotency_key · recorded_at · synced_at? · purge_after?): ระเบียนที่เก็บทุกรายการพกคีย์กันซ้ำ และเล่นซ้ำได้โดยไม่สูญหายไปยัง gateway และต่อไป เป็นข้อมูลส่วนบุคคลตาม PDPA ชั้นปกติ เข้ารหัสขณะพักทั้งที่สถานีและที่ gateway |
| A-10 · NFR-33 A | Weighbridge weights are digitally captured from the government-calibrated certified scale — no override, no manual input, no software fallback. Manual weight entry does not exist; when the scale link is down, weighing halts.น้ำหนักห้องชั่งถูกเก็บแบบดิจิทัลจากตาชั่งที่รัฐสอบเทียบและรับรอง — ไม่มีการ override ไม่มีการคีย์มือ ไม่มีทางถอยทางซอฟต์แวร์ การคีย์น้ำหนักด้วยมือไม่มีอยู่; เมื่อสายตาชั่งขาด การชั่งหยุด |
| A-102 · NFR-65 A | The tenant wall is enforced by the database, forced, keyed on tenant_id; a read with no tenant context returns nothing. Everything shared behind the wall is a named seam in tenantIsolation.seams. Nothing resolves between tenants except the four mechanisms X1–X4 (consent grant · network relations · marketplace visibility · audited view-as), and none becomes transitive.กำแพง tenant บังคับโดยฐานข้อมูล แบบ forced โดยใช้คีย์ tenant_id; การอ่านที่ไม่มีบริบท tenant คืนค่าว่างเปล่า ทุกสิ่งที่แบ่งใช้อยู่หลังกำแพงเป็น seam ที่มีชื่อ ใน tenantIsolation.seams ไม่มีสิ่งใด resolve ระหว่าง tenant ได้ นอกจากสี่กลไก X1–X4 (consent grant · ความสัมพันธ์เครือข่าย · การมองเห็นในตลาด · view-as ที่ตรวจสอบได้) และไม่มีกลไกใดกลายเป็นแบบส่งทอด |
| Units and moneyหน่วยและเงิน A | Graph conventions: weights are kg integers; tonnes are display conversion only. Money is baht numeric(12,2) (A-43); rounding happens once, banker's, on the final total (A-13). IDs are ULIDs internally with human display codes per entity codeFormat. Time is stored UTC and displayed ICT.ธรรมนูญของ graph: น้ำหนักเป็นจำนวนเต็มกิโลกรัม; ตันเป็นการแปลงเพื่อแสดงเท่านั้น เงินเป็นบาท numeric(12,2) (A-43); ปัดครั้งเดียวแบบ banker's บนยอดสุดท้าย (A-13) id ภายในเป็น ULID พร้อมรหัสแสดงต่อคนตาม codeFormat ของแต่ละ entity เวลาเก็บเป็น UTC แสดงเป็น ICT |
| A-105 A | The quota account is the money boundary: settlement, deductions, recovery and the statutory note are per account, and nothing nets across accounts without a declared group. The station holds its own quota number, and the mill pays farmers through it (PROP-030 OQ-1, closed).บัญชีโควตาเป็นขอบเขตของเงิน: การชำระ การหัก การเรียกคืน และใบตามกฎหมาย เป็นรายบัญชี และไม่มีการหักกลบข้ามบัญชีโดยไม่มีกลุ่มที่ประกาศไว้ สถานีถือเลขโควตาของตัวเอง และโรงงานจ่ายชาวไร่ผ่านเลขนั้น (OQ-1 ของ PROP-030 ปิดแล้ว) |
| $versioning A | MAJOR = breaking model change — remove or rename an entity, attribute, capacity or surface, restructure relationships or the token contract. MINOR = additive capability. A rename that changes no structure, no cardinality, no token contract and no behaviour was admitted as a MINOR at v0.47.0 only with a permanent bidirectional crosswalk (FR-396). 1.0.0 is reserved for the first spec frozen against a shipped apps/ build.MAJOR = การเปลี่ยนโมเดลที่ทำลายความเข้ากันได้ — ลบหรือเปลี่ยนชื่อ entity แอตทริบิวต์ capacity หรือ surface ปรับโครงสร้างความสัมพันธ์หรือสัญญา token MINOR = ความสามารถส่วนเพิ่ม การเปลี่ยนชื่อที่ไม่เปลี่ยนโครงสร้าง cardinality สัญญา token และพฤติกรรม ถูกยอมให้เป็น MINOR ที่ v0.47.0 เฉพาะเมื่อมี crosswalk สองทางถาวร (FR-396) 1.0.0 สงวนไว้สำหรับ spec ฉบับแรกที่ตรึงกับ build ของ apps/ ที่ปล่อยแล้ว |
AF This section exists because Rev 0.1 let a digital manifest stand where an applied paper bundle already stands. Nothing below is new: it is the applied chain written out so that the digital records can be seen indexing it rather than replacing it. Ply routing is a per-mill configuration (A-36 residual (c)) held on TransferStation; the routing named here is the observed routing at the mill of record (PROP-029 Section 2.6), and a station configured differently routes differently without changing one digital rule.AF ข้อนี้มีอยู่เพราะ Rev 0.1 ปล่อยให้ใบกำกับดิจิทัลไปยืนแทนที่ที่ชุดกระดาษที่ใช้จริงยืนอยู่แล้ว ไม่มีอะไรด้านล่างเป็นของใหม่: เป็นสายที่ใช้จริงเขียนออกมาให้เห็นว่าระเบียนดิจิทัล ทำสารบัญ ให้มัน ไม่ใช่แทนมัน เส้นทางสำเนาเป็นค่าตั้งรายโรงงาน (ข้อตกค้าง (c) ของ A-36) เก็บบน TransferStation; เส้นทางที่ระบุที่นี่คือเส้นทางที่สังเกตได้ที่โรงงานที่บันทึกไว้ (PROP-029 ข้อ 2.6) และสถานีที่ตั้งค่าต่างกันก็ส่งสำเนาต่างกันโดยไม่เปลี่ยนกฎดิจิทัลข้อใดเลย
| Artifactเอกสาร | Statutory?ตามกฎหมาย? | Issued where · plies and who holds them · what travelsออกที่ใด · สำเนาและใครถือ · อะไรเดินทาง | Surrendered / scanned · how the digital record indexes itยื่น/สแกน · ระเบียนดิจิทัลทำสารบัญอย่างไร |
|---|---|---|---|
| StationBill | Yes — the A-36 4-ply formใช่ — ฟอร์ม 4 สำเนาตาม A-36 | Printed at the station exit weigh of the farmer's small truck, before that truck leaves (applied WF-70 SLA). Plies: white → farmer, pink → farmer, yellow → travels with the transfer truck, blue → stays at the station. One bill per intake; a mid-load cut produces a second bill linked by cut_from_bill_id (FR-176) and therefore a second yellow ply.พิมพ์ที่ การชั่งออกของรถเล็กของชาวไร่ที่สถานี ก่อนรถคันนั้นออกไป (SLA ของ WF-70 ที่ใช้จริง) สำเนา: ขาว → ชาวไร่, ชมพู → ชาวไร่, เหลือง → ไปกับรถขนถ่าย, ฟ้า → เก็บที่สถานี หนึ่งใบต่อการรับอ้อยหนึ่งครั้ง; การตัดใบกลางการบรรทุกให้ใบที่สองที่เชื่อมด้วย cut_from_bill_id (FR-176) จึงมีใบเหลืองใบที่สอง | The yellow ply is surrendered at the factory weighbridge inside the bundle of the unit its cane was lifted onto (FR-179, OQ-3). Digitally: every TransferLoadAllocation snapshots delivery_no, and the manifest lists every yellow ply expected in the bundle by that number, so the bundle can be checked without opening a screen per note.ใบเหลืองถูกยื่นที่ห้องชั่งโรงงาน ในชุดเอกสารของหน่วยที่อ้อยของมันถูกยกขึ้น (FR-179, OQ-3) ทางดิจิทัล: TransferLoadAllocation ทุกรายการ snapshot delivery_no ไว้ และใบกำกับแสดงใบเหลืองทุกใบที่คาดว่าจะอยู่ในชุดด้วยเลขนั้น จึงตรวจชุดเอกสารได้โดยไม่ต้องเปิดหน้าจอทีละใบ |
| TransferTruckNote | Yes — applied by FR-179 ("its own note"), one per unitใช่ — ใช้จริงตาม FR-179 ("ใบชั่งของรถเอง") หนึ่งใบต่อหนึ่งหน่วย | R One note per physical unit (OQ-3 closed): a mother and a daughter each carry their own note and their own bundle of source bills; a large single-body vehicle carries one of each. Each note carries the station's quota number — which is what tells the factory weighbridge which station the cane came from (PROP-030 flow 4.2). It travels with the driver together with the yellow plies. OQ-4 closed by Product Owner field decision: the issuing transfer station writes the note when that physical unit weighs out and departs, on the same statutory form drawn from the station's own existing delivery-note range inside the applied shared 7-digit namespace (FR-179), naming the station's mill quota account because the station is the delivery origin. The factory never issues, replaces or renumbers it — it receives and reconciles it.R หนึ่งใบต่อหนึ่งหน่วยกายภาพ (OQ-3 ปิดแล้ว): แม่และลูกแต่ละตัวพกใบของตัวเองและชุดใบต้นทางของตัวเอง; รถตัวถังเดี่ยวขนาดใหญ่พกอย่างละหนึ่ง ใบแต่ละใบพกเลขโควตาของสถานี — เป็นสิ่งที่บอกห้องชั่งโรงงานว่าอ้อยมาจากสถานีใด (flow 4.2 ของ PROP-030) เดินทางไปกับคนขับพร้อมใบเหลืองทั้งชุด OQ-4 ปิดแล้วตามคำตัดสินหน้างานของเจ้าของผลิตภัณฑ์: สถานีขนถ่ายที่ออกใบ เป็นผู้เขียนใบ เมื่อหน่วยกายภาพนั้นชั่งออกและออกเดินทาง บนฟอร์มตามกฎหมายชุดเดียวกัน ดึงจากช่วงเลขที่ใบชั่งเดิมของสถานีเอง ภายใน namespace 7 หลักร่วมที่ใช้จริง (FR-179) โดยระบุบัญชีโควตาของสถานีที่โรงงาน เพราะสถานีคือต้นทางการส่งมอบ โรงงานไม่เคยออก แทน หรือให้เลขใหม่ — โรงงานรับและกระทบยอด | Surrendered at the factory weighbridge with the bundle (FR-179). Digitally: TransferTruckNote is bound 1 — 1 to a unit load and carries note_delivery_no, station_quota_id_snap, dispatched_kg and its own expected_note_nos. One bundle is never shared across units.ยื่นที่ห้องชั่งโรงงานพร้อมชุดเอกสาร (FR-179) ทางดิจิทัล: TransferTruckNote ผูก 1 — 1 กับ unit load และพก note_delivery_no, station_quota_id_snap, dispatched_kg และ expected_note_nos ของตัวเอง ชุดเอกสารหนึ่งชุดไม่เคยถูกใช้ร่วมกันข้ามหน่วย |
| Factory exit-weigh noteใบชั่งออกของโรงงาน | Yes — applied, untouchedใช่ — ใช้จริง ไม่ถูกแตะ | The factory's own statutory note for the arriving delivery, printed at factory exit weigh on the same 4-ply chain, with its own per-mill ply routing. A trailer yields two deliveries and two note sets in one trip (applied). Nothing in this draft alters this artifact, its routing, its numbering or its printer.ใบตามกฎหมายของโรงงานเองสำหรับการส่งมอบที่มาถึง พิมพ์ตอนชั่งออกของโรงงานบนสาย 4 สำเนาเดียวกัน พร้อมเส้นทางสำเนารายโรงงานของตัวเอง รถพ่วงให้สองการส่งมอบและสองชุดใบในเที่ยวเดียว (ใช้จริง) ไม่มีสิ่งใดในร่างนี้เปลี่ยนเอกสารนี้ เส้นทางสำเนา การให้เลข หรือเครื่องพิมพ์ของมัน | Held and routed by the factory as applied. Digitally: ConsignmentReceipt (factory-owned) records the arrival and links the factory delivery and weigh ticket to the consignment through the typed cross-tenant reference of Section 12.โรงงานถือและส่งสำเนาตามที่ใช้จริง ทางดิจิทัล: ConsignmentReceipt (โรงงานเป็นเจ้าของ) บันทึกการมาถึงและเชื่อมการส่งมอบและใบชั่งของโรงงานเข้ากับ consignment ผ่านการอ้างอิงข้าม tenant ที่มีชนิดในข้อ 12 |
| TransferManifest | No — digital control recordไม่ — ระเบียนควบคุมดิจิทัล | D The authoritative digital mirror of the paper bundle and the transport record of the journey — non-statutory, and the only place the whole picture exists at once: the consignment, each unit load with its own unit note and its own expected source-note bundle (OQ-3), every allocation, and the station-certified dispatched tonnage per unit. It is what the destination factory reads before arrival (Section 12.1). Optional to print; if printed it is a control sheet marked as one, never a fifth ply and never a substitute for a note. It carries no signature line, satisfies no A-36 duty, and its absence stops nothing at a weighbridge.D กระจกเงาดิจิทัลที่มีอำนาจของชุดกระดาษ และระเบียนการขนส่งของการเดินทาง — ไม่ใช่เอกสารตามกฎหมาย และเป็นที่เดียวที่ภาพทั้งภาพอยู่พร้อมกัน: consignment, unit load แต่ละตัวพร้อมใบชั่งของหน่วยตัวเองและชุดใบต้นทางที่คาดว่าจะมีของตัวเอง (OQ-3) การจัดสรรทุกรายการ และ ตันที่ส่งออกรายหน่วยซึ่งสถานีรับรอง เป็นสิ่งที่โรงงานปลายทางอ่านก่อนการมาถึง (ข้อ 12.1) พิมพ์หรือไม่พิมพ์ก็ได้; หากพิมพ์ ถือเป็นใบควบคุมที่ระบุไว้เช่นนั้น ไม่ใช่สำเนาที่ห้า และไม่ใช่ของแทนใบใด ไม่มีช่องลงนาม ไม่ทำหน้าที่ตาม A-36 ใด และการไม่มีมันไม่หยุดอะไรที่ห้องชั่ง | Never surrendered. Digitally: it derives its lines and stores document_hash of what was rendered, so a printed control sheet can be proved to match the record; a reopen supersedes a version rather than editing it.ไม่เคยถูกยื่น ทางดิจิทัล: มัน derive บรรทัดของตัวเองและเก็บ document_hash ของสิ่งที่ render ไว้ ใบควบคุมที่พิมพ์จึงพิสูจน์ได้ว่าตรงกับระเบียน; การเปิดใหม่แทนที่ฉบับ ไม่ใช่แก้ทับฉบับเดิม |
| ID | Requirement — the document chainข้อกำหนด — สายเอกสาร |
|---|---|
| FR-H1 | The statutory bundle is preserved exactly. Every farmer sub-delivery note loaded onto a transfer truck, plus the transfer truck's own note, is surrendered at the factory weighbridge and reconciled against the factory weigh-in — unchanged from FR-179. No digital record is accepted in place of a note, and no note is withheld because a digital record exists.ชุดเอกสารตามกฎหมายคงไว้ทุกประการ ใบชั่งย่อยของชาวไร่ทุกใบที่บรรทุกขึ้นรถขนถ่าย พร้อมใบชั่งของรถขนถ่ายเอง ถูกยื่นที่ห้องชั่งโรงงานและกระทบยอดกับการชั่งเข้าของโรงงาน — ไม่เปลี่ยนจาก FR-179 ไม่มีระเบียนดิจิทัลใดถูกรับแทนใบ และไม่มีใบใดถูกกันไว้เพราะมีระเบียนดิจิทัลอยู่ |
| FR-H2 | The transfer truck's own note is a modelled object. TransferTruckNote is bound 1 — 1 to a consignment, stores the note's delivery number, the station quota number as printed and its issue time, and is the object the factory weighbridge reconciles the bundle against. A consignment may not reach departed without one.ใบชั่งของรถขนถ่ายเองเป็น object ในโมเดล TransferTruckNote ผูก 1 — 1 กับ consignment เก็บเลขที่ใบชั่งของใบนั้น เลขโควตาสถานีตามที่พิมพ์ และเวลาที่ออก และเป็น object ที่ห้องชั่งโรงงานใช้กระทบยอดชุดเอกสาร consignment ไปถึงสถานะ departed โดยไม่มีใบนี้ไม่ได้ |
| FR-H3 | The manifest is declared non-statutory. TransferManifest is a digital control record and index over allocations and existing notes. It is never surrendered, never a ply, never required by a weighbridge, and any printed copy is marked as a control sheet. A future proposal that wanted it to carry a statutory function would need a regulatory basis and would say so.ใบกำกับถูกประกาศว่าไม่ใช่เอกสารตามกฎหมาย TransferManifest เป็นระเบียนควบคุมและสารบัญดิจิทัลเหนือการจัดสรรและใบที่มีอยู่ ไม่เคยถูกยื่น ไม่ใช่สำเนา ไม่เป็นสิ่งที่ห้องชั่งต้องการ และสำเนาที่พิมพ์ทุกฉบับประทับว่าเป็นใบควบคุม ข้อเสนอในอนาคตที่ต้องการให้มันทำหน้าที่ตามกฎหมายต้องมีฐานทางกฎระเบียบและต้องพูดออกมา |
| FR-H4 | Bundle reconciliation is a stored factory-side record. At factory weigh-in the weighbridge records, per consignment: notes expected (from the manifest index), notes presented, notes missing and notes unexpected, each by delivery number, with the actor and time. A discrepancy is an exception with a named path (FR-H30) and never a silent accept; a missing ply follows the applied A-36 remedy — replacement only at the mill cane office marked COPY — and the record remains authoritative over the paper.การกระทบยอดชุดเอกสารเป็นระเบียนฝั่งโรงงานที่เก็บไว้ ที่การชั่งเข้าของโรงงาน ห้องชั่งบันทึกต่อ consignment: ใบที่ คาดว่าจะมี (จากสารบัญใบกำกับ) ใบที่ ยื่นมา ใบที่ ขาด และใบที่ เกินมา แต่ละใบตามเลขที่ใบชั่ง พร้อมผู้กระทำและเวลา ความไม่ตรงกันเป็นข้อยกเว้นที่มีเส้นทางระบุชื่อ (FR-H30) และไม่เคยเป็นการรับแบบเงียบ; สำเนาที่ขาดใช้ทางแก้ตาม A-36 ที่ใช้จริง — ออกใหม่ที่สำนักงานอ้อยของโรงงานเท่านั้น ประทับว่า COPY — และระเบียนยังมีอำนาจเหนือกระดาษ |
| Objectobject | Identity, keys and scopeอัตลักษณ์ คีย์ ขอบเขต | Cardinality and database invariantscardinality และข้อคงที่ที่ฐานข้อมูล |
|---|---|---|
| StationBill A | Applied, amended in one field only. Keys and attributes unchanged (station_bill_id · transfer_station_id · delivery_no · farmer_tenant_id · quota_id · cane_type · gross/tare/net · cut_from_bill_id · status). Retired: transfer_truck_id — the carrier is stated once, on the allocation; a second copy on the bill can contradict it after a pre-lift target switch or a truck substitution (H7, FR-H29, FR-H36). Added: station_operating_day (the captured station day, Section 12). Scope: the station's tenant.ใช้จริง แก้ฟิลด์เดียว คีย์และแอตทริบิวต์ไม่เปลี่ยน (station_bill_id · transfer_station_id · delivery_no · farmer_tenant_id · quota_id · cane_type · gross/tare/net · cut_from_bill_id · status) ปลด: transfer_truck_id — ผู้บรรทุกถูกระบุครั้งเดียวบนการจัดสรร; สำเนาที่สองบนใบชั่งขัดกับมันได้หลังการสลับหน่วยเป้าหมายก่อนยก หรือการเปลี่ยนรถ (H7, FR-H29, FR-H36) เพิ่ม: station_operating_day (วันทำการของสถานีตามที่เก็บ ข้อ 12) ขอบเขต: tenant ของสถานี | 1 — 0..1 LIVE allocation (0..* rows across supersessions). Invariants: applied UNIQUE (mill scope, delivery_no) stands; PARTIAL UNIQUE (station_bill_id) WHERE state = 'live' — one intake, one unit, one live allocation for the complete load (H12, FR-H35); the live allocated_kg equals net_weight in kg exactly — the tolerance is 0 kg (FR-H7, H18); a bill with no live allocation at manifest close is an exception, not an error to be hidden; the applied cut pair keeps its audit link to one physical arrival, and each bill of that pair is its own intake with its own single lift.1 — 0..1 ที่ใช้งาน (0..* แถวเมื่อรวมการแทนที่) ข้อคงที่: UNIQUE (ขอบเขตโรงงาน, delivery_no) ที่ใช้จริงยังยืน; PARTIAL UNIQUE (station_bill_id) WHERE state = 'live' — หนึ่งการรับอ้อย หนึ่งหน่วย หนึ่งการจัดสรรที่ใช้งานสำหรับการบรรทุกทั้งคัน (H12, FR-H35); allocated_kg ที่ใช้งานเท่ากับ net_weight เป็นกิโลกรัมพอดี — ค่าเผื่อเป็น 0 กก. (FR-H7, H18); ใบที่ไม่มีการจัดสรรที่ใช้งานตอนปิดใบกำกับเป็นข้อยกเว้น ไม่ใช่ข้อผิดพลาดที่จะซ่อน; คู่ใบที่ตัดคงการเชื่อมเพื่อตรวจสอบไปยังการมาถึงทางกายภาพเดียว และใบแต่ละใบในคู่นั้นเป็นการรับอ้อยของตัวเองที่มีการยกของตัวเองครั้งเดียว |
| TransferConsignment D | The transport journey from station to factory. consignment_id (ULID, internal) · consignment_ref (typed operational reference, Section 6) · transfer_station_id · tenant_id · mill_id (destination reference) · contractor_id · transfer_truck_id · truck_note_id · season_id · station_operating_day · departed_at? · driver_ref? · route_ref? · eta_at? · eta_source · eta_as_of? · eta_state (fresh | stale | unavailable) · state. Scope: the station's tenant only; the destination mill is a reference, never a co-owner (A-102). No factory field lives here — arrival, weights, tipping and CCS are the factory's own facts (Section 12).การเดินทางขนส่งจากสถานีไปโรงงาน consignment_id (ULID ภายใน) · consignment_ref (การอ้างอิงเชิงปฏิบัติการที่มีชนิด ข้อ 6) · transfer_station_id · tenant_id · mill_id (การอ้างถึงปลายทาง) · contractor_id · transfer_truck_id · truck_note_id · season_id · station_operating_day · departed_at? · driver_ref? · route_ref? · eta_at? · eta_source · eta_as_of? · eta_state (fresh | stale | unavailable) · state ขอบเขต: tenant ของสถานีเท่านั้น; โรงงานปลายทางเป็น reference ไม่ใช่เจ้าของร่วม (A-102) ไม่มีฟิลด์ของโรงงานอยู่ที่นี่ — การมาถึง น้ำหนัก การเท และ CCS เป็นข้อเท็จจริงของโรงงานเอง (ข้อ 12) | 1 — 1..* unit loads · 1 — 1..* unit notes (one per unit, OQ-3) · 1 — 0..1 open manifest · 1 — 0..1 receipt (factory-side). Invariants: UNIQUE (tenant_id, transfer_station_id, consignment_ref, season_id); cannot reach departed with zero unit loads, no closed manifest or no truck note; departed_at is written once.1 — 1..* unit load · 1 — 1..* ใบชั่งของหน่วย (หนึ่งใบต่อหน่วย OQ-3) · 1 — 0..1 ใบกำกับที่เปิด · 1 — 0..1 ใบรับ (ฝั่งโรงงาน) ข้อคงที่: UNIQUE (tenant_id, transfer_station_id, consignment_ref, season_id); ไปถึง departed ไม่ได้หากไม่มี unit load ไม่มีใบกำกับที่ปิด หรือไม่มีใบชั่งของรถ; departed_at เขียนครั้งเดียว |
| TransferUnitLoad D | What one physical unit carries within the consignment. unit_load_id · consignment_id · tenant_id · transfer_truck_id · truck_unit (the applied designation: mother | daughter | single) · unit_plate_snap · unit_seq · capacity_kg? · allocated_total_kg (derived) · sealed_at? · state. Factory figures — unit net weight, CCS — are not columns here; they are read across the seam from the factory's own facts (Section 12).สิ่งที่หน่วยกายภาพหนึ่งตัวบรรทุกภายใน consignment unit_load_id · consignment_id · tenant_id · transfer_truck_id · truck_unit (การระบุที่ใช้จริง: แม่ | ลูก | เดี่ยว) · unit_plate_snap · unit_seq · capacity_kg? · allocated_total_kg (derive) · sealed_at? · state ตัวเลขของโรงงาน — น้ำหนักสุทธิรายหน่วย CCS — ไม่ใช่คอลัมน์ที่นี่; อ่านข้าม seam จากข้อเท็จจริงของโรงงานเอง (ข้อ 12) | 1 — 1..* allocations. Invariants: UNIQUE (consignment_id, truck_unit, unit_seq); a unit load belongs to exactly one consignment and never moves (a change is a new unit load plus superseding allocations, FR-H28); allocated_total_kg is derived from live allocations only and is never written by hand.1 — 1..* การจัดสรร ข้อคงที่: UNIQUE (consignment_id, truck_unit, unit_seq); unit load เป็นของ consignment เดียวพอดีและไม่ย้ายเลย (การเปลี่ยนคือ unit load ใหม่บวกการจัดสรรที่แทนที่ FR-H28); allocated_total_kg derive จากการจัดสรรที่ใช้งานเท่านั้น และไม่เคยเขียนด้วยมือ |
| TransferLoadAllocation D | The authoritative digital binding. allocation_id · tenant_id · transfer_station_id · unit_load_id · station_bill_id · delivery_no_snap · allocated_kg (integer) · qty_basis (full_delivery | legacy_quantity_unknown — the split bases of Rev 0.2 are withdrawn, H12) · target_confirmed_at · target_switch_count · loaded_at · station_operating_day · crane_id · operator_id · role_snap · device_id · local_seq · idempotency_key · evidence_ref? · state · supersedes_allocation_id? · closure_reason? · source_crane_token_no? (migration provenance only; no artifact reference exists — H13).การผูกดิจิทัลที่มีอำนาจ allocation_id · tenant_id · transfer_station_id · unit_load_id · station_bill_id · delivery_no_snap · allocated_kg (จำนวนเต็ม) · qty_basis (full_delivery | legacy_quantity_unknown — ถอนฐานการแบ่งของ Rev 0.2 ตาม H12) · target_confirmed_at · target_switch_count · loaded_at · station_operating_day · crane_id · operator_id · role_snap · device_id · local_seq · idempotency_key · evidence_ref? · state · supersedes_allocation_id? · closure_reason? · source_crane_token_no? (ที่มาสำหรับการย้ายข้อมูลเท่านั้น; ไม่มีการอ้างถึง artifact — H13) | 1 — 1 bill · 1 — 1 unit load. Invariants, all implementable: every business column is immutable after insert; the only mutable columns are the closure triple state · closed_at · closure_reason, which move once, one way, live → superseded | voided, in the same transaction that inserts the successor (a database trigger refuses any other update). PARTIAL UNIQUE (station_bill_id) WHERE state = 'live' — the decided invariant: one intake never carries two live allocations (H12, FR-H35), which subsumes the weaker (unit_load_id, station_bill_id) pair. UNIQUE (tenant_id, transfer_station_id, station_client_id, idempotency_key). allocated_kg > 0 except where qty_basis = legacy_quantity_unknown, which is NULL and blocks attribution (Section 18).1 — 1 ใบชั่ง · 1 — 1 unit load ข้อคงที่ ทำได้จริงทั้งหมด: คอลัมน์ทางธุรกิจทุกคอลัมน์ ไม่เปลี่ยนหลัง insert; คอลัมน์ที่เปลี่ยนได้มีเพียงสามตัวของการปิด state · closed_at · closure_reason ซึ่งขยับ ครั้งเดียว ทางเดียว live → superseded | voided ใน transaction เดียวกับที่ insert รายการสืบทอด (trigger ที่ฐานข้อมูลปฏิเสธการ update อย่างอื่น) PARTIAL UNIQUE (station_bill_id) WHERE state = 'live' — ข้อคงที่ที่ตัดสินแล้ว: การรับอ้อยหนึ่งครั้งไม่เคยพกการจัดสรรที่ใช้งานสองรายการ (H12, FR-H35) ซึ่งครอบคลุมคู่ (unit_load_id, station_bill_id) ที่อ่อนกว่าไว้แล้ว UNIQUE (tenant_id, transfer_station_id, station_client_id, idempotency_key) allocated_kg > 0 เว้นกรณี qty_basis = legacy_quantity_unknown ซึ่งเป็น NULL และกั้นการปันส่วน (ข้อ 18) |
| TransferTruckNote R | The transfer unit's own statutory delivery note as an object — one note per physical unit, never one per trip (OQ-3 closed, H14): truck_note_id · tenant_id · transfer_station_id · unit_load_id (the note belongs to one physical unit — OQ-3 closed) · consignment_id (its journey) · note_delivery_no (the printed 7-digit number, stored as text) · dispatched_kg (station-certified weigh-out of that unit) · expected_note_nos (the source bills bundled with this note) · station_quota_id_snap · issued_at · station_operating_day · ply_routing_snap · status. It holds the station-certified dispatched weight of its own unit and nothing of the factory's: the factory's figures are the factory's own facts (Section 12).ใบชั่งตามกฎหมายของหน่วยขนถ่ายเองในฐานะ object — หนึ่งใบต่อหนึ่งหน่วยกายภาพ ไม่ใช่หนึ่งใบต่อเที่ยว (OQ-3 ปิดแล้ว, H14): truck_note_id · tenant_id · transfer_station_id · unit_load_id (ใบเป็นของหน่วยกายภาพหนึ่งตัว — OQ-3 ปิดแล้ว) · consignment_id (การเดินทางของมัน) · note_delivery_no (เลข 7 หลักที่พิมพ์ เก็บเป็น ข้อความ) · dispatched_kg (น้ำหนักชั่งออกของหน่วยนั้นที่สถานีรับรอง) · expected_note_nos (ใบต้นทางที่รวมอยู่ในชุดของใบนี้) · station_quota_id_snap · issued_at · station_operating_day · ply_routing_snap · status เก็บน้ำหนักที่ส่งออกของหน่วยตัวเองซึ่งสถานีรับรอง และไม่เก็บค่าของโรงงานเลย: ค่าของโรงงานเป็นข้อเท็จจริงของโรงงานเอง (ข้อ 12) | 1 — 1 unit load (so 1 — 1..* per consignment: a mother and a daughter carry two notes, a single large body carries one). Invariants: UNIQUE (unit_load_id); UNIQUE (mill scope, note_delivery_no) — the same applied namespace uniqueness as any delivery note; the number is stored exactly as printed with leading zeros significant; the note is never renumbered and a spoiled set re-runs whole under A-36.1 — 1 unit load (จึงเป็น 1 — 1..* ต่อ consignment: แม่และลูกพกสองใบ ตัวถังใหญ่เดี่ยวพกหนึ่งใบ) ข้อคงที่: UNIQUE (unit_load_id); UNIQUE (ขอบเขตโรงงาน, note_delivery_no) — ความไม่ซ้ำของ namespace ที่ใช้จริงเดียวกับใบชั่งใด ๆ; เก็บเลขตามที่พิมพ์ทุกตัวอักษร เลขศูนย์นำมีความหมาย; ใบไม่เคยถูกให้เลขใหม่ และชุดที่เสียพิมพ์ใหม่ทั้งชุดตาม A-36 |
| TransferManifest D | The non-statutory control record and index (Section 4): manifest_id · tenant_id · consignment_id · manifest_ref · manifest_version · station_operating_day · rendered_at · closed_at? · closed_by? · reopen_reason? · supersedes_manifest_id? · line_count · allocated_total_kg · dispatched_kg_by_unit (station-certified, per unit) · unit_note_nos · expected_note_nos_by_unit · document_hash · state.ระเบียนควบคุมและสารบัญที่ ไม่ใช่เอกสารตามกฎหมาย (ข้อ 4): manifest_id · tenant_id · consignment_id · manifest_ref · manifest_version · station_operating_day · rendered_at · closed_at? · closed_by? · reopen_reason? · supersedes_manifest_id? · line_count · allocated_total_kg · dispatched_kg_by_unit (สถานีรับรอง รายหน่วย) · unit_note_nos · expected_note_nos_by_unit · document_hash · state | 1 — 1 consignment per version. Invariants: UNIQUE (consignment_id, manifest_version) and PARTIAL UNIQUE (consignment_id) WHERE state = 'open' — at most one open version, every closed version retained with its hash; manifest_version increments by one on each reopen; closing requires zero blocking exceptions or a recorded override.1 — 1 consignment ต่อฉบับ ข้อคงที่: UNIQUE (consignment_id, manifest_version) และ PARTIAL UNIQUE (consignment_id) WHERE state = 'open' — เปิดได้ไม่เกินหนึ่งฉบับ ฉบับที่ปิดทุกฉบับเก็บไว้พร้อม hash; manifest_version เพิ่มขึ้นหนึ่งทุกครั้งที่เปิดใหม่; การปิดต้องไม่มีข้อยกเว้นที่กั้นอยู่ หรือมีการ override ที่บันทึกไว้ |
| StationNumberBlock D | The station's own register of the controlled delivery-number block Cane pre-allocated to it — a non-statutory control record, not a second allocator (H8, OQ-7 closed): block_id · tenant_id · transfer_station_id · mill_id (the namespace the numbers belong to) · station_prefix (the applied NN) · range_from · range_to (stored as printed, text, leading zeros significant) · range_epoch (the unique range identifier and version) · valid_from · valid_to · owner_station_client_id? (where a block is bound to one client) · issued_by · issued_at · next_number (the durable local cursor) · last_issued_at · supersedes_block_id? · revocation_reason? · state. Scope: the station's tenant. It dispenses nothing to anyone else and asks the factory gateway for nothing (FR-H49).ทะเบียนของสถานีเองสำหรับบล็อกเลขที่ใบชั่งที่ควบคุมซึ่ง Cane จ่ายล่วงหน้าให้ — เป็นระเบียนควบคุมที่ไม่ใช่เอกสารตามกฎหมาย ไม่ใช่ผู้จ่ายเลขตัวที่สอง (H8, OQ-7 ปิดแล้ว): block_id · tenant_id · transfer_station_id · mill_id (namespace ที่เลขสังกัด) · station_prefix (NN ที่ใช้จริง) · range_from · range_to (เก็บตามที่พิมพ์ เป็นข้อความ เลขศูนย์นำมีความหมาย) · range_epoch (ตัวระบุช่วงและเวอร์ชันที่ไม่ซ้ำ) · valid_from · valid_to · owner_station_client_id? (เมื่อบล็อกผูกกับเครื่องเดียว) · issued_by · issued_at · next_number (เคอร์เซอร์ในเครื่องที่คงทน) · last_issued_at · supersedes_block_id? · revocation_reason? · state ขอบเขต: tenant ของสถานี มันไม่จ่ายเลขให้ใครอื่น และไม่ขออะไรจาก gateway ของโรงงาน (FR-H49) | 1 station — 0..* blocks, at most one active block per (transfer_station_id, station_client_id). Invariants: UNIQUE (mill_id, range_epoch) and UNIQUE (mill_id, range_from, range_to, range_epoch); issued ranges of one mill namespace may not overlap across live epochs; next_number advances monotonically and durably and is never decremented, reset or edited; a number issued outside [range_from, range_to], outside [valid_from, valid_to], from a superseded or revoked epoch, or by a client that does not own the block, is refused (FR-H51); a block is superseded, never edited.1 สถานี — 0..* บล็อก โดยมีบล็อก active ได้มากที่สุดหนึ่งชุดต่อ (transfer_station_id, station_client_id) ข้อคงที่: UNIQUE (mill_id, range_epoch) และ UNIQUE (mill_id, range_from, range_to, range_epoch); ช่วงที่ออกใน namespace ของโรงงานหนึ่ง ทับซ้อนกันไม่ได้ ข้าม epoch ที่ยังใช้อยู่; next_number เดินหน้าทางเดียวและคงทน ไม่เคยถอยหลัง รีเซ็ต หรือถูกแก้; เลขที่ออกนอก [range_from, range_to] นอก [valid_from, valid_to] จาก epoch ที่ถูกแทนที่หรือถูกเพิกถอน หรือโดยเครื่องที่ไม่ได้เป็นเจ้าของบล็อก ถูกปฏิเสธ (FR-H51); บล็อกถูกแทนที่ ไม่เคยถูกแก้ |
| ConsignmentReceipt R | Factory-owned arrival record — the object that keeps the factory out of the station's rows: receipt_id · tenant_id (the mill) · mill_id · consignment_ref_ext (the typed cross-tenant reference, Section 12) · arrived_at · mill_crushing_day_id · outcome (received | refused) · refusal_reason? · actor_id.ระเบียนการมาถึงที่ โรงงานเป็นเจ้าของ — object ที่กันโรงงานออกจากแถวของสถานี: receipt_id · tenant_id (โรงงาน) · mill_id · consignment_ref_ext (การอ้างอิงข้าม tenant ที่มีชนิด ข้อ 12) · arrived_at · mill_crushing_day_id · outcome (received | refused) · refusal_reason? · actor_id | 1 — 1..* UnitReceipt rows — one per arriving physical unit, each carrying that unit's unit_note_no_snap, its own factory delivery_id and weigh_ticket_id, its own mill_crushing_day_id as the factory assigns it (FR-H45), its own gross, tare and net, its own bundle_recon_id and its own CCS reference (a trailer is two rows, a large single body is one, as applied and as OQ-3 decides). The consignment-level row carries arrival, refusal and logistics facts and no measurement. Invariants: written only by the factory tenant; references the station's consignment and never writes it; refusal is recorded, never a deletion; no station row is mutated from this side, ever (NFR-H4).1 — 1..* แถว UnitReceipt — หนึ่งแถวต่อหนึ่งหน่วยกายภาพที่มาถึง แต่ละแถวพก unit_note_no_snap ของหน่วยนั้น delivery_id และ weigh_ticket_id ของโรงงานของตัวเอง mill_crushing_day_id ของตัวเองตามที่โรงงานกำหนด (FR-H45) น้ำหนักรวม รถเปล่า และสุทธิของตัวเอง bundle_recon_id ของตัวเอง และการอ้างถึง CCS ของตัวเอง (รถพ่วงเป็นสองแถว ตัวถังเดี่ยวขนาดใหญ่เป็นหนึ่งแถว ตามที่ใช้จริงและตามที่ OQ-3 ตัดสิน) แถวระดับ consignment พกข้อเท็จจริงการมาถึง การปฏิเสธ และโลจิสติกส์ และไม่พกการวัดใด ข้อคงที่: เขียนโดย tenant ของโรงงานเท่านั้น; อ้างถึง consignment ของสถานีและไม่เคยเขียนมัน; การปฏิเสธถูกบันทึก ไม่ใช่การลบ; ไม่มีแถวของสถานีถูกเปลี่ยนจากฝั่งนี้ ไม่ว่าเมื่อใด (NFR-H4) |
| ID | Requirement — the binding and its quantityข้อกำหนด — การผูกและปริมาณของมัน |
|---|---|
| FR-H5 | The allocation is the authoritative link. A farmer's intake is bound to the transfer unit that carried it by a TransferLoadAllocation and by nothing else. No physical artifact, no paper and no denormalised column is authoritative for that link, and no attribution, settlement or report may resolve it another way. Because the load is lifted whole (H12), that binding is one live allocation for the complete intake.การจัดสรรคือการเชื่อมที่มีอำนาจ การรับอ้อยของชาวไร่ผูกกับหน่วยขนถ่ายที่บรรทุกมันด้วย TransferLoadAllocation และไม่มีอย่างอื่น ไม่มี artifact กายภาพ กระดาษ หรือคอลัมน์ที่ทำสำเนาข้อมูลใดมีอำนาจต่อการเชื่อมนั้น และไม่มีการปันส่วน การชำระ หรือรายงานใด resolve มันด้วยวิธีอื่น เพราะการบรรทุกถูกยกทั้งคัน (H12) การผูกนั้นจึงเป็นการจัดสรรที่ใช้งานหนึ่งรายการสำหรับการรับอ้อยทั้งครั้ง |
| FR-H6 | Quantity: unit, precision, scale and rounding. allocated_kg is an integer number of kilograms — the applied weight convention, so there is no scale to choose, no decimal to round and no floating point anywhere. Tonnes appear only in display, converted at 3 decimal places. A quantity is written by the loading act or derived from a station weight in kg; it is never derived from a count of allocations, tokens or notes.ปริมาณ: หน่วย ความละเอียด สเกล และการปัด allocated_kg เป็น จำนวนเต็มกิโลกรัม — ตามธรรมนูญน้ำหนักที่ใช้จริง จึงไม่มีสเกลให้เลือก ไม่มีทศนิยมให้ปัด และไม่มี floating point ที่ใดเลย ตันปรากฏเฉพาะในการแสดง แปลงที่ทศนิยม 3 ตำแหน่ง ปริมาณถูกเขียนโดยการกระทำบรรทุก หรือ derive จากน้ำหนักสถานีเป็นกิโลกรัม; ไม่เคย derive จากการนับการจัดสรร เหรียญ หรือใบชั่ง |
| FR-H7 | The tolerance is zero, fixed, and not configurable. D Confirmed Product Owner decision, 20 Aug 2026, closing OQ-9. The allocation tolerance is exactly 0 kg. There is no mill-level value, no station-level override, no effective-dated or versioned configurable tolerance and no discretionary exception; the live allocated_kg against one bill must equal that bill's certified station net_weight in kilograms exactly, and the invariant is a database equality rather than a policy setting. The mill-level, effective-dated, versioned tolerance proposed in Rev 0.2 and the tolerance_policy_version stamp on every allocation are withdrawn: a configurable tolerance is a place where a mismatch can be absorbed instead of seen, and there is nothing here to absorb — one intake, lifted whole, onto one unit (H12, H18). A non-zero difference is never accepted and reconciled later, never turned into a second allocation and never rounded away (FR-H60, FR-H61).ค่าเผื่อเป็นศูนย์ ตายตัว และตั้งค่าไม่ได้ D คำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ 20 ส.ค. 2569 ปิด OQ-9 ค่าเผื่อการจัดสรรเป็น 0 กก. พอดี ไม่มีค่าระดับโรงงาน ไม่มีการ override ระดับสถานี ไม่มีค่าเผื่อที่ตั้งได้ตามช่วงวันหรือมีเวอร์ชัน และไม่มีข้อยกเว้นตามดุลพินิจ; allocated_kg ที่ใช้งานต่อใบชั่งหนึ่งใบต้องเท่ากับ net_weight ที่สถานีรับรองของใบนั้นเป็นกิโลกรัมพอดี และข้อคงที่นี้เป็นความเท่ากันที่ฐานข้อมูล ไม่ใช่ค่าตั้งเชิงนโยบาย ค่าเผื่อระดับโรงงานที่มีผลตามช่วงวันและมีเวอร์ชันที่ Rev 0.2 เสนอ และตรา tolerance_policy_version บนการจัดสรรทุกรายการ ถูกถอน: ค่าเผื่อที่ตั้งได้คือที่ที่ความไม่ตรงกันถูกกลบแทนที่จะถูกเห็น และที่นี่ไม่มีอะไรให้กลบ — หนึ่งการรับอ้อย ยกทั้งคัน ขึ้นหนึ่งหน่วย (H12, H18) ส่วนต่างที่ไม่เป็นศูนย์ ไม่เคย ถูกรับไว้แล้วกระทบยอดภายหลัง ไม่เคยกลายเป็นการจัดสรรรายการที่สอง และไม่เคยถูกปัดทิ้ง (FR-H60, FR-H61) |
| FR-H60 | The quantity is populated automatically, and no operator may type it. D On the loading act the platform writes allocated_kg from the certified station net_weight of the bound StationBill, in integer kilograms, in the same transaction. The operator's only input is the target physical unit (FR-H36). There is no field, no keypad, no adjustment control and no API parameter by which a person may type, estimate, round, divide or adjust the quantity — on any surface, in any role, in any degraded mode — and an attempt is refused with alloc.err.manual_quantity_refused. Certified weights themselves remain captured directly from the certified scale under A-10 and NFR-33 and are never manually entered or reconstructed; when the scale link is down, weighing halts and no intake exists to allocate.ปริมาณถูกเติมอัตโนมัติ และไม่มีผู้ปฏิบัติงานคนใดพิมพ์ได้ D เมื่อเกิดการกระทำบรรทุก แพลตฟอร์มเขียน allocated_kg จาก net_weight ที่สถานีรับรองของ StationBill ที่ผูกอยู่ เป็นจำนวนเต็มกิโลกรัม ใน transaction เดียวกัน สิ่งที่ผู้ปฏิบัติงานป้อนมีอย่างเดียวคือหน่วยกายภาพเป้าหมาย (FR-H36) ไม่มีฟิลด์ ไม่มีแป้นตัวเลข ไม่มีตัวควบคุมการปรับ และไม่มีพารามิเตอร์ API ที่คนจะพิมพ์ ประมาณ ปัด หาร หรือปรับปริมาณได้ — บนหน้าจอใด บทบาทใด หรือโหมดถดถอยใด — และความพยายามนั้นถูกปฏิเสธด้วย alloc.err.manual_quantity_refused น้ำหนักที่รับรองเองยังถูกเก็บตรงจากตาชั่งที่รับรองตาม A-10 และ NFR-33 และไม่เคยถูกคีย์ด้วยมือหรือประกอบขึ้นใหม่; เมื่อสายตาชั่งขาด การชั่งหยุด และไม่มีการรับอ้อยให้จัดสรร |
| FR-H61 | A mismatch blocks, and recovery corrects the source. D If allocated_kg and the bill's certified net weight do not match exactly, the platform blocks the allocation and blocks manifest completion for that consignment and raises an auditable exception naming the bill, the unit, both figures, the difference in kilograms, the device, the operator and the captured time (alloc.err.quantity_mismatch, mft.err.quantity_mismatch_blocking). Recovery is a correction of the authoritative source record or of the certified-scale integration, followed by a new superseding allocation where one is appropriate. It is never a tolerance, a silent reconciliation, a manual override, a rounding, or a second live allocation, and no role — supervisor included — may release the block by accepting the difference.ความไม่ตรงกันกั้นไว้ และการกู้คืนคือแก้ที่ต้นทาง D หาก allocated_kg กับน้ำหนักสุทธิที่รับรองของใบไม่ตรงกันพอดี แพลตฟอร์มกั้นการจัดสรรและกั้นการปิดใบกำกับของ consignment นั้น และยกข้อยกเว้นที่ตรวจสอบได้ ระบุใบ หน่วย ตัวเลขทั้งสอง ส่วนต่างเป็นกิโลกรัม อุปกรณ์ ผู้ปฏิบัติงาน และเวลาที่เก็บ (alloc.err.quantity_mismatch, mft.err.quantity_mismatch_blocking) การกู้คืนคือการแก้ระเบียนต้นทางที่มีอำนาจหรือแก้การเชื่อมต่อตาชั่งที่รับรอง แล้วจึงมีการจัดสรรใหม่ที่แทนที่เมื่อเหมาะสม ไม่เคย เป็นค่าเผื่อ การกระทบยอดเงียบ ๆ การ override ด้วยมือ การปัดเศษ หรือการจัดสรรที่ใช้งานรายการที่สอง และไม่มีบทบาทใด — รวมหัวหน้าสถานี — ปลดการกั้นด้วยการยอมรับส่วนต่างได้ |
| FR-H62 | The zero tolerance absorbs nothing downstream. D The allocation equality is a station-internal invariant between one bill and one allocation. It is not a device for absorbing station-to-factory scale variance, physical transfer loss, moisture change, rounding or certified-scale differences between two calibrated instruments. Those remain separate downstream facts and stay visible under the applied station-versus-factory weight reconciliation of Section 10 and the applied transfer-loss policy — four figures that are compared and never netted into one (FR-H15). A design that quietly widened the allocation equality to make a downstream difference disappear would be hiding the very number the loss policy exists to see, and is refused.ค่าเผื่อศูนย์ไม่กลบสิ่งใดปลายทาง D ความเท่ากันของการจัดสรรเป็นข้อคงที่ภายในสถานีระหว่างใบหนึ่งใบกับการจัดสรรหนึ่งรายการ มันไม่ใช่เครื่องมือกลบส่วนต่างของตาชั่งสถานีกับโรงงาน การสูญหายทางกายภาพจากการขนถ่าย ความชื้นที่เปลี่ยน การปัดเศษ หรือส่วนต่างระหว่างตาชั่งที่รับรองสองเครื่อง สิ่งเหล่านั้นยังเป็นข้อเท็จจริงปลายทางที่แยกกัน และยังมองเห็นได้ภายใต้การกระทบยอดน้ำหนักสถานีเทียบโรงงานที่ใช้จริงในข้อ 10 และนโยบายการสูญหายขนถ่ายที่ใช้จริง — ตัวเลขสี่ค่าที่ถูกเทียบกัน และไม่เคยถูกหักกลบเป็นค่าเดียว (FR-H15) การออกแบบที่ขยายความเท่ากันของการจัดสรรอย่างเงียบ ๆ เพื่อให้ส่วนต่างปลายทางหายไป คือการซ่อนตัวเลขที่นโยบายการสูญหายมีไว้เพื่อเห็น และถูกปฏิเสธ |
| Identifierตัวระบุ | Namespace, form and who allocates itnamespace รูปแบบ และใครจ่ายเลข |
|---|---|
| StationBill.delivery_no A | Unchanged. The applied 7-digit series inside the station's prefix range, allocated from the station's pre-fetched local range (NFR-57), stored as text with leading zeros significant, printed on the statutory form, and unique in the mill's namespace.ไม่เปลี่ยน ชุดเลข 7 หลักที่ใช้จริงในช่วง prefix ของสถานี จ่ายจากช่วงเลขในเครื่องที่ดึงมาล่วงหน้า (NFR-57) เก็บเป็นข้อความโดยเลขศูนย์นำมีความหมาย พิมพ์บนฟอร์มตามกฎหมาย และไม่ซ้ำใน namespace ของโรงงาน |
| TransferTruckNote.note_delivery_no R | Decided: the issuing station's own applied series (OQ-4 closed, Product Owner field decision). The station issues the note when the physical unit weighs out, drawing a number from its own existing statutory delivery-note range inside the applied shared 7-digit namespace — the same range its StationBill numbers come from, so a unit note and a farmer note are distinguished by what the record says they are and never by a separate number space. Exactly one note per physical unit: a mother and a daughter each take their own number; a large single-body vehicle takes one. The note names the station's mill quota account. The factory never issues, replaces or renumbers it. Stored exactly as printed, text, leading zeros significant. A new series, a factory-issued number and a trip-level note are all withdrawn as alternatives.ตัดสินแล้ว: ชุดเลขที่ใช้จริงของสถานีที่ออกใบเอง (OQ-4 ปิดแล้ว คำตัดสินหน้างานของเจ้าของผลิตภัณฑ์) สถานีออกใบเมื่อหน่วยกายภาพชั่งออก โดยดึงเลขจากช่วงเลขที่ใบชั่งตามกฎหมายเดิมของตัวเอง ภายใน namespace 7 หลักร่วมที่ใช้จริง — ช่วงเดียวกับที่เลข StationBill มา ใบของหน่วยกับใบของชาวไร่จึงแยกกันด้วยสิ่งที่ระเบียนบอกว่ามันเป็นอะไร ไม่ใช่ด้วยช่องเลขแยก หนึ่งใบต่อหนึ่งหน่วยกายภาพพอดี: แม่และลูกต่างรับเลขของตัวเอง; รถตัวถังเดี่ยวขนาดใหญ่รับหนึ่งใบ ใบระบุบัญชีโควตาของสถานีที่โรงงาน โรงงานไม่เคยออก แทน หรือให้เลขใหม่ เก็บตามที่พิมพ์ทุกตัวอักษร เป็นข้อความ เลขศูนย์นำมีความหมาย ชุดเลขใหม่ เลขที่โรงงานออก และใบระดับเที่ยว ถูกถอน ในฐานะทางเลือกทั้งหมด |
| consignment_id · manifest_id · unit_load_id · allocation_id R | Internal ULIDs on the applied ID convention — never printed, never spoken, never in a namespace with a note.ULID ภายใน ตามธรรมนูญ id ที่ใช้จริง — ไม่พิมพ์ ไม่พูด ไม่อยู่ใน namespace เดียวกับใบชั่ง |
| consignment_ref · manifest_ref R | Typed operational references, for people who must say them out loud in a yard: a typed prefix, the station prefix, the season and a station-local sequence — e.g. CNS-10-69-0042 and MFT-10-69-0042. Collision-free by type: they are not 7-digit numerics, they cannot be entered where a delivery number is expected, and no reader parses one as the other. Allocated from the station's pre-fetched range with an epoch (Section 11); unique per (tenant_id, transfer_station_id, season_id). A mill that does not want a spoken reference may leave it unused — nothing depends on it.การอ้างอิงเชิงปฏิบัติการที่มีชนิด สำหรับคนที่ต้องพูดมันออกเสียงในลาน: prefix ที่ระบุชนิด prefix ของสถานี ฤดูกาล และลำดับในสถานี — เช่น CNS-10-69-0042 และ MFT-10-69-0042 ปลอดการชนกัน ด้วยชนิด: ไม่ใช่เลข 7 หลัก คีย์ลงในที่ที่ต้องการเลขที่ใบชั่งไม่ได้ และไม่มีผู้อ่านใด parse อันหนึ่งเป็นอีกอัน จ่ายจากช่วงเลขที่ดึงมาล่วงหน้าของสถานีพร้อม epoch (ข้อ 11); ไม่ซ้ำต่อ (tenant_id, transfer_station_id, season_id) โรงงานที่ไม่ต้องการการอ้างอิงแบบพูดได้ ปล่อยไม่ใช้ก็ได้ — ไม่มีอะไรขึ้นกับมัน |
| StationNumberBlock.range_epoch D | The identity of an issued block, not a number space of its own. Cane pre-allocates a block inside the applied 7-digit series (the station's own NN prefix, FR-179) and stamps it with a unique range identifier and epoch — e.g. BLK-10-69-03 — carrying valid_from, valid_to and the owning station and client. A re-issued, repaired, reassigned or replacement block advances the epoch, so two blocks can never silently produce the same delivery number, and a record minted under a stale epoch is structurally rejectable without a second allocator existing anywhere. The epoch is never printed on the statutory form — the paper carries the delivery number exactly as applied; the epoch travels on the record (FR-H49, FR-H51).อัตลักษณ์ของบล็อกที่ออกแล้ว ไม่ใช่ช่องเลขของตัวเอง Cane จ่ายบล็อกล่วงหน้าภายในชุดเลข 7 หลักที่ใช้จริง (prefix NN ของสถานีเอง, FR-179) และประทับด้วยตัวระบุช่วงและ epoch ที่ไม่ซ้ำ — เช่น BLK-10-69-03 — พก valid_from valid_to และสถานีกับเครื่องที่เป็นเจ้าของ บล็อกที่ออกใหม่ ซ่อมแล้ว โอน หรือใช้แทน เลื่อน epoch สองบล็อกจึงไม่มีทางผลิตเลขที่ใบชั่งเดียวกันอย่างเงียบ ๆ และระเบียนที่สร้างภายใต้ epoch ที่เก่าค้าง ปฏิเสธได้เชิงโครงสร้าง โดยไม่ต้องมีผู้จ่ายเลขตัวที่สองอยู่ที่ใดเลย epoch ไม่เคยถูกพิมพ์บนฟอร์มตามกฎหมาย — กระดาษพกเลขที่ใบชั่งตามที่ใช้จริงทุกประการ; epoch เดินทางไปกับระเบียน (FR-H49, FR-H51) |
| consignment_ref_ext R | The factory's typed cross-tenant reference to a station consignment: the station tenant id, the station id and the consignment_ref, stored as one typed value on the factory's own row. It is a reference, resolved through the relation of Section 12 — never a foreign key across the tenant wall.การอ้างอิงข้าม tenant ที่มีชนิดของโรงงานไปยัง consignment ของสถานี: id ของ tenant สถานี id ของสถานี และ consignment_ref เก็บเป็นค่าที่มีชนิดค่าเดียวบนแถวของโรงงานเอง เป็น การอ้างอิง ที่ resolve ผ่านความสัมพันธ์ในข้อ 12 — ไม่ใช่ foreign key ข้ามกำแพง tenant |
| ID | Requirement — the lift and its targetข้อกำหนด — การยกและหน่วยเป้าหมาย |
|---|---|
| FR-H35 | One intake, one unit, one live allocation. A StationBill intake has exactly one live TransferLoadAllocation, carrying the complete load, bound to one TransferUnitLoad. A second live allocation for the same bill is refused by the database (PARTIAL UNIQUE (station_bill_id) WHERE state = 'live'), not by a screen and not by a configuration flag; the error is alloc.err.second_live_allocation. A correction is a void-and-supersede onto the corrected unit, never a second live row.หนึ่งการรับอ้อย หนึ่งหน่วย หนึ่งการจัดสรรที่ใช้งาน การรับอ้อยตาม StationBill มี TransferLoadAllocation ที่ใช้งานหนึ่งรายการพอดี ซึ่งพกการบรรทุกทั้งคัน ผูกกับ TransferUnitLoad หนึ่ง ตัว การจัดสรรที่ใช้งานรายการที่สองของใบเดียวกันถูก ปฏิเสธโดยฐานข้อมูล (PARTIAL UNIQUE (station_bill_id) WHERE state = 'live') ไม่ใช่โดยหน้าจอและไม่ใช่โดยธงตั้งค่า; ข้อผิดพลาดคือ alloc.err.second_live_allocation การแก้คือการยกเลิกแล้วแทนที่ไปบนหน่วยที่แก้แล้ว ไม่ใช่แถวที่ใช้งานรายการที่สอง |
| FR-H36 | Pre-lift target confirmation, and the recorded target switch. The loading act has two stages and the first cannot be skipped: (1) target confirmation — the operator selects a unit load and confirms it can accept the complete intake, against its declared capacity_kg less its live allocated total where a capacity is known, and against his own judgement where it is not; the confirmation is stamped on the allocation as target_confirmed_at. (2) the lift — the allocation is written for the whole load. If the confirmation fails, the app returns the operator to target selection before lifting and the switch is recorded as a TransferLoadTargetSwitched fact with its reason (capacity | unit_sealed | unit_substituted | operator_judgement) and target_switch_count incremented. A failed confirmation never creates a partial allocation, an estimated split or a second live row, and it is not an exception — it is the normal way a full unit is discovered.การยืนยันหน่วยเป้าหมายก่อนยก และการสลับเป้าหมายที่บันทึกไว้ การกระทำบรรทุกมี สองจังหวะ และจังหวะแรกข้ามไม่ได้: (1) การยืนยันเป้าหมาย — ผู้ปฏิบัติงานเลือก unit load และยืนยันว่ารับการรับอ้อยทั้งครั้งได้ โดยเทียบ capacity_kg ที่ประกาศไว้หักผลรวมที่จัดสรรและใช้งานเมื่อรู้ความจุ และเทียบดุลพินิจของเขาเองเมื่อไม่รู้; ประทับการยืนยันไว้บนการจัดสรรเป็น target_confirmed_at (2) การยก — เขียนการจัดสรรสำหรับการบรรทุกทั้งคัน หากการยืนยันไม่ผ่าน แอปส่งผู้ปฏิบัติงานกลับไปเลือกหน่วยเป้าหมายก่อนยก และบันทึกการสลับเป็นข้อเท็จจริง TransferLoadTargetSwitched พร้อมเหตุผล (capacity | unit_sealed | unit_substituted | operator_judgement) และเพิ่ม target_switch_count การยืนยันที่ไม่ผ่านไม่เคยสร้างการจัดสรรบางส่วน การแบ่งแบบประมาณ หรือแถวที่ใช้งานรายการที่สอง และไม่ใช่ข้อยกเว้น — เป็นวิธีปกติที่ค้นพบว่าหน่วยเต็ม |
| Applied workflow stepขั้นตอน workflow ที่ใช้จริง | What this draft proposes, exactlyร่างนี้เสนออะไร ตรง ๆ |
|---|---|
| WF-70 step 1 — weigh-inWF-70 ขั้นที่ 1 — ชั่งเข้า | Unchanged. Quota account, plate, province, cane grade against the station's prefix range; offline continues from the pre-fetched local range (NFR-57).ไม่เปลี่ยน บัญชีโควตา ทะเบียน จังหวัด เกรดอ้อย โดยใช้ช่วง prefix ของสถานี; เมื่อ offline ทำต่อจากช่วงเลขในเครื่องที่ดึงมาล่วงหน้า (NFR-57) |
| WF-70 step 2 — crane loadWF-70 ขั้นที่ 2 — เครนบรรทุก | Amended, in two stages. The operator first selects and confirms a target unit that can accept the complete load (FR-H36; a failed confirmation returns him to selection and records TransferLoadTargetSwitched), then the chained lift places the whole load on that unit and the act writes one TransferLoadAllocation for the complete intake in kg, emitting TransferLoadAllocated and replacing CraneTokenIssued. No token, coin or tag is issued or handed over — the yard has none (H13, OQ-2 closed).แก้ เป็นสองจังหวะ ผู้ปฏิบัติงานเลือกและยืนยันหน่วยเป้าหมายที่รับการบรรทุกทั้งคันได้ก่อน (FR-H36; การยืนยันที่ไม่ผ่านส่งเขากลับไปเลือก และบันทึก TransferLoadTargetSwitched) แล้วการยกด้วยโซ่วางการบรรทุกทั้งคันบนหน่วยนั้น และการกระทำเขียน TransferLoadAllocation หนึ่ง รายการสำหรับการรับอ้อยทั้งครั้งเป็นกิโลกรัม ปล่อย TransferLoadAllocated และแทน CraneTokenIssued ไม่มีการออกหรือส่งมือเหรียญหรือแท็กใด — ลานไม่มี (H13, OQ-2 ปิดแล้ว) |
| WF-70 step 3 — exit weighWF-70 ขั้นที่ 3 — ชั่งออก | Amended, and it keeps its job. The clerk confirms the recorded unit on the screen — there is no coin to surrender (H13) — the 4-ply StationBill is finalised and printed with its applied ply routing before the truck leaves, and the farmer goes home. Event: StationLoadExitConfirmed — the true successor of CraneTokenReturned. Failure path, replacing "token mismatch → hold at exit weigh": no live allocation, or a confirmed unit that differs from the allocated unit → hold at exit weigh, supervisor resolves — the same operational stop, read from a record instead of a coin. The manifest is not touched here.แก้ และยังทำหน้าที่เดิม เสมียนยืนยันหน่วยที่บันทึกไว้บนหน้าจอ — ไม่มีเหรียญให้คืน (H13) — StationBill 4 สำเนาถูกปิดและพิมพ์พร้อมเส้นทางสำเนาที่ใช้จริงก่อนรถออก และชาวไร่กลับบ้าน event: StationLoadExitConfirmed — ผู้สืบทอดจริงของ CraneTokenReturned เส้นทางล้มเหลว แทน "เหรียญไม่ตรง → กันไว้ที่ชั่งออก": ไม่มีการจัดสรรที่ใช้งาน หรือหน่วยที่ยืนยันต่างจากหน่วยที่จัดสรร → กันไว้ที่ชั่งออก หัวหน้าชี้ขาด — การหยุดเชิงปฏิบัติการเดียวกัน อ่านจากระเบียนแทนเหรียญ ใบกำกับไม่ถูกแตะที่นี่ |
| WF-70 step 4 — mid-load cutWF-70 ขั้นที่ 4 — ตัดใบกลางการบรรทุก | Unchanged in substance (FR-176 preserved): the truck weighs out and back in, the old bill closes, a new bill opens linked by cut_from_bill_id, StationBillCut is emitted, and both bills keep the audit link to one physical arrival. Added only: the remainder allocates to the next unit load, and the unit that filled is recorded full (FR-H26).ไม่เปลี่ยนในสาระ (คง FR-176): รถชั่งออกแล้วเข้าใหม่ ใบเก่าปิด ใบใหม่เปิดเชื่อมด้วย cut_from_bill_id ปล่อย StationBillCut และใบทั้งสองคงการเชื่อมเพื่อตรวจสอบไปยังการมาถึงทางกายภาพเดียว เพิ่มเพียง: ส่วนที่เหลือจัดสรรไปยัง unit load ถัดไป และหน่วยที่เต็มถูกบันทึกว่า full (FR-H26) |
| New — consignment close and departureใหม่ — ปิด consignment และออกเดินทาง | A new station workflow (candidate WF-H1, numbered at application): units are declared full and sealed → the manifest closes with its hash and its expected-note index → the transfer truck's own note is issued → the truck exit-weighs at the station → TransferConsignmentDeparted. Guards: no unallocated bill left on the yard list without an exception, FR-178 overweight approval where it applies, and a truck note present (FR-H2).workflow สถานีใหม่ (ผู้สมัคร WF-H1 ให้เลขตอน apply): ประกาศหน่วยเต็มและปิดผนึก → ปิดใบกำกับพร้อม hash และสารบัญใบที่คาดว่าจะมี → ออกใบชั่งของรถขนถ่ายเอง → รถชั่งออกที่สถานี → TransferConsignmentDeparted ด่าน: ไม่มีใบที่ยังไม่จัดสรรค้างอยู่ในรายการของลานโดยไม่มีข้อยกเว้น มีการอนุมัติน้ำหนักเกินตาม FR-178 เมื่อเข้าเงื่อนไข และมีใบชั่งของรถ (FR-H2) |
| WF-71 step 1 — depart the stationWF-71 ขั้นที่ 1 — ออกจากสถานี | Amended in one clause: the driver still departs carrying the yellow ply plus every farmer sub-delivery note (unchanged), and the precondition adds a closed manifest and an issued truck note. Bundle reconciliation stays in the factory weigh-in transaction, now recorded as FR-H4. Everything else in WF-71 — overweight approval, arrival under the station's quota, weigh-in as the haulage-settlement basis, tipping, exit weigh — is unchanged.แก้ข้อความเดียว: คนขับยังออกเดินทางโดยพกใบเหลืองพร้อมใบชั่งย่อยของชาวไร่ทุกใบ (ไม่เปลี่ยน) และเงื่อนไขก่อนเพิ่ม ใบกำกับที่ปิดแล้วและใบชั่งของรถที่ออกแล้ว การกระทบยอดชุดเอกสารยังอยู่ในรายการชั่งเข้าของโรงงาน บันทึกเป็น FR-H4 สิ่งอื่นใน WF-71 — การอนุมัติน้ำหนักเกิน การมาถึงภายใต้โควตาของสถานี การชั่งเข้าเป็นฐานการชำระค่าขนส่ง การเท การชั่งออก — ไม่เปลี่ยน |
| ID | Requirement — the two gatesข้อกำหนด — ประตูสองบาน |
|---|---|
| FR-H8 | Gate one: the small truck leaves on its own record. A farmer's truck exit-weighs, its allocations are confirmed, its StationBill is finalised and printed on the statutory form, and it leaves — with no dependency on the transfer truck's state, the manifest or the consignment. A station app that cannot finalise a bill because a manifest is open is a defect.ประตูที่หนึ่ง: รถเล็กออกไปด้วยระเบียนของตัวเอง รถของชาวไร่ชั่งออก การจัดสรรถูกยืนยัน StationBill ถูกปิดและพิมพ์บนฟอร์มตามกฎหมาย และออกไป — โดยไม่ขึ้นกับสถานะของรถขนถ่าย ใบกำกับ หรือ consignment station app ที่ปิดใบชั่งไม่ได้เพราะใบกำกับยังเปิด คือข้อบกพร่อง |
| FR-H9 | Gate two: the consignment departs on a closed manifest. A consignment reaches departed only with every unit load sealed, a closed manifest version with its hash, an issued truck note, and either zero blocking exceptions or a recorded supervisor override naming what was overridden. The departure fact is written once and never edited.ประตูที่สอง: consignment ออกเดินทางบนใบกำกับที่ปิดแล้ว consignment ไปถึง departed ได้เมื่อ unit load ทุกตัวปิดผนึก มีใบกำกับฉบับที่ปิดพร้อม hash มีใบชั่งของรถที่ออกแล้ว และไม่มีข้อยกเว้นที่กั้นอยู่ หรือมีการ override ของหัวหน้าที่บันทึกไว้พร้อมระบุสิ่งที่ override ข้อเท็จจริงการออกเดินทางเขียนครั้งเดียวและไม่เคยแก้ |
| ID | Ruleกฎ |
|---|---|
| FR-H10 | Factory weights, at the granularity the factory actually weighs. The factory weighs on its certified scale under the applied reading contract (A-10, NFR-33) — gross at weigh-in, tare after tipping, net = gross − tare, in kg, digitally captured with no manual entry anywhere and no station figure substituted for a factory figure. The granularity is the physical unit, always (OQ-3 closed by Product Owner field decision, 19 Aug 2026): weighing, delivery documentation, paper bundling and CCS are per TransferUnitLoad and never combined at trip or consignment level. A mother and a daughter each have their own delivery note, their own bundle of source bills, their own certified weight sequence and their own CCS result; a very large single-body or single-trailer vehicle is one physical unit and therefore has one note, one bundle, one weight sequence and one CCS result. Applied spec already works this way — a trailer yields two deliveries, two weigh sequences and two note sets in one trip. Mother and daughter weights are never summed into a trip-level result, and the configurable per-unit-versus-per-trip branch of Rev 0.2 is withdrawn.น้ำหนักของโรงงาน ที่ความละเอียดที่โรงงานชั่งจริง โรงงานชั่งบนตาชั่งที่รับรองตามสัญญาการอ่านที่ใช้จริง (A-10, NFR-33) — น้ำหนักรวม ตอนชั่งเข้า น้ำหนักรถเปล่า หลังเท สุทธิ = รวม − รถเปล่า เป็นกิโลกรัม เก็บแบบดิจิทัลโดยไม่มีการคีย์มือที่ใดเลย และไม่มีค่าจากสถานีถูกใช้แทนค่าของโรงงาน ความละเอียดคือหน่วยกายภาพ เสมอ (OQ-3 ปิดโดยคำตัดสินหน้างานของเจ้าของผลิตภัณฑ์ 19 ส.ค. 2569): การชั่ง เอกสารการส่งมอบ การรวมชุดกระดาษ และ CCS เป็น รายบุคคลต่อ TransferUnitLoad และไม่เคยรวมกันที่ระดับเที่ยวหรือ consignment แม่และลูกแต่ละตัวมีใบชั่งของตัวเอง ชุดใบต้นทางของตัวเอง ลำดับการชั่งที่รับรองของตัวเอง และผล CCS ของตัวเอง; รถตัวถังเดี่ยวหรือรถพ่วงเดี่ยวขนาดใหญ่มากเป็นหน่วยกายภาพ หนึ่ง ตัว จึงมีใบ หนึ่ง ใบ ชุด หนึ่ง ชุด ลำดับการชั่ง หนึ่ง ลำดับ และผล CCS หนึ่ง ผล ข้อกำหนดที่ใช้จริงทำงานแบบนี้อยู่แล้ว — รถพ่วงให้ สองการส่งมอบ สองลำดับการชั่ง และสองชุดใบ ในเที่ยวเดียว น้ำหนักของแม่และลูกไม่เคยถูกบวกเป็นผลระดับเที่ยว และทางเลือกที่ตั้งค่าได้ระหว่างรายหน่วยกับรายเที่ยวของ Rev 0.2 ถูกถอน |
| FR-H11 | CCS attribution — the value travels unchanged. Replacing FR-175's token hop: the CCS value that applies to a farmer's cane is the CCS of the unit load that carried it, taken from the factory delivery for that unit, and it is written to every live allocation on that unit at exactly that value — no division, no weighting, no averaging across allocations. There is no per-trip alternative: a consignment is never a sampling, analysis or CCS granularity (OQ-3 closed, H14), a mother's and a daughter's results are never averaged or combined, and a value is never divided or estimated. Source unit, the source delivery, the CCS status (provisional or confirmed, applied FR-100), the value to the applied precision numeric(4,2), the match method and the rule version are all recorded on the attribution, so any attribution can be re-derived years later. Rounding: none — the stored value is copied, not computed, so there is no residual to allocate. A farmer's own record shows the value with its source and its as-of stamp.การปันส่วน CCS — ค่าเดินทางโดยไม่เปลี่ยน แทนการกระโดดผ่านเหรียญของ FR-175: ค่า CCS ที่ใช้กับอ้อยของชาวไร่คือ CCS ของ unit load ที่บรรทุกมัน ซึ่งเอามาจากการส่งมอบของโรงงานสำหรับหน่วยนั้น และถูกเขียนไปยังการจัดสรรที่ใช้งานทุกรายการบนหน่วยนั้นด้วยค่านั้นพอดี — ไม่หาร ไม่ถ่วงน้ำหนัก ไม่เฉลี่ยข้ามการจัดสรร ไม่มีทางเลือกรายเที่ยว: consignment ไม่เคยเป็นความละเอียดของการสุ่มตัวอย่าง การวิเคราะห์ หรือ CCS (OQ-3 ปิดแล้ว, H14) ผลของแม่และของลูก ไม่เคยถูกเฉลี่ยหรือรวมกัน และค่าไม่เคยถูกหารหรือประมาณ หน่วยต้นทาง การส่งมอบต้นทาง สถานะ CCS (ชั่วคราว หรือ ยืนยัน ตาม FR-100 ที่ใช้จริง) ค่าที่ความละเอียดที่ใช้จริง numeric(4,2) วิธีจับคู่ และ เวอร์ชันของกฎ ถูกบันทึกบนการปันส่วนทั้งหมด การปันส่วนใดจึง derive ย้อนได้อีกหลายปีต่อมา การปัด: ไม่มี — ค่าที่เก็บถูกคัดลอก ไม่ใช่คำนวณ จึงไม่มีเศษให้จัดสรร ระเบียนของชาวไร่แสดงค่าพร้อมแหล่งและตราเวลา as-of |
| FR-H12 | What pro rata may allocate, and how the residual is settled. Apportionment on allocated_kg is permitted for exactly three kinds of figure, each named where it is used: (a) an informational factory net weight per bill; (b) a transfer difference or shortfall, where the applied loss policy needs a per-bill view; (c) a separately named weighted contribution figure, if a future proposal defines one. In every case the arithmetic is: full precision intermediate, result in integer kg, and the residual — the difference between the apportioned sum and the source figure — assigned deterministically to the allocation with the largest allocated_kg, ties broken by the lowest delivery_no_snap, recorded on the record so the assignment can be seen. Apportioned figures are labelled apportioned wherever they are shown, and never presented as a measured weight for that bill. CCS is not on this list and may never be added to it.การเฉลี่ยตามสัดส่วนใช้กับอะไรได้ และเศษถูกจัดการอย่างไร การเฉลี่ยบน allocated_kg ทำได้กับตัวเลขสามชนิดพอดี แต่ละชนิดระบุชื่อไว้ที่ที่ใช้: (ก) น้ำหนักสุทธิของโรงงานรายใบเพื่อเป็นข้อมูล; (ข) ส่วนต่างหรือส่วนขาดจากการขนถ่าย เมื่อนโยบายการสูญหายที่ใช้จริงต้องการมุมมองรายใบ; (ค) ตัวเลขส่วนร่วมถ่วงน้ำหนักที่ตั้งชื่อแยก หากข้อเสนอในอนาคตนิยามขึ้น ทุกกรณีเลขคณิตเป็น: คำนวณกลางทางที่ความละเอียดเต็ม ผลลัพธ์เป็น จำนวนเต็มกิโลกรัม และ เศษ — ส่วนต่างระหว่างผลรวมที่เฉลี่ยกับค่าต้นทาง — ถูกยกให้การจัดสรรที่มี allocated_kg มากที่สุดอย่างกำหนดแน่ ถ้าเท่ากันใช้ delivery_no_snap ที่น้อยกว่า และบันทึกไว้บนระเบียนให้เห็นการยกนั้น ตัวเลขที่เฉลี่ยแล้วถูกกำกับว่าเฉลี่ยทุกที่ที่แสดง และไม่เคยนำเสนอเป็นน้ำหนักที่วัดได้ของใบนั้น CCS ไม่อยู่ในรายการนี้และห้ามเพิ่มเข้ามาตลอดไป |
| FR-H13 | Late CCS and confirmation are normal, not exceptional. A consignment may close its transport lifecycle before the laboratory returns a value: applied CCS arrives on a สอน. re-note and is matched on the %N-### tag (FR-100), provisional then confirmed. Until a value exists, a farmer's record shows awaiting CCS with an as-of stamp — never a provisional number presented as final and never a zero. When a confirmed value supersedes a provisional one, every attribution derived from it is re-derived and superseded, never edited, on the applied correction machinery (PROP-012), and the farmer's record shows both values with their dates.CCS มาช้าและการยืนยันเป็นเรื่องปกติ ไม่ใช่ข้อยกเว้น consignment ปิดวงจรการขนส่งได้ก่อนที่ห้องปฏิบัติการจะคืนค่า: CCS ที่ใช้จริงมาบน re-note ของ สอน. และจับคู่ด้วยแท็ก %N-### (FR-100) ชั่วคราวแล้วยืนยัน จนกว่าจะมีค่า ระเบียนของชาวไร่แสดงว่า รอ CCS พร้อมตราเวลา as-of — ไม่ใช่ตัวเลขชั่วคราวที่นำเสนอเป็นค่าสุดท้าย และไม่ใช่ศูนย์ เมื่อค่าที่ยืนยัน แทนที่ ค่าชั่วคราว การปันส่วนทุกรายการที่ derive จากมันถูก derive ใหม่และแทนที่ ไม่ใช่แก้ทับ ตามกลไกการแก้ค่าที่ใช้จริง (PROP-012) และระเบียนของชาวไร่แสดงค่าทั้งสองพร้อมวันที่ |
| FR-H14 | Settlement bases are unchanged. The farmer settles on station net weight; the contractor settles on factory weigh-in tonnage at the announced rate net of LossClaim (applied FR-177, FR-184); the applied TransferLossPolicy deduction on the farmer's settled weight is untouched. Factory weight reaching a bill is therefore information and reconciliation input, not a re-pricing of his cane; a proposal that changed that would have to say so in its own words and answer for it.ฐานการชำระไม่เปลี่ยน ชาวไร่ชำระบน น้ำหนักสุทธิที่สถานี; ผู้รับเหมาชำระบน ตันน้ำหนักชั่งเข้าโรงงาน ที่อัตราที่ประกาศ หัก LossClaim (FR-177, FR-184 ที่ใช้จริง); การหักตาม TransferLossPolicy ที่ใช้จริงบนน้ำหนักชำระของชาวไร่ไม่ถูกแตะ น้ำหนักโรงงานที่ไปถึงใบชั่งจึงเป็นข้อมูลและข้อมูลนำเข้าการกระทบยอด ไม่ใช่การตั้งราคาอ้อยของเขาใหม่; ข้อเสนอที่จะเปลี่ยนเรื่องนั้นต้องพูดด้วยถ้อยคำของตัวเองและรับผิดชอบมัน |
| ID | Ruleกฎ |
|---|---|
| FR-H15 | The figures, named and never summed together. Per unit load — never per trip — a stored reconciliation record holds, all in kg: (a) station net — the sum of net_weight of every included StationBill; (b) live allocated — the sum of allocated_kg of live allocations; (c) station-certified dispatched net PER UNIT — each unit's own weigh-out on the station's certified scale, carried on its unit note; (d) factory certified net PER UNIT — each arriving unit's own gross, tare and net at the factory. The measurement granularity is the unit, always (OQ-3, H14): a consignment total is a derived roll-up for logistics reporting only and is never a measurement, never a reconciliation input and never a CCS source. Comparisons, all per unit: (a) vs (b) catches unallocated or over-allocated cane; (c) vs (d) is the transfer difference the applied TransferLossPolicy and LossClaim read, using the applied station_loaded_t against mill_weighin_t for that unit. Unit figures are never summed into a trip-level result to be reconciled; a roll-up shown on a board is labelled derived, and no derived total is ever counted twice.ตัวเลขที่ตั้งชื่อไว้ และไม่เคยบวกรวมกัน ต่อ unit load — ไม่ใช่ต่อเที่ยว — ระเบียนการกระทบยอดที่ เก็บไว้ ถือค่าเหล่านี้ หน่วยกิโลกรัมทั้งหมด: (ก) สุทธิที่สถานี — ผลรวม net_weight ของ StationBill ทุกใบที่รวมอยู่; (ข) ที่จัดสรรและใช้งาน — ผลรวม allocated_kg ของการจัดสรรที่ใช้งาน; (ค) สุทธิที่ส่งออกรายหน่วยซึ่งสถานีรับรอง — น้ำหนักชั่งออกของหน่วยแต่ละตัวบนตาชั่งที่รับรองของสถานี พกอยู่บนใบชั่งของหน่วยนั้น; (ง) สุทธิที่โรงงานรับรองรายหน่วย — น้ำหนักรวม รถเปล่า และสุทธิของหน่วยที่มาถึงแต่ละตัวที่โรงงาน ความละเอียดของการวัดคือหน่วย เสมอ (OQ-3, H14): ผลรวมรายเที่ยวเป็น ค่าที่ derive เพื่อรายงานด้านโลจิสติกส์เท่านั้น และ ไม่เคย เป็นการวัด ไม่เคยเป็นข้อมูลนำเข้าการกระทบยอด และไม่เคยเป็นแหล่งของ CCS การเทียบทั้งหมดเป็นรายหน่วย: (ก) เทียบ (ข) จับอ้อยที่ยังไม่ถูกจัดสรรหรือถูกจัดสรรเกิน; (ค) เทียบ (ง) คือส่วนต่างการขนถ่ายที่ TransferLossPolicy และ LossClaim ที่ใช้จริงอ่าน โดยใช้ station_loaded_t ที่ใช้จริงเทียบ mill_weighin_t ของหน่วยนั้น ค่ารายหน่วยไม่เคยถูกบวกเป็นผลระดับเที่ยวเพื่อนำไปกระทบยอด; ผลรวมที่แสดงบนกระดานถูกกำกับว่า derive และไม่มีผลรวมที่ derive ใดถูกนับสองครั้ง |
| FR-H16 | The applied loss chain is preserved exactly. The accepted-loss threshold with no deduction inside it, the factory-set per-kg charge for the shortfall beyond it, and the contractor LossClaim that carries it (PROP-030 OQ-3, closed 23 Jul 2026) all stand. This draft changes only where the station-loaded figure is measured from — the sum of live allocated kg instead of a count of tokens — and never how it is priced. Accident trips keep their substitute-truck plates and their bundled accounting set (FR-177).สายการสูญหายที่ใช้จริงคงไว้ทุกประการ เกณฑ์การสูญหายที่ยอมรับได้ซึ่งไม่หักภายในเกณฑ์ ค่าปรับต่อกิโลกรัมที่โรงงานกำหนดสำหรับส่วนขาดที่เกินเกณฑ์ และ LossClaim ของผู้รับเหมาที่รับไป (OQ-3 ของ PROP-030 ปิด 23 ก.ค. 2569) ยังยืนทั้งหมด ร่างนี้เปลี่ยนเพียงว่าค่าน้ำหนักที่บรรทุกที่สถานีวัดจากที่ใด — ผลรวมกิโลกรัมที่จัดสรรและใช้งาน แทนการนับเหรียญ — และไม่เปลี่ยนวิธีตั้งราคาเลย เที่ยวที่เกิดอุบัติเหตุคงทะเบียนรถทอยและชุดบัญชีที่รวมไว้ (FR-177) |
| FR-H17 | Exceptions hold attribution, not the farmer's money. A consignment cannot reach reconciled while any included bill carries an unresolved allocation exception. Farmer settlement and contractor haulage settlement stay independent: an allocation exception holds the attribution and the reconciliation, and does not hold the applied station-weight payment path unless the exception is about the station weight itself. Each quota account settles on its own boundary (A-105).ข้อยกเว้นกั้นการปันส่วน ไม่ใช่เงินของชาวไร่ consignment ไปถึงสถานะ reconciled ไม่ได้ขณะที่ใบใดที่รวมอยู่ยังมีข้อยกเว้นการจัดสรรที่ไม่ยุติ การชำระของชาวไร่กับการชำระค่าขนส่งของผู้รับเหมาเป็นอิสระต่อกัน: ข้อยกเว้นการจัดสรรกั้นการปันส่วนและการกระทบยอด และไม่กั้นเส้นทางการจ่ายบนน้ำหนักสถานีที่ใช้จริง เว้นแต่ข้อยกเว้นนั้นเป็นเรื่องน้ำหนักสถานีเอง แต่ละบัญชีโควตาชำระบนขอบเขตของตัวเอง (A-105) |
D Both business days travel with every figure here. A reconciliation record carries the station's station_operating_day and the factory's mill_crushing_day_id side by side, each with its timestamp and timezone and each labelled with its owner, joined through the typed unit reference — never normalised into one date and never used as the join key (FR-H45, FR-H47, FR-H48).D วันทำการทั้งสองเดินทางไปกับตัวเลขทุกค่าในข้อนี้ ระเบียนการกระทบยอดพก station_operating_day ของสถานี และ mill_crushing_day_id ของโรงงานเคียงกัน แต่ละค่าพร้อมตราเวลาและเขตเวลา และกำกับเจ้าของ เชื่อมกันผ่านการอ้างอิงหน่วยที่มีชนิด — ไม่ปรับให้เหลือวันเดียว และไม่ใช้เป็นคีย์เชื่อม (FR-H45, FR-H47, FR-H48)
| ID | Ruleกฎ |
|---|---|
| FR-H18 | Station-local ordering, and no new allocator. Within one station, the ordering authority for allocations, unit-load state changes, manifest closure and departure is a station-local monotonic sequence per (transfer_station_id, station_client_id), carried on every record as local_seq beside the captured time. Delivery numbers continue to come from the applied pre-fetched local range (NFR-57, FR-179) — this draft dispenses no number space and asks the factory gateway for nothing. consignment_ref and manifest_ref are drawn from a pre-fetched station range stamped with a range epoch: a re-issued or repaired range advances the epoch, so two ranges can never silently produce the same reference, and a record from a stale epoch is structurally rejectable on the applied FR-134 pattern without becoming a second allocator. The platform mirrors and never orders, never renumbers.การจัดลำดับในสถานี และไม่มีผู้จ่ายเลขใหม่ ภายในสถานีหนึ่ง อำนาจจัดลำดับของการจัดสรร การเปลี่ยนสถานะ unit load การปิดใบกำกับ และการออกเดินทาง คือ ลำดับที่เพิ่มขึ้นเรื่อย ๆ ในสถานีต่อ (transfer_station_id, station_client_id) พกบนทุกระเบียนเป็น local_seq ข้างเวลาที่เก็บ เลขที่ใบชั่งยังมาจากช่วงเลขในเครื่องที่ดึงมาล่วงหน้าที่ใช้จริง (NFR-57, FR-179) — ร่างนี้ไม่จ่ายช่องเลขใด และไม่ขออะไรจาก gateway ของโรงงาน consignment_ref และ manifest_ref ดึงจากช่วงเลขของสถานีที่ดึงมาล่วงหน้า ประทับด้วย epoch ของช่วง: ช่วงที่ออกใหม่หรือซ่อมแล้วเลื่อน epoch ดังนั้นสองช่วงไม่เคยผลิตการอ้างอิงเดียวกันอย่างเงียบ ๆ และระเบียนจาก epoch ที่เก่าค้าง ปฏิเสธได้เชิงโครงสร้าง ตามแบบ FR-134 ที่ใช้จริง โดยไม่กลายเป็นผู้จ่ายเลขรายที่สอง แพลตฟอร์ม ทำกระจกเงา ไม่จัดลำดับ ไม่ให้เลขใหม่ |
| FR-H19 | Idempotency and replay ride the applied journal. Every allocation and state change is captured into the applied StationJournal with its idempotency_key, and ingestion is upsert by that key at every hop, so a replayed journal produces no duplicate allocation and no duplicate event. Key uniqueness is scoped (tenant_id, transfer_station_id, station_client_id, idempotency_key) — not global, because a station mints keys offline and global uniqueness cannot be guaranteed from a disconnected yard. A repeated loading act inside a short, configured debounce window is one allocation. No second journal is introduced (A-96 R-ONESOLUTION).การกันซ้ำและการเล่นซ้ำใช้ journal ที่ใช้จริง การจัดสรรและการเปลี่ยนสถานะทุกครั้งถูกเก็บเข้า StationJournal ที่ใช้จริงพร้อม idempotency_key และการรับเข้าเป็น upsert ด้วยคีย์นั้น ทุกทอด journal ที่เล่นซ้ำจึงไม่สร้างการจัดสรรซ้ำและ event ซ้ำ ความไม่ซ้ำของคีย์มีขอบเขต (tenant_id, transfer_station_id, station_client_id, idempotency_key) — ไม่ใช่ ทั่วทั้งระบบ เพราะสถานีสร้างคีย์แบบ offline และรับประกันความไม่ซ้ำทั่วระบบจากลานที่ถูกตัดขาดไม่ได้ การกระทำบรรทุกซ้ำภายในหน้าต่าง debounce สั้นที่ตั้งค่าไว้นับเป็น หนึ่ง การจัดสรร ไม่มีการเพิ่ม journal ตัวที่สอง (A-96 R-ONESOLUTION) |
| FR-H20 | Disconnected operation is normal and bounded. Allocation, loading, manifest closure, truck-note issuance and departure all complete with no connectivity: the cloud may learn of a departed consignment hours later, and that is not an error. Records sync on the applied schedule (default 2 h) or by physical media, are attributed to their captured day and time, and carry their sync lag. A record arriving after the 24:00 cutoff is accepted, attributed to its captured day, and flagged late with that lag — the cutoff never rewrites a captured day. A consignment departing on one day and arriving on the next is ordinary.การทำงานแบบถูกตัดขาดเป็นเรื่องปกติและมีขอบเขต การจัดสรร การบรรทุก การปิดใบกำกับ การออกใบชั่งของรถ และการออกเดินทาง ทำได้ครบโดยไม่มีการเชื่อมต่อ: cloud อาจรู้เรื่อง consignment ที่ออกไปแล้วหลายชั่วโมงต่อมา และนั่นไม่ใช่ข้อผิดพลาด ระเบียน sync ตามรอบที่ใช้จริง (ค่าปกติ 2 h) หรือด้วยสื่อกายภาพ ถูกปันให้วันและเวลาที่ เก็บ และพกระยะเวลาที่ sync ช้าไว้ ระเบียนที่มาถึงหลังการตัดวัน 24:00 ถูกรับไว้ ปันให้วันที่เก็บได้ และติดธงว่ามาช้าพร้อมระยะนั้น — การตัดวันไม่เคยเขียนวันที่เก็บทับ consignment ที่ออกวันหนึ่งไปถึงวันถัดไปเป็นเรื่องธรรมดา |
| FR-H21 | Component failure, stated per component. Scale link down → weighing halts; there is no manual weight anywhere and no software fallback (A-10, NFR-33), so an intake cannot be created and the truck waits or is turned away, recorded. Station client or app down → the yard falls back to the applied paper chain: the statutory notes are still printed by the bridge's printer where it lives, loading continues, and allocations are reconstructed from the note bundle afterwards as a declared degraded mode with its own record, its actor and its reconstruction time. Network down → nothing changes (FR-H20). Factory gateway down → nothing at the station changes, because the station never asked it for anything; the factory's own applied FR-141 posture governs the factory side. Range exhausted → issuance stops and the station is refilled; a number space is never forked to keep working.ความล้มเหลวรายส่วนประกอบ ระบุรายตัว สายตาชั่งขาด → การชั่ง หยุด; ไม่มีน้ำหนักที่คีย์ด้วยมือที่ใดเลยและไม่มีทางถอยทางซอฟต์แวร์ (A-10, NFR-33) จึงสร้างการรับอ้อยไม่ได้ และรถต้องรอหรือถูกปฏิเสธ โดยบันทึกไว้ เครื่องหรือแอปของสถานีล่ม → ลานถอยไปใช้สายกระดาษที่ใช้จริง: ใบตามกฎหมายยังพิมพ์จากเครื่องพิมพ์ของห้องชั่งที่มันอยู่ การบรรทุกดำเนินต่อ และการจัดสรรถูกประกอบขึ้นใหม่จากชุดใบภายหลังในฐานะ โหมดถดถอยที่ประกาศไว้ พร้อมระเบียน ผู้กระทำ และเวลาที่ประกอบขึ้นใหม่ เครือข่ายล่ม → ไม่มีอะไรเปลี่ยน (FR-H20) gateway ของโรงงานล่ม → ที่สถานีไม่มีอะไรเปลี่ยน เพราะสถานีไม่เคยขออะไรจากมัน; ท่าที FR-141 ที่ใช้จริงของโรงงานกำกับฝั่งโรงงาน ช่วงเลขหมด → การออกเลขหยุดและสถานีถูกเติมช่วงใหม่; ช่องเลขไม่เคยถูกแยกสายเพื่อทำงานต่อ |
| FR-H22 | Conflict resolution never destroys and never re-weighs. Where two disconnected partitions allocated the same bill, the merge keeps the allocation whose unit load has a committed departure or a factory weight, supersedes the other with duplicate, and raises one exception naming both with their operators and devices. A merge never deletes an allocation and never rewrites a weight; where neither side has departed, the station supervisor resolves on the manifest-review screen before closure.การยุติความขัดแย้งไม่เคยทำลายและไม่เคยชั่งใหม่ เมื่อสองเขตที่ถูกตัดขาดจัดสรรใบเดียวกัน การ merge เก็บการจัดสรรที่ unit load ของมันมี การออกเดินทางที่ commit แล้วหรือน้ำหนักของโรงงาน แทนที่อีกอันด้วย duplicate และยกข้อยกเว้นหนึ่งรายการที่ระบุทั้งสองพร้อมผู้ปฏิบัติงานและอุปกรณ์ การ merge ไม่เคยลบการจัดสรรและไม่เคยเขียนน้ำหนักทับ; เมื่อยังไม่มีฝ่ายใดออกเดินทาง หัวหน้าสถานีชี้ขาดบนหน้าจอทบทวนใบกำกับก่อนปิด |
| FR-H49 | Controlled pre-allocation of delivery-number blocks. D Cane pre-allocates a bounded block of statutory delivery-note numbers to each transfer station from that station's applied NN prefix range (FR-179) — recorded as a StationNumberBlock (Section 5) carrying range_from, range_to, a unique range_epoch, valid_from and valid_to, and the owning station and station client. The station issues from the active block sequentially, offline, with no request to any gateway; issuance advances a durable local cursor and never skips or reserves a number for later. Pre-allocation is an administrative act with a record, not a runtime service: it happens ahead of the season or on refill, is never a per-transaction call, and adds no allocator, no gateway and no availability requirement (H8). A block is superseded, never edited, and a superseded, revoked, expired or exhausted block is dead.การจ่ายบล็อกเลขที่ใบชั่งล่วงหน้าอย่างควบคุม D Cane จ่ายบล็อกเลขที่ใบชั่งตามกฎหมายที่มีขอบเขตให้สถานีขนถ่ายแต่ละแห่งล่วงหน้า จากช่วง prefix NN ที่ใช้จริงของสถานีนั้น (FR-179) — บันทึกเป็น StationNumberBlock (ข้อ 5) ที่พก range_from range_to range_epoch ที่ไม่ซ้ำ valid_from และ valid_to พร้อมสถานีและเครื่องที่เป็นเจ้าของ สถานีออกเลขจากบล็อกที่ใช้งานเรียงลำดับ ขณะ offline โดยไม่ร้องขอต่อ gateway ใด การออกเลขเลื่อนเคอร์เซอร์ในเครื่องที่คงทน และไม่เคยข้ามหรือจองเลขไว้ใช้ภายหลัง การจ่ายล่วงหน้าเป็นการกระทำเชิงบริหารที่มีระเบียน ไม่ใช่บริการขณะทำงาน: เกิดก่อนฤดูกาลหรือตอนเติมบล็อก ไม่เคยเป็นการเรียกรายรายการ และไม่เพิ่มผู้จ่ายเลข ไม่เพิ่ม gateway และไม่เพิ่มข้อกำหนดด้านความพร้อมใช้ (H8) บล็อกถูกแทนที่ ไม่เคยถูกแก้ และบล็อกที่ถูกแทนที่ เพิกถอน หมดอายุ หรือใช้หมดแล้ว ตายแล้ว |
| FR-H50 | Local ordering is monotonic and durable; sync is idempotent. D Within one station the ordering authority stays the station-local monotonic sequence of FR-H18, and the number cursor of the active block advances with it: both are persisted before the act is acknowledged, survive a power loss, an app crash and a device restart, and are never decremented, reset, back-filled or edited by any role. Every issuance and every state change is captured into the applied StationJournal with its idempotency_key and its block epoch, and ingestion is upsert by that key at every hop (FR-H19), so a replay — of one record, of a day, or of a whole journal — produces no second number, no second allocation and no second event. A record that arrives hours or days late is accepted at its captured position and day (FR-H20, FR-H46) and never renumbered to fit the order in which it happened to arrive.การจัดลำดับในเครื่องเพิ่มขึ้นทางเดียวและคงทน; การ sync กันซ้ำ D ภายในสถานีหนึ่ง อำนาจจัดลำดับยังเป็นลำดับที่เพิ่มขึ้นทางเดียวในสถานีตาม FR-H18 และเคอร์เซอร์เลขของบล็อกที่ใช้งานเลื่อนไปพร้อมกัน: ทั้งสองถูกบันทึกลงที่เก็บถาวรก่อนตอบรับการกระทำ อยู่รอดไฟดับ แอปล่ม และการรีสตาร์ตเครื่อง และไม่เคยถูกลดค่า รีเซ็ต เติมย้อนหลัง หรือแก้โดยบทบาทใด การออกเลขและการเปลี่ยนสถานะทุกครั้งถูกเก็บเข้า StationJournal ที่ใช้จริงพร้อม idempotency_key และ epoch ของบล็อก และการรับเข้าเป็น upsert ด้วยคีย์นั้น ทุกทอด (FR-H19) การเล่นซ้ำ — หนึ่งระเบียน หนึ่งวัน หรือทั้ง journal — จึงไม่ผลิตเลขที่สอง การจัดสรรที่สอง และ event ที่สอง ระเบียนที่มาถึงช้าหลายชั่วโมงหรือหลายวันถูกรับไว้ที่ตำแหน่งและวันที่ เก็บ ได้ (FR-H20, FR-H46) และไม่เคยถูกให้เลขใหม่เพื่อให้เข้ากับลำดับที่มันบังเอิญมาถึง |
| FR-H51 | Six refusals, and a quarantine — but never a renumbering. D A number use is rejected at the point of use, or quarantined for reconciliation when it is already on paper, in each of six cases: duplicate (num.err.duplicate_number), expired block (num.err.block_expired), out of range (num.err.out_of_range), wrong station or wrong owning client (num.err.wrong_station), wrong or stale epoch (num.err.stale_epoch) and forked or reassigned range (num.err.forked_range, raised when two records claim one number under different epochs or two live blocks overlap). Every refusal and every quarantine carries complete audit evidence — the number as printed, the block and its epoch, the owning station and client, the device, the operator, the captured time, the journal entry and the sync lag — and appears in the station's exception queue as num.quar.pending_reconciliation. The platform never silently renumbers, never re-issues the record into another block and never discards it; a quarantined record is visible, unusable downstream, and resolved only by a named act (FR-H53).การปฏิเสธหกกรณี และการกักไว้ — แต่ไม่เคยให้เลขใหม่ D การใช้เลขถูก ปฏิเสธ ณ จุดใช้งาน หรือ กักไว้เพื่อกระทบยอด เมื่อมันอยู่บนกระดาษแล้ว ในหกกรณี: ซ้ำ (num.err.duplicate_number) บล็อกหมดอายุ (num.err.block_expired) นอกช่วง (num.err.out_of_range) ผิดสถานีหรือผิดเครื่องที่เป็นเจ้าของ (num.err.wrong_station) ผิดหรือเก่าค้าง epoch (num.err.stale_epoch) และ ช่วงที่แยกสายหรือถูกโอน (num.err.forked_range ยกขึ้นเมื่อสองระเบียนอ้างเลขเดียวกันภายใต้ epoch ต่างกัน หรือบล็อกที่ใช้อยู่สองชุดทับกัน) การปฏิเสธและการกักทุกครั้งพกหลักฐานตรวจสอบครบถ้วน — เลขตามที่พิมพ์ บล็อกและ epoch ของมัน สถานีและเครื่องที่เป็นเจ้าของ อุปกรณ์ ผู้ปฏิบัติงาน เวลาที่เก็บ รายการใน journal และระยะที่ sync ช้า — และปรากฏในคิวข้อยกเว้นของสถานีเป็น num.quar.pending_reconciliation แพลตฟอร์มไม่เคยให้เลขใหม่อย่างเงียบ ๆ ไม่เคยออกระเบียนซ้ำเข้าบล็อกอื่น และไม่เคยทิ้งมัน; ระเบียนที่ถูกกัก มองเห็นได้ ใช้ปลายทางไม่ได้ และชี้ขาดได้ด้วยการกระทำที่ระบุชื่อเท่านั้น (FR-H53) |
| FR-H52 | Stated out of scope, so nothing quietly depends on it. D This amendment introduces no transfer-station gateway, no new centralized allocator, no continuous central allocation, no automatic failover and no change to the applied high-availability ladder (A-2 warm standby with operator-attended two-act promotion; A-3 out of scope, FR-141). Should operations later require any of them, each is a separate proposal or amendment — and PROP-101 is designed so that it neither assumes nor depends on one: every rule here works with the station disconnected for a full shift. Two applied lines are restated because they are the floor under this posture and are not negotiable: certified scale weights are captured directly from the certified scale and are never manually entered or reconstructed (A-10, NFR-33), and physical paper remains the operational fallback already established by PROP-030 and NFR-57 — a degraded mode with a record, not an alternative allocator (FR-H21).ระบุว่าอยู่นอกขอบเขต เพื่อไม่ให้สิ่งใดขึ้นกับมันอย่างเงียบ ๆ D การแก้ไขนี้ไม่เพิ่ม gateway ที่สถานีขนถ่าย ผู้จ่ายเลขส่วนกลางตัวใหม่ การจ่ายเลขจากส่วนกลางแบบต่อเนื่อง การสลับอัตโนมัติ และการเปลี่ยนบันได high availability ที่ใช้จริง (A-2 warm standby ที่ผู้ปฏิบัติงานกดสองจังหวะ; A-3 อยู่นอกขอบเขต, FR-141) หากงานปฏิบัติการต้องการข้อใดภายหลัง แต่ละข้อเป็นข้อเสนอหรือการแก้ไขแยกฉบับ — และ PROP-101 ออกแบบให้ไม่สันนิษฐานและไม่ขึ้นกับสิ่งเหล่านั้น: กฎทุกข้อที่นี่ทำงานได้ขณะสถานีขาดการเชื่อมต่อทั้งกะ มีสองบรรทัดที่ใช้จริงซึ่งระบุซ้ำเพราะเป็นพื้นของท่าทีนี้และต่อรองไม่ได้: น้ำหนักจากตาชั่งที่รับรองถูกเก็บตรงจากตาชั่งที่รับรอง และไม่เคยถูกคีย์ด้วยมือหรือประกอบขึ้นใหม่ (A-10, NFR-33) และกระดาษกายภาพยังเป็นทางถอยเชิงปฏิบัติการที่ PROP-030 และ NFR-57 กำหนดไว้แล้ว — เป็นโหมดถดถอยที่มีระเบียน ไม่ใช่ผู้จ่ายเลขทางเลือก (FR-H21) |
| ID | Ruleกฎ |
|---|---|
| FR-H23 | Ownership, and the mechanism named exactly. Station facts are owned by the station tenant and become immutable at departure; factory facts are owned by the mill tenant and are written only by it. The link is X2, the applied network relation — mill ↔ quota, contract and delivery data, relation-scoped reads and not a grant — and the transfer station is a quota holder with its own quota number at that mill (applied), which is what makes the relation the right one and not a new mechanism. No fifth cross-tenant mechanism (NFR-65), no foreign key across the wall, no dual ownership and no undeclared shared object. Every shared read model built for reconciliation is registered as a seam row in tenantIsolation.seams with what it shares, who reaches it and what scopes it (A-102 R-SEAMS) — a duty of the applying change set, now discharged row by row under FR-H57 and the register of Section 12.3, because OQ-8 is CLOSED on X2 (confirmed Product Owner decision, 20 Aug 2026).ความเป็นเจ้าของ และกลไกที่ระบุตรง ๆ ข้อเท็จจริงของสถานีมี tenant ของสถานีเป็นเจ้าของ และ ไม่เปลี่ยนเมื่อออกเดินทาง; ข้อเท็จจริงของโรงงานมี tenant ของโรงงานเป็นเจ้าของ และเขียนโดยโรงงานเท่านั้น การเชื่อมคือ X2 ความสัมพันธ์เครือข่ายที่ใช้จริง — โรงงาน ↔ โควตา ข้อมูลสัญญาและการส่งมอบ การอ่านที่จำกัดตามความสัมพันธ์ ไม่ใช่การให้สิทธิ์ — และสถานีขนถ่าย เป็น ผู้ถือโควตาที่มีเลขโควตาของตัวเองที่โรงงานนั้น (ใช้จริง) ซึ่งเป็นเหตุที่ความสัมพันธ์นี้ถูกต้องและไม่ใช่กลไกใหม่ ไม่มีกลไกข้าม tenant ตัวที่ห้า (NFR-65) ไม่มี foreign key ข้ามกำแพง ไม่มีความเป็นเจ้าของร่วม และไม่มี object ที่แบ่งใช้โดยไม่ประกาศ read model ที่แบ่งใช้ทุกตัวที่สร้างเพื่อการกระทบยอดถูกลงทะเบียนเป็น แถว seam ใน tenantIsolation.seams พร้อมระบุว่าแบ่งอะไร ใครเข้าถึง และอะไรจำกัดขอบเขต (A-102 R-SEAMS) — เป็นหน้าที่ของชุดการเปลี่ยนแปลงตอน apply และปลดเปลื้องแล้วทีละแถวตาม FR-H57 และทะเบียนในข้อ 12.3 เพราะ OQ-8 ปิดแล้วบน X2 (คำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ 20 ส.ค. 2569) |
| FR-H24 | A mismatch is raised, never corrected across the wall. The factory weighbridge records arrival, certified weights, tipping and the bundle reconciliation against its own rows. Where its figures or its bundle disagree with the station's manifest, it raises a mismatch that appears in both tenants' exception queues; it does not edit a station allocation, void one, or renumber a note. The correction is made by the role that owns the act, on the station side, as a new superseding row.ความไม่ตรงกันถูกยกขึ้น ไม่เคยแก้ข้ามกำแพง ห้องชั่งโรงงานบันทึกการมาถึง น้ำหนักที่รับรอง การเท และการกระทบยอดชุดเอกสาร บนแถวของตัวเอง เมื่อค่าหรือชุดเอกสารของมันไม่ตรงกับใบกำกับของสถานี มัน ยกความไม่ตรงกัน ที่ปรากฏในคิวข้อยกเว้นของทั้งสอง tenant; มัน ไม่ แก้การจัดสรรของสถานี ไม่ยกเลิก และไม่ให้เลขใบใหม่ การแก้ทำโดยบทบาทที่เป็นเจ้าของการกระทำนั้น ที่ฝั่งสถานี ในรูปแถวใหม่ที่แทนที่ |
| FR-H25 | Two days, recorded separately, neither derived from the other. D — confirmed Product Owner decision, 20 Aug 2026, closing OQ-5; specified in full by FR-H45…FR-H48 below. Station facts carry station_operating_day — the station's own operating day on its applied 24:00 cutoff (NFR-57), stamped from the captured time. Factory facts carry mill_crushing_day_id — the applied CrushingDay, which is a mill concept with its own open and close. No record requires one day identifier across both sides, neither day is rewritten to agree with the other, and a consignment loaded before midnight and received after it simply carries both facts truthfully. Reports state which day they are counting on.สองวัน บันทึกแยกกัน ไม่ derive จากกัน D — คำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ 20 ส.ค. 2569 ปิด OQ-5; ระบุครบใน FR-H45…FR-H48 ด้านล่าง ข้อเท็จจริงของสถานีพก station_operating_day — วันทำการของสถานีเองบนการตัดวัน 24:00 ที่ใช้จริง (NFR-57) ประทับจากเวลาที่ เก็บ ข้อเท็จจริงของโรงงานพก mill_crushing_day_id — CrushingDay ที่ใช้จริง ซึ่งเป็นแนวคิดของโรงงานที่มีการเปิดและปิดของตัวเอง ไม่มีระเบียนใดต้องใช้ตัวระบุวันเดียวข้ามทั้งสองฝั่ง ไม่มีวันใดถูกเขียนทับให้ตรงกับอีกวัน และ consignment ที่บรรทุกก่อนเที่ยงคืนและถูกรับหลังเที่ยงคืน ก็เพียงพกข้อเท็จจริงทั้งสองไว้ตามความจริง รายงานระบุว่ากำลังนับด้วยวันไหน |
| FR-H45 | Which record carries which business day, stated exhaustively. D Station-owned facts carry station_operating_day, taken from the station's own clock on its applied 24:00 cutoff (NFR-57) at the moment the fact is captured: every StationBill, every TransferLoadAllocation, each per-unit TransferTruckNote weigh-out note, each TransferManifest version, and the departure record on TransferConsignment with its TransferConsignmentDeparted event. Factory-owned facts carry mill_crushing_day_id, assigned independently by the sugar factory under the factory's own crushing-day rules: arrival (ConsignmentReceipt and every UnitReceipt), the certified factory weight sequence and its WeighTicket, tipping, the quality/CCS result, and the factory's reconciliation record. Each stamp is written once, by its owner, beside the underlying timestamp, and is never inferred from the other side's stamp.ระเบียนใดพกวันทำการใด ระบุให้ครบ D ข้อเท็จจริงที่สถานีเป็นเจ้าของ พก station_operating_day จากนาฬิกาของสถานีเองบนการตัดวัน 24:00 ที่ใช้จริง (NFR-57) ณ วินาทีที่ เก็บ ข้อเท็จจริงนั้น: StationBill ทุกใบ TransferLoadAllocation ทุกรายการ ใบชั่งออก TransferTruckNote รายหน่วยแต่ละใบ TransferManifest แต่ละฉบับ และระเบียนการออกเดินทางบน TransferConsignment พร้อม event TransferConsignmentDeparted ข้อเท็จจริงที่โรงงานเป็นเจ้าของ พก mill_crushing_day_id ที่โรงงานน้ำตาลกำหนดเองอย่างเป็นอิสระตามกฎวันหีบของโรงงานเอง: การมาถึง (ConsignmentReceipt และ UnitReceipt ทุกแถว) ลำดับน้ำหนักที่โรงงานรับรองและ WeighTicket ของมัน การเท ผล คุณภาพ/CCS และระเบียนการกระทบยอดของโรงงาน ตราแต่ละดวงเขียน ครั้งเดียว โดยเจ้าของของมัน คู่กับตราเวลาที่อยู่เบื้องหลัง และไม่เคยอนุมานจากตราของอีกฝ่าย |
| FR-H46 | Neither side derives, rewrites, normalizes or backdates the other's business day. D A unit may legitimately depart the station before midnight and arrive after it, so the linked station and factory records may carry different dates — correct data, not a defect to clean. No process — sync, ingestion, nightly job, report builder, export, correction or migration — may recompute one side's day from the other's, shift a record into a neighbouring day so two figures agree, or set a day from the time a record was received rather than captured. A delayed-sync or late-arriving record keeps the day it was captured under; a crushing day is assigned when the factory records its own fact and never retroactively onto a station fact. A day correction is a superseding row with a reason and an actor, made by the owning side only (FR-H24, NFR-H4); an attempt to write the other side's day is refused with day.err.foreign_day_write.ไม่มีฝ่ายใด derive เขียนทับ ปรับให้เป็นมาตรฐาน หรือย้อนวันทำการของอีกฝ่าย D หน่วยออกจากสถานีก่อนเที่ยงคืนและมาถึงหลังเที่ยงคืนได้โดยชอบ ระเบียนของสถานีและของโรงงานที่เชื่อมกันจึงพกวันที่ต่างกันได้ — เป็นข้อมูลที่ถูกต้อง ไม่ใช่ข้อบกพร่องที่ต้องล้าง ไม่มีกระบวนการใด — sync การรับเข้า งานกลางคืน ตัวสร้างรายงาน การส่งออก การแก้ค่า หรือการย้ายข้อมูล — ที่คำนวณวันของฝ่ายหนึ่งจากของอีกฝ่าย เลื่อนระเบียนไปวันข้างเคียงเพื่อให้ตัวเลขสองค่าตรงกัน หรือกำหนดวันจากเวลาที่ได้รับระเบียนแทนเวลาที่เก็บ ระเบียนที่ sync ช้าหรือมาถึงช้าคงวันที่เก็บไว้; วันหีบถูกกำหนดเมื่อโรงงานบันทึกข้อเท็จจริงของตน และไม่เคยย้อนหลังไปทับข้อเท็จจริงของสถานี การแก้วันทำเป็นแถวใหม่ที่แทนที่ พร้อมเหตุผลและผู้กระทำ โดยฝ่ายที่เป็นเจ้าของเท่านั้น (FR-H24, NFR-H4); ความพยายามเขียนวันของอีกฝ่ายถูกปฏิเสธด้วย day.err.foreign_day_write |
| FR-H47 | Cross-tenant reconciliation preserves and displays both dates. D Every cross-tenant reconciliation record, and every read model built over one, carries both business days — the station's station_operating_day and the factory's mill_crushing_day_id — each with its underlying timestamp and its timezone (stored UTC, displayed ICT on the applied convention), each labelled with the side that owns it. The two sides are joined through the typed unit and consignment reference (FR-H23) and never by matching dates. A surface may not collapse them into one column, hide the one that disagrees, or show a single date without saying whose it is; where they differ, the difference is displayed as a difference and is not an exception by itself.การกระทบยอดข้าม tenant เก็บและแสดงวันทั้งสอง D ระเบียนการกระทบยอดข้าม tenant ทุกรายการ และ read model ทุกตัวที่สร้างจากมัน พกวันทำการ ทั้งสอง — station_operating_day ของสถานี และ mill_crushing_day_id ของโรงงาน — แต่ละค่าพร้อมตราเวลาที่อยู่เบื้องหลังและเขตเวลา (เก็บ UTC แสดง ICT ตามธรรมนูญที่ใช้จริง) และกำกับว่าฝ่ายใดเป็นเจ้าของ สองฝ่ายเชื่อมกันผ่านการอ้างอิงหน่วยและ consignment ที่มีชนิด (FR-H23) และไม่เชื่อมด้วยการจับคู่วันที่ หน้าจอจะยุบทั้งสองเป็นคอลัมน์เดียว ซ่อนค่าที่ไม่ตรง หรือแสดงวันเดียวโดยไม่บอกว่าเป็นของใครไม่ได้; เมื่อต่างกัน ส่วนต่างถูกแสดงในฐานส่วนต่าง และไม่เป็นข้อยกเว้นโดยตัวมันเอง |
| FR-H48 | Settlement, document indexing and reporting name the owning side's date. D There is no generic delivery_date in this model and no consumer may invent one. Settlement: farmer settlement on station weights and contractor haulage settlement read the station day; factory-side accruals, crush accounting and any figure computed from certified factory weight or CCS read the crushing day. Document indexing: the manifest index, the bundle listing and the station's note registers index by the station day; factory receipts, weigh tickets and quality records index by the crushing day. Reporting: every report and board states the basis it counted on by name (FR-H25, FR-H42), and a regulator-facing volume report counts on the applied crushing-day basis and says so. A query, report, export or API response that asks for a single undifferentiated delivery date is refused with recon.err.day_basis_unnamed rather than answered with a guess.การชำระเงิน การทำสารบัญเอกสาร และการรายงาน ระบุวันของฝ่ายที่เป็นเจ้าของ D ไม่มี delivery_date แบบรวมในโมเดลนี้ และไม่มีผู้ใช้คนใดคิดขึ้นเองได้ การชำระเงิน: การชำระของชาวไร่บนน้ำหนักสถานี และการชำระค่าขนส่งของผู้รับเหมา อ่านวันของสถานี; การตั้งค้างฝั่งโรงงาน การบัญชีการหีบ และค่าใดที่คำนวณจากน้ำหนักที่โรงงานรับรองหรือ CCS อ่านวันหีบ การทำสารบัญเอกสาร: สารบัญของใบกำกับ รายการชุดเอกสาร และทะเบียนใบชั่งของสถานี ทำสารบัญด้วยวันของสถานี; ใบรับของโรงงาน ใบชั่ง และระเบียนคุณภาพ ทำสารบัญด้วยวันหีบ การรายงาน: รายงานและกระดานทุกตัวระบุชื่อฐานวันที่ใช้นับ (FR-H25, FR-H42) และรายงานปริมาณที่ส่งผู้กำกับนับด้วยฐานวันหีบที่ใช้จริงและระบุไว้ คำขอข้อมูล รายงาน การส่งออก หรือคำตอบ API ที่ขอวันส่งมอบค่าเดียวที่ไม่แยกฝ่าย ถูก ปฏิเสธ ด้วย recon.err.day_basis_unnamed ไม่ใช่ตอบด้วยการเดา |
D The paper bundle is preserved exactly (Section 4, H13). What this section adds is the digital mirror and transport record in the platform cloud — the part the paper cannot do, because a bundle in a cab tells the factory nothing until it arrives.D ชุดกระดาษคงไว้ทุกประการ (ข้อ 4, H13) สิ่งที่ข้อนี้เพิ่มคือกระจกเงาดิจิทัลและระเบียนการขนส่งในคลาวด์ของแพลตฟอร์ม — ส่วนที่กระดาษทำไม่ได้ เพราะชุดเอกสารในห้องคนขับไม่บอกอะไรกับโรงงานเลยจนกว่าจะไปถึง
| ID | Ruleกฎ |
|---|---|
| FR-H37 | The closed manifest is the authoritative digital mirror of the bundle. On closure it indexes, per unit load: every bundled StationBill by delivery number, that unit's own weigh-out note by delivery number, the unit and its plate snapshot, and the station-certified dispatched tonnage of that unit — bound to the consignment and its journey. It is not a note and satisfies no statutory duty (H13); it is the record every downstream read resolves against.ใบกำกับที่ปิดแล้วคือกระจกเงาดิจิทัลที่มีอำนาจของชุดกระดาษ เมื่อปิด มันทำสารบัญ รายหน่วย: StationBill ทุกใบในชุดตามเลขที่ใบชั่ง ใบชั่งออกของหน่วยนั้นเองตามเลขที่ใบชั่ง หน่วยและ snapshot ทะเบียนของมัน และ ตันที่ส่งออกซึ่งสถานีรับรองของหน่วยนั้น — ผูกเข้ากับ consignment และการเดินทางของมัน มัน ไม่ใช่ ใบชั่งและไม่ทำหน้าที่ตามกฎหมายใด (H13); เป็นระเบียนที่การอ่านปลายทางทุกครั้ง resolve เทียบ |
| FR-H38 | Departure emits an in-transit consignment fact. On departure the platform records and publishes: the consignment and its units, vehicle and driver or contractor reference as permitted, origin station, destination factory, departure time, route or route reference where one is known, dispatched tonnage per unit, and an ETA with its source and its as-of time. Every figure states where it came from; nothing is presented as measured that was estimated.การออกเดินทางปล่อยข้อเท็จจริงว่า consignment อยู่ระหว่างขนส่ง เมื่อออกเดินทาง แพลตฟอร์มบันทึกและเผยแพร่: consignment และหน่วยของมัน รถ และ การอ้างถึงคนขับหรือผู้รับเหมาเท่าที่อนุญาต สถานีต้นทาง โรงงานปลายทาง เวลาออกเดินทาง เส้นทางหรือการอ้างถึงเส้นทาง เมื่อทราบ ตันที่ส่งออกรายหน่วย และ ETA พร้อมแหล่งและเวลา as-of ตัวเลขทุกค่าระบุว่ามาจากไหน; ไม่มีค่าที่ประมาณถูกนำเสนอว่าวัดได้ |
| FR-H39 | The factory sees inbound tonnage and ETA before arrival. The destination factory reads, for every in-transit consignment bound to it: actual station-dispatched tonnage (not an estimate), unit count and configuration, ETA with its state, and the manifest index it will be handed on paper. This is a read across the seam (Section 12) — the factory writes nothing station-owned by reading it.โรงงานเห็นตันขาเข้าและ ETA ก่อนการมาถึง โรงงานปลายทางอ่านข้อมูลของ consignment ที่อยู่ระหว่างขนส่งซึ่งมุ่งมาที่ตน: ตันที่สถานีส่งออกจริง (ไม่ใช่ค่าประมาณ) จำนวนและการจัดหน่วย ETA พร้อมสถานะ และสารบัญของใบกำกับที่จะได้รับเป็นกระดาษ นี่คือการอ่านข้าม seam (ข้อ 12) — โรงงานไม่เขียนสิ่งที่สถานีเป็นเจ้าของโดยการอ่าน |
| FR-H40 | ETA has a source, an as-of time and an honest degradation. An ETA is fresh while its inputs are current, stale once its as-of time is older than the published freshness bound, and unavailable when there is no input at all. A stale ETA is shown as stale with its age, and an unavailable one is shown as unavailable — never silently extrapolated, never replaced by a plan time presented as a live estimate. Where the only input is a departure time and a route reference, the ETA declares itself schedule-derived. A location or ETA that stops updating degrades the display, never the record, and a late-arriving batch of positions after a sync gap is accepted, attributed to its captured times, and re-derives the ETA once (FR-H20).ETA มีแหล่ง มีเวลา as-of และมีการเสื่อมสภาพอย่างตรงไปตรงมา ETA เป็น fresh ขณะข้อมูลนำเข้ายังใหม่ เป็น stale เมื่อเวลา as-of เก่ากว่าขอบเขตความสดที่ประกาศไว้ และเป็น unavailable เมื่อไม่มีข้อมูลนำเข้าเลย ETA ที่ stale ถูกแสดงว่า stale พร้อมอายุของมัน และค่าที่ไม่มีถูกแสดงว่าไม่มี — ไม่เคยประมาณต่อแบบเงียบ ๆ ไม่เคยเอาเวลาตามแผนมาแสดงเป็นค่าประมาณสด เมื่อข้อมูลนำเข้ามีเพียงเวลาออกเดินทางและการอ้างถึงเส้นทาง ETA ประกาศตัวว่าเป็น ค่าที่ได้จากตาราง ตำแหน่งหรือ ETA ที่หยุดอัปเดต ทำให้การแสดงเสื่อมลง ไม่ใช่ระเบียน และชุดตำแหน่งที่มาถึงช้าหลังช่วง sync ขาด ถูกรับไว้ ปันให้เวลาที่เก็บได้ และ derive ETA ใหม่หนึ่งครั้ง (FR-H20) |
| FR-H41 | Arrival reconciles four things per unit, and rewrites nothing. At the factory, for each arriving unit: dispatched tonnage (station-certified, from the mirror), received tonnage (the factory's own certified weight sequence), the document bundle of that unit (expected · presented · missing · unexpected, FR-H4) and the exceptions standing on either side. Differences are recorded and raised (FR-H24); no station-owned fact is rewritten from the factory side (NFR-H4), and no unit's figures are merged with another unit's (H14).การมาถึงกระทบยอดสี่สิ่งรายหน่วย และไม่เขียนทับอะไร ที่โรงงาน สำหรับหน่วยที่มาถึงแต่ละตัว: ตันที่ ส่งออก (สถานีรับรอง จากกระจกเงา) ตันที่ รับได้ (ลำดับการชั่งที่รับรองของโรงงานเอง) ชุดเอกสาร ของหน่วยนั้น (คาดว่าจะมี · ยื่นมา · ขาด · เกิน ตาม FR-H4) และ ข้อยกเว้น ที่ค้างอยู่ทั้งสองฝั่ง ส่วนต่างถูกบันทึกและยกขึ้น (FR-H24); ไม่มีข้อเท็จจริงที่สถานีเป็นเจ้าของถูกเขียนทับจากฝั่งโรงงาน (NFR-H4) และค่าของหน่วยหนึ่งไม่ถูกรวมกับของอีกหน่วย (H14) |
| ID | Ruleกฎ |
|---|---|
| FR-H42 | Operational visibility, as reads with no writer. Read models: the inbound consignment board per factory (in transit, ETA, lateness state, unit configuration, dispatched tonnage); tonnage currently in transit, as a derived roll-up labelled derived (H14); truck status and turnaround — at station, loading, departed, in transit, at factory, unloading, released; queue and wait time where the applied queue records supply it; utilization per vehicle and per contractor; empty and loaded movement only where evidence exists to distinguish them; trip completion; and route and ETA accuracy as predicted versus actual. Every figure carries its as-of stamp and its source, and every board says which day basis it counts on (FR-H25).การมองเห็นเชิงปฏิบัติการ ในรูปการอ่านที่ไม่มีผู้เขียน read model: กระดานขาเข้ารายโรงงาน (อยู่ระหว่างขนส่ง ETA สถานะความล่าช้า การจัดหน่วย ตันที่ส่งออก); ตันที่อยู่ระหว่างขนส่งขณะนี้ เป็นผลรวมที่ derive และกำกับว่า derive (H14); สถานะรถและรอบการหมุนรถ — ที่สถานี กำลังบรรทุก ออกเดินทางแล้ว ระหว่างขนส่ง ที่โรงงาน กำลังลง ปล่อยแล้ว; คิวและเวลารอ เมื่อระเบียนคิวที่ใช้จริงให้ข้อมูล; อัตราการใช้งาน รายรถและรายผู้รับเหมา; การวิ่งเปล่าและวิ่งบรรทุก เฉพาะเมื่อมีหลักฐานแยกทั้งสองได้; การจบเที่ยว; และ ความแม่นของเส้นทางและ ETA เทียบค่าที่ทำนายกับค่าจริง ตัวเลขทุกค่าพกตรา as-of และแหล่งของตน และกระดานทุกกระดานระบุว่านับด้วยฐานวันไหน (FR-H25) |
| FR-H43 | The data is collected so optimization can later be designed — and nothing more is promised. Dispatch, fleet and transport-utilization optimization needs evidence before it needs an algorithm: this draft specifies what is measured and stored, and declines to specify a recommender that has not been designed. Any future optimization is its own proposal, argued on a season of these measurements; until then no screen suggests a dispatch, ranks a contractor or predicts a saving.ข้อมูลถูกเก็บเพื่อให้ออกแบบการเพิ่มประสิทธิภาพได้ภายหลัง — และไม่สัญญาอะไรมากกว่านั้น การเพิ่มประสิทธิภาพการจัดรถ กองรถ และการใช้ประโยชน์การขนส่ง ต้องการหลักฐานก่อนต้องการอัลกอริทึม: ร่างนี้ระบุ สิ่งที่วัดและเก็บ และ ปฏิเสธที่จะระบุตัวแนะนำที่ยังไม่ได้ออกแบบ การเพิ่มประสิทธิภาพในอนาคตเป็นข้อเสนอของตัวเอง โต้แย้งบนหนึ่งฤดูกาลของการวัดเหล่านี้; จนกว่าจะถึงตอนนั้น ไม่มีหน้าจอใดเสนอการจัดรถ จัดอันดับผู้รับเหมา หรือทำนายการประหยัด |
| FR-H44 | Privacy and tenant boundaries on transport data. A driver reference is carried only as permitted and never as a location history of a person; position and ETA data are the station tenant's facts, read by the destination factory across the applied seam and by the contractor for its own vehicles only (Section 12, NFR-65). No contractor sees another contractor's rows, no factory sees a consignment not bound to it, and no board resolves a person's movements. Retention for position data is declared with the seam row and is the shortest that serves the measured outcomes.ความเป็นส่วนตัวและขอบเขต tenant บนข้อมูลการขนส่ง การอ้างถึงคนขับพก เท่าที่อนุญาต เท่านั้น และไม่เคยเป็นประวัติตำแหน่งของบุคคล; ข้อมูลตำแหน่งและ ETA เป็นข้อเท็จจริงของ tenant สถานี อ่านโดยโรงงานปลายทางข้าม seam ที่ใช้จริง และโดยผู้รับเหมาสำหรับรถ ของตัวเอง เท่านั้น (ข้อ 12, NFR-65) ไม่มีผู้รับเหมาเห็นแถวของรายอื่น ไม่มีโรงงานเห็น consignment ที่ไม่ได้มุ่งมาที่ตน และไม่มีกระดานใด resolve การเคลื่อนไหวของบุคคล ระยะเก็บข้อมูลตำแหน่งประกาศพร้อมแถว seam และสั้นที่สุดเท่าที่ยังได้ผลที่วัดไว้ |
D OQ-8 is closed on X2 (20 Aug 2026). This subsection states what the applying change set must declare, row by row, before anything is built — because a seam that is described in prose and not declared in the register is a seam nobody can audit and nobody can revoke.D OQ-8 ปิดแล้วบน X2 (20 ส.ค. 2569) ข้อย่อยนี้ระบุสิ่งที่ชุดการเปลี่ยนแปลงตอน apply ต้องประกาศทีละแถวก่อนสร้างสิ่งใด — เพราะ seam ที่บรรยายไว้เป็นร้อยแก้วแต่ไม่ประกาศในทะเบียน คือ seam ที่ไม่มีใครตรวจสอบได้และไม่มีใครเพิกถอนได้
| ID | Ruleกฎ |
|---|---|
| FR-H54 | X2 is the mechanism, and the fallback is narrow and blocking. D The station↔factory seam resolves through the applied X2 network relation between the transfer-station tenant and the named destination factory, on the ground that the station holds its own quota account at that factory (A-105). No fifth cross-tenant mechanism is created (A-102, NFR-65), no foreign key crosses the wall, and nothing about X2 is broadened, generalised or made transitive to reach this design. If implementation review proves the applied X2 definition cannot legally represent this exact station–factory relationship, the only permitted fallback is a narrowly scoped X1 consent grant, recorded as a blocking correction before application — scoped to the same facts, the same direction and the same named factory, and never wider.X2 คือกลไก และทางถอยแคบและกั้นการ apply D seam สถานี↔โรงงาน resolve ผ่านความสัมพันธ์เครือข่าย X2 ที่ใช้จริงระหว่าง tenant ของสถานีขนถ่ายกับโรงงานปลายทางที่ระบุชื่อ บนเหตุที่สถานีถือบัญชีโควตาของตัวเองที่โรงงานนั้น (A-105) ไม่สร้างกลไกข้าม tenant ตัวที่ห้า (A-102, NFR-65) ไม่มี foreign key ข้ามกำแพง และไม่มีการขยาย ทำให้ทั่วไป หรือทำให้ส่งทอดของ X2 เพื่อให้ถึงการออกแบบนี้ หากการทบทวนตอนสร้างพิสูจน์ว่านิยาม X2 ที่ใช้จริงแทนความสัมพันธ์สถานี–โรงงานนี้โดยชอบไม่ได้ ทางถอยที่อนุญาตทางเดียวคือ consent grant X1 ที่จำกัดขอบเขตแคบ บันทึกเป็นการแก้ที่กั้นการ apply ก่อน apply — จำกัดที่ข้อเท็จจริงชุดเดียวกัน ทิศทางเดียวกัน และโรงงานที่ระบุชื่อเดียวกัน และไม่กว้างกว่านั้นเลย |
| FR-H55 | Directional ownership, stated exhaustively. D The transfer-station tenant owns and publishes: its StationBill records, the per-unit manifest and bundle membership, the station-certified dispatched weight per unit, the departure facts, and route and ETA. The destination-factory tenant owns and publishes: arrival, the certified factory weight, tipping, CCS/quality, and its reconciliation facts. Publication is one-way per fact: the owner writes it, the counterparty reads it, and the read confers no authority. The station declares and dispatches the transfer; the named destination factory may accept the receipt, reject it, or record mismatches — without rewriting the station record (FR-H24, FR-H41). Neither tenant may create, modify, overwrite, normalize, backdate or delete a fact owned by the other — refused by the database, not by convention (NFR-H4, seam.err.foreign_fact_write).ความเป็นเจ้าของที่มีทิศทาง ระบุให้ครบ D tenant ของสถานีขนถ่ายเป็นเจ้าของและเผยแพร่: ระเบียน StationBill ของตน ใบกำกับรายหน่วยและสมาชิกชุดเอกสาร น้ำหนักที่ส่งออกซึ่งสถานีรับรองรายหน่วย ข้อเท็จจริงการออกเดินทาง และเส้นทางกับ ETA tenant ของโรงงานปลายทางเป็นเจ้าของและเผยแพร่: การมาถึง น้ำหนักที่โรงงานรับรอง การเท คุณภาพ/CCS และข้อเท็จจริงการกระทบยอดของตน การเผยแพร่เป็นทางเดียวต่อข้อเท็จจริงหนึ่งรายการ: เจ้าของเขียน คู่สัญญาอ่าน และการอ่านไม่ให้อำนาจใด สถานีประกาศและส่งออกการขนถ่าย; โรงงานปลายทางที่ระบุชื่อรับใบรับ ปฏิเสธ หรือบันทึกความไม่ตรงกันได้ — โดยไม่เขียนระเบียนของสถานีทับ (FR-H24, FR-H41) ไม่มี tenant ใดสร้าง แก้ เขียนทับ ปรับให้เป็นมาตรฐาน ย้อนวัน หรือลบข้อเท็จจริงที่อีกฝ่ายเป็นเจ้าของ — ปฏิเสธโดยฐานข้อมูล ไม่ใช่โดยธรรมเนียม (NFR-H4, seam.err.foreign_fact_write) |
| FR-H56 | Minimum facts, one referenced unit, one named factory — and typed joins only. D A read across the seam returns only the minimum shared facts needed for the specifically referenced physical transfer unit and consignment and its named destination factory. A station relationship with one factory grants no access to: another factory, a sibling factory of the same group, an unrelated transfer, an unrelated StationBill, or any other station's data. Every shared read model is derived from typed transfer-unit and consignment references (consignment_ref_ext, the unit reference — Section 6) and is never inferred from matching dates, weights, note numbers or vehicle identity: a join that would resolve two records because their figures agree is refused with seam.err.untyped_join, and a request outside the referenced scope with seam.err.out_of_scope_record or seam.err.wrong_factory. Group membership, common ownership and a shared contractor create no reach of their own (A-102 — nothing becomes transitive).ข้อเท็จจริงขั้นต่ำ หนึ่งหน่วยที่อ้างถึง หนึ่งโรงงานที่ระบุชื่อ — และเชื่อมด้วยชนิดเท่านั้น D การอ่านข้าม seam คืนเฉพาะข้อเท็จจริงที่แบ่งใช้ขั้นต่ำที่จำเป็นสำหรับหน่วยขนถ่ายกายภาพและ consignment ที่อ้างถึงเจาะจง และโรงงานปลายทางที่ระบุชื่อของมัน ความสัมพันธ์ของสถานีกับโรงงานหนึ่งไม่ให้สิทธิ์เข้าถึง: โรงงานอื่น โรงงานพี่น้องในเครือเดียวกัน การขนถ่ายที่ไม่เกี่ยว StationBill ที่ไม่เกี่ยว หรือข้อมูลของสถานีอื่นใด read model ที่แบ่งใช้ทุกตัว derive จากการอ้างอิงหน่วยขนถ่ายและ consignment ที่มีชนิด (consignment_ref_ext และการอ้างอิงหน่วย — ข้อ 6) และไม่เคยอนุมานจากวันที่ น้ำหนัก เลขที่ใบ หรืออัตลักษณ์ของรถที่ตรงกัน: การเชื่อมที่จะ resolve สองระเบียนเพราะตัวเลขตรงกัน ถูกปฏิเสธด้วย seam.err.untyped_join และคำขอนอกขอบเขตที่อ้างถึง ด้วย seam.err.out_of_scope_record หรือ seam.err.wrong_factory การอยู่ในเครือเดียวกัน การมีเจ้าของร่วม และการใช้ผู้รับเหมารายเดียวกัน ไม่ สร้างการเข้าถึงของตัวเอง (A-102 — ไม่มีสิ่งใดกลายเป็นแบบส่งทอด) |
| FR-H57 | One declared permission row per shared command, event and read model. D The applying change set declares, in the same change set and before anything is built, a tenant-seam permission row for every shared command, event and read model across this seam, registered in tenantIsolation.seams (A-102 R-SEAMS). Each row states: the mechanism (X2) and the relation it rides · the direction (station→factory or factory→station) · the publishing party and the reading party · the exact fields shared, at least privilege · the purpose it is limited to, beyond which the same data may not be reused · the scoping key (the typed unit and consignment reference and the named destination factory) · the audit history, provenance and correlation it must carry · and its refusal behaviour. An undeclared command, event or read model is not permitted to exist — the absence of a row is a refusal, not a default allow.หนึ่งแถวสิทธิ์ที่ประกาศไว้ ต่อคำสั่ง event และ read model ที่แบ่งใช้หนึ่งอย่าง D ชุดการเปลี่ยนแปลงตอน apply ประกาศ ในชุดเดียวกันและก่อนสร้างสิ่งใด แถวสิทธิ์ของ seam ระหว่าง tenant สำหรับทุก คำสั่ง event และ read model ที่แบ่งใช้ข้าม seam นี้ ลงทะเบียนใน tenantIsolation.seams (A-102 R-SEAMS) แต่ละแถวระบุ: กลไก (X2) และความสัมพันธ์ที่มันอาศัย · ทิศทาง (สถานี→โรงงาน หรือ โรงงาน→สถานี) · ฝ่ายที่เผยแพร่และฝ่ายที่อ่าน · ฟิลด์ที่แบ่งใช้อย่างเจาะจง ตามหลักสิทธิ์น้อยที่สุด · วัตถุประสงค์ที่จำกัดไว้ ซึ่งเกินจากนั้นนำข้อมูลเดิมไปใช้ซ้ำไม่ได้ · คีย์จำกัดขอบเขต (การอ้างอิงหน่วยและ consignment ที่มีชนิด และโรงงานปลายทางที่ระบุชื่อ) · ประวัติการตรวจสอบ ที่มา และ correlation ที่ต้องพก · และพฤติกรรมการปฏิเสธ คำสั่ง event หรือ read model ที่ไม่ได้ประกาศ มีอยู่ไม่ได้ — การไม่มีแถวคือการปฏิเสธ ไม่ใช่การอนุญาตโดยปริยาย |
| FR-H58 | Refusal is a behaviour, and a revoked relation stops the reading — not the record. D Every refusal across the seam is explicit, named, logged and correlated: it returns a named code, records the caller's tenant, the relation it claimed, the scope it asked for and the correlation id (NFR-155), and it reveals nothing about the record it refused — an existence-disclosing "not found for you" is itself a leak and is refused in the same shape as a denial. When the X2 relation is revoked, expired or invalid, cross-seam reads stop at once (seam.err.relation_revoked, seam.err.no_relation); no cached read model keeps serving the data, and no previously granted scope survives as an implicit permission. What does not change is the record: facts already written by their owner stand, are not deleted, not hidden from their owner and not rewritten — a revocation ends an access, never a fact.การปฏิเสธเป็นพฤติกรรม และความสัมพันธ์ที่ถูกเพิกถอนหยุดการอ่าน ไม่ใช่หยุดระเบียน D การปฏิเสธข้าม seam ทุกครั้งชัดแจ้ง มีชื่อ บันทึกไว้ และมี correlation: คืนรหัสที่ระบุชื่อ บันทึก tenant ของผู้เรียก ความสัมพันธ์ที่อ้าง ขอบเขตที่ขอ และ correlation id (NFR-155) และไม่เปิดเผยอะไรเกี่ยวกับระเบียนที่ปฏิเสธ — คำตอบทำนอง "ไม่พบสำหรับคุณ" ที่บอกใบ้ว่ามีอยู่จริง เป็นการรั่วในตัวมันเอง และถูกปฏิเสธในรูปเดียวกับการไม่อนุญาต เมื่อความสัมพันธ์ X2 ถูกเพิกถอน หมดอายุ หรือไม่สมบูรณ์ การอ่านข้าม seam หยุดทันที (seam.err.relation_revoked, seam.err.no_relation); ไม่มี read model ที่แคชไว้เสิร์ฟข้อมูลต่อ และไม่มีขอบเขตที่เคยให้ไว้อยู่รอดในฐานะสิทธิ์โดยปริยาย สิ่งที่ไม่เปลี่ยนคือระเบียน: ข้อเท็จจริงที่เจ้าของเขียนไว้แล้วยังคงอยู่ ไม่ถูกลบ ไม่ถูกซ่อนจากเจ้าของ และไม่ถูกเขียนทับ — การเพิกถอนจบการเข้าถึง ไม่เคยจบข้อเท็จจริง |
| Shared thing (seam row)สิ่งที่แบ่งใช้ (แถว seam) | Direction · publisher → readerทิศทาง · ผู้เผยแพร่ → ผู้อ่าน | Minimum fields · purpose · refusalฟิลด์ขั้นต่ำ · วัตถุประสงค์ · การปฏิเสธ |
|---|---|---|
| seam.transfer.inbound_consignment | Station → factory (read model)สถานี → โรงงาน (read model) | Consignment and unit references, unit count and configuration, station-certified dispatched kg per unit, departure time with timezone, station_operating_day, route reference, ETA with source, as-of and state. Purpose: receiving preparation and inbound planning at the named destination factory only. Refuses: any consignment not bound to this factory (seam.err.wrong_factory), any other station's traffic, and any field beyond this list.การอ้างอิง consignment และหน่วย จำนวนและการจัดหน่วย กิโลกรัมที่ส่งออกซึ่งสถานีรับรองรายหน่วย เวลาออกเดินทางพร้อมเขตเวลา station_operating_day การอ้างถึงเส้นทาง ETA พร้อมแหล่ง เวลา as-of และสถานะ วัตถุประสงค์: การเตรียมรับและวางแผนขาเข้าที่โรงงานปลายทางที่ระบุชื่อเท่านั้น ปฏิเสธ: consignment ที่ไม่ได้ผูกกับโรงงานนี้ (seam.err.wrong_factory) การจราจรของสถานีอื่น และฟิลด์ใดนอกรายการนี้ |
| seam.transfer.unit_bundle_index | Station → factory (read model)สถานี → โรงงาน (read model) | Per arriving unit: its own note number as printed, the expected bundle membership (delivery numbers), and the manifest version and hash. Purpose: bundle reconciliation at the weighbridge for that unit. Refuses: another unit's bundle, another consignment's index, a farmer's identity or quota beyond what the note itself prints (FR-H44), and any write.รายหน่วยที่มาถึง: เลขที่ใบของหน่วยนั้นตามที่พิมพ์ สมาชิกชุดเอกสารที่คาดว่าจะมี (เลขที่ใบชั่ง) และฉบับกับ hash ของใบกำกับ วัตถุประสงค์: การกระทบยอดชุดเอกสารที่ห้องชั่งสำหรับหน่วยนั้น ปฏิเสธ: ชุดเอกสารของหน่วยอื่น สารบัญของ consignment อื่น อัตลักษณ์หรือโควตาของชาวไร่เกินกว่าที่ใบพิมพ์ไว้เอง (FR-H44) และการเขียนทุกชนิด |
| seam.transfer.consignment_declared | Station → factory (event)สถานี → โรงงาน (event) | TransferConsignmentInTransit and ConsignmentETARevised, carrying provenance and a correlation id. Purpose: notify the named factory that a declared transfer is on the road. Refuses: delivery to any tenant that is not the named destination; the event confers no write capability and no standing subscription to the station's other traffic.TransferConsignmentInTransit และ ConsignmentETARevised พร้อมที่มาและ correlation id วัตถุประสงค์: แจ้งโรงงานที่ระบุชื่อว่ามีการขนถ่ายที่ประกาศแล้วอยู่บนถนน ปฏิเสธ: การส่งไปยัง tenant ที่ไม่ใช่ปลายทางที่ระบุชื่อ; event ไม่ให้ความสามารถในการเขียน และไม่ให้การรับข่าวถาวรต่อการจราจรอื่นของสถานี |
| seam.transfer.receipt_outcome | Factory → station (event + read model)โรงงาน → สถานี (event + read model) | The factory's own outcome per unit: received | refused with reason and actor, arrival time, mill_crushing_day_id, certified received kg, and the recorded mismatches. Purpose: letting the station see what happened to its own dispatch. Refuses: any attempt by the factory to write a station row in the same act (seam.err.foreign_fact_write), and any read by the station of another station's receipts.ผลของโรงงานเองรายหน่วย: received | refused พร้อมเหตุผลและผู้กระทำ เวลามาถึง mill_crushing_day_id กิโลกรัมที่รับซึ่งรับรองแล้ว และความไม่ตรงกันที่บันทึกไว้ วัตถุประสงค์: ให้สถานีเห็นว่าเกิดอะไรกับการส่งออกของตัวเอง ปฏิเสธ: ความพยายามของโรงงานที่จะเขียนแถวของสถานีในการกระทำเดียวกัน (seam.err.foreign_fact_write) และการอ่านใบรับของสถานีอื่นโดยสถานีนี้ |
| seam.transfer.quality_result | Factory → station (read model)โรงงาน → สถานี (read model) | The CCS/quality result of that unit, with status (provisional or confirmed), source and as-of. Purpose: attribution to the bills allocated to that unit, unchanged (H6, H14). Refuses: another unit's result, a day-average the station did not receive cane under, and any derived figure the factory has not published itself.ผล CCS/คุณภาพของหน่วยนั้น พร้อมสถานะ (ชั่วคราวหรือยืนยัน) แหล่ง และเวลา as-of วัตถุประสงค์: การปันส่วนให้ใบที่จัดสรรบนหน่วยนั้นโดยไม่เปลี่ยนค่า (H6, H14) ปฏิเสธ: ผลของหน่วยอื่น ค่าเฉลี่ยรายวันที่สถานีไม่ได้รับอ้อยภายใต้ และค่า derive ใด ๆ ที่โรงงานไม่ได้เผยแพร่เอง |
| seam.transfer.mismatch_raise | Both directions (command)สองทิศทาง (คำสั่ง) | Raise a mismatch visible in both exception queues, naming the unit reference, the figures each side owns, and the correlation id. Purpose: reconciliation. Refuses: a mismatch that would edit, void or renumber the other side's record — the raise is the whole capability (FR-H24), and the correction is made by the owning role as a superseding row.ยกความไม่ตรงกันให้ปรากฏในคิวข้อยกเว้นทั้งสองฝ่าย ระบุการอ้างอิงหน่วย ตัวเลขที่แต่ละฝ่ายเป็นเจ้าของ และ correlation id วัตถุประสงค์: การกระทบยอด ปฏิเสธ: ความไม่ตรงกันที่จะแก้ ยกเลิก หรือให้เลขใหม่แก่ระเบียนของอีกฝ่าย — การยกขึ้นคือความสามารถทั้งหมดที่มี (FR-H24) และการแก้ทำโดยบทบาทที่เป็นเจ้าของในรูปแถวที่แทนที่ |
| Objectobject | States and the acts that move themสถานะและการกระทำที่ทำให้เปลี่ยน |
|---|---|
| StationBill A | Applied status, unchanged — the document's own life, including the applied cut outcome (FR-176). Derived progress (a read model, no column): coverage = unallocated | allocated — binary, because one intake takes one live allocation for the complete load (H12); downstream = the stage its one live allocation has reached (on_yard · in_transit · received · weight_seen · ccs_attributed · settled), shown as a set and not collapsed. Partial receipt across a cut pair — the two bills of one physical arrival travelling on different consignments — is therefore expressible without inventing a state, while a single bill is never half-received; settlement remains per quota account (A-105) and late CCS leaves a bill fully received and still awaiting attribution, honestly stamped.สถานะที่ใช้จริง ไม่เปลี่ยน — ชีวิตของเอกสารเอง รวมผลลัพธ์ cut ที่ใช้จริง (FR-176) ความคืบหน้าที่ derive (read model ไม่มีคอลัมน์): ความครอบคลุม = unallocated | allocated — เป็นสองค่า เพราะการรับอ้อยหนึ่งครั้งใช้การจัดสรรที่ใช้งานหนึ่งรายการสำหรับการบรรทุกทั้งคัน (H12); ปลายทาง = ขั้นที่การจัดสรรที่ใช้งานรายการเดียวของมันไปถึง (on_yard · in_transit · received · weight_seen · ccs_attributed · settled) แสดงเป็นเซต ไม่ยุบรวม การรับบางส่วนในคู่ใบที่ตัด — ใบสองใบของการมาถึงทางกายภาพเดียวที่เดินทางบน consignment ต่างกัน — จึงเขียนได้โดยไม่ต้องคิดสถานะขึ้นใหม่ ขณะที่ใบใบเดียวไม่เคยถูกรับครึ่งเดียว; การชำระยังเป็นรายบัญชีโควตา (A-105) และ CCS ที่มาช้า ทำให้ใบถูกรับครบแล้วแต่ยังรอการปันส่วน โดยประทับไว้ตามตรง |
| TransferConsignment | planned → loading → manifest_closed → departed → reconciled → closed, plus aborted (accident, breakdown) as a terminal-with-successor state, never a deletion. Arrival, weighing, tipping and refusal are not states of this object — they are factory facts on ConsignmentReceipt (Section 12), and the station's read of them comes across the seam.planned → loading → manifest_closed → departed → reconciled → closed บวก aborted (อุบัติเหตุ เครื่องเสีย) เป็นสถานะปลายทางที่มีผู้สืบทอด ไม่ใช่การลบ การมาถึง การชั่ง การเท และการปฏิเสธ ไม่ใช่สถานะของ object นี้ — เป็นข้อเท็จจริงของโรงงานบน ConsignmentReceipt (ข้อ 12) และการอ่านของสถานีมาข้าม seam |
| TransferUnitLoad | empty → loading → full → sealed → departed → closed. full is an operational fact recorded by the loading operator, and it is what triggers the applied cut-and-reopen on the intake in progress rather than a silent overflow. Factory-side stages (weighed, tipped, attributed) are read across the seam and are not states written here.empty → loading → full → sealed → departed → closed full เป็นข้อเท็จจริงเชิงปฏิบัติการที่ผู้ปฏิบัติงานบรรทุกบันทึก และเป็นสิ่งที่กระตุ้นการตัดใบแล้วเปิดใหม่ที่ใช้จริงกับการรับอ้อยที่กำลังทำ แทนการล้นแบบเงียบ ขั้นฝั่งโรงงาน (ชั่งแล้ว เทแล้ว ปันส่วนแล้ว) อ่านข้าม seam และไม่ใช่สถานะที่เขียนที่นี่ |
| TransferLoadAllocation | live → superseded | voided, and nothing else: an allocation is never edited, and every correction is a new live row pointing back through supersedes_allocation_id. Closure reasons: wrong_unit · duplicate · reassigned_before_departure · unit_substituted · bill_cut · over_allocated · aborted_journey · operator_error · migration_reconciled.live → superseded | voided และไม่มีอย่างอื่น: การจัดสรรไม่เคยถูกแก้ทับ และการแก้ทุกครั้งเป็นแถวใหม่ที่ใช้งานซึ่งชี้ย้อนผ่าน supersedes_allocation_id เหตุผลการปิด: wrong_unit · duplicate · reassigned_before_departure · unit_substituted · bill_cut · over_allocated · aborted_journey · operator_error · migration_reconciled |
| TransferManifest | draft → open → closed → superseded (on reopen) → archived. Closing is the departure gate of FR-H9: it freezes the line set, stamps the hash and the expected-note index, and is the last moment an allocation may be added or reassigned without an exception. A reopen creates version n+1; version n stays readable with its hash.draft → open → closed → superseded (เมื่อเปิดใหม่) → archived การปิดคือประตูออกเดินทางตาม FR-H9: ตรึงชุดบรรทัด ประทับ hash และสารบัญใบที่คาดว่าจะมี และเป็นวินาทีสุดท้ายที่เพิ่มหรือย้ายการจัดสรรได้โดยไม่เป็นข้อยกเว้น การเปิดใหม่สร้างฉบับ n+1; ฉบับ n ยังอ่านได้พร้อม hash ของมัน |
| TransferTruckNote | issued → surrendered → reconciled, plus spoiled (re-run whole at the bridge, A-36) and lost (replacement only at the mill cane office, marked COPY — the applied remedy, not a new one).issued → surrendered → reconciled บวก spoiled (พิมพ์ใหม่ทั้งชุดที่ห้องชั่ง ตาม A-36) และ lost (ออกใหม่ที่สำนักงานอ้อยของโรงงานเท่านั้น ประทับ COPY — ทางแก้ที่ใช้จริง ไม่ใช่ของใหม่) |
| StationNumberBlock D | issued → active → exhausted, plus expired (its valid_to passed), superseded (a replacement block advanced the epoch) and revoked (withdrawn with a reason). Only an active block within its validity window and owned by the issuing client may produce a number; every other state is dead for issuance and its numbers are refused or quarantined (FR-H51). A block is never edited — no state moves backwards, no cursor is reset, and a refill is a new block with a new epoch, not an extension of the old one. A record already issued under a now-dead block keeps its number and its epoch and remains readable: the block dies, the delivery note does not.issued → active → exhausted บวก expired (พ้น valid_to) superseded (บล็อกทดแทนเลื่อน epoch แล้ว) และ revoked (ถอนพร้อมเหตุผล) เฉพาะบล็อก active ที่อยู่ในช่วงเวลาใช้ได้และเครื่องที่ออกเลขเป็นเจ้าของเท่านั้นที่ผลิตเลขได้; สถานะอื่นทุกสถานะ ตายสำหรับการออกเลข และเลขของมันถูกปฏิเสธหรือกักไว้ (FR-H51) บล็อกไม่เคยถูกแก้ — ไม่มีสถานะย้อนกลับ ไม่มีเคอร์เซอร์ถูกรีเซ็ต และการเติมคือบล็อกใหม่ที่มี epoch ใหม่ ไม่ใช่การต่ออายุของเดิม ระเบียนที่ออกไปแล้วภายใต้บล็อกที่ตายแล้ว คงเลขและ epoch ของมันไว้ และยังอ่านได้: บล็อกตาย ใบชั่งไม่ตาย |
| ID | Case and required behaviourกรณีและพฤติกรรมที่ต้องมี |
|---|---|
| FR-H26 | Target capacity fails after selection. The confirmed unit turns out not to take the complete load — it filled, it was sealed, or the operator judges the fit wrong: the app returns to target selection before the chains lift, records TransferLoadTargetSwitched with its reason, and the lift then happens onto the new unit as one allocation for the whole intake. It never produces a partial allocation, an estimated split or a second live row (H12, FR-H35, FR-H36). Nothing about the farmer's bill changes: it still finalises at his exit weigh (FR-H8).ความจุของหน่วยเป้าหมายไม่พอหลังเลือกแล้ว หน่วยที่ยืนยันแล้วกลับรับการบรรทุกทั้งคันไม่ได้ — เต็ม ปิดผนึกแล้ว หรือผู้ปฏิบัติงานเห็นว่าไม่พอ: แอปกลับไปเลือกหน่วยเป้าหมายก่อนโซ่จะยก บันทึก TransferLoadTargetSwitched พร้อมเหตุผล แล้วการยกจึงเกิดขึ้นบนหน่วยใหม่เป็นการจัดสรร หนึ่ง รายการสำหรับการรับอ้อยทั้งครั้ง ไม่เคยเกิดการจัดสรรบางส่วน การแบ่งแบบประมาณ หรือแถวที่ใช้งานรายการที่สอง (H12, FR-H35, FR-H36) ไม่มีอะไรเกี่ยวกับใบชั่งของชาวไร่เปลี่ยน: ยังปิดที่การชั่งออกของเขา (FR-H8) |
| FR-H27 | Cut and reopen — the applied weighing-and-document mechanism, unchanged and not reinterpreted. The applied rule is that when the transfer truck fills, the farmer truck weighs out and back in, the old bill closes and a new one opens linked by cut_from_bill_id (FR-176). This draft preserves that for exactly what the applied evidence says it is — a weighing and document act producing two bills for one physical arrival — and makes no claim that a single chained lift is divided, because no applied evidence says so (H12). Each resulting bill is its own intake, with its own single lift, its own single live allocation and its own 4-ply set; both yellow plies travel, which is why the manifest index carries two lines, not one.ตัดใบแล้วเปิดใหม่ — กลไกการชั่งและเอกสารที่ใช้จริง ไม่เปลี่ยนและไม่ถูกตีความใหม่ กฎที่ใช้จริงคือเมื่อรถขนถ่ายเต็ม รถของชาวไร่ชั่งออกแล้วชั่งเข้าใหม่ ใบเก่าปิดและใบใหม่เปิดเชื่อมด้วย cut_from_bill_id (FR-176) ร่างนี้คงข้อนั้นไว้ตามที่หลักฐานที่ใช้จริงบอกพอดี — การกระทำด้านการชั่งและเอกสารที่ให้ใบสองใบต่อการมาถึงทางกายภาพเดียว — และไม่อ้างว่าการยกด้วยโซ่ครั้งเดียวถูกแบ่ง เพราะไม่มีหลักฐานที่ใช้จริงบอกเช่นนั้น (H12) ใบที่เกิดขึ้นแต่ละใบเป็นการรับอ้อยของตัวเอง มีการยกของตัวเองครั้งเดียว มีการจัดสรรที่ใช้งานของตัวเองรายการเดียว และมีชุด 4 สำเนาของตัวเอง; ใบเหลืองทั้งสองเดินทาง จึงเป็นเหตุที่สารบัญของใบกำกับมีสองบรรทัด ไม่ใช่หนึ่ง |
| FR-H28 | Reassignment before departure. Allowed while the manifest is open: void the allocation with reassigned_before_departure and write the successor in the same transaction. After closure it is a manifest reopen (FR-H32) with a supervisor act.ย้ายก่อนออกเดินทาง ทำได้ขณะใบกำกับยังเปิด: ยกเลิกการจัดสรรด้วย reassigned_before_departure และเขียนรายการสืบทอดใน transaction เดียวกัน หลังปิดแล้วต้องเปิดใบกำกับใหม่ (FR-H32) ด้วยการกระทำของหัวหน้า |
| FR-H29 | Truck substitution and unit-configuration change. A substituted truck or a changed mother/daughter configuration creates new unit loads on the same consignment, and every affected allocation is superseded onto them with unit_substituted; plates are snapshotted so the record can be read against what actually left. Because the applied StationBill.transfer_truck_id is retired (Section 5), there is no shortcut field left that could contradict the unit loads after a substitution — which was the reason to retire it rather than keep it as a convenience. Accident substitutions keep their applied treatment (FR-177).เปลี่ยนรถและเปลี่ยนการจัดหน่วยแม่/ลูก รถที่เปลี่ยนหรือการจัดหน่วยที่เปลี่ยนสร้าง unit load ใหม่ บน consignment เดิม และการจัดสรรที่กระทบทุกรายการถูกแทนที่ไปบนหน่วยใหม่ด้วย unit_substituted; snapshot ทะเบียนไว้ ระเบียนจึงอ่านเทียบกับสิ่งที่ออกไปจริงได้ เพราะ StationBill.transfer_truck_id ที่ใช้จริงถูก ปลด (ข้อ 5) จึงไม่มีฟิลด์ทางลัดเหลืออยู่ที่จะขัดกับ unit load หลังการเปลี่ยนรถ — ซึ่งเป็นเหตุผลที่ปลดมัน ไม่ใช่เก็บไว้เพื่อความสะดวก การเปลี่ยนรถกรณีอุบัติเหตุคงการปฏิบัติที่ใช้จริง (FR-177) |
| FR-H30 | Missing or duplicate bill · duplicate allocation · wrong unit · note mismatch. Each is a named result and a named exception, never a silent accept: a missing bill blocks allocation, because the intake must exist first; a duplicate bill number is refused by the applied uniqueness; a duplicate live allocation is refused by the partial unique of Section 5; a wrong-unit allocation is corrected by void-and-supersede with the operator of each act on the record; a note mismatch at the factory (missing, unexpected or unreadable ply) is recorded on the bundle reconciliation of FR-H4 and raised to both queues under FR-H24, with the applied A-36 remedy for the paper and no change to the digital record's authority.ใบขาดหรือใบซ้ำ · การจัดสรรซ้ำ · หน่วยผิด · ใบไม่ตรง แต่ละกรณีมีผลลัพธ์และข้อยกเว้นที่ระบุชื่อ ไม่ใช่การรับแบบเงียบ: ใบที่ขาด กั้นการจัดสรร เพราะการรับอ้อยต้องมีอยู่ก่อน; เลขใบซ้ำ ถูกปฏิเสธด้วยความไม่ซ้ำที่ใช้จริง; การจัดสรรที่ใช้งานซ้ำ ถูกปฏิเสธด้วย partial unique ในข้อ 5; การจัดสรรผิดหน่วย แก้ด้วยการยกเลิกแล้วแทนที่ พร้อมผู้ปฏิบัติงานของแต่ละการกระทำบนระเบียน; ใบไม่ตรงที่โรงงาน (ขาด เกิน หรืออ่านไม่ออก) ถูกบันทึกบนการกระทบยอดชุดเอกสารตาม FR-H4 และยกเข้าคิวทั้งสองตาม FR-H24 พร้อมทางแก้ตาม A-36 ที่ใช้จริงสำหรับกระดาษ และไม่เปลี่ยนอำนาจของระเบียนดิจิทัล |
| FR-H31 | Unallocated cane and over-allocation. Cane weighed in but never allocated when the manifest closes is an exception listing the bills by delivery number; an allocation whose kilograms differ from the bill's certified net weight by any amount — the tolerance is 0 kg — is blocked at commit per FR-H7 and FR-H61 and returns the operator to target selection or to a correction on the bill (FR-H36) — never accepted and reconciled later, and never turned into a second live row.อ้อยที่ยังไม่ถูกจัดสรรและการจัดสรรเกิน อ้อยที่ชั่งเข้าแล้วแต่ไม่เคยถูกจัดสรรเมื่อใบกำกับปิด เป็นข้อยกเว้นที่แสดงรายการใบตามเลขที่ใบชั่ง; การจัดสรรที่กิโลกรัมต่างจากน้ำหนักสุทธิที่รับรองของใบไม่ว่าเท่าใด — ค่าเผื่อเป็น 0 กก. — ถูก บล็อกตอน commit ตาม FR-H7 และ FR-H61 และส่งผู้ปฏิบัติงานกลับไปเลือกหน่วยเป้าหมายหรือไปแก้ที่ใบชั่ง (FR-H36) — ไม่ใช่รับไว้แล้วกระทบยอดภายหลัง และไม่เคยกลายเป็นแถวที่ใช้งานรายการที่สอง |
| FR-H32 | Manifest reopening. A closed manifest is reopened only by the station supervisor, only with a reason code, and only as a new version — version n and its hash stay readable, any printed control sheet remains provable against the version it was rendered from, and the reopen appears in the exception queue with the difference between versions. A reopen never re-dates a departure and never edits an allocation: it admits superseding rows.การเปิดใบกำกับใหม่ ใบกำกับที่ปิดแล้วเปิดใหม่ได้โดยหัวหน้าสถานีเท่านั้น ต้องมีรหัสเหตุผล และต้องเป็นฉบับใหม่ — ฉบับ n และ hash ของมันยังอ่านได้ ใบควบคุมที่พิมพ์ยังพิสูจน์ได้เทียบกับฉบับที่มัน render มา และการเปิดใหม่ปรากฏในคิวข้อยกเว้นพร้อมส่วนต่างระหว่างฉบับ การเปิดใหม่ไม่เคยเปลี่ยนวันออกเดินทางและไม่เคยแก้การจัดสรร: มันรับแถวที่แทนที่เข้ามา |
| FR-H33 | Rejected arrival and aborted journey. A consignment refused at the factory keeps every allocation; the refusal is recorded with its reason and actor on the factory's own receipt (FR-H24), and a return or re-delivery is a new consignment referencing the first. An accident or breakdown moves the consignment to aborted with its cause; allocations are retained and marked, and the recovery — reload onto a new consignment, or a loss event under the applied policy — is a recorded successor, never an edit of the original. No allocation is deleted to make the books look clean.การมาถึงที่ถูกปฏิเสธและการเดินทางที่ยกเลิก consignment ที่ถูกปฏิเสธที่โรงงานคงการจัดสรรทุกรายการ; การปฏิเสธถูกบันทึกพร้อมเหตุผลและผู้กระทำบนใบรับของโรงงานเอง (FR-H24) และการนำกลับหรือส่งใหม่เป็น consignment ใหม่ที่อ้างถึงอันแรก อุบัติเหตุหรือเครื่องเสียทำให้ consignment ไปสถานะ aborted พร้อมสาเหตุ; เก็บการจัดสรรไว้และทำเครื่องหมาย และการกู้คืน — บรรทุกใหม่ขึ้น consignment ใหม่ หรือเหตุการณ์สูญหายตามนโยบายที่ใช้จริง — เป็นรายการสืบทอดที่บันทึกไว้ ไม่ใช่การแก้ของเดิม ไม่มีการลบการจัดสรรเพื่อให้บัญชีดูสะอาด |
| FR-H53 | A quarantined number is reconciled by a named act, never renumbered. D A use caught by FR-H51 after the paper is already printed cannot be undone by refusing it, so it is quarantined: the record exists, is marked, is visible in the station's exception queue with its full evidence, and is unusable downstream — it cannot be allocated against, bundled, closed into a manifest or dispatched. Resolution is a named act by the station supervisor recording which of four things was true — a duplicate (the surviving record is named and the other is superseded), a block error (the block is superseded with a new epoch and the affected records are re-linked to it without changing a printed number), a wrong device or wrong station (the owning client is corrected on the record), or a paper spoil (the applied A-36 remedy runs and the set is re-printed whole at the bridge). No path renumbers a record, and no path deletes one; the quarantine, its evidence and its resolution stay readable afterwards.เลขที่ถูกกักถูกชี้ขาดด้วยการกระทำที่ระบุชื่อ ไม่เคยให้เลขใหม่ D การใช้เลขที่ FR-H51 จับได้หลังกระดาษพิมพ์ไปแล้ว ย้อนคืนด้วยการปฏิเสธไม่ได้ จึงถูกกักไว้: ระเบียนมีอยู่ ถูกทำเครื่องหมาย มองเห็นได้ในคิวข้อยกเว้นของสถานีพร้อมหลักฐานครบ และใช้ปลายทางไม่ได้ — จัดสรรทับ รวมชุด ปิดเข้าใบกำกับ หรือส่งออกไม่ได้ การชี้ขาดคือการกระทำที่ระบุชื่อโดยหัวหน้าสถานี ซึ่งบันทึกว่าสี่กรณีใดเป็นจริง — ซ้ำ (ระบุระเบียนที่อยู่รอด อีกรายการถูกแทนที่) บล็อกผิด (บล็อกถูกแทนที่ด้วย epoch ใหม่ และระเบียนที่กระทบถูกเชื่อมใหม่เข้ากับมันโดยไม่เปลี่ยนเลขที่พิมพ์) ผิดเครื่องหรือผิดสถานี (แก้เครื่องที่เป็นเจ้าของบนระเบียน) หรือ กระดาษเสีย (ทางแก้ตาม A-36 ที่ใช้จริงทำงาน และพิมพ์ชุดใหม่ทั้งชุดที่ห้องชั่ง) ไม่มีเส้นทางใดให้เลขใหม่แก่ระเบียน และไม่มีเส้นทางใดลบมัน; การกัก หลักฐาน และการชี้ขาด ยังอ่านได้ภายหลัง |
| FR-H59 | A seam refusal is an exception with a name, and a revoked relation is an operational event. D A refused cross-tenant read or write (FR-H58) is recorded as an exception on the refusing side with its code, the claiming tenant, the scope asked for, the relation claimed and the correlation id — and is never resolved by widening a permission at the moment of failure. A revoked, expired or invalid X2 relation raises an operational exception in both tenants' queues: in-flight consignments keep their records, the factory keeps what it already owns, the station keeps what it already owns, and the shared reads simply stop. Restoring access is a relationship act outside this amendment (the applied X2 machinery), not a repair inside it; a consignment stranded by a revocation is completed on paper under the applied fallback (FR-H21, NFR-57) with the gap recorded, and nothing is back-filled across the wall afterwards.การปฏิเสธที่ seam เป็นข้อยกเว้นที่มีชื่อ และความสัมพันธ์ที่ถูกเพิกถอนเป็นเหตุการณ์เชิงปฏิบัติการ D การอ่านหรือเขียนข้าม tenant ที่ถูกปฏิเสธ (FR-H58) ถูกบันทึกเป็นข้อยกเว้นที่ฝ่ายผู้ปฏิเสธ พร้อมรหัส tenant ที่อ้าง ขอบเขตที่ขอ ความสัมพันธ์ที่อ้าง และ correlation id — และไม่เคยถูกแก้ด้วยการขยายสิทธิ์ ณ วินาทีที่ล้มเหลว ความสัมพันธ์ X2 ที่ถูกเพิกถอน หมดอายุ หรือไม่สมบูรณ์ ยกข้อยกเว้นเชิงปฏิบัติการในคิวของ ทั้งสอง tenant: consignment ที่อยู่ระหว่างทางคงระเบียนไว้ โรงงานคงสิ่งที่ตนเป็นเจ้าของอยู่แล้ว สถานีคงสิ่งที่ตนเป็นเจ้าของอยู่แล้ว และการอ่านที่แบ่งใช้เพียงหยุดลง การคืนสิทธิ์เข้าถึงเป็นการกระทำด้านความสัมพันธ์นอกการแก้ไขฉบับนี้ (กลไก X2 ที่ใช้จริง) ไม่ใช่การซ่อมภายในมัน; consignment ที่ค้างเพราะการเพิกถอนถูกทำให้เสร็จบนกระดาษตามทางถอยที่ใช้จริง (FR-H21, NFR-57) โดยบันทึกช่องว่างไว้ และไม่มีการเติมย้อนหลังข้ามกำแพงภายหลัง |
| Roleบทบาท | May do · may never doทำได้ · ทำไม่ได้เลย |
|---|---|
| Crane / loading operatorผู้ปฏิบัติงานเครน/บรรทุก | Confirms the target unit before the lift, creates the allocation, records full on a unit load, attaches loading evidence. His only input to an allocation is the target physical unit: the kilograms are copied automatically from the bill's certified net weight, and he may never type, estimate, round, divide or adjust a quantity (FR-H60). Never closes a manifest, voids another operator's allocation, edits a weight, or issues a note.ยืนยันหน่วยเป้าหมายก่อนยก สร้างการจัดสรร บันทึก full บน unit load แนบหลักฐานการบรรทุก สิ่งเดียวที่เขาป้อนให้การจัดสรรคือหน่วยกายภาพเป้าหมาย: กิโลกรัมถูกคัดลอกอัตโนมัติจากน้ำหนักสุทธิที่รับรองของใบ และเขาไม่เคยพิมพ์ ประมาณ ปัด หาร หรือปรับปริมาณได้ (FR-H60) ไม่เคยปิดใบกำกับ ยกเลิกการจัดสรรของผู้ปฏิบัติงานอื่น แก้น้ำหนัก หรือออกใบชั่ง |
| Station weighbridge clerkเสมียนห้องชั่งสถานี | Creates the intake and its StationBill, confirms the unit at exit weigh, prints the 4-ply set with its applied ply routing, performs the applied cut-and-reopen, issues the transfer truck's own note. Never allocates on the loading operator's behalf without recording itself as the actor, and never keys a weight.สร้างการรับอ้อยและ StationBill ของมัน ยืนยันหน่วยตอนชั่งออก พิมพ์ชุด 4 สำเนาพร้อมเส้นทางสำเนาที่ใช้จริง ทำการตัดใบแล้วเปิดใหม่ที่ใช้จริง ออกใบชั่งของรถขนถ่ายเอง ไม่เคยจัดสรรแทนผู้ปฏิบัติงานบรรทุกโดยไม่บันทึกตัวเองเป็นผู้กระทำ และไม่เคยคีย์น้ำหนัก |
| Dispatcherผู้จัดรถ | Opens consignments, composes unit loads, closes the manifest at the departure gate. Never creates or alters an allocation quantity.เปิด consignment จัด unit load ปิดใบกำกับที่ประตูออกเดินทาง ไม่เคยสร้างหรือแก้ปริมาณการจัดสรร |
| Station supervisorหัวหน้าสถานี | Authorizes manifest reopens, overrides at the departure gate, conflict resolutions, degraded-mode reconstructions, cross-day exceptions and the named act that resolves a quarantined number (FR-H53) — each with a reason code, a role snapshot and an entry in the exception queue. Never edits a weight or a note number, never renumbers a record, and never releases a quantity-mismatch block by accepting the difference — that block clears only when the source record or the certified-scale integration is corrected (FR-H61).อนุญาตการเปิดใบกำกับใหม่ การ override ที่ประตูออกเดินทาง การยุติความขัดแย้ง การประกอบขึ้นใหม่ในโหมดถดถอย ข้อยกเว้นข้ามวัน และการกระทำที่ระบุชื่อซึ่งชี้ขาดเลขที่ถูกกัก (FR-H53) — แต่ละครั้งพร้อมรหัสเหตุผล snapshot บทบาท และรายการในคิวข้อยกเว้น ไม่เคยแก้น้ำหนักหรือเลขที่ใบชั่ง ไม่เคยให้เลขใหม่แก่ระเบียน และไม่เคยปลดการกั้นเพราะปริมาณไม่ตรงด้วยการยอมรับส่วนต่าง — การกั้นนั้นจะหายก็ต่อเมื่อระเบียนต้นทางหรือการเชื่อมต่อตาชั่งที่รับรองถูกแก้ (FR-H61) |
| Transfer contractorผู้รับเหมาขนถ่าย | Reads its own consignments, control sheets and settlements. Never sees another contractor's rows, and never writes an allocation.อ่าน consignment ใบควบคุม และการชำระของตัวเอง ไม่เคยเห็นแถวของผู้รับเหมารายอื่น และไม่เคยเขียนการจัดสรร |
| Factory weighbridgeห้องชั่งโรงงาน | Records arrival, certified weights, tipping and the bundle reconciliation on the factory's own rows, and raises mismatches. Reads only the minimum declared seam facts for the specifically referenced unit and consignment bound to it — never another factory's, a sibling factory's, an unrelated transfer's or an unrelated station's (FR-H56, FR-H57). Never writes, edits, voids, renumbers or issues anything owned by the station tenant (FR-H24, FR-H55, NFR-H4).บันทึกการมาถึง น้ำหนักที่รับรอง การเท และการกระทบยอดชุดเอกสาร บนแถวของโรงงานเอง และยกความไม่ตรงกัน อ่านเฉพาะข้อเท็จจริงที่ประกาศไว้ที่ seam ขั้นต่ำของหน่วยและ consignment ที่อ้างถึงเจาะจงซึ่งผูกกับตน — ไม่เคยของโรงงานอื่น โรงงานพี่น้อง การขนถ่ายที่ไม่เกี่ยว หรือสถานีที่ไม่เกี่ยว (FR-H56, FR-H57) ไม่เคยเขียน แก้ ยกเลิก ให้เลขใหม่ หรือออกสิ่งใดที่ tenant ของสถานีเป็นเจ้าของ (FR-H24, FR-H55, NFR-H4) |
| Reconciliation staffเจ้าหน้าที่กระทบยอด | Reads everything within their own tenant, closes reconciliations, raises loss claims. Never writes an allocation or a weight; a correction is requested from the role that owns the act.อ่านทุกอย่างภายใน tenant ของตัวเอง ปิดการกระทบยอด ยกการเรียกร้องค่าสูญหาย ไม่เคยเขียนการจัดสรรหรือน้ำหนัก; การแก้ต้องขอจากบทบาทที่เป็นเจ้าของการกระทำนั้น |
| ID | Non-functional requirementข้อกำหนดที่ไม่ใช่หน้าที่ |
|---|---|
| NFR-H1 | Append-only evidence, and it is implementable. Every allocation, state change, void, supersession, reopen, override and degraded-mode reconstruction carries actor, role snapshot, station, device, captured time, received time, local_seq and idempotency key. Business fields are immutable; the only permitted update is the one-way closure triple of Section 5, enforced by a database trigger rather than by a convention nobody can check.หลักฐานแบบ append-only และทำได้จริง การจัดสรร การเปลี่ยนสถานะ การยกเลิก การแทนที่ การเปิดใหม่ การ override และการประกอบขึ้นใหม่ในโหมดถดถอย ทุกครั้งพกผู้กระทำ snapshot บทบาท สถานี อุปกรณ์ เวลาที่เก็บ เวลาที่รับ local_seq และคีย์กันซ้ำ ฟิลด์ทางธุรกิจไม่เปลี่ยน; การ update ที่ยอมมีเพียงสามค่าของการปิดแบบทางเดียวในข้อ 5 บังคับด้วย trigger ที่ฐานข้อมูล ไม่ใช่ด้วยธรรมเนียมที่ไม่มีใครตรวจได้ |
| NFR-H2 | Every derived figure is recomputable. A unit load's allocated total, a manifest's totals, a reconciliation record and any apportioned figure can be recomputed from the rows that produced them, at any later date, with the rule version they were produced under — and a recomputation that disagrees with a stored figure is an alarm, not a silent overwrite.ตัวเลขที่ derive ทุกค่าคำนวณใหม่ได้ ผลรวมที่จัดสรรของ unit load ผลรวมของใบกำกับ ระเบียนการกระทบยอด และตัวเลขที่เฉลี่ยแล้วทุกค่า คำนวณใหม่ได้จากแถวที่ผลิตมัน ณ วันใดในภายหลัง ด้วยเวอร์ชันของกฎที่ผลิตมัน — และการคำนวณใหม่ที่ไม่ตรงกับค่าที่เก็บไว้เป็น สัญญาณเตือน ไม่ใช่การเขียนทับอย่างเงียบ ๆ |
| NFR-H3 | Offline capture bounds. A station operates a full shift disconnected with no loss of allocation, note or state fact; sync runs on the applied schedule (default 2 h) or by physical media, and every record reports its own lag. The applied journal encryption, access logging and purge window (PROP-021) apply unchanged to every new record class.ขอบเขตการเก็บข้อมูลแบบ offline สถานีทำงานได้เต็มกะโดยถูกตัดขาด ไม่สูญหายการจัดสรร ใบชั่ง หรือข้อเท็จจริงสถานะ; sync ทำงานตามรอบที่ใช้จริง (ค่าปกติ 2 h) หรือด้วยสื่อกายภาพ และทุกระเบียนรายงานระยะที่ช้าของตัวเอง การเข้ารหัส journal การบันทึกการเข้าถึง และหน้าต่างการล้างข้อมูลที่ใช้จริง (PROP-021) ใช้กับระเบียนชนิดใหม่ทุกชนิดโดยไม่เปลี่ยน |
| NFR-H4 | No cross-tenant write, proved by refusal. A write attempt from the factory tenant against a station-owned row — or the reverse — is refused by the database, not by application politeness (A-102 R-FORCEWALL), and the refusal is testable (T-15). Every reconciliation read model is a declared seam row.ไม่มีการเขียนข้าม tenant พิสูจน์ด้วยการปฏิเสธ ความพยายามเขียนจาก tenant ของโรงงานลงแถวที่สถานีเป็นเจ้าของ — หรือทางกลับกัน — ถูก ปฏิเสธโดยฐานข้อมูล ไม่ใช่ด้วยความสุภาพของแอปพลิเคชัน (A-102 R-FORCEWALL) และการปฏิเสธนั้นทดสอบได้ (T-15) read model ของการกระทบยอดทุกตัวเป็นแถว seam ที่ประกาศไว้ |
| NFR-H5 | Nothing in this model can be edited after the fact, and nothing can be lost. A record that cannot be corrected honestly — only overwritten — is refused at design review; a record whose loss would destroy an attribution is refused at design review. Both of those are what the applied token model failed, and both are what this model is judged on.ไม่มีสิ่งใดในโมเดลนี้แก้ได้ภายหลัง และไม่มีสิ่งใดสูญหายได้ ระเบียนที่แก้อย่างตรงไปตรงมาไม่ได้ — เขียนทับได้เท่านั้น — ถูกปฏิเสธในการทบทวนการออกแบบ; ระเบียนที่การสูญหายของมันทำลายการปันส่วน ถูกปฏิเสธในการทบทวนการออกแบบ สองข้อนั้นคือสิ่งที่โมเดลเหรียญที่ใช้จริงทำไม่ได้ และเป็นสิ่งที่โมเดลนี้ถูกตัดสิน |
| NFR-H6 | Pilot evidence before general rollout. Because this amendment moves a financial attribution from paper habit onto a digital record, the applying change set carries a station pilot whose report is dated and states: pre-lift target switches per 100 intakes with their reasons, note-bundle discrepancies per unit load, degraded-mode occurrences, allocation corrections per 100 intakes, manifest-mirror completeness at departure, and how often the factory read the inbound consignment before it arrived (FR-H39). A migration script alone does not satisfy this requirement.หลักฐานจากการนำร่องก่อนปล่อยทั่วไป เพราะการแก้ไขนี้ย้ายการปันส่วนทางการเงินจากนิสัยบนกระดาษไปอยู่บนระเบียนดิจิทัล ชุดการเปลี่ยนแปลงตอน apply จึงพก การนำร่องที่สถานี ซึ่งรายงานลงวันที่และระบุ: การสลับหน่วยเป้าหมายก่อนยกต่อการรับอ้อย 100 ครั้งพร้อมเหตุผล ความไม่ตรงกันของชุดใบต่อ unit load จำนวนครั้งที่เข้าโหมดถดถอย การแก้การจัดสรรต่อการรับอ้อย 100 ครั้ง ความครบของกระจกเงาใบกำกับตอนออกเดินทาง และ ความถี่ที่โรงงานอ่าน consignment ขาเข้าก่อนมันมาถึง (FR-H39) migration script อย่างเดียวไม่ทำให้ข้อกำหนดนี้ครบ |
| NFR-H7 | Seam controls: least privilege, purpose limitation, audit, provenance, correlation, refusal. D Every shared command, event and read model across the station↔factory seam runs at least privilege (the fields of its declared row and no more), under purpose limitation (the data may not be reused for a purpose the row does not state — no profiling of a counterparty's other traffic, no resale, no derivation of a figure the publisher did not publish), with audit history (who read what, for which unit, when, under which relation — retained and readable by both parties for their own side), with provenance on every shared figure (its owner, its source, its as-of time and whether it is measured, certified or estimated), with a correlation id carried end to end on the applied NFR-155 pattern, and with refusal behaviour that is explicit, named, logged and non-disclosing. A shared surface that cannot produce its audit trail for a given read is not compliant, and the read is refused rather than served untracked.การควบคุมที่ seam: สิทธิ์น้อยที่สุด การจำกัดวัตถุประสงค์ การตรวจสอบ ที่มา correlation การปฏิเสธ D คำสั่ง event และ read model ที่แบ่งใช้ข้าม seam สถานี↔โรงงานทุกตัว ทำงานด้วยสิทธิ์น้อยที่สุด (เฉพาะฟิลด์ในแถวที่ประกาศไว้ ไม่มากกว่านั้น) ภายใต้การจำกัดวัตถุประสงค์ (นำข้อมูลไปใช้เพื่อวัตถุประสงค์ที่แถวไม่ได้ระบุไม่ได้ — ไม่ทำโปรไฟล์การจราจรอื่นของคู่สัญญา ไม่ขายต่อ ไม่ derive ค่าที่ผู้เผยแพร่ไม่ได้เผยแพร่) พร้อมประวัติการตรวจสอบ (ใครอ่านอะไร ของหน่วยใด เมื่อใด ภายใต้ความสัมพันธ์ใด เก็บไว้และอ่านได้โดยทั้งสองฝ่ายในส่วนของตน) พร้อมที่มาบนตัวเลขที่แบ่งใช้ทุกค่า (เจ้าของ แหล่ง เวลา as-of และเป็นค่าที่วัด รับรอง หรือประมาณ) พร้อม correlation id ที่พกตั้งแต่ต้นจนจบตามแบบ NFR-155 ที่ใช้จริง และพร้อมพฤติกรรมการปฏิเสธที่ชัดแจ้ง มีชื่อ บันทึกไว้ และไม่เปิดเผยข้อมูล หน้าจอที่แบ่งใช้ซึ่งผลิตร่องรอยการตรวจสอบของการอ่านหนึ่งครั้งไม่ได้ ไม่ผ่านข้อกำหนด และการอ่านนั้นถูกปฏิเสธแทนที่จะเสิร์ฟโดยไม่มีร่องรอย |
| Eventevent | Business fact it records · what it replacesข้อเท็จจริงทางธุรกิจที่บันทึก · แทนอะไร |
|---|---|
| TransferLoadAllocated | The complete load of one station bill was lifted onto one transfer unit, by a named operator, at a stated time and loading position, with its measured kilograms and its pre-lift target confirmation. Replaces CraneTokenIssued.การบรรทุกทั้งคันของใบชั่งสถานีหนึ่งใบถูกยกขึ้นหน่วยขนถ่าย หนึ่ง ตัว โดยผู้ปฏิบัติงานที่ระบุชื่อ ณ เวลาและตำแหน่งบรรทุกที่ระบุ พร้อมกิโลกรัมที่วัดได้และการยืนยันหน่วยเป้าหมายก่อนยก แทน CraneTokenIssued |
| StationLoadExitConfirmed | The farmer's truck exit-weighed, its allocations were confirmed against the record, and its 4-ply StationBill was finalised and printed. This — not a manifest closure — is the successor of CraneTokenReturned (H11).รถของชาวไร่ชั่งออก การจัดสรรของมันถูกยืนยันกับระเบียน และ StationBill 4 สำเนาถูกปิดและพิมพ์ นี่ — ไม่ใช่การปิดใบกำกับ — คือผู้สืบทอดของ CraneTokenReturned (H11) |
| TransferLoadTargetSwitched | Before any lift, the confirmed target unit was changed, with its reason (capacity | unit_sealed | unit_substituted | operator_judgement) and the operator. It carries no allocation and no quantity — it records a decision taken while the cane was still on the farmer's truck (FR-H36).ก่อนการยกใด หน่วยเป้าหมายที่ยืนยันแล้วถูกเปลี่ยน พร้อมเหตุผล (capacity | unit_sealed | unit_substituted | operator_judgement) และผู้ปฏิบัติงาน ไม่พกการจัดสรรและปริมาณ — บันทึกการตัดสินที่เกิดขณะอ้อยยังอยู่บนรถของชาวไร่ (FR-H36) |
| TransferLoadReassigned | A live allocation was superseded onto a different unit load, with reason and authorizing role.การจัดสรรที่ใช้งานถูกแทนที่ไปยัง unit load อื่น พร้อมเหตุผลและบทบาทผู้อนุญาต |
| TransferUnitLoadFull | A physical unit was declared full at a stated time — the fact behind the applied cut-and-reopen (FR-176, FR-H27).หน่วยกายภาพถูกประกาศว่าเต็ม ณ เวลาที่ระบุ — ข้อเท็จจริงที่อยู่เบื้องหลังการตัดใบแล้วเปิดใหม่ที่ใช้จริง (FR-176, FR-H27) |
| TransferTruckNoteIssued | The transfer truck's own statutory note was issued for a consignment, with its delivery number and the station quota number as printed.ใบชั่งตามกฎหมายของรถขนถ่ายเองถูกออกสำหรับ consignment หนึ่ง พร้อมเลขที่ใบชั่งและเลขโควตาสถานีตามที่พิมพ์ |
| StationNumberBlockActivated | A controlled block of statutory delivery numbers was pre-allocated to a station and activated on a client, with its range, its range_epoch, its validity window, its owner and the block it supersedes. Its counterparts are StationNumberBlockExhausted (the cursor reached range_to — issuance stops and a refill is requested, FR-H21) and StationNumberBlockRevoked (withdrawn with a reason). No event in this family dispenses a number — the station issues locally (H8).บล็อกเลขที่ใบชั่งตามกฎหมายที่ควบคุมถูกจ่ายล่วงหน้าให้สถานีและเปิดใช้บนเครื่องหนึ่ง พร้อมช่วงเลข range_epoch ช่วงเวลาใช้ได้ เจ้าของ และบล็อกที่มันแทนที่ คู่ของมันคือ StationNumberBlockExhausted (เคอร์เซอร์ถึง range_to — การออกเลขหยุดและขอเติมบล็อก FR-H21) และ StationNumberBlockRevoked (ถอนพร้อมเหตุผล) ไม่มี event ในตระกูลนี้จ่ายเลข — สถานีออกเลขเองในเครื่อง (H8) |
| StationNumberUseQuarantined | A number use was rejected or quarantined — duplicate, expired, out of range, wrong station, wrong epoch or forked range — with the number as printed, the block and epoch, the owning station and client, the device, the operator, the captured time and the journal entry (FR-H51). Its resolution is StationNumberUseReconciled, naming the act and the actor. Neither event ever carries a replacement number (H16).การใช้เลขถูกปฏิเสธหรือกักไว้ — ซ้ำ หมดอายุ นอกช่วง ผิดสถานี ผิด epoch หรือช่วงแยกสาย — พร้อมเลขตามที่พิมพ์ บล็อกและ epoch สถานีและเครื่องที่เป็นเจ้าของ อุปกรณ์ ผู้ปฏิบัติงาน เวลาที่เก็บ และรายการใน journal (FR-H51) การชี้ขาดของมันคือ StationNumberUseReconciled ซึ่งระบุการกระทำและผู้กระทำ ไม่มี event ใดในสองตัวนี้พกเลขทดแทน (H16) |
| TenantSeamAccessRefused | A cross-tenant read or write was refused at the X2 seam, with the named code (seam.err.*), the claiming tenant, the relation claimed, the scope asked for, the declared seam row it failed against and the correlation id (FR-H58, NFR-H7). It is emitted on the refusing side, discloses nothing about the record refused, and is the evidence a denial test asserts on. TenantSeamRelationRevoked records that an X2 relation ended, and appears in both tenants' operational queues (FR-H59).การอ่านหรือเขียนข้าม tenant ถูกปฏิเสธที่ seam X2 พร้อมรหัสที่ระบุชื่อ (seam.err.*) tenant ที่อ้าง ความสัมพันธ์ที่อ้าง ขอบเขตที่ขอ แถว seam ที่ประกาศไว้ซึ่งมันไม่ผ่าน และ correlation id (FR-H58, NFR-H7) ปล่อยที่ฝ่ายผู้ปฏิเสธ ไม่เปิดเผยอะไรเกี่ยวกับระเบียนที่ปฏิเสธ และเป็นหลักฐานที่การทดสอบการปฏิเสธยืนยัน TenantSeamRelationRevoked บันทึกว่าความสัมพันธ์ X2 สิ้นสุด และปรากฏในคิวเชิงปฏิบัติการของทั้งสอง tenant (FR-H59) |
| TransferManifestClosed | The line set was frozen and hashed at the consignment departure gate, by a named dispatcher. It records a control fact and no statutory duty, and it is not the small truck's exit (FR-H9).ชุดบรรทัดถูกตรึงและ hash ที่ ประตูออกเดินทางของ consignment โดยผู้จัดรถที่ระบุชื่อ บันทึกข้อเท็จจริงเชิง การควบคุม และ ไม่มีหน้าที่ตามกฎหมาย และ ไม่ใช่ การออกของรถเล็ก (FR-H9) |
| TransferManifestReopened | A closed manifest version was superseded, with reason, actor and the difference between versions.ใบกำกับฉบับที่ปิดแล้วถูกแทนที่ พร้อมเหตุผล ผู้กระทำ และส่วนต่างระหว่างฉบับ |
| TransferConsignmentDeparted | The transfer truck left the station with a closed manifest, an issued truck note and the paper bundle in the cab. The departure record carries the station's station_operating_day and its departure timestamp with timezone; no factory process restates or re-dates it (FR-H45, FR-H46).รถขนถ่ายออกจากสถานีพร้อมใบกำกับที่ปิดแล้ว ใบชั่งของรถที่ออกแล้ว และชุดกระดาษในห้องคนขับ ระเบียนการออกเดินทางพก station_operating_day ของสถานีและตราเวลาออกเดินทางพร้อมเขตเวลา; ไม่มีกระบวนการใดของโรงงานมาระบุซ้ำหรือเปลี่ยนวัน (FR-H45, FR-H46) |
| ConsignmentReceived | Factory-produced: the factory received the consignment (or refused it, with reason and actor) and, per arriving unit, recorded that unit's own note, its own bundle and its own certified weight sequence (FR-H4, FR-H41). Producer is the mill, not the station. The receipt and every unit row carry the factory's own mill_crushing_day_id and arrival timestamp with timezone, assigned under the factory's crushing-day rules and never derived from the station's day (FR-H45, FR-H46).โรงงานเป็นผู้ผลิต event: โรงงานรับ consignment (หรือปฏิเสธ พร้อมเหตุผลและผู้กระทำ) และบันทึก รายหน่วยที่มาถึง ทั้งใบชั่งของหน่วยนั้น ชุดเอกสารของตัวเอง และลำดับการชั่งที่รับรองของตัวเอง (FR-H4, FR-H41) ผู้ผลิตคือโรงงาน ไม่ใช่สถานี ใบรับและแถวรายหน่วยทุกแถวพก mill_crushing_day_id ของโรงงานเองและตราเวลามาถึงพร้อมเขตเวลา กำหนดตามกฎวันหีบของโรงงานเอง ไม่เคย derive จากวันของสถานี (FR-H45, FR-H46) |
| TransferConsignmentInTransit | The consignment is on the road: vehicle and its units, driver or contractor reference as permitted, origin station, destination factory, departure time, route or route reference, dispatched tonnage per unit, and the first ETA with its source and as-of time (FR-H38). This is the fact the destination factory reads before arrival.consignment อยู่บนถนน: รถและหน่วยของมัน การอ้างถึงคนขับหรือผู้รับเหมาเท่าที่อนุญาต สถานีต้นทาง โรงงานปลายทาง เวลาออกเดินทาง เส้นทางหรือการอ้างถึงเส้นทาง ตันที่ส่งออกรายหน่วย และ ETA ครั้งแรกพร้อมแหล่งและเวลา as-of (FR-H38) นี่คือข้อเท็จจริงที่โรงงานปลายทางอ่านก่อนการมาถึง |
| ConsignmentETARevised | A new ETA was derived, or an existing one went stale or unavailable, with its source, its as-of time and its age (FR-H40). A degradation is an event, not a silent blank.มีการ derive ETA ใหม่ หรือค่าที่มีอยู่กลายเป็น stale หรือ unavailable พร้อมแหล่ง เวลา as-of และอายุของมัน (FR-H40) การเสื่อมสภาพเป็น event ไม่ใช่ช่องว่างที่เงียบ |
| TransferWeightReconciled | The figures of FR-H15 were compared at their stated granularity and the outcome stored, including any applied loss-policy consequence.ตัวเลขตาม FR-H15 ถูกเทียบที่ความละเอียดที่ระบุ และเก็บผลลัพธ์ไว้ รวมผลที่ตามมาจากนโยบายการสูญหายที่ใช้จริง |
| CCSAttributed | A CCS value was attributed to every live allocation on one unit load — never a consignment (H14) — at that value, unchanged, with source, granularity, status, match method and rule version. Replaces the token hop in FR-175 — and carries no divisor, because nothing is divided (FR-H11).ค่า CCS ถูกปันให้การจัดสรรที่ใช้งานทุกรายการบน unit load หนึ่งตัว — ไม่เคยบน consignment (H14) — ด้วยค่านั้น โดยไม่เปลี่ยน พร้อมแหล่ง ความละเอียด สถานะ วิธีจับคู่ และเวอร์ชันของกฎ แทนการกระโดดผ่านเหรียญใน FR-175 — และไม่พกตัวหาร เพราะไม่มีอะไรถูกหาร (FR-H11) |
| Surfacesurface | What it shows and what it refuses to showแสดงอะไร และปฏิเสธที่จะแสดงอะไร |
|---|---|
| Loading allocation (crane position)การจัดสรรการบรรทุก (ตำแหน่งเครน) | The waiting intakes, the open unit loads with their remaining capacity, and two acts in order: confirm this unit can take the complete load, then record the lift as one allocation for the whole intake. A failed confirmation returns to selection and is recorded (FR-H36). Refuses to offer a partial or split allocation at all, refuses to show money, and refuses to let an operator invent an intake.การรับอ้อยที่รออยู่ unit load ที่เปิดพร้อมความจุที่เหลือ และสองการกระทำตามลำดับ: ยืนยันว่าหน่วยนี้รับการบรรทุกทั้งคันได้ แล้วบันทึกการยกเป็นการจัดสรรหนึ่งรายการสำหรับการรับอ้อยทั้งครั้ง การยืนยันที่ไม่ผ่านกลับไปที่การเลือกและถูกบันทึก (FR-H36) ปฏิเสธการเสนอการจัดสรรบางส่วนหรือแบบแบ่งโดยสิ้นเชิง ปฏิเสธการแสดงเงิน และปฏิเสธการให้ผู้ปฏิบัติงานแต่งการรับอ้อยขึ้นมา |
| Small-truck exit weighการชั่งออกของรถเล็ก | The intake, its confirmed unit or units, the station weights from the certified scale, and the print act for the 4-ply set with its configured ply routing. Shows the hold when no live allocation exists or the confirmed unit differs. Refuses to mention the manifest — this screen belongs to gate one (FR-H8).การรับอ้อย หน่วยที่ยืนยันแล้วหนึ่งหรือหลายหน่วย น้ำหนักสถานีจากตาชั่งที่รับรอง และการกระทำพิมพ์ชุด 4 สำเนาพร้อมเส้นทางสำเนาที่ตั้งไว้ แสดง การกัน เมื่อไม่มีการจัดสรรที่ใช้งานหรือหน่วยที่ยืนยันต่างออกไป ปฏิเสธการพูดถึงใบกำกับ — หน้าจอนี้เป็นของประตูที่หนึ่ง (FR-H8) |
| Unit status (mother / daughter)สถานะหน่วย (แม่/ลูก) | Per physical unit: allocated total in kg, line count, remaining capacity, full and sealed state. The words mother and daughter appear here — on trucks — and nowhere else in the hierarchy (H4).ต่อหน่วยกายภาพ: ผลรวมที่จัดสรรเป็นกิโลกรัม จำนวนบรรทัด ความจุที่เหลือ สถานะเต็มและปิดผนึก คำว่าแม่และลูกปรากฏที่นี่ — บนรถ — และไม่ปรากฏที่อื่นในลำดับชั้น (H4) |
| Manifest review and departure gateการทบทวนใบกำกับและประตูออกเดินทาง | The consignment, its units, every source bill and allocation, the expected note bundle listed by delivery number, the truck note, and the blocking exceptions between it and closure — then one decision with its preconditions visible: close and depart, or resolve. States plainly that the printed sheet is a control sheet, not a delivery note.consignment หน่วยของมัน ใบชั่งต้นทางและการจัดสรรทุกรายการ ชุดใบที่คาดว่าจะมี แสดงตามเลขที่ใบชั่ง ใบชั่งของรถ และข้อยกเว้นที่กั้นระหว่างมันกับการปิด — แล้วการตัดสินหนึ่งอย่างพร้อมเงื่อนไขที่มองเห็นได้: ปิดและออกเดินทาง หรือแก้ให้จบ ระบุตรง ๆ ว่าแผ่นที่พิมพ์เป็น ใบควบคุม ไม่ใช่ใบชั่ง |
| Factory receipt and bundle checkการรับที่โรงงานและการตรวจชุดเอกสาร | Arrival, certified weights, tipping, and the bundle as the factory receives it: expected, presented, missing, unexpected. Station rows are read-only, with a raise-mismatch act instead of an edit (FR-H24).การมาถึง น้ำหนักที่รับรอง การเท และชุดเอกสารตามที่โรงงานได้รับ: คาดว่าจะมี ยื่นมา ขาด เกิน แถวของสถานี อ่านได้เท่านั้น มีการกระทำยกความไม่ตรงกันแทนการแก้ (FR-H24) |
| Mismatch resolutionการชี้ขาดความไม่ตรงกัน | The figures of FR-H15 side by side with their granularity and the difference named, the exception list, and the acts each role is permitted. Refuses to offer an act the role may not perform. Shows both business days side by side — the station's operating day and the factory's crushing day, each with its timestamp, timezone and owner — and refuses to render one generic delivery date (FR-H47, FR-H48).ตัวเลขตาม FR-H15 เรียงเทียบกันพร้อมความละเอียดและระบุส่วนต่าง รายการข้อยกเว้น และการกระทำที่แต่ละบทบาททำได้ ปฏิเสธการเสนอการกระทำที่บทบาทนั้นทำไม่ได้ แสดงวันทำการทั้งสองเคียงกัน — วันทำการของสถานีและวันหีบของโรงงาน แต่ละค่าพร้อมตราเวลา เขตเวลา และเจ้าของ — และปฏิเสธการแสดงวันส่งมอบแบบรวมหนึ่งค่า (FR-H47, FR-H48) |
| Inbound consignment board (factory)กระดานขาเข้า (โรงงาน) | Every consignment in transit to this factory: units and their configuration, station-dispatched tonnage per unit, ETA with its state and age, lateness, and the note bundle to expect. Read-only across the seam; refuses to show a consignment not bound to this factory, and refuses to present a stale ETA as fresh (FR-H39, FR-H40). Each row shows the consignment's station_operating_day as the station stamped it; the factory's own crushing day is assigned on arrival and not before (FR-H45).consignment ทุกรายการที่อยู่ระหว่างขนส่งมาที่โรงงานนี้: หน่วยและการจัดหน่วย ตันที่สถานีส่งออกรายหน่วย ETA พร้อมสถานะและอายุ ความล่าช้า และชุดเอกสารที่จะได้รับ อ่านได้เท่านั้นข้าม seam; ปฏิเสธการแสดง consignment ที่ไม่ได้มุ่งมาที่โรงงานนี้ และปฏิเสธการนำเสนอ ETA ที่ stale ว่าสด (FR-H39, FR-H40) แต่ละแถวแสดง station_operating_day ของ consignment ตามที่สถานีประทับไว้; วันหีบของโรงงานกำหนดเมื่อมาถึง ไม่ใช่ก่อนหน้านั้น (FR-H45) |
| Transport operations (station and contractor)การปฏิบัติการขนส่ง (สถานีและผู้รับเหมา) | Tonnage currently in transit as a labelled roll-up, truck status and turnaround, utilization, queue and wait time where the applied records supply it, trip completion, and route and ETA accuracy as predicted versus actual (FR-H42). A contractor sees only its own vehicles (FR-H44). It recommends nothing — no dispatch suggestion, no contractor ranking, no predicted saving (FR-H43).ตันที่อยู่ระหว่างขนส่งขณะนี้เป็นผลรวมที่กำกับไว้ สถานะรถและรอบการหมุนรถ อัตราการใช้งาน คิวและเวลารอเมื่อระเบียนที่ใช้จริงให้ข้อมูล การจบเที่ยว และความแม่นของเส้นทางกับ ETA เทียบค่าที่ทำนายกับค่าจริง (FR-H42) ผู้รับเหมาเห็นเฉพาะรถของตัวเอง (FR-H44) มัน ไม่แนะนำอะไร — ไม่เสนอการจัดรถ ไม่จัดอันดับผู้รับเหมา ไม่ทำนายการประหยัด (FR-H43) |
| End-to-end traceabilityการสืบย้อนตั้งแต่ต้นจนจบ | From a farmer's delivery number to its allocations, unit, consignment, factory weight, CCS with its source and status, and settlement — and back the other way. Group-level views are factory aggregates only; no cross-tenant resolution (A-102, NFR-65).จากเลขที่ใบชั่งของชาวไร่ไปยังการจัดสรร หน่วย consignment น้ำหนักโรงงาน CCS พร้อมแหล่งและสถานะ และการชำระ — และย้อนกลับทางอื่น มุมมองระดับกลุ่มเป็นค่ารวมรายโรงงานเท่านั้น ไม่มีการ resolve ข้าม tenant (A-102, NFR-65) |
| Number-block status (station)สถานะบล็อกเลข (สถานี) | The active block with its range, range_epoch, validity window, owning client, numbers remaining and days to expiry; the quarantine queue with its evidence and the named resolution acts (FR-H53). It refuses to offer a "next number" control, a cursor edit, a reset, a manual renumber or a way to keep issuing from an expired, superseded or revoked block — the only acts here are request a refill and resolve a quarantine.บล็อกที่ใช้งานพร้อมช่วงเลข range_epoch ช่วงเวลาใช้ได้ เครื่องที่เป็นเจ้าของ เลขคงเหลือ และจำนวนวันก่อนหมดอายุ; คิวการกักพร้อมหลักฐานและการกระทำชี้ขาดที่ระบุชื่อ (FR-H53) หน้าจอนี้ ปฏิเสธ ที่จะมีปุ่ม "เลขถัดไป" การแก้เคอร์เซอร์ การรีเซ็ต การให้เลขใหม่ด้วยมือ หรือช่องทางออกเลขต่อจากบล็อกที่หมดอายุ ถูกแทนที่ หรือถูกเพิกถอน — การกระทำที่มีที่นี่คือ ขอเติมบล็อก และ ชี้ขาดการกัก เท่านั้น |
| Seam permissions and access audit (both tenants)สิทธิ์ที่ seam และการตรวจสอบการเข้าถึง (ทั้งสอง tenant) | The declared seam rows in force for this relationship — what is shared, in which direction, at which scope, for which purpose — and the access history for this tenant's own side: who read what, for which unit, when, under which relation, with the correlation id, and every refusal with its code (FR-H57, FR-H58, NFR-H7). It refuses to show the counterparty's internal audit, to list records outside the referenced units, or to offer a control that widens a scope from a screen: a permission change is a relationship act, not a toggle beside the data.แถว seam ที่ประกาศไว้ซึ่งมีผลกับความสัมพันธ์นี้ — แบ่งอะไร ทิศทางใด ขอบเขตใด เพื่อวัตถุประสงค์ใด — และประวัติการเข้าถึงในส่วนของ tenant นี้เอง: ใครอ่านอะไร ของหน่วยใด เมื่อใด ภายใต้ความสัมพันธ์ใด พร้อม correlation id และการปฏิเสธทุกครั้งพร้อมรหัส (FR-H57, FR-H58, NFR-H7) หน้าจอนี้ ปฏิเสธ ที่จะแสดงการตรวจสอบภายในของคู่สัญญา ที่จะไล่ระเบียนนอกหน่วยที่อ้างถึง หรือที่จะมีตัวควบคุมซึ่งขยายขอบเขตจากหน้าจอ: การเปลี่ยนสิทธิ์เป็นการกระทำด้านความสัมพันธ์ ไม่ใช่สวิตช์ข้างข้อมูล |
| ID | Migration ruleกฎการย้ายข้อมูล |
|---|---|
| M-1 | Never infer a quantity from a token count. No migration path may write an allocated_kg derived from how many tokens, allocations or notes exist. A quantity comes from a station weight or from nowhere.ไม่อนุมานปริมาณจากจำนวนเหรียญเลย ไม่มีเส้นทางการย้ายใดเขียน allocated_kg ที่ derive จากจำนวนเหรียญ การจัดสรร หรือใบชั่ง ปริมาณมาจากน้ำหนักสถานี หรือไม่มาจากที่ใดเลย |
| M-2 | Class A — one unambiguous token. Exactly one token row for the bill, naming one truck and one unit, with a consistent bill link: map to one allocation, qty_basis = full_delivery, allocated_kg = the bill's station net in kg, source_crane_token_no recorded as provenance, and the applied issued_at → loaded_at.ชั้น A — เหรียญเดียวที่ไม่กำกวม มีแถวเหรียญหนึ่งแถวพอดีต่อใบ ระบุรถหนึ่งคันและหน่วยหนึ่งตัว โดยการเชื่อมใบสอดคล้องกัน: แม็ปเป็นการจัดสรร หนึ่ง รายการ qty_basis = full_delivery allocated_kg = น้ำหนักสุทธิที่สถานีของใบเป็นกิโลกรัม บันทึก source_crane_token_no เป็นที่มา และ issued_at → loaded_at ตามที่ใช้จริง |
| M-3 | Class B — several tokens, same unit. All token rows for the bill name the same truck and unit: deduplicate to one allocation for the full delivery, with every source token number recorded in its provenance list and the earliest issued_at as loaded_at. Weight is counted once.ชั้น B — หลายเหรียญ หน่วยเดียวกัน แถวเหรียญทุกแถวของใบระบุรถและหน่วย เดียวกัน: ยุบเป็นหนึ่ง การจัดสรรสำหรับทั้งใบ โดยบันทึกเลขเหรียญต้นทาง ทุกเลข ไว้ในรายการที่มา และใช้ issued_at ที่เร็วที่สุดเป็น loaded_at น้ำหนักถูกนับ ครั้งเดียว |
| M-4 | Class C — several units, or any uncertainty (a LEGACY shape only). Under the decided rule one intake never has two live allocations (H12, FR-H35), so this class exists solely to carry history the applied data cannot settle, and no new act may ever create it. Token rows naming different units or trucks, a missing unit, a missing or contradictory bill link, or any history the source cannot settle: write one allocation per distinct unit with qty_basis = legacy_quantity_unknown and allocated_kg = NULL, mark the bill reconciliation_required, retain every source token row in provenance, and block financial attribution (CCS attribution and any per-bill factory figure) until a named human act resolves it. The farmer's applied settled station weight is not touched — it never depended on the token.ชั้น C — หลายหน่วย หรือมีความไม่แน่นอนใด ๆ (เป็นรูปแบบของข้อมูลเก่าเท่านั้น) ภายใต้กฎที่ตัดสินแล้ว การรับอ้อยหนึ่งครั้งไม่เคยมีการจัดสรรที่ใช้งานสองรายการ (H12, FR-H35) ชั้นนี้จึงมีอยู่ เพียง เพื่อรับประวัติที่ข้อมูลที่ใช้จริงยุติไม่ได้ และ ไม่มีการกระทำใหม่ใดสร้างมันได้เลย แถวเหรียญที่ระบุหน่วยหรือรถ ต่างกัน หน่วยที่ขาด การเชื่อมใบที่ขาดหรือขัดกัน หรือประวัติใดที่ต้นทางยุติไม่ได้: เขียนการจัดสรรหนึ่งรายการ ต่อหนึ่งหน่วยที่ต่างกัน ด้วย qty_basis = legacy_quantity_unknown และ allocated_kg = NULL ทำเครื่องหมายใบว่า reconciliation_required เก็บแถวเหรียญต้นทางทุกแถว ไว้ในที่มา และ กั้นการปันส่วนทางการเงิน (การปันส่วน CCS และค่าใด ๆ ของโรงงานรายใบ) จนกว่าการกระทำของคนที่ระบุชื่อจะชี้ขาด น้ำหนักสถานีที่ชำระแล้วของชาวไร่ตามที่ใช้จริง ไม่ถูกแตะ — มันไม่เคยขึ้นกับเหรียญ |
| M-5 | returned_at is the small truck's exit fact. It maps to the exit confirmation of the farmer's own load (StationLoadExitConfirmed) and never to a manifest closure or a departure. No manifest, consignment or unit load is invented for historical rows: where the applied data identifies a trip, a reconstructed consignment and unit load are written and marked reconstructed; where it does not, allocations attach to a legacy_unassigned unit load flagged as such, and no departure time is guessed.returned_at คือข้อเท็จจริงการออกของรถเล็ก แม็ปไปยังการยืนยันการชั่งออกของการบรรทุกของชาวไร่เอง (StationLoadExitConfirmed) และ ไม่เคย ไปยังการปิดใบกำกับหรือการออกเดินทาง ไม่มีการคิดใบกำกับ consignment หรือ unit load ขึ้นใหม่ให้แถวประวัติ: เมื่อข้อมูลที่ใช้จริงระบุเที่ยวได้ ให้เขียน consignment และ unit load ที่ ประกอบขึ้นใหม่ และ ทำเครื่องหมายว่าประกอบขึ้นใหม่; เมื่อระบุไม่ได้ การจัดสรรผูกกับ unit load legacy_unassigned ที่ติดธงไว้ และไม่เดาเวลาออกเดินทาง |
| M-6 | History is never rewritten. Applied CraneToken rows and the historical CraneTokenIssued / CraneTokenReturned events stay readable at their ids, unedited and undeleted; the registers mark them retired with the change set that retired them and the finding that killed the clause. Retirement is a forward statement, not an erasure.ประวัติไม่เคยถูกเขียนใหม่ แถว CraneToken ที่ใช้จริงและ event CraneTokenIssued / CraneTokenReturned ทางประวัติศาสตร์ยัง อ่านได้ที่ id ของมัน ไม่ถูกแก้และไม่ถูกลบ; ทะเบียนทำเครื่องหมายว่าปลดแล้ว พร้อมชุดการเปลี่ยนแปลงที่ปลดและผลตรวจที่ทำให้ข้อความนั้นตกไป การปลดเป็นการประกาศไปข้างหน้า ไม่ใช่การลบล้าง |
| M-7 | Idempotent, dry-run first, and reported. The migration runs dry first and produces a dated report: counts per class A, B and C, bills marked reconciliation_required, tokens retained, reconstructed trips, and any bill whose station net is missing. A re-run produces no new rows. Nothing is applied on a report nobody read.กันซ้ำได้ ทดลองก่อน และมีรายงาน การย้ายทดลองรันก่อนและผลิต รายงานลงวันที่: จำนวนต่อชั้น A, B และ C ใบที่ทำเครื่องหมาย reconciliation_required เหรียญที่เก็บไว้ เที่ยวที่ประกอบขึ้นใหม่ และใบใดที่ขาดน้ำหนักสุทธิของสถานี การรันซ้ำผลิต แถวใหม่เป็นศูนย์ ไม่มีการ apply บนรายงานที่ไม่มีใครอ่าน |
| M-8 | Rollback is possible because nothing was destroyed. The migration only inserts new rows and provenance; it edits and deletes nothing applied. A rollback therefore voids the inserted rows with migration_rollback, re-points readers at the applied model, and leaves the applied data exactly as it was — which is the property that makes this migration reversible at all.ย้อนกลับได้เพราะไม่มีอะไรถูกทำลาย การย้ายเพียง insert แถวใหม่และที่มา; ไม่แก้และไม่ลบสิ่งที่ใช้จริงเลย การย้อนกลับจึงยกเลิกแถวที่ insert ด้วย migration_rollback ชี้ผู้อ่านกลับไปที่โมเดลที่ใช้จริง และปล่อยข้อมูลที่ใช้จริงไว้อย่างเดิมทุกประการ — ซึ่งเป็นคุณสมบัติที่ทำให้การย้ายนี้ย้อนกลับได้เลย |
| Applied (v0.21.0)ที่ใช้จริง (v0.21.0) | Successor, and what happens to historyผู้สืบทอด และประวัติเดิมเป็นอย่างไร |
|---|---|
| CraneToken | Retired as the authoritative record and mapped field by field: station_bill_id → TransferLoadAllocation.station_bill_id, transfer_truck_id + truck_unit → TransferUnitLoad, issued_at → loaded_at, returned_at → the small truck's exit confirmation (M-5), token_no → source_crane_token_no as provenance; the token number survives only as provenance, because no successor artifact exists (H13, OQ-2 closed). Rows migrate under M-2, M-3 or M-4 and are never deleted.ปลดจากการเป็นระเบียนที่มีอำนาจ และแม็ปทีละฟิลด์: station_bill_id → TransferLoadAllocation.station_bill_id, transfer_truck_id + truck_unit → TransferUnitLoad, issued_at → loaded_at, returned_at → การยืนยันการชั่งออกของรถเล็ก (M-5), token_no → source_crane_token_no เป็นที่มา ; เลขเหรียญอยู่รอด เพียง ในฐานะที่มา เพราะไม่มี artifact ผู้สืบทอด (H13, OQ-2 ปิดแล้ว) แถวย้ายตาม M-2, M-3 หรือ M-4 และ ไม่ถูกลบเลย |
| StationBill → CraneToken (1—1..*) | Replaced by StationBill → TransferLoadAllocation (1—0..*) and TransferUnitLoad → TransferLoadAllocation (1—1..*). The applied 1..* reading is preserved and made honest: several loading acts per intake were always possible, and now they carry kilograms instead of implying them.แทนด้วย StationBill → TransferLoadAllocation (1—0..*) และ TransferUnitLoad → TransferLoadAllocation (1—1..*) การอ่าน 1..* ที่ใช้จริงถูก คงไว้และทำให้ตรงไปตรงมา: การยกหลายครั้งต่อการรับอ้อยเป็นไปได้อยู่แล้ว และตอนนี้มันพกกิโลกรัมแทนการบอกเป็นนัย |
| StationBill.transfer_truck_id | Retired. Readers repoint to the allocation chain; historical values are preserved in a provenance column that no attribution, settlement or report reads, so a legacy row can still be explained without a shortcut being trusted again (H7, FR-H29).ปลด ผู้อ่านชี้ไปที่สายการจัดสรร; ค่าทางประวัติศาสตร์เก็บไว้ในคอลัมน์ที่มาที่ ไม่มีการปันส่วน การชำระ หรือรายงานใดอ่าน แถวเก่าจึงยังอธิบายได้โดยไม่กลับไปเชื่อทางลัดอีก (H7, FR-H29) |
| CraneTokenIssued / CraneTokenReturned | Superseded by TransferLoadAllocated and StationLoadExitConfirmed respectively — not by TransferManifestClosed, which records a different fact at a different gate. Applied event names are retired by id in the change set that applies this, with consumers repointed; historical events are not rewritten.แทนด้วย TransferLoadAllocated และ StationLoadExitConfirmed ตามลำดับ — ไม่ใช่ TransferManifestClosed ซึ่งบันทึกข้อเท็จจริงอื่นที่ประตูอื่น ชื่อ event ที่ใช้จริงถูกปลดตาม id ในชุดการเปลี่ยนแปลงที่ apply เรื่องนี้ พร้อมชี้ consumer ใหม่; event ทางประวัติศาสตร์ไม่ถูกเขียนใหม่ |
| FR-175 | Amended by id, not silently reinterpreted: it keeps its subject — CCS attribution to the carrying unit — and changes its mechanism to the allocation chain with the unchanged-value rule of FR-H11. The amendment must state the finding that killed the token clause: a physical artifact cannot be the authoritative record of a financial attribution.แก้ตาม id ไม่ใช่ตีความใหม่อย่างเงียบ ๆ: คง subject เดิม — การปันส่วน CCS ให้หน่วยที่บรรทุก — และเปลี่ยนกลไกเป็นสายการจัดสรรพร้อม กฎค่าไม่เปลี่ยนตาม FR-H11 การแก้ต้องระบุผลตรวจที่ทำให้ข้อความเรื่องเหรียญตกไป: artifact กายภาพเป็นระเบียนที่มีอำนาจของการปันส่วนทางการเงินไม่ได้ |
| FR-179 | Amended by id, additively: the namespace, the prefixes, the form and the surrender of the bundle are unchanged; what is added is the modelled TransferTruckNote, the statement that only statutory notes take numbers from the 7-digit series, and the bundle-reconciliation record of FR-H4.แก้ตาม id แบบเพิ่มเติม: namespace, prefix, ฟอร์ม และการยื่นชุดเอกสาร ไม่เปลี่ยน; สิ่งที่เพิ่มคือ TransferTruckNote ในโมเดล ข้อความว่า เฉพาะใบตามกฎหมายเท่านั้นที่รับเลขจากชุด 7 หลัก และระเบียนการกระทบยอดชุดเอกสารตาม FR-H4 |
| WF-70 · WF-71 | WF-70 steps 2–3 redrawn (Section 8), step 4 unchanged in substance, step 1 unchanged; the applied four-step count is respected. WF-71 step 1 gains the closed-manifest and truck-note precondition and keeps everything else. One new station workflow carries the consignment close and departure gate.WF-70 ขั้นตอน 2–3 วาดใหม่ (ข้อ 8) ขั้นตอน 4 ไม่เปลี่ยน ในสาระ ขั้นตอน 1 ไม่เปลี่ยน; เคารพจำนวนสี่ขั้นตอนที่ใช้จริง WF-71 ขั้นตอน 1 เพิ่มเงื่อนไขใบกำกับที่ปิดและใบชั่งของรถ และคงสิ่งอื่นไว้ workflow สถานี ใหม่ หนึ่งรายการรับประตูปิด consignment และออกเดินทาง |
R Every case named anywhere in this draft has a test here, so a reviewer can ask "what proves it" and get an answer, and an implementer cannot claim a case was out of scope. Each test states its expected outcome in full; a test whose expected outcome is "it depends" is a design gap and is listed as one.R ทุกกรณีที่ระบุที่ใดในร่างนี้มีการทดสอบอยู่ที่นี่ ผู้ทบทวนจึงถามได้ว่า "อะไรพิสูจน์" แล้วได้คำตอบ และผู้พัฒนาอ้างว่ากรณีนั้นอยู่นอกขอบเขตไม่ได้ การทดสอบแต่ละข้อระบุผลลัพธ์ที่คาดไว้ครบถ้วน; การทดสอบที่ผลลัพธ์ที่คาดคือ "ขึ้นอยู่กับ" เป็นช่องว่างของการออกแบบ และถูกระบุไว้เช่นนั้น
| ID | Caseกรณี | Expected outcomeผลลัพธ์ที่คาด |
|---|---|---|
| T-1 | Normal intakeการรับอ้อยปกติ | One bill, one allocation for its full net in kg, one unit load, bill finalised and 4-ply printed at the farmer's exit weigh, yellow ply in the bundle, manifest closed later, consignment departs, factory receives, CCS attributed unchanged, reconciliation within the applied transfer-loss threshold — a downstream policy fact, never an allocation tolerance — farmer settles on station weight.หนึ่งใบ หนึ่งการจัดสรรเต็มน้ำหนักสุทธิเป็นกิโลกรัม หนึ่ง unit load ปิดใบและพิมพ์ 4 สำเนาที่การชั่งออกของชาวไร่ ใบเหลืองอยู่ในชุด ปิดใบกำกับภายหลัง consignment ออกเดินทาง โรงงานรับ ปันส่วน CCS โดยไม่เปลี่ยนค่า กระทบยอดอยู่ในเกณฑ์การสูญหายขนถ่ายที่ใช้จริง — ข้อเท็จจริงเชิงนโยบายปลายทาง ไม่ใช่ค่าเผื่อการจัดสรร — ชาวไร่ชำระบนน้ำหนักสถานี |
| T-2 | Pre-lift target capacity failure and target switchความจุหน่วยเป้าหมายไม่พอก่อนยก และการสลับเป้าหมาย | The operator confirms unit A, then A cannot take the complete load: the app returns to target selection with no allocation written, records TransferLoadTargetSwitched with reason capacity and increments target_switch_count; the lift onto unit B writes exactly one allocation for the whole intake. A second live allocation for the same bill is refused by the database with alloc.err.second_live_allocation; no partial and no estimated split exists anywhere in the run.ผู้ปฏิบัติงานยืนยันหน่วย A แล้ว A รับการบรรทุกทั้งคันไม่ได้: แอปกลับไปที่การเลือกเป้าหมายโดยไม่เขียนการจัดสรร บันทึก TransferLoadTargetSwitched เหตุผล capacity และเพิ่ม target_switch_count; การยกขึ้นหน่วย B เขียนการจัดสรร หนึ่งรายการพอดี สำหรับการรับอ้อยทั้งครั้ง การจัดสรรที่ใช้งานรายการที่สองของใบเดียวกันถูก ปฏิเสธโดยฐานข้อมูล ด้วย alloc.err.second_live_allocation; ไม่มีการจัดสรรบางส่วนและการแบ่งแบบประมาณที่ใดในการทดสอบนี้ |
| T-3 | Transfer truck fills — the applied cut and reopenรถขนถ่ายเต็ม — การตัดใบแล้วเปิดใหม่ที่ใช้จริง | The transfer truck fills; the applied weighing-and-document cut runs — the farmer truck weighs out and back in; two bills exist for one physical arrival linked by cut_from_bill_id; two 4-ply sets print; each bill carries exactly one live allocation for its own complete lift; the manifest index lists two delivery numbers; no weight is counted twice and no test asserts that one lift was divided.รถขนถ่ายเต็ม; การตัดใบด้านการชั่งและเอกสารที่ใช้จริงทำงาน — รถของชาวไร่ชั่งออกแล้วเข้าใหม่; มีสองใบสำหรับการมาถึงทางกายภาพเดียวเชื่อมด้วย cut_from_bill_id; พิมพ์สองชุด 4 สำเนา; ใบแต่ละใบพกการจัดสรรที่ใช้งานหนึ่งรายการพอดีสำหรับการยกทั้งคันของตัวเอง; สารบัญของใบกำกับแสดง สอง เลขที่ใบชั่ง; ไม่มีน้ำหนักถูกนับสองครั้ง และไม่มีการทดสอบใดยืนยันว่าการยกครั้งเดียวถูกแบ่ง |
| T-4 | Legacy bill with three tokens on one unitใบเก่าที่มีสามเหรียญบนหน่วยเดียว | Migration writes one allocation for the full net (M-3), provenance lists all three token numbers, all three token rows survive, and the total weight after migration equals the total before — asserted, not assumed.การย้ายเขียนการจัดสรร หนึ่ง รายการเต็มน้ำหนักสุทธิ (M-3) ที่มาแสดงเลขเหรียญทั้งสาม แถวเหรียญทั้งสามอยู่รอด และน้ำหนักรวมหลังย้ายเท่ากับก่อนย้าย — ยืนยันด้วยการทดสอบ ไม่ใช่สันนิษฐาน |
| T-5 | Legacy bill with tokens on two unitsใบเก่าที่มีเหรียญบนสองหน่วย | Migration writes one legacy_quantity_unknown allocation per unit with NULL kilograms, marks the bill reconciliation_required, retains every token, and blocks CCS attribution and any per-bill factory figure until a named act resolves it — while leaving the farmer's applied settled weight untouched.การย้ายเขียนการจัดสรร legacy_quantity_unknown หนึ่งรายการต่อหน่วย โดยกิโลกรัมเป็น NULL ทำเครื่องหมายใบว่า reconciliation_required เก็บเหรียญทุกอัน และ กั้นการปันส่วน CCS และค่าใด ๆ ของโรงงานรายใบ จนกว่าการกระทำที่ระบุชื่อจะชี้ขาด — โดยไม่แตะน้ำหนักที่ชำระแล้วของชาวไร่ตามที่ใช้จริง |
| T-6 | Truck or unit substitution after allocationเปลี่ยนรถหรือหน่วยหลังจัดสรร | New unit loads created on the same consignment; affected allocations superseded with unit_substituted; plate snapshots differ between versions; no field anywhere still names the old truck as the carrier; the manifest reopens as a new version if it had closed.สร้าง unit load ใหม่บน consignment เดิม; การจัดสรรที่กระทบถูกแทนที่ด้วย unit_substituted; snapshot ทะเบียนต่างกันระหว่างฉบับ; ไม่มีฟิลด์ใดที่ยังระบุรถคันเก่าเป็นผู้บรรทุก; ใบกำกับเปิดใหม่เป็นฉบับใหม่หากเคยปิดแล้ว |
| T-7 | Cross-midnight consignmentconsignment คร่อมเที่ยงคืน | A unit is allocated at 23:50 and weighs out and departs at 23:58; the factory receives it at 01:20. Every station fact — bill, allocation, unit note, manifest version, departure — carries the station operating day of the earlier date on the applied 24:00 cutoff; the receipt, the certified factory weight, the tipping and the CCS result all carry the crushing day the factory assigns at arrival. The two dates differ and both survive unchanged; nothing normalises, shifts or backdates either; the reconciliation view shows both with their timestamps and timezone, joined through the typed unit reference; and every report states which basis it counted on (FR-H45…FR-H48).หน่วยถูกจัดสรรเวลา 23:50 ชั่งออกและออกเดินทาง 23:58; โรงงานรับเวลา 01:20 ข้อเท็จจริงของสถานีทุกรายการ — ใบชั่ง การจัดสรร ใบของหน่วย ใบกำกับฉบับนั้น การออกเดินทาง — พกวันทำการของสถานีของวันที่ก่อนตามการตัดวัน 24:00 ที่ใช้จริง; ใบรับ น้ำหนักที่โรงงานรับรอง การเท และผล CCS พกวันหีบที่โรงงานกำหนดตอนมาถึง วันทั้งสองต่างกันและอยู่รอดโดยไม่เปลี่ยนทั้งคู่; ไม่มีสิ่งใดปรับให้เป็นมาตรฐาน เลื่อน หรือย้อนวัน; มุมมองการกระทบยอดแสดงทั้งสองพร้อมตราเวลาและเขตเวลา เชื่อมกันผ่านการอ้างอิงหน่วยที่มีชนิด; และรายงานทุกฉบับระบุฐานที่ใช้นับ (FR-H45…FR-H48) |
| T-8 | Full shift offline, then late syncoffline เต็มกะ แล้ว sync ช้า | Every allocation, note, manifest close and departure completes offline; on sync nothing duplicates, ordering matches the station's local_seq, days are the captured days, lag is reported per record, and a replay of the whole journal produces zero new rows.การจัดสรร ใบชั่ง การปิดใบกำกับ และการออกเดินทางทุกรายการทำได้ครบขณะ offline; เมื่อ sync ไม่มีอะไรซ้ำ ลำดับตรงกับ local_seq ของสถานี วันเป็นวันที่เก็บ รายงานระยะที่ช้ารายระเบียน และการเล่นซ้ำ journal ทั้งชุดผลิตแถวใหม่ ศูนย์ แถว |
| T-9 | Duplicate allocation, two partitionsการจัดสรรซ้ำจากสองเขต | The live partial unique refuses the second within one partition; across partitions the merge keeps the departed or weighed side, supersedes the other as duplicate, raises one exception naming both operators and devices, and deletes nothing and re-weighs nothing.partial unique ของรายการที่ใช้งานปฏิเสธรายการที่สองภายในเขตเดียวกัน; ข้ามเขต การ merge เก็บฝ่ายที่ออกเดินทางหรือชั่งแล้ว แทนที่อีกฝ่ายเป็น duplicate ยกข้อยกเว้นหนึ่งรายการที่ระบุผู้ปฏิบัติงานและอุปกรณ์ทั้งสอง และ ไม่ลบอะไรและไม่ชั่งใหม่ |
| T-10 | Factory refusalโรงงานปฏิเสธ | Refusal recorded on the factory's receipt with reason and actor; every allocation retained; the return or re-delivery is a new consignment referencing the first; no station row mutated from the factory side.การปฏิเสธถูกบันทึกบนใบรับของโรงงานพร้อมเหตุผลและผู้กระทำ; เก็บการจัดสรรทุกรายการ; การนำกลับหรือส่งใหม่เป็น consignment ใหม่ที่อ้างถึงอันแรก; ไม่มีแถวของสถานีถูกเปลี่ยนจากฝั่งโรงงาน |
| T-11 | Late CCS, then confirmationCCS มาช้า แล้วยืนยัน | Before the value: every farmer record reads awaiting CCS with an as-of stamp and no number. Provisional arrives: attributed unchanged to every live allocation on the unit. Confirmed arrives: the provisional attribution is superseded, not edited, both values are readable with their dates, and no allocation's CCS differs from the unit's value.ก่อนมีค่า: ระเบียนของชาวไร่ทุกรายอ่านว่า รอ CCS พร้อมตราเวลา as-of และไม่มีตัวเลข เมื่อค่าชั่วคราวมา: ปันให้การจัดสรรที่ใช้งานทุกรายการบนหน่วยโดยไม่เปลี่ยนค่า เมื่อค่ายืนยันมา: การปันส่วนชั่วคราวถูก แทนที่ ไม่ใช่แก้ทับ อ่านค่าทั้งสองได้พร้อมวันที่ และ ไม่มีการจัดสรรใดมีค่า CCS ต่างจากค่าของหน่วย |
| T-12 | Note-bundle mismatch at the factoryชุดใบไม่ตรงที่โรงงาน | A ply missing, an extra ply, and an unreadable ply are each recorded on the bundle reconciliation by delivery number, raised to both exception queues, resolved by the owning role; the applied A-36 remedy governs the paper; the digital record stays authoritative; and the consignment's weigh-in is not blocked by paper alone.สำเนาที่ขาด สำเนาที่เกิน และสำเนาที่อ่านไม่ออก ถูกบันทึกบนการกระทบยอดชุดเอกสารตามเลขที่ใบชั่ง ยกเข้าคิวข้อยกเว้นทั้งสอง แก้โดยบทบาทที่เป็นเจ้าของ; ทางแก้ตาม A-36 ที่ใช้จริงกำกับกระดาษ; ระเบียนดิจิทัลยังมีอำนาจ; และ การชั่งเข้าของ consignment ไม่ถูกกั้นด้วยกระดาษเพียงอย่างเดียว |
| T-14 | Manifest reopen after departureเปิดใบกำกับใหม่หลังออกเดินทาง | Only the supervisor may reopen, only with a reason; version n and its hash stay readable; version n+1 shows the difference; the printed control sheet still verifies against version n; the departure time is unchanged; the reopen appears in the exception queue.เฉพาะหัวหน้าเปิดใหม่ได้ ต้องมีเหตุผล; ฉบับ n และ hash ของมันยังอ่านได้; ฉบับ n+1 แสดงส่วนต่าง; ใบควบคุมที่พิมพ์ยังตรวจได้กับฉบับ n; เวลาออกเดินทางไม่เปลี่ยน; การเปิดใหม่ปรากฏในคิวข้อยกเว้น |
| T-15 | Cross-tenant write refusalการปฏิเสธการเขียนข้าม tenant | A factory-tenant write against any station-owned row is refused by the database, and the reverse likewise; a read with no tenant context returns nothing; the reconciliation read model resolves only through the declared relation and appears as a declared seam row.การเขียนจาก tenant ของโรงงานลงแถวใดที่สถานีเป็นเจ้าของถูก ปฏิเสธโดยฐานข้อมูล และทางกลับกันเช่นกัน; การอ่านที่ไม่มีบริบท tenant คืนค่าว่างเปล่า; read model ของการกระทบยอด resolve ผ่านความสัมพันธ์ที่ประกาศไว้เท่านั้น และปรากฏเป็นแถว seam ที่ประกาศไว้ |
| T-16 | Rounding, residual and degraded modeการปัด เศษ และโหมดถดถอย | Apportioning a factory net across three allocations yields integer kilograms summing exactly to the source figure, with the residual on the largest allocation and the assignment recorded; a scale-link failure halts weighing with no manual path; a station-client failure produces a recorded degraded-mode reconstruction from the note bundle with its actor and time; no CCS value is divided in any of these paths.การเฉลี่ยน้ำหนักสุทธิของโรงงานไปสามการจัดสรรให้ จำนวนเต็มกิโลกรัมที่รวมได้เท่ากับค่าต้นทางพอดี โดยเศษอยู่บนการจัดสรรที่มากที่สุดและบันทึกการยกไว้; สายตาชั่งล้มเหลว หยุดการชั่ง โดยไม่มีเส้นทางคีย์มือ; เครื่องของสถานีล้มเหลวให้การประกอบขึ้นใหม่ใน โหมดถดถอย ที่บันทึกไว้จากชุดใบ พร้อมผู้กระทำและเวลา; ไม่มีค่า CCS ถูกหารในเส้นทางใดเหล่านี้ |
| T-17 | Mother + child journeyการเดินทางแม่ + ลูก | One consignment carrying a mother and a child unit produces two independent unit records: two TransferUnitLoad rows, two weigh-out notes with two different numbers from the station's own range, two separate expected bundles whose memberships do not intersect, two certified factory weight sequences and two CCS results. Each bill receives the CCS of its unit, unchanged. No trip-level weight, CCS or bundle exists anywhere in the record, and an attempt to compute one is refused.consignment เดียวที่พาหน่วยแม่และหน่วยลูกให้ ระเบียนรายหน่วยสองชุดที่เป็นอิสระต่อกัน: แถว TransferUnitLoad สองแถว ใบชั่งออก สองใบ ที่มี เลขต่างกันสองเลขจากช่วงเลขของสถานีเอง ชุดเอกสารที่คาดว่าจะมีสองชุดที่สมาชิกไม่ทับกัน ลำดับการชั่งที่รับรองของโรงงานสองลำดับ และ ผล CCS สองผล ใบแต่ละใบได้ CCS ของหน่วยของมัน โดยไม่เปลี่ยนค่า ไม่มีน้ำหนัก CCS หรือชุดเอกสารระดับเที่ยวอยู่ที่ใดในระเบียน และความพยายามคำนวณค่านั้นถูกปฏิเสธ |
| T-18 | Large single-unit vehicleรถหน่วยเดี่ยวขนาดใหญ่ | A very large single-body or single-trailer vehicle produces exactly one of everything: one TransferUnitLoad, one weigh-out note, one bundle, one certified weight sequence, one CCS result — and the consignment above it adds no second layer of measurement. The same code path serves it as serves a mother, with no special case and no "trip" branch.รถตัวถังเดี่ยวหรือรถพ่วงเดี่ยวขนาดใหญ่ให้ อย่างละหนึ่งพอดี: TransferUnitLoad หนึ่งตัว ใบชั่งออกหนึ่งใบ ชุดเอกสารหนึ่งชุด ลำดับการชั่งที่รับรองหนึ่งลำดับ ผล CCS หนึ่งผล — และ consignment ที่อยู่เหนือมันไม่เพิ่มชั้นการวัดที่สอง เส้นทางโค้ดเดียวกันรองรับมันเหมือนที่รองรับหน่วยแม่ ไม่มีกรณีพิเศษและไม่มีกิ่ง "เที่ยว" |
| T-19 | Unit note — issuer, namespace, quota snapshot, no renumberingใบของหน่วย — ผู้ออก namespace snapshot โควตา ไม่ให้เลขใหม่ | The note is issued by the station at the unit's weigh-out, its number comes from that station's own applied delivery-note range and is unique in the mill namespace, it is stored exactly as printed (text, leading zeros significant), and it carries the station quota snapshot, the unit identity and configuration, and the expected bundle membership. A factory attempt to issue, replace or renumber the note is refused (T-15 wall), and a bundle presented with a note belonging to the other unit of the same trip is recorded as unexpected and raised, never silently accepted.ใบออกโดยสถานี ณ การชั่งออกของหน่วย เลขมาจากช่วงเลขที่ใบชั่งที่ใช้จริงของสถานีนั้นเอง และไม่ซ้ำใน namespace ของโรงงาน เก็บตามที่พิมพ์ทุกตัวอักษร (ข้อความ เลขศูนย์นำมีความหมาย) และพกsnapshot โควตาของสถานี อัตลักษณ์และการจัดหน่วย และสมาชิกชุดเอกสารที่คาดว่าจะมี ความพยายามของโรงงานที่จะออก แทน หรือให้เลขใหม่ ถูกปฏิเสธ (กำแพงตาม T-15) และชุดเอกสารที่ยื่นพร้อมใบที่เป็นของหน่วยอีกตัวในเที่ยวเดียวกันถูกบันทึกว่า เกินมา และถูกยกขึ้น ไม่ใช่รับไว้อย่างเงียบ ๆ |
| T-20 | Delayed sync across the cutoffsync ช้าคร่อมการตัดวัน | A station works disconnected across the 24:00 cutoff and syncs nine hours later. Every station fact keeps the captured operating day — not the sync day, not the ingestion day; ingestion writes no day of its own; the crushing day of any unit that already arrived is untouched; and a full journal replay changes no day on any row (FR-H46, FR-H19).สถานีทำงานขณะขาดการเชื่อมต่อคร่อมการตัดวัน 24:00 และ sync อีกเก้าชั่วโมงถัดมา ข้อเท็จจริงของสถานีทุกรายคงวันทำการที่ เก็บ ไว้ — ไม่ใช่วันที่ sync ไม่ใช่วันที่รับเข้า; การรับเข้าไม่เขียนวันของตัวเอง; วันหีบของหน่วยที่มาถึงแล้วไม่ถูกแตะ; และการเล่นซ้ำ journal ทั้งชุดไม่เปลี่ยนวันบนแถวใดเลย (FR-H46, FR-H19) |
| T-21 | Late arrival, two crushing days laterมาถึงช้า ข้ามไปสองวันหีบ | A breakdown delays a departed consignment by fourteen hours, so it arrives two crushing days after it departed. The station facts keep their departure-day stamps; the receipt and every factory fact carry the crushing day open at arrival; nothing is backdated to the departure day and nothing is forward-dated to make the pair agree; the inbound board and the reconciliation view display both dates and the gap between them, and the gap alone raises no exception (FR-H46, FR-H47).รถเสียทำให้ consignment ที่ออกเดินทางแล้วช้าไป 14 ชั่วโมง จึงมาถึงหลังจากออกเดินทางสองวันหีบ ข้อเท็จจริงของสถานีคงตราวันออกเดินทางไว้; ใบรับและข้อเท็จจริงของโรงงานทุกรายการพกวันหีบที่เปิดอยู่ ตอนมาถึง; ไม่มีการย้อนวันไปที่วันออกเดินทาง และไม่มีการเลื่อนวันไปข้างหน้าเพื่อให้คู่นั้นตรงกัน; กระดานขาเข้าและมุมมองการกระทบยอดแสดงวันทั้งสองและช่องห่าง และช่องห่างเพียงลำพังไม่ยกข้อยกเว้น (FR-H46, FR-H47) |
| T-22 | Day-cutoff boundary, both sidesขอบการตัดวัน ทั้งสองฝั่ง | Two units weigh out at 23:59:59 and 00:00:01 — adjacent station operating days on the 24:00 cutoff — and arrive inside the same factory crushing day; a third crosses the factory's own crushing-day boundary while its station day does not change. Each side's boundary applies only to its own facts: no station stamp moves to match a crushing day, no crushing day moves to match a station stamp, and the two boundaries are proven independent (FR-H45, FR-H46).สองหน่วยชั่งออกเวลา 23:59:59 และ 00:00:01 — วันทำการสถานีที่ติดกัน ตามการตัดวัน 24:00 — และมาถึงภายในวันหีบเดียวกันของโรงงาน; หน่วยที่สามข้ามขอบวันหีบของโรงงานเอง ขณะที่วันของสถานีไม่เปลี่ยน ขอบของแต่ละฝ่ายใช้กับข้อเท็จจริงของตัวเองเท่านั้น: ไม่มีตราของสถานีขยับไปหาวันหีบ ไม่มีวันหีบขยับไปหาตราของสถานี และพิสูจน์ได้ว่าขอบทั้งสองเป็นอิสระต่อกัน (FR-H45, FR-H46) |
| T-23 | No generic delivery date anywhereไม่มีวันส่งมอบแบบรวมที่ใดเลย | Settlement reads the station day, factory-side figures read the crushing day, station documents index by the station day and factory documents by the crushing day. A request for a single undifferentiated delivery_date — in a query, a report, an export or an API response — is refused with recon.err.day_basis_unnamed; a board rendered without a named day basis fails the test; and an attempt by either side to write the other's day is refused with day.err.foreign_day_write (FR-H46, FR-H48).การชำระเงินอ่านวันของสถานี ค่าฝั่งโรงงานอ่านวันหีบ เอกสารของสถานีทำสารบัญด้วยวันสถานี และเอกสารของโรงงานด้วยวันหีบ คำขอ delivery_date ค่าเดียวที่ไม่แยกฝ่าย — ใน query รายงาน การส่งออก หรือคำตอบ API — ถูก ปฏิเสธ ด้วย recon.err.day_basis_unnamed; กระดานที่แสดงโดยไม่ระบุฐานวัน ไม่ผ่าน การทดสอบ; และความพยายามของฝ่ายหนึ่งที่จะเขียนวันของอีกฝ่ายถูกปฏิเสธด้วย day.err.foreign_day_write (FR-H46, FR-H48) |
| T-24 | Normal offline sequential issuanceการออกเลขเรียงลำดับขณะ offline ตามปกติ | A station works a full shift with no connectivity on an active block. Numbers are issued strictly sequentially from range_from upward, none skipped, none reserved, none reused; the cursor is persisted before each act is acknowledged and survives a forced power cut and an app restart mid-shift — reopening resumes at the next unissued number, never at a repeat and never at a jump. Every issued record carries its range_epoch, its owning station and client and its local_seq. No call is made to any gateway, and the run is asserted to contain zero allocator requests (FR-H49, FR-H50).สถานีทำงานเต็มกะโดยไม่มีการเชื่อมต่อ บนบล็อก active เลขถูกออกเรียงลำดับเคร่งครัดจาก range_from ขึ้นไป ไม่ข้าม ไม่จอง ไม่ใช้ซ้ำ; เคอร์เซอร์ถูกบันทึกถาวรก่อนตอบรับการกระทำแต่ละครั้ง และอยู่รอดการตัดไฟและการรีสตาร์ตแอปกลางกะ — เปิดใหม่แล้วไปต่อที่เลขถัดไปที่ยังไม่ออก ไม่ใช่เลขซ้ำและไม่ใช่การกระโดด ระเบียนที่ออกทุกรายการพก range_epoch สถานีและเครื่องที่เป็นเจ้าของ และ local_seq ไม่มีการเรียก gateway ใด และการทดสอบยืนยันว่ามีคำขอผู้จ่ายเลขเป็นศูนย์ (FR-H49, FR-H50) |
| T-25 | Delayed idempotent syncการ sync ที่ล่าช้าและกันซ้ำ | The shift of T-24 syncs nine hours later, then the whole journal is replayed twice more and one batch is delivered out of order and one twice. Ingestion is upsert by (tenant_id, transfer_station_id, station_client_id, idempotency_key): the result is zero duplicate numbers, zero duplicate allocations, zero duplicate events and zero new rows on every replay; ordering follows the station's local_seq, not arrival order; every record keeps its captured day and reports its sync lag; and no record is renumbered to fit the order it arrived in (FR-H19, FR-H50).กะใน T-24 sync เก้าชั่วโมงถัดมา จากนั้น journal ทั้งชุดถูกเล่นซ้ำอีกสองรอบ และหนึ่งชุดถูกส่งมาผิดลำดับ และอีกหนึ่งชุดสองครั้ง การรับเข้าเป็น upsert ด้วย (tenant_id, transfer_station_id, station_client_id, idempotency_key): ผลคือ เลขซ้ำเป็นศูนย์ การจัดสรรซ้ำเป็นศูนย์ event ซ้ำเป็นศูนย์ และแถวใหม่เป็นศูนย์ ในการเล่นซ้ำทุกรอบ; ลำดับเป็นไปตาม local_seq ของสถานี ไม่ใช่ลำดับที่มาถึง; ทุกระเบียนคงวันที่ เก็บ ไว้และรายงานระยะที่ sync ช้า; และไม่มีระเบียนใดถูกให้เลขใหม่เพื่อให้เข้ากับลำดับที่มันมาถึง (FR-H19, FR-H50) |
| T-26 | Stale or superseded epoch reuseการใช้ epoch ที่เก่าค้างหรือถูกแทนที่ซ้ำ | A station client holds a block that has since been superseded by a replacement with a new epoch, and a second client's clock still points at an expired block. Both attempts are refused at the point of use — num.err.stale_epoch and num.err.block_expired — with the block, the epoch, the owner, the device, the operator and the captured time recorded. Where the paper had already printed, the record is quarantined, is visible in the exception queue, and is unusable downstream (it cannot be allocated against, bundled, closed or dispatched). Nothing is renumbered, nothing is re-issued into the new block, nothing is deleted, and records issued earlier under the now-superseded epoch keep their numbers and stay readable (FR-H51, FR-H53).เครื่องของสถานีถือบล็อกที่ต่อมาถูกแทนที่ด้วยบล็อกใหม่ที่มี epoch ใหม่ และอีกเครื่องยังชี้ที่บล็อกที่ หมดอายุ ความพยายามทั้งสองถูกปฏิเสธ ณ จุดใช้งาน — num.err.stale_epoch และ num.err.block_expired — โดยบันทึกบล็อก epoch เจ้าของ อุปกรณ์ ผู้ปฏิบัติงาน และเวลาที่เก็บ กรณีที่กระดาษพิมพ์ไปแล้ว ระเบียนถูกกักไว้ ปรากฏในคิวข้อยกเว้น และใช้ปลายทางไม่ได้ (จัดสรรทับ รวมชุด ปิด หรือส่งออกไม่ได้) ไม่มีการให้เลขใหม่ ไม่มีการออกซ้ำเข้าบล็อกใหม่ ไม่มีการลบ และระเบียนที่ออกก่อนหน้าภายใต้ epoch ที่ถูกแทนที่ คงเลขไว้และยังอ่านได้ (FR-H51, FR-H53) |
| T-27 | Duplicate and forked range detectionการตรวจจับเลขซ้ำและช่วงที่แยกสาย | Three faults are injected: the same delivery number under two different epochs, two live blocks whose ranges overlap in one mill namespace, and a number issued by a client that does not own the block after a device was re-imaged from a backup. Each is detected — num.err.duplicate_number, num.err.forked_range, num.err.wrong_station — the overlapping block is refused at activation by the range uniqueness of Section 5, and every already-printed record is quarantined with complete audit evidence naming both claimants. Resolution is the named supervisor act of FR-H53; the test asserts that no path in the system renumbers, silently merges or discards any of the three.ฉีดข้อผิดพลาดสามแบบ: เลขที่ใบชั่งเดียวกันภายใต้ epoch ต่างกันสองชุด บล็อกที่ใช้อยู่สองชุดที่ช่วงทับกันใน namespace ของโรงงานเดียว และเลขที่ออกโดยเครื่องที่ไม่ได้เป็นเจ้าของบล็อก หลังกู้เครื่องจากสำเนาสำรอง แต่ละแบบถูกตรวจพบ — num.err.duplicate_number num.err.forked_range num.err.wrong_station — บล็อกที่ทับกันถูกปฏิเสธตอนเปิดใช้ด้วยความไม่ซ้ำของช่วงในข้อ 5 และระเบียนที่พิมพ์ไปแล้วทุกรายการถูกกักไว้พร้อมหลักฐานตรวจสอบครบถ้วน ที่ระบุผู้อ้างสิทธิ์ทั้งสอง การชี้ขาดคือการกระทำของหัวหน้าที่ระบุชื่อตาม FR-H53; การทดสอบยืนยันว่า ไม่มีเส้นทางใดในระบบให้เลขใหม่ รวมอย่างเงียบ ๆ หรือทิ้ง ข้อใดในสามข้อนี้ |
| T-28 | Certified-scale capture is never manualการเก็บน้ำหนักจากตาชั่งที่รับรองไม่เคยทำด้วยมือ | Across every path in this draft — normal intake, offline shift, degraded mode after a station-client failure, migration and the paper fallback — every certified weight is captured directly from the government-calibrated scale, and the test asserts there is no field, keypad, API parameter or override by which any role can enter or reconstruct one (A-10, NFR-33, FR-H52). With the scale link down, weighing halts: no intake is created, the truck waits or is turned away and that is recorded (wb.err.scale_link_down) — the paper fallback carries the document, never a hand-written weight into the record.ทุกเส้นทางในร่างนี้ — การรับอ้อยปกติ กะที่ offline โหมดถดถอยหลังเครื่องของสถานีล่ม การย้ายข้อมูล และทางถอยกระดาษ — น้ำหนักที่รับรองทุกค่าถูกเก็บตรงจากตาชั่งที่รัฐสอบเทียบ และการทดสอบยืนยันว่าไม่มีฟิลด์ แป้นตัวเลข พารามิเตอร์ API หรือการ override ที่บทบาทใดจะป้อนหรือประกอบค่าขึ้นใหม่ได้ (A-10, NFR-33, FR-H52) เมื่อสายตาชั่งขาด การชั่งหยุด: ไม่มีการรับอ้อยถูกสร้าง รถต้องรอหรือถูกปฏิเสธ และเรื่องนั้นถูกบันทึก (wb.err.scale_link_down) — ทางถอยกระดาษพาเอกสาร ไม่เคยพาน้ำหนักที่เขียนด้วยมือเข้าสู่ระเบียน |
| T-29 | Seam, the allowed direction end to endseam ทิศทางที่อนุญาต ตั้งแต่ต้นจนจบ | With a valid X2 relation between the station and its named destination factory: the station declares and dispatches; the factory reads inbound tonnage, ETA and the per-unit bundle index before arrival; the factory then records arrival, certified weight, tipping, CCS and its reconciliation on its own rows and may accept, reject or record mismatches; the station reads that outcome for its own dispatch. Every read returns only the declared minimum fields of its seam row, resolves through the typed unit and consignment reference, and writes an audit entry with provenance and correlation id readable by the party it belongs to. No station-owned fact changed, and no factory-owned fact changed, by the other side (FR-H55, FR-H56, FR-H57, NFR-H7).เมื่อมีความสัมพันธ์ X2 ที่สมบูรณ์ระหว่างสถานีกับโรงงานปลายทางที่ระบุชื่อ: สถานีประกาศและส่งออก; โรงงานอ่านตันขาเข้า ETA และสารบัญชุดเอกสารรายหน่วยก่อนการมาถึง; จากนั้นโรงงานบันทึกการมาถึง น้ำหนักที่รับรอง การเท CCS และการกระทบยอดของตนบนแถวของตัวเอง และรับ ปฏิเสธ หรือบันทึกความไม่ตรงกันได้; สถานีอ่านผลนั้นสำหรับการส่งออกของตัวเอง การอ่านทุกครั้งคืนเฉพาะฟิลด์ขั้นต่ำที่ประกาศไว้ของแถว seam นั้น resolve ผ่านการอ้างอิงหน่วยและ consignment ที่มีชนิด และเขียนรายการตรวจสอบพร้อมที่มาและ correlation id ที่ฝ่ายเจ้าของอ่านได้ ไม่มีข้อเท็จจริงที่สถานีเป็นเจ้าของเปลี่ยน และไม่มีข้อเท็จจริงที่โรงงานเป็นเจ้าของเปลี่ยน โดยอีกฝ่าย (FR-H55, FR-H56, FR-H57, NFR-H7) |
| T-30 | Wrong factory and sibling factoryโรงงานผิด และโรงงานพี่น้อง | A factory with no relation to this station requests the consignment: refused with seam.err.no_relation. A different factory that does hold a relation with the same station requests a consignment bound to the first: refused with seam.err.wrong_factory — a relation is per named destination, not a licence over the station. A sibling factory in the same group or under the same ownership, and one sharing the same haulage contractor, are refused identically: group membership creates no reach and nothing becomes transitive (A-102). Every refusal is non-disclosing — the response is indistinguishable from the response for a consignment that does not exist — and each emits TenantSeamAccessRefused with its correlation id (FR-H56, FR-H58).โรงงานที่ไม่มีความสัมพันธ์กับสถานีนี้ร้องขอ consignment: ถูกปฏิเสธด้วย seam.err.no_relation โรงงานอื่นที่มีความสัมพันธ์กับสถานีเดียวกัน ร้องขอ consignment ที่ผูกกับโรงงานแรก: ถูกปฏิเสธด้วย seam.err.wrong_factory — ความสัมพันธ์เป็นรายปลายทางที่ระบุชื่อ ไม่ใช่ใบอนุญาตเหนือสถานี โรงงานพี่น้องในเครือเดียวกันหรือเจ้าของเดียวกัน และโรงงานที่ใช้ผู้รับเหมาขนส่งรายเดียวกัน ถูกปฏิเสธเหมือนกัน: การอยู่ในเครือไม่สร้างการเข้าถึง และไม่มีสิ่งใดกลายเป็นแบบส่งทอด (A-102) การปฏิเสธทุกครั้งไม่เปิดเผยข้อมูล — คำตอบแยกไม่ออกจากคำตอบของ consignment ที่ไม่มีอยู่ — และแต่ละครั้งปล่อย TenantSeamAccessRefused พร้อม correlation id (FR-H56, FR-H58) |
| T-31 | Unrelated bill, unrelated transfer, unrelated stationใบที่ไม่เกี่ยว การขนถ่ายที่ไม่เกี่ยว สถานีที่ไม่เกี่ยว | Holding a valid relation and a legitimately referenced unit, the factory then asks for: a StationBill not allocated to that unit, another consignment of the same station bound elsewhere, the station's other traffic for the day, and another station's records. All four are refused with seam.err.out_of_scope_record. A join attempted by matching dates, weights, note numbers or plate — rather than by the typed reference — is refused with seam.err.untyped_join, and the test asserts that no shared read model exposes a resolution path other than the typed one (FR-H56).เมื่อมีความสัมพันธ์ที่สมบูรณ์และหน่วยที่อ้างถึงโดยชอบแล้ว โรงงานขอเพิ่ม: StationBill ที่ ไม่ได้จัดสรรบนหน่วยนั้น consignment อื่นของสถานีเดียวกันที่มุ่งไปที่อื่น การจราจรอื่นของสถานีในวันนั้น และระเบียนของสถานีอื่น ทั้งสี่ถูกปฏิเสธด้วย seam.err.out_of_scope_record การเชื่อมที่พยายามทำด้วยวันที่ น้ำหนัก เลขที่ใบ หรือทะเบียนรถที่ตรงกัน แทนการอ้างอิงที่มีชนิด ถูกปฏิเสธด้วย seam.err.untyped_join และการทดสอบยืนยันว่า ไม่มี read model ที่แบ่งใช้ตัวใดเปิดเส้นทาง resolve อื่นนอกจากแบบมีชนิด (FR-H56) |
| T-32 | Attempted foreign-fact update, both directionsความพยายามแก้ข้อเท็จจริงของอีกฝ่าย ทั้งสองทิศทาง | The factory attempts, in turn, to create, modify, overwrite, normalize, backdate and delete a station-owned fact — a bill, an allocation, a manifest version, a dispatched weight, a departure time, a station operating day. The station attempts the same six against factory-owned arrival, certified weight, tipping, CCS and reconciliation. All twelve are refused by the database, not by application logic (seam.err.foreign_fact_write, tenant.err.cross_write_refused, day.err.foreign_day_write), each emitting TenantSeamAccessRefused. The only cross-tenant capability that survives is raising a mismatch visible in both queues (FR-H24, seam.transfer.mismatch_raise), and the test asserts the raise itself changes no row the raiser does not own.โรงงานพยายามตามลำดับที่จะ สร้าง แก้ เขียนทับ ปรับให้เป็นมาตรฐาน ย้อนวัน และลบ ข้อเท็จจริงที่สถานีเป็นเจ้าของ — ใบชั่ง การจัดสรร ใบกำกับฉบับหนึ่ง น้ำหนักที่ส่งออก เวลาออกเดินทาง วันทำการของสถานี สถานีพยายามหกอย่างเดียวกันกับการมาถึง น้ำหนักที่รับรอง การเท CCS และการกระทบยอดที่โรงงานเป็นเจ้าของ ทั้งสิบสองครั้งถูกปฏิเสธโดยฐานข้อมูล ไม่ใช่โดยตรรกะของแอป (seam.err.foreign_fact_write, tenant.err.cross_write_refused, day.err.foreign_day_write) และแต่ละครั้งปล่อย TenantSeamAccessRefused ความสามารถข้าม tenant อย่างเดียวที่เหลืออยู่คือการยกความไม่ตรงกันให้ปรากฏในคิวทั้งสอง (FR-H24, seam.transfer.mismatch_raise) และการทดสอบยืนยันว่าการยกขึ้นนั้นไม่เปลี่ยนแถวใดที่ผู้ยกไม่ได้เป็นเจ้าของ |
| T-33 | Revoked or invalid X2 relationshipความสัมพันธ์ X2 ที่ถูกเพิกถอนหรือไม่สมบูรณ์ | Mid-journey the X2 relation is revoked; separately, a relation is presented expired and one malformed. In all three, cross-seam reads stop at once (seam.err.relation_revoked, seam.err.no_relation), no cached read model keeps serving the data, and no previously granted scope survives as an implicit permission. Both tenants see an operational exception (TenantSeamRelationRevoked). Records are untouched: the in-flight consignment keeps its facts, each side keeps what it owns and can still read its own side, and the arrival is completed on paper under the applied fallback with the gap recorded. When a relation is restored, nothing is back-filled across the wall — the paper-completed facts stand as recorded (FR-H58, FR-H59).ระหว่างการเดินทาง ความสัมพันธ์ X2 ถูกเพิกถอน; แยกกันนั้น มีความสัมพันธ์ที่ยื่นมาแบบหมดอายุ และอีกอันที่รูปแบบไม่ถูกต้อง ทั้งสามกรณี การอ่านข้าม seam หยุดทันที (seam.err.relation_revoked, seam.err.no_relation) ไม่มี read model ที่แคชไว้เสิร์ฟต่อ และไม่มีขอบเขตที่เคยให้ไว้อยู่รอดในฐานะสิทธิ์โดยปริยาย ทั้งสอง tenant เห็นข้อยกเว้นเชิงปฏิบัติการ (TenantSeamRelationRevoked) ระเบียนไม่ถูกแตะ: consignment ที่อยู่ระหว่างทางคงข้อเท็จจริงไว้ แต่ละฝ่ายคงสิ่งที่ตนเป็นเจ้าของและยังอ่านฝั่งตนได้ และการมาถึงถูกทำให้เสร็จบนกระดาษตามทางถอยที่ใช้จริงโดยบันทึกช่องว่างไว้ เมื่อความสัมพันธ์กลับคืน ไม่มีการเติมย้อนหลังข้ามกำแพง — ข้อเท็จจริงที่ทำเสร็จบนกระดาษยืนตามที่บันทึก (FR-H58, FR-H59) |
| T-34 | Automatic exact population of the quantityการเติมปริมาณอัตโนมัติให้ตรงพอดี | On the loading act the platform writes allocated_kg from the bound bill’s certified station net weight, in the same transaction, in integer kilograms, and the stored value equals that net weight exactly — asserted at 1 kg, at a value ending in 9, and at the largest weight the scale can report, with no rounding, no truncation and no unit conversion anywhere on the path (tonnes appear only in display). The operator’s recorded input for the act is the target unit and nothing else. Repeating the act inside the debounce window still produces one allocation with the same exact figure (FR-H60, FR-H6, FR-H19).เมื่อเกิดการกระทำบรรทุก แพลตฟอร์มเขียน allocated_kg จากน้ำหนักสุทธิที่สถานีรับรองของใบที่ผูกอยู่ ใน transaction เดียวกัน เป็นจำนวนเต็มกิโลกรัม และค่าที่เก็บเท่ากับน้ำหนักสุทธินั้นพอดี — ยืนยันที่ 1 กก. ที่ค่าที่ลงท้ายด้วย 9 และที่น้ำหนักมากที่สุดที่ตาชั่งรายงานได้ โดยไม่มีการปัด ไม่มีการตัดทิ้ง และไม่มีการแปลงหน่วยที่ใดบนเส้นทาง (ตันปรากฏเฉพาะในการแสดง) สิ่งที่บันทึกว่าผู้ปฏิบัติงานป้อนสำหรับการกระทำนี้คือหน่วยเป้าหมาย และไม่มีอย่างอื่น การทำซ้ำภายในหน้าต่าง debounce ยังให้การจัดสรร หนึ่ง รายการด้วยตัวเลขเดียวกันพอดี (FR-H60, FR-H6, FR-H19) |
| T-35 | Manual quantity entry has no path at allการป้อนปริมาณด้วยมือไม่มีเส้นทางเลย | Every surface, role and mode is swept for a way to type, estimate, round, divide or adjust a quantity: the loading screen, the exit-weigh screen, the manifest review, the supervisor tools, the correction flow, the degraded-mode reconstruction, the migration path and the API. There is no such control and no such parameter; a direct request carrying a quantity is refused with alloc.err.manual_quantity_refused and recorded with its caller and role. The supervisor role is included in the sweep — seniority is not an input path — and the test asserts zero quantities in the run whose provenance is anything other than the certified net weight (FR-H60, H18).กวาดทุกหน้าจอ ทุกบทบาท และทุกโหมด เพื่อหาช่องทางพิมพ์ ประมาณ ปัด หาร หรือปรับปริมาณ: หน้าจอบรรทุก หน้าจอชั่งออก การทบทวนใบกำกับ เครื่องมือของหัวหน้า เส้นทางการแก้ค่า การประกอบขึ้นใหม่ในโหมดถดถอย เส้นทางการย้ายข้อมูล และ API ไม่มีตัวควบคุมเช่นนั้นและไม่มีพารามิเตอร์เช่นนั้น; คำขอที่พกปริมาณมาถูกปฏิเสธด้วย alloc.err.manual_quantity_refused และบันทึกผู้เรียกกับบทบาทไว้ บทบาทหัวหน้ารวมอยู่ในการกวาดด้วย — ตำแหน่งไม่ใช่ช่องทางป้อนข้อมูล — และการทดสอบยืนยันว่ามีปริมาณที่มีที่มาอื่นนอกจากน้ำหนักสุทธิที่รับรอง เป็นศูนย์ (FR-H60, H18) |
| T-36 | Commit refusal on any non-zero mismatchการปฏิเสธ commit เมื่อไม่ตรงกันแม้แต่น้อย | A mismatch of 1 kg is injected between allocated_kg and the certified net — by a corrected bill, by a stale cached weight and by a replayed scale reading. Each blocks the allocation and blocks manifest completion for that consignment (alloc.err.quantity_mismatch, mft.err.quantity_mismatch_blocking) and raises an auditable exception naming both figures and the difference. The test then proves the block cannot be released by acceptance: no role, supervisor included, no configuration, no policy version and no retry clears it. The only resolutions that clear it are a correction of the authoritative source record or of the certified-scale integration, followed by a new superseding allocation — and after resolution there is still exactly one live allocation (FR-H61, FR-H35).ฉีดความไม่ตรงกัน 1 กก. ระหว่าง allocated_kg กับน้ำหนักสุทธิที่รับรอง — จากใบที่ถูกแก้ จากน้ำหนักที่แคชไว้เก่าค้าง และจากค่าตาชั่งที่ถูกเล่นซ้ำ แต่ละกรณีกั้นการจัดสรรและกั้นการปิดใบกำกับของ consignment นั้น (alloc.err.quantity_mismatch, mft.err.quantity_mismatch_blocking) และยกข้อยกเว้นที่ตรวจสอบได้ซึ่งระบุตัวเลขทั้งสองและส่วนต่าง จากนั้นการทดสอบพิสูจน์ว่าการกั้นปลดด้วยการยอมรับไม่ได้: ไม่มีบทบาทใดรวมหัวหน้า ไม่มีค่าตั้ง ไม่มีเวอร์ชันนโยบาย และไม่มีการลองใหม่ ที่ล้างมันได้ ทางแก้เดียวที่ล้างได้คือการแก้ระเบียนต้นทางที่มีอำนาจหรือแก้การเชื่อมต่อตาชั่งที่รับรอง แล้วจึงมีการจัดสรรใหม่ที่แทนที่ — และหลังชี้ขาดแล้วยังมีการจัดสรรที่ใช้งานหนึ่งรายการพอดี (FR-H61, FR-H35) |
| T-37 | The zero tolerance absorbs nothing downstreamค่าเผื่อศูนย์ไม่กลบสิ่งใดปลายทาง | A consignment arrives with a genuine station-versus-factory weight difference — scale variance between two calibrated instruments, plus a real transfer loss and an overnight moisture change. The allocation equality is unaffected and still exact, and the difference appears where it belongs: in the four reconciliation figures of Section 10, compared and never netted into one, and in the applied transfer-loss policy with its threshold and charge. The test asserts that no allocation was widened, rounded or adjusted to make the difference disappear, that no tolerance setting exists to be raised, and that the loss figure remains visible to the contractor, the station and the mill on their own sides (FR-H62, FR-H15).consignment มาถึงพร้อมส่วนต่างน้ำหนักสถานีเทียบโรงงานที่เกิดขึ้นจริง — ส่วนต่างของตาชั่งที่สอบเทียบสองเครื่อง บวกการสูญหายจากการขนถ่ายจริงและความชื้นที่เปลี่ยนข้ามคืน ความเท่ากันของการจัดสรรไม่ถูกกระทบและยังตรงพอดี และส่วนต่างปรากฏในที่ของมัน: ในตัวเลขกระทบยอดสี่ค่าในข้อ 10 ที่ถูกเทียบกันและไม่เคยถูกหักกลบเป็นค่าเดียว และในนโยบายการสูญหายขนถ่ายที่ใช้จริงพร้อมเกณฑ์และค่าปรับ การทดสอบยืนยันว่า ไม่มีการจัดสรรใดถูกขยาย ปัด หรือปรับ เพื่อให้ส่วนต่างหายไป ไม่มีค่าตั้งค่าเผื่อให้ยกขึ้น และตัวเลขการสูญหายยังมองเห็นได้โดยผู้รับเหมา สถานี และโรงงาน ในฝั่งของตน (FR-H62, FR-H15) |
| Classชั้น | Named outcomesผลลัพธ์ที่ระบุชื่อ |
|---|---|
| Errors (refusals)ข้อผิดพลาด (การปฏิเสธ) | alloc.err.no_bill (allocate against a non-existent intake) · alloc.err.duplicate_live · alloc.err.over_allocated (any kilogram above the certified net — the tolerance is 0 kg, FR-H7) · alloc.err.second_live_allocation (one intake, one live allocation — H12, FR-H35) · alloc.err.target_capacity_insufficient (pre-lift, returns to target selection — FR-H36) · alloc.err.target_not_confirmed (a lift written with no confirmation) · alloc.err.unit_sealed · mft.err.exception_blocking · mft.err.no_truck_note · mft.err.already_open · cns.err.no_unit_loads · wb.err.scale_link_down (applied halt, A-10) · num.err.range_exhausted · num.err.stale_epoch · num.err.block_expired · num.err.out_of_range · num.err.wrong_station · num.err.duplicate_number · num.err.forked_range · num.quar.pending_reconciliation · alloc.err.manual_quantity_refused · alloc.err.quantity_mismatch · mft.err.quantity_mismatch_blocking · seam.err.no_relation · seam.err.relation_revoked · seam.err.wrong_factory · seam.err.out_of_scope_record · seam.err.untyped_join · seam.err.foreign_fact_write · tenant.err.cross_write_refused · cns.err.no_dispatched_tonnage (a departure with no station-certified figure per unit) · note.err.bundle_shared_across_units (one bundle offered for two units — refused, H14) · eta.warn.stale and eta.warn.unavailable (display states, never silent blanks) · recon.err.day_basis_unnamed (a figure, report or export asked for without naming whose business day it counts on — FR-H48) · day.err.foreign_day_write (an attempt to set, recompute or backdate the other side's business day — FR-H46). Every refusal names what to do next; none silently succeeds.alloc.err.no_bill (จัดสรรกับการรับอ้อยที่ไม่มีอยู่) · alloc.err.duplicate_live · alloc.err.over_allocated (กิโลกรัมใดที่เกินสุทธิที่รับรอง — ค่าเผื่อเป็น 0 กก. ตาม FR-H7) · alloc.err.second_live_allocation (หนึ่งการรับอ้อย หนึ่งการจัดสรรที่ใช้งาน — H12, FR-H35) · alloc.err.target_capacity_insufficient (ก่อนยก กลับไปเลือกหน่วยเป้าหมาย — FR-H36) · alloc.err.target_not_confirmed (การยกที่เขียนโดยไม่มีการยืนยัน) · alloc.err.unit_sealed · mft.err.exception_blocking · mft.err.no_truck_note · mft.err.already_open · cns.err.no_unit_loads · wb.err.scale_link_down (การหยุดที่ใช้จริง A-10) · num.err.range_exhausted · num.err.stale_epoch · num.err.block_expired · num.err.out_of_range · num.err.wrong_station · num.err.duplicate_number · num.err.forked_range · num.quar.pending_reconciliation · alloc.err.manual_quantity_refused · alloc.err.quantity_mismatch · mft.err.quantity_mismatch_blocking · seam.err.no_relation · seam.err.relation_revoked · seam.err.wrong_factory · seam.err.out_of_scope_record · seam.err.untyped_join · seam.err.foreign_fact_write · tenant.err.cross_write_refused · cns.err.no_dispatched_tonnage (การออกเดินทางที่ไม่มีค่ารายหน่วยที่สถานีรับรอง) · note.err.bundle_shared_across_units (เสนอชุดเอกสารหนึ่งชุดให้สองหน่วย — ปฏิเสธ ตาม H14) · eta.warn.stale และ eta.warn.unavailable (สถานะการแสดง ไม่ใช่ช่องว่างที่เงียบ) · recon.err.day_basis_unnamed (ค่า รายงาน หรือการส่งออกที่ขอมาโดยไม่ระบุว่านับด้วยวันทำการของฝ่ายใด — FR-H48) · day.err.foreign_day_write (ความพยายามกำหนด คำนวณใหม่ หรือย้อนวันทำการของอีกฝ่าย — FR-H46) การปฏิเสธทุกครั้งระบุว่าต้องทำอะไรต่อ; ไม่มีข้อใดสำเร็จอย่างเงียบ ๆ |
| Metricsตัววัด | Zero allocations whose kilograms were inferred from a count — ever. Zero bills whose live allocated kilograms differ from the certified net by any amount — the tolerance is 0 kg. Zero quantities typed, estimated, rounded, divided or adjusted by a person. Zero CCS attributions whose value differs from its source value. Zero duplicate allocations surviving a journal replay. Zero cross-tenant writes. Percentage of consignments whose note bundle reconciled on first presentation. Median and worst sync lag per station. Zero bills carrying two live allocations, and zero allocations written without a pre-lift confirmation. Pre-lift target switches per 100 intakes, with the capacity share of their reasons named. Degraded-mode occurrences per 100 shifts. Bills still reconciliation_required after migration, counted down to zero. Logistics: share of departures whose digital mirror was complete at closure; share of inbound consignments the factory could read before arrival; ETA accuracy as predicted versus actual per route; share of in-transit time with a fresh ETA; truck turnaround and utilization per contractor; zero unit figures merged into a trip-level measurement; zero bundles shared across units. Numbers: zero numbers issued outside a live block, outside its validity window, from a superseded or revoked epoch, or by a client that does not own the block; zero records silently renumbered — ever; quarantined uses per 100 shifts, with their resolution class and their time to resolution; blocks in flight per station with numbers remaining and days to expiry; zero gateway calls from a transfer station. Seam: zero cross-tenant writes and zero foreign-fact updates; zero shared reads resolved by an untyped join; zero reads served outside the referenced unit, consignment or named destination factory; share of shared commands, events and read models with a declared seam row, held at 100%; every refusal logged with its code, relation and correlation id; median age of the access-audit trail available to each party. Business days: zero records whose business day was rewritten, normalised or backdated after capture; zero station facts stamped from a sync or ingestion time; zero figures, reports or exports published without a named day basis; share of cross-tenant reconciliation views displaying both days with timestamp and timezone, held at 100%.การจัดสรรที่กิโลกรัมถูกอนุมานจากการนับ เป็นศูนย์ — ตลอดไป ใบที่กิโลกรัมที่จัดสรรและใช้งานต่างจากสุทธิที่รับรองไม่ว่าเท่าใด เป็นศูนย์ — ค่าเผื่อเป็น 0 กก. ปริมาณที่คนพิมพ์ ประมาณ ปัด หาร หรือปรับ เป็นศูนย์ การปันส่วน CCS ที่ค่าต่างจากค่าต้นทาง เป็นศูนย์ การจัดสรรซ้ำที่รอดจากการเล่นซ้ำ journal เป็นศูนย์ การเขียนข้าม tenant เป็นศูนย์ ร้อยละของ consignment ที่ชุดใบกระทบยอดได้ในการยื่นครั้งแรก ค่ากลางและค่าแย่สุดของระยะ sync ที่ช้ารายสถานี ใบที่พกการจัดสรรที่ใช้งานสองรายการ เป็นศูนย์ และการจัดสรรที่เขียนโดยไม่มีการยืนยันก่อนยก เป็นศูนย์ การสลับหน่วยเป้าหมายก่อนยกต่อการรับอ้อย 100 ครั้ง พร้อมระบุสัดส่วนที่มีเหตุผลเรื่องความจุ จำนวนครั้งที่เข้าโหมดถดถอยต่อ 100 กะ ใบที่ยัง reconciliation_required หลังการย้าย นับลดจนเป็นศูนย์ โลจิสติกส์: สัดส่วนการออกเดินทางที่กระจกเงาดิจิทัลครบตอนปิด; สัดส่วน consignment ขาเข้าที่โรงงานอ่านได้ก่อนการมาถึง; ความแม่นของ ETA เทียบค่าที่ทำนายกับค่าจริงรายเส้นทาง; สัดส่วนเวลาระหว่างขนส่งที่มี ETA เป็น fresh; รอบการหมุนรถและอัตราการใช้งานรายผู้รับเหมา; ค่ารายหน่วยที่ถูกรวมเป็นการวัดระดับเที่ยว เป็นศูนย์; ชุดเอกสารที่ถูกใช้ร่วมกันข้ามหน่วย เป็นศูนย์ เลข: เลขที่ออกนอกบล็อกที่ใช้อยู่ นอกช่วงเวลาใช้ได้ จาก epoch ที่ถูกแทนที่หรือเพิกถอน หรือโดยเครื่องที่ไม่ได้เป็นเจ้าของบล็อก เป็นศูนย์; ระเบียนที่ถูกให้เลขใหม่อย่างเงียบ ๆ เป็นศูนย์ — ตลอดไป; การใช้เลขที่ถูกกักต่อ 100 กะ พร้อมชั้นการชี้ขาดและเวลาที่ใช้ชี้ขาด; บล็อกที่ถืออยู่รายสถานีพร้อมเลขคงเหลือและจำนวนวันก่อนหมดอายุ; การเรียก gateway จากสถานีขนถ่าย เป็นศูนย์ seam: การเขียนข้าม tenant และการแก้ข้อเท็จจริงของอีกฝ่าย เป็นศูนย์; การอ่านที่แบ่งใช้ซึ่ง resolve ด้วยการเชื่อมที่ไม่มีชนิด เป็นศูนย์; การอ่านที่เสิร์ฟนอกหน่วย consignment หรือโรงงานปลายทางที่ระบุชื่อซึ่งอ้างถึง เป็นศูนย์; สัดส่วนคำสั่ง event และ read model ที่แบ่งใช้ซึ่งมีแถว seam ประกาศไว้ คงที่ 100%; การปฏิเสธทุกครั้งบันทึกพร้อมรหัส ความสัมพันธ์ และ correlation id; อายุกลางของร่องรอยการตรวจสอบการเข้าถึงที่แต่ละฝ่ายเรียกดูได้ วันทำการ: ระเบียนที่วันทำการถูกเขียนทับ ปรับให้เป็นมาตรฐาน หรือย้อนวันหลังการเก็บ เป็นศูนย์; ข้อเท็จจริงของสถานีที่ประทับจากเวลา sync หรือเวลารับเข้า เป็นศูนย์; ค่า รายงาน หรือการส่งออกที่เผยแพร่โดยไม่ระบุฐานวัน เป็นศูนย์; สัดส่วนมุมมองการกระทบยอดข้าม tenant ที่แสดงวันทั้งสองพร้อมตราเวลาและเขตเวลา คงที่ 100% |
| Recovery and rollbackการกู้คืนและการย้อนกลับ | Recovery paths are stated per component in FR-H21, and each ends in a record rather than a repair: a reconstructed allocation says it was reconstructed, by whom and when. Rollback of the amendment itself is M-8: because the migration only inserts, the applied model remains intact and readers can be repointed back. A rollback after live operation on the new model is a data-carrying migration in its own right and is not claimed here — that honesty is the point.เส้นทางการกู้คืนระบุรายส่วนประกอบใน FR-H21 และแต่ละเส้นทางจบที่ ระเบียน ไม่ใช่การซ่อม: การจัดสรรที่ประกอบขึ้นใหม่บอกว่าถูกประกอบขึ้นใหม่ โดยใคร และเมื่อใด การย้อนกลับของการแก้ไขนี้เองคือ M-8: เพราะการย้ายเพียง insert โมเดลที่ใช้จริงจึงยังครบ และชี้ผู้อ่านกลับได้ การย้อนกลับ หลัง ใช้งานจริงบนโมเดลใหม่เป็นการย้ายข้อมูลอีกงานหนึ่ง และ ไม่ อ้างไว้ที่นี่ — ความตรงไปตรงมานั้นคือใจความ |
| Register or artifactทะเบียนหรือสิ่งที่กระทบ | What the applying change set must doชุดการเปลี่ยนแปลงตอน apply ต้องทำอะไร |
|---|---|
| entities.nodes | Mark CraneToken retired as authoritative with the finding and the change set; retire StationBill.transfer_truck_id and add station_operating_day (also on TransferTruckNote and each TransferManifest version, with mill_crushing_day_id on every factory-owned row — FR-H45); add TransferConsignment, TransferUnitLoad, TransferLoadAllocation, TransferTruckNote, TransferManifest, ConsignmentReceipt — each with Thai name, code format where one is printed, attributes and note. No physical-artifact entity of any kind (OQ-2 closed): there is no TransferLoadTag and no successor to CraneToken as an object. No StationDelivery entity.ทำเครื่องหมาย CraneToken ว่าปลดจากการมีอำนาจ พร้อมผลตรวจและชุดการเปลี่ยนแปลง; ปลด StationBill.transfer_truck_id และเพิ่ม station_operating_day (รวมทั้งบน TransferTruckNote และ TransferManifest ทุกฉบับ โดยมี mill_crushing_day_id บนแถวที่โรงงานเป็นเจ้าของทุกแถว — FR-H45); เพิ่ม TransferConsignment, TransferUnitLoad, TransferLoadAllocation, TransferTruckNote, TransferManifest, ConsignmentReceipt — แต่ละตัวพร้อมชื่อไทย รูปแบบรหัสเมื่อมีการพิมพ์ แอตทริบิวต์ และหมายเหตุ ไม่มี entity ที่เป็น artifact กายภาพชนิดใดเลย (OQ-2 ปิดแล้ว): ไม่มี TransferLoadTag และไม่มีผู้สืบทอดของ CraneToken ในฐานะ object ไม่มี entity StationDelivery |
| relationships | Replace StationBill → CraneToken; add TransferConsignment → TransferUnitLoad (1—1..*), TransferUnitLoad → TransferLoadAllocation (1—1..*), StationBill → TransferLoadAllocation (1—0..*), TransferConsignment → TransferTruckNote (1—1), TransferConsignment → TransferManifest (1—1 per version), TransferConsignment ↔ ConsignmentReceipt as a typed cross-tenant reference and not a foreign key.แทน StationBill → CraneToken; เพิ่ม TransferConsignment → TransferUnitLoad (1—1..*), TransferUnitLoad → TransferLoadAllocation (1—1..*), StationBill → TransferLoadAllocation (1—0..*), TransferConsignment → TransferTruckNote (1—1), TransferConsignment → TransferManifest (1—1 ต่อฉบับ), TransferConsignment ↔ ConsignmentReceipt ในฐานะ การอ้างอิงข้าม tenant ที่มีชนิด ไม่ใช่ foreign key |
| events.nodes | Retire CraneTokenIssued and CraneTokenReturned by id with their successors named individually (M-5); add the events of Section 16 with a producer and at least one consumer each, ConsignmentReceived produced by the mill side.ปลด CraneTokenIssued และ CraneTokenReturned ตาม id พร้อมระบุผู้สืบทอดของแต่ละตัวแยกกัน (M-5); เพิ่ม event ในข้อ 16 โดยแต่ละตัวมีผู้ผลิตและผู้บริโภคอย่างน้อยหนึ่งราย และ ConsignmentReceived ผลิตโดยฝั่ง โรงงาน |
| requirements | Amend FR-175 and FR-179 by id with their findings; renumber FR-H1…FR-H59 and NFR-H1…NFR-H7 into the applied series at application (this draft claims no applied numbers); leave FR-176, FR-177, FR-178, FR-180…FR-184 and NFR-57 untouched.แก้ FR-175 และ FR-179 ตาม id พร้อมผลตรวจ; ให้เลข FR-H1…FR-H59 และ NFR-H1…NFR-H7 เข้าชุดที่ใช้จริงตอน apply (ร่างนี้ ไม่จับจองเลขที่ใช้จริง); ปล่อย FR-176, FR-177, FR-178, FR-180…FR-184 และ NFR-57 ไม่ถูกแตะ |
| workflows.nodes | Amend WF-70 steps 2 and 3 (step 1 and step 4 unchanged, and the four-step count preserved); amend WF-71 step 1's precondition; add one new station workflow for the consignment close and departure gate, numbered at application.แก้ WF-70 ขั้นตอน 2 และ 3 (ขั้นตอน 1 และ 4 ไม่เปลี่ยน และคงจำนวนสี่ขั้นตอน); แก้เงื่อนไขก่อนของ WF-71 ขั้นตอน 1; เพิ่ม workflow สถานีใหม่หนึ่งรายการสำหรับประตูปิด consignment และออกเดินทาง ให้เลขตอน apply |
| dataModeling · tenantIsolation · glossary | A dataModeling profile per new entity (table, pk, fks, mutability, PDPA class, aggregate, home document) with the immutability and partial-unique rules of Section 5 expressed as constraints; a seam row for every shared reconciliation read model (A-102 R-SEAMS); glossary terms for consignment, unit load, load allocation, transfer manifest, truck note, station operating day, mill crushing day and the StationDelivery reading — each domain class and therefore each with an authored Thai meaning (A-110 R-THAIDOMAIN).profile dataModeling ต่อ entity ใหม่แต่ละตัว (ตาราง pk fk ความเปลี่ยนแปลงได้ ชั้น PDPA aggregate เอกสารบ้าน) โดยแสดง กฎความไม่เปลี่ยนและ partial unique ในข้อ 5 เป็น constraint; แถว seam ต่อ read model การกระทบยอดที่แบ่งใช้ทุกตัว (A-102 R-SEAMS); คำใน glossary สำหรับ consignment, unit load, การจัดสรรการบรรทุก, ใบกำกับขนถ่าย, ใบชั่งของรถ, วันทำการสถานี, วันหีบของโรงงาน และการอ่าน StationDelivery — แต่ละคำเป็นชั้น domain จึงต้องมีความหมายภาษาไทยที่เขียนขึ้น (A-110 R-THAIDOMAIN) |
| tenantIsolation.seams | Declare one seam row per shared command, event and read model across the station↔factory seam — the six of Section 12.3 and any the build adds — each naming the mechanism (X2) and the relation it rides, the direction, the publishing and reading parties, the exact minimum fields, the purpose it is limited to, the scoping key (the typed unit and consignment reference and the named destination factory), the audit, provenance and correlation it carries, and its refusal behaviour (A-102 R-SEAMS, FR-H57, NFR-H7). No fifth mechanism; if implementation review defeats X2, the change set records a blocking correction for a narrowly scoped X1 grant before application (FR-H54). An undeclared shared thing is refused, not defaulted open.ประกาศ หนึ่งแถว seam ต่อคำสั่ง event และ read model ที่แบ่งใช้หนึ่งอย่าง ข้าม seam สถานี↔โรงงาน — หกแถวในข้อ 12.3 และแถวใดที่การสร้างเพิ่ม — แต่ละแถวระบุกลไก (X2) และความสัมพันธ์ที่อาศัย ทิศทาง ฝ่ายที่เผยแพร่และฝ่ายที่อ่าน ฟิลด์ขั้นต่ำอย่างเจาะจง วัตถุประสงค์ที่จำกัดไว้ คีย์จำกัดขอบเขต (การอ้างอิงหน่วยและ consignment ที่มีชนิด และโรงงานปลายทางที่ระบุชื่อ) การตรวจสอบ ที่มา และ correlation ที่พก และพฤติกรรมการปฏิเสธ (A-102 R-SEAMS, FR-H57, NFR-H7) ไม่มีกลไกตัวที่ห้า; หากการทบทวนตอนสร้างทำให้ X2 ใช้ไม่ได้ ชุดการเปลี่ยนแปลงบันทึกการแก้ที่กั้นการ apply สำหรับ consent grant X1 ที่จำกัดขอบเขตแคบ ก่อน apply (FR-H54) สิ่งที่แบ่งใช้ซึ่งไม่ได้ประกาศ ถูกปฏิเสธ ไม่ใช่เปิดโดยปริยาย |
| Settings and policy registersทะเบียนค่าตั้งและนโยบาย | Create no over-allocation tolerance setting anywhere — not at mill level, not at station level, not effective-dated and not versioned: OQ-9 fixes it at 0 kg as a database equality (FR-H7), and the tolerance_policy_version attribute proposed in Rev 0.2 is not created. Register instead the station's StationNumberBlock as a station-owned control record with its range, epoch, validity and ownership, and the administrative act that pre-allocates one — no allocator service, no gateway, no availability requirement and no change to the applied HA ladder (FR-H49, FR-H52). The applied transfer-loss threshold and charge rate (FR-184) are untouched: that is where a real weight difference lives (FR-H62).อย่าสร้างค่าตั้งค่าเผื่อการจัดสรรเกินที่ใดเลย — ไม่ที่ระดับโรงงาน ไม่ที่ระดับสถานี ไม่มีผลตามช่วงวัน และไม่มีเวอร์ชัน: OQ-9 ตรึงไว้ที่ 0 กก. ในฐานะความเท่ากันที่ฐานข้อมูล (FR-H7) และแอตทริบิวต์ tolerance_policy_version ที่ Rev 0.2 เสนอ ไม่ถูกสร้าง ให้ลงทะเบียนแทนด้วย StationNumberBlock ของสถานีในฐานะระเบียนควบคุมที่สถานีเป็นเจ้าของ พร้อมช่วงเลข epoch ช่วงเวลาใช้ได้ และความเป็นเจ้าของ และการกระทำเชิงบริหารที่จ่ายบล็อกล่วงหน้า — ไม่มีบริการจ่ายเลข ไม่มี gateway ไม่มีข้อกำหนดความพร้อมใช้ และไม่เปลี่ยนบันได HA ที่ใช้จริง (FR-H49, FR-H52) เกณฑ์การสูญหายขนถ่ายและอัตราค่าปรับที่ใช้จริง (FR-184) ไม่ถูกแตะ: นั่นคือที่ที่ส่วนต่างน้ำหนักจริงอยู่ (FR-H62) |
| Documentsเอกสาร | SPEC-ERD (transfer-station entities and relationships), SPEC-PRD (station chapter), SPEC-PWF (WF-70, WF-71 and the new workflow), SPEC-DDD (the glossary section) and SPEC-APP where the offline posture is published — each with its four-way registry sync: registry rev and updated, page header, meta grid, revision history and its SPEC-INDEX card. The graph's own version field moves in the same change set. This draft edits none of them.SPEC-ERD (entity และความสัมพันธ์ของสถานีขนถ่าย), SPEC-PRD (บทสถานี), SPEC-PWF (WF-70, WF-71 และ workflow ใหม่), SPEC-DDD (ส่วน glossary) และ SPEC-APP ที่ท่าที offline ถูกเผยแพร่ — แต่ละฉบับพร้อม การ sync ทะเบียนสี่ทาง: rev และ updated ในทะเบียน หัวหน้า meta grid ประวัติการแก้ไข และการ์ดใน SPEC-INDEX ฟิลด์เวอร์ชันของ graph ขยับในชุดการเปลี่ยนแปลงเดียวกัน ร่างนี้ไม่แก้เอกสารใดในนั้น |
| Validatorตัวตรวจ | The change set is not applied until the validator passes or records a dated override naming the check and the finding. No new check is invented here; the existing citation, hygiene, parity and structural checks are what this amendment must survive, and the ids it retires must stop being cited anywhere except as history.ชุดการเปลี่ยนแปลงยังไม่ถือว่า apply จนกว่าตัวตรวจจะผ่าน หรือบันทึก override ลงวันที่ที่ระบุการตรวจและผลตรวจ ไม่มีการคิดการตรวจใหม่ที่นี่; การตรวจการอ้างอิง ความสะอาดของทะเบียน ความเท่าเทียมสองภาษา และโครงสร้างที่มีอยู่ คือสิ่งที่การแก้ไขนี้ต้องรอด และ id ที่มันปลดต้องเลิกถูกอ้างที่ใดนอกจากในฐานะประวัติ |
A Preserved in substance, because the new hierarchy exposes no contradiction in any of them: the station as a party holding its own quota and acting as delivery origin; the shared 7-digit delivery-number namespace with station prefixes, now with the added statement that only statutory notes draw from it; the contractor registration dossier and one home station with emergency cross-station assists; the station bill as the same statutory 4-ply form, its per-mill ply routing and its cut-and-reopen (FR-176); the surrender of the whole note bundle at the factory weighbridge (FR-179); dual-weight settlement — farmer on station weights, contractor on factory weigh-in tonnage; the rate-card and transport-cost model; the transfer-loss policy with its accepted-loss threshold and factory-set shortfall price; the haulage settlement and loss-claim mechanics including accident treatment; the overweight-departure approval (FR-178); the station offline posture (NFR-57) in full; no fuel credit at transfer stations (PROP-030 OQ-2, closed); and the mill paying farmers through the station's quota (PROP-030 OQ-1, closed). Two items are touched, and only where the hierarchy requires it: StationBill.transfer_truck_id is retired rather than demoted to a convenience, because a field that can contradict the record is worse than no field; and the CCS attribution mechanism changes as described in FR-H11 while its rule — a farmer's cane takes the CCS of the unit that carried it, unchanged — is exactly the applied rule, restored from the pro-rata error of Rev 0.1.A คงไว้ตามสาระ เพราะลำดับชั้นใหม่ไม่เผยความขัดแย้งในข้อใดเลย: สถานีเป็น party ที่ถือโควตาของตัวเองและเป็นต้นทางการส่งมอบ; เลขที่ใบชั่ง 7 หลักที่ใช้ namespace ร่วม พร้อม prefix ของสถานี โดยเพิ่มข้อความว่าเฉพาะใบตามกฎหมายเท่านั้นที่ดึงจากชุดนี้; ชุดเอกสารลงทะเบียนผู้รับเหมาและสถานีสังกัดหนึ่งแห่ง พร้อมการช่วยข้ามสถานีกรณีฉุกเฉิน; ใบชั่งสถานีเป็นฟอร์ม 4 สำเนาตามกฎหมายเดียวกัน เส้นทางสำเนารายโรงงาน และการตัดใบแล้วเปิดใหม่ (FR-176); การยื่นชุดใบทั้งชุดที่ห้องชั่งโรงงาน (FR-179); การชำระบนน้ำหนักสองชุด — ชาวไร่บนน้ำหนักสถานี ผู้รับเหมาบนตันน้ำหนักชั่งเข้าโรงงาน; โมเดล rate card และต้นทุนขนส่ง; นโยบายการสูญหายขนถ่าย พร้อมเกณฑ์ที่ยอมรับได้และราคาส่วนขาดที่โรงงานกำหนด; กลไกการชำระค่าขนส่งและการเรียกร้องค่าสูญหาย รวมการปฏิบัติกรณีอุบัติเหตุ; การอนุมัติการออกของรถน้ำหนักเกิน (FR-178); ท่าที offline ของสถานี (NFR-57) ทั้งข้อ; ไม่มีเครดิตน้ำมันที่สถานีขนถ่าย (OQ-2 ของ PROP-030 ปิดแล้ว); และ โรงงานจ่ายชาวไร่ผ่านโควตาของสถานี (OQ-1 ของ PROP-030 ปิดแล้ว) สองรายการถูกแตะ และเฉพาะที่ลำดับชั้นต้องการ: StationBill.transfer_truck_id ถูก ปลด ไม่ใช่ลดชั้นเป็นความสะดวก เพราะฟิลด์ที่ขัดกับระเบียนได้แย่กว่าการไม่มีฟิลด์; และ กลไก การปันส่วน CCS เปลี่ยนตามที่ระบุใน FR-H11 ขณะที่ กฎ ของมัน — อ้อยของชาวไร่ใช้ CCS ของหน่วยที่บรรทุกมัน โดยไม่เปลี่ยนค่า — คือ กฎที่ใช้จริงพอดี คืนสภาพจากความผิดพลาดเรื่องการเฉลี่ยตามสัดส่วนของ Rev 0.1
R Relationship to PROP-033. PROP-033's OQ-6 asks whether its queue-coin pattern should extend to the transfer station. It stays open, and this draft gives it no answer: PROP-101 is not review-ready (Section 24), it assumes no NFC and no read technology (OQ-2), and it imports nothing from the queue-coin scope. Neither PROP-033 nor its exhibit is modified by this revision, and PROP-033's scope is not broadened. When PROP-101 becomes review-ready, that is the moment PROP-033's OQ-6 can be answered on evidence rather than on a plan.R ความสัมพันธ์กับ PROP-033 OQ-6 ของ PROP-033 ถามว่าแบบแผนเหรียญคิวของมันควรขยายไปสถานีขนถ่ายหรือไม่ ข้อนั้น ยังเปิด และร่างนี้ไม่ให้คำตอบ: PROP-101 ยังไม่พร้อมทบทวน (ข้อ 24) ไม่สันนิษฐาน NFC และไม่สันนิษฐานเทคโนโลยีการอ่าน (OQ-2) และไม่นำเข้าอะไรจากขอบเขตเหรียญคิว การแก้ไขครั้งนี้ไม่เปลี่ยน PROP-033 หรือ exhibit ของมัน และไม่ขยายขอบเขตของ PROP-033 เมื่อ PROP-101 พร้อมทบทวน นั่นคือวินาทีที่ OQ-6 ของ PROP-033 ตอบได้บนหลักฐาน ไม่ใช่บนแผน
| Optionทางเลือก | Consequenceผลที่ตามมา |
|---|---|
| (a) Apply as MAJOR — spend 1.0.0(ก) apply เป็น MAJOR — ใช้ 1.0.0 | Honest against the clause, and it spends the reserved milestone on a station model rather than on a shipped build — the precedent the applied clause explicitly refused to set for a find-and-replace, and this is a larger change than that, not a smaller one.ตรงตามข้อกำหนด และใช้หลักหมายที่สงวนไว้ไปกับโมเดลสถานี ไม่ใช่ build ที่ปล่อยแล้ว — เป็นแบบอย่างที่ข้อที่ใช้จริงปฏิเสธไว้ชัด ๆ สำหรับการค้นหาแล้วแทนที่ และนี่เป็นการเปลี่ยนที่ใหญ่กว่านั้น ไม่ใช่เล็กกว่า |
| (b) Amend $versioning first DECIDED 20 Aug 2026ตัดสินแล้ว 20 ส.ค. 2569(ข) แก้ $versioning ก่อน DECIDED 20 Aug 2026ตัดสินแล้ว 20 ส.ค. 2569 | A separate governance change set admits a breaking-marked MINOR before 1.0.0, on stated conditions — a retirement by id, a named successor for every retired id, a migration that deletes nothing, and a permanent crosswalk — on the same reasoning that admitted the rename allowance, and marked as such in the release register. PROP-101 then applies as a marked-breaking MINOR. This draft does not write that amendment: a proposal that changes the versioning rule to let itself in would be exactly the kind of quiet self-service this whole revision exists to remove.ชุดการเปลี่ยนแปลงด้านธรรมาภิบาลแยกฉบับ ยอมให้มี MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ ก่อน 1.0.0 ตามเงื่อนไขที่ระบุ — การปลดตาม id ผู้สืบทอดที่ระบุชื่อต่อ id ที่ปลดทุกตัว การย้ายที่ไม่ลบอะไร และ crosswalk ถาวร — ด้วยเหตุผลเดียวกับที่ยอมให้เปลี่ยนชื่อได้ และทำเครื่องหมายไว้ในทะเบียน release แล้ว PROP-101 จึง apply เป็น MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ ร่างนี้ไม่เขียนการแก้ไขนั้น: ข้อเสนอที่เปลี่ยนกฎเวอร์ชันเพื่อให้ตัวเองผ่าน คือการบริการตัวเองอย่างเงียบ ๆ แบบที่การแก้ไขทั้งฉบับนี้มีอยู่เพื่อกำจัด |
| (c) Defer application to the 1.0.0 freeze(ค) เลื่อนการ apply ไปที่การตรึง 1.0.0 | Keeps the milestone and the clause intact, and leaves an applied model that names a coin as the authoritative record of a financial attribution for however long the freeze takes. Acceptable only if the freeze is near and the station work is not built before it.รักษาหลักหมายและข้อกำหนดไว้ครบ และปล่อยให้โมเดลที่ใช้จริงระบุว่าเหรียญเป็นระเบียนที่มีอำนาจของการปันส่วนทางการเงินไปอีกนานเท่าที่การตรึงจะใช้ ยอมรับได้เฉพาะเมื่อการตรึงใกล้แล้วและงานสถานีไม่ถูกสร้างก่อนหน้านั้น |
Answered by the field, not by the model. At a typical transfer station the entire cane load from one small farmer truck is lifted in one operation as a single bundle using chains, placed onto one selected large transfer unit, and only then are the chains removed. The load is not practically divided during that lift. Before lifting begins the loading operator must confirm the selected unit can accept the complete load; if it cannot, he must switch the target unit before lifting. Once lifting begins, the full load stays bound to that one unit. The question was posed as a model choice; the yard had already answered it as a physical one.
หน้างานเป็นผู้ตอบ ไม่ใช่โมเดล ที่สถานีขนถ่ายทั่วไป อ้อยทั้งคันรถของรถเล็กของชาวไร่หนึ่งคันถูกยกในการยกครั้งเดียวเป็นมัดเดียวด้วยโซ่ วางลงบนหน่วยขนถ่ายคันใหญ่ที่เลือกไว้หน่วยเดียว แล้วจึงปลดโซ่ออก การบรรทุกนั้นแบ่งไม่ได้ในทางปฏิบัติระหว่างการยก ก่อนเริ่มยก ผู้ปฏิบัติงานบรรทุกต้องยืนยันว่าหน่วยที่เลือกรับอ้อยทั้งหมดได้; หากรับไม่ได้ ต้องเปลี่ยนหน่วยเป้าหมายก่อนยก เมื่อเริ่มยกแล้ว อ้อยทั้งคันผูกอยู่กับหน่วยนั้นหน่วยเดียว คำถามนี้ถูกตั้งเป็นทางเลือกของโมเดล; ลานตอบไปแล้วในฐานะข้อเท็จจริงทางกายภาพ
Resolution as implemented (Section 7):การนำไปปฏิบัติ (ข้อ 7): the invariant is one StationBill intake → exactly one live TransferLoadAllocation on exactly one TransferUnitLoad, for the complete load (FR-H35), enforced by a partial unique on the live row rather than by policy. allocated_kg survives as the measured quantity of that whole intake and is no longer a mechanism for dividing it. Added: a pre-lift target confirmation and a recorded target switch (FR-H36, event TransferLoadTargetSwitched), where a capacity failure after selection returns the operator to target selection before lifting and may never create a partial allocation or an estimated split (FR-H26, T-2). Withdrawn: split_policy, the split_allowed mode, quantity-based split allocation, the measured_split and estimated_split bases, the alloc.err.split_not_permitted refusal and the rejected-split evidence metric — none of them describe anything that happens at a station. This question no longer gates anything.ข้อคงที่คือ การรับอ้อยตาม StationBill หนึ่งใบ → TransferLoadAllocation ที่ใช้งานหนึ่งรายการพอดี บน TransferUnitLoad หนึ่งตัวพอดี สำหรับอ้อยทั้งหมด (FR-H35) บังคับด้วย partial unique บนแถวที่ใช้งาน ไม่ใช่ด้วยนโยบาย allocated_kg อยู่ต่อในฐานะปริมาณที่วัดได้ของการรับอ้อยทั้งครั้งนั้น และไม่เป็นกลไกแบ่งอ้อยอีกต่อไป เพิ่ม: การยืนยันหน่วยเป้าหมายก่อนยก และการเปลี่ยนหน่วยเป้าหมายที่บันทึกไว้ (FR-H36 event TransferLoadTargetSwitched) โดยความจุที่ไม่พอหลังเลือกหน่วยพาผู้ปฏิบัติงานกลับไปที่การเลือกหน่วยก่อนยก และห้ามสร้างการจัดสรรบางส่วนหรือการแบ่งแบบประมาณ (FR-H26, T-2) ถอน: split_policy โหมด split_allowed การจัดสรรแบบแบ่งตามปริมาณ ฐาน measured_split และ estimated_split การปฏิเสธ alloc.err.split_not_permitted และตัววัดหลักฐานการแบ่งที่ถูกปฏิเสธ — ไม่มีข้อใดบรรยายสิ่งที่เกิดขึ้นจริงที่สถานี คำถามนี้ไม่กั้นสิ่งใดอีกต่อไป
There is no artifact, and there never was one to retire. Actual transfer-station practice uses no crane token, no coin, no NFC tag and no other physical handoff artifact. What the station actually does is bundle the small-truck delivery notes together with the transfer unit's own station weigh-out note, and that paper bundle travels to the factory. Rev 0.2 and Rev 0.3 treated the applied CraneToken as an observed habit that a pilot would have to wean the yard off; it was a specification artifact, not a yard one. The question was therefore malformed: it asked what should replace a thing that is not there.
ไม่มี artifact และไม่เคยมีสิ่งที่ต้องเลิกใช้ วิธีปฏิบัติจริงของสถานีขนถ่ายไม่ใช้เหรียญเครน เหรียญ แท็ก NFC หรือ artifact สำหรับการส่งต่อทางกายภาพอื่นใด สิ่งที่สถานีทำจริงคือรวมใบชั่งของรถเล็กเข้ากับใบชั่งออกของหน่วยขนถ่ายเองที่สถานี และชุดกระดาษนั้นเดินทางไปโรงงาน Rev 0.2 และ Rev 0.3 ปฏิบัติต่อ CraneToken ที่ใช้จริงราวกับเป็นนิสัยที่สังเกตพบซึ่งการนำร่องต้องค่อย ๆ พาลานเลิก; มันเป็น artifact ของข้อกำหนด ไม่ใช่ของลาน คำถามจึงตั้งผิดรูป: มันถามว่าอะไรควรมาแทนสิ่งที่ไม่ได้อยู่ตรงนั้น
Resolution as implemented (H13, Section 12.1):การนำไปปฏิบัติ (H13, ข้อ 12.1): the paper chain is preserved exactly and Cane builds the authoritative digital mirror beside it: the closed TransferManifest indexes every bundled StationBill and each unit's own weigh-out note, binds them to their TransferUnitLoad and TransferConsignment, and records station-certified dispatched tonnage per unit (FR-H37); departure creates an in-transit cloud record — origin, destination, unit and vehicle, permitted driver or contractor reference, departure time, route reference, ETA with its source and as-of time (FR-H38); the factory reads inbound tonnage and ETA before arrival (FR-H39) and then reconciles factory weight against the presented bundle without rewriting a station fact (FR-H41). Stale ETA and location degrade honestly (FR-H40), turnaround and utilization evidence is collected as reads with no writer (FR-H42, FR-H43), and privacy and tenant boundaries on transport data are stated (FR-H44). Withdrawn: TransferLoadTag, its lifecycle, its three events, the lost-artifact test and every artifact impact line.สายกระดาษคงไว้ทุกประการ และ Cane สร้างกระจกเงาดิจิทัลที่มีอำนาจไว้ข้าง ๆ: TransferManifest ที่ปิดแล้วทำสารบัญ StationBill ทุกใบในชุดและใบชั่งออกของแต่ละหน่วย ผูกเข้ากับ TransferUnitLoad และ TransferConsignment ของมัน และบันทึกตันที่ส่งออกรายหน่วยซึ่งสถานีรับรอง (FR-H37); การออกเดินทางสร้างระเบียนระหว่างขนส่งในคลาวด์ — ต้นทาง ปลายทาง หน่วยและรถ การอ้างถึงคนขับหรือผู้รับเหมาเท่าที่อนุญาต เวลาออกเดินทาง การอ้างอิงเส้นทาง ETA พร้อมแหล่งและเวลา as-of (FR-H38); โรงงานอ่านตันขาเข้าและ ETA ก่อนการมาถึง (FR-H39) แล้วกระทบยอดน้ำหนักโรงงานกับชุดเอกสารที่ยื่น โดยไม่เขียนข้อเท็จจริงของสถานีทับ (FR-H41) ETA และตำแหน่งที่เก่าค้างเสื่อมลงอย่างตรงไปตรงมา (FR-H40) หลักฐานเรื่องเวลาหมุนรถและการใช้ประโยชน์เก็บเป็นการอ่านที่ไม่มีผู้เขียน (FR-H42, FR-H43) และระบุความเป็นส่วนตัวกับขอบเขต tenant ของข้อมูลการขนส่ง (FR-H44) ถอน: TransferLoadTag วงจรชีวิตของมัน event สามรายการ การทดสอบ artifact ที่หาย และบรรทัดผลกระทบเรื่อง artifact ทั้งหมด
Always per physical unit. Never per trip. Weighing, delivery documentation, paper bundling and CCS attribution are always per TransferUnitLoad. A mother and a child/daughter unit each have their own delivery note, their own source-StationBill bundle, their own certified weight sequence and their own CCS result. A huge single-body or single-trailer vehicle is one physical unit and has one note, one bundle, one weight sequence and one CCS result. A TransferConsignment groups one or more units only for journey, departure, route, ETA, arrival and logistics tracking — it is never the note, weight, sampling, CCS or reconciliation granularity.
รายหน่วยกายภาพเสมอ ไม่เคยรายเที่ยว การชั่ง เอกสารการส่งมอบ การรวมชุดกระดาษ และการปันส่วน CCS เป็นรายหน่วย TransferUnitLoad เสมอ หน่วยแม่และหน่วยลูกต่างมีใบชั่งของตัวเอง ชุด StationBill ต้นทางของตัวเอง ลำดับการชั่งที่รับรองของตัวเอง และผล CCS ของตัวเอง รถตัวถังเดี่ยวหรือรถพ่วงเดี่ยวขนาดใหญ่คือหน่วยกายภาพหนึ่งหน่วย และมีใบหนึ่งใบ ชุดหนึ่งชุด ลำดับการชั่งหนึ่งลำดับ และผล CCS หนึ่งผล TransferConsignment จัดกลุ่มหน่วยหนึ่งหน่วยขึ้นไปเพียงเพื่อการเดินทาง การออกเดินทาง เส้นทาง ETA การมาถึง และการติดตามโลจิสติกส์ — ไม่เคยเป็นความละเอียดของใบชั่ง น้ำหนัก การสุ่มตัวอย่าง CCS หรือการกระทบยอด
Resolution as implemented (H14, FR-H10, FR-H11, FR-H15):การนำไปปฏิบัติ (H14, FR-H10, FR-H11, FR-H15): each StationBill binds to exactly one unit (FR-H35); factory weight and CCS attach to that unit and propagate unchanged only to its bills; mother and child results are never combined, CCS is never divided or estimated, and bundles are never mixed across units. Withdrawn: the per-unit-versus-per-trip configuration branch and every consignment-level measurement alternative, including the trip-level net figure Rev 0.2 kept in the reconciliation set. Added: T-17 (a mother + child journey produces two independent unit records) and T-18 (a large single-unit vehicle produces one).StationBill แต่ละใบผูกกับหน่วยเดียวพอดี (FR-H35); น้ำหนักโรงงานและ CCS ผูกกับหน่วยนั้นและส่งต่อโดยไม่เปลี่ยนค่าไปยังใบของมันเท่านั้น; ผลของแม่กับลูกไม่เคยรวมกัน CCS ไม่เคยถูกหารหรือประมาณ และชุดเอกสารไม่เคยปนข้ามหน่วย ถอน: กิ่งการตั้งค่ารายหน่วยเทียบรายเที่ยว และทางเลือกการวัดระดับ consignment ทุกทาง รวมค่าสุทธิระดับเที่ยวที่ Rev 0.2 เก็บไว้ในชุดการกระทบยอด เพิ่ม: T-17 (การเดินทางแม่ + ลูกให้ระเบียนรายหน่วยสองชุดที่เป็นอิสระต่อกัน) และ T-18 (รถหน่วยเดี่ยวขนาดใหญ่ให้หนึ่งชุด)
The station issues it, at that unit's weigh-out, in its own applied range, naming its own quota. The transfer station issues the transfer unit's weigh-out delivery note when that physical unit weighs out and departs. Exactly one note per physical unit: mother and child/daughter are separate; a large single unit gets one. It uses the issuing station's existing statutory delivery-note range in the applied shared 7-digit namespace, and it names the station's mill quota account, because the station is the delivery origin. The factory never issues, replaces or renumbers it — it receives and reconciles it.
สถานีเป็นผู้ออก ณ การชั่งออกของหน่วยนั้น ในช่วงเลขที่ใช้จริงของตัวเอง โดยระบุโควตาของตัวเอง สถานีขนถ่ายออกใบชั่งออกของหน่วยขนถ่ายเมื่อหน่วยกายภาพนั้นชั่งออกและออกเดินทาง หนึ่งใบต่อหนึ่งหน่วยกายภาพพอดี: แม่และลูกแยกกัน; หน่วยเดี่ยวขนาดใหญ่ได้หนึ่งใบ ใช้ช่วงเลขที่ใบชั่งตามกฎหมายเดิมของสถานีที่ออกใบ ใน namespace 7 หลักร่วมที่ใช้จริง และระบุบัญชีโควตาของสถานีที่โรงงาน เพราะสถานีคือต้นทางการส่งมอบ โรงงานไม่เคยออก แทน หรือให้เลขใหม่ — โรงงานรับและกระทบยอด
Resolution as implemented (Section 4, Section 6, FR-H2, FR-H4):การนำไปปฏิบัติ (ข้อ 4, ข้อ 6, FR-H2, FR-H4): TransferTruckNote binds 1 — 1 to a unit load and stores the exact printed note number, the issuing station, the station quota snapshot, the issue / weigh-out time, the unit identity and configuration and its expected bundle membership. Each unit's bundle contains only the StationBills allocated to that unit plus that unit's own weigh-out note — mother and child bundles never mix. Factory receipt records presented, missing and unexpected notes without mutating a station row. Withdrawn: factory issuance, a new number series, a trip-level note and mixed-unit bundles. Added: T-19 — mother/child separation, single-unit, namespace, quota snapshot and no-renumbering.TransferTruckNote ผูก 1 — 1 กับ unit load และเก็บเลขที่ใบตามที่พิมพ์จริง สถานีที่ออกใบ snapshot โควตาของสถานี เวลาที่ออกใบ/ชั่งออก อัตลักษณ์และการจัดหน่วย และสมาชิกชุดเอกสารที่คาดว่าจะมี ชุดของแต่ละหน่วยมีเฉพาะ StationBill ที่จัดสรรให้หน่วยนั้น บวกใบชั่งออกของหน่วยนั้นเอง — ชุดของแม่กับของลูกไม่เคยปนกัน ใบรับของโรงงานบันทึกใบที่ยื่นมา ขาด และเกินมา โดยไม่เปลี่ยนแถวของสถานี ถอน: การออกโดยโรงงาน ชุดเลขใหม่ ใบระดับเที่ยว และชุดเอกสารที่ปนข้ามหน่วย เพิ่ม: T-19 — การแยกแม่/ลูก หน่วยเดี่ยว namespace snapshot โควตา และการไม่ให้เลขใหม่
Two separate authoritative business-day references, and neither owns the other. The transfer station's 24:00 operating-day cutoff governs station-owned facts: each StationBill, each per-unit transfer-truck weigh-out note, each digital manifest version and the departure record carry station_operating_day from the station's own clock and cutoff. The sugar factory independently assigns mill_crushing_day_id to factory-owned arrival, certified factory weight, tipping, quality/CCS and reconciliation facts under the factory's own crushing-day rules. A unit may legitimately depart the station before midnight and arrive after it, so the linked station and factory records may carry different dates. Neither side derives, rewrites, normalizes or backdates the other's business day. Cross-tenant reconciliation preserves and displays both dates, with timestamps and timezone, joined through the typed unit/consignment reference. Settlement, document indexing and reporting use the owning side's date explicitly rather than a generic delivery_date — which does not exist in this model. What Rev 0.4 left open as "a reporting convention" is therefore decided, and decided as a model rule rather than a convention.
การอ้างอิงวันทำการที่มีอำนาจสองชุดแยกกัน และไม่มีชุดใดเป็นเจ้าของอีกชุด การตัดวันทำการ 24:00 ของสถานีขนถ่ายกำกับข้อเท็จจริงที่สถานีเป็นเจ้าของ: StationBill แต่ละใบ ใบชั่งออกของรถขนถ่ายรายหน่วยแต่ละใบ ใบกำกับดิจิทัลแต่ละฉบับ และระเบียนการออกเดินทาง พก station_operating_day จากนาฬิกาและการตัดวันของสถานีเอง โรงงานน้ำตาลกำหนด mill_crushing_day_id อย่างเป็นอิสระ ให้ข้อเท็จจริงที่โรงงานเป็นเจ้าของ — การมาถึง น้ำหนักที่โรงงานรับรอง การเท คุณภาพ/CCS และการกระทบยอด — ตามกฎวันหีบของโรงงานเอง หน่วยออกจากสถานีก่อนเที่ยงคืนและมาถึงหลังเที่ยงคืนได้โดยชอบ ระเบียนที่เชื่อมกันจึงพกวันที่ต่างกันได้ ไม่มีฝ่ายใด derive เขียนทับ ปรับให้เป็นมาตรฐาน หรือย้อนวันทำการของอีกฝ่าย การกระทบยอดข้าม tenant เก็บและแสดงวันทั้งสอง พร้อมตราเวลาและเขตเวลา เชื่อมกันผ่านการอ้างอิงหน่วย/consignment ที่มีชนิด การชำระเงิน การทำสารบัญเอกสาร และการรายงาน ใช้วันของฝ่ายที่เป็นเจ้าของอย่างชัดแจ้ง แทน delivery_date แบบรวม — ซึ่งไม่มีอยู่ในโมเดลนี้ สิ่งที่ Rev 0.4 ทิ้งไว้ว่าเป็น "ธรรมเนียมการรายงาน" จึงตัดสินแล้ว และตัดสินในฐานกฎของโมเดล ไม่ใช่ธรรมเนียม
Resolution as implemented (H15, Section 12, FR-H45…FR-H48):การนำไปปฏิบัติ (H15, ข้อ 12, FR-H45…FR-H48): FR-H45 states exhaustively which record carries which stamp — station_operating_day on the bill, the allocation, each unit note, each manifest version and the departure record; mill_crushing_day_id on arrival, certified factory weight, tipping, CCS and the factory's reconciliation. FR-H46 forbids derivation, rewriting, normalisation and backdating in either direction, keeps a delayed-sync record on its captured day, and refuses a foreign-day write with day.err.foreign_day_write. FR-H47 requires both dates, with timestamp and timezone and an owner label, on every cross-tenant reconciliation record and read model, joined by the typed reference and never by matching dates. FR-H48 binds settlement, document indexing and reporting to the owning side's date and refuses an unnamed basis with recon.err.day_basis_unnamed. Proved by T-7 (cross-midnight), T-20 (delayed sync), T-21 (late arrival) and T-22 (day-cutoff boundary), with T-23 on the absent generic date. This question no longer gates anything.FR-H45 ระบุครบว่าระเบียนใดพกตราใด — station_operating_day บนใบชั่ง การจัดสรร ใบของแต่ละหน่วย ใบกำกับแต่ละฉบับ และระเบียนการออกเดินทาง; mill_crushing_day_id บนการมาถึง น้ำหนักที่โรงงานรับรอง การเท CCS และการกระทบยอดของโรงงาน FR-H46 ห้าม derive เขียนทับ ปรับมาตรฐาน และย้อนวัน ทั้งสองทิศทาง คงวันที่เก็บไว้สำหรับระเบียนที่ sync ช้า และปฏิเสธการเขียนวันของอีกฝ่ายด้วย day.err.foreign_day_write FR-H47 กำหนดให้มีวันทั้งสองพร้อมตราเวลา เขตเวลา และชื่อเจ้าของ บนระเบียนและ read model การกระทบยอดข้าม tenant ทุกตัว เชื่อมด้วยการอ้างอิงที่มีชนิด ไม่ใช่การจับคู่วันที่ FR-H48 ผูกการชำระเงิน การทำสารบัญเอกสาร และการรายงาน เข้ากับวันของฝ่ายที่เป็นเจ้าของ และปฏิเสธฐานวันที่ไม่ระบุด้วย recon.err.day_basis_unnamed พิสูจน์ด้วย T-7 (คร่อมเที่ยงคืน) T-20 (sync ช้า) T-21 (มาถึงช้า) และ T-22 (ขอบการตัดวัน) พร้อม T-23 เรื่อการไม่มีวันส่งมอบแบบรวม คำถามนี้ไม่กั้นสิ่งใดอีกต่อไป
What the rule says. The applied $versioning clause calls a retirement or rename of an entity or attribute, and a restructuring of relationships, a MAJOR bump — and it reserves 1.0.0 for the first spec frozen against a shipped apps/ build. What this amendment does. Four MAJOR triggers: CraneToken retired as authoritative, StationBill.transfer_truck_id retired, the StationBill → CraneToken relationship restructured, two applied events superseded. The collision. The spec is in the v0.7x series, so the next MAJOR is 1.0.0 — the number promised to something else. Applying this amendment by the letter of the rule spends the reserved milestone on a model change that has nothing to do with a shipped build. The question is therefore not whether the design is right (that is the rest of this document) but under what version number it may be applied, and who says so — which is governance, owned by whoever owns $versioning, and not by the drafter who would benefit from a convenient reading.
THE DECISION — Product Owner, 20 Aug 2026: option (b), and it reached further than the option as written. The governance amendment was authored as its own change set (PROP-102), approved and applied as spec v0.78.0, and this amendment then applied as spec v0.79.0 — a MINOR marked breaking with its marking registered at releases.breaking. What the amendment pass measured is worth recording, because it changes the character of the decision: the clause and the practice had disagreed for eleven releases. Nineteen retirements — an entity, several attributes, enum members, an event, a workflow, a requirement, a named leg of a requirement, a unique index, a copy key and three burned convention ids — had already been applied inside MINOR releases between v0.32.0 and v0.75.0, and the retirement register carried only eleven of them, so a reader who checked it for one of the other eight was told by silence that the id had never been retired. Option (b) therefore RATIFIED practice on the same reasoning the v0.47.0 rename allowance used, on four conditions this amendment already met (retirement by id · a named successor or a stated absence · a migration that only inserts · a permanent crosswalk where a name moves), and the Product Owner instructed in the same decision that the register be COMPLETED rather than have its gap recorded as a finding for later. 1.0.0 stays reserved for the first spec frozen against a shipped apps/ build, and check V-35 now reads both registers on every run.
กฎว่าอย่างไร ข้อ $versioning ที่ใช้จริงถือว่าการปลดหรือเปลี่ยนชื่อ entity หรือแอตทริบิวต์ และการปรับโครงสร้างความสัมพันธ์ เป็น MAJOR — และ สงวน 1.0.0 ไว้สำหรับ spec ฉบับแรกที่ตรึงกับ build ของ apps/ ที่ปล่อยแล้ว การแก้ไขนี้ทำอะไร มีตัวกระตุ้น MAJOR สี่ข้อ: ปลด CraneToken จากการมีอำนาจ ปลด StationBill.transfer_truck_id ปรับโครงความสัมพันธ์ StationBill → CraneToken และแทน event ที่ใช้จริงสองตัว จุดชน spec อยู่ชุด v0.7x ดังนั้น MAJOR ครั้งถัดไปคือ 1.0.0 — หมายเลขที่สัญญาไว้กับสิ่งอื่น การ apply ตามตัวอักษรของกฎจึงเท่ากับใช้หลักหมายที่สงวนไว้กับการเปลี่ยนโมเดลที่ไม่เกี่ยวกับ build ที่ปล่อยเลย คำถามจึงไม่ใช่ว่าการออกแบบถูกหรือไม่ (นั่นคือส่วนที่เหลือของเอกสารนี้) แต่คือ apply ได้ภายใต้หมายเลขเวอร์ชันใด และใครเป็นคนชี้ขาด — ซึ่งเป็นธรรมาภิบาล เป็นของผู้เป็นเจ้าของข้อ $versioning ไม่ใช่ของผู้ร่างที่จะได้ประโยชน์จากการอ่านอย่างสะดวก
คำตัดสิน — เจ้าของผลิตภัณฑ์ 20 ส.ค. 2569: ทางเลือก (ข) และไปไกลกว่าที่เขียนไว้ การแก้ไขด้านธรรมาภิบาลถูกเขียนเป็นชุดการเปลี่ยนแปลงของตัวเอง (PROP-102) อนุมัติและ apply เป็น spec v0.78.0 แล้วฉบับนี้จึง apply เป็น spec v0.79.0 — MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ พร้อมลงทะเบียนเครื่องหมายที่ releases.breaking สิ่งที่รอบการแก้ไขนั้นวัดได้ควรบันทึกไว้ เพราะเปลี่ยนลักษณะของคำตัดสิน: ข้อกำหนดกับการปฏิบัติขัดกันมาสิบเอ็ด release การปลด 19 รายการ — entity หนึ่งตัว แอตทริบิวต์หลายตัว สมาชิก enum event หนึ่งตัว workflow หนึ่งตัว requirement หนึ่งข้อ ขาหนึ่งขาของ requirement ดัชนี unique หนึ่งตัว คีย์ข้อความหนึ่งคีย์ และรหัส convention ที่ถูกเผาสามรหัส — ถูก apply ไปแล้วใน release ระดับ MINOR ระหว่าง v0.32.0 ถึง v0.75.0 และทะเบียนการปลดมีเพียง 11 รายการ ผู้อ่านที่ค้นหาอีกแปดรายการจึงถูกความเงียบบอกว่า id นั้นไม่เคยถูกปลด ทางเลือก (ข) จึงเป็นการรับรองการปฏิบัติ ด้วยเหตุผลเดียวกับที่ใช้ยอมให้เปลี่ยนชื่อที่ v0.47.0 ภายใต้เงื่อนไขสี่ข้อที่ฉบับนี้ทำครบอยู่แล้ว (ปลดตาม id · ผู้สืบทอดที่ระบุชื่อหรือการระบุว่าไม่มี · การย้ายที่เพิ่มแถวเท่านั้น · crosswalk ถาวรเมื่อมีการเปลี่ยนชื่อ) และในคำตัดสินเดียวกันเจ้าของผลิตภัณฑ์สั่งให้เติมทะเบียนให้ครบ ไม่ใช่บันทึกช่องว่างเป็นข้อค้นพบไว้ทีหลัง 1.0.0 ยังสงวนไว้ สำหรับ spec ฉบับแรกที่ตรึงกับ build ของ apps/ ที่ปล่อยแล้ว และ check V-35 อ่านทะเบียนทั้งสองทุกครั้งที่รัน
Recommend:แนะนำ: option (b) of Section 22 — write a separate, small governance amendment that admits, before 1.0.0, a MINOR that is marked breaking and lists exactly what it breaks; approve it on its own merits; then apply PROP-101 under it. That keeps 1.0.0 reserved for the shipped-build freeze, keeps this change honestly labelled breaking, and does not let a milestone be spent as a side effect. Option (a) applies as MAJOR and spends 1.0.0 now; option (c) defers this amendment until the 1.0.0 freeze. Not a drafting choice — the versioning owner decides.ทางเลือก (ข) ในข้อ 22 — เขียน การแก้ไขด้านธรรมาภิบาลแยกฉบับขนาดเล็ก ที่ยอมให้ก่อน 1.0.0 มี MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ พร้อมระบุว่าทำลายอะไรบ้าง; อนุมัติบนคุณค่าของมันเอง แล้วจึง apply PROP-101 ภายใต้มัน วิธีนี้คง 1.0.0 ไว้ให้การตรึงกับ build ที่ปล่อยแล้ว คงการทำเครื่องหมายว่าการเปลี่ยนนี้ทำลายความเข้ากันได้ไว้ตามจริง และไม่ปล่อยให้หลักหมายถูกใช้ไปโดยผลข้างเคียง ทางเลือก (ก) apply เป็น MAJOR และใช้ 1.0.0 ทันที; ทางเลือก (ค) เลื่อนการแก้ไขนี้ไปที่การตรึง 1.0.0 ไม่ใช่ทางเลือกในการร่าง — ผู้เป็นเจ้าของเรื่องเวอร์ชันเป็นผู้ตัดสิน
The decision. No transfer-station gateway, no new centralized allocator and no new high-availability or failover behaviour is introduced; the applied offline station posture continues (NFR-57). Cane pre-allocates a controlled block of statutory delivery-note numbers to each transfer station, and the station issues from that block sequentially while offline. Every issued block carries a unique range identifier and epoch with explicit validity and ownership, so an expired, superseded, duplicated, forked or reassigned block cannot be reused. Local ordering is monotonic and durable; synchronisation through StationJournal is idempotent; and any duplicate, expired, out-of-range, wrong-station, wrong-epoch or forked-range use is rejected or quarantined for reconciliation with complete audit evidence — never silently renumbered. Certified scale weights remain captured directly from the certified scale (A-10, NFR-33) and are never manually entered or reconstructed; physical paper remains the operational fallback established by PROP-030 and NFR-57. A station gateway, continuous central allocation, automatic failover or a change to the applied HA ladder is out of scope — a separate proposal or amendment, which this design must not assume or depend on.
คำตัดสิน ไม่เพิ่ม gateway ที่สถานีขนถ่าย ไม่เพิ่มผู้จ่ายเลขส่วนกลางตัวใหม่ และไม่เพิ่มพฤติกรรม high availability หรือการสลับอัตโนมัติ; ท่าที offline ของสถานีที่ใช้จริงดำเนินต่อไป (NFR-57) Cane จ่ายบล็อกเลขที่ใบชั่งตามกฎหมายอย่างควบคุมล่วงหน้าให้สถานีขนถ่ายแต่ละแห่ง และสถานีออกเลขจากบล็อกนั้นเรียงลำดับขณะ offline บล็อกที่ออกทุกชุดพกตัวระบุช่วงและ epoch ที่ไม่ซ้ำ พร้อมช่วงเวลาที่ใช้ได้และความเป็นเจ้าของอย่างชัดแจ้ง บล็อกที่หมดอายุ ถูกแทนที่ ซ้ำ แยกสาย หรือถูกโอน จึงนำกลับมาใช้ไม่ได้ การจัดลำดับในเครื่องเพิ่มขึ้นทางเดียวและคงทน; การ sync ผ่าน StationJournal กันซ้ำ; และการใช้เลขที่ซ้ำ หมดอายุ นอกช่วง ผิดสถานี ผิด epoch หรือช่วงแยกสาย ถูกปฏิเสธหรือกักไว้เพื่อกระทบยอดพร้อมหลักฐานตรวจสอบครบถ้วน — ไม่เคยให้เลขใหม่อย่างเงียบ ๆ น้ำหนักจากตาชั่งที่รับรองยังถูกเก็บตรงจากตาชั่งที่รับรอง (A-10, NFR-33) และไม่เคยถูกคีย์ด้วยมือหรือประกอบขึ้นใหม่; กระดาษกายภาพยังเป็นทางถอยเชิงปฏิบัติการที่ PROP-030 และ NFR-57 กำหนดไว้ station gateway การจ่ายเลขส่วนกลางต่อเนื่อง การสลับอัตโนมัติ หรือการเปลี่ยนบันได HA ที่ใช้จริง อยู่นอกขอบเขต — เป็นข้อเสนอหรือการแก้ไขแยกฉบับ ซึ่งการออกแบบนี้ต้องไม่สันนิษฐานหรือขึ้นกับมัน
Recorded as:บันทึกเป็น: principle H8 rewritten and H16 added; Section 11 restated as the decision; FR-H49 (controlled pre-allocation, epoch, validity, ownership), FR-H50 (monotonic durable ordering, idempotent sync), FR-H51 (six refusals and the quarantine), FR-H52 (what is out of scope, and the two applied floors), FR-H53 (a quarantine resolved by a named act); the StationNumberBlock object with its identifiers, invariants and lifecycle; events StationNumberBlockActivated and StationNumberUseQuarantined; the number-block screen; seven refusal codes; and tests T-24…T-28. This question no longer gates acceptance.หลักการ H8 เขียนใหม่และเพิ่ม H16; ข้อ 11 ระบุใหม่เป็นคำตัดสิน; FR-H49 (การจ่ายล่วงหน้าอย่างควบคุม epoch ช่วงเวลาใช้ได้ ความเป็นเจ้าของ) FR-H50 (ลำดับที่เพิ่มทางเดียวและคงทน การ sync กันซ้ำ) FR-H51 (การปฏิเสธหกกรณีและการกัก) FR-H52 (สิ่งที่อยู่นอกขอบเขต และพื้นสองข้อที่ใช้จริง) FR-H53 (การกักที่ชี้ขาดด้วยการกระทำที่ระบุชื่อ); object StationNumberBlock พร้อมตัวระบุ ข้อคงที่ และวงจรชีวิต; event StationNumberBlockActivated และ StationNumberUseQuarantined; หน้าจอบล็อกเลข; รหัสการปฏิเสธเจ็ดรหัส; และการทดสอบ T-24…T-28 คำถามนี้ไม่กั้นการรับร่างอีกต่อไป
The decision. Use Cane's existing X2 network relationship for the transfer-station-to-destination-factory seam, because the transfer station holds its quota account at that factory. No new tenant-sharing mechanism is invented. Ownership and authority are directional: the station tenant owns and publishes its StationBill records, per-unit manifest and bundle membership, dispatched weight, departure facts, route and ETA; the destination-factory tenant owns and publishes arrival, certified factory weight, tipping, CCS/quality and reconciliation. Each tenant reads only the minimum shared facts for the specifically referenced physical unit and consignment and its named destination factory, and neither may create, modify, overwrite, normalize, backdate or delete the other's facts. The station declares and dispatches; the named destination factory may accept the receipt, reject it, or record mismatches without rewriting the station record. A relationship with one factory grants no access to another factory, a sibling factory, an unrelated transfer, an unrelated StationBill or unrelated station data, and shared read models are derived from typed transfer-unit and consignment references, never inferred from matching dates, weights, note numbers or vehicle identity. The one fallback. If implementation review proves the applied X2 definition cannot legally represent this exact station–factory relationship, the only alternative is a narrowly scoped X1 consent grant recorded as a blocking correction before application — never a fifth access mechanism, and never a silent broadening of X2.
คำตัดสิน ใช้ความสัมพันธ์เครือข่าย X2 ที่ Cane มีอยู่แล้วสำหรับ seam จากสถานีขนถ่ายไปยังโรงงานปลายทาง เพราะสถานีขนถ่ายถือบัญชีโควตาของตนที่โรงงานนั้น ไม่มีการคิดกลไกแบ่งใช้ข้าม tenant ขึ้นใหม่ ความเป็นเจ้าของและอำนาจมีทิศทาง: tenant ของสถานีเป็นเจ้าของและเผยแพร่ระเบียน StationBill ใบกำกับรายหน่วยและสมาชิกชุดเอกสาร น้ำหนักที่ส่งออก ข้อเท็จจริงการออกเดินทาง เส้นทาง และ ETA; tenant ของโรงงานปลายทางเป็นเจ้าของและเผยแพร่การมาถึง น้ำหนักที่โรงงานรับรอง การเท คุณภาพ/CCS และการกระทบยอด แต่ละ tenant อ่านเฉพาะข้อเท็จจริงที่แบ่งใช้ขั้นต่ำของหน่วยกายภาพและ consignment ที่อ้างถึงเจาะจง และโรงงานปลายทางที่ระบุชื่อ และไม่มีฝ่ายใดสร้าง แก้ เขียนทับ ปรับให้เป็นมาตรฐาน ย้อนวัน หรือลบข้อเท็จจริงของอีกฝ่าย สถานีประกาศและส่งออก; โรงงานปลายทางที่ระบุชื่อรับใบรับ ปฏิเสธ หรือบันทึกความไม่ตรงกันได้ โดยไม่เขียนระเบียนของสถานีทับ ความสัมพันธ์กับโรงงานหนึ่งไม่ให้สิทธิ์เข้าถึงโรงงานอื่น โรงงานพี่น้อง การขนถ่ายที่ไม่เกี่ยว StationBill ที่ไม่เกี่ยว หรือข้อมูลสถานีที่ไม่เกี่ยว และ read model ที่แบ่งใช้ derive จากการอ้างอิงหน่วยขนถ่ายและ consignment ที่มีชนิด ไม่เคยอนุมานจากวันที่ น้ำหนัก เลขที่ใบ หรืออัตลักษณ์ของรถที่ตรงกัน ทางถอยทางเดียว หากการทบทวนตอนสร้างพิสูจน์ว่านิยาม X2 ที่ใช้จริงแทนความสัมพันธ์สถานี–โรงงานนี้โดยชอบไม่ได้ ทางเลือกเดียวคือ consent grant X1 ที่จำกัดขอบเขตแคบ บันทึกเป็นการแก้ที่กั้นการ apply ก่อน apply — ไม่ใช่กลไกการเข้าถึงตัวที่ห้า และไม่ใช่การขยาย X2 อย่างเงียบ ๆ
Recorded as:บันทึกเป็น: principle H9 rewritten and H17 added; a decision box in Section 12 and the new Section 12.3 with a declared permission row per shared command, event and read model; FR-H54 (X2, and the narrow blocking X1 fallback), FR-H55 (directional ownership, stated exhaustively), FR-H56 (minimum facts, one referenced unit, one named factory, typed joins only), FR-H57 (one declared row per shared thing), FR-H58 (refusal behaviour and revoked relations), FR-H59 (the exception paths), NFR-H7 (least privilege, purpose limitation, audit history, provenance, correlation, refusal); event TenantSeamAccessRefused; the seam-permission and access-audit screen; six seam.err.* codes; the tenantIsolation.seams impact row; and tests T-29…T-33 proving the allowed direction and the denied direction. This question no longer gates acceptance.หลักการ H9 เขียนใหม่และเพิ่ม H17; กล่องคำตัดสินในข้อ 12 และ ข้อ 12.3 ใหม่ พร้อมแถวสิทธิ์ที่ประกาศไว้ต่อคำสั่ง event และ read model ที่แบ่งใช้หนึ่งอย่าง; FR-H54 (X2 และทางถอย X1 ที่แคบและกั้นการ apply) FR-H55 (ความเป็นเจ้าของที่มีทิศทาง ระบุให้ครบ) FR-H56 (ข้อเท็จจริงขั้นต่ำ หนึ่งหน่วยที่อ้างถึง หนึ่งโรงงานที่ระบุชื่อ เชื่อมด้วยชนิดเท่านั้น) FR-H57 (หนึ่งแถวที่ประกาศไว้ต่อสิ่งที่แบ่งใช้หนึ่งอย่าง) FR-H58 (พฤติกรรมการปฏิเสธและความสัมพันธ์ที่ถูกเพิกถอน) FR-H59 (เส้นทางข้อยกเว้น) NFR-H7 (สิทธิ์น้อยที่สุด การจำกัดวัตถุประสงค์ ประวัติการตรวจสอบ ที่มา correlation การปฏิเสธ); event TenantSeamAccessRefused; หน้าจอสิทธิ์ที่ seam และการตรวจสอบการเข้าถึง; รหัส seam.err.* หกรหัส; แถวผลกระทบ tenantIsolation.seams; และการทดสอบ T-29…T-33 ที่พิสูจน์ทั้งทิศทางที่อนุญาตและทิศทางที่ปฏิเสธ คำถามนี้ไม่กั้นการรับร่างอีกต่อไป
The decision. The allocation tolerance is exactly 0 kg. There is no mill-level value, no station-level override, no effective-dated configurable tolerance and no discretionary exception — the ownership question dissolves, because there is no setting to own. Because one small-truck load is lifted once, in full, onto exactly one preselected TransferUnitLoad (H12), the live TransferLoadAllocation.allocated_kg is populated automatically from that StationBill's certified net weight and must equal it exactly. The operator selects the target physical unit only, and must never type, estimate, round, divide or adjust the quantity. If the two do not match exactly the platform blocks the allocation and the manifest completion and raises an auditable exception; recovery is a correction of the authoritative source record or of the certified-scale integration, followed by a new or superseding allocation as appropriate — never a tolerance, a silent reconciliation, a manual override or a second live allocation. And the equality is not a variance absorber: station-to-factory scale variance, physical transfer loss, moisture change, rounding and certified-scale differences stay separate downstream facts, visible under the existing station-versus-factory weight reconciliation rules and the applied loss policy.
คำตัดสิน ค่าเผื่อการจัดสรรเป็น 0 กก. พอดี ไม่มีค่าระดับโรงงาน ไม่มีการ override ระดับสถานี ไม่มีค่าเผื่อที่ตั้งได้ตามช่วงวัน และไม่มีข้อยกเว้นตามดุลพินิจ — คำถามเรื่องความเป็นเจ้าของสลายไป เพราะไม่มีค่าตั้งให้เป็นเจ้าของ เพราะอ้อยของรถเล็กหนึ่งคันถูกยกครั้งเดียว ทั้งคัน ขึ้น TransferUnitLoad ที่เลือกไว้ล่วงหน้าหนึ่งตัวพอดี (H12) TransferLoadAllocation.allocated_kg ที่ใช้งานจึงถูกเติมอัตโนมัติจากน้ำหนักสุทธิที่รับรองของ StationBill ใบนั้น และต้องเท่ากันพอดี ผู้ปฏิบัติงานเลือกหน่วยกายภาพเป้าหมายเท่านั้น และต้องไม่พิมพ์ ประมาณ ปัด หาร หรือปรับปริมาณเลย หากสองค่าไม่ตรงกันพอดี แพลตฟอร์มกั้นการจัดสรรและการปิดใบกำกับ และยกข้อยกเว้นที่ตรวจสอบได้; การกู้คืนคือแก้ระเบียนต้นทางที่มีอำนาจหรือแก้การเชื่อมต่อตาชั่งที่รับรอง แล้วจึงมีการจัดสรรใหม่หรือที่แทนที่ตามความเหมาะสม — ไม่ใช่ค่าเผื่อ ไม่ใช่การกระทบยอดเงียบ ๆ ไม่ใช่การ override ด้วยมือ และไม่ใช่การจัดสรรที่ใช้งานรายการที่สอง และความเท่ากันนี้ไม่ใช่เครื่องกลบส่วนต่าง: ส่วนต่างของตาชั่งสถานีกับโรงงาน การสูญหายทางกายภาพ ความชื้นที่เปลี่ยน การปัดเศษ และส่วนต่างของตาชั่งที่รับรอง ยังเป็นข้อเท็จจริงปลายทางที่แยกกัน มองเห็นได้ภายใต้กฎการกระทบยอดน้ำหนักสถานีเทียบโรงงานที่มีอยู่และนโยบายการสูญหายที่ใช้จริง
Recorded as:บันทึกเป็น: principle H18; FR-H7 rewritten as the zero-kilogram invariant, with the mill-level versioned tolerance and the tolerance_policy_version attribute withdrawn; FR-H60 (automatic exact population, no manual path anywhere), FR-H61 (a mismatch blocks; recovery corrects the source), FR-H62 (nothing downstream is absorbed); the StationBill invariant tightened to an exact equality; refusals alloc.err.manual_quantity_refused, alloc.err.quantity_mismatch and mft.err.quantity_mismatch_blocking; the settings impact row that creates no tolerance setting; two metrics; and tests T-34…T-37.หลักการ H18; FR-H7 เขียนใหม่เป็นข้อคงที่ศูนย์กิโลกรัม โดยถอนค่าเผื่อระดับโรงงานที่มีเวอร์ชันและแอตทริบิวต์ tolerance_policy_version; FR-H60 (การเติมอัตโนมัติให้ตรงพอดี ไม่มีเส้นทางป้อนด้วยมือที่ใดเลย) FR-H61 (ความไม่ตรงกันกั้นไว้; การกู้คืนแก้ที่ต้นทาง) FR-H62 (ไม่กลบสิ่งใดปลายทาง); ข้อคงที่ของ StationBill รัดเป็นความเท่ากันพอดี; การปฏิเสธ alloc.err.manual_quantity_refused alloc.err.quantity_mismatch และ mft.err.quantity_mismatch_blocking; แถวผลกระทบด้านค่าตั้งที่ไม่สร้างค่าเผื่อ; ตัววัดสองรายการ; และการทดสอบ T-34…T-37
| Rev | Dateวันที่ | Changesการเปลี่ยนแปลง |
|---|---|---|
| 0.1 | 2026-08-19 | First draft, registered as the controlled successor to applied PROP-030 (Rev 1.0, spec v0.21.0) on the Product Owner decision of 19 Aug 2026: the required concept is a digital delivery hierarchy and load-allocation record, not a CraneToken entity. Identifier allocated through the draft register; PROP-030 not edited, not renumbered, not re-marked. Contents: the applied model read back; principles H1–H8; the four-object hierarchy plus a manifest and an optional tag; identities, keys, invariants; the split rule gated by OQ-1; five lifecycles; weight and CCS propagation; four-total reconciliation; offline rules; ten exception paths; roles and audit; nine events; seven screens; a field-by-field migration mapping; the PROP-030 preservation list; five open questions.ร่างแรก ลงทะเบียนเป็น ฉบับสืบทอดที่ควบคุมของ PROP-030 ที่ใช้จริง (Rev 1.0, spec v0.21.0) ตามคำตัดสินของเจ้าของผลิตภัณฑ์ 19 ส.ค. 2569: แนวคิดที่ต้องการคือ ลำดับชั้นการส่งมอบและระเบียนการจัดสรรการบรรทุกแบบดิจิทัล ไม่ใช่ entity CraneToken ขอหมายเลขผ่านทะเบียนร่าง; ไม่แก้ ไม่เปลี่ยนเลข ไม่เปลี่ยนสถานะ PROP-030 เนื้อหา: อ่านโมเดลที่ใช้จริงกลับ; หลักการ H1–H8; ลำดับชั้นสี่ object บวกใบกำกับและแท็กทางเลือก; อัตลักษณ์ คีย์ ข้อคงที่; กฎการแบ่งบรรทุกที่ OQ-1 กั้น; วงจรชีวิตห้าชุด; การส่งต่อน้ำหนักและ CCS; การกระทบยอดสี่ผลรวม; กฎเมื่อ offline; เส้นทางข้อยกเว้นสิบเส้นทาง; บทบาทและการตรวจสอบ; event เก้ารายการ; หน้าจอเจ็ดรายการ; แผนที่การย้ายทีละฟิลด์; รายการสิ่งที่ PROP-030 คงไว้; คำถามเปิดห้าข้อ |
| 0.2 | 2026-08-19 | Comprehensive end-to-end correction pass on the client review of Rev 0.1 — fourteen findings repaired, no decision reversed. The preserved decision stands: TransferLoadAllocation is authoritative and physical artifacts are optional and non-authoritative. (1) The applied document chain is restored as its own Section 4: PROP-029's four-ply routing (white + pink → farmer, yellow travels with the transfer truck, blue stays at the station, per-mill config under A-36 (c)), FR-179's surrender of every farmer sub-delivery note plus the transfer truck's own note at the factory weighbridge, every ply holder, what travels, what is surrendered, and how the digital records index rather than replace them; new TransferTruckNote represents the truck's own note; TransferManifest is declared a non-statutory digital control record and index (H2, FR-H1…FR-H4) and a bundle-reconciliation record is required at the factory. (2) Timing corrected: WF-70 is the farmer/small-truck intake with four applied steps — affected steps are 2–3, cut and reopen at step 4 unchanged — the small truck exit-weighs, finalises and prints its bill and leaves, and a separate later gate closes the manifest and departs the consignment; CraneTokenReturned now maps to StationLoadExitConfirmed and not to TransferManifestClosed (H3, FR-H8, FR-H9). (3) CCS corrected: every farmer load on one unit receives that unit's value unchanged, per-trip analysis likewise; the pro-rata CCS clause of Rev 0.1 is withdrawn, pro rata is confined to factory net weight, loss and a separately named weighted contribution with a stated residual rule, and source granularity, applied precision, status, match method and rule version are recorded (H6, FR-H11, FR-H12, FR-H13). (4) Migration made safe: never infer quantity from token count; three classes — one unambiguous token maps to a full delivery, same-unit duplicates deduplicate with provenance, several units or any uncertainty become legacy_quantity_unknown and reconciliation_required with every source token retained and financial attribution blocked; returned_at is the small-truck exit fact; nothing is deleted, the run is idempotent and dry-run first, and rollback is possible because only inserts happen (M-1…M-8). (5) StationDelivery resolved: the applied StationBill is the delivery; StationDelivery is a domain and glossary reading with no row, no key, no second status, and the alternative formal rename with a permanent crosswalk is named and not recommended. (6) Identifiers fixed: only statutory notes draw from the 7-digit namespace; consignment_ref and manifest_ref are separately typed operational references, collision-free by type, with internal ULIDs behind them, and the truck note's series is stated as the applied series subject to OQ-4. (7) Versioning corrected: four MAJOR triggers under the applied $versioning clause; "MINOR with one retirement" is withdrawn; the change is marked breaking and the reserved-1.0.0 consequence is raised as governance OQ-6 with three options rather than a self-serving exception. (8) Offline authority reconciled: no station gateway is presented as authoritative — FR-134 is the factory's allocator, FR-137 describes the factory LAN, FR-141 hard-stops allocation and applied HA is A-2 operator-attended warm standby; the draft proposes station-local ordering on the applied pre-fetched range with a range epoch, idempotency scoped by tenant and station on the applied StationJournal, disconnected operation, per-component failure paths and a declared degraded paper mode, with any gateway or HA need raised as a dependency (OQ-7); certified scale weights remain non-manual. (9) Tenant boundaries defined: immutable station facts plus separate factory receipt, weight and quality facts, joined by one typed cross-tenant reference on the applied X2 relation, with a seam row per shared read model and no dual ownership, no cross-tenant foreign key and no undeclared shared object (H9, FR-H23, FR-H24, OQ-8). (10) Days separated: station_operating_day on station facts, mill_crushing_day_id on factory facts, neither derived from the other (FR-H25). (11) Quantities and invariants tightened: allocated_kg in integer kilograms on the applied weight convention, a mill-level versioned over-allocation tolerance, four named reconciliation figures where the per-unit and per-consignment totals are never added, gross/tare/net named, the settlement and loss-policy inputs named, idempotency uniqueness scoped, the over-allocation reference repointed to FR-H18's successor FR-H7/FR-H31, and append-only made implementable through one one-way closure triple with partial uniques and manifest version uniqueness. (12) Lifecycles repaired: the bill's progress is derived from its allocations as a coverage plus a set of downstream stages, covering partial receipt, mixed consignments and late CCS; substitution creates new unit loads and the shortcut StationBill.transfer_truck_id is retired; cut-and-reopen is preserved as a second bill on one physical arrival. (13) Open questions and readiness synchronized: OQ-1 is stated once as gating station configuration and the pilot and not acceptance, in the header, the body, the register and the readiness section alike; OQ-2 requires a pilot proving the digital handoff and its fallback before the observed carrier is retired; OQ-3 is confirmed per mill; OQ-4 settles the note chain's numbers and issuer; OQ-5 is recorded as partly answered; OQ-6, OQ-7, OQ-8 and OQ-9 are added; and the draft no longer claims to be build-ready. (14) Review-grade verification added: sixteen tests with full expected outcomes covering normal, split, cut and reopen, legacy multi-token, substitution, cross-midnight, offline and late sync, duplicates, refusal, late CCS, note mismatch, lost artifact, manifest reopen, rounding and residual, degraded mode and cross-tenant refusal, plus named errors, metrics, permissions, audit, recovery, rollback, a pilot requirement and a register-by-register statement of exact impact. PROP-033's OQ-6 is left open with one synchronized cross-reference and no import of the transfer model and no NFC assumption; PROP-033 and its exhibit are unmodified. No applied document, register or graph value is touched by this revision, and PROP-030 remains applied, unedited, unrenumbered and unre-marked.การแก้ทั้งฉบับตั้งแต่ต้นจนจบตามการทบทวน Rev 0.1 ของลูกค้า — ซ่อมสิบสี่ข้อค้นพบ ไม่กลับคำตัดสินใด คำตัดสินที่คงไว้ยังยืน: TransferLoadAllocation มีอำนาจ และ artifact กายภาพเป็นทางเลือกและไม่มีอำนาจ (1) คืนสภาพสายเอกสารที่ใช้จริง เป็นข้อ 4 ของตัวเอง: เส้นทางสำเนาสี่ใบของ PROP-029 (ขาว + ชมพู → ชาวไร่, เหลืองไปกับรถขนถ่าย, ฟ้าเก็บที่สถานี, ค่าตั้งรายโรงงานตาม A-36 (c)), การยื่นใบชั่งย่อยของชาวไร่ทุกใบ พร้อมใบชั่งของรถขนถ่ายเอง ที่ห้องชั่งโรงงานตาม FR-179, ผู้ถือสำเนาทุกราย สิ่งที่เดินทาง สิ่งที่ยื่น และวิธีที่ระเบียนดิจิทัล ทำสารบัญ ไม่ใช่แทน พวกมัน; TransferTruckNote ใหม่แทนใบชั่งของรถเอง; ประกาศให้ TransferManifest เป็น ระเบียนควบคุมและสารบัญดิจิทัลที่ไม่ใช่เอกสารตามกฎหมาย (H2, FR-H1…FR-H4) และกำหนดให้มีระเบียนการกระทบยอดชุดเอกสารที่โรงงาน (2) แก้จังหวะเวลา: WF-70 คือการรับอ้อยฝั่งชาวไร่/รถเล็กที่มี สี่ ขั้นตอนตามที่ใช้จริง — ขั้นตอนที่กระทบคือ 2–3 การตัดใบแล้วเปิดใหม่ที่ขั้นตอน 4 ไม่เปลี่ยน — รถเล็กชั่งออก ปิดและพิมพ์ใบของตน แล้วออกไป และ ประตูแยกภายหลัง ปิดใบกำกับและออกเดินทาง; CraneTokenReturned แม็ปไปยัง StationLoadExitConfirmed และ ไม่ใช่ TransferManifestClosed (H3, FR-H8, FR-H9) (3) แก้ CCS: อ้อยของชาวไร่ทุกรายบนหน่วยเดียวได้ค่าของหน่วยนั้น โดยไม่เปลี่ยน การวิเคราะห์รายเที่ยวก็เช่นกัน; ถอน ข้อความเฉลี่ย CCS ตามสัดส่วนของ Rev 0.1 จำกัดการเฉลี่ยไว้ที่น้ำหนักสุทธิของโรงงาน การสูญหาย และค่าส่วนร่วมถ่วงน้ำหนักที่ตั้งชื่อแยก พร้อมกฎเศษที่ระบุ และบันทึกความละเอียดของแหล่ง ความละเอียดที่ใช้จริง สถานะ วิธีจับคู่ และเวอร์ชันของกฎ (H6, FR-H11, FR-H12, FR-H13) (4) ทำให้การย้ายข้อมูลปลอดภัย: ไม่อนุมานปริมาณจากจำนวนเหรียญ; สามชั้น — เหรียญเดียวที่ไม่กำกวมแม็ปเป็นทั้งใบ เหรียญซ้ำบนหน่วยเดียวกันยุบพร้อมที่มา หลายหน่วยหรือความไม่แน่นอนใดกลายเป็น legacy_quantity_unknown และ reconciliation_required โดยเก็บเหรียญต้นทางทุกอันและกั้นการปันส่วนทางการเงิน; returned_at คือข้อเท็จจริงการออกของรถเล็ก; ไม่ลบอะไร รันซ้ำได้และทดลองก่อน และย้อนกลับได้เพราะมีแต่การ insert (M-1…M-8) (5) ยุติเรื่อง StationDelivery: StationBill ที่ใช้จริง คือ การส่งมอบ; StationDelivery เป็นการอ่านเชิงโดเมนและใน glossary โดย ไม่มีแถว ไม่มีคีย์ ไม่มีสถานะที่สอง และระบุทางเลือกการเปลี่ยนชื่ออย่างเป็นทางการพร้อม crosswalk ถาวรไว้ โดยไม่แนะนำ (6) แก้ตัวระบุ: เฉพาะใบตามกฎหมายเท่านั้นที่ดึงจาก namespace 7 หลัก; consignment_ref และ manifest_ref เป็นการอ้างอิงเชิงปฏิบัติการที่มีชนิดแยก ปลอดการชนกันด้วยชนิด โดยมี ULID ภายในอยู่ข้างหลัง และระบุว่าชุดเลขของใบชั่งรถเป็นชุดที่ใช้จริงโดยรอ OQ-4 (7) แก้เรื่องเวอร์ชัน: ตัวกระตุ้น MAJOR สี่ข้อตามข้อ $versioning ที่ใช้จริง; ถอน "MINOR พร้อมการปลดหนึ่งรายการ"; ทำเครื่องหมายว่า ทำลายความเข้ากันได้ และยกผลเรื่อง 1.0.0 ที่สงวนไว้เป็น OQ-6 ด้านธรรมาภิบาลพร้อมสามทางเลือก แทนข้อยกเว้นที่เข้าข้างตัวเอง (8) ปรับให้ตรงเรื่องอำนาจเมื่อ offline: ไม่นำเสนอ station gateway ว่ามีอำนาจ — FR-134 คือผู้จ่ายเลขของโรงงาน FR-137 บรรยาย LAN ของโรงงาน FR-141 หยุดการจ่ายเลขตาย และ HA ที่ใช้จริงคือ A-2 warm standby ที่ผู้ปฏิบัติงานกด; ร่างเสนอการจัดลำดับในสถานีบนช่วงเลขที่ดึงมาล่วงหน้าที่ใช้จริงพร้อม epoch ของช่วง การกันซ้ำที่จำกัดขอบเขตตาม tenant และสถานีบน StationJournal ที่ใช้จริง การทำงานแบบถูกตัดขาด เส้นทางความล้มเหลวรายส่วนประกอบ และโหมดกระดาษถดถอยที่ประกาศไว้ โดยยกความต้องการ gateway หรือ HA ใด ๆ เป็น dependency (OQ-7); น้ำหนักจากตาชั่งที่รับรองยังคีย์ด้วยมือไม่ได้ (9) นิยามขอบเขต tenant: ข้อเท็จจริงของสถานีที่ไม่เปลี่ยน บวกใบรับ น้ำหนัก และคุณภาพของโรงงานที่แยกกัน เชื่อมด้วยการอ้างอิงข้าม tenant ที่มีชนิดหนึ่งรายการบนความสัมพันธ์ X2 ที่ใช้จริง พร้อมแถว seam ต่อ read model ที่แบ่งใช้ และไม่มีความเป็นเจ้าของร่วม ไม่มี foreign key ข้าม tenant และไม่มี object ที่แบ่งใช้โดยไม่ประกาศ (H9, FR-H23, FR-H24, OQ-8) (10) แยกวัน: station_operating_day บนข้อเท็จจริงของสถานี mill_crushing_day_id บนข้อเท็จจริงของโรงงาน ไม่ derive จากกัน (FR-H25) (11) รัดกุมเรื่องปริมาณและข้อคงที่: allocated_kg เป็นจำนวนเต็มกิโลกรัมตามธรรมนูญน้ำหนักที่ใช้จริง ค่าเผื่อการจัดสรรเกินระดับโรงงานที่มีเวอร์ชัน ตัวเลขกระทบยอดสี่ค่าที่ระบุชื่อ ซึ่งผลรวมรายหน่วยกับรายเที่ยวไม่เคยถูกบวกกัน ระบุน้ำหนักรวม/รถเปล่า/สุทธิ ระบุค่าที่ป้อนการชำระและนโยบายการสูญหาย จำกัดขอบเขตความไม่ซ้ำของคีย์กันซ้ำ ชี้การอ้างอิงการจัดสรรเกินจาก FR-H18 ไปยังผู้สืบทอด FR-H7/FR-H31 และทำให้ append-only ทำได้จริงด้วยสามค่าของการปิดแบบทางเดียว พร้อม partial unique และความไม่ซ้ำของฉบับใบกำกับ (12) ซ่อมวงจรชีวิต: ความคืบหน้าของใบ derive จากการจัดสรรของมันเป็นความครอบคลุมบวกเซตของขั้นปลายทาง ครอบคลุมการรับบางส่วน consignment ผสม และ CCS ที่มาช้า; การเปลี่ยนรถสร้าง unit load ใหม่ และ StationBill.transfer_truck_id ที่เป็นทางลัดถูก ปลด; คงการตัดใบแล้วเปิดใหม่เป็นใบที่สองบนการมาถึงทางกายภาพเดียว (13) ทำให้คำถามเปิดและความพร้อมสอดคล้องกัน: ระบุ OQ-1 ครั้งเดียวว่ากั้นการตั้งค่าสถานีและการนำร่อง และ ไม่ กั้นการรับร่าง ทั้งในหัวเรื่อง เนื้อหา ทะเบียน และข้อความพร้อม; OQ-2 ต้องมีการนำร่องที่พิสูจน์การส่งต่อดิจิทัลและทางถอยก่อนเลิกใช้ตัวพาที่สังเกตพบ; OQ-3 ยืนยันรายโรงงาน; OQ-4 ยุติเลขและผู้ออกใบบนสายเอกสาร; บันทึก OQ-5 ว่าตอบแล้วบางส่วน; เพิ่ม OQ-6, OQ-7, OQ-8 และ OQ-9; และร่าง ไม่อ้างว่าพร้อมสร้างตามอีกต่อไป (14) เพิ่มการตรวจสอบระดับทบทวน: การทดสอบสิบหกข้อพร้อมผลลัพธ์ที่คาดครบถ้วน ครอบคลุมกรณีปกติ การแบ่ง การตัดและเปิดใหม่ เหรียญหลายอันของข้อมูลเก่า การเปลี่ยนรถ การคร่อมเที่ยงคืน offline และ sync ช้า รายการซ้ำ การปฏิเสธ CCS ที่มาช้า ใบไม่ตรง artifact หาย การเปิดใบกำกับใหม่ การปัดและเศษ โหมดถดถอย และการปฏิเสธข้าม tenant บวกข้อผิดพลาดที่ระบุชื่อ ตัววัด สิทธิ์ การตรวจสอบ การกู้คืน การย้อนกลับ ข้อกำหนดการนำร่อง และการระบุผลกระทบตรง ๆ ทะเบียนต่อทะเบียน ปล่อย OQ-6 ของ PROP-033 ให้ เปิดอยู่ พร้อมการอ้างอิงข้ามที่สอดคล้องกันหนึ่งรายการ โดยไม่นำเข้าโมเดลขนถ่ายและไม่สันนิษฐาน NFC; ไม่แก้ PROP-033 และ exhibit ของมัน การแก้ไขครั้งนี้ไม่แตะเอกสาร ทะเบียน หรือค่าใน graph ที่ใช้จริงใด ๆ และ PROP-030 ยังใช้จริง ไม่ถูกแก้ ไม่ถูกเปลี่ยนเลข และไม่ถูกเปลี่ยนสถานะ |
| 0.3 | 2026-08-19 | Records and implements the Product Owner's field decision closing OQ-1. The field fact: at a typical transfer station the entire cane load from one small farmer truck is lifted in one operation as a single bundle using chains, placed onto one selected large transfer unit, and only then are the chains removed; the load is not practically divided during that lift. Before lifting, the loading operator must confirm the selected unit can accept the complete load and must switch the target unit before lifting if it cannot; once lifting begins the full load stays bound to that one unit. The invariant: one StationBill / one small-truck intake → exactly one live TransferLoadAllocation on exactly one TransferUnitLoad, for the complete load. Withdrawn throughout — the proposed split_policy setting, the split_allowed mode, quantity-based split allocation, the measured_split and estimated_split quantity bases, the rejected-split evidence collection, the alloc.err.split_not_permitted refusal, the rejected-split metric and test, and every statement that one bill may be operationally split across several unit loads. allocated_kg is preserved as the measured quantity of the whole intake — never as a divider. Added — principle H12 (one lift, one unit, confirmed before the chains lift); Section 7 rewritten as the decided rule; FR-H35 (one intake, one unit, one live allocation, enforced by the live partial unique (station_bill_id) WHERE state='live' rather than by policy) and FR-H36 (a two-stage loading act whose first stage is a pre-lift target-capacity confirmation, with a recorded target switch and its reason); event TransferLoadTargetSwitched; FR-H26 rewritten so a capacity failure after selection returns the operator to target selection before lifting and may never create a partial allocation or an estimated split; error codes alloc.err.target_capacity and alloc.err.no_target_confirmed; metrics for pre-lift target switches per shift and zero bills carrying more than one live allocation; T-2 (pre-lift capacity failure and target switch) replacing the split test. Cut-and-reopen reassessed and narrowed: applied WF-70 step 4 and FR-176 are triggered by a transfer truck reaching capacity mid-load and are a weighing-and-document mechanism — the truck weighs out and back in, the old bill closes and a new bill opens linked by cut_from_bill_id to the same physical arrival. FR-H27 now says only that, and no longer describes it as dividing one physical lift across two units; the applied evidence does not prove that reading and this draft does not assert it. Reconciled end to end — summary, principles, cardinalities (StationBill → TransferLoadAllocation is 1 — 0..1 live), constraints and partial uniques, WF-70 step 2, lifecycles, exceptions, requirements, events, screens, tests, metrics, migration rules (a legacy bill whose tokens name several units remains legacy_quantity_unknown / reconciliation_required — the decision governs new intakes and never rewrites history), readiness, the OQ section and both draft registers. Unchanged: OQ-2…OQ-9 keep their wording and their gates, except that readiness no longer lists OQ-1 among the questions that gate anything. PROP-030 and every applied specification and graph register remain untouched; this draft stays DRAFT and binds nothing.บันทึกและนำคำตัดสินจากหน้างานของเจ้าของผลิตภัณฑ์ที่ปิด OQ-1 ไปปฏิบัติ ข้อเท็จจริงหน้างาน: ที่สถานีขนถ่ายทั่วไป อ้อยทั้งคันรถของรถเล็กของชาวไร่หนึ่งคันถูกยกในการยกครั้งเดียวเป็นมัดเดียวด้วยโซ่ วางลงบนหน่วยขนถ่ายคันใหญ่ที่เลือกไว้หน่วยเดียว แล้วจึงปลดโซ่; การบรรทุกนั้นแบ่งไม่ได้ในทางปฏิบัติระหว่างการยก ก่อนยก ผู้ปฏิบัติงานบรรทุกต้องยืนยันว่าหน่วยที่เลือกรับอ้อยทั้งหมดได้ และต้องเปลี่ยนหน่วยเป้าหมายก่อนยกหากรับไม่ได้; เมื่อเริ่มยกแล้วอ้อยทั้งคันผูกกับหน่วยนั้นหน่วยเดียว ข้อคงที่: StationBill หนึ่งใบ / การรับอ้อยจากรถเล็กหนึ่งครั้ง → TransferLoadAllocation ที่ใช้งานหนึ่งรายการพอดี บน TransferUnitLoad หนึ่งตัวพอดี สำหรับอ้อยทั้งหมด ถอนทั้งฉบับ — ค่าตั้ง split_policy ที่เสนอไว้ โหมด split_allowed การจัดสรรแบบแบ่งตามปริมาณ ฐานปริมาณ measured_split และ estimated_split การเก็บหลักฐานการแบ่งที่ถูกปฏิเสธ การปฏิเสธ alloc.err.split_not_permitted ตัววัดและการทดสอบเรื่องการแบ่งที่ถูกปฏิเสธ และทุกข้อความที่ว่าใบหนึ่งใบถูกแบ่งขึ้นหลาย unit load ได้ในทางปฏิบัติ allocated_kg คงไว้ในฐานะปริมาณที่วัดได้ของการรับอ้อยทั้งครั้ง — ไม่ใช่ตัวแบ่ง เพิ่ม — หลักการ H12 (หนึ่งการยก หนึ่งหน่วย ยืนยันก่อนโซ่ยก); เขียนข้อ 7 ใหม่เป็นกฎที่ตัดสินแล้ว; FR-H35 (หนึ่งการรับอ้อย หนึ่งหน่วย หนึ่งการจัดสรรที่ใช้งาน บังคับด้วย partial unique (station_bill_id) WHERE state='live' ไม่ใช่ด้วยนโยบาย) และ FR-H36 (การกระทำบรรทุกสองจังหวะ จังหวะแรกคือการยืนยันความจุของหน่วยเป้าหมายก่อนยก พร้อมการเปลี่ยนหน่วยที่บันทึกไว้และเหตุผล); event TransferLoadTargetSwitched; เขียน FR-H26 ใหม่ให้ความจุที่ไม่พอหลังเลือกหน่วยพาผู้ปฏิบัติงานกลับไปที่การเลือกหน่วยก่อนยก และห้ามสร้างการจัดสรรบางส่วนหรือการแบ่งแบบประมาณ; รหัสข้อผิดพลาด alloc.err.target_capacity และ alloc.err.no_target_confirmed; ตัววัดการเปลี่ยนหน่วยเป้าหมายก่อนยกรายกะ และใบที่มีการจัดสรรที่ใช้งานมากกว่าหนึ่งรายการเป็น ศูนย์; T-2 (ความจุไม่พอก่อนยกและการเปลี่ยนหน่วย) แทนการทดสอบเรื่องการแบ่ง ทบทวนและจำกัดขอบเขตการตัดใบแล้วเปิดใหม่: WF-70 ขั้นที่ 4 และ FR-176 ที่ใช้จริงถูกกระตุ้นโดยรถขนถ่ายเต็มความจุกลางการบรรทุก และเป็นกลไกการชั่งและเอกสาร — รถชั่งออกแล้วเข้าใหม่ ใบเก่าปิดและใบใหม่เปิดเชื่อมด้วย cut_from_bill_id ไปยังการมาถึงทางกายภาพเดียวกัน FR-H27 ตอนนี้บอกเพียงเท่านั้น และไม่บรรยายว่าเป็นการแบ่งการยกครั้งเดียวขึ้นสองหน่วยอีกต่อไป; หลักฐานที่ใช้จริงไม่พิสูจน์การอ่านแบบนั้น และร่างนี้ไม่กล่าวอ้าง ปรับให้สอดคล้องตั้งแต่ต้นจนจบ — สรุป หลักการ cardinality (StationBill → TransferLoadAllocation เป็น 1 — 0..1 ที่ใช้งาน) constraint และ partial unique WF-70 ขั้นที่ 2 วงจรชีวิต ข้อยกเว้น ข้อกำหนด event หน้าจอ การทดสอบ ตัววัด กฎการย้ายข้อมูล (ใบเก่าที่เหรียญระบุหลายหน่วยยังเป็น legacy_quantity_unknown / reconciliation_required — คำตัดสินกำกับการรับอ้อยครั้งใหม่ และไม่เขียนประวัติใหม่) ความพร้อม ส่วนคำถามเปิด และทะเบียนร่างทั้งสอง ไม่เปลี่ยน: OQ-2…OQ-9 คงถ้อยคำและเงื่อนไขกั้นของตน เว้นแต่ข้อความความพร้อมไม่ระบุ OQ-1 ในกลุ่มคำถามที่กั้นสิ่งใดอีกต่อไป PROP-030 และข้อกำหนดกับทะเบียน graph ที่ใช้จริงทุกรายการไม่ถูกแตะ; ร่างนี้ยังเป็นฉบับร่างและไม่ผูกพันสิ่งใด |
| 0.4 | 2026-08-20 | Records and implements three confirmed Product Owner field decisions, closing OQ-2, OQ-3 and OQ-4. OQ-2 — there is no artifact, and there never was one to retire. Transfer-station practice uses no crane token, coin, NFC tag or other physical handoff artifact; the station bundles the small-truck delivery notes with the transfer unit's own station weigh-out note and that paper bundle travels to the factory. The paper chain is preserved, and Cane builds the authoritative digital mirror beside it: the closed TransferManifest indexes every bundled StationBill and each unit's weigh-out note, binds them to their TransferUnitLoad and TransferConsignment, and records station-certified dispatched tonnage (FR-H37); departure creates an in-transit cloud record — origin, destination, unit and vehicle, permitted driver or contractor reference, departure time, route reference, ETA source and as-of time (FR-H38); the factory reads dispatched inbound tonnage and ETA before arrival (FR-H39) and reconciles factory weight and the presented bundle without rewriting station facts (FR-H41). Added with it: honest degradation of stale ETA and location and delayed sync (FR-H40), inbound-visibility read models and turnaround and utilization evidence for later logistics optimization, promised as data collection and nothing more (FR-H42, FR-H43), and privacy and tenant boundaries on transport data (FR-H44), with events TransferConsignmentInTransit and ConsignmentETARevised. Removed: TransferLoadTag and its attributes, its lifecycle row, its three events, the token-retirement pilot language in NFR-H6, the lost-artifact test and every artifact impact line. OQ-3 — the physical unit is the only measurement granularity. Weighing, delivery documentation, paper bundling and CCS attribution are always per TransferUnitLoad: a mother and a child/daughter each have their own note, source-bill bundle, certified weight sequence and CCS result, and a huge single-body or single-trailer vehicle is one unit with one of each. TransferConsignment groups units only for journey, departure, route, ETA, arrival and logistics tracking and is never the note, weight, sampling, CCS or reconciliation granularity. Each StationBill binds to exactly one unit; factory weight and CCS attach to that unit and propagate unchanged only to its bills; mother and child results are never combined, CCS is never divided or estimated, and bundles never mix across units (H14, FR-H10, FR-H11, FR-H15). Removed: the per-unit-versus-per-trip configuration branch and every consignment-level measurement alternative. OQ-4 — the station issues the unit's note. The transfer station issues the transfer unit's weigh-out delivery note when that physical unit weighs out and departs — exactly one note per physical unit, mother and child separate, a large single unit one — drawn from the issuing station's existing statutory delivery-note range in the applied shared 7-digit namespace and naming the station's mill quota account, because the station is the delivery origin. The factory never issues, replaces or renumbers it; it receives and reconciles it. Each unit's bundle holds only the bills allocated to that unit plus that unit's own note, and mother and child bundles never mix. TransferTruckNote stores the exact printed number, the issuing station, the station quota snapshot, the issue and weigh-out time, the unit identity and configuration and the expected bundle membership; factory receipt records presented, missing and unexpected notes without mutating a station row. Removed: factory issuance, a new number series, trip-level notes and mixed-unit bundles as alternatives. Tests added: T-17 (a mother + child journey produces two independent unit records — two notes, two non-intersecting bundles, two weight sequences, two CCS results, no trip-level figure anywhere), T-18 (a large single-unit vehicle produces exactly one of each, on the same code path and with no trip branch) and T-19 (issuer, namespace, quota snapshot, no renumbering, and a cross-unit note recorded as unexpected). Synchronized end to end: summary, principles (H1, H6, H13, H14), the document-chain table, the model and its cardinalities, identifiers, workflows, lifecycles, exceptions, requirements, events, screens, tests, metrics, migration, readiness, the OQ section and both draft registers, in English and Thai. Only OQ-6, OQ-7 and OQ-8 now gate acceptance; OQ-5 and OQ-9 remain as recorded and are otherwise unchanged. PROP-030 and every applied specification and graph register remain untouched; PROP-033 and EXH-033-A are unmodified and PROP-033's OQ-6 stays open; this draft stays DRAFT and binds nothing.บันทึกและนำคำตัดสินจากหน้างานของเจ้าของผลิตภัณฑ์ที่ยืนยันแล้วสามข้อไปปฏิบัติ ปิด OQ-2, OQ-3 และ OQ-4 OQ-2 — ไม่มี artifact และไม่เคยมีสิ่งที่ต้องเลิกใช้ วิธีปฏิบัติของสถานีขนถ่ายไม่ใช้เหรียญเครน เหรียญ แท็ก NFC หรือ artifact สำหรับการส่งต่อทางกายภาพอื่นใด; สถานีรวมใบชั่งของรถเล็กเข้ากับใบชั่งออกของหน่วยขนถ่ายเองที่สถานี และชุดกระดาษนั้นเดินทางไปโรงงาน สายกระดาษคงไว้ และ Cane สร้างกระจกเงาดิจิทัลที่มีอำนาจไว้ข้าง ๆ: TransferManifest ที่ปิดแล้วทำสารบัญ StationBill ทุกใบในชุดและใบชั่งออกของแต่ละหน่วย ผูกเข้ากับ TransferUnitLoad และ TransferConsignment และบันทึกตันที่ส่งออกซึ่งสถานีรับรอง (FR-H37); การออกเดินทางสร้างระเบียนระหว่างขนส่งในคลาวด์ — ต้นทาง ปลายทาง หน่วยและรถ การอ้างถึงคนขับหรือผู้รับเหมาเท่าที่อนุญาต เวลาออกเดินทาง การอ้างอิงเส้นทาง แหล่งของ ETA และเวลา as-of (FR-H38); โรงงานอ่านตันขาเข้าที่ส่งออกแล้วและ ETA ก่อนการมาถึง (FR-H39) และกระทบยอดน้ำหนักโรงงานกับชุดเอกสารที่ยื่น โดยไม่เขียนข้อเท็จจริงของสถานีทับ (FR-H41) เพิ่มมาด้วย: การเสื่อมอย่างตรงไปตรงมาของ ETA และตำแหน่งที่เก่าค้าง และการ sync ที่ล่าช้า (FR-H40) read model การมองเห็นขาเข้าและหลักฐานเวลาหมุนรถและการใช้ประโยชน์สำหรับการทำโลจิสติกส์ให้เหมาะที่สุดในภายหลัง ซึ่งสัญญาไว้เพียงว่าเป็นการเก็บข้อมูลเท่านั้น (FR-H42, FR-H43) และความเป็นส่วนตัวกับขอบเขต tenantของข้อมูลการขนส่ง (FR-H44) พร้อม event TransferConsignmentInTransit และ ConsignmentETARevised เอาออก: TransferLoadTag และแอตทริบิวต์ของมัน แถววงจรชีวิต event สามรายการ ข้อความเรื่องการนำร่องเลิกใช้เหรียญใน NFR-H6 การทดสอบ artifact ที่หาย และบรรทัดผลกระทบเรื่อง artifact ทั้งหมด OQ-3 — หน่วยกายภาพเป็นความละเอียดเดียวของการวัด การชั่ง เอกสารการส่งมอบ การรวมชุดกระดาษ และการปันส่วน CCS เป็นรายหน่วย TransferUnitLoad เสมอ: หน่วยแม่และหน่วยลูกต่างมีใบของตัวเอง ชุดใบต้นทางของตัวเอง ลำดับการชั่งที่รับรองของตัวเอง และผล CCS ของตัวเอง และรถตัวถังเดี่ยวหรือรถพ่วงเดี่ยวขนาดใหญ่คือหนึ่งหน่วยที่มีอย่างละหนึ่ง TransferConsignment จัดกลุ่มหน่วยเพียงเพื่อการเดินทาง การออกเดินทาง เส้นทาง ETA การมาถึง และการติดตามโลจิสติกส์ และไม่เคยเป็นความละเอียดของใบชั่ง น้ำหนัก การสุ่มตัวอย่าง CCS หรือการกระทบยอด StationBill แต่ละใบผูกกับหน่วยเดียวพอดี; น้ำหนักโรงงานและ CCS ผูกกับหน่วยนั้นและส่งต่อโดยไม่เปลี่ยนค่าไปยังใบของมันเท่านั้น; ผลของแม่กับลูกไม่เคยรวมกัน CCS ไม่เคยถูกหารหรือประมาณ และชุดเอกสารไม่เคยปนข้ามหน่วย (H14, FR-H10, FR-H11, FR-H15) เอาออก: กิ่งการตั้งค่ารายหน่วยเทียบรายเที่ยว และทางเลือกการวัดระดับ consignment ทุกทาง OQ-4 — สถานีเป็นผู้ออกใบของหน่วย สถานีขนถ่ายออกใบชั่งออกของหน่วยขนถ่ายเมื่อหน่วยกายภาพนั้นชั่งออกและออกเดินทาง — หนึ่งใบต่อหนึ่งหน่วยกายภาพพอดี แม่และลูกแยกกัน หน่วยเดี่ยวขนาดใหญ่ได้หนึ่งใบ — ดึงจากช่วงเลขที่ใบชั่งตามกฎหมายเดิมของสถานีที่ออกใบ ใน namespace 7 หลักร่วมที่ใช้จริง และระบุบัญชีโควตาของสถานีที่โรงงาน เพราะสถานีคือต้นทางการส่งมอบ โรงงานไม่เคยออก แทน หรือให้เลขใหม่; โรงงานรับและกระทบยอด ชุดของแต่ละหน่วยมีเฉพาะใบที่จัดสรรให้หน่วยนั้น บวกใบของหน่วยนั้นเอง และชุดของแม่กับของลูกไม่เคยปนกัน TransferTruckNote เก็บเลขที่พิมพ์จริง สถานีที่ออกใบ snapshot โควตาของสถานี เวลาที่ออกใบและชั่งออก อัตลักษณ์และการจัดหน่วย และสมาชิกชุดเอกสารที่คาดว่าจะมี; ใบรับของโรงงานบันทึกใบที่ยื่นมา ขาด และเกินมา โดยไม่เปลี่ยนแถวของสถานี เอาออก: การออกโดยโรงงาน ชุดเลขใหม่ ใบระดับเที่ยว และชุดเอกสารที่ปนข้ามหน่วย ในฐานะทางเลือก เพิ่มการทดสอบ: T-17 (การเดินทางแม่ + ลูกให้ระเบียนรายหน่วยสองชุดที่เป็นอิสระ — สองใบ สองชุดที่ไม่ทับกัน สองลำดับการชั่ง สองผล CCS ไม่มีค่าระดับเที่ยวที่ใดเลย) T-18 (รถหน่วยเดี่ยวขนาดใหญ่ให้อย่างละหนึ่งพอดี บนเส้นทางโค้ดเดียวกันและไม่มีกิ่งเที่ยว) และ T-19 (ผู้ออก namespace snapshot โควตา การไม่ให้เลขใหม่ และใบข้ามหน่วยที่บันทึกว่าเกินมา) ปรับให้สอดคล้องตั้งแต่ต้นจนจบ: สรุป หลักการ (H1, H6, H13, H14) ตารางสายเอกสาร โมเดลและ cardinality ตัวระบุ workflow วงจรชีวิต ข้อยกเว้น ข้อกำหนด event หน้าจอ การทดสอบ ตัววัด การย้ายข้อมูล ความพร้อม ส่วนคำถามเปิด และทะเบียนร่างทั้งสอง ทั้งภาษาอังกฤษและไทย ตอนนี้เหลือ OQ-6, OQ-7 และ OQ-8 ที่กั้นการรับร่าง; OQ-5 และ OQ-9 คงตามที่บันทึกไว้และไม่เปลี่ยนอย่างอื่น PROP-030 และข้อกำหนดกับทะเบียน graph ที่ใช้จริงทุกรายการไม่ถูกแตะ; PROP-033 และ EXH-033-A ไม่ถูกแก้ และ OQ-6 ของ PROP-033 ยังเปิดอยู่; ร่างนี้ยังเป็นฉบับร่างและไม่ผูกพันสิ่งใด |
| 0.5 | 2026-08-20 | Records and implements the confirmed Product Owner decision closing OQ-5 — two separate authoritative business-day references — and rewrites OQ-6 in plain language without changing its substance. The decision. The transfer station's 24:00 operating-day cutoff governs station-owned facts: each StationBill, each per-unit transfer-truck weigh-out note, each digital manifest version and the departure record carry station_operating_day from the station's own clock and cutoff. The sugar factory independently assigns mill_crushing_day_id to factory-owned arrival, certified factory weight, tipping, quality/CCS and reconciliation facts under the factory's own crushing-day rules. A unit may legitimately depart before midnight and arrive after it, so the linked records may carry different dates. Neither side derives, rewrites, normalizes or backdates the other's business day. Cross-tenant reconciliation preserves and displays both dates, with timestamps and timezone, joined through the typed unit/consignment reference; settlement, document indexing and reporting use the owning side's date explicitly rather than a generic delivery_date, which does not exist in this model. Added: principle H15; a Section 1 statement of the two days and a day line in the flow; FR-H45 (which record carries which stamp, stated exhaustively), FR-H46 (no derivation, rewriting, normalisation or backdating in either direction; a delayed-sync record keeps its captured day; refusal day.err.foreign_day_write), FR-H47 (both dates with timestamp, timezone and owner on every cross-tenant reconciliation record and read model, joined by the typed reference and never by matching dates) and FR-H48 (settlement, document indexing and reporting name the owning side's date; refusal recon.err.day_basis_unnamed); station_operating_day on TransferTruckNote and each TransferManifest version, mill_crushing_day_id on each UnitReceipt; day stamps on TransferConsignmentDeparted and ConsignmentReceived; both-day display on the mismatch-resolution and inbound-board screens; a both-days paragraph in Section 10; tests T-20 (delayed sync across the cutoff), T-21 (late arrival two crushing days later), T-22 (day-cutoff boundary on both sides) and T-23 (no generic delivery date anywhere), with T-7 rewritten as the full cross-midnight case; two refusals and four business-day metrics. Synchronized: status and origin rows, the Kind row (one business-day attribute added to an applied entity), the Section 20 entity, requirement (FR-H1…FR-H59) and glossary rows, readiness, and both draft registers. OQ-6 rewritten: the rule, the four triggers, the collision with the reserved 1.0.0 and the three ways out are stated plainly, with option (b) still recommended — no decision changed and no version classified. Still DRAFT: nothing approved, nothing applied, PROP-030 untouched, no applied document or graph register edited. OQ-6, OQ-7 and OQ-8 still gate.บันทึกและนำคำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ที่ปิด OQ-5 มาใช้ — การอ้างอิงวันทำการที่มีอำนาจสองชุดแยกกัน — และเขียน OQ-6 ใหม่ด้วยภาษาที่เข้าใจง่ายโดยไม่เปลี่ยนสาระ คำตัดสิน การตัดวันทำการ 24:00 ของสถานีขนถ่ายกำกับข้อเท็จจริงที่สถานีเป็นเจ้าของ: StationBill แต่ละใบ ใบชั่งออกของรถขนถ่ายรายหน่วยแต่ละใบ ใบกำกับดิจิทัลแต่ละฉบับ และระเบียนการออกเดินทาง พก station_operating_day จากนาฬิกาและการตัดวันของสถานีเอง โรงงานน้ำตาลกำหนด mill_crushing_day_id อย่างเป็นอิสระ ให้การมาถึง น้ำหนักที่โรงงานรับรอง การเท คุณภาพ/CCS และการกระทบยอด ตามกฎวันหีบของโรงงานเอง หน่วยออกเดินทางก่อนเที่ยงคืนและมาถึงหลังเที่ยงคืนได้โดยชอบ ระเบียนที่เชื่อมกันจึงพกวันต่างกันได้ ไม่มีฝ่ายใด derive เขียนทับ ปรับให้เป็นมาตรฐาน หรือย้อนวันทำการของอีกฝ่าย การกระทบยอดข้าม tenant เก็บและแสดงวันทั้งสองพร้อมตราเวลาและเขตเวลา เชื่อมกันผ่านการอ้างอิงหน่วย/consignment ที่มีชนิด; การชำระเงิน การทำสารบัญเอกสาร และการรายงาน ใช้วันของฝ่ายที่เป็นเจ้าของอย่างชัดแจ้ง แทน delivery_date แบบรวม ซึ่งไม่มีอยู่ในโมเดลนี้ เพิ่ม: หลักการ H15; ข้อความเรื่องวันทั้งสองในข้อ 1 และบรรทัดวันในผังการไหล; FR-H45 (ระเบียนใดพกตราใด ระบุครบ) FR-H46 (ห้าม derive เขียนทับ ปรับมาตรฐาน หรือย้อนวันทั้งสองทิศทาง; ระเบียนที่ sync ช้าคงวันที่เก็บ; การปฏิเสธ day.err.foreign_day_write) FR-H47 (ทั้งสองวันพร้อมตราเวลา เขตเวลา และเจ้าของ บนทุกระเบียนและ read model การกระทบยอดข้าม tenant) และ FR-H48 (การชำระเงิน การทำสารบัญเอกสาร และการรายงาน ระบุวันของฝ่ายที่เป็นเจ้าของ; การปฏิเสธ recon.err.day_basis_unnamed); station_operating_day บน TransferTruckNote และ TransferManifest ทุกฉบับ, mill_crushing_day_id บน UnitReceipt แต่ละแถว; ตราวันบน TransferConsignmentDeparted และ ConsignmentReceived; การแสดงวันทั้งสองบนหน้าชี้ขาดความไม่ตรงกันและกระดานขาเข้า; ย่อหน้าเรื่องวันทั้งสองในข้อ 10; การทดสอบ T-20 T-21 T-22 และ T-23 โดยเขียน T-7 ใหม่เป็นกรณีคร่อมเที่ยงคืนเต็ม; การปฏิเสธสองรายการและตัววัดวันทำการสี่ตัว ซิงกับ: แถวสถานะและที่มา แถวประเภท แถว entity ข้อกำหนด (FR-H1…FR-H59) และ glossary ในข้อ 20 ความพร้อม และทะเบียนร่างทั้งสอง เขียน OQ-6 ใหม่: ระบุกฎ ตัวกระตุ้นสี่ข้อ การชนกับ 1.0.0 ที่สงวนไว้ และทางออกสามทางอย่างตรงไปตรงมา โดยยังแนะนำทางเลือก (ข) — ไม่เปลี่ยนคำตัดสินใด และไม่จัดชั้นเวอร์ชัน ยังเป็นฉบับร่าง: ไม่มีสิ่งใดได้รับอนุมัติหรือ apply ไม่แตะ PROP-030 ไม่แก้เอกสารหรือทะเบียนที่ใช้จริงใด OQ-6 OQ-7 และ OQ-8 ยังกั้นอยู่ |
| 0.6 | 2026-08-20 | Records and implements the confirmed Product Owner decision closing OQ-7 — a controlled pre-allocated number block, and no gateway. The decision. No transfer-station gateway, no new centralized allocator and no new high-availability or failover behaviour; the applied offline station posture continues (NFR-57). Cane pre-allocates a controlled block of statutory delivery-note numbers to each transfer station, which issues from it sequentially while offline. Every issued block carries a unique range identifier and epoch with explicit validity and ownership, so an expired, superseded, duplicated, forked or reassigned block cannot be reused; local ordering is monotonic and durable; sync through StationJournal is idempotent; and any duplicate, expired, out-of-range, wrong-station, wrong-epoch or forked-range use is rejected or quarantined for reconciliation with complete audit evidence — never silently renumbered. Certified scale weights stay non-manual (A-10, NFR-33); physical paper stays the fallback established by PROP-030 and NFR-57; a gateway, central allocation, automatic failover or an HA-ladder change is out of scope and is neither assumed nor depended on. Added: principle H8 rewritten and H16 added; Section 11 restated as the decision; FR-H49…FR-H52 and FR-H53 (quarantine resolved by a named act); the StationNumberBlock object with identifiers, invariants and lifecycle, and its range_epoch identifier row; events StationNumberBlockActivated and StationNumberUseQuarantined; the number-block screen; refusals num.err.block_expired, num.err.out_of_range, num.err.wrong_station, num.err.duplicate_number, num.err.forked_range and num.quar.pending_reconciliation; number metrics; and tests T-24 (offline sequential issuance), T-25 (delayed idempotent sync), T-26 (stale or superseded epoch), T-27 (duplicate and forked range) and T-28 (certified-scale capture never manual). Unchanged: every OQ-1…OQ-5 decision; PROP-030 stays applied and untouched; nothing is approved or applied.บันทึกและนำคำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ซึ่งปิด OQ-7 มาใช้ — บล็อกเลขที่จ่ายล่วงหน้าอย่างควบคุม และไม่มี gateway คำตัดสิน ไม่มี gateway ที่สถานีขนถ่าย ไม่มีผู้จ่ายเลขส่วนกลางตัวใหม่ และไม่มีพฤติกรรม high availability หรือการสลับอัตโนมัติใหม่; ท่าที offline ของสถานีที่ใช้จริงดำเนินต่อไป (NFR-57) Cane จ่ายบล็อกเลขที่ใบชั่งตามกฎหมายอย่างควบคุมล่วงหน้าให้สถานีขนถ่ายแต่ละแห่ง ซึ่งออกเลขจากบล็อกนั้นเรียงลำดับขณะ offline บล็อกที่ออกทุกชุดพกตัวระบุช่วงและ epoch ที่ไม่ซ้ำ พร้อมช่วงเวลาใช้ได้และความเป็นเจ้าของอย่างชัดแจ้ง บล็อกที่หมดอายุ ถูกแทนที่ ซ้ำ แยกสาย หรือถูกโอน จึงนำกลับมาใช้ไม่ได้; การจัดลำดับในเครื่องเพิ่มขึ้นทางเดียวและคงทน; การ sync ผ่าน StationJournal กันซ้ำ; และการใช้เลขที่ซ้ำ หมดอายุ นอกช่วง ผิดสถานี ผิด epoch หรือช่วงแยกสาย ถูกปฏิเสธหรือกักไว้เพื่อกระทบยอดพร้อมหลักฐานตรวจสอบครบถ้วน — ไม่เคยให้เลขใหม่อย่างเงียบ ๆ น้ำหนักจากตาชั่งที่รับรองยังคีย์ด้วยมือไม่ได้ (A-10, NFR-33); กระดาษกายภาพยังเป็นทางถอยที่ PROP-030 และ NFR-57 กำหนด; gateway การจ่ายเลขส่วนกลาง การสลับอัตโนมัติ หรือการเปลี่ยนบันได HA อยู่นอกขอบเขต ไม่ถูกสันนิษฐานและไม่ถูกพึ่งพา เพิ่ม: หลักการ H8 เขียนใหม่และเพิ่ม H16; ข้อ 11 ระบุใหม่เป็นคำตัดสิน; FR-H49…FR-H52 และ FR-H53 (การกักที่ชี้ขาดด้วยการกระทำที่ระบุชื่อ); object StationNumberBlock พร้อมตัวระบุ ข้อคงที่ และวงจรชีวิต และแถวตัวระบุ range_epoch; event StationNumberBlockActivated และ StationNumberUseQuarantined; หน้าจอบล็อกเลข; การปฏิเสธ num.err.block_expired num.err.out_of_range num.err.wrong_station num.err.duplicate_number num.err.forked_range และ num.quar.pending_reconciliation; ตัววัดด้านเลข; และการทดสอบ T-24 (การออกเลขเรียงลำดับขณะ offline) T-25 (การ sync ล่าช้าแบบกันซ้ำ) T-26 (epoch เก่าค้างหรือถูกแทนที่) T-27 (เลขซ้ำและช่วงแยกสาย) และ T-28 (การเก็บน้ำหนักจากตาชั่งที่รับรองไม่เคยทำด้วยมือ) ไม่เปลี่ยน: คำตัดสิน OQ-1…OQ-5 ทุกข้อ; PROP-030 ยังใช้จริงและไม่ถูกแตะ; ไม่มีสิ่งใดได้รับอนุมัติหรือ apply |
| 0.7 | 2026-08-20 | Records and implements the confirmed Product Owner decision closing OQ-8 — the seam is the applied X2 network relation. The decision. Use Cane's existing X2 relationship for the transfer-station-to-destination-factory seam, because the station holds its quota account at that factory; no new tenant-sharing mechanism. Ownership is directional — the station tenant owns and publishes its bills, per-unit manifest and bundle membership, dispatched weight, departure, route and ETA; the destination-factory tenant owns and publishes arrival, certified factory weight, tipping, CCS/quality and reconciliation. Each side reads only the minimum shared facts for the specifically referenced unit and consignment and its named destination factory; neither may create, modify, overwrite, normalize, backdate or delete the other's facts. The station declares and dispatches; the named factory may accept, reject or record mismatches without rewriting the station record. One factory's relationship reaches no other factory, sibling factory, unrelated transfer, unrelated bill or unrelated station, and shared read models resolve through typed unit and consignment references, never by matching dates, weights, note numbers or vehicle identity. If review proves X2 legally unfit, the only fallback is a narrowly scoped X1 consent grant as a blocking correction before application — never a fifth mechanism and never a silent broadening. Added: principle H9 rewritten and H17 added; a decision box in Section 12 and new Section 12.3 with a seam permission register of six declared rows; FR-H54…FR-H58, FR-H59 (exception paths) and NFR-H7 (least privilege, purpose limitation, audit history, provenance, correlation, refusal); event TenantSeamAccessRefused with TenantSeamRelationRevoked; the seam-permission and access-audit screen; refusals seam.err.no_relation, seam.err.relation_revoked, seam.err.wrong_factory, seam.err.out_of_scope_record, seam.err.untyped_join and seam.err.foreign_fact_write; the tenantIsolation.seams impact row; seam metrics; and tests T-29 (allowed direction end to end), T-30 (wrong and sibling factory), T-31 (unrelated bill, transfer and station), T-32 (foreign-fact update refused in both directions) and T-33 (revoked or invalid relation). FR-H23 updated: the seam duty is discharged row by row instead of pointing at an open question. Unchanged: OQ-1…OQ-7; nothing approved, nothing applied.บันทึกและนำคำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ซึ่งปิด OQ-8 มาใช้ — seam คือความสัมพันธ์เครือข่าย X2 ที่ใช้จริง คำตัดสิน ใช้ความสัมพันธ์ X2 ที่ Cane มีอยู่แล้วสำหรับ seam จากสถานีขนถ่ายไปยังโรงงานปลายทาง เพราะสถานีถือบัญชีโควตาของตนที่โรงงานนั้น; ไม่มีกลไกแบ่งใช้ข้าม tenant ตัวใหม่ ความเป็นเจ้าของมีทิศทาง — tenant ของสถานีเป็นเจ้าของและเผยแพร่ใบชั่งของตน ใบกำกับรายหน่วยและสมาชิกชุดเอกสาร น้ำหนักที่ส่งออก การออกเดินทาง เส้นทาง และ ETA; tenant ของโรงงานปลายทางเป็นเจ้าของและเผยแพร่การมาถึง น้ำหนักที่โรงงานรับรอง การเท คุณภาพ/CCS และการกระทบยอด แต่ละฝ่ายอ่านเฉพาะข้อเท็จจริงที่แบ่งใช้ขั้นต่ำของหน่วยและ consignment ที่อ้างถึงเจาะจง และโรงงานปลายทางที่ระบุชื่อ; ไม่มีฝ่ายใดสร้าง แก้ เขียนทับ ปรับให้เป็นมาตรฐาน ย้อนวัน หรือลบข้อเท็จจริงของอีกฝ่าย สถานีประกาศและส่งออก; โรงงานที่ระบุชื่อรับ ปฏิเสธ หรือบันทึกความไม่ตรงกันได้ โดยไม่เขียนระเบียนของสถานีทับ ความสัมพันธ์ของโรงงานหนึ่งเอื้อมถึงไม่ได้เลยทั้งโรงงานอื่น โรงงานพี่น้อง การขนถ่ายที่ไม่เกี่ยว ใบที่ไม่เกี่ยว หรือสถานีที่ไม่เกี่ยว และ read model ที่แบ่งใช้ resolve ผ่านการอ้างอิงหน่วยและ consignment ที่มีชนิด ไม่ใช่ด้วยวันที่ น้ำหนัก เลขที่ใบ หรืออัตลักษณ์ของรถที่ตรงกัน หากการทบทวนพิสูจน์ว่า X2 ใช้โดยชอบไม่ได้ ทางถอยเดียวคือ consent grant X1 ที่จำกัดขอบเขตแคบ ในฐานะการแก้ที่กั้นการ apply ก่อน apply — ไม่ใช่กลไกตัวที่ห้าและไม่ใช่การขยายอย่างเงียบ ๆ เพิ่ม: หลักการ H9 เขียนใหม่และเพิ่ม H17; กล่องคำตัดสินในข้อ 12 และ ข้อ 12.3 ใหม่ พร้อมทะเบียนสิทธิ์ที่ seam หกแถวที่ประกาศไว้; FR-H54…FR-H58 FR-H59 (เส้นทางข้อยกเว้น) และ NFR-H7 (สิทธิ์น้อยที่สุด การจำกัดวัตถุประสงค์ ประวัติการตรวจสอบ ที่มา correlation การปฏิเสธ); event TenantSeamAccessRefused พร้อม TenantSeamRelationRevoked; หน้าจอสิทธิ์ที่ seam และการตรวจสอบการเข้าถึง; การปฏิเสธ seam.err.no_relation seam.err.relation_revoked seam.err.wrong_factory seam.err.out_of_scope_record seam.err.untyped_join และ seam.err.foreign_fact_write; แถวผลกระทบ tenantIsolation.seams; ตัววัดด้าน seam; และการทดสอบ T-29 (ทิศทางที่อนุญาตตั้งแต่ต้นจนจบ) T-30 (โรงงานผิดและโรงงานพี่น้อง) T-31 (ใบ การขนถ่าย และสถานีที่ไม่เกี่ยว) T-32 (การแก้ข้อเท็จจริงของอีกฝ่ายถูกปฏิเสธทั้งสองทิศทาง) และ T-33 (ความสัมพันธ์ที่ถูกเพิกถอนหรือไม่สมบูรณ์) ปรับ FR-H23: หน้าที่เรื่อง seam ถูกปลดเปลื้องทีละแถว แทนการชี้ไปที่คำถามที่ยังเปิด ไม่เปลี่ยน: OQ-1…OQ-7; ไม่มีสิ่งใดได้รับอนุมัติ ไม่มีสิ่งใด apply |
| 0.8 | 2026-08-20 | Records and implements the confirmed Product Owner decision closing OQ-9 — the allocation tolerance is exactly 0 kg. The decision. No mill-level value, no station-level override, no effective-dated configurable tolerance and no discretionary exception. Because one small-truck load is lifted once, in full, onto exactly one preselected TransferUnitLoad, the live TransferLoadAllocation.allocated_kg is populated automatically from that StationBill's certified net weight and must equal it exactly; the operator selects the target physical unit only and must never type, estimate, round, divide or adjust a quantity. A mismatch blocks the allocation and manifest completion and raises an auditable exception; recovery is a correction of the authoritative source record or of the certified-scale integration followed by a new or superseding allocation — never tolerance, silent reconciliation, manual override or a second live allocation. The equality absorbs nothing downstream: station-to-factory scale variance, physical transfer loss, moisture change, rounding and certified-scale differences stay visible as separate facts under the existing weight-reconciliation rules and the applied loss policy. Changed and removed: FR-H7 rewritten as the zero-kilogram invariant; the mill-level, effective-dated, versioned over-allocation tolerance is withdrawn together with the tolerance_policy_version attribute and its ownership question; the StationBill invariant tightened from "within tolerance" to an exact equality; FR-H31, T-1, the alloc.err.over_allocated message and the tolerance metric restated. Added: principle H18; FR-H60 (automatic exact population; no manual path on any surface, role or mode; alloc.err.manual_quantity_refused), FR-H61 (mismatch blocks; alloc.err.quantity_mismatch and mft.err.quantity_mismatch_blocking; no role may release the block by acceptance) and FR-H62 (no downstream absorption); the settings impact row that creates no tolerance setting; two metrics; and tests T-34 (automatic exact population), T-35 (no manual entry path anywhere, supervisor included), T-36 (commit refusal on a 1 kg mismatch, unreleasable by acceptance) and T-37 (separation from downstream weight and loss reconciliation). Readiness: only OQ-6 — the breaking-change classification, which is governance — still gates. Unchanged: OQ-1…OQ-8; PROP-030 stays applied and untouched; no applied specification or graph register is modified; nothing is approved or applied.บันทึกและนำคำตัดสินที่ยืนยันของเจ้าของผลิตภัณฑ์ซึ่งปิด OQ-9 มาใช้ — ค่าเผื่อการจัดสรรเป็น 0 กก. พอดี คำตัดสิน ไม่มีค่าระดับโรงงาน ไม่มีการ override ระดับสถานี ไม่มีค่าเผื่อที่ตั้งได้ตามช่วงวัน และไม่มีข้อยกเว้นตามดุลพินิจ เพราะอ้อยของรถเล็กหนึ่งคันถูกยกครั้งเดียว ทั้งคัน ขึ้น TransferUnitLoad ที่เลือกไว้ล่วงหน้าหนึ่งตัวพอดี TransferLoadAllocation.allocated_kg ที่ใช้งานจึงถูกเติมอัตโนมัติจากน้ำหนักสุทธิที่รับรองของ StationBill ใบนั้น และต้องเท่ากันพอดี; ผู้ปฏิบัติงานเลือกหน่วยกายภาพเป้าหมายเท่านั้น และต้องไม่พิมพ์ ประมาณ ปัด หาร หรือปรับปริมาณ ความไม่ตรงกันกั้นการจัดสรรและการปิดใบกำกับ และยกข้อยกเว้นที่ตรวจสอบได้; การกู้คืนคือแก้ระเบียนต้นทางที่มีอำนาจหรือแก้การเชื่อมต่อตาชั่งที่รับรอง แล้วจึงมีการจัดสรรใหม่หรือที่แทนที่ — ไม่ใช่ค่าเผื่อ การกระทบยอดเงียบ ๆ การ override ด้วยมือ หรือการจัดสรรที่ใช้งานรายการที่สอง ความเท่ากันนี้ไม่กลบสิ่งใดปลายทาง: ส่วนต่างของตาชั่งสถานีกับโรงงาน การสูญหายทางกายภาพ ความชื้นที่เปลี่ยน การปัดเศษ และส่วนต่างของตาชั่งที่รับรอง ยังมองเห็นได้เป็นข้อเท็จจริงแยกภายใต้กฎการกระทบยอดน้ำหนักที่มีอยู่และนโยบายการสูญหายที่ใช้จริง เปลี่ยนและเอาออก: FR-H7 เขียนใหม่เป็นข้อคงที่ศูนย์กิโลกรัม; ถอนค่าเผื่อการจัดสรรเกินระดับโรงงานที่มีผลตามช่วงวันและมีเวอร์ชัน พร้อมแอตทริบิวต์ tolerance_policy_version และคำถามเรื่องความเป็นเจ้าของของมัน; ข้อคงที่ของ StationBill รัดจาก "ภายในค่าเผื่อ" เป็นความเท่ากันพอดี; ปรับถ้อยคำ FR-H31 T-1 ข้อความ alloc.err.over_allocated และตัววัดเรื่องค่าเผื่อ เพิ่ม: หลักการ H18; FR-H60 (การเติมอัตโนมัติให้ตรงพอดี; ไม่มีเส้นทางป้อนด้วยมือบนหน้าจอ บทบาท หรือโหมดใด; alloc.err.manual_quantity_refused) FR-H61 (ความไม่ตรงกันกั้นไว้; alloc.err.quantity_mismatch และ mft.err.quantity_mismatch_blocking; ไม่มีบทบาทใดปลดการกั้นด้วยการยอมรับ) และ FR-H62 (ไม่กลบส่วนต่างปลายทาง); แถวผลกระทบด้านค่าตั้งที่ไม่สร้างค่าเผื่อ; ตัววัดสองรายการ; และการทดสอบ T-34 (การเติมอัตโนมัติให้ตรงพอดี) T-35 (ไม่มีเส้นทางป้อนด้วยมือที่ใดเลย รวมบทบาทหัวหน้า) T-36 (การปฏิเสธ commit เมื่อต่างกัน 1 กก. ซึ่งปลดด้วยการยอมรับไม่ได้) และ T-37 (การแยกจากการกระทบยอดน้ำหนักและการสูญหายปลายทาง) ความพร้อม: เหลือเพียง OQ-6 — การจัดชั้นการเปลี่ยนแปลงที่ทำลายความเข้ากันได้ ซึ่งเป็นธรรมาภิบาล — ที่ยังกั้นอยู่ ไม่เปลี่ยน: OQ-1…OQ-8; PROP-030 ยังใช้จริงและไม่ถูกแตะ; ไม่มีเอกสารข้อกำหนดหรือทะเบียนใน graph ที่ใช้จริงถูกแก้; ไม่มีสิ่งใดได้รับอนุมัติหรือ apply |
| 0.9 | 2026-08-20 | Pre-finalization consistency pass over the whole document with all nine decisions in place — four defects repaired, no decision changed and nothing new proposed. The draft was re-read end to end against applied PROP-029 and PROP-030 (FR-175, FR-176, FR-179, NFR-57, WF-70's four steps, WF-71 step 1), the applied gateway posture (FR-134, FR-137, FR-141), the certified-scale rule (A-10, NFR-33), the tenant wall (A-102, NFR-65) and the $versioning clause, and swept for every retracted concept. Repaired: (1) the CCSAttributed event's Thai cell still read "on a unit load (or on a consignment)" — a surviving trip-level alternative that contradicted H14 and its own English cell; it now reads one unit load, never a consignment. (2) The crane/loading operator permission was silent on the quantity; it now states that his only input is the target physical unit and that he may never type, estimate, round, divide or adjust kilograms (FR-H60). (3) The station supervisor permission gained the named act that resolves a quarantined number (FR-H53) and the two explicit refusals — never renumber, and never release a quantity-mismatch block by accepting the difference (FR-H61). (4) The factory weighbridge permission gained its read scope — only the minimum declared seam facts for the referenced unit and consignment bound to it, never a sibling factory's or an unrelated station's (FR-H56, FR-H57). Verified and unchanged: no split, partial or estimated allocation anywhere except in withdrawal statements; no token, coin, tag or artifact lifecycle; no trip-level note, weight, bundle or CCS; no factory-issued or renumbered unit note; no generic delivery_date; no station gateway, allocator or failover; no configurable tolerance and no tolerance_policy_version outside its withdrawal; no operator-entered kilograms; no dual ownership and no undeclared cross-tenant path. Per-unit and per-consignment figures are named separately and never summed (FR-H15); CCS flows unchanged only to the bills allocated to the measured unit (FR-H11, H6); the residual rule and its source are stated (FR-H15, T-16); and the logistics record is evidence collection with no promised optimization algorithm (FR-H42, FR-H43). Still open: OQ-6 only.รอบตรวจความสอดคล้องก่อนปิดร่าง ทั้งฉบับ โดยมีคำตัดสินครบทั้งเก้าข้อแล้ว — ซ่อมข้อบกพร่องสี่จุด ไม่เปลี่ยนคำตัดสินใด และไม่เสนอสิ่งใดใหม่ อ่านร่างตั้งแต่ต้นจนจบเทียบ PROP-029 และ PROP-030 ที่ใช้จริง (FR-175, FR-176, FR-179, NFR-57, สี่ขั้นตอนของ WF-70, ขั้นที่ 1 ของ WF-71) ท่าที gateway ที่ใช้จริง (FR-134, FR-137, FR-141) กฎตาชั่งที่รับรอง (A-10, NFR-33) กำแพง tenant (A-102, NFR-65) และข้อ $versioning และกวาดหาแนวคิดที่ถูกถอนทุกอย่าง ซ่อม: (1) ช่องภาษาไทยของ event CCSAttributed ยังเขียนว่า "บน unit load (หรือบน consignment)" — ทางเลือกระดับเที่ยวที่หลงเหลือ ซึ่งขัดกับ H14 และขัดกับช่องภาษาอังกฤษของตัวเอง; แก้เป็น unit load หนึ่งตัว ไม่เคยบน consignment (2) สิทธิ์ของผู้ปฏิบัติงานเครน/บรรทุก ไม่พูดถึงปริมาณ; ตอนนี้ระบุว่าสิ่งที่เขาป้อนมีอย่างเดียวคือหน่วยกายภาพเป้าหมาย และเขาพิมพ์ ประมาณ ปัด หาร หรือปรับกิโลกรัมไม่ได้เลย (FR-H60) (3) สิทธิ์ของหัวหน้าสถานี เพิ่มการกระทำที่ระบุชื่อซึ่งชี้ขาดเลขที่ถูกกัก (FR-H53) และการปฏิเสธสองข้อ — ไม่ให้เลขใหม่ และไม่ปลดการกั้นเพราะปริมาณไม่ตรงด้วยการยอมรับส่วนต่าง (FR-H61) (4) สิทธิ์ของห้องชั่งโรงงาน เพิ่มขอบเขตการอ่าน — เฉพาะข้อเท็จจริงที่ประกาศไว้ที่ seam ขั้นต่ำของหน่วยและ consignment ที่ผูกกับตน ไม่เคยของโรงงานพี่น้องหรือสถานีที่ไม่เกี่ยว (FR-H56, FR-H57) ตรวจแล้วไม่เปลี่ยน: ไม่มีการจัดสรรแบบแบ่ง บางส่วน หรือประมาณ ที่ใดนอกจากข้อความที่ระบุว่าถอนแล้ว; ไม่มีวงจรชีวิตของเหรียญ แท็ก หรือ artifact; ไม่มีใบ น้ำหนัก ชุดเอกสาร หรือ CCS ระดับเที่ยว; ไม่มีใบของหน่วยที่โรงงานออกหรือให้เลขใหม่; ไม่มี delivery_date แบบรวม; ไม่มี station gateway ผู้จ่ายเลข หรือการสลับอัตโนมัติ; ไม่มีค่าเผื่อที่ตั้งได้ และไม่มี tolerance_policy_version นอกข้อความที่ถอน; ไม่มีกิโลกรัมที่ผู้ปฏิบัติงานป้อน; ไม่มีความเป็นเจ้าของร่วมและไม่มีเส้นทางข้าม tenant ที่ไม่ได้ประกาศ ค่ารายหน่วยและค่ารายเที่ยวถูกตั้งชื่อแยกและไม่เคยบวกกัน (FR-H15); CCS ไหลโดยไม่เปลี่ยนค่าไปยังเฉพาะใบที่จัดสรรบนหน่วยที่วัด (FR-H11, H6); กฎเศษและแหล่งที่มาถูกระบุ (FR-H15, T-16); และระเบียนโลจิสติกส์เป็นการเก็บหลักฐานโดยไม่สัญญาอัลกอริทึมการหาค่าเหมาะสม (FR-H42, FR-H43) ยังเปิดอยู่: OQ-6 เท่านั้น |
| 1.0 | 2026-08-20 | APPROVED. OQ-6 closed by the Product Owner as option (b) — amend the versioning clause in its own change set first, then apply this amendment as a MINOR marked breaking. The same decision instructed that the amendment also COMPLETE the retirement register rather than record its gap as a finding for later. All nine open questions are now closed and no decision of Rev 0.3…Rev 0.9 was reopened.อนุมัติ OQ-6 ปิดโดยเจ้าของผลิตภัณฑ์ด้วยทางเลือก (ข) — แก้ข้อกำหนดเวอร์ชันเป็นชุดของตัวเองก่อน แล้วจึง apply ฉบับนี้เป็น MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ คำตัดสินเดียวกันสั่งให้การแก้ไขนั้นเติมทะเบียนการปลดให้ครบด้วย ไม่ใช่บันทึกช่องว่างเป็นข้อค้นพบไว้ทีหลัง คำถามเปิดทั้งเก้าข้อปิดแล้ว และไม่มีคำตัดสินใดของ Rev 0.3…Rev 0.9 ถูกเปิดใหม่ |
| 1.1 | 2026-08-20 | APPLIED as spec v0.79.0 — a MINOR MARKED BREAKING release under A-120, on top of PROP-102 at v0.78.0. SPLIT APPLICATION: graph, registers and validator applied; document publication and the repointing of applied CraneToken references owed as the second pass of the same change set. Renumbering at application: FR-H1…FR-H62 (no FR-H34) → FR-507…FR-567 and NFR-H1…NFR-H7 → NFR-210…NFR-216; the new station workflow is WF-148. Two apply-pass findings, repaired in the applied text and recorded: F-1 — Section 20’s entities row names six new entities and the design as decided needs EIGHT: it predates OQ-7 (which added StationNumberBlock) and OQ-3 (which made the factory’s per-unit receipt a row of its own, UnitReceipt); both are applied. F-2 — Section 20’s relationships row and the FR-H2 sentence still read “TransferTruckNote is bound 1 — 1 to a consignment”, Rev 0.2 text that OQ-3/OQ-4 superseded and the Rev 0.9 consistency pass missed; the DECIDED rule — one note per PHYSICAL UNIT — is what is applied, as TransferUnitLoad → TransferTruckNote (1 — 1) with TransferConsignment → TransferTruckNote (1 — 1..*). One observation recorded, not repaired: the applied StationBill stores gross/tare/net_weight_t while this amendment specifies integer kilograms; the attribute names are left exactly as applied and the unit question is named for the document pass rather than renamed silently here. Gate (NFR-143 R-GATE), 20 Aug 2026: ALL 33 CHECKS PASS (one skipped by declaration, V-17, while the isolation proof waits for a first deployed service). The first run of the pass reported one failure — V-3, a retired token (Party) inside the live draft PROP-033, inherited text this change set did not write. It was recorded as a dated override during the pass and then discharged: PROP-033’s own consistency pass ran in the same session and repaired the string, so the final gate run is green. An override that can be discharged the same day is not an override worth keeping.APPLIED เป็น spec v0.79.0 — release ระดับ MINOR ที่ทำเครื่องหมายว่าทำลายความเข้ากันได้ ตาม A-120 บนฐานของ PROP-102 ที่ v0.78.0 การ apply แบบแยกสองรอบ: graph ทะเบียน และ validator apply แล้ว; การเผยแพร่ในเอกสารและการชี้การอ้างอิง CraneToken ที่ใช้จริงใหม่ ค้างเป็นรอบที่สองของชุดเดียวกัน การให้เลขใหม่เมื่อ apply: FR-H1…FR-H62 (ไม่มี FR-H34) → FR-507…FR-567 และ NFR-H1…NFR-H7 → NFR-210…NFR-216; workflow ใหม่ของสถานีคือ WF-148 ข้อค้นพบสองข้อจากรอบ apply ซึ่งซ่อมในเนื้อความที่ apply และบันทึกไว้: F-1 — แถว entities ในข้อ 20 ระบุ entity ใหม่หกตัว แต่การออกแบบที่ตัดสินแล้วต้องมีแปดตัว: แถวนั้นเขียนก่อน OQ-7 (ซึ่งเพิ่ม StationNumberBlock) และ OQ-3 (ซึ่งทำให้ใบรับรายหน่วยของโรงงานเป็นแถวของตัวเอง UnitReceipt); ทั้งสอง apply แล้ว F-2 — แถวความสัมพันธ์ในข้อ 20 และประโยคของ FR-H2 ยังอ่านว่า “TransferTruckNote ผูก 1 — 1 กับ consignment” ซึ่งเป็นข้อความ Rev 0.2 ที่ OQ-3/OQ-4 แทนไปแล้วและรอบตรวจ Rev 0.9 พลาดไป; กฎที่ตัดสินแล้ว — หนึ่งใบต่อหน่วยจริงหนึ่งหน่วย — คือสิ่งที่ apply ข้อสังเกตหนึ่งข้อที่บันทึกไว้แต่ไม่ซ่อม: StationBill ที่ใช้จริงเก็บ gross/tare/net_weight_t ขณะที่การแก้ไขนี้ระบุกิโลกรัมจำนวนเต็ม ชื่อแอตทริบิวต์ถูกคงไว้ตามที่ใช้จริง และคำถามเรื่องหน่วยถูกระบุชื่อไว้ให้รอบเอกสาร ไม่ใช่เปลี่ยนชื่ออย่างเงียบ ๆ ที่นี่ ประตูตรวจ (NFR-143 R-GATE) รัน 20 ส.ค. 2569: 33 check ไม่ผ่าน 1 ข้อ OVERRIDE (20 ส.ค. 2569): V-3 รายงานคำที่เลิกใช้หนึ่งคำ (Party) ในร่างที่ยังอยู่ PROP-033 — ข้อความที่สืบทอดมาและชุดนี้ไม่ได้เขียน; ซ่อมในรอบของข้อเสนอนั้นเองในคราวเดียวกัน และข้อค้นพบไม่ผิด |