Skip to content

Latest commit

 

History

History
166 lines (114 loc) · 11.8 KB

README.md

File metadata and controls

166 lines (114 loc) · 11.8 KB
shortname: BEP-2
name: Consensus-Oriented Specification System
type: Meta
status: Draft
editor: Alberto Granzotto <alberto@bigchaindb.com>
contributors: Troy McConaghy <troy@bigchaindb.com>, Katha Griess <katha@bigchaindb.com>

This document describes a consensus-oriented specification system (COSS) for building interoperable technical specifications. COSS is based on a lightweight editorial process that seeks to engage the widest possible range of interested parties and move rapidly to consensus through working code.

This specification is based on unprotocols.org 2/COSS and on EIP1 - EIP Purpose and Guidelines.

Change Process

This document is governed by the BEP-2 (COSS).

Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

Goals

The primary goal of COSS is to facilitate the process of writing, proving, and improving new technical specifications. A "technical specification" defines a protocol, a process, an API, a use of language, a methodology, or any other aspect of a technical environment that can usefully be documented for the purposes of technical or social interoperability.

A BigchainDB specification is called BigchainDB Enhancement Proposal, BEP henceforth.

COSS is intended to above all be economical and rapid, so that it is useful to small teams with little time to spend on more formal processes.

Principles:

  • We aim for rough consensus and running code.
  • BEPs are small pieces, made by small teams.
  • BEPs should have a clearly responsible editor.
  • The process should be visible, objective, and accessible to anyone.
  • The process should clearly separate experiments from solutions.
  • The process should allow deprecation of old BEPs.

BEPs should take minutes to explain, hours to design, days to write, weeks to prove, months to become mature, and years to replace.

BEPs have no special status except that accorded by the community.

The author of the BEP is responsible for building consensus within the community and documenting dissenting opinions.

Architecture

Types of BEP

There are three types of BEPs:

  • A Standard Track BEP describes any change to network protocols, transaction validity rules, proposed application standards/conventions, or any change or addition that affects the interoperability of applications using BigchainDB products.
  • An Informational BEP describes a BigchainDB design issue, or provides general guidelines or information to the BigchainDB community, but does not propose a new feature. Informational BEPs do not necessarily represent BigchainDB community consensus or a recommendation, so users and implementers are free to ignore Informational BEPs or follow their advice.
  • A Meta BEP describes a process surrounding BigchainDB or proposes a change to a process.

BEP Format

A BEP is a set of Markdown documents (the main file SHOULD be called README.md), together with comments, attached files, and other resources. A BEP is identified by its number (e.g. this BEP is BEP-2). The number of the BEP is also the name of the directory where its files are stored.

Every BEP (including branches) carries a different number. New versions of the same BEP have new numbers.

BEP template

Each BEP MUST customize and include this header:

```
shortname: [number/shortname]
name: [Full name of the BEP]
type: [standard | informational | meta ]
status: [raw | draft | stable | deprecated | retired | deleted]
editor: [Editor Name <email address>]
contributors: [Optional Contributor 1 <email address>, ..., Optional Contributor N <email address>]
```

Note: the number is assigned after a BEP has been submitted.

Each BEP SHOULD include the following sections:

  1. Abstract. The abstract is a short (~200 word) informal description of the technical issue being addressed.

  2. Motivation. The motivation is a possibly long informal description of the issue being addressed. The motivation is critical for BEPs that want to change the BigchainDB protocol. It should clearly explain why the existing protocol is inadequate to address the problem that the BEP solves. BEP submissions without sufficient motivation may be rejected outright.

  3. Problem Breakdown The detailed formal description of the problem in the form of the list of exact issues the solution has to address.

  4. Specification: The technical specification should describe the syntax and semantics of any new feature. The specification must address the exact issues described in the solution breakdown and should describe how it addresses them. The specification should be detailed enough to allow competing, interoperable implementations. It MAY describe the impact on data models, API endpoints, security, performance, end users, deployment, documentation, and testing.

  5. Rationale. The rationale fleshes out the specification by describing what motivated the design and why particular design decisions were made. It should describe alternate designs that were considered and related work, e.g. how the feature is supported in other languages. The rationale may also provide evidence of consensus within the community, and should discuss important objections or concerns raised during discussion.

  6. Backwards Compatibility. All BEPs that introduce backwards incompatibilities must include a section describing these incompatibilities and their severity. The BEP must explain how the author proposes to deal with these incompatibilities. BEP submissions without a sufficient backwards compatibility treatise may be rejected outright.

  7. Implementation. The implementations must be completed before any BEP is given status "stable", but it need not be completed before the BEP is accepted. While there is merit to the approach of reaching consensus on the BEP and rationale before writing code, the principle of "rough consensus and running code" is still useful when it comes to resolving many discussions of API details.

  8. Copyright Waiver. Except for BEP-1 (C4) and BEP-2 (COSS), all BEPs MUST be released to the public domain. To do that, the following block of HTML SHOULD be used in the BEP's source Markdown file. (HTML is valid Markdown.)

