agentleFS
StatyxStatyx/Azure-Brain/AGENTS.md

Azure-Brain

AGENTS.md4 starsChanged 3 months agoMITView on GitHub

This repository is a knowledge base, not an application. It contains no build, no runtime, no entry point to execute. Its content is a set of agent instruction files that an AI coding agent reads on demand to perform Microsoft Fabric / Azure data & AI work correctly. Your job when working here: route the request to the right agent folder, read that agent's instructions.md, and follow it. The instruction files are the source of truth. They exist because of…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

14 rules. About 0 are common, 4 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

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

    Read the companion files it names: Every instructions.md declares its own load order (e.g.

    line 17
  2. Very specific:

    If the request is *"build me a demo / a project"* rather than *"do this one thing"*, start from Meta-Brain/SCENARIOS.md before the routing …

    line 29
  3. Very specific:

    Every step still names an agent: resolve it here, then follow the loop above.

    line 44
  4. Distinctive:

    Read before write: Never assume file contents or artifact state.

    line 310
  5. Very specific:

    Async-first: Every Fabric REST creation/execution call returns HTTP 202: use allow_redirects=False, poll x-ms-operation-id, retry with …

    line 315
  6. Distinctive:

    Validate after every change: Read the artifact back, or check the API response.

    line 319
  7. Distinctive:

    Names are proposed, not imposed: Before creating the first workspace, item, report or agent, show the derived names and let the caller …

    line 336
  8. Very specific:

    If Fabric-Brain/resource_ids.md is missing, the brain has no environment bound to it:

    line 363
  9. Very specific:

    All copies are gitignored.

    line 380
  10. Very specific:

    Keep Azure-Brain checked out alongside your project, and point the agent at the relevant instructions.md by path.

    line 391
  11. Distinctive:

    Run both locally before pushing — the scanner is what stops a customer name or a real endpoint reaching a public repo, and it only works if …

    line 422
  12. Very specific:

    Create the folder + README.md + agents/_catalog.yaml.

    line 454
  13. Very specific:

    Add it to BRAINS in Meta-Brain/tests/conftest.py (covers all test modules).

    line 455
  14. Very specific:

    Update the brain table in README.md, the brain list in .github/copilot-instructions.md, and the layout + index in this file.

    line 456

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

AGENTS.md — Azure-Brain

This repository is a knowledge base, not an application. It contains no build, no runtime, no entry point to execute. Its content is a set of agent instruction files that an AI coding agent reads on demand to perform Microsoft Fabric / Azure data & AI work correctly.

Your job when working here: route the request to the right agent folder, read that agent's instructions.md, and follow it. The instruction files are the source of truth. They exist because of real production failures — do not improvise around them.


The loop

  1. Identify the domain of the request → use the routing table.
  2. Read that agent's instructions.md in full, before acting.
  3. Read the companion files it names. Every instructions.md declares its own load order (e.g. "Before any Lakehouse work, load this file plus onelake_operations.md and spark_notebooks.md"). Follow it — do not guess which companions matter.
  4. Read known_issues.md — the agent's own, then the umbrella one at the repo root. Most errors are already documented.
  5. Apply the agent's mandatory rules. Hand off explicitly when you cross a boundary.

If a request spans several agents, chain them and state each handoff: what was produced, which agent is next, which files/IDs are affected.

Building a whole solution, not a single task

If the request is "build me a demo / a project" rather than "do this one thing", start from Meta-Brain/SCENARIOS.md before the routing table. It is the composed model of every demo this brain knows how to build:

preset  =  base  +  modules          … with the axes applied
  • 3 bases — B1 Batch BI · B2 Real-Time · B3 Migration. Each is a spine of steps (agent + task + gate) ending in a documented exit state.
  • 11 modules — M-ONTO, M-DL, M-AGENT, M-SUPER, M-OPS, M-ALERT, M-CICD, M-FLOW, M-PORTAL, M-TEST, M-MON — each attaches to an exit state.
  • Presets — named combinations already run end to end (bi-dashboard, smart-factory, digital-twin…). No preset fits → §2.5 builds a custom one from the same pieces.

Every step still names an agent: resolve it here, then follow the loop above. The scenario says what and in which order; the agent's instructions.md says how and wins on its domain.

Never fork a base or a preset to make a variant — add an axis value, a module, or a preset line. Same rule as the instruction files: a copy goes stale.

Agree on the names before creating the first item. Derive the defaults from naming_conventions.md, show them, let the caller override. Workspace, items, reports and agents only — schemas, tables and measures stay silent. § Rule 0 there lists what a late rename costs, and it is never zero.


Repository layout

Azure-Brain/                       ← umbrella (this repo)
├── AGENTS.md                      ← you are here — index + routing
├── agent_principles.md            ← mandatory operating principles
├── shared_constraints.md          ← 9 hard rules, all brains
├── known_issues.md                ← cross-cutting gotchas
├── ERROR_RECOVERY.md              ← decision trees by HTTP status
├── PUBLIC_SAFETY.md               ← Caldova identity + publish-by-default rules
├── GETTING_STARTED.md             ← 15-min setup
├── Fabric-Brain/                  ← Microsoft Fabric      — 24 agents  (flat)
│   ├── agents/_catalog.yaml
│   └── agents/<agent>/instructions.md
├── Apps-Brain/                    ← Applications          — 3 active / 9 catalogued (flat)
│   ├── agents/_catalog.yaml       ← ⚠ non-goals live here — "app" is a magnet domain
│   └── agents/<agent>/instructions.md
├── Database-Brain/                ← Azure databases       — 4 active   (nested by domain)
│   ├── agents/_catalog.yaml
│   └── agents/<NN-domain>/<agent>/instructions.md
├── Foundry-Brain/                 ← Microsoft Foundry     — 7 active / 11 catalogued (flat)
│   ├── generation_map.md          ← ⚠ classic vs current + 3 retirement clocks — read first
│   ├── orchestration_patterns.md  ← supervisor pattern: A2A vs Toolbox vs Workflows
│   ├── tenant_proofs.md           ← ✅ what was executed against a real tenant (vs observed)
│   ├── agents/_catalog.yaml
│   └── agents/<agent>/instructions.md
└── Meta-Brain/                    ← cross-cutting         — 5 agents   (flat)
    ├── agents/_catalog.yaml
    ├── agents/<agent>/instructions.md
    ├── SCENARIOS.md               ← the demo model: presets = base + modules + axes
    ├── run_sheet.example.md       ← copy per demo into the demo repo as RUN.md
    ├── mcp_registry.md            ← MCP server catalog
    ├── clocks.yaml                ← expiry clocks — CI fails 30 days before a date comes due
    └── tests/                     ← umbrella test suite

⚠ Folder depth differs per brain

  • Fabric-Brain, Meta-Brain, Foundry-Brain and Apps-Brain are flat: agents/<agent>/instructions.md
  • Database-Brain is nested by domain: agents/<NN-domain>/<agent>/instructions.md

Any tooling that walks agents must handle both depths — see the depth-aware agent_dirs() in Meta-Brain/tests/conftest.py.

Each agent folder also holds a README.md (human-facing summary), usually a known_issues.md, and domain-specific companion files. Some hold scripts, Bicep templates or JSON knowledge trees.


Routing — pick the agent

The request is about…AgentBrain
Create a workspace, assign capacity, roles, CU budgetworkspace-admin-agentFabric
Git integration, deployment pipelines, env promotion, Variable Librariescicd-fabric-agentFabric
fab CLI commands, job execution, CLI-driven deployfabric-cli-agentFabric
Something failed / job tracking / audit / capacity dashboards / Spark triagemonitoring-agentFabric
Task Flow (the visual workspace map)taskflow-agentFabric
Custom Fabric workload (iFrame SDK, React, Workload Hub)extensibility-toolkit-agentFabric
Data Pipelines, scheduling, Copy Jobs, notebook orchestrationorchestrator-agentFabric
Lakehouse, OneLake files, Delta tables, Spark, Shortcuts, medallionlakehouse-agentFabric
Dataflow Gen2, Power Query M, connectorsdataflow-agentFabric
T-SQL Warehouse, COPY INTO, stored procs, time travelwarehouse-agentFabric
Star schema design, industry templates, synthetic datadomain-modeler-agentFabric
Semantic model, TMSL/model.bim, DAX measures, Direct Lakesemantic-model-agentFabric
Power BI report authoring & deploymentreport-builder-agentFabric
Report layout validation before deploy (overlaps, sizing, fonts)pixel-design-agentFabric
Create / publish a Fabric Data Agent (AI Skill)ai-skills-agentFabric
Evaluate a Data Agent, DAX quality scoring, root-cause analysisai-skills-analysis-agentFabric
Eventhouse, KQL database, KQL dashboardsrti-kusto-agentFabric
EventStream ingestion, CDC, source→destination routingrti-eventstream-agentFabric
Real-time alerts / triggers (Reflex, Teams/Email actions)data-activator-agentFabric
Ontology — entity types, bindings, contextualizations, NL2Ontologyontology-agentFabric
Graph Model, GQL, graph algorithms, RefreshGraph, NL2GQLgraph-agentFabric
BusinessObjects → Fabric migrationmigration-bo-agentFabric
Databricks → Fabric migrationmigration-databricks-agentFabric
Synapse → Fabric migrationmigration-synapse-agentFabric
App backend running inside Fabric (Rayfin, Replit × Fabric)fabric-apps-agentApps
External portal embedding Fabric (FastAPI + Power BI/RTI embed)operations-portal-agentApps
App UI: design system/tokens, src/ layout, navigation, personas, seed-vs-live modeapp-frontend-agentApps
What the screens should look like — app shell, entry page, assistant rail, chat surfaceapp-frontend-agentApps
Deploy Azure DB for PostgreSQL Flexible Serverpostgres-deploy-agentDatabase
Oracle 21c XE source VM on Azureoracle-source-vm-agentDatabase
Oracle → PostgreSQL via Ora2Pg / DMS (CLI, scriptable)oracle-to-postgres-migration-agentDatabase
Oracle → PostgreSQL via VS Code PG ext. + Copilot App Modernization (Java)oracle-to-postgres-copilot-modernization-agentDatabase
Foundry resource / project, model deployments, quotafoundry-project-agent 🟡Foundry
Create a Foundry agent, its instructions, tools, threadsfoundry-agent-service-agent 🟢Foundry
Supervisor / orchestrator over several Foundry agentsfoundry-orchestration-agent 🟢Foundry
Call a Fabric Data Agent from Foundry (Fabric tool, Fabric IQ)foundry-fabric-bridge-agent 🟢Foundry
Ground a Foundry agent in enterprise data (Foundry IQ knowledge base, sources)foundry-knowledge-agent 🟢Foundry
Attach a tool to a Foundry agent — MCP, OpenAPI, function calling, approvalsfoundry-tools-agent 🟢Foundry
Why did it do that? — Foundry traces, App Insights, reading the execution pathfoundry-observability-agent 🟢Foundry
Guardrails / content safety / evaluating a Foundry agentfoundry-governance-agent 🟢Foundry
Write or run tests, quality gate before deploytesting-agentMeta
Generate a PowerPoint deckpptx-builder-agentMeta
HTML architecture diagram with Fabric/Azure iconsarchitecture-design-agentMeta
README / repo presentation / badgesproject-presentation-agentMeta
Build a whole Fabric project end to end (12-step pipeline)project-orchestrator-agentMeta

Frequently confused pairs

BoundaryRule
orchestrator-agent (Fabric) vs project-orchestrator-agent (Meta)Fabric one owns Data Pipelines; Meta one owns the whole project pipeline across agents
cicd-fabric-agent vs fabric-cli-agentCI/CD owns Git + pipelines + stages; CLI owns fab commands + job execution
cicd-fabric-agent vs workspace-admin-agentAdmin creates pipelines (REST POST); CI/CD manages their stages
ontology-agent vs graph-agentOntology owns the semantic layer; Graph owns the Graph Model item, GQL, refresh
data-activator-agent vs rti-eventstream-agentActivator owns rules/alerts/actions; EventStream owns the ingestion topology
data-activator-agent vs monitoring-agentActivator = real-time business alerts; monitoring = admin/capacity/audit
pixel-design-agent vs testing-agentPixel = Fabric-report layout rules; testing = generic pytest framework
fabric-apps-agent vs extensibility-toolkit-agentBoth build UI-ish things, different consumer: fabric-apps (Apps) is our application; extensibility-toolkit (Fabric) is a workload extending the Fabric portal itself, published to the Workload Hub
fabric-apps-agent vs operations-portal-agentSame brain, opposite runtime: apps run inside Fabric on OneLake; portal is an external app that embeds/proxies Fabric
app-frontend-agent vs pixel-design-agentBoth are layout, different artifact: frontend = a web app surface (React/Tailwind, routes, tokens); pixel-design = a Power BI report canvas. A report embedded in an app stays pixel-design's artifact
app-frontend-agent vs fabric-apps-agentSame app, two halves: frontend owns what the user sees and how src/ is layered; fabric-apps owns Rayfin, the data model and the deploy
Apps-Brain vs Fabric-Brain / Foundry-BrainApps consumes — it embeds a report, proxies a Data Agent, calls a Foundry endpoint. It never mutates their artifacts; any change is a handoff to the owning agent
Migration agents vs lakehouse/orchestratorMigration agents own source→Fabric translation; the others own the actual item creation
foundry-orchestration-agent (Foundry) vs project-orchestrator-agent (Meta)Foundry one orchestrates agents at runtime; Meta one orchestrates the build of a project across brains
foundry-fabric-bridge-agent (Foundry) vs ai-skills-agent (Fabric)Fabric creates/publishes the Data Agent; Foundry consumes it as a tool and never mutates it
foundry-governance-agent vs foundry-observability-agentGovernance = may this happen? (guardrails) and was it good? (evaluations); observability = what actually happened? (traces). The multi-agent hop is seen only by traces

Full boundary notes live in each brain's agents/_catalog.yaml.


Agent index

Paths are relative to the repo root. Read instructions.md; it names its own companion files.

Fabric-Brain — 24 agents · Fabric-Brain/agents/<agent>/instructions.md

DomainAgentPurpose
01-platformworkspace-admin-agentWorkspace CRUD, capacity assignment, RBAC, Git integration
01-platformcicd-fabric-agentGit integration, deployment pipelines, Variable Libraries, branching, promotion
01-platformfabric-cli-agentfab CLI, item management, OneLake file ops, CI/CD deploy, job execution
01-platformmonitoring-agentAdmin APIs, audit events, capacity monitoring, KQL ops dashboards, Spark/SQL triage
01-platformtaskflow-agentTask Flow visual templates, task-to-item mapping, JSON import/export
01-platformextensibility-toolkit-agentCustom workloads, iFrame SDK, React components, Workload Hub publishing
02-data-engineeringorchestrator-agentData Pipelines, scheduling, OneLake uploads, Copy Jobs, Spark notebooks
02-data-engineeringlakehouse-agentOneLake DFS, Delta tables, Spark, SQL Endpoint, Shortcuts, medallion
02-data-engineeringdataflow-agentDataflow Gen2, Power Query M, 100+ sources, incremental refresh
02-data-engineeringwarehouse-agentT-SQL Warehouse, COPY INTO, stored procedures, transactions, time travel
02-data-engineeringdomain-modeler-agentStar schema design, KQL schemas, industry templates, synthetic data
03-visualizationsemantic-model-agentmodel.bim (TMSL), DAX measures, relationships, Direct Lake, Prep for AI
03-visualizationreport-builder-agentPower BI reports, visuals, themes, pages
04-fabric-agentai-skills-agentData Agent creation, REST API, instructions, data bindings, few-shot examples
04-fabric-agentai-skills-analysis-agentData Agent evaluation, DAX quality scoring, RCA classification
05-real-time-intelligencerti-kusto-agentEventhouse, KQL databases, KQL dashboards, Operations Agent
05-real-time-intelligencerti-eventstream-agentEventStreams, real-time ingestion, CDC patterns, source routing
05-real-time-intelligencedata-activator-agentReflex — real-time alerts/triggers, Teams/Email/Fabric item actions
06-iqontology-agentEntity types, bindings, relationships, contextualizations, NL2Ontology, MCP server
06-iqgraph-agentGraph Model definition, GQL (ISO/IEC 39075), algorithms, RefreshGraph, NL2GQL
07-fabric-qualitypixel-design-agentPre-deployment report validation — layout bounds, overlaps, font sizing
08-migrationmigration-bo-agentBusinessObjects → Fabric — 5-stage framework, 119 BO→DAX mappings
08-migrationmigration-databricks-agentDatabricks → Fabric — dbutils→notebookutils, UC→Lakehouse, DBFS→OneLake
08-migrationmigration-synapse-agentSynapse → Fabric — phased, mssparkutils→notebookutils, SQL Pool→Warehouse

Apps-Brain — 3 active / 9 catalogued · Apps-Brain/agents/<agent>/instructions.md

The cut: the question is "I am building an application". The runtime — Fabric App item, external portal, Azure-hosted — is the first routing decision inside this brain, not a brain boundary. That is why fabric-apps-agent lives here: a Fabric App item is a hosting choice for an app, the same way Container Apps is.

Default runtime: the Fabric App (Rayfin) — one command provisions DB, Entra auth, Data APIs and hosting, with data landing in OneLake in place. Deviate when the app must run outside Fabric, when the centre of gravity is Power BI / RTI embedding, or when the region is unsupported at preview. The runtime does not change the frontend discipline — app-frontend-agent Rules 1–8 and its shell blueprint apply to all three. See Apps-Brain/README.md § 01 — Runtime.

⚠️ "App" is a magnet domain. The non-goals in Apps-Brain/agents/_catalog.yaml are load-bearing — data logic → Fabric-Brain, Fabric workloads → extensibility-toolkit-agent, agent definition → Foundry-Brain, DB engine → Database-Brain. Rule of thumb: if removing the UI/API surface makes the problem disappear, it belongs here; if the problem survives without any app, it does not.

DomainAgentPurpose
01-runtimefabric-apps-agentDefault runtime. Fabric Apps (preview) via Rayfin — scaffold/model/deploy backends, data in OneLake; Replit × Fabric. Hands the screen shape to app-frontend-agent
01-runtimeoperations-portal-agentExternal ops portal (FastAPI + static) — Data Agent proxy, Power BI + RTI embed, live SVG views
01-runtimeapp-hosting-azure-agent 🟡Container Apps / Static Web Apps / App Service — choosing, ingress, scale-to-zero, revisions
02-identityapp-identity-agent 🟡App vs delegated vs managed identity, Entra registration + consent, OBO, token cache, passthrough
03-embeddingapp-embedding-agent 🟡Power BI app-owns-data + RLS, Fabric Embed for RTI tiles, direct Kusto, CSP/CORS, silent renewal
04-intelligenceapp-intelligence-agent 🟡Chat proxy to a Fabric Data Agent or a Foundry agent — threads, streaming, citations, MCP in-app
05-frontendapp-frontend-agent 🟢Dual-mode (seed vs live) architecture, four-layer src/ split, design system as a token file, single route+nav manifest, personas, accessibility, app shell blueprint (the three surfaces, defaults pre-decided)
06-operationsapp-observability-agent 🟡App Insights front-to-back, correlating a user action through the proxy to the platform call
06-operationsapp-delivery-agent 🟡Build/container pipelines, environment promotion, secrets at runtime, IaC for the app's resources

Database-Brain — 4 active · Database-Brain/agents/<NN-domain>/<agent>/instructions.md

22 agents are catalogued; only status: active ones exist on disk. See Database-Brain/agents/_catalog.yaml for the planned roadmap.

Domain folderAgentPurpose
02-postgrespostgres-deploy-agentFlexible Server deployment, networking, HA zones, extensions allow-list
03-oracle-to-postgresoracle-source-vm-agentOracle 21c XE on Azure VM (Oracle Linux 8), sample schemas, listener 1521
03-oracle-to-postgresoracle-to-postgres-migration-agentOra2Pg assessment + schema conversion + data export, Azure DMS cutover
03-oracle-to-postgresoracle-to-postgres-copilot-modernization-agentPG VS Code extension + Copilot App Modernization for Java (SQL + Managed Identity)

Foundry-Brain — 7 active / 11 catalogued · Foundry-Brain/agents/<agent>/instructions.md

⚠️ Read Foundry-Brain/generation_map.md and Foundry-Brain/orchestration_patterns.md before any Foundry work. Two agent generations ship side by side — azure/foundry-classic/agents/* (deprecated, retires 2027-03-31) and azure/foundry/agents/* (current, GA) — plus a third clock: portal Workflows retire 2026-12-01 despite living on the current tree. The classic agent.as_tool / Connected Agents pattern does not exist in the new service: a supervisor attaches sub-agents via the A2A tool (preview — and now proven working on one tenant) and capabilities via a Toolbox (GA).

Seven agents exist on disk. Their behavioural content is grounded in two complete multi-agent systems observed in Microsoft training labs (Foundry-Brain/reference_workflow.md, Foundry-Brain/reference_foundry_iq.md); the SDK shapes are tenant-verified by the second lab's working agents.py. A further set of claims — the A2A hop, the four-protocol chain and the SDK 2.4.0 introspection — was executed against a real tenant and is recorded in Foundry-Brain/tenant_proofs.md, with an explicit list of what those runs do not prove. Everything else is status: planned. See Foundry-Brain/agents/_catalog.yaml.

DomainAgentPurpose
01-platformfoundry-project-agentResource + project, RBAC, managed identity, connections, networking
01-platformfoundry-model-catalog-agentDeployments, TPM quota, model routing, cost/latency trade-offs
02-agent-servicefoundry-agent-service-agentThe five agent roles, prompt-as-interface rules, tool attachment + approval posture, versioning, Save vs Publish
02-agent-servicefoundry-tools-agentFunction calling, OpenAPI, MCP, code interpreter, file search; prompt/tool-set/approval control layers
03-orchestrationfoundry-orchestration-agentSupervisor patterns, connected agents, routing, anti-loop guardrails
03-orchestrationfoundry-agent-framework-agentMicrosoft Agent Framework, workflows, durable execution
04-knowledge-groundingfoundry-fabric-bridge-agentFabric data agent tool + Fabric IQ, identity passthrough → hands off to ai-skills-agent
04-knowledge-groundingfoundry-knowledge-agentFoundry IQ knowledge bases — indexed vs federated sources, cross-service RBAC, MCP consumption
05-qualityfoundry-observability-agentTracing, Application Insights, the trace-reading playbook — what a trace settles and what it cannot
06-governancefoundry-governance-agentGuardrails (policy on live traffic) + evaluations (scoring a sample) — per-role evaluator choice, the seam neither covers
06-governancefoundry-deploy-agentBicep / azd, environment promotion, CI/CD

Meta-Brain — 5 agents · Meta-Brain/agents/<agent>/instructions.md

DomainAgentPurpose
meta-qualitytesting-agent3-tier test taxonomy (smoke/integration/regression), visual validator, pytest scaffolding
meta-presentationpptx-builder-agentPowerPoint generator — 5-phase pipeline, helper functions, quality gates
meta-presentationarchitecture-design-agentHTML architecture diagrams with base64 SVG icons (Fabric + Azure)
meta-presentationproject-presentation-agentGitHub repo best practices — README authoring, badges, repo structure
meta-orchestrationproject-orchestrator-agentEnd-to-end 12-step project builder, industry configs, agent coordination

Key rules

These apply everywhere. The per-agent instructions.md may add stricter rules — and wins on its own domain.

  1. Read before write. Never assume file contents or artifact state. Load the config, the existing artifact, or the API response first.
  2. Config-driven. Domain/industry behaviour comes from configuration files, never hard-coded.
  3. Idempotent. Re-running any generation or deployment step with the same input produces identical output. Never append — replace or skip-if-exists.
  4. Async-first. Every Fabric REST creation/execution call returns HTTP 202: use allow_redirects=False, poll x-ms-operation-id, retry with exponential backoff (3s × 2^attempt, max 2 retries).
  5. One owner per domain. Any agent may read any artifact; only the owner modifies it.
  6. Validate after every change. Read the artifact back, or check the API response.
  7. Handoff protocol. State what was produced, name the next agent, list affected files/IDs.
  8. Read resource_ids.md before any deployment (Fabric-Brain/resource_ids.md).
  9. Never claim a capability is "verified" in an instruction file unless a trace or test output proves it. A false "verified" makes downstream agents retry a path that cannot work.
  10. Follow agent_principles.md — plan first, verify before done, capture lessons in known_issues.md after any correction.

    🔴 Extended 2026-09-03. known_issues.md is not enough when the correction invalidates a rule. It is read at step 4 of the loop; mandatory rules are read at step 2 — so a retraction filed only there is read after the agent already acted on the rule it retracts. Put a dated correction adjacent to the false statement in instructions.md (and in its load order) first. See agent_principles.md § 3b.

  11. Write as if already public. The company is always Caldova; GUIDs in docs and samples are visibly fake (a0000000-0000-4000-a000-00000000000a); no path contains your account name; secrets are read at runtime; real values live in a gitignored file with a committed .example twin. See PUBLIC_SAFETY.md, verify with python Meta-Brain/tools/scan_public_safety.py <repo>.
  12. Names are proposed, not imposed. Before creating the first workspace, item, report or agent, show the derived names and let the caller override them. Naming conventions are defaults. Skip the question for schemas, tables, columns and measures — those are cheap to change. See naming_conventions.md § Rule 0.
  13. Check superseded_rules.yaml before applying any layout, format or naming rule. It is the brain's index of rules that must not be applied, and of rules that are valid only under a stated condition. Finding a rule is not enough: a rule can be correct, current and still the wrong one here, because its condition does not hold.

    File an entry the moment a project applies a newer rule in place of an older one, while the evidence is still in hand. kind: superseded — the old rule is wrong, never apply it. kind: conditional — both are valid, the old one only under its written condition. Entries are enforced on every run by Meta-Brain/tests/test_superseded.py.

Conventions: Python 3.12+ with pathlib and type hints · UTF-8 everywhere, no BOM ([System.IO.File]::WriteAllText() in PowerShell, never Out-File for JSON) · conventional commits (feat(energy):, fix(core):, docs(brain):).

Report format: report-builder-agent/instructions.md is authoritative on Power BI report format and supersedes any summary elsewhere in this repo. Read it before emitting a report.


Setup

If Fabric-Brain/resource_ids.md is missing, the brain has no environment bound to it:

cp Fabric-Brain/resource_ids.example.md Fabric-Brain/resource_ids.md
cp Fabric-Brain/environment.example.md  Fabric-Brain/environment.md

# Foundry work only:
cp Foundry-Brain/resource_ids.example.md Foundry-Brain/resource_ids.md
cp Foundry-Brain/environment.example.md  Foundry-Brain/environment.md

# Database work only:
cp Database-Brain/resource_ids.example.md Database-Brain/resource_ids.md
cp Database-Brain/environment.example.md  Database-Brain/environment.md

Then fill in the Azure subscription, Fabric workspace and item IDs. Apps-Brain and Meta-Brain need no local config. All copies are gitignored. Full walkthrough: GETTING_STARTED.md.

MCP servers available to this workspace are catalogued in Meta-Brain/mcp_registry.md.


Using this brain from another working directory

Azure-Brain is designed to be consumed from other repositories — it holds the knowledge, the other repo holds the project.

  • Keep Azure-Brain checked out alongside your project, and point the agent at the relevant instructions.md by path. Nothing here needs to be installed or copied.
  • Pin a tag, not main. This brain drives agent behaviour: an unpinned reference means the consuming project's agents change the day this repo does. git clone --branch v1.0.0 https://github.com/Statyx/Azure-Brain.git ../Azure-Brain
  • Do not fork or duplicate instructions.md into the consuming repo. The brain is the single source of truth; a copy silently goes stale and reintroduces the failures these files prevent.
  • In the consuming repo, reference the brain from its own AGENTS.md (or .github/copilot-instructions.md) — one line naming the brain path and the agents it uses. A ready-to-paste block is in README.md.
  • Take only what you need. 38 of the 42 agents depend on no umbrella file, and each technology brain resolves 83–89 % of its links internally, so a single agent or a single brain lifts out cleanly. Apps-Brain is the exception (16 % internal — it consumes the others by design).
  • Corrections and lessons learned go back into the brain (known_issues.md of the relevant agent), not into the consuming repo — see CONTRIBUTING.md.

Testing

Any change to agent instructions, catalogs or shared docs must keep the umbrella suite green:

cd Meta-Brain
pip install -r requirements.txt      # pytest + PyYAML, first run only
python -m pytest tests/ -v --tb=short

CI (.github/workflows/no-client-leak.yml, job CI / pytest) runs exactly this on every push and PR, alongside the public-safety scanner (python Meta-Brain/tools/scan_public_safety.py ., job CI / No client leak). Run both locally before pushing — the scanner is what stops a customer name or a real endpoint reaching a public repo, and it only works if something runs it.

It validates, for every brain in BRAINS (Meta-Brain/tests/conftest.py — single source of truth): catalogs parse and match disk, every agent folder has a non-trivial instructions.md, internal markdown links resolve in every .md file, Python compiles, JSON parses, root markdown is non-empty.

Two guards are worth knowing about because they fail on things no reviewer would catch:

  • instructions.md must stay under 20 KB. The view tool truncates there, so a longer file is silently cut and the agent acts on half a framework. The fix is never to trim content — move the trailing sections into a companion file and name it in the load order at the top.
  • Expiry clocks. Meta-Brain/clocks.yaml registers dates the brain states as future facts (a retirement, an end-of-support). CI fails once a clock is within 30 days, so the prose gets rewritten before it turns false rather than after someone follows it. The registry stores no file list — the test scans the repo live and names the files in the failure.

The suite is green on a fresh clone — it must stay that way. test_links_resolve used to fail for the four agents linking to Fabric-Brain/resource_ids.md, because that file is gitignored (it holds tenant / subscription GUIDs) and ships only as resource_ids.example.md. Those four failures were expected, permanent, and therefore indistinguishable from a real regression — a suite that is never green gives no signal. Fixed 2026-07-31: a link may resolve to a missing file only when that filename is listed in .gitignore and a committed <name>.example.md sits beside it. Both conditions are required, and TestLocalOnlyLinkExemption locks that — a merely missing file, or a gitignored one with no template, is still reported broken. If you see failures here now, they are real.


Adding a new brain

  1. Create the folder + README.md + agents/_catalog.yaml.
  2. Add it to BRAINS in Meta-Brain/tests/conftest.py (covers all test modules).
  3. Update the brain table in README.md, the brain list in .github/copilot-instructions.md, and the layout + index in this file.
  4. Re-run the umbrella tests.

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.