Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 2.3 KB

AGENTS.md

File metadata and controls

36 lines (25 loc) · 2.3 KB

Repository guidance

Purpose

circaetus is a defensive fingerprinting tool. Keep generated payloads deterministic, read-only, and useful in restricted evaluators.

Product surface

The public CLI has two commands: circaetus generate [target] and circaetus analyze [fingerprint]. Keep collection and end-to-end maintenance in scripts/.

Accuracy

  • Measure version boundaries. Do not infer them from release notes.
  • Never identify a build from a nearest or fuzzy layout match. Only exact layouts count.
  • Derive release candidates from behavior. Exact layout matches may identify measured build layouts, but must not narrow the release list because patches can share a layout.
  • Preserve ambiguity. Return every compatible release or build.
  • Treat OS, architecture, libc, distribution, image family, and CPython patch as separate coverage dimensions.
  • Every matrix row must come from an explicit container image. Record its immutable platform-specific digest when the registry provides one. Do not add host or local-interpreter measurements.
  • Accept a collected row only when the container reports the requested platform.
  • Add probes only when they are deterministic, side-effect free, valid on every supported CPython release, and either separate measured outcomes or provide a deliberate cross-check.
  • Keep the SD1 wire format backward compatible.
  • Generated payloads must not read direct runtime metadata such as sys.version, sys.version_info, platform.python_version(), or implementation-specific version constants. The python target models an evaluator where those shortcuts are unavailable.

Verification

When changing probes, payload rendering, matrix matching, or build signatures:

  1. Run python3 -m pytest.
  2. Run a focused container check, for example python3 scripts/e2e_proof.py python:3.12.13-slim python:3.13.15-alpine.
  3. Rebuild affected matrix cells with scripts/collect_docker.py. Never hand-edit measured outcomes.
  4. Report candidate-set size, not a confidence percentage.
  5. Keep the coverage table in README.md synchronized with the shipped matrix.

Style

Prefer small standard-library modules and plain English. Keep the README focused on defender use, limits, coverage, and the two-command workflow. Write Markdown prose as one logical line per paragraph; do not hard-wrap it.