Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

coriqo-agents

Latest version: v1.1.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: raviroyale
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

coriqo-agents was last scanned on 25 Nov 2026 at version 1.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 25 Nov 2026.
  • Findings: No rules fired in version 1.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.0 LATEST 25 Nov 2026 No rules fired

No rules fired in 1.1.0

Findings

Findings for v1.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

coriqo-agents

The Python client for Coriqo. It records what an AI agent did on Coriqo's tamper-evident record, checks an agent's mandate before a deploy, and runs assurance tests on your own machines. Raw prompts, tool arguments and results are hashed in your process before anything is sent.

  • Tutorial: Record your first decision with the SDK
  • Changelog and versioning policy: CHANGELOG.md
  • Security reports: SECURITY.md
  • You need a Coriqo workspace and a service account key to send records.

Install

pip install coriqo-agents

Python 3.10, 3.11, 3.12 and 3.13. The base install needs only httpx. Add an extra for what you use:

Extra Adds
langchain CoriqoCallbackHandler (LangChain)
openai-agents CoriqoTracingProcessor (OpenAI Agents SDK)
langgraph, crewai, autogen the multi-agent handlers
mandate YAML mandate files for coriqo-agents mandate check
runner the customer-side assurance runner (Ed25519 signing)
receipts offline receipt verification, including timestamp tokens
spec JSON Schema checks for the open formats
otel-proto protobuf OTLP input to the runner
pyrit, inspect the PyRIT and Inspect engine adapters
garak no packages; the Garak adapter calls the garak command you install
pip install "coriqo-agents[langchain,mandate]"
coriqo-agents --version

Pin a major version in production: coriqo-agents>=1,<2. The versioning and deprecation policy is in CHANGELOG.md. To work on the package itself, pip install -e ".[test]" from this directory.

Which way in

Pick the first one that fits. You only need one.

  1. You already send OpenTelemetry. Point your OTLP/HTTP exporter at Coriqo and install nothing. Set OTEL_EXPORTER_OTLP_ENDPOINT to your Coriqo URL (the exporter adds /v1/traces; /api/v1/agents/otlp/traces also works behind a path prefix) and send the service-account headers: OTEL_EXPORTER_OTLP_HEADERS="X-API-Key=cq_sa_...,X-Tenant-Slug=acme_bank". JSON and protobuf are both accepted, gzip too. Name the agent with the span attribute coriqo.agent_id; without it, service.name is used.
  2. You build on the OpenAI Agents SDK. Add CoriqoTracingProcessor (below). One Runner.run is one decision.
  3. You build on LangChain. Pass CoriqoCallbackHandler in the run's callbacks (below). One top-level invoke is one decision.
  4. Several agents hand work to each other (LangGraph, CrewAI, AutoGen). Use the multi-agent handler for your framework (below). Each agent gets its own run, and each hand-off is recorded as a delegation edge.
  5. Anything else. Wrap the decision function with @track_decision, or call client.record_trace yourself.

Wiring your agent

from coriqo_agents import CoriqoAgentClient

client = CoriqoAgentClient(
    base_url="https://your-coriqo-instance.example.com",
    api_key="cq_sa_...",       # from POST /api/v1/service-accounts
    tenant_slug="acme_bank",   # returned alongside the key at creation
)

agent = client.register_agent(
    name="loan-underwriting-agent",
    mandate="Approve or deny consumer loan applications under $50,000",
    system="loan-origination",
    risk_tier="high",
    allowed_tools=["credit_bureau_lookup", "approve_loan", "deny_loan"],
)
agent_id = agent["agent_id"]

# after your agent finishes a decision:
client.record_trace(
    agent_id,
    inputs={"applicant_id": "a-123", "requested_amount": 12000},
    output="Approved: income verified, credit score 720, DTI 0.31 within policy",
    tool_calls=[
        {"step": 1, "tool": "credit_bureau_lookup", "args": {"applicant_id": "a-123"}, "result": {"score": 720}},
        {"step": 2, "tool": "approve_loan", "args": {"amount": 12000}, "result": {"status": "approved"}},
    ],
    grounding_refs=["evt_a1b2c3..."],
    subject_ref="acct-88431",       # hashed locally, see below
    subject_type="account",
    runtime={"provider": "anthropic", "model": "claude-sonnet-4",
             "prompt_hash": "sha256:...", "temperature": 0},
)

args/result in tool_calls are hashed locally before the request goes out, so the raw values never leave your process. inputs is different: it IS sent to Coriqo as-is, then hashed on arrival and never stored. Don't put anything in inputs you can't have Coriqo's backend see at all, even briefly in transit; use tool_calls' local hashing (or your own pre-computed hash) for that.

Subjects

