Skip to content

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 check per file. jac check main.jac does not report errors inside imported modules.
  • Boot the app after touching imports or placement pins. jac check cannot 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.

  1. Reads the exact pin from jac.toml and installs that release.
  2. jac fmt --check --lintfix over every tracked .jac except components/ui/ (registry copies are rewritten by jac install --shadcn).
  3. jac check --lint over every tracked .jac.
  4. A per-file jac check, run twice on purpose: a warm-up pass seeds .jac/cache (older releases reported cold-cache E5082 false positives) and the second pass is the one that counts.
  1. Installs the pinned Jac and runs jac install.
  2. Deploy gate: renders the manifests with jac scale deploy --dry-run --show-yaml and runs tests/smoke/deploy_gate.py, which asserts the deploy builds a client bundle, runs two workers and bounds the gateway.
  3. 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).
  4. Boots jac run --no-dev --port 8000 main.jac.
  5. API gate (tests/smoke/api_gate.py): the shell and bundle are served, anonymous calls are 401, register and login work, core walkers answer, 16 concurrent reads succeed.
  6. 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.
  7. Checks the log for two supervised workers.
  8. 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 one CompleteGithubInstall request.

.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 @eN ref can produce a phantom pass.
  • HTML5 drag and drop does not fire from synthetic drags; dispatch a DragEvent with a DataTransfer from eval to 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.