Skip to content

Lab: answer public verification challenges (bytes inputs, probes, respond) + public-boundary fixes - #24

Merged
darklordVirtual merged 4 commits into
mainfrom
feat/challenge-response-probes
Nov 8, 2026
Merged

darklordVirtual merged 4 commits into
mainfrom
feat/challenge-response-probes

Conversation

@darklordVirtual

Copy link
Copy Markdown
Owner

What

Lets an AACP run document a case like the NTI witness challenge in NOSAI-Federation/agent-governance-vocabulary#177: verify the producer's documented claims over exact bytes, record the runner's own findings with recomputable witnesses, and draft a public reply from the run's records.

  • inputs[].format: bytes: checks get {path: bytes} so signatures and digests are verified over the published bytes, not re-serialised JSON.
  • probes: runner-authored findings (class, witness, source locators read as data, runner assessment level). One record per probe over all its inputs, so two pinned revisions can be compared. results/probes.json + schema, compared on rerun, reported in their own section. Never PASS/FAIL, never counted.
  • challenge: public request to verify, recorded as context only. Never consent; the report says no endorsement is given when one was asked for.
  • respond <run>: drafts the reply (pins, every file digest, plan hash, check hashes, claim results, probe witnesses, ceiling, reproduce steps, AI-drafting disclosure). Requires an unchanged measured run; writes outside the manifest.
  • init --template <dir>/SCOPE.json copies the skeleton's verifier/.
  • Worked example templates/runs/nti-witness/ with a stdlib RFC 8032 Ed25519 (tested against RFC 8032 §7.1 vectors) and documented / RFC 6962 / as-implemented Merkle rules.

Fixes found on the way (public-boundary basis)

  • package crashed: render_report read scope["offer"] for every self-service run.
  • withhold, aacp next and aacp export map assumed offer terms.
  • Scope schema public_boundary patterns were double-escaped, so the schema rejected every valid boundary; the agreement test had no boundary variant.
  • A public-boundary run may now pin several revisions of the boundary's own repository; one subject behaves as before.

Checks

All AGENTS.md checks pass: 376 tests (was 351), mutations 30/30 killed, invariants, vectors verify/check, reference-vector rebuild. New tests: tests/lab/test_probes.py, tests/lab/test_nti_example.py (synthetic package signed with test keys; never the producer's bytes), schema agreement variants.

Real run against abisheakp197/Neutral-Trust-Infrastructure@8ca84887 + @896d352a: 8 claims (6 ESTABLISHED, 2 NOT_ESTABLISHED with obligations), 7 probes DEMONSTRATED, package rerun.py → REPRODUCED. Not shared or published; that and any public reply are the maintainer's call.


Generated by Claude Code

…and respond

Verification inputs may set format: bytes so checks verify signatures and digests
over the exact published bytes. Scopes may declare probes: runner-authored findings
with a class, a recomputable witness, source locators and the runner's assessment
level, recorded in results/probes.json, compared on rerun and reported apart from
claim results. challenge records a public request to verify as context only, never
consent; the report states that no endorsement is given. respond drafts a reply from
the run's own records with AI-drafting disclosure, outside the package manifest.
init --template <dir>/SCOPE.json copies the skeleton's verifier/.

Fixes for the public-boundary basis: package crashed on the track line, withhold,
aacp next and export map assumed an offer, and the schema's public_boundary patterns
were double-escaped. A public-boundary run may pin several revisions of its own
repository.

Worked example: templates/runs/nti-witness, the NTI witness package challenge from
NOSAI-Federation/agent-governance-vocabulary#177, with a standard-library RFC 8032 Ed25519.
Reads the last successful attempt in RUN-CAPTURE.json, so a reply names the exact
AACP commit (and whether conformance/lab had local changes) next to the plan hash.
… run files

- Replace seal_scheme_attribution with s4_s5_s6_meaning_changed (class
  TERMINOLOGY_CHANGE). The earlier NTI revision used S4/S5/S6 for ASL
  invariants (tripwire, kill-path cascade, S6 undefined); the pinned revision
  uses them for a seal construction. The probe records that change and
  states explicitly that it says nothing about where code came from.
- public_boundary: every subject must be a revision of the boundary's own
  repository, also with one subject, and subject 0 must be at the boundary
  commit.
- respond: write only under the run's .local/ or outside the run directory
  (symlinks resolved); replace a draft only with --force. Findings are
  grouped by affects_pinned_artifact.
- rerun: compare every field of every probe record.
- Record the real NTI run (templates/runs/nti-witness/recorded/RECORD.json,
  scripts/record_lab_run.py); offline consistency tests and an nti-real-bytes
  CI job that reruns the scope over the pinned NTI commits.
…record

publications/nti-witness-2026-11-07/: PUBLICATION.md (dated note, pins,
bounded results, non-claims, lifecycle note), RESPONSE.md and REPORT.md as
generated, and the run package archive, which reruns to REPRODUCED from a
fresh extraction. Not reviewed or endorsed by the NTI maintainer.

@darklordVirtual darklordVirtual left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review (AI-drafted, Claude Opus 5.5; not independent): technically ready to merge.

CI 5/5 green; merges cleanly onto main and with #27. In the full simulated merge it conflicts with #28 only in README.md (two new rows in the same table position; keep both). Combined tree: 490 tests OK, mutations 30/30, vectors verify/check, rebuild --check OK.

What I checked: format: bytes inputs reach checks as raw bytes; probes are recorded in results/probes.json and never enter PASS/FAIL or counts; challenge is context only and the report states no endorsement; respond refuses a changed run and writes outside the manifest; the public-boundary fixes (escaped patterns, scope["offer"] assumptions) each have a test.

For the maintainer to confirm, not a code issue:

  • publications/nti-witness-2026-11-07/ is publication. Commit be1f1f0 records it as runner-attributed with no endorsement, which matches AGENTS.md. Merging puts it on main of a public repo; make sure that is the intended publication step rather than a draft.
  • The package zip is binary in git (+0/-0 in the diff). Its SHA-256 is pinned in PUBLICATION.md, so a later accidental re-zip is detectable, but a test asserting that digest would make it enforced rather than documented.

Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants