ConnScope is a unified network measurement, protocol capability verification, and connectivity monitoring framework. It bridges declarative protocol and proxy engine capability catalogs with executable client adapters, combinatorial parameter scenario generation, safe process lifecycle supervision, proxy readiness probing, and deterministic measurement record emission.
- Declarative Protocol & Engine Catalog: Canonical definitions covering protocols (VLESS, VMess, Trojan, Shadowsocks, WireGuard, OpenVPN, AmneziaWG, Exclave, Aether), transports (TCP, WebSocket, gRPC), security layers (REALITY, TLS, Plaintext), and parameter constraints with traceable source provenance.
- Engine Adapters & Lifecycle Supervision: Profile-driven client execution for Xray-core and sing-box with dynamic loopback port assignment, process containment, bounded timeouts, and automated secret credential masking (
[REDACTED]). - Combinatorial Scenario Matrix Planning: Automated test planning supporting Explicit, OFAT (One-Factor-At-A-Time), Pairwise, and Exhaustive Cartesian parameter variations with strict size bounds and dry-run safety by default.
- Hermetic Local Diagnostic Harness: Self-contained loopback testing pipeline using ephemeral ports and an in-memory HTTP 204 mock endpoint to verify client execution without external internet access or port conflicts.
- Built-in Measurement Probes: Standalone TCP connection, DNS resolution, TLS handshake, and HTTP request probes for local testing or distributed delegation to remote Agent nodes.
- Deterministic Record Contracts: Structured measurement records exported to JSON Lines (
.jsonl) and summary JSON formats adhering to a strict evidence hierarchy (Levels 0–5). - Zero Mandatory Runtime Dependencies: Built entirely on standard Python libraries.
ConnScope requires Python 3.11 or newer. It has zero mandatory third-party runtime dependencies.
python3 -m venv .venv
source .venv/bin/activate
pip install connscope-0.1.0-py3-none-any.whlpip install connscope-0.1.0.tar.gzgit clone https://github.com/ArshiaComPlus/connscope.git
cd connscope
python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]Audit installed proxy engine binaries (xray, sing-box) and profile support:
connscope catalog checkPreview parameter combinations without launching any external processes:
connscope matrix preview --engine xray --profile vless_tcp_noneExecute an authorized end-to-end verification using the isolated loopback diagnostic harness:
connscope matrix run --engine xray --profile vless_tcp_none --local-diagnostic --executeNote
The --execute flag is an explicit opt-in requirement. Without --execute, ConnScope operates in dry-run planning mode.
User / CLI / API
│
▼
Planning & Catalog Layer (ProtocolCatalog, ScenarioGenerator)
│
▼
Execution Coordinator (ScenarioCoordinator, LocalDiagnosticHarness)
├── Configuration Builders (JSON Synthesis & Redaction)
├── Engine Adapters (XrayAdapter, SingBoxAdapter, Layer3)
└── Probe Engine & Builtin Probes (TCP, DNS, TLS, HTTP)
│
▼
Structured Measurement Records (.jsonl, summary.json)
For full architecture details and design diagrams, see the Architecture Guide.
Comprehensive documentation is available in the docs/ directory:
- Documentation Index
- Getting Started Guide
- Quickstart Guide
- Architecture & System Design
- Feature Support Matrix
- Basic Network Probes
- Engine Adapters & Process Lifecycle
- Declarative Capability Catalog
- Parameter Scenarios & Combinatorics
- Scenario Execution Coordinator
- Local Diagnostic Harness
- Measurement Reporting & Formats
- Remote Agent & Distributed Nodes
- Layer 3 Interface Adapters
- Storage, Event Stream & Observatory API
- Security, Isolation & Redaction
- Troubleshooting & Diagnostics
- Development & Contribution Guide
- Release Process & Artifact Verification
- Glossary of Terms
ConnScope v0.1.0 is an initial release candidate. Please note the following boundaries:
- Evidence Semantics: Measurements marked as
local_diagnostic_verifiedreflect loopback execution and client process startup; they must not be presented as internet network performance metrics. - Encrypted Remote Profiles: Profiles utilizing encryption or TLS/REALITY handshakes (
vless_tcp_reality,vmess_ws_tls,trojan_tcp_tls, etc.) are validated locally via native binary syntax checks (-test/check); verified live data transfers require operator-supplied remote servers. - Layer 3 Privileges: WireGuard, AmneziaWG, and OpenVPN adapters are modeled and mock-tested; live creation of kernel network interfaces is disabled by default to prevent altering host routing.
- Android Execution: Exclave and Aether protocols are schema-modeled and catalogued; headless Android daemon execution is not implemented in v0.1.0.
ConnScope is released under the MIT License. Contributions, bug reports, and pull requests are welcome! Please review the Development Guide and Security Policy before submitting changes.