Monday, November 23, 2026

What about Team Ownership?

One of the most common questions I get when presenting the Polylith Architecture is about Team Ownership. My answer is usually that it is something the Teams need to agree on: what ownership means and how to implement it in practice.

My recommendation about Team Ownership within Software Development in general is that it's not about owning the Lines of Code. It is about responsibility for the Thing you deploy. Even with a standard multi-repo microservices setup, where different teams own the code in the individual repos, there are also shared libraries without any dedicated owner.

If you haven't heard about Polylith before: it is about Monorepos, sharing code and great Developer Experience for both Humans and Agents. And: it is Open Source.

In Polylith, all code in the Monorepo is shared. It wouldn't make sense if one Team owns a part of the shared code, but it might make sense to have ownership of projects. A Project in Polylith is the thing being deployed: the service, the app or the command-line tool. The latest version of the Polylith tool for Python has support for Team Ownership of projects. This makes it possible to have automated triggers based on the configured teams. You can use the output from the tool to send notifications in Slack, or have your CI add the affected Teams as reviewers for a Pull Request on GitHub.

The poly diff command is the recommended way to steer the CI workflows, such as what project(s) to deploy based on the changes in code. The command has now a new option: --teams. This command will output the Teams affected by the changes.

Example configuration
(in your workspace.toml, or pyproject.toml if you prefer):
        [tool.polylith.projects.teams]
        the-core-team = ["the-project", "another-project"]
        the-api-team = ["the-rest-api-project"]
        the-ecommerce-team = ["the-order-bounded-context"]
    

The new poly command addition will highlight the affected teams, when a change is made in code that is included in any of the projects.

        poly diff --teams --short
     

I hope this will be a useful addition to the daily work for organization with several teams with areas of responsibilities or ownership!

The Python tools for the Polylith Architecture on GitHub

Top photo by me: Visby, Gotland.

No comments: