CLI reference¶
This page is the current CLI reference for command discovery and mirrors the front-door product story: release confidence first, expansion second.
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.
It intentionally prioritizes:
- the canonical public/stable first-time path,
- stability-aware expansion into advanced surfaces,
- clear exampletion of transition-era or legacy-oriented material.
Canonical first-time path (public / stable)¶
Use this exact sequence first:
python -m sdetkit gate fastpython -m sdetkit gate releasepython -m sdetkit doctor
This is the primary product path for first-time adoption and release-confidence proof. If a new visitor remembers only one thing, it should be this exact path.
Enterprise reliability workflow (step-by-step)¶
After the canonical path succeeds, use the enterprise doctor profile for stricter release governance and focused remediation loops:
- Full enterprise scan:
python -m sdetkit doctor --enterprise --format md- Focused failed-check rerun from workspace history:
python -m sdetkit doctor --enterprise-rerun-failed --json- optional scope cap:
--enterprise-rerun-top <N> - Focused high-severity rerun from workspace history:
python -m sdetkit doctor --enterprise-rerun-high --json- optional scope cap:
--enterprise-rerun-top <N> - Repeat rerun/fix cycles until blockers are cleared and score stabilizes.
- Automation handoff (emit only suggested follow-up pass command):
python -m sdetkit doctor --enterprise-follow-up-only- CI-friendly status mode:
python -m sdetkit doctor --enterprise-follow-up-only --enterprise-follow-up-exit-code(returns exit code2when a follow-up pass is recommended, else0) - plain output emits three lines: command/no-op,
reason: ...,alternates: ... - markdown-friendly output:
python -m sdetkit doctor --enterprise-follow-up-only --format md - when no follow-up is needed in markdown mode, output is
_no follow-up pass required_ - markdown mode also emits a second line reason hint:
`reason: <reason>` - markdown mode also emits a third line alternates hint:
`alternates: <cmds|none>` - JSON handoff payload includes
schema_version=sdetkit.doctor.next_pass.v1 - JSON handoff payload includes
has_next_passboolean for direct pipeline branching - JSON handoff payload includes
next_pass_reason(none|blockers_present|failed_checks_present) - JSON handoff payload includes
alternate_commandsfor fallback lane selection - JSON handoff payload includes
exit_code_hint(0no follow-up,2follow-up recommended) - note: this handoff mode is standalone and cannot be combined with rerun flags.
- note:
--enterprise-follow-up-exit-codeonly works with--enterprise-follow-up-only.
If historical workspace payloads do not include per-check severity metadata, --enterprise-rerun-high falls back to rerunning recorded failed checks.
Expected enterprise outputs include:
- profile markers (
profile=enterprise,profile_mode=full_scan|rerun_failed|rerun_high) - rerun scope metadata (
rerun_top) when--enterprise-rerun-topis used - enterprise execution insights (maturity tier, blockers, optimization queue, follow-up pass reason)
- follow-up command hint (
next_pass_command) for the recommended focused rerun step - remediation bundle items for rapid operator follow-up
Stability-aware command discovery¶
After the canonical path is working, expand deliberately:
Advanced but supported¶
- Umbrella kits:
sdetkit kits list,sdetkit kits describe <kit> - Release Confidence Kit:
sdetkit release ... - Test Intelligence Kit:
sdetkit intelligence ... - Integration Assurance Kit:
sdetkit integration ... - Failure Forensics Kit:
sdetkit forensics ...
Public/stable compatibility aliases (secondary for discovery)¶
These remain fully supported for existing automation and muscle memory:
gate,doctor,security,repo,evidence,report,policystart(guided alias toonboardingfor role/journey-based first-run help)adoption(follow-up action planner from fit + gate decision artifacts)fit(risk-based fit recommendation for adoption depth)
Supporting utilities (secondary)¶
Available utility lanes include:
triage-ci reads a saved failed CI job log and emits an advisory report in text, JSON, or Markdown. Use it before patching when the final process-exit line is only wrapper noise.
Adoption surface artifact¶
Use adoption-surface when an operator needs a read-only map of the repository before choosing proof commands or rollout depth.
python -m sdetkit adoption-surface --root . --out build/sdetkit/adoption-surface.json --format text
The command writes a deterministic JSON artifact at build/sdetkit/adoption-surface.json by default. It detects repository evidence such as languages, package managers, CI systems, security tools, artifact surfaces, and recommended proof commands.
Safety boundary:
- it does not run the recommended proof commands
- it does not install dependencies
- it does not apply patches
- it does not authorize automation or merge
- the emitted payload keeps
automation_allowed=false,merge_authorized=false, andsemantic_equivalence_proven=false
Use this artifact as an operator handoff before expanding into CI rollout, investigation, or portfolio automation.
triage-ci,kv,apiget,cassette-get,patch,maintenance,ops,notify,agent
Transition-era and legacy-oriented material¶
Transition-era and archived lanes remain available for compatibility, but they are not first-time entrypoints and should not dominate discovery:
sdetkit playbooks- archived transition commands and legacy compatibility lanes
- canonical rename map: public-surface-rename-map
- historical material: archive index
Legacy migration hints (runtime behavior)¶
When a legacy compatibility command is invoked, the CLI can emit a migration hint to stderr with a preferred next surface and a canonical-path reminder.
Controls:
- Default behavior: hints are enabled.
- Environment toggle: set
SDETKIT_LEGACY_HINTS=0(alsofalse|no|off) to disable. - Per-invocation override: pass
--no-legacy-hintfor one command run.
Examples:
# one command only (preferred in CI scripts when needed)
python -m sdetkit --no-legacy-hint phase1-hardening
# shell/session level behavior
SDETKIT_LEGACY_HINTS=0 python -m sdetkit phase1-hardening
For migration planning and lane mapping, see Legacy command migration map.
You can also query migration guidance directly:
python -m sdetkit legacy migrate-hint phase1-hardening
python -m sdetkit legacy migrate-hint --format json phase1-hardening
python -m sdetkit legacy migrate-hint --all --format json
JSON output includes schema_version, mode, and migration recommendation fields (including deprecation_horizon) for automation parsing.
Contract expectations¶
Public kit commands are contract-oriented:
- machine-readable JSON with
schema_version - deterministic ordering and reproducible artifacts
- stable exit-code lanes (
0success,1policy/contract failure,2invalid input/usage)
Boost Scan Engine (advanced but supported)¶
boost scan is a deterministic local-only repo intelligence surface that ranks important local signals into one concise operator report.
Posture:
- no external services
- no network dependency
- stable machine-readable output via
operator-json
Recommended first command:
python -m sdetkit boost scan . --minutes 5 --max-lines 100 --format text
Operator JSON contract example:
python -m sdetkit boost scan . --minutes 5 --max-lines 100 --format operator-json
The v1 report (default mode) includes decision, score, top risks, recommended fixes, high-signal files, next PR candidates, and evidence files.
Boost Scan v2 (adaptive mode)¶
When --deep and/or --learn is enabled, Boost Scan switches to adaptive schema sdetkit.boost.scan.v2.
--deepbuilds repo index evidence via the local index engine.--learninitializes and ingests into local SQLite adaptive memory.--dbsets adaptive DB path (local file, do not commit).--index-outsets index evidence output location.--evidence-dirwritesboost-scan.json,boost-scan.txt,index.json, and memory evidence files when learning.
Examples:
python -m sdetkit boost scan . --deep --learn --db .sdetkit/adaptive.db --max-lines 100 --format text
python -m sdetkit boost scan . --deep --learn --db .sdetkit/adaptive.db --format operator-json
python -m sdetkit boost scan . --index-out build/sdetkit-index --evidence-dir build/boost-scan --format operator-json
Related references¶
- Command surface inventory (stability-aware)
- Stability levels
- Versioning and support posture
- Command taxonomy
- Umbrella architecture
sdetkit adoption-surface --format report¶
Render a Markdown-style operator readiness report while also writing the deterministic adoption-surface JSON artifact:
python -m sdetkit adoption-surface --root . --out build/sdetkit/adoption-surface.json --format report
Use this report for review-first adoption planning. It does not authorize automation, patch application, merging, or semantic-equivalence claims.