GLOBAL -- December 01, 2026 -- SonarQube Cloud now lets teams define a project's intended architecture in a file named sonar-architecture.json, stored in the repository and handled like code. Pull request analysis checks proposed code against the updated file and reports deviations before merge.
The file covers five languages: Java, C#, JavaScript, TypeScript and Python. SonarQube Server support is due in the next version, the company says. It did not give a release date.
Architecture changes move through the same pull request as code
The file sits in the project's base directory. According to the company, it uses the same intended architecture definition as the public web API, the SonarQube CLI and the SonarQube MCP Server. Changes to it appear in the same diff, with the same approvers and branching rules as the code they govern.
On a branch, analysis uses the architecture file in that branch. The main branch keeps its existing model until the pull request is approved and merged.
Reverting a commit restores the previous architecture
Reverting the commit that changed sonar-architecture.json restores the earlier intended architecture on the next analysis. The rollback is a standard Git operation, with no separate interface involved.
Each project keeps one source of truth. SonarQube uses the file when it exists and falls back to the model saved in SonarQube when it does not. A project setting disables file-based management for teams that prefer the web interface.
Coding agents can write the file directly
Coding agents can create and update the file, so agent-generated structural decisions land in version control and review. Sonar places architecture in the Guide pillar of its Agent Centric Development Cycle (AC/DC) framework.
Users and groups with the Administer Issues permission can create, edit and delete a project's intended architecture. The company says developers and tech leads typically already hold it. Organizations that need stricter separation of duties can require a dedicated Administer Architecture permission in organization settings.
Teams start by exporting their current intended architecture with the Sonar architecture command in the SonarQube CLI, or by asking a coding agent to write the file. They then commit it and open a pull request. Sonar did not say how many projects use the feature.