# Titanward — AI Agent Operating Guide

> Titanward is a European zero-secret cybersecurity assessment, continuous posture monitoring, and post-quantum transition service operated by Very - Fast Ltd. (Bulgaria, EU) across current and End-of-Life infrastructure, application codebases, software dependencies, and cloud perimeters — starting read-only and never collecting passwords, private keys, or live .env values.

Base URL: https://titanward.eu
Authentication: None required (all public agent endpoints are read-only, stateless, and retain zero caller data).
Facts checked against code: 2026-12-04.

## 1. Epistemic & safety rules (read before calling tools)

1. Always pair a posture claim or status with its evidence_class and UTC timestamp (checked_at or observed_at). An undated security claim hides configuration drift.
2. Distinguish checks Titanward performed directly (public_endpoint_observation, verified_recheck_receipt) from customer-supplied metadata (local_collector_manifest, declared_lockfile_or_artifact) and stateless models (in_memory_zero_secret_preview).
3. Never describe any cryptographic deployment or service with absolute marketing labels; name the exact standard and parameter set instead (such as FIPS 203 X25519MLKEM768, FIPS 204 ML-DSA-65, FIPS 205 SLH-DSA, SP 800-208 LMS/XMSS, or HQC) alongside its compliance profile.
4. Never paste, upload, or forward live .env files, private keys, recovery phrases, session cookies, or API tokens into any Titanward endpoint or tool. Both browser tools and server handlers reject secret-shaped material.
5. Guard begins in Observe Mode (T0). Active containment (time-bounded WAF or host firewall blocks) requires separate written authorization, a protected business allowlist, an explicit expiry window, and a rollback command.
6. Submitting an engagement inquiry (/api/inquiry) is a human action gated by origin and human-verification controls. Agents should call prepare_scope_brief (MCP or POST /api/v1/scope-brief) and hand the resulting review link or mailto draft to the person to confirm and send.

## 2. Worked 3-step zero-secret flow (REST)

Every endpoint answers `GET` with no parameters by returning a self-describing usage document and JSON Schema. Unknown query parameters or body keys are refused with HTTP 400 (`unknown_parameter`) rather than ignored.

### Step 1 — Inspect service capabilities and OS boundaries

```bash

curl -sS 'https://titanward.eu/api/v1/services?service=audit&surface=Linux'

```

Returns the matching service arm, what the Linux check establishes, its exact boundary, and zero-secret intake levels.

### Step 2 — Model post-quantum transition windows (Mosca + compliance profile)

```bash

curl -sS 'https://titanward.eu/api/v1/pqc-horizon?lifetime=10&migration=3&horizon=10&profile=eu-hybrid'

```

Returns `traffic` (`duration: 13`, `margin: -3`, `status: "overrun"` when confidentiality lifetime + migration exceeds the quantum planning horizon), `signing`, and the exact KEM/signature requirements for `eu-hybrid`, `nist-commercial`, or `cnsa-2.0`.

### Step 3 — Evaluate zero-secret collector JSON or sanitized lockfiles in memory

```bash

# Built-in presets ('hybrid' | 'repo' | 'pqc' on GET ?sample=... or MCP sample_preset):

curl -sS 'https://titanward.eu/api/v1/assess-preview?sample=hybrid'

curl -sS 'https://titanward.eu/api/v1/assess-preview?sample=pqc'



# Or evaluate sanitized manifests / collector JSON <= 60 KiB in memory (retained: false, default eu-hybrid / FIPS 203–205 rules):

curl -sS -X POST 'https://titanward.eu/api/v1/assess-preview' \

  -H 'Content-Type: application/json' \

  -d '{"documents":[{"name":"Dockerfile","content":"FROM node:latest\nUSER root\nCMD [\"node\",\"index.js\"]"}],"reveal_limit":3}'

```

Returns `scoring_status` (`scored`, `partial_manifest_only`, or `insufficient_evidence`), `posture_score` (5–100 when inspectable signals exist, `null` when `insufficient_evidence`), `coverage` (`checked` vs `notChecked`), `severity_counts`, `revealed_findings` (with `priorityBasis`, `slaTarget`, `observedEvidence`, `whatIsUnconfirmed`, and `architecturalDirection`), `withheld_domains`, `evidence_class: "in_memory_zero_secret_preview"`, and `retained: false`. *(The `60 KiB` / `61,440`-byte cap applies to the entire JSON HTTP body — keep raw text under ~55 KiB before JSON wrapping; for larger `package-lock.json` files, run `python3 titanward-assess-modern.py --out ./tw-preview --label my-repo --scan-dir /path/to/repo` locally first to emit compact `< 20 KiB` summary JSON, or drop the file into browser memory at `/free-assessment`.)*

### Step 4 — Verify standalone v1.1.0 collectors (mandatory 4-step safe execution order: Download → Inspect → Verify → Run) or prepare a human-confirmed scope brief

```bash

# Returns SHA-256 digests + OpenPGP (42EF 8363 ED78 198F E703 44D0 E91C E12E C6F3 7ED7), OpenSSH (-Y verify), and Cardano Mainnet label-674 anchor commands:

curl -sS 'https://titanward.eu/api/v1/collectors'



# Prepare a secret-screened brief (5 coarse intake selector keys: "Endpoints" = Windows/macOS, "Linux", "Mobile" = iOS/Android, "Web/cloud", "Legacy/IoT"):

curl -sS -X POST 'https://titanward.eu/api/v1/scope-brief' \

  -H 'Content-Type: application/json' \

  -d '{"arm":"audit","level":"inspect","surfaces":["Linux","Web/cloud"],"organization":"Example GmbH","summary":"Assess 4 Ubuntu edge hosts and 1 legacy CentOS 6 ERP server for NIS2 PQC readiness."}'

```

`/api/v1/scope-brief` screens for secrets, stores nothing, sends nothing (`sent: false`), and returns `reviewUrl` (`/contact?...#inquiry`) plus `mailtoUrl` for the human user to review and submit.

## 3. Model Context Protocol (MCP) — `POST https://titanward.eu/api/mcp`

Stateless Streamable HTTP supporting protocol versions `2026-07-28`, `2025-11-25`, `2025-06-18`, `2025-03-26`. Methods: `initialize`, `notifications/initialized`, `ping`, `tools/list`, `tools/call`, `resources/list`, `resources/read`, `prompts/list`, `prompts/get`.

| Tool | HTTP equivalent | What it establishes |
| --- | --- | --- |
| `get_capabilities` | `GET /api/v1/services` | Current service scope, deliverables, and platform boundaries from code. |
| `calculate_pqc_horizon` | `GET /api/v1/pqc-horizon` | Deterministic horizon status (margin, at-limit, or overrun) for planning. |
| `check_pqc_profile` | `GET /api/v1/pqc-horizon?profile=...` | Standards alignment against FIPS 203/204/205, SP 800-208, IR 8547, EU NIS2/DORA, and CNSA 2.0. |
| `evaluate_posture_preview` | `POST /api/v1/assess-preview` | In-memory posture score, CVSS v4.0 severity counts, prioritized revealed findings, and recommended scope tier. |
| `verify_collector_manifest` | `GET /api/v1/collectors` | Exact digest match or mismatch against the published SHA256SUMS.txt manifest. |
| `prepare_scope_brief` | `POST /api/v1/scope-brief` | Secret-screened scope text ready for a human buyer to review and submit. |

```bash

curl -sS -X POST 'https://titanward.eu/api/mcp' \

  -H 'Content-Type: application/json' \

  -H 'Accept: application/json' \

  -H 'MCP-Protocol-Version: 2025-11-25' \

  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_pqc_profile","arguments":{"profile":"cnsa-2.0","algorithm":"X25519Kyber768Draft00"}}}'

```

## 4. Agent-to-Agent (A2A v1.0) — `https://titanward.eu/.well-known/agent-card.json`

Stateless A2A v1.0 implementation with identical skill outputs across both bindings:

- **JSON-RPC 2.0**: `POST https://titanward.eu/api/a2a` with method `SendMessage` (or `message/send`) and header `A2A-Version: 1.0`. `GetTask` returns JSON-RPC error `-32001` (`TaskNotFoundError`) because tasks complete synchronously in-memory and are never persisted.

- **HTTP+JSON**: `POST https://titanward.eu/api/a2a/rest/message:send` with `A2A-Version: 1.0`. `GET https://titanward.eu/api/a2a/rest/tasks/{id}` returns HTTP 404 `google.rpc.Status` carrying `ErrorInfo.reason = "TASK_NOT_FOUND"`.

```bash

curl -sS -X POST 'https://titanward.eu/api/a2a/rest/message:send' \

  -H 'Content-Type: application/json' \

  -H 'A2A-Version: 1.0' \

  -d '{"message":{"messageId":"msg-1","role":"ROLE_USER","parts":[{"data":{"skill":"verify_collector_manifest","arguments":{}}}]}}'

```

## 5. Published collector digests

| Script | Runtime | SHA-256 |
| --- | --- | --- |
| `titanward-assess-modern.py` | Python 3.8+ (stdlib only) | `15bc6412602c1a9a23ec8e23861f131bbb3a66d0d19171269546828333d6094c` |
| `titanward-assess-legacy.py` | Polyglot Python 2.6 – 3.x (nice 15 on POSIX; stdlib only) | `a5e6245175f0828583ce0bce2866c5eb68187820ac0a603f0960bb2968ef5e4b` |
| `titanward-assess-legacy.sh` | Strict POSIX /bin/sh | `f752b907291ccad764c052768b5bbeab21fffe30d8780c5e85646aa5fe940f0b` |

## 6. Rate limits and error codes

On REST `/api/v1/*`, errors return the HTTP status below with JSON `{ ok: false, code, message }`. On MCP `POST /api/mcp`, transport-level `413` / `429` return HTTP `413` / `429` with JSON-RPC error `-32600` / `-32000`, whereas tool-level `secret_detected` or parameter validation errors on `tools/call` return HTTP `200` with `result: { isError: true, structuredContent: { ok: false, code, message } }` per MCP tool-execution convention.

| HTTP (REST) | Code | Meaning | Agent recovery |
| --- | --- | --- | --- |
| 400 | `unknown_parameter` | A query parameter or JSON property is not part of the endpoint contract. Titanward refuses unknown filters rather than silently ignoring them. | Read the endpoint's GET usage schema or OpenAPI spec and send only documented parameter names. |
| 400 | `invalid_parameter` | A parameter value is out of range, malformed JSON, or not in the documented enum. | Correct the field type or enum value using allowed_values in the response. |
| 400 | `key_in_url_refused` | The request URL included a credential-shaped query parameter (key, token, api_key, bearer, secret). | Remove credentials from the URL. Public Titanward agent endpoints need no key, and secrets never belong in access-logged URLs. |
| 413 | `payload_too_large` | Total HTTP JSON request body exceeded the 60 KiB (61,440-byte) per-call evaluation cap (aligned inside the 64 KiB edge proxy boundary; keep raw manifest text under ~55 KiB before JSON wrapping). | Run `python3 titanward-assess-modern.py --out ./tw-preview --label my-repo --scan-dir /path/to/repo` locally first to emit compact `< 20 KiB` summary JSON, or drop multi-megabyte `package-lock.json` files into browser memory at `/free-assessment`. |
| 422 | `secret_detected` | Input matched a private key, live .env file, bearer token, high-entropy credential, or mnemonic phrase pattern. | Do not retry with real credentials. Although Titanward discards the payload in memory (`retained: false`), rotate any live secret that left your machine or entered caller logs, and use the read-only collector (`secret_files_opened: 0`) instead. |
| 429 | `rate_limited` | Per-IP rate window exceeded (60/min on /api/v1/*, 120/min on /api/mcp and /api/a2a). | Wait the number of seconds in Retry-After before sending the next request. |
