Repository navigation
Add Agentic-Datacenter benchmark result references (TRACE external evidence source) - #438
darklordVirtual wants to merge 6 commits into
Conversation
rajnisht7
left a comment
There was a problem hiding this comment.
The approach (external-evidence-source, synthetic examples, honest “what it does NOT claim”, fixed-commit URLs, online test) looks good and the tests pass. A few validation and robustness points:
- Schema not checked - record_problems() never validates schema == "adc-provenance/v1". A minimal JSON with only product, a 40-char commit, and a result_card.json hash currently passes. Same for a development-run label with benchmark_version.frozen = false. Kindly enforce the real schema + required fields.
- resolver ignored - check() never looks at entry["resolver"]. An entry with a completely wrong resolver still succeeds if the other checks pass. TRACE treats resolver as the party responsible for retention; it should be validated.
- Path traversal - The URL regex accepts ../ segments, and file names from the record (e.g. ../secret.txt) are used directly in URL construction. Reject . / .. and constrain relative paths.
- MAX_BYTES not enforced - read(MAX_BYTES + 1) is returned with no length check. An oversized JSON + trailing whitespace can be truncated, still parse, and produce a wrong digest. Reject anything larger than the limit.
- Fetch before validation - CLI does make(args.url, fetch(args.url)), so the request happens before the URL is checked. urllib also accepts file://. Validate the URL (HTTPS + pattern) first.
- Attestation errors uncaught - The attestation branch has no try/except. Network/API/JSON failures escape instead of becoming a controlled problem string (unlike the record and file paths).
- Any repo accepted + weak schema - Combined with (1), an unrelated repository can host a fabricated record that make() will turn into a reference whose resolver still points at the official Agentic-Datacenter repo.
- Docs gap - The linked participant workflow attests and uploads the artifact but does not commit provenance.json into the repo. Following the README alone does not produce the raw commit URL that make() requires. Kindly document the extra “download + commit” step (and how to preserve the attested bytes).
- Packaging - license = "Apache-2.0" needs setuptools ≥ 77; the build-system currently declares >=68.
…solver, safe paths and the byte limit; check URLs before fetching; report attestation lookups that fail; document committing the attested record
|
Thank you for the careful review, @rajnisht7. Each point is fixed in 58e0c1d, with a test that fails on the previous commit (24 of them did) and passes now:
Results:
|
…irect only within GitHub; report http.client errors; hold an attestation only of the record by a workflow of its repository
|
@rajnisht7, a follow-up to my comment above. Checking each point again with both arms, I found that two things I wrote there were not quite true, and that three points were only partly fixed. All of it is fixed in 730123a, each with a test that fails on 58e0c1d (11 of the 15 new cases do; the other 4 are the control arms) and passes now. Two corrections to my earlier comment
Points that were only partly fixed
Results at 730123a
Sorry for the extra round, and thank you again for a review that made the integration much better. |
rajnisht7
left a comment
There was a problem hiding this comment.
Thank you for the update, a few things still remain:
-
README artifact paths are still wrong-bench-runner.yml uploads the contents of build/bench-<run_id> directly (artifact name bench-<run_id>). After gh run download ... --dir result-artifact the files sit at the root of that directory, not under */bench/. The current gh attestation verify and cp commands therefore point at paths that don’t exist. kindly fix the documented paths (and preferably select the artifact by name).
-
Provenance validation is still minimal-record_problems() still accepts a record that only has benchmark_version: { "frozen": true } (no card_schema_version, no agents/contract_library/oracle/profile/scenario_library digests). The real published record and the upstream producer both carry the fuller shape. Worth tightening so we only accept what a real benchmark result actually writes, plus negative tests for the missing fields.
…ths the README uses; accept only the full record a benchmark result writes
|
Thank you, @rajnisht7. You were right on both points. Both are fixed in 2a6284e, each with tests that fail on 730123a (12 of them do) and pass now. README paths. Test: Provenance validation. Results at 2a6284e
|
…rkflow's artifact to its bench/ folder, and says where bench-runner.yml's files are
|
One more correction, in c9387f7. The README's download steps now follow the participant workflow, which is what that section is about: it uploads a reportable result as The |
…oken; report the status of a lookup GitHub refuses The conformance run on c9387f7 failed in one job of six, fixed (py3.11), where the attestation lookup ended in "attestations unresolved: HTTPError". The same commit passed all six jobs in the run on the fork, and passes locally with --online, so the code path is not at fault: the lookup asks api.github.com without a token, and GitHub limits such requests by address, which a runner shares with other jobs. - fetch sends a token from GITHUB_TOKEN or GH_TOKEN to api.github.com only, as an unredirected header: never with a request for a raw file, never with a redirect. - The workflow gives the test step the job's read-only token. - A lookup GitHub refuses is reported with its status ("HTTPError 403"), so the next failure says whether it was a rate limit or something else. The status of the failed request was not in the log, so the rate limit is the likely cause, not a confirmed one. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ysZVH8Cpx3dLacE7DqSac
|
Current-head follow-through: the 14 returned workflows for 252f3b5 are action_required, including benchmark conformance. Please authorize the runs through the maintainer workflow. Earlier-head results do not validate these revisions. The connected integration lacks the Actions write access needed to complete this follow-through. Prepared with OpenAI Codex. |
|
Thanks for the follow-up. CI has now run on 252f3b5, and ADC benchmark conformance passed. The two remaining failures are a 404 for the OpenShell link in openshell-bundle-candidate.md and a missing certifi dependency in the weight-custody-manifest demo. Neither area is changed by this PR. Could you confirm whether these also fail on main and whether they block merging #438? |
|
Follow-up on the two failing areas: #434 has now merged as 16556c1 and adds certifi to both the model-signing requirements and its CI install. The old-head missing-certifi result is superseded by that source fix; new-head validation is still needed after main is incorporated. The OpenShell URL remains a separate main-branch issue: #446 changes NVIDIA/OpenShell to ai-openshell/openshell and supplies the Lychee token; its current-head documentation-link workflow passes. These repair PRs touch areas outside #438's contribution. I cannot grant merge clearance for the maintainers or treat an old failed run as a new-head pass. Please refresh after the source repairs land and let the maintainer apply the repository's link/review gate. Prepared with OpenAI Codex; source/workflow review, not a new reproduction of the original failures. |
Adds
integrations/agentic-datacenter-benchmark/: a TRACE Trust Record of an agent-governance gate can cite the gate's published Agentic-Datacenter benchmark result through onereferencesentry.What the referenced object is. An Agentic-Datacenter 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). The workflow that ran it attests that record with a GitHub artifact attestation. The entry usesrel: "benchmark-result",id= the raw URL of that record at a fixed commit,resolver= the Agentic-Datacenter repository anddigest= the record's SHA-256.What is in the directory
adc_reference.py:makebuilds the entry. It refuses a URL on a branch or tag, and bytes that are not an Agentic-Datacenter record listing a result card.checkresolves an entry and checks digest match. Optionally it checks any file the record lists against its hash, and whether GitHub holds an attestation of the record.examples/: two Trust Records signed by a demo key derived from a published seed, one whose reference resolves to the cited bytes and one whose digest does not match. The record they cite,source/provenance.json, is synthetic: made for the example in the schema a run writes (adc-provenance/v1), with plainly fake values, and not the record of any run. All of it regenerates withexamples/make_examples.py; nothing is copied from the Agentic-Datacenter repository.tests/: both records verify with releasedagentrust-trace0.11.0, the entry validates againstReference, and each case is checked offline against the synthetic record. With--online, one test makes an entry for a real published Agentic-Datacenter record at a fixed commit and resolves it, a file it lists and its attestation..github/workflows/agentic-datacenter-benchmark-conformance.yml: floating and fixedagentrust-trace, Python 3.11–3.13, with--online.Role and claims.
trace_roles: [external-evidence-source], so no Trust Record of its own is issued and no conformance level is claimed.A resolved entry establishes only that the bytes are the cited bytes and are the record of a benchmark 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.
--attestationschecks only that an attestation exists.gh attestation verifyverifies its signature. Thebenchmark-resultvalue ofrelis not registered.Run it
Local results:
--online;scripts/validate_integrations.py: 52 integrations, 0 failures;--check: current;validate_compatibility.py: 0 failures;tests/: 75 passed.Disclosure: I maintain Agentic-Datacenter. The real record the online test resolves is of a gate whose maintainer is also an author of Agentic-Datacenter, as its participant entry states.