On this page

Groups

Meaning

A Group is a semantic organizational scope within Dryv.

Groups divide a large authored system into meaningful domains, responsibilities, capabilities, or product areas without implying source folders, packages, framework modules, deployment units, or generated project structure.

Groups may form parent/child hierarchies.

Example:

text
commerce
identity
administration

Parent hierarchy affects semantic scope. It does not become part of declaration identity.

Declaration identity

Declarations that belong to a Group use the canonical identity:

text
<group>.<local-name>

Example:

text
group = administration
local declaration = Administrator
identity = administration.Administrator

If administration has parent core, the identity is still:

text
administration.Administrator

not:

text
core.administration.Administrator

Group ancestry is semantic scope, not registry nesting.

Canonical Group shape

A Group may define:

  • optional parent Group;
  • optional description;
  • Policies scoped to the Group;
  • scoped facets such as facets.http.root and facets.storage.namespace (the storage namespace default for the group's persisted schemas);
  • owned Feature references;
  • universal semantic metadata.

Example:

yaml
groups:
  users:
    description: User-management semantics
    features:
      - $ref: "#/features/users.Accounts"

Group-owned Features

Feature remains a canonical structural concept.

Its meaning is:

These canonical declarations belong together as one cohesive capability within a Group.

Ownership is written on the declaration (decision 0011):

text
Group ─owns─▶ Feature            (feature.group, required)
Declaration ─names─▶ Group       (group, required)
Declaration ─names─▶ Feature     (feature, optional; must belong to the same Group)
yaml
features:
  users.Accounts:
    group:
      $ref: "#/groups/users"

schemas:
  users.User:
    group:
      $ref: "#/groups/users"
    feature:
      $ref: "#/features/users.Accounts"

  users.AuditEntry: # no feature: owned directly by the group
    group:
      $ref: "#/groups/users"

Rules:

  • Ownable declarations are Properties, Schemas, Expressions, Policies, Failures, Events, Operations, Workflows and Views. Surfaces and Applications are not feature-owned.
  • group is required. feature is optional. When set, the Feature's group must equal the declaration's group (ir.feature.group_mismatch), and the Feature must exist (ir.feature.unresolved_reference).
  • Features are flat inside their Group. There is no Feature parent.
  • Features and Groups do not list their members. Membership is a derived reverse index, so two Features can never claim the same declaration.
  • Ownership is not usage. Any declaration may $ref any other, across Features and Groups.
  • A pack using scope: collects.feature partitions only feature-owned subjects. Group-owned subjects are skipped with an info diagnostic (planner.partition.feature_owner_absent). Use collects.group to include them.

Feature identity and declaration identity

Feature ownership never changes declaration identity. users.User stays users.User, not users.Accounts.User. Registries remain separated by semantic meaning, and packs look declarations up through those registries.

View parts inherit the owner of their View. Operation facets and Schema storage are reached through their owning declaration.

Group hierarchy

Groups may have parent Groups:

yaml
groups:
  platform: {}
  users:
    parent:
      $ref: "#/groups/platform"

Group hierarchy may participate in inherited semantic scope such as effective policies and scoped HTTP roots.

It does not imply:

  • filesystem nesting;
  • package nesting;
  • runtime module loading;
  • service/process boundaries;
  • deployment topology;
  • generated code layout.

Packs may choose generated structure from Group/Feature meaning, but that choice belongs to the pack.

Application relationship

Applications select Groups directly:

text
Application -> Groups

Applications do not own Feature lists.

Features are reached through their owning Groups, and declarations through their feature/group owner:

text
Application -> Groups -> Features -> declarations

This keeps application composition simple while retaining reusable Feature structure.

Boundaries

A Group does not redefine:

  • Property value meaning;
  • Schema state meaning;
  • Operation behavior;
  • Workflow orchestration;
  • Event meaning;
  • Policy rules;
  • View/Presentation meaning.

A Feature also does not redefine those meanings. It is the named owner that declarations point at.

Neither Group nor Feature implies framework modules, packages, directories, services, or deployment units.

Canonical ownership summary

text
DryvIR
  groups                 canonical Group registry
  features               canonical Feature lookup registry
  schemas                canonical Schema registry
  operations             canonical Operation registry
  events                 canonical Event registry
  workflows              canonical Workflow registry
  ...

Group
  features -> Feature refs

Feature
  group -> owning Group
  parent? -> Feature in same Group
  declaration membership refs

Application
  groups -> Group refs

This gives Dryv both human structural organization and flat deterministic semantic registries without introducing hidden nesting into declaration identity.

Search in