Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/agentic-datacenter-benchmark-conformance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Agentic-Datacenter benchmark result references workflow.
#
# floating installs the latest released agentrust-trace, unpinned on purpose,
# as drift detection.
# fixed installs the agentrust-trace version named in integration.yaml
# tested_against, so that claim cannot move underneath itself.
# Both also resolve a real published record (--online); the examples cite a synthetic one.
# This integration is an external-evidence-source and asserts no TRACE level.
name: agentic-datacenter-benchmark conformance
on:
push:
paths:
- "integrations/agentic-datacenter-benchmark/**"
- ".github/workflows/agentic-datacenter-benchmark-conformance.yml"
pull_request:
paths:
- "integrations/agentic-datacenter-benchmark/**"
- ".github/workflows/agentic-datacenter-benchmark-conformance.yml"
schedule:
- cron: "0 6 * * 1" # weekly: catch drift against the latest released packages
workflow_dispatch:

permissions:
contents: read

jobs:
check:
name: ${{ matrix.mode }} (py${{ matrix.python }})
strategy:
fail-fast: false
matrix:
python: ["3.11", "3.12", "3.13"]
mode: [floating, fixed]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The job runs a pull request's code: keep no token in .git/config.
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python }}
- name: Install agentrust-trace (latest release)
if: matrix.mode == 'floating'
run: pip install agentrust-trace
- name: Install agentrust-trace (tested_against)
if: matrix.mode == 'fixed'
run: |
v=$(sed -n 's/^ agentrust-trace: "\(.*\)"$/\1/p' integrations/agentic-datacenter-benchmark/integration.yaml)
test -n "$v"
pip install "agentrust-trace==$v"
- name: Install this integration
run: pip install -e "integrations/agentic-datacenter-benchmark[test]"
- name: Integration tests, resolving the published record
# The attestation lookup asks api.github.com. Without a token GitHub counts it
# against the runner's address, which other jobs share; with the job's own
# read-only token it is counted against this repository.
env:
GITHUB_TOKEN: ${{ github.token }}
run: pytest integrations/agentic-datacenter-benchmark/tests -q --online
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ TRACE only works as a standard if it is genuinely neutral. Integrations are list
|---|---|---|---|
| [claude-code](claude-code/) | agentrust-io | agent-manifest, trace | community |
| [Agent Passport System](integrations/aeoess-aps/) | aeoess | trace | verified |
| [Agentic-Datacenter benchmark result references](integrations/agentic-datacenter-benchmark/) | Agentic-Datacenter | trace | community |
| [cA2A Cross-Operator Delegation](integrations/agentrust-ca2a-cross-operator/) | agentrust-io | ca2a | community |
| [Confidential Workflow Acceptance Harness](integrations/agentrust-confidential-workflow-harness/) | agentrust-io | cmcp, ca2a, trace | community |
| [AAIF Authority Comparison Runner](integrations/alakris-authority-comparison/) | Alakris Research | trace | community |
Expand Down
51 changes: 51 additions & 0 deletions integrations/agentic-datacenter-benchmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Agentic-Datacenter benchmark result references