<p xmlns:dct="http://purl.org/dc/terms/">
  <a rel="license"
     href="http://creativecommons.org/publicdomain/zero/1.0/">
    <img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
  </a>
  <br />
  To the extent possible under law, all contributors to this BEP
  have waived all copyright and related or neighboring rights to this BEP.
</p>

The first 4 sections above are based on the Leslie Lamport's note about describing solutions.

COSS Lifecycle

Every BEP has an independent lifecycle that documents clearly its current status.

A BEP has six possible states that reflect its maturity and contractual weight:

Lifecycle diagram

Raw BEPs

All new BEPs are raw BEPs. Changes to raw BEPs can be unilateral and arbitrary. Those seeking to implement a raw BEP should ask for it to be made a draft BEP. Raw BEPs have no contractual weight.

Draft BEPs

When raw BEPs can be demonstrated, they become draft BEPs. Changes to draft BEPs should be done in consultation with users. Draft BEPs are contracts between the editors and implementers.

Stable BEPs

When draft BEPs are used by third parties, they become stable BEPs. Changes to stable BEPs should be restricted to cosmetic ones, errata and clarifications. Stable BEPs are contracts between editors, implementers, and end-users.

Deprecated BEPs

When stable BEPs are replaced by newer draft BEPs, they become deprecated BEPs. Deprecated BEPs should not be changed except to indicate their replacements, if any. Deprecated BEPs are contracts between editors, implementers and end-users.

Retired BEPs

When deprecated BEPs are no longer used in products, they become retired BEPs. Retired BEPs are part of the historical record. They should not be changed except to indicate their replacements, if any. Retired BEPs have no contractual weight.

Deleted BEPs

Deleted BEPs are those that have not reached maturity (stable) and were discarded. They should not be used and are only kept for their historical value. Only Raw and Draft BEPs can be deleted.

Editorial control

A BEP MUST have a single responsible editor, the only person who SHALL change the status of the BEP through the lifecycle stages.

A BEP MAY also have additional contributors who contribute changes to it. It is RECOMMENDED to use the C4 process to maximize the scale and diversity of contributions.

The editor is responsible for accurately maintaining the state of BEPs and for handling all comments on the BEP.

Branching and Merging

Any member of the domain MAY branch a BEP at any point. This is done by copying the existing text, and creating a new BEP with the same name and content, but a new number. The ability to branch a BEP is necessary in these circumstances:

  • To change the responsible editor for a BEP, with or without the cooperation of the current responsible editor.
  • To rejuvenate a BEP that is stable but needs functional changes. This is the proper way to make a new version of a BEP that is in stable or deprecated status.
  • To resolve disputes between different technical opinions.

The responsible editor of a branched BEP is the person who makes the branch.

Branches, including added contributions, SHOULD be dedicated to the public domain using CC0 (just like the original BEP). This means that contributors are guaranteed the right to merge changes made in branches back into their original BEPs.

Technically speaking, a branch is a different BEP, even if it carries the same name. Branches have no special status except that accorded by the community.

Conflict resolution

COSS resolves natural conflicts between teams and vendors by allowing anyone to define a new BEP. There is no editorial control process except that practised by the editor of a new BEP. The administrators of a domain (moderators) may choose to interfere in editorial conflicts, and may suspend or ban individuals for behaviour they consider inappropriate.

Conventions

Where possible editors and contributors are encouraged to:

  • Refer to and build on existing work when possible, especially IETF specifications.
  • Contribute to existing BEPs rather than reinvent their own.
  • Use collaborative branching and merging as a tool for experimentation.

License

Copyright (c) 2008-16 Yurii Rashkovskii yrashk@gmail.com, Pieter Hintjens ph@imatix.com, André Rebentisch andre@openstandards.de, Alberto Barrionuevo abarrio@opentia.es, Chris Puttick chris.puttick@thehumanjourney.net Copyright (c) 2018 BigchainDB GmbH

This BEP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This BEP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.