feat(exit): forgiven exit — open the exit barrier with no payment (barrier:create)
Build & push images / images (push) Successful in 3m23s
Build & push images / images (push) Successful in 3m23s
The owner (or any role the owner grants barrier:create) lets a car out for free.
Exit side only. Every use is signed, attributed, photographed and on the operator's
Z-report; the shift's cash/card/drawer are untouched by construction.
- shared: resource 'barrier' + permission 'barrier:create'; reason codes
exit.forgiven / exit.forgiven.noSession; LedgerPayload.forgoneMinor.
- pay-station: forgive() signs a $0 payment carrying the quoted fee as forgoneMinor
(no tender), refuses a ticket with module charge lines (a wash is not forgiven).
- exit-flow: reopenBarrier(..., { forgiven }) bypasses the walk-back check and stamps
the forgiven reason on the anomaly + vehicle_exit; forgiveExitNoSession() for a car
with no ticket (anomaly under forgiven:<id> + exit snapshot + pulse). Relay driving
shared in #pulseExit.
- route POST /api/barrier/forgive { identity?, note? }: barrier:create + open shift;
the reason is optional (an empty note is signed as '(no reason given)').
- shift-service: forgoneTotalMinor + forgoneCount on the report/summary/signed
shift_z_report (only when > 0), print line 'Dalje të falura (N)'.
- web: 'Forgive & open' in the pay/exit modal for an open transient that owes money;
'Forgive & open exit' on the booth header for the no-ticket case; forgone line on
the X-report, close confirm and history; en/sq. Prints nothing.
- tests: exit-flow, pay-station, shift-service, HTTP route (403 without the
permission, 409 no shift, empty note accepted, ledger sequence, report figures).
- wiki: decisions/forgiven-exit.md (decision + as-built), booth-exit-flow, shift,
index, log.
This commit is contained in:
+23
@@ -3467,3 +3467,26 @@ records one PASS sample per detection (best-framed vehicle of its poll loop →
|
||||
`pass:<id>` + vehicle read with `deviceId`); the Car Wash sampler dedups per camera for 30 s so a
|
||||
ticketed car is not sent twice. Also flushed park-2's 21 backed-off rows (`next_attempt_at = now`)
|
||||
so the reviewer got the day's backlog at once. Pages: [[vision-review-outbox]] §entry stream.
|
||||
|
||||
## [2026-10-08] decision | Forgiven exit (owner opens the exit barrier, no money)
|
||||
|
||||
Discussed, narrowed to EXIT only, pinned as [[forgiven-exit]] (status: decided, not built):
|
||||
zero-amount signed payment carrying `forgoneMinor` as its own Z-report line so the shift's
|
||||
cash/card/drawer are untouched by construction; no-session cars get an anomaly + pulse; admin
|
||||
permission, open shift, mandatory reason, prints nothing, no cap. Entry side rejected.
|
||||
|
||||
## [2026-10-08] ingest | Forgiven exit built (barrier:create)
|
||||
|
||||
"Ok, can we implement that? But the owner can give permission to other operators to do
|
||||
that." Built per [[forgiven-exit]]: new permission `barrier:create` (grantable per role),
|
||||
`PayStation.forgive` ($0 payment carrying `forgoneMinor`, no tender, refuses wash charges),
|
||||
`ExitFlow.reopenBarrier(..., { forgiven })` + `forgiveExitNoSession`, route
|
||||
`POST /api/barrier/forgive`, Z-report `forgoneTotalMinor`/`forgoneCount` + print line, modal
|
||||
"Forgive & open" + booth-header "Forgive & open exit" (no ticket), en/sq. Prints nothing.
|
||||
Pages: [[forgiven-exit]], [[booth-exit-flow]] §Forgiven exit, [[shift]] §Forgiven exits.
|
||||
|
||||
## [2026-10-09] decision | Forgiven exit: reason is optional
|
||||
|
||||
"We don't need to force the user to write a reason." Route no longer 400s without a note; an
|
||||
empty note is signed as "(no reason given)"; modal confirm enabled with an empty box; booth
|
||||
prompt: Cancel aborts, empty proceeds; en/sq texts say optional. [[forgiven-exit]] §5 updated.
|
||||
|
||||
Reference in New Issue
Block a user