huggingface/atif-scan
An offline-first, pluggable ATIF scanner for triaging agent benchmark runs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
atif-scan is a post-run ATIF analyzer. Source adapters resolve local paths and remote inputs; the loader normalizes records into a Trace; detectors, rules, and allowances feed the engine, which produces JSON or text reports. The analysis core uses only the Python standard library and never executes code or commands found in a trace. By default, detectors see agent-authored messages, reasoning, and tool-call arguments, while prompts, copied context, tool outputs, and payloads such as file contents and edits are excluded unless a check explicitly includes them.
atif-scan maps to atif_scan.cli:main; atif-inspect maps to atif_scan.evidence.extract:main and exposes step-level inspection without requiring the reviewer to parse ATIF manually. Task packs enter through --plugin, and --rules loads policy files. Allowances change the interpretation of matching findings without hiding them. At the CLI boundary, huggingface_hub>=2.0.0 and rich>=15.0.0 are imported lazily for Hub access and text rendering. The optional read-only MCP inspection path is separate from the scan engine.
Key Capabilities & Differentiators
The scanner ingests local traces, Hugging Face buckets, Harbor jobs, and mirrors of public DeepSWE trials with their trial index. It checks trace integrity across cost, trial, and token accounting; applies deterministic checks for signals such as benchmark awareness and reward hacking; and statically examines recorded Python and JavaScript tool programs and dispatch ledgers. Bundled allowances cover tb-21, DeepSWE, tb-4, and tb-lite. Recognized ALE receipts select canonical ATIF files, retain missing attempts, and enable the mounted-reference request pack; conflicting evidence remains unknown.
Run briefs surface coverage, score, a scenario treating flagged successes as failures, cost, and wall time; single-trace detail breaks results down by check. Severity sets review priority, not the probability of misconduct. Reviewers can opt into masked citations, a localhost evidence browser, or question bundles. hunt can send questions to a model via the default fast-agent runner, or use another MCP-capable CLI agent. Imported answers annotate the report without rescoring, and --image-model can transcribe images that block a check.
Trade-offs & Limitations
Compared with general LLM observability platforms, atif-scan focuses on auditing recorded ATIF runs rather than collecting live telemetry. Compared with an ad hoc script, it provides reusable rules, allowances, and a shared way to express missing evidence, but teams with other trace formats must first produce compatible input. Compared with a model-only judge, deterministic checks are easier to rerun and compare; they are also bounded by what was recorded and what each check is allowed to see. An allowance can encode legitimate task behavior, but overbroad allowances can make the score less informative even though the findings stay visible.
Use findings to route human review, not as automatic disqualifications. Masked citations and a read-only inspector serve different purposes: masking limits excerpt exposure, while read-only access prevents writes, not disclosure. Cache files, exports, and evidence sent to a model provider therefore need separate handling policies. MIT permits commercial use and self-hosting under its terms, but does not confer rights to the underlying traces.
Hardware & Deployment Guide
The package requires Python 3.11 or newer. The published CLI can be launched with uvx; development uses uv sync and uv run. Local scans over existing files are offline, with no GPU requirement for the default analysis path. Hugging Face and Harbor sources add network access for fetching and cache storage, with remote inputs mirrored under ~/.cache/atif-scan by default for incremental rescans. Plan CPU and memory around trace size and run volume, and budget disk separately for mirrors and evidence artifacts.
For hunt --inspect-tool, the optional MCP extra pins mcp>=1.2,<2; the server component can also be fetched with uv. The evidence browser runs on localhost. Model-assisted hunts explicitly add provider calls, and --image-model opts into model-based transcription; resource use and cost on those paths depend on the selected model and access method. The manifest and release listing identify v0.8.24, dated 2026-11-19. No release notes are available to attribute individual capabilities to that version.
--plugin and --rules add task-specific logic; allowances leave findings visible as expected but exclude them from scoring.--cite, --browse, atif-inspect, and read-only MCP offer separate ways to inspect the evidence.Evaluation teams with recorded ATIF runs that need repeatable batch scans, task-specific allowances, and a clear path from a finding to human review.
You need live telemetry collection, do not have or cannot produce ATIF traces, or need a definitive automated misconduct verdict.
Quick Start & Installation
uvx atif-scan@latest --help uvx --from atif-scan@latest atif-inspect --help
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/huggingface/atif-scan.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about atif-scan
How should we integrate atif-scan into an existing evaluation pipeline?
atif-scan with JSON output as the CI integration point. For task-specific behavior, load checks with --plugin and rules with --rules, then use allowances to distinguish expected findings from review candidates. Keep the original benchmark outcome separate from scan findings, and preserve unknown evidence as unknown. Use atif-inspect or the read-only MCP server when reviewers need to examine individual steps.Does it need a GPU, and what drives resource usage?
Can we use it commercially and keep evaluation traces private?
When is it a better choice than custom scripts, observability platforms, or a model-only judge?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy