Halopen output
“"Look at apps slash web slash app slash api slash orders slash cancel-route dot ts. The cancel handler currently does a database update and then publishes the OrderCancelled event after — which means if the publish step fails, the row reflects cancellation but downstream consumers never hear about it. Refactor it so the row update and the event publish run inside a single Postgres transaction, using the existing pgClient.transaction wrapper from lib slash db dot ts. Add a regression test in the existing route test file that mocks the event-publish to throw and asserts the database row stays in the prior state. Don't change the public API of the handler, and don't introduce a new abstraction for this — just inline the transaction wrap."”
- · ~150-word agentic prompt dictated in a single 50-second hold
- · Multiple file paths captured as natural-language slash-paths
- · Three positive constraints + two negative constraints all preserved verbatim
- · The kind of prompt that gets compressed under typing fatigue and spoken in full under voice