Skip to content

Add notResponsibleFor to BoundedContext #372

Open

Description

@stefan-ka

Motivation

At KanDDDinsky 2026, Michael Plöd presented "From Collaborative Modeling to AI-Ready Domain Knowledge" (demo repo). The talk uses CML as the machine-readable context map that coding agents and the build read. One gap it names explicitly: CML can express what a Bounded Context is responsible for (responsibilities), but not what it is not responsible for. "Agents love doing more than you asked." The demo works around this with a side file (boundary.yaml).

Proposal

Add an optional notResponsibleFor attribute to BoundedContext, symmetric to responsibilities:

BoundedContext TicketSales implements FareSales {
  responsibilities = "Selling fare products", "Refunds"
  notResponsibleFor = "Gate validation", "Support cases"
}

Open question: should an entry optionally point to the context that is responsible? Example: "Gate validation" -> AccessControl. That would let generators turn it into a hint like "this belongs to AccessControl".

Tasks

  • Grammar (ContextMappingDSL.xtext)
  • Show in generators where responsibilities is shown today (PlantUML, generic Freemarker data model)
  • Tests and documentation (contextmapper.org)

Activity

  1. stefan-ka commented on Oct 20, 2026

    @stefan-ka
    MemberAuthor

    We renamed the keyword from notResponsibleFor to nonResponsibilities for consistency: it is now a noun like responsibilities and the other Bounded Context attributes.

    BoundedContext TicketSales implements FareSales {
      responsibilities = "Selling fare products", "Refunds"
      nonResponsibilities = "Gate validation", "Support cases"
    }
    

    Implemented in #383.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions