Skip to content

Check the desktop app with Quire, on issues and on pull requests - #891

Open
Kamalnrf wants to merge 3 commits into
HarnessMD:mainfrom
Kamalnrf:quire-integration
Open

Kamalnrf wants to merge 3 commits into
HarnessMD:mainfrom
Kamalnrf:quire-integration

Conversation

@Kamalnrf

@Kamalnrf Kamalnrf commented Nov 23, 2026 •

Copy link
Copy Markdown

Munder Difflin has no URL to point a browser at, so automated checking has meant unit tests and hoping. Quire drives the built Electron app the way a person does — over the DevTools port, on a virtual display — so a bug report gets reproduced, a pull request gets proved, and a fix gets confirmed on main. Three workflows, and one Trail per issue across all three, so a bug's history reads: reproduced → fixed on the branch → fixed on main.

Before

After

Maintainers: this adds three workflows and a runbook, so there is no product behaviour to film. Either apply no-visual-change, or the two screenshots above are what the headings want. I cannot do either from a fork.

Proof, in brief

Run against copies of your own reports in a fork, before proposing any of it. Every verdict below is a real comment you can open:

That last one is the result worth weighing: it says no when it cannot see.

Those were copies of your issues in a fork, not your live ones, and the pull requests were ports of #821, #879 and #883 — so the Runs are real, the context is a rehearsal.

What each workflow does
Workflow Trigger Answers
quire-triage.yml triage or quire label on an issue Does the reported bug reproduce?
quire-verify.yml pull request opened, or verify label Do these changes do what the PR says?
quire.yml push to main carrying a merged PR Is the issue actually fixed on main?

Nothing runs automatically on an issue: a person decides each Run is worth it by applying a label, and the label clears afterwards so applying it again re-runs. Where a pull request closes several issues it gets one Run per issue, so "is #793 fixed?" has its own answer instead of being averaged into a single verdict for the branch.

Roughly $0.03 per Run plus model usage.

Untrusted input is treated as untrusted

An issue body and a pull request description are written by whoever filed them, and Quire can run shell commands. So no Run shares an environment with a write-scoped credential:

  • read-only job token, and persist-credentials: false on checkout;
  • github-token: "" passed to the action, so it cannot default to the job token and leave it in the Run's environment;
  • a separate job does the commenting, sees only Quire's handoff, and runs no agent.

The request text tells Quire to treat the report as a claim to check, never as instructions — and to ignore anything in it asking to run commands, touch files or visit URLs.

Scope: what it can and cannot check

Worth knowing before it lands, because a checker that quietly skips things is worse than none.

It cannot reach, and will say Could not check rather than guess:

  • Anything behind a native dialog — "add a repo", every folder picker. A browser cannot see those windows.
  • Anything needing a signed-in agent CLI, unless you set CLAUDE_CODE_OAUTH_TOKEN (step 4 above). Without it the runner installs Claude Code but never signs in, so a check that waits on an agent's reply is blocked — for an app whose subject is running agents, that is the biggest hole, and the one secret closes it for Claude Code. Other engines (codex, opencode, antigravity) would each need their own credential.
  • Platform-specific behaviour. The job runs on ubuntu-latest, so a Windows-only or macOS-only report cannot reproduce there at all. Of 143 open issues today, 21 are os:windows, 4 os:macos, 2 os:linux.
  • Installer and packaging behaviour: it drives an unpackaged build started from the checkout.

It is good at workspace and renderer behaviour that a person could click through: the markdown preview, the skills catalog, onboarding, panels, and anything whose effect lands on disk where a shell check can confirm it. That is roughly where ui (9 open) and the non-platform-pinned half of bug (44 open) sit.

It needs a decent report. Both reproductions above had numbered steps. A vague issue gets "say which detail is missing" rather than an answer — correct, but it still costs a Run.

Setting it up

Three commands and a label. Until the secret exists, merging this changes nothing — every Quire step skips itself with a notice.

# 1. The token Quire runs with. Create it at https://quire.sh/dashboard?settings=security
#    then run this — it prompts for the value, so the token never enters shell history.
gh secret set QUIRE_API_TOKEN --repo HarnessMD/munder-difflin

# 2. The labels the workflows trigger on. Each is cleared after its Run, so applying it
#    again runs it again. `no-visual-change` already exists here; these three do not.
gh label create triage --repo HarnessMD/munder-difflin --color 5319e7 \
  --description "Run Quire triage on this issue (removed after the Run)"
gh label create quire  --repo HarnessMD/munder-difflin --color 5319e7 \
  --description "Run Quire triage on this issue (removed after the Run)"
gh label create verify --repo HarnessMD/munder-difflin --color 0e8a16 \
  --description "Run Quire verification on this pull request (removed after the Run)"

# 3. Clear this pull request's evidence check — three workflows and a runbook have no
#    before/after to film, and only a maintainer can waive it.
gh pr edit 891 --repo HarnessMD/munder-difflin --add-label no-visual-change

