/api/operator/me/password left every other session of the account valid for
up to 8 h, and a wrong current password was never counted, so a session left
open could guess it. Now, as a customer's change already does: the throttle
and login_failed of the sign-in, and the other sessions of the account end.
users_test proves both; the Usuários admin edit already ended sessions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_storage_steady.py covers steady() and the storage's parts, size
and complete (a 5xx retried after 1, 2, 3 s; a 4xx and other errors at once;
NoSuchUpload on an object that exists is done). tests/upload_retry_test.mjs
covers closing the upload in web/upload.js (again after 3 s and 6 s; only
the last attempt reported; a 409 at once; an abort gives the upload back).
Both fail with the retry turned off. steady now looks time.sleep up when it
waits, so a patch of it reaches the storage methods.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R2 answered ListParts with a 500 twice, 10 s apart, while closing an upload.
The storage calls an upload waits on (list parts, complete, head) try again on
a 5xx three more times over about 6 s; a 4xx and a timeout go back at once.
A complete R2 had in fact done answers NoSuchUpload on the retry: the object
is there, so it counts as done. The browser asks to close the upload again
after 3 s and 6 s on a server failure; only the last one is reported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
saveFinalFiles and pullMove answer a stale-version 409 by reloading and
trying once more, but api() had already reported it. The first call now
expects the 409; one they cannot answer is still reported (reportRefusal),
and any other status is reported by api() as before, once.
Past a month the chart's gap is 1 px (90 bars were under 1 px each on a
375 px phone), and the last date ends at the chart's edge instead of being cut.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
statsPeriod redrew the period bar with replaceChildren, which dropped an open
calendar. On a phone the numbers' reply often lands after the tap, so the
calendar opened and vanished at once: "Escolher datas" seemed to do nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tiny refused #196 (card) and #198 (Pix) with "Meio de pagamento não
encontrado" on parcelas[0].meioPagamento.id. The payload is now the same as
before 2026-12-01's Tiny change; both orders go through on their next try.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The board carries paid_with, the method of the quote's approved payment
attempt (the one Tiny is told about). Until now a paid Site order only said
"pago em", so a Tiny refusal (DTF-API-C, #196) could not be traced to Pix
or card from the Kanban.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tiny refused a paid Site order with "Forma de recebimento não está
habilitada" after card moved to 919478945. The order waits in the outbox
and goes through on its next try. The MERCADO PAGO account stays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page animation used fill-mode both, so each page kept transform:
matrix(1,0,0,1,0,0) after it faded in. A transform makes the page the
containing block of position:fixed children, so the phone calendar
(fixed, bottom 80px) sat at the bottom of the 2,700 px Números page
instead of the screen. backwards keeps the same entrance without it.
The quote review sheet on the phone had the same trap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pix and card paid on the Site carry meioPagamento 977344550 on their
installment; an order the team registered as paid outside, the customer's
credit and the boleto keep theirs. Cartão de crédito is 919478945 (the
977460722 read from a store order on 19/10 was not it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The hot folder takes a PNG in about 10 s and the Hoson queues it, so the
last part taken is not the one being ripped. The dialog lists the parts
(already taken or still in the folder) and asks where to resume once any
was taken; the new round starts there, and the parts from there on that
the old machine took are named as Hoson .prt files to delete, in the
toast, the card and the history. The film card no longer claims which part
prints: '2/3 partes com a máquina'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Page.reload returns before the old page is gone; a check sent in that gap
got 'Inspected target navigated or closed'. waitFor retries only that
kind of error; any other still fails the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A proof card bills 0 m: the board now carries proof_film_cm per item (the
same measure as Números), the card reads 'prova · 0,15 m', the column
totals count it, and the drawer says 'prova sem custo', the proof's film
and 'Folha do pedido'. The [data-tip] tooltips were CSS boxes inside the
card, cut by the column and over the card below; one box fixed to the
window now sits under the element, or over it near the bottom, inside the
screen. 'Sua conta ou sessão mudou' is guidance shown as a warning, so it
stays out of Sentry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found checking D7/B9 in the browser: the vertical floating player could
reach 70% of the screen over the buy box (now 150 px wide, at most 44vh);
the saved sheet's picture was cropped. The browser test now checks that a
home card plays when on screen and pauses off it (its Chrome decodes no
video, so it records the play and pause the page asks for).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
site_videos.products (the old product column is kept and copied); one
floating video per product checks the overlap and names it. The floating
player starts muted, with a sound button that says its state and an
expand button to the large player. A vertical video stands upright on
the floating and the large player. The home's videos move to its foot as
muted looping cards that play only on screen, not at all with reduced
motion, and open the large player.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The simulations went through encaixar, so the browser test, which watches
the drawn packing, sometimes read a simulated one (failed 1 in 3), and
each simulation built the preview's masks: 0,5 s per run with 143 pieces.
alturaSimulada applies the same rule (same heights in every mode, checked)
in 155 ms; the test wrapper also passes the new mode through.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C2: encaixar takes an optional mode ('linhas', 'forma'; the Montar keeps
the automatic one); the buy box shows both billed lengths and the
difference in cm and R$ when they differ, marking the packing on screen.
C1: up to 5 arts are tried with up to 30 more copies, by binary search
with the packing in use, and up to 3 '+k file' buttons add the copies
that keep the billed metres. Both run after the order check, never
before it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found re-reading A1-D6 with the interaction contracts: Adicionar merged
into a pasted line and printed its reference; a preview left open after
the card moved or was cancelled kept its flag and the 3 h reminder; the
reject reason said it stays in the history, which only listed moves; the
"com prova" summary (B3) was missing in Minha conta; removing every
line kept the pasted list's batch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One line per item, code size quantity reference. Lines with errors are
listed with the line and the reason and mounted only after "Montar sem
essas N linhas". A reference is drawn 3 mm high right under the stamp,
with 1 cm to the next piece on that side; the list is always Interno and
the Prumo report names the skipped lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/operator/orders/{id}/redesign-preview (sent, approved,
rejected), redesign_previews table, previews on every board order, and
assign_late leaves out the time a preview waited for the customer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nginx allows 20 r/s with a burst of 100; after the upload starts before
it, a fast runner met nginx's 429 instead of the API's Retry-After 15.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
B6: "12x nome.png" enters with 12 copies, art or ready sheet (up to 200;
"1920x1080.png" is not read as copies). B3: the DPI refusal speaks per
art, the cart and payment summaries list "Prova antes de imprimir" when
chosen, and below 10 m the proof box stays, closed, saying the rule.
D6: the Ajuste Fino refusal no longer shows the grade number (Site and
server); the unused motivoNota helper is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DROPSTAR · Pedido DTF-7 · <cliente> · Item 1/2 · data · metros · N peças
(loose arts) or N cópias (a ready sheet repeated). The name is tidied to
cp1252 and cut at 24 characters; the proof footer is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Site reads the pHYs chunk of a loose art; at 200 DPI or more the
size in the file is the default width and a Manter button sits before
the table sizes (also when the art is turned 90 degrees). The source
carries saved_width_cm and saved_dpi, used only by the Prumo report.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DPI of a stored PDF is read in a subprocess killed after
PDF_MAX_SECONDS + 5; inside it, only image draws count toward
PDF_MAX_DRAWS (heavy vector art still reads), content streams are parsed
once per object, and the deadline is checked every 1000 operators. A scan
busy for more than SCAN_STUCK_SECONDS marks the scanner unhealthy and logs
one error to Sentry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Order and account e-mails say who acts ("Conferimos a arte"), the test
e-mail is one sentence, the machine alerts and Prumo lines use a colon,
and the default video title matches the Site.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Order card, folders, Montar and Integrations follow the copy guide: the
folders card says where each file stays instead of walking through every
move, the cancel, correction and regenerate dialogs are one fact and the
next step, no rhetorical questions ("Conferiu?", "A arte chegou boa?")
and no "Agora é só".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Help, editor notices, cart, checkout and Minha conta rewritten by the
approved copy guide: no "a gente", no em dashes, no rhetorical questions,
who acts is clear, at most two sentences per notice. The proof text says
30 cm (was 15 cm) and the billed length no longer says it only rounds up
(8 mm grace). Buttons follow the redesign: "Imprimir assim mesmo",
"Subir em dois arquivos".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Of about 60 Sentry issues in two weeks, five were bugs: the rest were the
system working (a rule, a check, a limit explained to the person) or a
network drop. A 4xx with a sentence for the person is now a warning on the
Kanban, tagged recusa, still counted per kind, since a refusal the team keeps
meeting says a screen confuses; the Site sends none, the customer reads it.
A 4xx with a list of fields (what the page sent was wrong) and a 5xx stay
errors, as do JavaScript errors and the red messages that do not come from a
refusal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 14: switching products cancelled the files being sent, but each one still
waiting for a place opened its reservation when it got one, and none gave
it back: 27 in ten seconds filled the cap of 30 (29/11). A cancelled upload
now never starts, and one cancelled after starting gives its place back.
- 22: a ready sheet kept in the cart from before the 8 mm says so on its row
and holds Pagar, instead of a refusal after the whole checkout.
- 24: "Preencha o endereço de entrega" is a warning, not an error.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Marcus: a length that passes a 10 cm step by up to 8 mm is billed at that
step; by more, at the next. One rule for every product, on the server
(pricing.billed_length), the Site (arredonda10) and the Montador's estimate;
the print file accepts the 8 mm past the billed length instead of sending
the sheet to hand preparation.
The Site showed four numbers that did not add up (0,88 m, 4,42 m, 4,45 m,
4,50 m), and the team read 4,40 m. The copies line now gives the whole
sum ("5 × 88,4 cm + 4 espaços de 8 mm = 445,2 cm"), and the buy box says
why the billed metres are what they are, as a benefit ("os 4 mm a mais
ficam por nossa conta"). The buy box's parts note said 20 m; parts are
10 m since 18/11.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The folders download a whole list of files one after another, from links
made when the list was asked for, valid 5 minutes. With films of 10 m the
last ones began after that and failed with "erro 403": a red error, a
Sentry report, and only the next pass got new links. The folders' and hot
folder's links now last an hour (customer downloads keep 5 minutes), and an
expired link waits for the next pass like a dropped network.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Kanban asks the server about at most 1000 orders a pass; an order left
out had no state in the answer and was taken for deleted, so its files left
the folders although it was still in Correção or Revisão. Orders still in
the flow are asked first, then those in Finalizado, and a file whose order
was not asked this pass stays as it is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since 4a1994b the production worker uses the real Tiny or holds the sends,
never the simulator; the marker no longer named something true, and the
fast checks failed on it (validate job).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Deleting an order removed its Tiny events, delivered or not: cancelled
and deleted before the worker sent it (or with Tiny down), the order stayed
open in Tiny. A real order's events now stay; only a test order's go.
- With TINY_ADAPTER missing from the production stack, the simulator marked
paid orders delivered with made-up receipts, and they had to be queued
again by hand. Production now holds the sends (the outbox retries and
Sentry is told); with the real Tiny back, the worker sends them at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The price came from the layout the browser sent, checked only in part:
- Pieces on top of each other passed: 100 copies stacked in one place bill
10 cm and print over each other. The layout validator now refuses any
overlap.
- A file laid out at proportions it does not have (a 5 m sheet sent as
10 cm) was found only by the print file, after payment. The quote now
checks each raster file's proportions from the bytes it already reads.
- The empty strips the Site cuts from a ready sheet were cut on its word.
The print file now reads them: a strip with ink sends the item to hand
preparation with the reason, instead of printing the art cut off.
Test fixtures that laid real images out at impossible proportions now keep
the image's own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A PIX paid in its last minutes after the quote's 24 h, or a card approved
after Mercado Pago's review, was refused ("quote expired before payment"):
money in, no order. A payment whose attempt began while the quote was
valid is now honoured; a card in review keeps its quote, files and the
reconciliation for 72 h.
- A second approved payment of the same cart (a PIX and a card) was taken
for a re-sent approval and logged only. It is now listed on the Kanban as
attention, with the order, for a refund.
- A coupon's uses were counted only when the cart was made, so carts made
before it ran out, or before it was paused or ended, still paid with the
discount. The intent checks it again and asks for a new cart without it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cancelling an order left its proof card not yet answered on the board,
where it could still be pulled and printed. It is cancelled with it.
- The hot folder path was the machine's current name, so renaming a machine
sent its next files to a folder FlexiPRINT does not watch. Each machine now
keeps the folder it was created with (migration fills it with today's
names); no other machine may take that name, and the machine form shows
the folder.
- A final set with only some parts of a film was accepted, the #130 failure
through the manual path. The server now refuses it and names the parts
missing.
- The proof card note says up to 30 cm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stack without PRINT_PART_CM (the local one and CI) cut films in 15 m parts,
4,8 GB decoded, which FlexiPRINT refuses (Marcus, 2026-11-18). The comments
that still said 15 m now say a part.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PROOF_SHEET_CM (15) was added to a total in metres, so every proof counted
15 m of film: one proof was enough for the 10 m cleaning alert, and Números
overstated production. A proof now counts the film it took, the finest
stroke's window and the colour samples with the clear film between them (up
to 30 cm, Marcus, 2026-11-26), read from its print file; 15 cm for a sheet
made before the samples. One function serves the machine log and Números.
The Kanban's proof rule says 30 cm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every item ticked was saved as NULL, which also means "not chosen", so the
pass to the queue replaced it with the suggestion and only the changed
item went to the machine; the panel showed the suggestion again. The
choice is now the whole list.
- Undoing a pass to Revisão (back to Imprimindo) started a new round with
every file, so FlexiPRINT printed the order again. It now writes back only
what Flexi had not taken, and the reprint choice of that pass returns. A
pass undone this way no longer counts its film twice in the machine's
metres (machine log and Números).
- An order entering the queue by Prova OK never sent Tiny's "Preparando
envio". The stage's Tiny event is now one function, used by the move and
by the Prova OK.
Integration test follows the real moves: suggestion, all items kept, pull
onto a machine, two undone passes to Revisão, metres counted once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seller cannot be set after the order is made (order 151250), so a server
error while reading the contact now waits for the outbox's next try, as a
429 already did. A reading Tiny refuses for good still lets the order go,
and now reaches Sentry instead of a warning no one sees.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>