Record the owner's acceptance of the job-store plan
The owner accepted every proposed default of docs/plans/job-store.md on 2026-12-01. Its open questions become numbered decisions, without the alternatives, and design.md's Planned next item 1 records them. Decisions 7 and 21 keep the wording that the remote-printers plan had already settled. Each stage now follows its decisions, and the "(assumed)" marks on the plan's own defaults go. The other plans cite job-store decisions in place of questions: printers.md, remote-printers.md, templates.md and ntfy.md. Templates decision 22 now follows job-store decision 10 rather than leaning on an assumed default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a06c12a202
commit
f302b76ef4
6 files changed
+181
-154
No files matched your search
@@ -108,13 +108,13 @@ For stage 4:
|
||||
17. **A remote send and its outcomes.** the sequence under Architecture, A REMOTE SEND. An attempt ends in one of four outcomes:
|
||||
- `done`: written in full.
|
||||
- `nothing`: no byte reached the printer. The agent says so (a refused dial, a printer not ready at the anycast check, a write that took nothing, a go-ahead it never acted on), or the go-ahead never left main's writer queue. It matches printqueue's `NothingWritten`, so retries and failover treat it as today's dial failure.
|
||||
- `partial`: some bytes went out before a write error. It is today's write error, and job-store question 23's retry rule applies.
|
||||
- `partial`: some bytes went out before a write error. It is today's write error, and job-store decision 23's retry rule applies.
|
||||
- `unknown`: the go-ahead was written and no outcome came back. Main never sends that delivery again. It waits for `result` on the link that carried the go-ahead. If that link drops, it asks the agent's journal on the next link, within the delivery's 2-minute bound (decision 13 says when `none` counts). With no answer, the delivery ends `uncertain`, and one WARN line names it.
|
||||
- An outcome is a string. A missing, empty or unknown one reads as `unknown`, never `nothing`, and `none` is a value of its own, sent only in reply to `query`.
|
||||
- Main waits for `opened` up to the dial timeout plus 10 s. At main's shutdown, an attempt before its `sending` mark sends `Abort` and stays queued; one past its mark gets its `Go` and waits for `result` up to the write timeout plus 10 s, then ends `uncertain`.
|
||||
- This adds one path that writes `uncertain` during a run; job-store writes it only at start. A lost lazy write of it still reads `uncertain` after a restart, so it needs no sync.
|
||||
- Trade-off: a receipt that printed but whose answer was lost needs a person to check the paper.
|
||||
18. **Deliveries while an agent is offline.** a lane whose printer's agent is offline takes nothing; its deliveries wait queued, in order, and are taken once the agent is back, however long that is, as job-store question 6 has waiting jobs print however old.
|
||||
18. **Deliveries while an agent is offline.** a lane whose printer's agent is offline takes nothing; its deliveries wait queued, in order, and are taken once the agent is back, however long that is, as job-store decision 6 has waiting jobs print however old.
|
||||
- Its printers are marked down while the agent is offline, and so is a printer the agent does not list, for as long as it does not (printers question 24). Anycast passes over them and moves the anycast deliveries waiting on those lanes on.
|
||||
- The wait never holds an anycast delivery. A lane whose agent is offline counts an anycast delivery it would take as failed before any byte, so it moves on, even when every printer of its list is marked down.
|
||||
- `queue.size` still bounds each lane, so `Submit` answers `queue_full` once a lane is full. With the memory store, the waiting deliveries are lost at main's restart, as today.
|
||||
@@ -142,8 +142,8 @@ For stage 5:
|
||||
|
||||
For stage 6, later:
|
||||
|
||||
24. **Epson's acknowledgement at the agent** (job-store question 21). built only with job-store phase 5, and for remote printers at the agent, which owns the connection. The agent appends `GS ( H 48 <id>` after the bytes, waits for the matching reply and answers `done` with `confirmed`. A capability in `Hello` says it can. Its IDs are counted per printer by the agent; they never cross the link.
|
||||
- Trade-off: as job-store question 21: the printer's connection stays open until the receipt is out, and a missed reply is still `unknown`.
|
||||
24. **Epson's acknowledgement at the agent** (job-store decision 21). built only with job-store phase 5, and for remote printers at the agent, which owns the connection. The agent appends `GS ( H 48 <id>` after the bytes, waits for the matching reply and answers `done` with `confirmed`. A capability in `Hello` says it can. Its IDs are counted per printer by the agent; they never cross the link.
|
||||
- Trade-off: as job-store decision 21: the printer's connection stays open until the receipt is out, and a missed reply is still `unknown`.
|
||||
|
||||
## Investigation findings
|
||||
|
||||
|
||||
Reference in new issue
Block a user