Skip to content

Latest commit

 

History

History
258 lines (195 loc) · 14.7 KB

GOVERNANCE.md

File metadata and controls

258 lines (195 loc) · 14.7 KB

Governance

This file says who can do what in the MetaObjects project, how someone earns more rights, and how decisions are made. MAINTAINERS.md lists who holds each role today.

MetaObjects is primarily a one-person, part-time project. Today the creator, Doug Mealing, is the only maintainer. These rules are written down now so that a second maintainer knows the terms before putting in time.

Roles

There are three roles.

Role Who What they can do
Contributor Anyone who opens an issue, a pull request, a review or a discussion Propose changes. Review any pull request. Their reviews count toward earning a maintainer role
Port maintainer Someone who owns one area: a language port, the web client, the docs, a generator family or a library (the areas are listed in MAINTAINERS.md) Review and merge pull requests that stay inside their area. Triage and label its issues. Publish that area's registry packages once publish rights are granted (see below)
Core maintainer Someone responsible for the project as a whole Everything a port maintainer can do, in every area. Approve changes to the model format, ADRs and releases. Grant and remove roles

A person can maintain more than one area. Core maintainers can merge in any area, but should leave a pull request to the area's port maintainer when there is one.

How rights are earned

Becoming a port maintainer

The usual bar is:

  • at least 5 merged pull requests in the area, and
  • about 2 months of reviewing other people's pull requests in that area.

Anyone can propose a person, including themselves, by opening an issue that links the merged pull requests and reviews. A core maintainer then decides, using the decision process below. The bar is a guide. A core maintainer can accept someone earlier when their work makes the case, and should say why on the issue.

When the role is granted, the person is added to MAINTAINERS.md and given write access to the repository. Branch protection still applies to them like everyone else.

Publish rights

Each port publishes to its own registry: npm for TypeScript and the web client, Maven Central for Java and Kotlin, NuGet for C#, PyPI for Python. Publish rights are granted separately from merge rights, because a published version cannot be taken back.

A port maintainer is added as an owner of their port's registry packages when:

  • they have been a port maintainer for at least one release of that port,
  • their registry account has two-factor authentication turned on, and
  • they have walked through docs/RELEASING.md for that registry with a core maintainer.

Publish rights cover the packages of that port only. A port maintainer publishes as part of a release the core maintainers have approved (see "Releases" below). The registry owners for each package are listed in MAINTAINERS.md, and that list is updated in the same change that grants or removes access.

Becoming a core maintainer

A port maintainer can become a core maintainer after at least 6 months in that role, by invitation from the existing core maintainers. All existing core maintainers must agree.

How decisions are made

Lazy consensus

Most decisions are made by lazy consensus. A proposal is made in public, as an issue, a pull request or a discussion. If no maintainer of the affected area objects within the waiting period, it is accepted.

  • A pull request inside one area can merge once a maintainer of that area approves it and the required checks pass. There is no fixed waiting period for these.
  • A change that touches more than one area waits at least 3 days after it is ready for review, so the maintainers of each area can look at it.
  • A maintainer does not approve their own pull request. Another maintainer of the area, or a core maintainer, reviews it. While the project has a single maintainer, that maintainer merges their own changes; this rule applies to an area once it has a second maintainer.
  • An objection must give a reason and, where possible, say what would resolve it. An objection without a reason does not block.

If the people involved cannot agree, the core maintainers decide by majority. If the core maintainers are split evenly, the creator breaks the tie only on the model format, ADRs and releases (see below). On any other subject, an even split leaves the proposal unaccepted and the status quo stands.

Changes that need a core maintainer

These changes need explicit approval from a core maintainer, even when they sit inside one area:

  • The model format. Metamodel types, subtypes and attributes; the canonical serialized form; expected-registry.json and metamodelVersion; and the shared conformance corpora under fixtures/. These are the contract every port has to match.
  • ADRs. A new or amended decision record under spec/decisions/.
  • The compatibility policy.
  • Releases, described next.
  • This file.

Extension packs and the core metamodel

An extension pack is a capability library that adds vocabulary or generators on top of MetaObjects, in the way the library/ entries do (see docs/features/libraries.md). Two rules apply:

  • Extension packs are allowed under the MetaObjects name. A pack may be built and published as a MetaObjects library or generator package, inside this repository or in a separate one. A pack built on the model format does not need core-maintainer approval to exist. The Ownership section below still governs the name and trademark.
  • Core vocabulary needs a second consumer. A new type, subtype or attribute enters the core metamodel only when a second, independent consumer needs it. Until then it lives in an extension pack. The decision procedure for vocabulary is ADR-0037, and what belongs in the project at all is set out in "What belongs in MetaObjects" in docs/features/libraries.md. Moving vocabulary into core is a model-format change, so it needs a core maintainer (above).
  • An attribute promoted from a pack into core keeps its name and meaning. Promotion moves which provider registers the attribute. It does not rename it or change what it does, so a model that used the attribute under the pack loads and behaves the same once core owns it.
  • Recorded exception: the systems vocabulary in 1.4.0. ADR-0070 (call 12) moves the systems pack's vocabulary into core and renames part of it (resource.database to resource.rdb, system.internal and .external to system.software, and the rest listed there), without a second independent consumer. The two rules above are waived for that vocabulary only: the pack was never published, so no adopter's model loads under the old names, and an entity file names its resource, so the resource must load in every port. Any other promotion follows the two rules above.

A pack in this repository is one of two kinds (ADR-0069). A bundled pack (db, rules, reporting, requirements and the others) ships inside each port's core package, is in the default bundle and in expected-registry.json, and moves with core's version. An independent pack lives in packs/<name>/, is outside the default bundle, has its own version and changelog, and is carried only by the ports its pack.json lists. Metamodel N.M names the default bundle only. A pack may depend on core; core never depends on a pack, and the gates lane fails a change that makes it. A new independent pack starts at 0.1.0 preview and stays unpublished until an estate project runs it with the drift gate enforced. Because they are the rulings this rests on, changing the kinds, the one-way dependency or the naming rule is a model-format and compatibility change, and so needs a core maintainer. Building a pack inside those rules does not.

The loader rule

The loader refuses what is invalid for the model; a limit of one generator is that generator's error. The loader refuses a model only when the model itself is ambiguous or contradictory: two declared names that resolve equal, two bindings on one method and path, a reference to something that does not exist. A clash with a name only a reference generator derives, or a subtype one generator cannot emit, is that generator's error, raised when it runs. A model that loads must stay usable by every other generator and by an adopter's own. Relaxing a loader refusal is never a break. Adding one is a model-format change and needs a core maintainer. The rule is a step of ADR-0037. The refusals that predate it, and where each goes:

Refusal Where it lives Status
A transition or operation named like a derived CRUD verb (ERR_TRANSITION_NAME_COLLISION) Every port's loader (rules validation), pinned by the error-rules-* conformance fixtures Unreleased in 1.3.0. Moves into the service generator's own error (the TypeScript service, service-routes and service-routes-hono generators exist in this release); the move touches five loaders and those fixtures.
@errors codes that collide with a reserved code Every port's loader (rules validation), same fixtures Unreleased in 1.3.0. Moves with the one above.
ERR_FILTERABLE_UNSUPPORTED_SUBTYPE Loader validation passes Released. Stays; moves to the REST generator when that code is next touched. Relaxing a refusal is never a break.
ERR_SORTABLE_UNSUPPORTED_SUBTYPE Loader validation passes Released. Same as the filter refusal.

Any other refusal that predates the rule stays as it is until someone touches it, and joins this table then.

Releases

The core maintainers decide when a release happens, what version it carries, and what goes in it. The procedure is docs/RELEASING.md. Port maintainers with publish rights run the publish for their port inside that decision. They do not publish a version the core maintainers have not approved.

The creator's tie-break and veto

The creator, Doug Mealing, has two extra powers, limited to three subjects: the model format, ADRs and releases.

  • Tie-break. When the core maintainers are split evenly on one of these subjects, the creator decides.
  • Veto. The creator can block a change to one of these subjects. A veto is written on the issue or pull request with the reason.

Outside those three subjects, the creator has one vote like any other core maintainer.

Ownership

The metaobjectsdev GitHub organization, the package namespaces (@metaobjectsdev on npm, com.metaobjects on Maven Central, metaobjects on PyPI, and the MetaObjects packages on NuGet), the metaobjects.dev and metaobjects.com domains, and the MetaObjects name and trademark belong to Doug Mealing LLC. Roles in this file grant access to these. They do not transfer ownership.

The code is licensed under the Apache License 2.0. Contributors keep the copyright to their contributions and license them to the project under that license. There is no copyright assignment and no contributor license agreement. Anyone may fork the code under the license; the license does not grant use of the MetaObjects name or trademark.

Paid work or sponsorship does not grant a role, a vote or an exception to review. A change built for a paying customer goes through the same review as any other change.

One commitment goes with the roles: a port maintainer gets first call on paid work in the port they maintain, as listed in MAINTAINERS.md. When the creator or Doug Mealing LLC has paid work that falls in a port, they offer it to that port's maintainer before anyone else; work that spans several ports is offered to each of those ports' maintainers. This is an offer of work only. It grants no role, vote or review exception, and the maintainer may decline it.

Succession

The creator has stepped away when they say so in writing, or when they have not committed, reviewed or answered on the project for 6 months.

When that happens:

  1. The remaining core maintainers run the project and decide by majority vote. The creator's tie-break does not pass to anyone, so an even split leaves the proposal unaccepted and the status quo stands.
  2. Doug Mealing LLC gives the remaining core maintainers admin access to the GitHub organization and owner access to every registry package, so that releases can continue.
  3. If there is no other core maintainer, the port maintainers choose one or more of themselves as core maintainers by majority vote, and step 2 applies to them.
  4. If there are no maintainers at all, the README is updated to say the project is unmaintained. The code stays available under the Apache License 2.0.

Ownership of the organization, the namespaces and the trademark stays with Doug Mealing LLC throughout. The creator's veto does not pass to anyone.

Stepping down and removal

Stepping down

Any maintainer can step down at any time by opening a pull request that moves them to the Emeritus section of MAINTAINERS.md. Their write access and registry ownership are removed within one week.

Inactivity

A maintainer who has not reviewed, merged or committed in their area for 6 months is asked whether they want to stay. If they do not answer within one month, they move to Emeritus. They can come back by asking; a core maintainer restores the role unless there is a reason not to.

Removal

A maintainer can be removed for a breach of the Code of Conduct, or for misusing their rights, such as publishing a version outside an approved release or merging a model-format change without core-maintainer approval. The core maintainers decide by majority, not counting the person concerned. The person is told the reason directly, and the change to MAINTAINERS.md is made in a pull request.

If a registry account or repository access may be compromised, any core maintainer can suspend that access at once. The decision on whether to restore it is made within two weeks.

Changing this file

Changes to this file go through a pull request, stay open for at least 2 weeks, and need approval from every core maintainer. The Ownership section can change only with Doug Mealing LLC's agreement.

Related files