GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yksanjo/agent-evidence-check: Local completion-receipt validator for agents: artifact hashes, required outputs and evidence expiry. Python stdlib, no executor.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
demo.py
demo.py
 
 
evidence.py
evidence.py
 
 
test_evidence.py
test_evidence.py
 
 

Repository files navigation

agent-evidence-check

Before marking an agent task complete, check that its required files exist, match their recorded SHA-256 digests and have unexpired passing checks.

Python 3.10+, standard library only. No network, model calls, private accounts or executor. MIT.

Run

python3 -m unittest -v
python3 demo.py
python3 evidence.py receipt.json --root ./outputs

Exit 0 means the receipt meets this contract; exit 1 means it does not. Output is JSON with ready and errors.

Receipt format

{
  "version": 1,
  "required": ["report"],
  "artifacts": [
    {"name": "report", "path": "report.txt", "sha256": "ACTUAL_FILE_SHA256"}
  ],
  "checks": [
    {"name": "source-check", "status": "passed", "observed_at": "2026-10-13T11:00:00Z", "expires_at": "2026-10-13T13:00:00Z"}
  ]
}

A trusted controller should produce checks and timestamps. Set expiry from the evidence's real validity window, not a convenient arbitrary date. To compute a file digest:

python3 -c 'import hashlib; print(hashlib.sha256(open("outputs/report.txt", "rb").read()).hexdigest())'

What is checked

  • Exact top-level and entry schemas, unique nonempty required output names.
  • Required artifact presence, readable bytes and exact digest match.
  • Relative paths only, with parent traversal and symlink escapes rejected.
  • At least one passing check; timezone-aware observation and expiry times.
  • Observation cannot be in the future; expiry is exclusive.

12 synthetic tests include stale/future dates, path traversal, symlink escapes, missing artifacts and changed hashes.

Limits

This does not establish that a report is true, an external action succeeded or a source is trustworthy. A dishonest agent can invent passing checks, so keep the controller and receipt authorship outside the proposing agent's control. A passing check is only as meaningful as the test that produced it. No signatures, authorization gate, cross-process locking or artifact-size limit. Local files can change after validation; consumers must avoid that race or recheck just before use. Receipts may contain sensitive paths; do not publish real ones.

This complements action-boundary: that tool checks proposed actions; this one checks local completion evidence. It is not a substitute for either human review or live source verification.

About

Local completion-receipt validator for agents: artifact hashes, required outputs and evidence expiry. Python stdlib, no executor.

Topics

agent-safetyai-agentsauditdeveloper-toolsllm-toolsofflinepythonverification

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.