cosmos-sdk/docs/architecture
Julien Robert 74ce07eb26
docs: improve documentation navigation and redirection (#13455)
2022-10-06 15:51:10 +02:00
..
PROCESS.md chore: master -> main (#11730) 2022-04-24 10:19:04 -04:00
README.md docs: change abci++ -> abci 1.0 (#13322) 2022-09-16 17:35:23 +02:00
adr-002-docs-structure.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-003-dynamic-capability-store.md docs: improve documentation navigation and redirection (#13455) 2022-10-06 15:51:10 +02:00
adr-004-split-denomination-keys.md docs: improve documentation navigation and redirection (#13455) 2022-10-06 15:51:10 +02:00
adr-006-secret-store-replacement.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-007-specialization-groups.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-008-dCERT-group.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-009-evidence-module.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-010-modular-antehandler.md docs: updates outdated docs (#12014) 2022-05-31 08:59:38 -04:00
adr-011-generalize-genesis-accounts.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-012-state-accessors.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-013-metrics.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-014-proportional-slashing.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-016-validator-consensus-key-rotation.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-017-historical-header-module.md docs: improve documentation navigation and redirection (#13455) 2022-10-06 15:51:10 +02:00
adr-018-extendable-voting-period.md docs: remove typos and IBC documentation (#11933) 2022-05-12 14:02:57 +02:00
adr-019-protobuf-state-encoding.md refactor: migrate to `cosmos/gogoproto` (#13070) 2022-09-08 17:27:48 +00:00
adr-020-protobuf-transaction-encoding.md docs: remove typos and IBC documentation (#11933) 2022-05-12 14:02:57 +02:00
adr-021-protobuf-query-encoding.md refactor: migrate to `cosmos/gogoproto` (#13070) 2022-09-08 17:27:48 +00:00
adr-022-custom-panic-handling.md docs: updates outdated docs (#12014) 2022-05-31 08:59:38 -04:00
adr-023-protobuf-naming.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-024-coin-metadata.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-027-deterministic-protobuf-serialization.md refactor: migrate to `cosmos/gogoproto` (#13070) 2022-09-08 17:27:48 +00:00
adr-028-public-key-addresses.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-029-fee-grant-module.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-030-authz-module.md refactor: migrate to `cosmos/gogoproto` (#13070) 2022-09-08 17:27:48 +00:00
adr-031-msg-service.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-032-typed-events.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
adr-033-protobuf-inter-module-comm.md refactor: migrate to `cosmos/gogoproto` (#13070) 2022-09-08 17:27:48 +00:00
adr-034-account-rekeying.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-035-rosetta-api-support.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-036-arbitrary-signature.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-037-gov-split-vote.md docs: remove typos and IBC documentation (#11933) 2022-05-12 14:02:57 +02:00
adr-038-state-listening.md refactor!: use injected encoding params in simapp (#12717) 2022-07-27 15:21:10 +02:00
adr-039-epoched-staking.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-040-storage-and-smt-state-commitments.md chore: Rename store/v2 -> store/v2alpha1 (#11392) 2022-03-16 18:30:27 +00:00
adr-041-in-place-store-migrations.md feat: deprecate x/params usage in `x/bank` (#12630) 2022-07-20 18:58:15 -04:00
adr-042-group-module.md docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
adr-043-nft-module.md docs: update adr-043-nft-module (#12293) 2022-06-18 09:22:02 +02:00
adr-044-protobuf-updates-guidelines.md chore: Update wording in ADR-044 (#12683) 2022-07-23 06:41:41 +00:00
adr-045-check-delivertx-middlewares.md refactor: Revert middlewares to antehandlers (part 1/2: baseapp) (#11979) 2022-05-20 09:27:27 +00:00
adr-046-module-params.md feat: deprecate x/params usage in `x/bank` (#12630) 2022-07-20 18:58:15 -04:00
adr-047-extend-upgrade-plan.md docs: ADR 047: Extend Upgrade Plan - Initial Draft (#10602) 2022-02-18 09:09:44 +00:00
adr-048-consensus-fees.md docs: update sdk & tm version links in docs (#12976) 2022-08-20 08:42:13 +02:00
adr-049-state-sync-hooks.md feat: Make extension snapshotter interface safer to use (#11825) 2022-08-18 09:33:55 +02:00
adr-050-sign-mode-textual-annex1.md feat: value renderer for timestamp protos (#12860) 2022-08-23 19:58:29 +00:00
adr-050-sign-mode-textual.md docs(textual): custom `Msg` renderers (#12785) 2022-09-07 14:21:10 +00:00
adr-053-go-module-refactoring.md docs: add ADR 053 Go Module Refactoring (#11799) 2022-04-28 08:52:19 -04:00
adr-055-orm.md docs: add ADR 055 ORM (#11807) 2022-05-04 14:59:08 +00:00
adr-057-app-wiring-1.md docs: add ADR 057 App Wiring Part I (#11873) 2022-07-21 12:07:41 +00:00
adr-058-auto-generated-cli.md docs: add ADR 058 Auto-Generated CLI (#11877) 2022-09-07 16:50:23 -04:00
adr-059-test-scopes.md docs: add module documentation testing (#12762) 2022-09-07 01:34:38 +02:00
adr-060-abci-1.0.md docs: change abci++ -> abci 1.0 (#13322) 2022-09-16 17:35:23 +02:00
adr-061-liquid-staking.md docs: Liquid staking ADR (#13239) 2022-09-23 19:35:37 +00:00
adr-template.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00

README.md

order parent
false
order
false

Architecture Decision Records (ADR)

This is a location to record all high-level architecture decisions in the Cosmos-SDK.

An Architectural Decision (AD) is a software design choice that addresses a functional or non-functional requirement that is architecturally significant. An Architecturally Significant Requirement (ASR) is a requirement that has a measurable effect on a software systems architecture and quality. An Architectural Decision Record (ADR) captures a single AD, such as often done when writing personal notes or meeting minutes; the collection of ADRs created and maintained in a project constitute its decision log. All these are within the topic of Architectural Knowledge Management (AKM).

You can read more about the ADR concept in this blog post.

Rationale

ADRs are intended to be the primary mechanism for proposing new feature designs and new processes, for collecting community input on an issue, and for documenting the design decisions. An ADR should provide:

  • Context on the relevant goals and the current state
  • Proposed changes to achieve the goals
  • Summary of pros and cons
  • References
  • Changelog

Note the distinction between an ADR and a spec. The ADR provides the context, intuition, reasoning, and justification for a change in architecture, or for the architecture of something new. The spec is much more compressed and streamlined summary of everything as it stands today.

If recorded decisions turned out to be lacking, convene a discussion, record the new decisions here, and then modify the code to match.

Creating new ADR

Read about the PROCESS.

Use RFC 2119 Keywords

When writing ADRs, follow the same best practices for writing RFCs. When writing RFCs, key words are used to signify the requirements in the specification. These words are often capitalized: "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL. They are to be interpreted as described in RFC 2119.

ADR Table of Contents

Accepted

Proposed

Draft