ShiftLefter

A type checker for your test suite.

Compile errors for end-to-end tests.

An end-to-end test framework that compiles plain-language scenarios against a vocabulary you declare.

Your end-to-end suite fails with a selector timeout, and nobody can tell an app bug from a test bug from a down environment. A green on a down environment is a lie. Steps are regular expressions over strings, so nothing is checked until a browser is open. And the tests your coding agent wrote are one-offs nobody will maintain.

BDD was right that plain-language scenarios are the contract between people and the machine, and wrong that regexes and hand-written glue could hold it up. Agents remove the glue cost. A typed vocabulary removes the rot.

Agents write the tests. The vocabulary is yours. The compiler is the referee.

We don’t heal your tests. We name what changed.

Built by one engineer with agents in the loop — why I built this.

Three proofs

Nothing on this site is mocked: every box is output captured from a real run, kept under assets/homepage with the commit and command that produced it. The tour has the long version of each.

Compile errors, before a browser opens

:user/alice is a declared subject and an instance — a keyword naming the subject’s type and the instance, declared in the glossary. Misspell the actor, or name an element the glossary never declared, and the run refuses to start:

sl run — the refusal
ERROR: Unknown object 'Login.sumbit' in step ":user/alice clicks Login.sumbit"
         at sl/features/login.feature:7
         Interface: :web
         Unknown intent/element: Login.sumbit. Did you mean: Login.submit?
         Declared in: sl/glossary/intents/login.edn:7

2 binding issue(s) found. Cannot execute.
# exit 2

A typo is the fastest case to see. The real ones: a glossary entry renamed and dangling across forty scenarios, a merge that leaves references pointing nowhere, a refactored step library. Each dies before a browser opens, with a suggestion and the file and line where the right name is declared. The refusal, in full →

A green is a measurement

A run that could not observe the app says so in its exit code, never in a green. Here the port had nothing listening:

sl run against a closed port
UNOBSERVED The app is not listening
Scenario: The app is not listening
  1) :user/reader opens the browser to 'http://127.0.0.1:9999/'
     Error: SUT unreachable: ERR_CONNECTION_REFUSED for http://127.0.0.1:9999/
     class: observation — no answer existed; this step proves nothing about the app

1 scenario(s): 1 unobserved
# exit 4

Exits 0 and 1 are verdicts about your app. Exit 4 means no answer existed, and it is never blamed on the app. The exit-code contract →

The failure, in your words

Which actor, which thing, which step; expected against seen, with the poll count; the screenshot and the browser console attached at the instant of failure:

the failed row of the HTML report, as text
ERROR  Then :user/shopper should see Cart.items[-1].status with text 'removed'
26 polls
Timed out after <ms> (deadline 3000ms via default, interval 100ms) — :user/shopper should see Cart.items[-1].status with text 'removed'. Last error: Expected element text to contain 'removed' but was 'in cart'
screenshot · console
WARNING console-api http://localhost:9097/cart.html 0:199 "cart: remove clicked on item 3 - marked \"Apples\" removed"

The console line names the app’s bug: the click landed on item 3 and the app marked Apples removed. The failure row, with the screenshot →

Install

Java 21+ is the only requirement. No Clojure toolchain.

curl -fsSL https://raw.githubusercontent.com/SHIFT-LEFTER/shiftlefter/main/release/install.sh | bash
export PATH="$PWD/sl:$PATH"
sl --version

Have a suite? Run sl orient inside it and read what it would and would not run. Starting fresh? sl init, then one scenario.

For whoever owns a Cucumber or Playwright suite that fails for reasons nobody can read — and, increasingly, for whoever’s coding agent writes tests nobody will maintain.

If you brought an agent

Install, then sl orient. The documentation is in the jar, from a machine that has never seen the repository; hand it a suite nobody has typed and it parses everything, runs nothing, and names the next command. For agents →

Where it is, honestly

Solid today

Not yet

  • The traceability graph — requirements to the runs that prove them. Its inputs exist (below); the graph does not.
  • Semantic diffing of live pages — a developer preview at the REPL, not a command.
  • Brownfield migration — an on-ramp that parses your suite and says what typing it means; not a converter. An agent-led migration skill is next.
  • Browser-console capture and costumes on the Playwright backend — the WebDriver backend only, today.
  • Derived denials — what your app must refuse, derived from the glossary. Designed, not shipped.

Adopt it for the left column. The right column is why it compounds: the vocabulary that refuses a typo today is what the graph will read.

Design, not shipped

The future, as today’s data

a scenario that says why it exists
  @because=CHK-4412
  Scenario: Alice logs in
    When :user/alicce opens the browser to 'http://127.0.0.1:9095/login'
the planning record of the refusal above — every issue names where the right thing is declared
{:svo-issues
 [{:type :svo/unknown-subject,
   :subject :user/alicce,
   :known [:user/alice :user/bob],
   :suggestion :user/alice,
   :def-site {:file "sl/glossary/subjects.edn", :line 10, :entry :user/alice},
   :location
   {:step-text ":user/alicce opens the browser to 'http://127.0.0.1:9095/login'",
    :step-id #uuid "00000000-0000-0000-0000-000000000000",
    :uri "sl/features/login.feature",
    :line 5,
    :column 5},
   :severity :error}
  {:type :svo/unknown-object,
   :object "Login.sumbit",
   :interface :web,
   :severity :error,
   :message "Unknown intent/element: Login.sumbit. Did you mean: Login.submit?",
   :suggestion "Login.submit",
   :def-site {:file "sl/glossary/intents/login.edn", :line 7, :entry "Login.submit"},
   :location
   {:step-text ":user/alice clicks Login.sumbit",
    :step-id #uuid "00000000-0000-0000-0000-000000000000",
    :uri "sl/features/login.feature",
    :line 7,
    :column 5}}],
 :issues []}

@because=CHK-4412 is an ordinary typed tag, carried into the record. :def-site is a file and a line. The graph from requirements to the runs that prove them is not here; its inputs already are.