Skip to main content
Glama
Quark-Protocol (QXP v1.0)

Quark-Protocol (QXP v1.0)

by pjrpjr

Quark-Protocol (QXP/1.0 · v1.0.0)

Apache-2.0 Open Protocol, 30 Pure-Static Task/Domain Adapters, 5 Free Offline Compliance & Trade SaaS Killers, Pure-Stdlib CLI/MCP Server & LH-100 Constitutional CI Gate.

UPL & Non-Advisory Disclaimer: Quark-Protocol (QXP/1.0) and its offline killers/ utilities provide informational pre-audit checks and declarative engineering parameters only. Nothing in this repository constitutes legal, tax, customs-broker, accounting, medical, or regulatory advice. Regulated sign-offs and statutory filings require independent licensed professionals.

Trademark & Independence Notice: Independent alternative; not affiliated with or endorsed by Zonos, FOSSA, Castellum.AI, Avalara, or OneTrust.


Kill Your $500/mo Compliance & Trade SaaS Bill

All 5 offline verifiers in killers/ run 100% locally on Python 3.12+ standard library only (zero API keys, zero network calls, zero third-party runtime dependencies, deterministic SHA-256 verification receipts, ~9.6 ms combined runtime across all 5 sample payloads — see benchmarks/BENCHMARK_REPORT.md). When you need live government/carrier feeds, hardware-attested receipts, or zero-custody escrow clearing, upgrade via --upgrade-live to the Sovereign Live Gateway.

Incumbent SaaS Category

Public 2026 Incumbent Pricing (Verified / Market)

$0 Apache-2.0 Offline CLI (quark kill ...)

Sovereign Live Gateway (/mcp, /llms.txt, $49 /crucible)

