Skip to main content

ProbeGate CLI 0.2.0

Cloud commands from 0.1.0 remain available. New scan finds supported local chatbot endpoints/RAG hints; local asks consent and tests a running loopback chatbot through the platform's scoped runner protocol. 0.2.0 is a local build until separately published; the existing PyPI 0.1.0 does not include these commands.

python -m pip install ./cli/dist/probegate_cli-0.2.0-py3-none-any.whl
probegate login --platform https://your-platform.example --email you@example.com
cd path/to/running-chatbot
probegate scan
probegate local
# Optional hints when a port cannot be inferred:
probegate local --endpoint http://127.0.0.1:8000 --project <uuid> --suite <uuid>
probegate local --mode agent --max-requests 10 --max-steps 5 --max-tokens 10000 --timeout-s 120
probegate local --resume <private-journal-path>

Discovery reads bounded project text and live loopback OpenAPI, never executes project code, reads .env, starts applications or sends chat messages. RAG findings are signs from code, not verified retrieval. First support: REST JSON POST with one string-message input and an unambiguous string-answer mapping, running FastAPI/OpenAPI. Unknown or unsupported OpenAPI operations require input instead of guessing. Bearer auth is detected and prompted locally after consent; other auth schemes require integration. No browser/SSE/WebSocket.

local automatically selects only a single matching project/suite/endpoint, otherwise asks. An existing published suite is required. Owner privileges are needed for initial runner/target enrollment and authorization. Credentials use OS keyring; --auth prompts for an optional local bearer token after consent. No plaintext fallback. Only loopback, no LAN/subnet scan. Consent covers one probe, displayed budgets and sending redacted conversations to the platform and its Judge/Reason providers. No source or target credentials are uploaded.

The server must deploy API_SPEC §10: migration 036_local_runner, LOCAL_RUNNER_ENABLED=true, LOCAL_RUNNER_PEPPER (random secret, at least32characters), and python -m backend.scripts.local_scheduler. Backend and scheduler share database, flag, pepper and encryption key. Old/disabled servers fail explicitly, without cloud fallback. See deployment and evidence.

Local Ctrl+C stops new requests and best-effort cancels; cloud watch Ctrl+C still only detaches. Lost claims/crashes never resend target requests. Recovery replays only run creation with the same key or a redacted submission. User-only journals are capped at 100files/20MiB/24hours. Redacted client leak signals require human review.

Existing cloud commands

For cloud commands, assessments execute on existing platform workers. Prepare Project, authorized Target and published Suite on the platform first. No backend, DB, Redis, MinIO or LLM key is required on the client.

Build/install with Python 3.12 (from repository root):

python -m pip install build
python -m build --wheel cli
python -m pip install cli/dist/probegate_cli-0.2.0-py3-none-any.whl
probegate --help

Development/checks: python -m pip install -e "cli[test]", then make lint and make test. Existing root tests remain enabled. PYTHON selects the interpreter; PYTEST_ARGS supplies optional pytest arguments. GNU Make is needed for make commands.

probegate login --platform https://assessment.example --email qa@example.org
probegate init --project <uuid> --target <uuid> --suite <uuid> --suite-version 1.0 --category QUALITY --overwrite
probegate run --mode pipeline --max-requests 20 --timeout-s 120 --yes --json
probegate run --mode agent --max-requests 10 --timeout-s 120 --max-steps 10 --max-tokens 2000 --yes --json
probegate watch --run <uuid>
probegate watch --run <uuid> --once --json
probegate findings --run <uuid> --json
probegate stop --run <uuid> --yes --json
probegate report --run <uuid> --format json --output report.json --json
probegate report --run <uuid> --format html --output report.html
probegate logout

--platform is an origin, without /api/v1; the client adds that existing prefix. Remote origins require HTTPS. HTTP is accepted only for explicit localhost/127.0.0.1/::1 origins. TLS verification stays enabled. Redirects and ambient HTTP proxy configuration are disabled, so bearer credentials cannot be forwarded to a redirected origin.

Passwords are prompted with hidden input, never accepted as arguments. Native Windows Credential Manager and Linux Secret Service are supported secure stores. A missing, locked or unsupported backend fails loudly. There is no plaintext fallback. An explicit PROBEGATE_TOKEN overrides the saved token; logout cannot unset it in the parent shell or revoke the JWT server-side. A saved token is scoped to platform origin and account. Use PROBEGATE_ACCOUNT or init --account to select an account for data commands.