subject_ref says who or what a decision was about — an account number, a customer id, a claim number. It is hashed in your process (hash_subject_ref, the same sha256 used for tool-call args) before the request is sent, so Coriqo holds only the digest.

What you get: every decision about the same subject groups together, and traces_by_subject answers "what did our agents decide about this person" when a complaint or a subject-access request lands. What it costs: the digest is opaque, so Coriqo can't display the subject's name anywhere, can't match on a partial reference, and can't reverse the hash for you. Anyone querying has to already know the raw identifier.

for trace in client.traces_by_subject("acct-88431", limit=50):
    print(trace["occurred_at"], trace["agent_id"], trace["output"])

Pass a value already starting sha256: if you hash identifiers yourself. subject_type is stored as plain text — keep identifiers out of it.

runtime is a dict describing what actually produced the decision (provider, model, prompt hash, settings), stored verbatim as configuration — so keep customer data out of it. Coriqo fingerprints it and seals a runtime_changed event when it differs from this agent's previous decision: that is how a swapped model or an edited prompt becomes visible under an otherwise unchanged mandate. Passing a bare string here is rejected 422.

use is optional tags saying what the decision was used for: purpose, segment, channel and decision_type, any subset, each up to 200 characters:

client.record_trace(agent_id, output="declined",
                    use={"purpose": "credit decision", "segment": "retail", "channel": "online"})

If the bank turns on boundary checks (Settings → Model governance), Coriqo compares the tags with the approved use of the model the agent runs on. A value outside it is reported under Within approved boundaries and raises one finding per value. The decision is always recorded; nothing is blocked. The tags are kept under runtime.use and do not count as a runtime change. The same use field is accepted on POST /api/v1/evidence-records.

Review outcomes

When a human reviews a decision, record what they found. Without this Coriqo can report how much an agent decided but not how often it was right.

client.record_outcome(
    agent_id,
    trace_id,
    outcome="overturned",   # confirmed | overturned | corrected | inconclusive
    detail="Underwriter reversed on appeal — bureau file had a duplicate tradeline",
)

Anything outside those four values raises ValueError before a request is made. The outcome is appended to the decision's sealed chain rather than rewriting it, so it can't be taken back — record it once the review is final.

Failed runs

A run that crashed or timed out should be closed as failed, not left open. An open trajectory reads as still running, which makes a stalled fleet look healthy.

run = client.start_trajectory(agent_id, goal="Underwrite application a-123")
try:
    ...  # your steps, each recorded with trajectory_id=run["trajectory_id"]
except Exception as e:
    client.fail_trajectory(agent_id, run["trajectory_id"], reason=f"{type(e).__name__}: {e}")
    raise
else:
    client.complete_trajectory(agent_id, run["trajectory_id"])

Close any sub-runs first — both fail_trajectory and complete_trajectory seal a final status.

Eval and adversarial runs

When an eval suite or a red-team suite finishes, post the result. It is sealed onto the agent's current mandate version, the same chain a decision trace lands on, so the evidence says which mandate the numbers were measured against.

from datetime import datetime, timezone
from coriqo_agents import eval_metric, hash_eval_artifact

dataset = {"dataset": "consumer-loan-holdout-2026Q2", "rows": 4821, "seed": 17}

run = client.record_eval_run(
    agent_id,
    suite_name="hallucination-bench",
    suite_version="2026.2",
    scoring_method="llm_judge:claude-opus",
    metrics=[
        eval_metric("accuracy", 87.0, direction="higher_is_better",
                    scale=(0, 100), threshold=80.0),
        eval_metric("hallucination_rate", 0.03, direction="lower_is_better"),
    ],
    artifact_inputs=dataset,
    occurred_at=datetime.now(timezone.utc),
    notes="Quarterly holdout run",
)
print(run["artifact_hash"] == hash_eval_artifact(dataset))   # True

client.record_adversarial_run(
    agent_id,
    suite_name="promptfoo-redteam",
    suite_version="0.9.1",
    attempt_class="prompt_injection",
    attempt_count=250,
    success_rate=0.012,
    artifact_inputs={"corpus": "owasp-llm-top10", "variants": 250},
)

Read them back with list_eval_runs(agent_id) and list_adversarial_runs(agent_id). eval_readiness(agent_id) reports whether the recorded evaluation record is current and inside the tenant's thresholds; it is advisory and never blocks a promotion.

Both calls need a mandate version on the agent — a run has nothing to anchor to without one, and you get a CoriqoAPIError with status 409.

Declare what your numbers mean

eval_metric("accuracy", 0.94) is enough to record a score. It is not enough to have it judged if the number is not on a 0..1 scale: 87 with no declared scale reads as a score of 87 on a 0..1 metric, and the readiness check skips it. Four optional arguments fix that:

  • direction — "higher_is_better" or "lower_is_better", overriding the guess made from the metric name. A direction is not a unit, so it does not on its own make a value outside 0..1 judgeable.
  • scale — the bounds you report in, (0, 100) for a percentage. Also accepts {"min": 0, "max": 100}.
  • threshold — an explicit bar in the metric's own units, compared directly, with no normalization and no tenant floor. Wins over scale.
  • threshold_direction — only when the bar points the other way from direction.

Leave one unset and it is left out of the request, so a bare {"metric", "value"} entry stores exactly what it always did.

The eval inputs are hashed locally

Coriqo stores a sha256 of an eval's inputs and never the inputs themselves. Pass artifact_inputs= and the SDK computes that digest in your process and sends the 64 hex characters — the dataset does not cross the network at all. hash_eval_artifact() computes the same digest on its own if you want to record it elsewhere.

The digest matches what the server derives from the same object, byte for byte; tests/test_eval_runs.py posts one dataset both ways and asserts the two stored hashes are equal, so a drift in either canonicalisation fails a test.

Send artifact_inputs or artifact_hash, never both. A supplied hash beside the real inputs could contradict them, and the sealed record promises the hash is re-derivable from what was hashed, so the server rejects the pair with a 422 and the SDK raises a ValueError before spending the round trip.

hash_inputs_locally=False sends the raw inputs for the server to hash. The only reason to reach for it is checking that the two canonicalisations still agree.

entry_method

Neither call takes an entry_method argument. Its two caller-settable values, manual_entry and csv_import, both mean a person transcribed the number off a report, and a harness posting its own results is not that. The server records an SDK post as api. Passing entry_method= raises a TypeError.

Device-signed posts

The same two operations also exist under /api/v1/agent-runtime, signed by an enrolled device keypair rather than a service-account key. Pass device_signed=True to target those paths. This SDK does not sign requests (byoai-runtime does), so it only works if the http_client you handed to CoriqoAgentClient adds the ed25519 signature headers itself. The runtime route refuses an X-API-Key outright. The server records those posts as device_signed and a body field cannot override it.

Silence detection

register_agent(..., expected_report_interval_minutes=60) tells Coriqo how often this agent should be reporting. An agent that goes quiet past that interval is surfaced as silent instead of healthy. Set it from the agent's real cadence including idle periods — too tight a value alerts every weekend. Leave it unset and no silence check runs.

Decorator

For an agent that isn't built on LangChain — wrap the function that makes the decision and every call is recorded automatically:

from coriqo_agents import track_decision

@track_decision(client, agent_id)
def approve_loan(applicant_id: str, requested_amount: int) -> str:
    # ... your decision logic ...
    return "Approved: income verified, credit score 720"

The function's arguments become inputs (bound to their parameter names, e.g. {"applicant_id": "a-123", "requested_amount": 12000}), its return value becomes output. A raised exception is still recorded (as the output) and then re-raised — the decorator never swallows your function's errors. Works on async def functions too.

To tag the subject, pass a function of the bound inputs (or a plain string if every call is about the same subject); it goes through the same local hashing:

@track_decision(client, agent_id, subject_ref=lambda i: i["applicant_id"],
                subject_type="applicant",
                runtime={"provider": "openai", "model": "gpt-4o"})
def approve_loan(applicant_id: str, requested_amount: int) -> str:
    ...

Only captures inputs/output; for tool_calls/grounding_refs, call record_trace directly instead (or from inside the decorated function, alongside your own logic).

LangChain

from coriqo_agents.langchain import CoriqoCallbackHandler

handler = CoriqoCallbackHandler(client, agent_id)
agent.invoke({"input": question}, config={"callbacks": [handler]})

One top-level run is one decision. Nested sub-chains fold into it. Each tool call is paired with its result by LangChain's run_id, so parallel tool calls cannot swap results, and a tool that raised is recorded with its error. The model that answered is the trace's runtime, tokens are summed across the run, and latency is measured. A run that raised is still recorded, as Chain run failed: .... If Coriqo is unreachable the trace goes to the local outage buffer instead of failing your run. A suspended agent makes invoke raise AgentSuspendedError; the trace is sent when the run ends, so that run has already acted. To stop a suspended agent before it acts, check client.get_agent(agent_id) first. The handler can't set grounding_refs (LangChain has no notion of which sealed Coriqo record a decision relied on): call record_trace yourself when you need them.

OpenAI Agents SDK

from agents import add_trace_processor
from coriqo_agents.openai_agents import CoriqoTracingProcessor

add_trace_processor(CoriqoTracingProcessor(client, agent_id="credit-limit-agent",
                                           agent_ids={"Underwriter": "underwriting-agent"}))

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases coriqo-agents

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229