QWED
v7.2.2 GitHub 60

Type to search pages, engines and advisories.

    Looking for API details?Search the docs

    Engines

    Every engine sits in one of three tiers. The tier decides what the engine is allowed to claim: only a deterministic proof can make a result verified.

    Three tiers

    TIER 1Proof engines can return verifiedOutput: evidence, with a proof_ref
    TIER 2Policy guards block or unverifiableOutput: a decision, with a trace
    TIER 3Advisory engines advisory checksOutput: analysis for review

    A request flows through the tiers in order. Proof engines try a deterministic proof, policy guards apply runtime rules, and advisory engines add structured diagnostics. Since v6.0.0 every path returns the same DiagnosticResult model.

    Proof engines

    Proof engines use symbolic solvers and formal methods. Verified always comes with a proof_ref. For the domains they cover, an answer either has a reproducible proof or it is not verified.

    EngineBackendDomain
    MathSymPy + DecimalArithmetic, calculus, matrices, NPV/IRR
    LogicZ3SAT/SMT, quantifiers, bit-vectors
    SQLSQLGlot ASTQuery structure, complexity, schema
    CodeMulti-language ASTPython, JS, Java, Go security analysis
    SchemaPydantic + MathJSON structure and embedded calculations
    StatsPandera + WasmData-frame invariants, sandboxed execution
    SymbolicCrossHairReference DiagnosticResult engine
    {
      "status": "VERIFIED",
      "engine": "QWED-Math-v2",
      "proof_ref": "sha256:9f2c...",
      "evidence": {"expression": "2+2", "value": 4}
    }

    Policy guards

    Policy guards apply deterministic rules to inputs, context and tool calls at runtime. The same input against the same policy always gives the same decision. They never produce a proof, so they can block or hold, but not verify.

    GuardPurpose
    SystemGuardSystem-prompt integrity and policy binding
    ConfigGuardSecret detection and configuration policy
    RAGGuardRetrieval-context injection and poisoning defence
    MCPPoisonGuardMCP tool definition validation
    ExfiltrationGuardUnauthorised data-movement prevention
    SelfInitiatedCoTGuardReasoning-flow integrity
    SovereigntyGuardData residency and routing policy
    StartupHookGuardStartup and hook integrity
    ProcessVerifierMilestone-based process validation
    {
      "status": "BLOCK",
      "engine": "ConfigGuard",
      "reason": "SECRETS_DETECTED",
      "decision_trace": ["match:OPENAI_API_KEY@api_key"]
    }

    Advisory engines

    Advisory engines handle questions where no formal proof exists. Their heuristic and model-based results are recorded as advisory checks, which are inputs for review and never a verdict by themselves. Graph and Image are hybrids: their deterministic path can still return verified. A model fallback never overrides a deterministic result.

    EngineDeterministic pathAdvisory only
    FactTF-IDF and entity matching. Capped at unverifiable, or blocked when refuted.LLM fallback
    GraphA full triple match can return verified.NLI fallback
    ImagePixel and metadata evidence can return verified with a proof_ref.VLM cross-check
    ReasoningNone.LLM providers and heuristics
    ConsensusKeeps each engine’s verified, unverifiable or blocked status.Non-unanimous agreement

    Other checks

    Taint analysis follows untrusted input through generated code and blocks it before it reaches a sensitive sink such as SQL or a shell. Domain packages such as qwed-finance add their own guards on top of these engines.

    Full reference for every engine, including inputs and result fields: docs.qwedai.com/engines.