drift drift-push-gates.instructions.md

drift drift-push-gates.instructions.md is an instructions file for GitHub Copilot from mick-gsk/drift. It costs 2,980 tokens per session, scanned A, original, MIT.

A German-language checklist of rules that must be met before committing, pushing, or preparing a release in the Drift repository.

In plain words
What is it for?
It tells agents which gates apply to changed paths, including changelogs, versions, lockfiles, docstrings, risk audits, and continuous-integration checks.
Why use it?
It prevents pushes that violate repository policies, omit required checks, or change files without the needed evidence and documentation.

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/mick-gsk/drift/drift-push-gates
Clone the repo
git clone --depth 1 https://github.com/mick-gsk/drift

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drift drift-push-gates.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mick-gsk/drift/drift-push-gates.svg)](https://agentmods.dev/instructions/mick-gsk/drift/drift-push-gates)
Your own site
<a href="https://agentmods.dev/instructions/mick-gsk/drift/drift-push-gates"><img src="https://agentmods.dev/badge/instructions/mick-gsk/drift/drift-push-gates.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,980 This file is loaded in full into every session.
When invoked 2,980 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.1 $0.02980 $0.02980
Opus 5 $0.01490 $0.01490
Sonnet 5 $0.00596 $0.00596
Haiku 4.5 $0.00298 $0.00298

Measured 5d ago against content hash b1d19b075e01, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

drift drift-push-gates.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 5d ago.

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/drift-push-gates.instructions.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Drift Pre-Push Gates — Vollständige Checkliste für Agenten

Der Hook in .githooks/pre-push blockiert jeden Push, der eine der folgenden Bedingungen verletzt. Agenten müssen alle zutreffenden Gates erfüllen, bevor sie git push ausführen.

Diese Datei ist nur fuer Commit-/Push-Vorbereitung relevant, nicht fuer allgemeine Implementierungsarbeit.


Übersicht: Welches Gate gilt bei welcher Änderung?

feat: / fix: / BREAKING: folgen den Conventional-Commit-Regeln aus .github/instructions/drift-release-automation.instructions.md.

Geänderte Dateien Erforderliches Gate
tagesplanung/** ❌ Immer blockiert — nie pushen
feat:-Commit vorhanden Feature-Evidence-Gate (Gate 2)
feat: oder fix:-Commit vorhanden Changelog-Gate (Gate 3)
pyproject.toml geändert Version-Gate (Gate 4) + Lockfile-Gate (Gate 5)
src/drift/** geändert Docstring-Gate (Gate 6)
src/drift/signals/**, src/drift/ingestion/** oder src/drift/output/** geändert Risk-Audit-Gate (Gate 7)
Immer (alle Pushes) CI-Checks (Gate 8)

Gate 1 — Blockierte Pfade

Bedingung: Kein Commit darf Dateien unter tagesplanung/ enthalten. Auslöser: Immer (jeder Push). Aktion: Diese Pfade niemals committen.


Gate 2 — Feature-Evidence-Gate

Auslöser: Push enthält mindestens einen Commit mit Prefix feat: (oder feat(scope):). Alle vier Bedingungen müssen gleichzeitig erfüllt sein:

  1. Tests vorhanden: Mindestens eine Datei unter tests/ muss im Push enthalten sein.
  2. Empirisches Artefakt vorhanden: Mindestens eine Datei unter benchmark_results/ oder audit_results/ muss im Push enthalten sein.
  3. Versioned Evidence-Datei vorhanden: Eine Datei die auf benchmark_results/vX.Y.Z_feature_evidence.json matcht (oder entsprechendes Muster).
  4. STUDY.md aktualisiert: docs/STUDY.md muss im Push enthalten sein (sofern die Datei existiert).

Gate 2b — Evidence Content Validation (deterministisch)

Read the full file on GitHub · 246 lines

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. 5d ago First seen · 246 lines · 2,980 tokens per session scan A b1d19b075e01

Subscribe to this mod's changes

drift drift-push-gates.instructions.md is an instructions file published in the GitHub repository mick-gsk/drift (14 stars, last pushed 1mo ago), licensed MIT. It adds 2,980 tokens to every session, about $0.0149 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.