Skip to main content

Relations between concepts

GuideRelations between concepts10/13

Relations are the typed edges of the ontology's knowledge graph: "this capability depends on that one", "this element belongs to that capability". In Atlas, each relation is one entry in a concept's frontmatter. Below are the relation types, how to write them, and how the map and your coding agent's MCP tools (such as query_ontology and find_backlinks) read them.

Structure and meaning

Relations come in two groups.

  • Structure says what contains what: a project holds domains, a domain holds capabilities, a capability holds elements. Structure alone makes a tree.
  • Meaning says how concepts depend on or relate to each other, across any level. A capability in one domain can depend on a capability in another, and two domains can relate directly. A single relation like this turns the tree into a graph.

The relation types

MeaningFrontmatter keyFrom → toOn the map
Project domainsdomains: [...]project → domaindomains around the project
Contained capabilitiescapabilities: [...]project or domain → capabilitydiscs around the domain
Contained elementselements: [...]project, domain or capability → elementdots around the capability
Domain membershipdomain: <slug>capability or element → domainplaces it in that domain
Generic containmentcontains: [...]any concept → any concept, when no key above fits
Depends ondependencies: [...]any concept → a concept it needsa taper toward what is needed
Relatedrelates: [...]any concept ↔ any concepta dotted hairline
Broader conceptbroader: [...]domain → domain, capability → capability, element → elementa double hairline, shown as is_a
Describesdescribes: [...]document → the concept it explainslisted in the document's panel

Atlas also reads depends_on: as another spelling of dependencies:, but always writes dependencies:. The full table, with direction and inference rules, is in section 5 of the Atlas specification.

Use broader only for a real "is a kind of" claim between two concepts of the same kind: everything that fits the narrower definition must also fit the broader one. Being in the same domain, having similar names or sitting in nested folders is not enough.

Writing a relation

A relation is written once, on the source concept. The target does not need to mention it.

---
uid: 94cf0cde-1e74-497d-ac41-00cdf3a42f0b
slug: capabilities/vault-live-updates
kind: capability
title: Vault live updates
domain: domains/local-vault
dependencies: [capabilities/map-render]
relates: [capabilities/conflict-guard]
relation_notes: { capabilities/map-render: "A detected file change has to redraw the map to be seen." }
---

relation_notes holds one sentence per relation saying why it holds, keyed by the target's slug. A new depends_on written through the MCP server or the map's relation editor must include that sentence. Other relations should have one whenever you know the reason. The concept panel marks relations without one as No reason.

Values are slugs, so a person can read the graph in the file. A unique short form also works, such as map-render for capabilities/map-render. Renaming a concept through Atlas rewrites every relation that points to it.

When Atlas writes a relation list, it trims, deduplicates and sorts it, so the order has no meaning. Atlas never adds inverse or transitive relations on its own. relates written on one side is not copied to the other. If A depends on B and B depends on C, Atlas does not write "A depends on C". A missing relation means "not recorded", not "no relation".

How the map uses relations

  • At rest, faint arcs between domains count the depends_on relations between their concepts, in each direction.
  • When you point at or select a concept, the map draws only that concept's direct relations, one line per connected concept: tapers for Depends on and Used by, dotted lines for Related, double lines for Broader concept.
  • The concept panel lists Depends on and Used by from depends_on alone. Related and broader links are counted under Other relations.

See Reading the map for the full line key.

How agents use relations

The MCP server answers graph questions from the same frontmatter, so your agent does not have to read every file.

  • find_backlinks lists every concept that points to a slug, through any relation key or a link in a body. Call it before a rename or a delete.
  • query_ontology with path returns the shortest path between two concepts. Each hop names the key that links it (via) and, when one is recorded, the reason (rationale).
  • query_ontology with neighbors returns one hop around a concept, filtered by direction and type.
  • query_ontology with impact or blast_radius answers "what is affected if this changes?" It follows declared depends_on relations only; structure is not impact.
  • query_ontology with project_map lists the domains of a project and the relations between them.

To write, add_relations takes a list of relations, each with from, to, a type (depends_on, relates, contains, describes, domains, capabilities, elements or domain) and a why. remove_relation previews by default and writes only with confirm: true; with replaceWith it swaps a relation for another in one write. broader is not one of the add_relations types yet. To change it, an agent calls patch_concept with the full new list and the file's mtime, then runs validate_vault.

On the map, Edit relations writes one relation at a time, with the same checks as the MCP tools; see Editing concepts and relations.

The files stay the truth

Adding a relation changes one line in one file, and the change shows up in git diff like any other. A relation an agent writes looks the same as one you write, so one review covers both.