Skip to content
Pine Computer Request access
Menu

25 / 26 Engineering and QA · Example

Reproduce a bug

Every new bug report is tried in a clean browser before an engineer opens the ticket.

Illustration of an example: your issue tracker tries each new bug report in a fresh computer with an empty browser. For “Export shows no rows”, it signs in to Pennant as the test customer; Pennant asks for a code, and the support engineer types it in on the screen. It then follows the report, filling in the steps it skipped, and exports September’s invoices. The export comes out empty, so the bug is reproduced, and the exact steps, a screenshot and the browser’s log go on the ticket.
Who it’s for
AI triage tools in issue trackers, where bug reports arrive written in a hurry.
Why it’s hard
The report says “the export shows no rows” and skips how the customer got there. A developer’s own browser has old sign-ins and cached files that can hide the bug.
You get back
  • Whether the bug happens, and the exact steps
  • A screenshot and the browser’s logs from the run
How it runs, in your product’s code

Each report gets a fresh computer with an empty browser. It signs in as the test customer, and when Pennant asks for a code, the support engineer reads it off the authenticator app and types it in on the screen. Then it follows the report, filling in the missing steps, and exports September’s invoices. If the file comes out empty, the steps that did it go on the ticket.

Ruby · task-turn excerpt
# Existing backend Computer and session; see setup docs.# saved_message_id is your durable ID for this request.computer.require_agent_protocol!agent = session.agentgoal = <<~JOB  Follow this bug report in a clean browser as the test  customer, and say whether the bug happens.JOBturn = agent.run(goal, idempotency_key: saved_message_id)# Persist turn.turn_id before waiting or leaving this process.turn = agent.wait(turn_id: turn.turn_id, timeout: 30)case turn.statewhen "running", "canceling"  # Schedule another wait for this turn ID.when "needs_input"  # Present turn.question; authorize any desktop handoff.  # When the user replies, answer this turn and save the new ID:  # agent.answer(turn_id: turn.turn_id, answer: reply.text)when "answered"  # Continue with turn.next_turn_id; do not resubmit the goal.when "completed"  turn.result.artifacts.each do |file|    bytes = session.read_file(file.fetch("relative_path"))    # Save bytes in your own file store before stopping.  end  # Verify the outputs and external state against the request.when "failed", "canceled"  # Record the outcome; check side effects before any retry.end

Requires a configured Computer, session and durable request ID. The comments mark application logic you supply; this excerpt does not implement storage, polling or human handoff. Agent integration · Saving outputs

Build more.
Hand AI the work.