Skip to content

Maestro wave 3: the whole repair lifecycle, and two more defects - #82

Merged
PapiCuche merged 5 commits into
mainfrom
chore/maestro-flows-wave3
Oct 22, 2026
Merged

PapiCuche merged 5 commits into
mainfrom
chore/maestro-flows-wave3

Conversation

@PapiCuche

Copy link
Copy Markdown
Owner

Nine more flows on the EAS development build, and the defects they found.
Everything writes against the scratch backend behind the fail-closed guard.

The defects

Staff were offered the status codes, not the states. The internal order
screen drew its fulfilment buttons straight from
available_fulfillment_transitions, which carries the server's codes — so
somebody at a counter was asked to choose «ready_for_pickup» or «shipped», in
English, while the customer's own order screen said «Listo para retiro» and
«Enviado» from a map already in the app. The buttons now go through
describeFulfillmentStatus.

Four pushed screens had no way back. The root stack hides headers because
the tabs draw their own chrome, and cart, checkout, «Mi cuenta» and the
customer notices were never registered — each opened with no navigation bar
and no back button. Their own Stack.Screen options={{ title }} named a bar
that was not being drawn. On «Mi cuenta» that is a dead end: a staff account
has no Customer record, the server answers 404 as it should, the error state
fills the screen, and there was nothing on it to press.

The flows

Flow Proves Server proof
20 execution Repair started, worked, finished execution/start 201, complete 200
21 quality Check opened, answered, passed quality 201, quality/pass 200
22 delivery Device handed over, no payment implied delivery 201
23 order fulfilment Delivery states read as words —
24 customer devices A device file and its visits —
25 messaging settings What the shop controls about WhatsApp —
26 account fail-closed A 404 met with a screen and a way back —
27 service payment A payment recorded, balance from the server payments 201
28 transfer dispatch Stock moved between branches, end to end items 200, dispatch 200, receive 200

28 closes the limitation 05 recorded: despatch and receipt are no longer
contract-smoke-only. The quantity field is reached from its caption (its «0»
placeholder matches every zero on screen), and the number pad has to be dragged
away before it stops covering «Despachar».

With 09–12 from wave 2, one repair now runs end to end through the app:
received, diagnosed, quoted, approved, photographed, repaired, checked,
delivered and paid.

What is still out of reach, and why

  • Reversing a payment. The confirming button inside the OS alert carries
    the same word as the row's button underneath it; they cannot be told apart
    from here. Contract smoke instead.
  • The customer address book. The QA account is staff and has no Customer
    record, so the customer surface answers 404 — correctly. Needs a customer
    account in the fixture.
  • Consuming a part on a repair. Candidates are quote lines bound to a
    product; the backend accepts product_id on a quote item and this app never
    sends one. A gap in the app, recorded rather than papered over.

Verification

npm run verify green: 112 suites, 2070 tests, including two new regression
tests — no transition button labelled with a raw code, and every pushed route
registered with a header and a back title.

No app code was changed to make automation easier.

🤖 Generated with Claude Code

PapiCuche and others added 5 commits October 22, 2026 01:24
Three flows that carry one order from an approved quote to the customer
walking out with the device, on the scratch backend:

- 20 execution — starts the repair, records what was done and finishes
  it. Starting and finishing are EVENTS the server will not accept any
  other way, so the flow presses the buttons rather than using «Mover la
  orden».
- 21 quality — opens a check, answers the four required points of the
  fixture's «Control general» and passes it.
- 22 delivery — hands the device over and asserts the one thing the
  handover does not do: it registers no payment.

Server proof: execution/start 201, execution/complete 200, quality 201,
quality/pass 200, delivery 201.

Three more selector facts, written into the flows: a field is reached by
its placeholder or its position, never by its caption — the caption
carries the same words and does not take focus; the swipe that dismisses
a keyboard also moves the page, so tapping a heading above the field is
steadier; and a tap that lands while a refetch re-renders is swallowed,
so the flow waits for the section to settle first.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The internal order screen drew its fulfilment buttons straight from
`available_fulfillment_transitions`, which carries the server's codes.
Staff at a counter were offered «ready_for_pickup» and «shipped» — the
machine's English name for a state — while the customer's own order
screen said «Listo para retiro» and «Enviado» from a map that was
already in the app.

The buttons now go through `describeFulfillmentStatus`, the same
describer the customer side uses, so one word per state across the whole
app.

Adds `23-order-fulfilment`, the flow that found it: it opens the
fixture's online order, reads the delivery record the web checkout
wrote, and refuses the screen if any raw code is on it. The flow is
read-only on purpose — the lifecycle runs forward, so moving the fixture
order would leave nothing for the next run, and the write is covered by
a contract smoke.

Regression test asserts both halves: no `label={next}`, and every
fulfilment code reads as Spanish rather than as itself.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The root stack hides headers, because the tabs draw their own chrome.
Four routes that are pushed on top of the tabs were never registered —
cart, checkout, «Mi cuenta» and the customer notices — so each opened
with no navigation bar and no back button. Their own
`Stack.Screen options={{ title }}` named a bar that was not being drawn.

On «Mi cuenta» that turned into a dead end: a staff account has no
`Customer` record, the server answers 404 as it should, the error state
fills the screen, and there was nothing on it to press. The only way out
was the iOS back-swipe, which is a gesture, not an affordance.

Adds `24-customer-devices`, `25-messaging-settings` and
`26-account-fail-closed`. The last one is the flow that found this: it
asserts the app meets that 404 with its own screen AND a way back, and
records the fixture limitation plainly — the QA account is not a
customer, so the address book itself cannot be automated with it.

Regression test asserts every pushed route is registered with a header
and a back title, and that the default really is `headerShown: false`,
since that default is what makes the registration matter.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
27 records a payment against a repair and reads the balance the server
recomputed — the app never does that arithmetic itself. Server proof:
POST payments/ 201.

Reversing is NOT driven. The confirming button inside the OS alert
carries the same word as the row's own button underneath it, and an
alert's buttons cannot be told apart from the page's by name or by
position from here. The flow opens the warning instead and checks what
it says: a reversal marks a payment as recorded in error and returns no
money, because this platform cannot. The reversal itself stays a
contract smoke.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
28 opens a draft, puts one unit in it, despatches it and receives it —
stock moving between two branches through the screens a person uses,
not through a contract smoke. Server proof: PUT items/ 200,
POST dispatch/ 200, POST receive/ 200.

This closes the limitation `05` recorded. Two things were in the way and
neither was an app problem: the quantity field is reached from its
caption, since its «0» placeholder matches every zero on the screen; and
the number pad has no return key, so it has to be dragged away before it
can stop covering «Despachar».

The README now lists flows 20–28 and says plainly what is still out of
reach: reversing a payment (two controls, one word, one of them in an OS
alert), the customer address book (the QA account is not a customer),
and consuming a part — the backend takes a `product_id` on a quote line
and this app has no way to send one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@PapiCuche
PapiCuche merged commit 8cf844a into main Oct 22, 2026
3 checks passed
@PapiCuche
PapiCuche deleted the chore/maestro-flows-wave3 branch October 22, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant