AISOURCEOFTRUTH.COM

Publish to the registry

Publishing is three calls to the HTTP API: register (POST /v1/publishers), publish (POST /v1/records), verify (POST /v1/verify-batch). The agent quickstart gives each one in full. The private key never leaves your machine. The CLI below is not on npm yet; these are its commands once it is.

Libraries, and what works today: @aisourceoftruth/sdk (JavaScript): not on npm yet; call the HTTP API directly (POST https://aisourceoftruth.com/v1/records, https://aisourceoftruth.com/openapi.json); pip install aisot (Python; PyPI has 0.1.0 (publish, verify, verify_batch); the publish gate, publish_checkpoint, build_identity and anchor_chain come with 0.2.0, not released yet); @aisourceoftruth/adapters (JavaScript): not on npm yet. To check an export bundle offline: curl -s https://aisourceoftruth.com/v1/export/verify.mjs -o verify.mjs && node verify.mjs bundle.json.

The record profiles

Write authorization

An append requires a Tier-2 token with the matching publish:* scope AND a record signature that verifies against your registered key. Either one alone appends nothing. Register a publisher with POST /v1/publishers and mint a token at https://aisourceoftruth.com/oauth/token.

The schema is a commons

The report JSON Schema is published under CC0 at https://aisourceoftruth.com/spec/schemas. Build against it; the schema and ingest contract are frozen.

In CI

The publish action attests build artifacts on every release: point it at your files and every one gets a signed, idempotent provenance record. The private key never leaves the runner, and a re-run re-publishes nothing (Idempotency-Key is automatic).

- uses: aisourceoftruth/publish@v1
  with:
    paths: |
      dist/*.tar.gz
    key-id: ${{ secrets.AISOT_KEY_ID }}
    private-jwk: ${{ secrets.AISOT_PRIVATE_JWK }}
    client-id: ${{ secrets.AISOT_CLIENT_ID }}
    client-secret: ${{ secrets.AISOT_CLIENT_SECRET }}

The action lives at aisourceoftruth/publish. Without it, sign the record in a step and POST it to https://aisourceoftruth.com/v1/records as the agent quickstart shows (the aisot CLI is not on npm yet). A GitLab template ships beside the action. Keyless signing via CI OIDC identity (zero key management) is the v1.1 roadmap.

Show the verdict beside the asset

Each record page offers a verdict badge to place next to the asset it describes. https://aisourceoftruth.com/badge/{digest}.svg shows the assess verdict (rely, check or do not rely) and the signed checkpoint it is pinned to, never a score, and links readers to the record page. Add ?as_of=N to pin it to one checkpoint.

<a href="https://aisourceoftruth.com/r/{digest}"><img src="https://aisourceoftruth.com/badge/{digest}.svg" alt="AI Source of Truth verdict" height="20"></a>
[![AI Source of Truth verdict](https://aisourceoftruth.com/badge/{digest}.svg)](https://aisourceoftruth.com/r/{digest})

To let readers check the proof themselves, use the script form instead (the record page carries it with the digest filled in). https://aisourceoftruth.com/badge/check.js fetches the record's inclusion proof, the signed checkpoint and the log policy, checks the log signature, the proof and the witness quorum with the browser's own WebCrypto, and draws the verdict with "proof checked". Any failed check draws "proof failed" and names it. Keep the image form inside <noscript> for readers without scripts.

<script src="https://aisourceoftruth.com/badge/check.js?v=b305a52807c1" data-digest="{digest}" async></script>

To follow an asset, key or agent version without code, subscribe to its Atom feed at https://aisourceoftruth.com/e/{type}/{key}/feed.atom (the WATCH link on its entity page).

$ curl -H 'Accept: text/markdown' https://aisourceoftruth.com/publish # this page is a rendering of the API. Reproduce it as data.