QUALITY GATES

Quality gates for AI-written code

Before a change waits for your decision, Kanship runs it through your checks, tools and reviews. Anything that fails goes back to the agents with the details, and the task’s Quality block shows the result of each gate.

The gates

  • Your checks

    Agents record each repository’s build, lint and test commands. Kanship runs them after every round, then again on the work merged with your target branch. A check that already fails there doesn’t count against the task.

  • Code quality

    Any tool that writes a SARIF report can join your checks, and agents add fitting ones to a repository that has none. Only findings the change adds count, and they go back at most twice.

  • Acceptance checklist

    Each criterion is graded with evidence. Behavior only counts as met with proof from a run, never from reading the code. You can approve the checklist before coding starts.

  • Security review

    A security reviewer reads every change. Confirmed high and medium findings that the change introduces go back. You decide on the rest, for the task or the whole project.

Example Quality block of a fictional bug fix
  • Bug proof

    Mark a task as a bug fix and it has to come with a test. Kanship runs the test without the fix, where it must fail, and with it, where it must pass.

  • Review suggestions

    Small suggestions get fixed in one polish round. For the rest, you choose: fix before merge, follow-up task or dismiss.

  • Rules

    Write rules for one project or for all of them. The agents that plan, build and review get them, and a reviewer sends back a change that breaks one.

  • GitLab and GitHub CI

    With the GitLab CI or GitHub CI extension on, a red pipeline or a failed check on the task’s commit sends the work back before it reaches you.

The last word is yours. Whatever still needs you waits on the task, with Send back and Merge anyway. Checks and code quality tools run without a model, so they use no tokens.

Questions

What does Kanship check before I merge?

Agents record each repository’s build, lint and test commands, including any code quality tools. Kanship runs them after every round, and before you merge it runs them again on the work merged with your target branch. A check that already fails on your target branch doesn’t count against the task. The task’s acceptance criteria are graded with evidence, a security reviewer reads the change, and a bug fix needs a test that fails without the fix. Failures go back to the agents. Whatever still needs you waits on the task, where you can send it back or merge anyway.

What if a test or review fails?

The coding agent gets the results or feedback and tries again. If the test environment itself is broken, Kanship retries the test run after about 1, 5 and 15 minutes. If all three retries fail, the task waits in Testing for you to fix it and retry. If an implementer couldn’t run the tests, the task says so when it reaches the merge gate, so you can check the work first. You’ll see tasks that need your help on the board and in notifications.

What happens when two tasks change the same code?

When a task lands, Kanship checks the running tasks for conflicts with it. If one won’t merge any more, an agent merges your target branch into its work, resolves the conflict, builds, runs the tests and commits the result, and a short review follows. This happens between steps, so a running step is never interrupted. If two attempts fail, the task waits for you.