SpecificationSTP v1.0.02026-04-01

StreetMP Trust Protocol (STP)

How StreetMP records each screening decision as a signed, hash-chained record that you can verify offline.

Every decision StreetMP makes on a request produces one audit record. Each record is signed with Ed25519 and linked by hash to the record before it, so any change to the trail can be detected. You can export the trail from the dashboard and check it offline with the public key alone.

#

Overview

Each screening decision produces one audit record. The record is written after the policy decision and, in production, before the request is sent to the provider: if the record cannot be written, the request is not forwarded. Records are stored in your organisation's audit trail in the StreetMP database.

The record is designed around a single principle: record what was decided and why, without recording what was said. Records hold hashes, verdicts, reason codes, versions and metadata. The record writer refuses any record that carries prompt text, response text or credentials.

#

Record Fields

Field
Type
Description
Kind
sequence_numberrequired
integer

Position of this record in your organisation's audit trail. Numbers run without gaps from the first record.

e.g. 1042

Metadata
created_atrequired
string (ISO-8601)

UTC time the record was written.

e.g. 2026-04-01T07:14:32.004Z

Metadata
event_typerequired
string

What the record describes, for example a screening decision, a review decision or a policy change.

e.g. SECURITY_DECISION

Metadata
verdictrequired
enum

The decision: ALLOW, SANITIZE, REVIEW, REQUIRE_APPROVAL or BLOCK, or UNAVAILABLE / ERROR when a required detector was down.

e.g. SANITIZE

Metadata
reason_codes
string[]

Why the verdict was reached. Codes only; no prompt text.

e.g. ["PII_DETECTED"]

Metadata
policy_versionrequired
string

The policy version that was in force when the decision was made.

e.g. v12

Metadata
payload_hashrequired
string (SHA-256 hex)

SHA-256 of the record's canonical content.

e.g. 9b1e04c7…

Hash
prev_hashrequired
string (SHA-256 hex)

block_hash of the previous record. This is what links the records into a chain.

e.g. 4c02ad91…

Hash
block_hashrequired
string (SHA-256 hex)

SHA-256 over prev_hash, sequence_number, tenant_id, event_type, payload_hash and created_at.

e.g. 3a7f1c9d…

Hash
signaturerequired
string

Ed25519 signature over the record's canonical content, with the ID of the signing key.

e.g. q3Jk9Xw2…

Signature

STP v1.0.0. Examples are illustrative.

#

Verdicts

ALLOW

request proceeds

No policy matched. The request proceeds unchanged.

SANITIZE

request proceeds

Sensitive values are tokenised before the request is sent to the provider.

REVIEW

request held

Held for an approver in the dashboard.

REQUIRE_APPROVAL

request held

Held until an approver releases it.

BLOCK

request stopped

Stopped. Not sent to the provider.

UNAVAILABLE

request stopped

A required detector was down or failed (also ERROR). The request is refused rather than passed through.

#

Signature and Hash Chain

Each record carries an Ed25519 signature over its canonical content and a hash that includes the hash of the previous record. Changing a record invalidates its signature and breaks the chain from that point on. This is a digital signature and a hash chain; it is not a zero-knowledge proof.

typescript
// How each record is linked to the one before it
payload_hash = SHA256(canonical_json(record))
block_hash   = SHA256(prev_hash, sequence_number, tenant_id, event_type, payload_hash, created_at)
signature    = Ed25519_sign(signing_key, canonical_json(record))

// The first record links to a fixed genesis hash.
// Changing, inserting, removing or reordering any record breaks every link after it.
#

Offline Verification

Export your audit trail from the dashboard. The export can be checked without access to StreetMP, using only the public key.

# For each record, in order

sequence_number follows the previous one with no gap

prev_hash equals the previous record's block_hash

payload_hash and block_hash recompute to the stored values

signature verifies against the public key

Detects: edited, inserted, removed or reordered records · tamper-evident, not immutable

#

Privacy Model — What Is Never Included

Excluded Field
Reason
prompt
Prompt text is not stored for decisions. Requests held for approval are kept encrypted for up to 24 hours, outside the audit record.
completion
Model responses are not written to the audit record.
api_key
Keys and secrets are refused by the record writer. StreetMP stores only a hash of each API key.
#

How to Verify Your Records

In the console

Sign in, open Security Center → Audit and choose Verify integrity & signatures. StreetMP re-checks every link in your organisation's chain and every signature.

Offline

Export the audit trail and check it yourself with the public key, without access to StreetMP, using the four checks above.

Check your audit trail

Sign in and verify your organisation's records, or export them and check them offline.