Fence

What it does

The fence50 is the compiler checks, lint rules, and hooks that reject prohibited code and shortcuts. The fence50 explains the idea. Effect describes work with typed failures38 and required services. A service is a named interface for one job.

XState 6.0.0-beta.1 defines state machines: named states and the events that permit movement between them. @xstate/effect 1.0.0-beta.0 runs them as scoped Effects and supplies the compiled inline-Effect lint rule. These checks enforce it today:

The standard

How to check

Sources

  1. rat-stack/oxlint.config.ts at main · joelhooks/rat-stack · GitHub. GitHub joelhooks/rat-stack. Lint configuration; used for the enforced rule groups. Accessed 2026-10-01.
  2. rat-stack/tsconfig.base.json at main · joelhooks/rat-stack · GitHub. GitHub joelhooks/rat-stack. Compiler configuration; used for Effect diagnostics at error severity. Accessed 2026-10-01.
  3. rat-stack/lefthook.yml at main · joelhooks/rat-stack · GitHub. GitHub joelhooks/rat-stack. Commit hooks; used for the pre-commit check and test gate. Accessed 2026-10-01.
  4. rat-stack/scripts/vcs-command-policy.js at main · joelhooks/rat-stack · GitHub. GitHub joelhooks/rat-stack. Command policy; used for the shared hook-bypass prohibition. Accessed 2026-10-01.
  5. rat-stack/scripts/hooks/block-git-no-verify.mjs at main · joelhooks/rat-stack · GitHub. GitHub joelhooks/rat-stack. Harness hook; used for the failing bypass check. Accessed 2026-10-01.
  6. rat-stack/.github/workflows/ci.yml at main · joelhooks/rat-stack · GitHub. GitHub joelhooks/rat-stack. CI workflow; used for the cold-install validation gate. Accessed 2026-10-01.

Last changed 2026-11-11 in 08d6482. Source on GitHub. Change log.

Linked from

  1. Agent guide. An Effect stack so pure (aspirational) Kit Langton will blush.

    Fence — Strict effect-tsrs diagnostics, lint, and hooks protect the gate; patched tsc checks compiler parity on checker bumps.

  2. Change log. What changed in the files served here, newest first.

    Fence — edited: fence: block every hook bypass and add the Amp hook

  3. Full agent guide. An Effect stack so pure (aspirational) Kit Langton will blush.
  4. Rat Stack systems | rat-stack. The systems rat-stack ships, the standard each keeps, and how to check it.

    Fence — Strict effect-tsrs diagnostics, lint, and hooks protect the gate; patched tsc checks compiler parity on checker bumps.

  5. Source change history (log.md). The generated change log as Markdown.

    Fence — edited: fence: block every hook bypass and add the Amp hook