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.
aisot initgenerates an ES256 key, registers you as a publisher, and writes aisot.json.aisot publish <path>hashes the artifact, builds and signs the record, and POSTs it (Idempotency-Key automatic).aisot verify <digest|file>checks a record's signature and log inclusion.
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
- provenance (ATTESTED): who or what made an asset. Instant, self-serve, rate-limited.
- verification (VERIFIED): the full claims and entailment profile, pinning the judge by hash. Reviewed, because claiming verification is a stronger statement.
- payout: a platform's signed attestation of what it paid a source. The registry attests; it never moves money.
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>
[](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).