mkprj Start free trial

mkprj Rules

Catch mistakes before they reach the board.

A rule is a check on a step. When someone moves a card, the rule lets it through or stops it, with a plain reason and what to do next. The board only ever shows what really happened.

The problem

Nothing checks the move, so the board drifts from the truth.

Cards get marked done without a review, without an estimate, without the thing everyone assumed was there. Someone ends up policing the board by hand, and they don’t catch everything.

  • “The board says it’s done. It isn’t done. Nobody noticed until release day.”

    With mkprj You decide what a card needs before it moves on, and people are told what’s missing.

An example

No Done without an estimate.

  1. Set the check. Chris puts a rule on the In progress → Done step for bugs: a bug needs an estimate before it’s done.
  2. Someone forgets. Sam drags ENG-139 to Done. It has no estimate.
  3. The card goes back. It returns to In progress straight away, and a notice says: “Estimate is empty. Set an estimate, then move it again.”
  4. Fix it and try again. Sam sets the estimate to 2 and moves the card again. This time it goes through.

How it works

Rules that keep work honest.

You put a rule on a step in a strict workflow, one where you list the steps a card may take. From then on, every attempt to take that step is checked against the card as it is right now.

  • It applies to everyone. People, owners, AI assistants and even Undo go through the same rule. There’s no back door.
  • It explains itself. A rule that says no gives a reason and a next step, like “Set an estimate, then move it again”, never a vague error.
  • The board stays truthful. A refused move snaps back where everyone can see it, so the board never shows something that didn’t happen.
  • It fails safe. If a rule itself is broken, the move is blocked rather than let through, and the people who own the setup are shown what went wrong.
  • It uses the latest data. The check runs at the moment of the move, against the card as it is right then.

Under the hood

As flexible as you need, down to code.

A rule is a guard on a transition in a strict workflow, written in Luau, a small, fast scripting language with types. Each transition has at most one guard, and only owners can attach, replace or remove one.

  • What it sees. ctx.item is a frozen snapshot with built-in fields, custom fields by handle, the state and the version. ctx.transition is the move, and ctx.actor says who is making it and for whom.
  • Three answers. mkprj.allow(), mkprj.block(reason, {next_step}) or mkprj.retry(). Nothing is allowed by default; a script that returns anything else blocks.
  • Checked when you deploy. A guard that doesn’t compile is refused with its line and message. Accepted source is stored by content hash.
  • Sandboxed and inside the write. It runs once, inside the same transaction as the move, against live data, with hard limits on work and memory. An error or a hit limit blocks with “The In progress → Done rule failed; ask a config owner to fix it”, and owners see the line.
  • On the record. Every run is recorded, and the move’s audit row notes which config revision applied.
The guard from the example Eight lines: block the move to Done while the estimate is empty.
return function(ctx)
  if ctx.item.fields.estimate == nil then
    return mkprj.block("Estimate is empty", {
      next_step = "Set an estimate, then move it again."
    })
  end
  return mkprj.allow()
end

Coming next

What’s planned, and not built yet.

  • Rules without code Coming

    A “when this, if that, then do this” builder with ready-made rules, like assigning a card to whoever starts it. Any rule can be opened as a script.

  • A better editor Coming

    Write rules in the browser with autocomplete that knows your own fields.

  • Rules on more events Coming

    Scripts that run when a card is created, changed, commented on or picked up, and can stop a change before it happens.

  • Work from your own editor Coming

    The mkprj command-line tool for writing, testing and deploying rules from your editor.

Make your board tell the truth. Try it free for 14 days.

Add one rule your team keeps forgetting, and watch it hold.

Start free trial