# SALT19 Agent Decision Preflight

> SALT19 Agent Decision Preflight is a paid API for AI agents from api.salt19.com, paid per call via x402, $0.45/call, status unknown (last checked 2026-09-15).

Performs a pre-flight safety and compliance check on an npm package or GitHub repository, returning a GO/NO-GO verdict with vulnerability data and a signed evidence receipt.

## Facts

- Endpoint: POST https://api.salt19.com/v1/agent-decision-preflight
- Price: $0.45/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/salt19-agent-decision-preflight-2d9c172e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0VQfsl3REaeIJDBnH1skJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability salt19-agent-decision-preflight-2d9c172e -d '<json body>'
```

Example prompt: Before I install hono@4.13.3 as an npm dependency, run a decision preflight check on it — flag any OSV vulnerabilities, make sure it has a license, and tell me if it's a GO or NO-GO.

## When to prefer this

Choose this endpoint when an AI agent or automated pipeline needs a structured, signed GO/NO-GO decision on an npm package or GitHub repository before installation or use — especially when you need an auditable evidence receipt, vulnerability scoring, and license/recency constraints evaluated in a single call. Prefer it over raw OSV or GitHub API queries when you want a confidence-scored verdict with cryptographic provenance rather than raw data.

## Known failure modes

- Unknown or misspelled package name returns an error or low-confidence result
- Version string not found in registry causes evidence lookup failure
- OSV database unavailable may result in degraded confidence score
- Missing required fields (decision_type or target.package) returns a 400-level error
- Payment not completed (x402 flow failure) prevents response delivery

## How this service works

SALT19 is an independent applied AI systems lab behind EvoMind governed cognition, the MCP-native Agent Utility Grid, the ARCS research community, AeroClear UAS flight intelligence, and practical software for real-world work.

## Output

Returns a JSON object with a numeric safety score (0–100), a verdict string ('GO' or 'NO-GO'), a list of human-readable reasons, a confidence float (0–1), an evidence object with package name, version, and vulnerability count, and a receipt containing an evidence SHA-256 hash and a verification URL for auditing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "object",
   "properties": {
    "repo": {
     "type": "string",
     "maxLength": 512
    },
    "package": {
     "type": "string",
     "maxLength": 214,
     "minLength": 1
    },
    "version": {
     "type": "string",
     "maxLength": 64
    }
   },
   "additionalProperties": false
  },
  "constraints": {
   "type": "object",
   "properties": {
    "require_latest": {
     "type": "boolean"
    },
    "require_license": {
     "type": "boolean"
    },
    "max_days_since_push": {
     "type": "integer",
     "maximum": 3650,
     "minimum": 1
    },
    "max_vulnerabilities": {
     "type": "integer",
     "maximum": 100,
     "minimum": 0
    }
   },
   "additionalProperties": false
  },
  "decision_type": {
   "enum": [
    "npm_dependency",
    "github_repository"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": 100,
  "reasons": [
   "No OSV vulnerability records returned for this package/version."
  ],
  "receipt": {
   "evidence_sha256": "...",
   "verification_url": "https://api.salt19.com/receipts/..."
  },
  "verdict": "GO",
  "evidence": {
   "package": "hono",
   "version": "4.13.3",
   "vulnerabilities": 0
  },
  "confidence": 0.95
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/salt19-agent-decision-preflight-2d9c172e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.salt19.com](https://www.zero.xyz/host/api.salt19.com/llms.txt)
