Skip to content

v0.2.0 — Credential Gateway, Agent Trace & AppSec Hardening

Latest

Choose a tag to compare

@Dimoncelli Dimoncelli released this 16 Nov 20:51

What's New in cold-jury v0.2.0

Credential Injection Gateway (--gateway\ / --sterile)

  • Keeps real provider credentials in the parent process and strips sensitive environment variables (\KEY, \TOKEN, \SECRET, \CREDENTIAL, \OAUTH, \PASSWORD) and \x-api-key\ from child juror processes.
  • Listens on an ephemeral \127.0.0.1\ port and injects an ephemeral \COLD_JURY_EPHEMERAL_TOKEN\ plus local *_BASE_URL\ overrides.
  • Validates destination hosts against a strict provider allowlist (\403 FORBIDDEN_HOST, \503 NO_CREDENTIAL), enforces a \2 MB\ body cap (\413 PAYLOAD_TOO_LARGE), and drains keep-alive sockets cleanly on shutdown.
  • \cold-jury doctor\ adds a \GATEWAY\ readiness column (\yes/
    o) and --json\ machine-readable output.

Agent Execution Trace Evaluator (\cold-jury trace)

  • Scores JSON, JSON array, and .jsonl\ agent traces across four deterministic metrics (\ ool_selection_accuracy, \mcp_compliance, \ urn_efficiency, \workflow_completion) and three probes (\delegation_quality, \instruction_compliance, \prompt_injection_detection).
  • Supports --deterministic, --json, and live juror judgment with automatic deterministic fallback.
  • Runs the secret shield before parsing and fails closed with exit code \2\ (\ race_unusable) if redaction leaves a trace unparseable or empty.

AppSec & Performance Hardening

  • Linear-time (\O(n)) bounded regexes in \src/shield.js\ (eliminating ReDoS backtracking on 300 KB+ diffs/traces) plus \P0\ detectors for JSON credentials and \Authorization: Bearer\ headers.
  • Enforces --max-bytes\ bounds (\1000\–\2000000), linear-time prompt scanning, and trace redaction before juror execution.
  • Zero runtime dependencies (
    pm ls --omit=dev\ empty). Verified with \241\ unit tests (\239\ pass, \2\ Windows symlink skips).