[Agentic-Datacenter](https://github.com/agentic-datacenter/agentic-datacenter) is a simulated datacenter in which an AI agent proposes operating steps and a governance gate decides on each one. A benchmark run writes, beside its result card, a record of the code commit and of the SHA-256 of every file it made (`provenance.json`), and the workflow that ran it attests that record with a GitHub artifact attestation. This integration lets a TRACE Trust Record of a governance gate cite such a result: one `references` entry with `rel: "benchmark-result"` whose `id` is the raw URL of `provenance.json` at a fixed commit and whose `digest` pins its bytes.

## What it does

- `adc_reference.py make <url>` prints the entry for a record at a commit. It checks the URL before fetching anything: https, `raw.githubusercontent.com`, a 40-character commit, no `.`, `..` or empty path segment. It accepts only what a benchmark result writes: schema `adc-provenance/v1`, product `Agentic-Datacenter`, the label `benchmark result` exactly (a frozen run with a language-model agent, or on a facility of its owner, keeps `frozen: true` but has another label and is not a benchmark result), `benchmark_version` with `frozen: true`, a 40-character `code_commit`, and `files` naming `result_card.json`, each file by a plain relative name with its SHA-256. A body larger than 64 MiB is refused, not cut. A redirect is followed only to a URL that could have been fetched itself, and an `http.client` error is reported like any other failure to resolve. The entry's `resolver` is the repository the record is kept in, the one its URL names.
- `adc_reference.py check <entry.json>` resolves the entry and checks that its resolver is the repository the URL names, that the bytes are the cited bytes and that they are such a record. `--file result_card.json` (or any file the record lists) also checks that file against the hash the record gives it. `--attestations` asks the GitHub API for the attestations of the record, and holds only one whose statement names the record's digest as its subject, a workflow of the resolver's repository as the one that made it, the ref it ran from, and the builder `{repository}/{path}@{ref}` exactly. The ref is part of the policy, because a branch, a pull request or a tag can change what a workflow runs:
- for `agentic-datacenter/agentic-datacenter`, the workflow must be `.github/workflows/bench-runner.yml` run from `refs/heads/main`;
- for any other repository, any workflow of that repository run from its default branch, which the check asks the GitHub API for (`refs/heads/<default branch>`). An attestation from another branch, `refs/pull/…` or `refs/tags/…` does not count.

Otherwise it reports which workflows, at which refs, made the attestations it found. A lookup GitHub refuses is reported with its status (`attestations unresolved: HTTPError 403`). The GitHub API limits requests without a token by address, so on a shared address such as a CI runner's set `GITHUB_TOKEN` or `GH_TOKEN`: the token is sent to `api.github.com` only, never with a request for a raw file and never with a redirect.
- `examples/` holds two Trust Records signed by a demo key derived from a published seed, each citing a record: one whose digest matches and one whose digest does not. The record they cite, `source/provenance.json`, is synthetic: made for this example in the schema a benchmark run writes, with plainly fake values, and not the record of any run. All of it regenerates with `examples/make_examples.py`.
- `tests/` verifies both records with released `agentrust-trace`, validates the entry against its `Reference` model, and checks each case offline against the synthetic record. With `--online`, one test makes an entry for [a real published record](https://raw.githubusercontent.com/agentic-datacenter/agentic-datacenter/d00a805e7f661ff083e29060a7198d0853bf4075/results/remora/benchmark-v1.7-statements-only/provenance.json) at a fixed commit and resolves it, a file it lists and its attestation.

## Run it

```
pip install -e "integrations/agentic-datacenter-benchmark[test]"
python -m pytest integrations/agentic-datacenter-benchmark/tests --online
python integrations/agentic-datacenter-benchmark/adc_reference.py check entry.json --file result_card.json --attestations
```

`check` exits 0 when the entry resolves, 1 when it finds problems, and 2 when it cannot run: an entry file that is missing, not JSON, or not a JSON object. `make` exits 2 on any failure.

To get a result of your own gate to cite, run the benchmark from your repository with Agentic-Datacenter's [participant workflow](https://github.com/agentic-datacenter/agentic-datacenter/blob/main/examples/ci/agentic-datacenter.yml), which records and attests the result in your repository ([how a gate connects](https://github.com/agentic-datacenter/agentic-datacenter/blob/main/docs/guides/bring-your-own-gate.md)).

### From the attested run to a URL at a commit

The participant workflow attests `bench/provenance.json` and uploads a reportable result as the artifact `agentic-datacenter-stable-result-<run-id>`, with the result's files in its `bench/` folder; it does not commit it. Downloaded by name with `--dir result-artifact`, the files are in `result-artifact/bench/`. Run the workflow from your default branch, since an attestation from any other ref does not count. To cite the result, put the attested bytes in your repository, byte for byte, at a fixed commit:

```
gh run download <run-id> --repo <owner>/<repo> --name agentic-datacenter-stable-result-<run-id> --dir result-artifact
gh attestation verify result-artifact/bench/provenance.json --repo <owner>/<repo>
mkdir -p results/<name> && cp result-artifact/bench/* results/<name>/
git add results/<name> && git commit -m "Benchmark result <name>" && git push
```

A result of Agentic-Datacenter's own `bench-runner.yml` is the artifact `bench-<run-id>`, with its files at the top level: download it with `--name bench-<run-id>`, and the files are `result-artifact/provenance.json` and the others beside it.

Copy the files as they are: no formatting, no line-ending conversion (if your repository sets `text=auto`, mark the folder `-text` in `.gitattributes`). `gh attestation verify` checks the signature and which workflow and run made the record; run it again on the committed file to see that the bytes did not change. Then cite the record at that commit:

```
python adc_reference.py make https://raw.githubusercontent.com/<owner>/<repo>/<40-character commit>/results/<name>/provenance.json
```

The entry's `resolver` is then `https://github.com/<owner>/<repo>`: your repository keeps the bytes. A record anyone could commit is not evidence by itself; `check --attestations` asks GitHub whether that repository holds an attestation of it, and `gh attestation verify` shows by which run.

## What it does NOT claim

A resolved entry establishes that the resolved bytes are the cited bytes, and that they are the record of an Agentic-Datacenter result. It does not establish that the gate behaved as the result says: the result is a simulation, and an attestation shows which workflow made the files, not that the gate under test is what the card says it is. `--attestations` reads the statement of each attestation GitHub returns for the digest in the resolver's repository, and reports a lookup that fails as a problem. It does not verify the signature over that statement or its certificate, so it relies on GitHub's answer for which workflow signed; `gh attestation verify provenance.json --repo <repository> --signer-workflow <repository>/.github/workflows/<file>` verifies both. An entry never changes whether the Trust Record itself verifies (trace-v0.2 section 3.1.2). The `benchmark-result` value of `rel` is not registered. No TRACE conformance level is claimed.
Loading