Config contains non-secret defaults only. Paths default to platformdirs user config/state locations. Override them with PROBEGATE_CONFIG (file) and PROBEGATE_STATE_DIR (directory). Configuration precedence is flags > PROBEGATE_PLATFORM/PROBEGATE_ACCOUNT > config. Resource IDs, category, version and polling interval come from flags/config; resource-ID environment variables are not supported. Poll interval defaults to 2 seconds and may be changed by init --polling-interval or watch --interval (0.2–60 seconds). Malformed config fails; repair it or select a new config file. init replaces existing config only after interactive confirmation or --overwrite.

Run budgets are mandatory. Each invocation creates one PIPELINE or independent AGENT run. Project defaults are explicitly disabled (use_project_defaults:false), so they cannot silently add strategies/rubric/profile. Agent uses the server's documented strategy defaults; this CLI does not expose custom strategies or pipeline_first. Confirmation displays the exact request plus Project ID. Noninteractive submission and stop require --yes. Target authorization, suite publication, tenant/RBAC and execution limits continue to be enforced by the backend and worker.

Before creating a run, the client writes an atomic non-secret intent containing UUID, origin, Project, idempotency key, exact body, timestamp and nullable run ID. If POST loses its response, keep that intent and resume explicitly:

probegate run --resume-intent <intent-uuid> --yes --json

Select the original origin through config or PROBEGATE_PLATFORM; resume forbids all origin/payload flags. It reuses the saved Project/body/key. If the run ID was already saved, it returns that ID without POST. If response persistence failed after creation, resubmitting the same intent still recovers the server run. Never edit a journal to create a new payload or remove it while recovering. Same key/different body is a backend 409. POSTs never automatically retry. Auth failures require explicit login and explicit retry; the client never replays writes after login automatically.

GET retries transport errors, 5xx and 429 at most three times after the initial attempt. Delays are 1/2/4 seconds; Retry-After seconds/date is capped at 30 seconds per retry. Other HTTP errors do not retry. Each HTTP request has a 15 second timeout, separate from the run's worker execution timeout. Watch exits after exhausted retries without changing server state. Ctrl+C detaches (130) and prints attach/stop instructions.

Agent progress means reserved steps, and remaining means unused capacity. COMPLETED does not imply PASS. Finding states remain server-owned; pending findings are not confirmed bugs. Status does not depend on findings/report permissions. Stop verifies the current server status; an unverified stop request fails with guidance to watch.

All terminal output is plain, without animation or markup interpretation. Data commands accept --json: one complete document on stdout, diagnostics on stderr. Watch JSON waits for terminal status unless --once is selected. Report JSON stdout retains the original report schema; files always retain exact server response bytes. Downloads validate media type/JSON schema_version 1.0 before atomic publication. Existing files require --overwrite; failed downloads keep any previous destination. Files are not opened automatically. Reports may contain sensitive redacted evidence; protect and share downloaded files under your organization's rules.

Exit codes: 0 successful operation/COMPLETED (even with FAIL findings); 1 API/auth/network, local I/O, invalid server report or FAILED; 2 invalid parameters/config; 3 STOPPED; 130 interrupted watch. Stop returning STOPPED also exits 3. No quality gate exit policy.

Evidence and limitations: verification, contract review. Windows and Ubuntu WSL wheel checks do not certify staging, a native Linux desktop credential store or all Linux systems. Extension and CI gate remain outside scope. Local support is described above.

Metadata

Release files for probegate-cli 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for probegate-cli 0.2.0
File Size Uploaded Provenance Actions
probegate_cli-0.2.0.tar.gz 36.0 kB Without provenance Details for probegate_cli-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for probegate-cli 0.2.0
File Interpreter ABI Platform Actions
probegate_cli-0.2.0-py3-none-any.whl Python 3 none any Details for probegate_cli-0.2.0-py3-none-any.whl

Total release size: 63.8 kB

Release files / probegate_cli-0.2.0.tar.gz

Download URL probegate_cli-0.2.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a48d3ee06e4402e3ab0bf971418e66cf21349b5b27e3bcc7f186c46373ee1db2
BLAKE2b-256 checksum
How to use checksums
8321e329b427019ba4cde0678d94840778a2f3955238cab175a11b0969dfbddc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / probegate_cli-0.2.0-py3-none-any.whl

Download URL probegate_cli-0.2.0-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3661bddf9459b6521d7b1c9ff87479811fe9df8984fa9dd193bea748ceee7db
BLAKE2b-256 checksum
How to use checksums
67a6212f5e96994a0f6ccb5fceaeb6a7b147277dedb8d68cef2defa9ecabb363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for probegate-cli 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page