obsigna python.instructions.md

Coding guidelines for a Python software development kit in a project that records cryptographically signed audit trails of AI-agent actions. They cover typing, data models, formatting, test layout, and matching the TypeScript SDK's output.

In plain words
What is it for?
Use them when adding or reviewing Python SDK code, defining receipt data models, organizing tests, checking Ruff formatting, and verifying byte-for-byte compatibility with the TypeScript SDK.
Why use it?
They keep the Python part consistent with the project's other language versions and make tests and formatting easier to review. They also help ensure Python output matches the TypeScript version exactly.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/agent-receipts/obsigna/python
Clone the repo
git clone --depth 1 https://github.com/agent-receipts/obsigna

Made for: GitHub Copilot.

Per session 113 This file is loaded in full into every session.
When invoked 113 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00113 $0.00113
Opus 5 $0.00056 $0.00056
Sonnet 5 $0.00023 $0.00023
Haiku 4.5 $0.00011 $0.00011

Measured yesterday against content hash bb9a2b72545b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

obsigna python.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/python.instructions.md · 13 lines

What it actually says

Python SDK review guidelines

  • Prefer from __future__ import annotations in new or heavily-typed modules.
  • Pydantic v2 for receipt models, frozen dataclasses for simple types.
  • Use TYPE_CHECKING guards for type-only imports.
  • Ruff for lint and format (line-length 88). Flag lines exceeding this.
  • Tests mirror src/ structure under tests/. Flag tests placed elsewhere.
  • Output must be byte-identical to the TypeScript SDK.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 13 lines · 113 tokens per session scan A bb9a2b72545b

Subscribe to this mod's changes

obsigna python.instructions.md is an instructions file published in the GitHub repository agent-receipts/obsigna (20 stars, last pushed 2d ago), licensed Apache-2.0. It adds 113 tokens to every session, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.