The automatic refresh already handles a PO that moved on; when the
banner still shows, only Try matching again helps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mon-Thu 07:00-16:30, Friday 07:00-15:00, last Friday of the month
07:00-12:00 (weekends use the Mon-Thu bands). Each shift end has a
10-minute band either side; arrivals up to 07:10 pay from 07:00.
Lunch now phases in from 5h to 5h30 instead of a 30-minute cliff, so
a normal day pays 9 / 7.5 / 5 hours.
The worker calendar judges each day against that day's expected hours,
so a normal Friday is green, and the worker page shows the schedule.
The recalc script recognises rows already rewritten by the first rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A scan in up to 07:10 pays from 07:00; a scan out between 16:20 and
16:40 pays to 16:30; a session over five hours loses a 30-minute lunch.
A normal day is therefore exactly 9 hours (green on the calendar and
matrix); late arrivals, early exits and overtime use the real times.
Applied on clock-out, in missed-scan corrections and their preview.
The calendar keeps the raw scan times and labels hours "Paid hours".
Includes a dry-run-first script to recalculate existing QR entries; it
only rewrites rows still equal to their raw scan total.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- inbox_board: while a site question is open, blocking lists only that
question (the reader's older doubts were misleading Foreman, e.g. the
corrected FH Chamberlain order). next now points agents at
prepare_delivery, and at the site manager for Ready-to-post slips;
agents no longer book.
- Foreman skill: describe parked documents only from the open question;
VERDICT counts only what is new this run (still-waiting items become a
count line); quote refusals and their hint instead of guessing a cause;
candidate_closed on regrouping means a document in the batch is set
aside or posted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Foreman (MiniMax) works the delivery-note inbox: checks every slip
against its photo and PO, fixes misreads, groups kits, prepares clean
slips with prepare_delivery (Ready to post, never booked) and asks the
site about the rest. The review skill spot-checks his work, moves
answered site questions on to Ready to post and applies site-confirmed
receipt corrections. The site manager pulls the trigger.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agents can now save a whole receiving plan (lines by number, kits, NIL
auto-close) and leave the slip in Ready to post; the site manager checks
the totals and presses Confirm delivery, which posts exactly what was
saved. Quantities over the PO need acceptExcess (site-approved) and a
slip with an open site question is refused.
Confirm delivery on the web now refreshes a slip whose match went stale
because another slip on the same PO was booked, re-applying the saved
decisions instead of sending the user back to an AI re-match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeping the old value when the quantity or line changes would book, say,
162.5 m at the value of 65 m. Adds hints for both value refusals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The joined 'DOC|ALT' string never matched the evidence text, so a slip
with alternate numbers counted its own numbers as a second document and
stayed held in grouping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When nobody scanned a worker in, the evening scan was stored as the IN
and the correction dialog only allowed a leaving time after it. The
dialog now shows an editable arrival and leaving time, with a one-click
"this scan was actually the clock-out" swap. Late scans (16:00+) get a
hint on the card. A corrected arrival is stored as the optional
actual_in_at on the correction row (migration script included, not
applied); the original QR scan is untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both are page reads; two in one tick can pass the 300s ceiling and get a
batch reclaimed and read twice. The job waits for the next tick instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Documents with an open site question move out of Identify/Match into
their own column, and each card shows the question itself in an amber
box instead of a generic badge, so the site sees what it has to answer
without opening the slip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
foreman/ is a Claude Code mod (job runner + hooks) that imports the
claude-code runtime types, so tsc over the app failed on it. Excluding
it from tsconfig keeps the Next build green.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The inbox list took its reason from documentProgress, which listed the
model's old identity doubts ("Is MEGCPO9376 correct?", "No matching PO
found") ahead of the question an agent asked the site. While a site
question is open it is now the only reason, labelled 'Waiting for site'
with the action 'Answer the site question'; once answered the normal
reasons return.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add turnover, project, retention, and year comparison pages from the supplied workbook, protected by named admin access. Include the local chart gallery, grouped monthly hover, smooth comparison toggle, and monthly income minus cost series.
Require named PocketBase sign-in in every environment and remove the shared PIN bypass. Update access documentation and business-route test fixtures.
PocketBase requires it on mcp_operations; the in-memory test database
did not, so post_delivery failed on live data with 'Failed to create record'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page was read with a fields list that dropped collectionId and
collectionName, so the PocketBase file URL came back empty on live data
(tests stubbed the URL helper). Found in the acceptance run on PO 9412.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A re-run replaced the candidate's checks wholesale, which would drop the
agent's question and could mark the slip ready to post unanswered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The grouping preview zoomed by widening the image inside a scroll box with
no way to move it on a Mac (hidden horizontal scrollbar). Adds a shared
mouse drag-to-pan hook, a grab cursor and a one-line hint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>