Skip to content

DevS69 SDETKit

From noisy CI evidence to a reviewable decision, a diagnosis, and the exact next command.

DevS69 SDETKit is a release-confidence CLI for deterministic ship/no-ship decisions with machine-readable evidence. It runs your repository's own checks in its own environment, reduces a failure to the first one that matters, and tells you what to run next. It never applies, merges or dismisses anything for you.

Primary outcome: know if a change is ready to ship.

Canonical first path: python -m sdetkit gate fast -> python -m sdetkit gate release -> python -m sdetkit doctor.

SDETKit 2.0 is Live

SDETKit 2.0 introduces the native Model Context Protocol (MCP) server for AI coding agents (6 tools), automated safe remediation (auto-fix), and in-flight assertion mutation verification. Published on PyPI and verified with GitHub build provenance.

Get started

Use Python 3.11 or newer. The PyPI examples below install the published 2.0.0 release; the GitHub source tab follows development on main. See the release verification log for the exact released source and distributions.

python -m pip install sdetkit==2.0.0
pipx install sdetkit==2.0.0
pip install "git+https://github.com/sherif69-sa/DevS69-sdetkit.git"

AI Coding Agents (MCP)

SDETKit serves a zero-dependency Model Context Protocol (MCP) stdio server with six native tools:

  • verify_change: verifies uncommitted work in an isolated temporary clone without weakening tests.
  • gate_fast: runs deterministic fast quality gates (doctor, ruff, mypy, pytest).
  • doctor: checks repository health, pure ASCII compliance, and dependencies.
  • diagnose_failure: inspects error logs and tracebacks with SDETKit's adaptive diagnosis cortex.
  • run_mutation: runs assertion mutation testing to find lines no test checks.
  • auto_fix: diagnoses and applies verified mechanical fixes (formatting and fixable lint).

Add it to Claude Code with one command:

claude mcp add sdetkit -- python -m sdetkit mcp

Then, in your repository:

python -m sdetkit gate fast --format json --stable-json --out build/gate-fast.json
python -m sdetkit gate release --format json --out build/release-preflight.json
python -m sdetkit doctor --format json --out build/doctor.json

Each command writes one JSON artifact that people, bots and CI read the same way. Start in 5 minutes walks through the first run.

One verdict per run

Every run ends in one of four decisions, recorded in the artifact's verdict.decision:

Verdict Meaning What to do
SHIP Every check ran against this repository and passed. Continue to gate release, or ship.
REVIEW Nothing blocks, but a person should look first (findings that do not block, or a proven fix waiting for approval). Read the findings, then decide.
NOT_RUN The checks could not run against this repository, for example because the project is not installed in the environment that ran them. Nothing was proven either way. Run the setup command in next_action.next_command, then run the gate again.
NO_SHIP A check failed. Start from next_action: the first failure, its file, and the command to reproduce it.

A failing run names its first failure instead of the loudest wrapper error, and the command to reproduce it:

SDETKit gate fast: NO_SHIP
A check failed.
python: ... (.venv)
[OK] doctor (...) rc=0
[OK] ruff (...) rc=0
[FAIL] pytest (...) rc=1
first failure (test): FAILED tests/test_release_contract.py::test_wheel_smoke
next: python -m pytest -q tests/test_release_contract.py -o addopts=

The same fields are in the JSON report's next_action card: classification, first_failure, affected_file and next_command.

From a failing gate to a reviewed fix

After a failing gate fast, one command diagnoses the failure, proves the narrowest mechanical fix in a throwaway copy of the repository, and writes a decision card. A person approves or rejects it; nothing is applied for you.

python -m sdetkit diagnose run --prove
python -m sdetkit diagnose decide --card build/sdetkit/remediation-loop/decision-card.json --approve --reviewer <you>

See the remediation loop and first-failure triage.

Check a change before it merges

Whoever wrote the change, a person or an AI coding agent, verify change builds it in a temporary clone, runs the tests before and after it, and checks that no test was removed, emptied, skipped or configured away to make it pass. It also names the tests that fail without the change: the proof that it does what its tests check.

python -m sdetkit verify change --base origin/main --head my-branch

It answers VERIFIED, REVIEW, FAILED or NOT_RUN, and writes a signable attestation. Run it:

  • on every pull request, with the verify-change GitHub Action (uses: sherif69-sa/DevS69-sdetkit/verify-change@main), which posts the result as one comment;
  • from a coding agent before it commits, with sdetkit mcp: claude mcp add sdetkit -- python -m sdetkit mcp gives the agent a verify_change tool that checks its uncommitted work.

See verify a change.

Safe automated remediation

Fix format drift and fixable linting errors automatically with deterministic safety and proof verification:

# Preview what would be fixed without modifying files
python -m sdetkit auto-fix --dry-run

# Apply verified fixes and verify proofs automatically
python -m sdetkit auto-fix --apply

Logic errors (assertions, syntax errors, zero division) are safely blocked from automated modification and marked as requiring developer review.

Assertion mutation testing

Prove that your test suite actually catches bugs rather than just executing lines of code:

# Mutate changed code and verify assertion density
python -m sdetkit verify mutation --max-mutants 20

Surviving mutants return the exact file, line number, mutated diff, and prescriptive hints on which test assertion to add.

Proven on real projects

gate fast has been run on seven well-known open-source projects at pinned commits: pallets/itsdangerous, markupsafe and click, python-attrs/attrs, pytest-dev/pluggy, python-poetry/poetry-core and psf/requests. Every fresh clone reads NOT_RUN with the setup command it needs; after setup, five read SHIP and two read NO_SHIP for real failing tests. The external repository proof records every result and how to reproduce it.

Where to go next

This page is the product homepage/router: everything a first-time user needs is linked above. Historical and transition-era references remain intentionally secondary to first-time adoption; use the archive index only after the canonical first path is operating.

SDETKit needs Python 3.11 or newer. Use an isolated environment (a virtualenv or pipx).