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>
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>
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>
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>
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>
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>
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>
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>
- 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>
Kept until Finalizado, an old choice would leave out an item corrected after
it (an order back from Revisão, or a second correction). It is now cleared
when the pass to Revisão records it, when a final changes and when the files
are generated again; the next entry to the queue works it out anew. An
integration test follows the whole reprint: first print, one item corrected,
the queue, the hot folder with that item only, Revisão.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The hot folder and the folders' list ordered the parts by name, so a film of
ten parts or more (#81, 91,5 m) would send p10 second. They now follow the
part number. Checked on Postgres 17 with an 11-part film.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The layout sees a ready sheet as one piece, so a part was cut at its length,
through the artwork. Where no gap between pieces is near the limit, the
film is read there: the cut falls in the middle of the nearest clear band of
3 mm, else of the widest clear band (#83's packed sheets have 2 mm between
rows), else on the row with the least ink. A part is never shorter than half
the limit, and the render limit allows one part more.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tested on Postgres 17: only the orders before Imprimindo whose Prumo approved
part of a film get the rest; orders approved by a person, printing, treated
or with an old final are left alone.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The proof's approval took the print file's first upload as the final, so the
other parts of a film in parts never reached Arte conferida or the hot folder
and were downloaded by hand. It now approves every part, and adds the missing
ones to a first part already approved. A one-off migration completes the
open orders still before Imprimindo. Generated again, the files are named
DTF-130-v2-item-1-p2.png, as Marcus asked, so the FlexiPRINT queue and the
Hoson list never take them for the first ones.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
An order the machine already printed, back in Arte conferida, sends again
only the items whose final changed since the machine took them; the panel's
"Vai para a máquina" shows and changes the choice, and the card says
"Reimpressão". The order stays one card. The pass to Revisão keeps the
items printed, so the machine's metres count only those.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tiny does not fill the seller on an order created through its API, and it
cannot be set afterwards (order 151250). The existing contact's seller, from
its dados complementares, now goes in the order; it wins over who assembled a
montador Venda. No seller in the registration: the assembler's, or none for a
Site order. A failed reading never holds the order.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Site already counted them and warned the customer; the count now travels
with the item (close_pieces) to the card's flags, the order panel and the
quote review, so the room sees it before printing.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Site stacked a ready sheet's copies with nothing between them (#81's were
0,3 mm apart). Now 8 mm separates each copy and each sheet from the next, and
the metres include it, as Marcus confirmed. A new cart without the gap is
refused with the reason; a quote made before is still reviewed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The proof keeps its 15 cm window on the finest stroke and adds 5 cm samples of
the colours that window lacks (12 hues, grey, white, black), 1 cm of clear film
between them, up to 30 cm. The colours are read from the small picture the
Site sends of each file, so a long film is scanned in a moment; without
pictures (a proof cut from a prepared final) it stays the stroke window. #100's
proof caught only its white art.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
operators.roles holds every profile, the main one first; permissions, moves,
the column order and the machine question are the sum. The operator's machine
rules apply only to the moves Operador alone allows, so an Operador who is also
Revisor releases any sheet (D-29 does not block, Marcus). Usuários gets
"Outros perfis" chips next to the main profile.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The server refuses a cart (and a review) with UV and textile items; the Site
says so as soon as the customer opens a product of the other line, or adds it,
with "Finalizar este pedido" and "Trocar o carrinho por este item". Basic
and premium textile still go together. Proof cards copy their order's items,
so they follow.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 19/1F: the board carries the approved proof's machine; the pull and the
order's machine field keep to it and say why.
- 17/1E: a network drop while a download or an answer arrives counts as
unreachable/offline, warned first like the others.
- 16: no folder picker (Safari): said in a line.
- 1A, 1J/1K, 1D, 18: guidance and expected refusals (pull to another machine,
someone already on the machine, e-mail in use, coupon) are not errors.
- 1B: an empty file is refused on the page.
- API-C: the Tiny's rate limit reaches Sentry only if it repeats.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#81's 91,5 m took 6 hours to generate. The PNG writer ran Pillow's row filters
and then deflate at level 6; no filter at level 1 gives the same size in under
half the time, for the file and the viewer's strips alike (1 m: 34 s -> 13 s).
Its Prova OK came while the file was still being generated, so the order stayed
in Arte recebida. The approval now also runs when the file finishes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
R2 answered HeadBucket with a 500 now and then (34 times from 20/11) and
/health answered "Database or storage unavailable" although the database
was fine. The database down is still a 503 at once. Storage is asked
twice, 0,3 s apart, within the container check's 3 s; failing, the
answer says "storage": "unavailable" with 200 and logs a warning; after
5 minutes in a row it is a 503 and one error for Sentry.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The panel offered the customer's correction (or an original) as ready to
approve, and the server refused it as not a transparent 300 DPI PNG,
an error for Sentry. POST /orders/{id}/final-check reads the header of
the order's own files with the same check as the approval and answers
200 with the problems; "Aprovar arquivo final" asks it first and, when a
file cannot be a final, says why and to use "Tratar a arte".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
65f8dd2 made the order's document the payer of every card payment, which
could differ from the document inside the card token and raise refusals.
The card form now opens with the order's CPF or CNPJ (Card Payment Brick
initialization.payer.identification), so both carry it. A valid document
the customer types there instead (someone else's card) is the payer, as
the token says; a placeholder such as 999.999.999-99, or none, gives way
to the order's. The order's document always rides in the payment's
metadata for finance, and the order's name goes as first and last name.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Marcus, 2026-11-18: finance reconciles the payment by the customer and
the invoice is issued to them; half the payments showed 999.999.999-99
and no name. The payer now always carries the order's CPF or CNPJ, the
first and last name from the order and the e-mail. The card form's
document is no longer sent by the Site nor used (the cardholder's data
travel in the card token); the field stays accepted for pages loaded
before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
R2 answered 503 while a print file tile of #53 was stored, and botocore's
two tries ran out. The worker's own reads and writes (store, fetch) now
use a client with up to 10 tries in standard mode, about two minutes of
backoff; requests a person waits on keep two. A storage failure that
still happens is a warning while the job has attempts left and an error
on the last one.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- A generated file, or the customer's correction, that was this item's
final and stopped counting (Correção, a step back) is turned back on
when approved again, instead of "Este arquivo já está no pedido";
other files keep that rule.
- A lane drop, or a machine chosen before, that does not print the
order's product says "A <máquina> não imprime este produto." on the
board and the card stays in Arte conferida, as the chooser filters.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>