AGENTS.md@src/bernstein/core/securityA

AGENTS.md@src/bernstein/core/security from sipyourdrink-ltd/bernstein is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add sipyourdrink-ltd/bernstein/src/bernstein/core/security/AGENTS.md@git:20261024.e491978

Pins git:20261024.e491978 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
sipyourdrink-ltd/bernstein
Path
src/bernstein/core/security/AGENTS.md
Versions recorded
7
Latest version
git:20261024.e491978, committed Oct 24, 2026
First version recorded
Aug 9, 2026
Size
3,674 bytes
Repository stars
1,196
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Security: audit chain, identity, policy

The HMAC-chained audit log, Ed25519 install identity, and approval / policy enforcement. Other subsystems anchor receipts to the chain, so its write path is load-bearing.

## Key files

| File | Purpose |
|---|---|
| `audit.py` | Immutable HMAC-chained audit log; daily JSONL rotation; chain crosses file boundaries |
| `audit_chain.py` | `AuditChainStore` facade plus the `EVENT_*` type constants |
| `audit_receipt.py` | Offline-verifiable receipt projection (COSE / in-toto) over a chain range |
| `agent_card_keystore.py` | Persistent Ed25519 keystore for A2A agent-card signing |
| `intent_capsule.py` | Signed task-goal capsules with drift escalation |
| `sigstore_attestation.py` | Rekor attestation with a local Ed25519 fallback; verifies local bundles |
| `result_receipt_bundle.py` | Result receipt bundle with offline DSSE verification |
| `capability_delta.py` | Pure `AgentPermissions` grant comparison; no production caller yet |
| `surface_grant_delta.py` | Pure workflow/Dockerfile/Compose grant diffs; no production caller yet |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add sipyourdrink-ltd/bernstein/src/bernstein/core/security/AGENTS.md@sha256:8d5d22342fb58dfc

The line at the top of this page pins the label git:20261024.e491978, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ejtguob2o5fkxqgd.svg)](https://markdownregistry.com/a/art_ejtguob2o5fkxqgd)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Aug 9, 2026 and Oct 24, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20261024.e491978 latest2026-10-24 e491978 3,674 BA view · diff
git:20261004.c9653582026-10-04 c965358 2,821 BA view · diff
git:20260827.24421972026-08-27 2442197 2,557 BA view · diff
git:20260824.34090c62026-08-24 34090c6 2,360 BA view · diff
git:20260820.c0bc08e2026-08-20 c0bc08e 2,188 BA view · diff
git:20260814.13741952026-08-14 1374195 2,188 BA view · diff
git:20260809.2f00e322026-08-09 2f00e32 2,030 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (3674 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

sipyourdrink-ltd/bernstein · 1,196 stars · license Apache-2.0 · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ejtguob2o5fkxqgd
GET https://markdownregistry.com/api/v1/resolve?ref=sipyourdrink-ltd/bernstein/src/bernstein/core/security/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/8d5d22342fb58dfce541f1008cb05ce0b34fa08998ced2e1fbc4419a10e5e656

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from sipyourdrink-ltd/bernstein

architecture Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/architecture.mdc · Architecture (entry points)
git:20260901.719ea1e · audit A · 1,196 stars
build-test Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/build-test.mdc · Build & test
git:20260724.4544404 · audit A · 1,196 stars
directory-context Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/directory-context.mdc · Directory context files
git:20260803.747152b · audit A · 1,196 stars
documentation-duty Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/documentation-duty.mdc · Documentation duty
git:20260521.b455a7c · audit A · 1,196 stars
git-workflow Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/git-workflow.mdc · Git workflow
git:20260521.b455a7c · audit B · 1,196 stars
module-map Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/module-map.mdc · Module map
git:20260821.e59b413 · audit A · 1,196 stars
overview Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/overview.mdc · Overview
git:20261002.1ce47da · audit A · 1,196 stars
roles Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/roles.mdc · Agent roles
git:20260521.b455a7c · audit A · 1,196 stars
setup Cursor rule
sipyourdrink-ltd/bernstein · .cursor/rules/setup.mdc · Setup
git:20260521.b455a7c · audit A · 1,196 stars
AGENTS.md AGENTS.md file
sipyourdrink-ltd/bernstein · AGENTS.md
git:20261002.1ce47da · audit A · 1,196 stars
CLAUDE.md CLAUDE.md file
sipyourdrink-ltd/bernstein · CLAUDE.md
git:20261002.1ce47da · audit A · 1,196 stars
DESIGN.md@docs/architecture DESIGN.md file
sipyourdrink-ltd/bernstein · docs/architecture/DESIGN.md
git:20260930.5f47161 · audit A · 1,196 stars

Every file in sipyourdrink-ltd/bernstein

Browse by kind, by grade A, or by owner.