Repository navigation
Conversation
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]>
Contributor
🚫 This PR is missing its before/after evidenceEvery pull request here has to show its work. Screenshots or a short screen recording, before the change and after it.
How to fix it: edit the description, keep the 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 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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:
QA Shot.png, a literalQA%20Shot.pngtwin,report.md,my notes.md) and caught all three symptoms, including the silent wrong-image substitution..sentand proved messages deliver once then archive.Could not checkrather than guessing, and the job stayed green.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
quire-triage.ymltriageorquirelabel on an issuequire-verify.ymlverifylabelquire.ymlNothing 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:
persist-credentials: falseon checkout;github-token: ""passed to the action, so it cannot default to the job token and leave it in the Run's environment;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 checkrather than guess: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.ubuntu-latest, so a Windows-only or macOS-only report cannot reproduce there at all. Of 143 open issues today, 21 areos:windows, 4os:macos, 2os:linux.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 ofbug(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.
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.mdcaps 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:
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.quire-verify.ymlskips the build early. Worth tightening if you take this..quire/runbook.mdencodes 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