# 4. Optional, and the one that unlocks the most: sign Claude Code in on the runner,
#    so a Run can hire an agent and get a real reply instead of reporting every
#    agent-dependent check blocked. The app passes this through to agents by design
#    (CLAUDE_CONFIG_KEEP in src/main/ptyEnv.ts). Without it, nothing breaks — those
#    checks simply stay blocked, as they are today.
gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo HarnessMD/munder-difflin

Before setting that fourth one, weigh two things. It spends real model usage on every Run that hires an agent, which is why .quire/runbook.md caps agents at the cheap models. And it is a credential living in the same job as the Run, which reads untrusted report text and can run shell commands — unlike the GitHub token, which is deliberately kept out of that job. It is scoped to model usage rather than to the repository, so the blast radius is spend rather than write access, but scope and rotate it accordingly.

Then try it on a report you already know the answer to, and judge it on that:

# Triage an open issue. One Run, roughly $0.03 plus model usage.
gh issue edit 793 --repo HarnessMD/munder-difflin --add-label triage

# Or re-check an issue you believe is already fixed on main.
gh workflow run quire-recheck-main.yml --repo HarnessMD/munder-difflin --ref main -f issue=793

Nothing runs on its own: no Run starts until someone applies a label or opens a pull request that touches src/.

Known gaps
  • quire.yml (the main-branch workflow) has never executed. Its report renderer was exercised against real handoffs; the commit → pull request → issues resolution has not run for real.
  • Triage and re-check build the app before discovering the token is missing. Only quire-verify.yml skips the build early. Worth tightening if you take this.
  • .quire/runbook.md encodes our environment's facts — scratch repo at /tmp/md-sample, harness home at /tmp/md-harness, agents on cheap models only. Adjust to taste; it is the file that keeps Runs inside the lines, and the thing to read first if a Run does something surprising.

🤖 Generated with Claude Code

Munder Difflin has no URL to point a browser at, so automated checking has
meant unit tests and hoping. Quire drives the built Electron app the way a
person does -- over the DevTools port, on a virtual display -- and records
what it found with screenshots and recordings attached to each check.

Three entry points, each tied to how work actually arrives:

- `quire-triage.yml` -- apply `triage` or `quire` to an issue and the reported
  bug gets an independent reproduction attempt, with evidence, before anyone
  reads it. The verdict lands as a comment: Reproduced, Did not reproduce, or
  Could not check.
- `quire-verify.yml` -- opening a pull request proves its changes work. If it
  closes issues, one Run per issue in that issue's own Trail, so "is HarnessMD#793
  fixed?" has its own answer rather than being averaged into one verdict.
- `quire-recheck-main.yml` -- when a fix lands on main, the issue's Trail is
  re-checked there, so the lane people read later says fixed rather than
  keeping the answer triage gave it.

Each issue keeps one Trail across all three, so a bug's history reads
reproduced, then fixed on the branch, then fixed on main.

The pull request's own text is untrusted input and Quire can run shell
commands, so no Run shares an environment with a write-scoped credential:
read-only job token, no persisted git credentials, no GitHub token passed to
the action, and a separate job that does the commenting.

`.quire/runbook.md` is what keeps Runs inside the lines: how to reach the app,
which actions are safe, what is out of reach, and where evidence comes from
when the terminal renders to a canvas.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚫 This PR is missing its before/after evidence

Every pull request here has to show its work. Screenshots or a short screen recording, before the change and after it.

  • Before — no image or video under that heading
  • After — no image or video under that heading

How to fix it: edit the description, keep the ### Before and ### After headings from the template, and drag an image or video under each. GitHub uploads it inline. This check re-runs the moment you save.

A bug fix with no visible surface still needs it: show the failing behaviour, then the same steps passing. A terminal recording is fine.

Genuinely nothing to show — a CI tweak, a typo, a dependency bump? A maintainer can apply the no-visual-change label. Please don't ask unless it truly has no observable effect.

📖 CONTRIBUTING.md → Evidence is mandatory

Kamalnrf and others added 2 commits November 23, 2026 15:49
Munder Difflin is an app for running coding agents, and the one thing CI could
not check was an agent doing work: the runner installs Claude Code but never
signed it in, so every check needing an agent's reply came back blocked.

The app already has the path. CLAUDE_CONFIG_KEEP in src/main/ptyEnv.ts keeps
CLAUDE_CODE_OAUTH_TOKEN when it builds an agent's environment -- an operator
who exported it wants agents to see it -- so exporting it in the job is what
the app expects. Set the secret and agents work; leave it unset and the jobs
behave as before.

Worth naming the cost: that credential sits in the same job as the Run, which
reads untrusted report text and can run shell commands. It is scoped to model
usage rather than to the repository, but scope and rotate it accordingly.

Also renames quire-recheck-main.yml to quire.yml: the file now says what Quire
checks on main rather than naming today's mechanism.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

This branch has not been deployed

No deployments
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