Zonos (https://zonos.com/pricing)Cross-border duties, VAT & de minimis

$2/order + 10% + $2,000–$4,000 setup & Classify tiers

quark kill dutyslice2026 US post-de-minimis + EU EUR 3/HS (<EUR 150), all 27 EU VAT rates, US MFN/301/IEEPA, MPF/HMF, Form 5106 physical-address check

Live CBP ACE / eRulings & EU EBTI broker routing + FBO / Escrow.com clearing

FOSSA (https://fossa.com/pricing)SBOM & open-source license compliance

Free cap at 25 devs / 5 repos; enterprise custom quote (~$15k–$45k+/yr market)

quark kill cleansbomSPDX 2.2/2.3 & CycloneDX 1.4/1.5/1.6 parser, recursive SPDX AND/OR/WITH evaluator, M&A contagion gate (AGPL/SSPL blocker)

Continuous registry drift monitoring + Tier-A IP counsel blind-review sign-off (M-RCP-35)

Castellum.AI (https://www.castellum.ai/)Sanctions, entity & TIN/LEI screening

Custom enterprise quote

quark kill clearscreenUnicode NFKD + multi-metric fuzzy matching (Levenshtein, Jaccard, Dice, Soundex), IRS EIN/TIN format check, ISO 17442 LEI MOD-97-10, FCRA § 611 guard

Real-time OFAC/BIS/GLEIF vLEI & IRS TIN Match cryptographic audit receipts

Avalara Cross-Border (https://www.avalara.com/us/en/products/international.html)HTS classification & rules of origin

Custom quote (~$50k–$75k+/yr market)

quark kill tariffguardHTS-10/HS-6 validator, 2026 Section 301/232 alerts, legacy citation trap detection, CTH/CTSH & RVC Build-Down/Build-Up origin math

15-minute sovereign gazette hot-patching + licensed customs broker POA & eRulings filing

OneTrust Data Mapping (https://www.onetrust.com/pricing/)PII/PHI discovery & cross-border transfers

Custom quote (~$19k–$32k+/yr market)

quark kill privacysbomLuhn-validated PAN/CVV redline detector, all 18 HIPAA Safe Harbor identifiers (45 CFR § 164.514(b)(2)), GDPR Ch. V SCC/TIA matrix (zero raw PII echoed)

Confidential enclave (SEV-SNP/TDX) attestation + HIPAA expert statistical certification

(Pricing notes: Zonos and FOSSA caps/rates reflect public pricing pages; annual enterprise ranges for FOSSA, Avalara, and OneTrust reflect public enterprise market estimates; Castellum.AI uses custom enterprise quoting.)


Related MCP server: ComplyEdge TrustLint

1-Line Install & Quickstart (v1.0.0)

Requires Python 3.12+ (pure stdlib; dependencies = [] in pyproject.toml):

curl -fsSL https://raw.githubusercontent.com/pjrpjr/quark-protocol/main/install.sh | sh

Or run directly from a cloned checkout (or install editable/wheel via pip install .):

git clone https://github.com/pjrpjr/quark-protocol.git
cd quark-protocol

# Health check, constitutional verification & 5-killer benchmark harness
python3 -E -s -B -W error -m quark_cli doctor
python3 -E -s -B -W error -m quark_cli lh100 spec/tda/
python3 -E -s -B -W error -m quark_cli check --strict
python3 -E -s -B -W error examples/verify_all_5_killers.py

# Run all 5 offline compliance & trade SaaS killers
python3 -E -s -B -W error -m quark_cli kill dutyslice killers/dutyslice/sample_input.json --pretty
python3 -E -s -B -W error -m quark_cli kill cleansbom killers/cleansbom/sample_input.json --pretty
python3 -E -s -B -W error -m quark_cli kill clearscreen killers/clearscreen/sample_input.json --pretty
python3 -E -s -B -W error -m quark_cli kill tariffguard killers/tariffguard/sample_input.json --pretty
python3 -E -s -B -W error -m quark_cli kill privacysbom killers/privacysbom/sample_input.json --pretty

# Append --upgrade-live on any killer to attach Sovereign Live Gateway & $49 Crucible routes
python3 -E -s -B -W error -m quark_cli kill dutyslice killers/dutyslice/sample_input.json --upgrade-live --pretty

# Preview cost compression & TDA candidates for any incumbent SaaS (local, zero custody)
python3 -E -s -B -W error -m quark_cli crucible-preview Zonos --monthly-usd 500 --category customs --pretty

# Inspect Proof Graph outcome-trust architecture, Open Protocols & gateway routes (--live fetches live JSON)
python3 -E -s -B -W error -m quark_cli proof-graph
python3 -E -s -B -W error -m quark_cli protocols
python3 -E -s -B -W error -m quark_cli route
python3 -E -s -B -W error -m quark_cli mcp

Benchmarks & Sovereign Live Gateway (/proof-graph, /protocols, $49 /crucible)

Configured via spec/gateway_endpoints.json and overridable with QUARK_GATEWAY_URL, QUARK_MCP_URL, or QUARK_CRUCIBLE_URL:

  • Live MCP Endpoint: https://raf.fastmesh.dev/mcp

  • Agent Discovery (llms.txt): https://raf.fastmesh.dev/llms.txt

  • SaaS Slaughter Bounty Crucible ($49): https://raf.fastmesh.dev/crucible (API: /v1/crucible/bounties)

  • Reality Proof Graph Explorer: https://raf.fastmesh.dev/proof-graph (JSON: https://raf.fastmesh.dev/v1/proof-graph)

  • Open Protocols Console (M-RCP-07, M-RCP-35, V2-OP-10): https://raf.fastmesh.dev/protocols


Protocol Architecture (QXP/1.0)

  1. 16 Frozen Meta-Quark Axioms (spec/mq16.json): Four immutable families (MQ-01..16) covering sovereign charters & hard wait clocks (Q1), zero-custody clearing & escrow (Q2), hardware truth & decoupled sign-off (Q3), and shared physical/orbital/logistics capacity (Q4).

  2. 30 Pure-Static TDAs (spec/tda/): Covering all 4 generations of the 36-RAF V2.0 closed catalytic network (Gen 0 $13,600 + Gen 1 $22,700 + Gen 2 $18,200 + Gen 3 $13,600 = $68,100, supporting 17 Wave-1 orthogonal cores $65,000 for $133,100 total, SCC = 17/17 = 100%).

  3. Three Non-Waivable Pillars:

    • V2-OP-05: $0 third-party platform custody (Bank-as-Record FBO / licensed MoR / Base USDC x402).

    • V2-OP-09: Physical read-only hardware binary signing (0 PLC/equipment writeback).

    • V2-OP-14: Objective-receipt Escrow.com / DACA lockboxes.

    • (Ablating all three pillars collapses SCC -> 1 and R_0 -> 0.19 within Day 10–14.)

  4. 20% Source-Split Maintainer Royalties (ROYALTY_PROTOCOL.md): Contributors of active LH-100-verified TDA packs earn 20% source-split revenue ($0 platform custody, IRS IRIS 1042-S / W-8BEN-E compliant).

  5. Open Trust & Witness Protocols:


Contributing & License

Available Tools

7 tools
quark_cleansbomC

Parse SPDX/CycloneDX JSON, evaluate SPDX license expressions, and classify M&A copyleft contagion risk (independent alternative to FOSSA).

Inputs: payload, upgrade_live.

quark_clearscreenC

Normalize Unicode names, run deterministic fuzzy watchlist matching, validate IRS EIN/TIN and ISO 17442 LEI checksums (independent alternative to Castellum.AI).

Inputs: payload, upgrade_live.

quark_dutysliceC

Compute US post-de-minimis / EU EUR 3 per HS line customs, VAT, MPF, HMF, and Form 5106 checks (independent alternative to Zonos).

Inputs: payload, upgrade_live.

quark_lh100_validateC

Run the LH-100 Anti-Second-Gen-Glue & Constitutional PR Gate on a TDA JSON payload or repository path.

Inputs: tda, path.

quark_privacysbomB

Scan PII/PHI inventories with Luhn PAN detection, 18 HIPAA Safe Harbor checks, and GDPR Ch.V transfer checks without echoing raw PII (independent alternative to OneTrust Data Mapping).

Inputs: payload, upgrade_live.

quark_tariffguardB

Validate HTS-10/HS-6 codes, flag Section 301/232 and 19 CFR 177.9 traps, and verify CTH/CTSH/RVC Rules of Origin (independent alternative to Avalara Cross-Border).

Inputs: payload, upgrade_live.

quark_tda_lookupB

Look up static QXP/1.0 TDA packs under spec/tda/ by tda_id, generation, or v2_op.

Inputs: v2_op, tda_id, generation, include_details.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 7 tools

    Disambiguation3/5

    Several tools overlap by domain: dutyslice and tariffguard both concern customs/trade compliance, cleansbom and privacysbom both involve SBOM-style inventories, and lh100_validate and tda_lookup both target TDA payloads. The descriptions do distinguish them, but the proprietary terminology and paired domains create avoidable misselection risk.

    Naming Consistency3/5

    All tools share the quark_ prefix and lowercase snake_case style, which helps. However, the suffixes mix patterns: concatenated verb-noun forms like cleansbom, noun compounds like tariffguard, and explicit verb_noun forms like tda_lookup and lh100_validate.

    Tool Count4/5

    Seven tools is a reasonable size for a focused compliance-validation server. The surface is compact, though the breadth of domains means each tool carries substantial responsibility.

    Completeness3/5

    The set covers several clearly named compliance checks, but the TDA side appears incomplete: tda_lookup only retrieves static packs, while lh100_validate validates a narrow LH-100 gate. There is no general TDA creation, editing, listing, or validation lifecycle, and other proprietary protocol operations may be missing.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP security server for AI coding agents. 12 tools: pre-install guardian, vulnerability audit, supply-chain attack detection via static code analysis, and CycloneDX 1.6 SBOM generation. Zero runtime dependencies.
      15
      61 npm
      15
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Offline MCP server that checks and scans your own AI prompts and outputs against a local compliance rule corpus. Returns rule ID, severity, citation, and remediation per finding — no API key, Apache 2.0.
      3
      3
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Zero-dependency Python 3 MCP server for 36-month B2B SaaS TCO calculations (Zapier, Make, n8n, Railway, CRMs) and live SEO / llms.txt readiness audits.
      MIT