Circuit record
The netlist is the rule
LotGate v1 is NAND and LATCH only. Constants 0 and 1 exist as signals 0 and 1 and are left unconnected: this gate has nothing to force and nothing to clear. Other circuits may REF it after tape-out. This dock does not fabricate it.
- circuit id
- LotGate-v1
- nIn / nOut
- 5 / 3
- NAND / LATCH
- 20 / 2
- bytes
- 148
sha256 …
Combinational core
all_ok is seal_ok AND temp_ok AND time_ok AND chain_ok AND NOT recall. One of the 32 input words passes. The latches are not part of this table.
| seal | temp | time | chain | recall | all_ok |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 |
| 0 | 0 | 1 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 1 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | 0 |
Sequential rule
Accepted sets on a beat only when seal, temperature, time, and custody all pass, recall is 0, and rejected is still 0. The latch ORs its own output into the next bit, so once it is 1 it stays 1. Rejected sets when any guard fails or recall is 1, and ORs its own output the same way. Accepted cannot set on a beat where rejected is already 1. A later good seal, a later good temperature, or any other repaired bit cannot clear rejected. There is no reset pin and no admin pin. If recall arrives after an accept, rejected sets and accepted stays 1. Hold is not stored: it is 1 only while both latches are still 0, which is a fresh lot before the first deciding beat. Every input word decides, so the first beat always leaves hold at 0.
- out0 accepted · latch 0. Signal 26. Latch 0, accepted_q. The pin is an identity copy so the latch can sit before the gates that read it.
- out1 rejected · latch 1. Signal 27. Latch 1, rejected_q. Same identity copy.
- out2 hold. Signal 28. Combinational. NOT accepted AND NOT rejected. Not a latch, and not clearable because it is not stored.
Gate diagram
Same gates as the live drawing, listed in signal order. A NAND reads earlier signals only. Each LATCH names the later wire it captures on the next beat.
0 const 0 1 const 1 2 seal_ok input 3 temp_ok input 4 time_ok input 5 chain_ok input 6 recall input 1 means kill 7 NAND seal_ok, temp_ok -> nand_st 8 NAND nand_st, nand_st -> seal_temp 9 NAND time_ok, chain_ok -> nand_tc 10 NAND nand_tc, nand_tc -> time_chain 11 NAND seal_temp, time_chain -> nand_g4 12 NAND nand_g4, nand_g4 -> guards 13 NAND recall, recall -> not_recall 14 NAND guards, not_recall -> nand_all 15 NAND nand_all, nand_all -> all_ok 16 LATCH accepted_d -> accepted_q 17 LATCH rejected_d -> rejected_q 18 NAND rejected_q, rejected_q -> not_rejected 19 NAND all_ok, not_rejected -> nand_arm 20 NAND nand_arm, nand_arm -> arm 21 NAND accepted_q, accepted_q -> not_accepted 22 NAND arm, arm -> not_arm 23 NAND not_accepted, not_arm -> accepted_d 24 NAND not_rejected, all_ok -> rejected_d 25 NAND not_accepted, not_rejected -> not_hold 26 NAND not_accepted, not_accepted -> out_accepted 27 NAND not_rejected, not_rejected -> out_rejected 28 NAND not_hold, not_hold -> out_hold outputs = last 3 signals = out_accepted, out_rejected, out_hold latches = accepted_q (output 0), rejected_q (output 1) hold is not a latch
TapeOut netlist
Opcode 00 is NAND, then two 24-bit signal ids, most-significant byte first. Opcode 01 is LATCH, then one 24-bit id. Signal 0 is const 0, signal 1 is const 1, then the five inputs, then gate outputs in order. nIn = 5. nOut = 3. Outputs that are latches: accepted (latch 0, signal 16) and rejected (latch 1, signal 17). Hold is not a latch. Input and output vectors on a future beat are a different convention: bits packed little-endian, seal_ok in bit 0.
7 00 00 00 02 00 00 03 NAND seal_ok temp_ok ; NOT (seal_ok AND temp_ok) 8 00 00 00 07 00 00 07 NAND nand_st nand_st ; seal_ok AND temp_ok 9 00 00 00 04 00 00 05 NAND time_ok chain_ok ; NOT (time_ok AND chain_ok) 10 00 00 00 09 00 00 09 NAND nand_tc nand_tc ; time_ok AND chain_ok 11 00 00 00 08 00 00 0a NAND seal_temp time_chain ; NOT (seal AND temp AND time AND chain) 12 00 00 00 0b 00 00 0b NAND nand_g4 nand_g4 ; seal_ok AND temp_ok AND time_ok AND chain_ok 13 00 00 00 06 00 00 06 NAND recall recall ; NOT recall 14 00 00 00 0c 00 00 0d NAND guards not_recall ; NOT (guards AND NOT recall) 15 00 00 00 0e 00 00 0e NAND nand_all nand_all ; seal AND temp AND time AND chain AND NOT recall 16 01 00 00 17 LATCH accepted_d ; Sticky accept. Updates next beat from accepted_d. Sets only if all_ok and rejected is still 0. No clear. 17 01 00 00 18 LATCH rejected_d ; Sticky reject. Updates next beat from rejected_d. Sets if any guard fails or recall is 1. Stays 1. No reset. 18 00 00 00 11 00 00 11 NAND rejected_q rejected_q ; NOT rejected 19 00 00 00 0f 00 00 12 NAND all_ok not_rejected ; NOT (all_ok AND NOT rejected) 20 00 00 00 13 00 00 13 NAND nand_arm nand_arm ; all_ok AND rejected is still 0 — the only way to set accept 21 00 00 00 10 00 00 10 NAND accepted_q accepted_q ; NOT accepted 22 00 00 00 14 00 00 14 NAND arm arm ; NOT arm 23 00 00 00 15 00 00 16 NAND not_accepted not_arm ; accepted OR arm — feeds the accept latch, so a 1 can never fall 24 00 00 00 12 00 00 0f NAND not_rejected all_ok ; rejected OR NOT all_ok — feeds the reject latch, so a 1 can never fall 25 00 00 00 15 00 00 12 NAND not_accepted not_rejected ; accepted OR rejected 26 00 00 00 15 00 00 15 NAND not_accepted not_accepted ; Output 0. Identity copy of the accepted latch so it sits in the output suffix 27 00 00 00 12 00 00 12 NAND not_rejected not_rejected ; Output 1. Identity copy of the rejected latch 28 00 00 00 19 00 00 19 NAND not_hold not_hold ; Output 2. NOT accepted AND NOT rejected. Not a latch
000000020000030000000700000700000004000005000000090000090000000800000a0000000b00000b000000060000060000000c00000d0000000e00000e0100001701000018000000110000110000000f000012000000130000130000001000001000000014000014000000150000160000001200000f00000015000012000000150000150000001200001200000019000019
Beat trace
Fresh latches are accepted 0, rejected 0, hold 1. Each row is the lot after that beat. Clocking a trace onto its lot id runs these input words through the same netlist. If that lot already has beats, the button only opens it. It does not clear them.
Fresh lot, every guard passes
One beat releases the lot. Hold falls because the latches have decided.
- init – – – – – → accepted 0 rejected 0 hold 1 · Waiting
- 1 1 1 1 1 0 → accepted 1 rejected 0 hold 0 · Accept
Temperature fail, then reject
temp_ok is 0. The first beat destroys the lot.
- init – – – – – → accepted 0 rejected 0 hold 1 · Waiting
- 1 1 0 1 1 0 → accepted 0 rejected 1 hold 0 · Destroy
Recall after accept does not clear accepted
The kill bit sets rejected. The accepted latch stays 1.
- init – – – – – → accepted 0 rejected 0 hold 1 · Waiting
- 1 1 1 1 1 0 → accepted 1 rejected 0 hold 0 · Accept
- 2 1 1 1 1 1 → accepted 1 rejected 1 hold 0 · Destroy
A late intact seal does not clear rejected
Repairing the logger after the beat does nothing. There is no reset.
- init – – – – – → accepted 0 rejected 0 hold 1 · Waiting
- 1 0 1 1 1 0 → accepted 0 rejected 1 hold 0 · Destroy
- 2 1 1 1 1 0 → accepted 0 rejected 1 hold 0 · Destroy
What a logger signs later
The temperature limit and the time allowance stay in the logger. It signs five bits for this lot id, not a degree and not a threshold. The dock checks that signature and clocks the bits. It does not reinterpret them. Submit beat is unwired, and this page does not connect a wallet.
What must not be added
- Editable temperature or time limits, on the dock or in the circuit.
- A reset pin, an admin pin, or any way to clear rejected.
- A shipper override, a nurse override, or a release-anyway input.
Out of scope for v1: an on-circuit temperature counter, payments, token minting, a multi-party dispute, and a physical lock driver.