Verification and CI¶
There is no unit test runner. Changes are verified by the compiler's checks, smoke gates that drive a real server over HTTP and in a browser, and a deploy dry run.
Before you push¶
~/.local/bin/jac fmt --lintfix <changed .jac files> # the pinned binary
jac check <each changed .jac file>
jac run --no-dev main.jac # boots and builds the bundle
python3 tests/smoke/api_gate.py http://localhost:8000
- Run
jac checkper file.jac check main.jacdoes not report errors inside imported modules. - Boot the app after touching imports or placement pins.
jac checkcannot see a walker module that lowered into the client bundle; the build can. - After touching walkers or
owned(), run a two-account isolation gate (see Tenancy and security).
What CI runs¶
.github/workflows/ci.yml runs on every pull request and on pushes to main
and dev.
- Reads the exact pin from
jac.tomland installs that release. jac fmt --check --lintfixover every tracked.jacexceptcomponents/ui/(registry copies are rewritten byjac install --shadcn).jac check --lintover every tracked.jac.- A per-file
jac check, run twice on purpose: a warm-up pass seeds.jac/cache(older releases reported cold-cacheE5082false positives) and the second pass is the one that counts.
- Installs the pinned Jac and runs
jac install. - Deploy gate: renders the manifests with
jac scale deploy --dry-run --show-yamland runstests/smoke/deploy_gate.py, which asserts the deploy builds a client bundle, runs two workers and bounds the gateway. - Starts
tests/smoke/github_stub.py, a local stand-in for the GitHub endpoints the app calls, and exports App variables pointing at it (GITHUB_API_BASE,GITHUB_WEB_BASE, a generated private key). - Boots
jac run --no-dev --port 8000 main.jac. - API gate (
tests/smoke/api_gate.py): the shell and bundle are served, anonymous calls are401, register and login work, core walkers answer, 16 concurrent reads succeed. - Webhook gate (
tests/smoke/webhook_gate.py): the connect round trip binds the installation, the poll back-fills, signed deliveries are queued by the receiver and applied by the drain, and three workspaces stay isolated. - Checks the log for two supervised workers.
- Browser gate (
tests/smoke/browser_gate.py, Playwright): sign up, finish the three-step setup on the Simple template, land on the board with the new-task dialog open and the template's steps applied, create a task from the board and see the row survive a reload, turn on AI responsibilities and give a role code review, check a proposal from Ask is drawn dashed until it is applied, then land on GitHub's install redirect against the stub and check the page completes it with exactly oneCompleteGithubInstallrequest.
.github/workflows/docs.yml builds this site with --strict on pull
requests that touch docs/, the Jac sources the reference reads, or
jac.toml, and deploys it to GitHub Pages from dev. See
Writing these docs.
Browser QA by hand¶
Use agent-browser (or Playwright) against jac run --no-dev.
Typing into React inputs
agent-browser type sets the value in a way React's change tracking
ignores, so a working input looks broken. Use agent-browser keyboard type
for real key events.
- Assert on rendered text, not only coordinates. A stale
@eNref can produce a phantom pass. - HTML5 drag and drop does not fire from synthetic drags; dispatch a
DragEventwith aDataTransferfromevalto test the board. - A page mounts once on a full load (the layout reads the login state at render time), but a route change can still remount it. A test that counts requests (like the install completion) must expect the deduplicated count.