Skip to content

Run the real Zoom client only when a change reaches the Zoom-only surface - #188

Merged
ShuhaoZQGG merged 1 commit into
devfrom
docs/zoom-run-rule
Dec 2, 2026
Merged

ShuhaoZQGG merged 1 commit into
devfrom
docs/zoom-run-rule

Conversation

@ShuhaoZQGG

Copy link
Copy Markdown
Contributor

No issue: the owner's decision on 2026-12-02, while finishing #187.

Why

Until now every change to a file that a Zoom-client spec covers owed a run in the real Zoom client. That run takes the owner's Mac for as long as it lasts, even when the change could not alter anything Zoom shows. #187 is an example: it rewrote the agenda import's reading of a pasted text, a change Playwright proves completely. The owner asked for real runs only where they prove something Playwright cannot.

The first wording, "only when the change touches a Zoom client API", was too narrow. A change can reach the real client without adding or changing an SDK call, and this repo has met each kind:

  • What a call is given, or when it runs. fix(overlay): faster, never-early card changes in Timer + Camera (#79) #88 rounded the tick down to the tenth and joined duplicate background pushes. No new SDK call, yet it changed exactly what Zoom puts on the video (agenda-import IM-03's review note).
  • Zoom's embedded browser. Zoom 7.2.5 refuses the app the clipboard (new-look NL-14), an upload opens the macOS file dialog over Zoom (agenda-import IM-10), a pasted screenshot arrives as image.png (IM-13), and a link goes through marketplace.zoom.us and the Domain Allow List.
  • Loading and signing in inside Zoom. The zoom. host, its headers, the app context and session token: a browser on localhost never sees any of them.

The reverse also holds. A covered file that imports the SDK can change without touching any of this: #187 changed only the agenda import functions in TimerContext.jsx. So the rule judges what the changed lines reach, not which file they are in.

What changes

The rule, a new section of CLAUDE.md, "When a change needs the real Zoom client". A real run is owed when the change reaches the Zoom-only surface:

  1. the SDK bridge: a call, or what it is given or when it runs (the card image, a badge, the colours and thresholds that reach the video, the tick, FINISH and RESET);
  2. Zoom's embedded browser where it differs from Chrome: the clipboard, pasted files, the file dialog, drag and drop, links, confirm and alert, sound, the camera;
  3. how the app loads and signs in inside Zoom: the zoom. host, its routing and headers, the app context and session token, OAuth and app authorization, the app's capabilities, the /zoom build.

For anything else, unit tests and Playwright are the proof. Each covering spec is still reviewed and its steps fixed, and it gets a note naming the Playwright test that stands in for each moved step. verified_at, verified_on and status stay as they are. Those specs then get their real run at the release check that was already in CLAUDE.md (npm run test:specs -- --stale --strict lists them), so a batch of such changes costs one Zoom session, not one each. When it is unclear which side a change is on, the session asks. A factory station, which cannot ask, runs it.

Where the old rule was written, the new one is now:

  • CLAUDE.md: the test rule's step 5, and items 2 and 3 of the definition of done.
  • e2e/zoom-client/README.md: "Keeping it current", item 1.
  • The zoom-app-testing skill: its description used to start it "unasked" for any covered file; now only for a change that reaches the surface. Its spec picking in §0 follows the same rule.
  • The factory's Zoom station (factory-zoom), step 3: of the specs the diff hits, it keeps those whose change reaches the surface (and any it can't tell about). It notes the rest and drops them, so a PR that needs none never deploys or opens Zoom.
  • factory-report: takes a PR that needed no run, and reports the Playwright tests that stood in.
  • The Stop hook on factory/ branches (scripts/factory/stop-gate.mjs): its message now gives both paths. It still blocks the first stop, because a file path cannot tell which side a change is on; the second stop goes through as before.

Security

None. No code the product runs changes.

Production impact

None for users. For the workflow:

  • Fewer real-Zoom runs per PR. A covering spec whose run was skipped shows as unverified in npm run test:specs -- --stale until the release run, which grows by those specs.
  • The factory's daily Zoom station skips the Mac entirely for a PR whose change reaches no part of the surface.
  • Rollback is a revert.

Testing

  • npm test: pass, 164 files, 3,119 tests
  • npm run test:e2e: pass, 142 tests
  • npm run test:specs: pass, 18 specs valid
  • scripts/factory/stop-gate.test.js: 11 pass, with two new assertions that the block names the Zoom-only surface and the Playwright stand-in.
  • Oracle: none, not a factory issue.

Evidence (real Zoom client)

None. This change reaches no part of the Zoom-only surface, by its own rule.

Not verified

  • The factory station steps (factory-zoom step 3, factory-report) take effect on the next station run. They have not been run since the change.
  • Which side a change is on is a judgment, by a person or an agent, not a check. A wrong call is caught at the release run at the latest.
  • Engine differences between Playwright's Chromium and Zoom's embedded browser on macOS are not covered by Playwright. A UI-only change that renders differently there is caught only at the release run.

Look here first

  1. CLAUDE.md, "When a change needs the real Zoom client": are the three items the whole Zoom-only surface?
  2. .claude/skills/factory-zoom/SKILL.md step 3: the station now drops specs by judgment, keeping any it can't tell about.
  3. The "when unsure" line: an interactive session asks, a factory station runs.

… Zoom-only surface

Until now every change to a file a Zoom-client spec covers owed a run in
the real Zoom client, which takes the owner's Mac for the length of it,
even when the change could not alter anything Zoom shows. The owner asked
for real runs only where they prove something Playwright cannot.

The rule (CLAUDE.md, "When a change needs the real Zoom client"): a run
is owed when the change reaches the Zoom-only surface, which is more than
a call to the Zoom Apps SDK:
 - the SDK bridge: a call, or what it is given or when it runs (the card
   image, a badge, the colours that reach the video, the tick, FINISH
   and RESET);
 - Zoom's embedded browser where it differs from Chrome: clipboard,
   pasted files, the file dialog, drag and drop, links, confirm and
   alert, sound, the camera;
 - how the app loads and signs in inside Zoom: the zoom. host, its
   headers, the app context and session token, OAuth, capabilities, the
   /zoom build.
Anything else gets unit and Playwright tests and a review note in each
covering spec naming the Playwright tests that stand in; verified_at is
left alone, and the release check gives those specs their real run, so a
batch of such changes costs one Zoom session. When unsure, ask; a factory
station, which cannot, runs it.

The same rule is written where the old one was: the definition of done,
the zoom-client README, the zoom-app-testing skill (which ran "unasked"
for any covered file), the factory's Zoom station and report steps, and
the Stop hook's message on factory branches. The hook still blocks the
first stop: a file path cannot tell which side a change is on.
@ShuhaoZQGG
ShuhaoZQGG marked this pull request as ready for review December 2, 2026 19:33
@ShuhaoZQGG
ShuhaoZQGG merged commit 7b14ada into dev Dec 2, 2026
1 check passed
@ShuhaoZQGG ShuhaoZQGG mentioned this pull request Dec 3, 2026
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