agentleFS
MicrosoftKnown publishermicrosoft/RAMPART/.github/copilot-instructions.md

RAMPART

Copilot instructions419 starsChanged 7 months agoMITView on GitHub

RAMPART is a pytest-native safety testing framework for agentic AI applications. RAMPART is organized as a modular framework with these main components: BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are about to edit: - Editing/code-reviewing **/*.py → read coding-standards.instructions.md - Editing/code-reviewing **/tests/** → also read unit-tests-standards.instructions.md Follow every rule in the applicable instruction files. Do not skip this step. When performing a code review, be selective. Only leave…

The file

We split this copilot-instructions.md into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are …

    line 23
  2. Distinctive:

    Follow every rule in the applicable instruction files.

    line 27
  3. Distinctive:

    When performing a code review, be selective.

    line 31
  4. Distinctive:

    Do NOT leave comments about:

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

RAMPART — Repository Instructions

RAMPART is a pytest-native safety testing framework for agentic AI applications.

Architecture

RAMPART is organized as a modular framework with these main components:

  • Core (rampart/core/) — Foundational types, protocols, and execution logic: adapter, converter, evaluator, execution, injection, llm, manifest, persona, prompt_driver, result, types.
  • Probes (rampart/probes/) — Test execution strategies (e.g., single-turn probes).
  • Attacks (rampart/attacks/) — Attack implementations (e.g., XPIA cross-prompt injection).
  • Evaluators (rampart/evaluators/) — Response evaluation: response_contains, side_effect, tool_called.
  • Drivers (rampart/drivers/) — Prompt delivery drivers (e.g., static driver).
  • Converters (rampart/converters/) — Prompt format converters (e.g., DOCX).
  • Surfaces (rampart/surfaces/) — Attack surface integrations (e.g., OneDrive).
  • Payloads (rampart/payloads/) — Payload generation, storage, and templating.
  • Reporting (rampart/reporting/) — Test result reporting (JSON file sink).
  • Pytest Plugin (rampart/pytest_plugin/) — Native pytest integration for test collection and session management.
  • PyRIT Bridge (rampart/pyrit_bridge/) — Isolated boundary for all PyRIT framework interaction (see coding standards for import rules).

Instruction Files

BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are about to edit:

  • Editing/code-reviewing **/*.py → read coding-standards.instructions.md
  • Editing/code-reviewing **/tests/** → also read unit-tests-standards.instructions.md

Follow every rule in the applicable instruction files. Do not skip this step.

Code Review Guidelines

When performing a code review, be selective. Only leave comments for issues that genuinely matter:

  • Bugs, logic errors, or security concerns
  • Unclear code that would benefit from refactoring for readability
  • Violations of the critical coding conventions (async suffix, keyword-only args, type annotations)

Do NOT leave comments about:

  • Style nitpicks that ruff would catch automatically
  • Missing docstrings or comments — code should be self-explanatory
  • Suggestions to add inline comments, logging, or error handling that isn't clearly needed
  • Minor naming preferences or subjective "improvements"

Aim for fewer, higher-signal comments. A review with 2-3 important comments is better than 15 trivial ones.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.