ai-governance-oss / console
AGENTS.md2 starsChanged 4 months agoApache-2.0View on GitHub
This directory owns the Next.js AI Governance Control Plane Studio frontend. - Studio consumes REST through console/lib/api/; backend services remain the authority for governance and authorization decisions. - TenantContextProvider holds the selected organisation and project for the browser experience. It is UI state, not a server-side authorization source. - console/auth owns Keycloak token acquisition. Runtime configuration is read through console/lib/runtime-config.ts. - Do not reproduce backend policy, lifecycle, or authorization logic in the UI. A hidden control or client-side permission check…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- keycloak-postgres/AGENTS.mdAGENTS.md
- api-changeSkill
- domain-featureSkill
- governance-policySkill
- keycloak-service-identitySkill
- model-runtime-capability-profileSkill
- tenant-isolationSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Do not reproduce backend policy, lifecycle, or authorization logic in the UI.
- Distinctive: line 18
Keep REST types and client calls aligned with public contracts.
- Distinctive: line 20
Treat loading, empty, partial-failure, and permission-denied states as product states.
- Distinctive: line 23
Do not place access tokens or tenant selection in URLs or client logs.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.
Files
Scope
This directory owns the Next.js AI Governance Control Plane Studio frontend.
Architectural Facts
- Studio consumes REST through
console/lib/api/; backend services remain the authority for governance and authorization decisions. TenantContextProviderholds the selected organisation and project for the browser experience. It is UI state, not a server-side authorization source.console/authowns Keycloak token acquisition. Runtime configuration is read throughconsole/lib/runtime-config.ts.
Change Rules
- Do not reproduce backend policy, lifecycle, or authorization logic in the UI. A hidden control or client-side permission check does not protect an API.
- Keep REST types and client calls aligned with public contracts; do not fork generated or shared API shapes into unrelated client stores.
- Treat loading, empty, partial-failure, and permission-denied states as product states. Keep filters and selected entities deep-linkable where the existing page pattern supports it.
- Do not place access tokens or tenant selection in URLs or client logs. Tenant selection may change presentation but never authorizes access.
- Maintain accessible labels, keyboard operation, and stable selectors for new controls.
Validation
From console/, run pnpm lint and pnpm typecheck. Run the relevant page
or API-client checks when changing a contract consumer.
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
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.

