DevS69 SDETKit
From noisy CI evidence to deterministic ship / no-ship decisions.
Quick start · How it works · Real-project proof · Documentation · Contributing
DevS69 SDETKit is a release-confidence CLI for deterministic ship/no-ship decisions with machine-readable evidence. It runs your repository's own checks, reduces any failure to the first one that matters, and tells you the exact command to run next.
Primary outcome: know if a change is ready to ship. Runtime requirement: Python 3.11+.
Canonical first path: python -m sdetkit gate fast -> python -m sdetkit gate release -> python -m sdetkit doctor.
Quick start
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install sdetkit==1.2.0
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:
build/
├── gate-fast.json # lint, format, types and tests: the fast verdict
├── release-preflight.json # release readiness: doctor, security scan, gate fast
└── doctor.json # repository and environment health
What a decision looks like
Every run ends in one verdict (SHIP, REVIEW, NOT_RUN or NO_SHIP), its first failure and the command to run next:
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=
| Signal | Decision |
|---|---|
| Every check ran against the repository and passed | ✅ SHIP |
A check failed: failed_steps names it and next_action holds its first failure |
❌ NO_SHIP |
| A check could not run against the repository (for example, the project is not installed) | ⏸ NOT_RUN, with the setup command |
| Nothing blocks, but a person should look first | 👀 REVIEW |
How it works
| Step | Command | What it does |
|---|---|---|
| Fast gate | python -m sdetkit gate fast |
Runs the checks your repository configures (ruff, mypy, pytest, and Go, JavaScript, Rust, Java, .NET or C++ test suites) in the project's own environment. |
| Release gate | python -m sdetkit gate release |
Runs doctor --release, an offline security scan and the fast gate, and combines them into one release verdict. |
| Health check | python -m sdetkit doctor |
Checks the repository and environment: lockfiles, CI, clean tree, tooling. |
| Fix loop | python -m sdetkit diagnose run --prove |
Diagnoses the latest failing gate, proves the narrowest mechanical fix in a throwaway copy, and writes a decision card for a person to approve. Nothing is applied for you. |
| Change verifier | python -m sdetkit verify change --base origin/main --head <branch> |
Verifies a change from anyone, an AI agent included: runs the tests (pytest, vitest, jest, node --test, go test, Maven or Gradle) before and after it in a temporary clone, flags tests that were removed, emptied, skipped or configured away, shows which of its tests fail without it, which of its changed lines no test runs and (with --mutate) which no test checks, and writes a signable attestation; --network deny runs the tests without the network. |
Configuration is optional. gate fast follows the policy your repository already declares, and [tool.sdetkit.gate] in pyproject.toml overrides it; see the CLI reference.
Run it on every pull request
- uses: sherif69-sa/DevS69-sdetkit@v2.0.0
The action runs gate fast with your project's own environment, puts the verdict in the job summary and in one pull request comment, and fails the job on NO_SHIP or NOT_RUN. The action is main-only until 2.0.0 is tagged; use @main until then. See the gate action for the full workflow and its inputs.
Verify an AI agent's pull request
- uses: sherif69-sa/DevS69-sdetkit/verify-change@main
with:
fail-on: FAILED,NOT_RUN,REVIEW
mutate: "true"
Green CI is easy to fake: delete the failing test, assert nothing, add a skip, or add tests that call the new code and check nothing. The verify-change action runs the pull request's tests before and after the change, reports VERIFIED, REVIEW, FAILED or NOT_RUN in one pull request comment, and says which of the new tests actually fail without the change. With fail-on: FAILED,NOT_RUN,REVIEW a pull request that weakens tests cannot merge until a person approves.
It also reads the change line by line, and marks on the pull request's "Files changed" what it finds:
| On the diff | Means |
|---|---|
| notice: No test runs this code | no test reaches these changed lines (coverage.py, go test -coverprofile, V8 for jest/vitest/node --test, JaCoCo for Maven/Gradle) |
| warning: No test checks this line | with mutate: "true": the line was changed (>= to >, and to or, a returned value to None, ...) and every test still passed |
Each mutant re-runs only the tests that ran its line (pytest) or the test files that import its file (jest, vitest), so it costs those tests, not the suite. On apache/commons-cli (1,002 tests) it found argCount > 1 could become argCount > 2 with every test passing. min-changed-coverage and min-mutation-score turn either into a gate. See verify a change.
Outside GitHub, the same check runs from GitLab CI and Jenkins templates on each merge or pull request. To check one pull request from your own machine, without checking it out:
python -m sdetkit verify change --pr 123 --mutate
Let a coding agent check its own work
claude mcp add sdetkit -- python -m sdetkit mcp
sdetkit mcp serves SDETKit over the Model Context Protocol, so Claude Code, Cursor or any MCP client can call verify_change on its uncommitted work before it commits, and gate_fast for the repository's own checks. See coding agents (MCP).
Fix a failing CI job
python -m sdetkit diagnose run --log build/ci-logs/lint/ci_log.txt --prove
python -m sdetkit diagnose decide --card build/sdetkit/remediation-loop/decision-card.json --approve --reviewer <you>
After a failing local gate fast, python -m sdetkit diagnose run --prove picks up the failed steps on its own. See the remediation loop and first-failure triage.
Proven on real projects
gate fast has been run on seven well-known open-source projects at pinned commits. Each ran once on a fresh clone and once after the setup command SDETKit suggests. Every fresh clone reads NOT_RUN with the setup command it needs. After setup, pallets/itsdangerous, markupsafe and click, pytest-dev/pluggy and python-poetry/poetry-core read SHIP; python-attrs/attrs and psf/requests read NO_SHIP, each for a real failing test. The page records every result as it came out and explains each one: external repository proof.
SDETKit is also backed by committed live-adoption proof.
- Evidence:
docs/artifacts/live-adoption/product-proof-post-1072/ - Decision:
SHIP with known STRICT_FINDINGS - Blocking failures:
0 - Known strict finding:
legacy-noargscompatibility behavior only - Proof page:
docs/live-adoption-product-proof.md
The public launch proof reduces a saved pytest failure to its first failing node, affected file and focused proof command. For this repository, make first-proof emits FIRST_PROOF_DECISION=SHIP|NO-SHIP and writes its bundle under build/first-proof/.
Safety boundaries
- Review-first by default. SDETKit diagnoses and recommends; it does not apply patches, merge, or dismiss findings. Every authority flag in its output (
automation_allowed,patch_application_allowed,merge_authorized, and the others) isfalse. - Proof in isolation.
diagnose run --provetests candidate fixes in a throwaway copy, never in your working tree. - Your code runs.
gate fastruns your repository's own tests and tools, so run it on code you would runpyteston. See the security policy.
Release channel
The install command above uses the latest published package, sdetkit==1.2.0. That release contains the full-product capabilities qualified from source commit 5165a82f8cd2ab3ce6be29737a2afdad58ea85a5; its PyPI distributions and clean public installation are recorded in the public release verification log.
The main branch is the 2.0.0 release candidate: a smaller CLI, one verdict, the local remediation loop from a failing gate to a reviewed fix, accumulating RepoMemory, first-run reliability fixes, and checks that run in the project's own environment. Those capabilities remain main-only until the qualified 2.0.0 release; see the current product delta and the 2.0.0 upgrade notes in CHANGELOG.md.
Documentation
| Start | Operate | Reference |
|---|---|---|
| Start in 5 minutes | Operator essentials | CLI reference |
| First-failure triage | Investigation guide | Artifact reference |
| Recommended CI flow | Adaptive diagnosis | Docs map |
More lanes (repository audit, security scan, evidence packs, review, investigation) are in the full documentation. make help lists the developer targets.
Historical and transition-era references (secondary) remain outside the first-time path: external repository adoption, operations handbook, remediation cookbook and the release process.
Community
- Contributing guide: set up, validate and open a pull request.
- Security policy: report a vulnerability privately.
- Code of conduct: how we work together.
- Support: where to ask for help.
- Changelog: what changed in each release.
License
SDETKit is released under the Apache License 2.0.
Metadata
Release files for sdetkit 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sdetkit-2.0.0.tar.gz | 1.2 MB | With provenance | Details for sdetkit-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sdetkit-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for sdetkit-2.0.0-py3-none-any.whl |
Total release size: 2.1 MB
Release files / sdetkit-2.0.0.tar.gz
| Download URL | sdetkit-2.0.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d0883074504d51371644e1daee9bb28bc012ac80a20216a924258b8986c0af7
|
|
BLAKE2b-256 checksum How to use checksums |
ab69d748aaaa9e859651c11cc3e7abeac73b1e70218211b52d4110ab08f4f3ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / sdetkit-2.0.0-py3-none-any.whl
| Download URL | sdetkit-2.0.0-py3-none-any.whl |
|---|---|
| Size | 854.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f3e5e1b8f1109b4a3df2232b5268af6c0cf4f24150319503449e8e31719a9d7
|
|
BLAKE2b-256 checksum How to use checksums |
5bc32aa51502ae93b3941c992a06aaed968d8c577ad860479aace495ad64d88d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for sdetkit 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sdetkit-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.