Teams and ownership
A Team is a group that can own things, defined once in workspace.yaml for every Project. Every Element has exactly one Owner, the Team accountable for it.
systems: shop: name: Shop description: An internal System with every Service type. services: web: name: Web description: An app Service. technology: React owner: edge tags: [customer-facing] links: - label: Runbook url: https://wiki.sink.example/runbooks/web relationships: - to: api description: Calls technology: JSON/HTTPS api: name: API description: | An app Service with Components. Its description is **Markdown**:
- `orders` takes and charges orders - `catalogue` searches the catalog technology: Node.js repository: https://github.com/sink-example/api metadata: tier: 1 on-call: core-oncall pci-scope: true components: orders: name: Orders technology: TypeScript module relationships: - to: orders-db description: Stores orders in technology: SQL - to: payment-gateway description: Charges cards through technology: HTTPS catalogue: name: Catalog technology: TypeScript module relationships: - to: search description: Searches with technology: HTTPS orders-db: name: Orders DB description: A datastore Service. type: datastore technology: PostgreSQL owner: data events: name: Events description: A broker Service. type: broker technology: Kafka owner: data mailer: name: Mailer description: Subscribes to order events. technology: Go relationships: - to: api description: Emails a receipt for each order interaction: async via: events channel: orders.placed payments-provider: name: Payments Provider description: An External System. external: true owner: edgeOne Owner, by default the Project’s
Section titled “One Owner, by default the Project’s”The Owner is never blank and never shared. It defaults to the Team that owns the Project, named in its project.yaml. Set owner on an Element only when it differs.
In the Kitchen sink above, the Core Team owns the Project. The Edge Team owns the web front end, and the Data Team owns the datastore and the broker.
A child inherits nothing from its parent. Shop’s Services are owned by the Project’s Team unless they say otherwise, whoever owns Shop.
What else has an Owner
Section titled “What else has an Owner”- A Relationship belongs to its consumer’s Owner.
- A Deployment belongs to its Service’s Owner.
- A Deployment Target, a place Services run such as a cluster, has an Owner of its own. Like an Element’s, it defaults to its Project’s Team. Big Bank’s Platform Team owns the AWS region, but the Core Banking Team owns the data center declared beside it.
Owners must exist
Section titled “Owners must exist”An owner that names no Team is an error. archidocs check reports it as unknown-team, with a suggestion when the name is close to a Team’s. To add a Team, add it to workspace.yaml first. The workspace.yaml reference lists a Team’s fields.
Ownership in the viewer and MCP
Section titled “Ownership in the viewer and MCP”Every node in the viewer and in an exported diagram carries its Owner: a colored stripe with the Team’s short code. The Team Lens highlights what one Team owns, and the Teams tree lists each Team’s Elements.
Over MCP, list_owned answers “what does my Team own?”. A Saved View can select one Team’s Elements, or open with the Team Lens.
Why it works this way
Section titled “Why it works this way”- One Team to ask. When something breaks, the Owner is the Team to call. A blank or shared Owner would leave that question open, so neither is allowed.
- A default from the Project. Most of a Project belongs to its Team, so
owneris written only for the exceptions. A Project’s files stay short, and the exceptions stand out. - Nothing inherited from the parent. A System often spans Teams. Inheriting its Owner would hand every Service in it to one Team by accident.
- The consumer’s Team owns a Relationship. The Team that depends on something is the one that declares it, in its own Project. So ownership of the edge follows who wrote it.
- Teams are flat and have no members. A Team has a name, a description and links, but no sub-Teams and no member list. The Workspace holds no staff data, and a Developer just picks their Team.
- Color never works alone. The Team’s code sits on every stripe, so ownership reads the same for people who can’t tell the colors apart.
Related
Section titled “Related”Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.