Skip to content

chore: ADR structure change - #1657

Closed
dianab-cl wants to merge 7 commits into
mainfrom
diana/fou-1170-info-needed-set-up-adr-spec-structure-ics-numbered
Closed

dianab-cl wants to merge 7 commits into
mainfrom
diana/fou-1170-info-needed-set-up-adr-spec-structure-ics-numbered

Conversation

@dianab-cl

@dianab-cl dianab-cl commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR gives the IBC repositories one home for design decisions and splits spec/ in two:

  • spec/adr/: every architecture decision record (ADR) from cosmos/ibc, ibc-go and ibc-contracts, in one numbered series.
  • spec/ics/: the Interchain Standards, moved here from the root of spec/.

Merge first: lfdt-ibc/ibc-go#9146 and lfdt-ibc/ibc-contracts#1245 remove their ADRs and link to spec/adr/.

ADRs

  • Numbering: the ibc-go ADRs keep 001–027. The ibc-contracts ADRs become 028–035 and the e2e harness ADRs become 036–037. The README's "Moved ADRs" table maps each old path to its new number.
  • spec/adr/README.md and adr-template.md: these set out when to write an ADR rather than change an ICS, the numbering, the header, the statuses, the process and the index. ADRs are not normative: where an ADR and an ICS disagree, the ICS applies.
  • Approval: an ADR PR is titled docs(adr): ADR NNN short title. It needs the usual approvals here plus an approving review from a maintainer of every other repository in its scope.
  • One header format: every ADR now opens with Status, Date, optional Last Updated, Scope and ICS. Status is always one of Proposed, Accepted, Rejected, Implemented, Deprecated or Superseded. Detail that used to be in a status line, such as the implementing release or a deprecation reason, moved to the ADR's Changelog or References.
  • Status corrections, each checked against the implementing repository's source and history:
    • Set to Implemented: 002, 003, 005, 010, 026, 034, 035, 036 and 037. 010 shipped in ibc-go v9 through a 02-client router and LightClientModule, not the SDK intermodule routing it describes, and its changelog says so.
    • Set to Deprecated: 004 (29-fee was removed in ibc-go#8000). 025 is unchanged but now records why it was deprecated.
    • Left Proposed: 015 and 029. Deciding them is for a later PR.
  • Dates: ADR 031's date said 2025 but it was written on Jan 4, 2026. ADR 032 gains the date it was written. ADR 015's date is reformatted. The Last Updated dates on 028, 030 and 031 now match their last upstream edits.
  • Bodies: apart from the above, the moved ADRs only get renumbered titles, fixed links, ADR NNN cross-references and lint fixes.

Standards move to spec/ics/

  • core/, app/, client/, relayer/, IBC_V2/, ics-001-ics-standard/, PROCESS.md, STANDARDS_COMMITTEE.md and ics-template.md move to spec/ics/ unchanged. CONTRIBUTING.md and the lint Makefile stay at spec/ because they cover ADRs too.
  • Relative links across the move and main/master GitHub URLs in this repository are updated. Links pinned to a commit or tag are left alone.
  • Breaking for external links: GitHub does not redirect moved files, so links from other repositories to cosmos/ibc/.../spec/core/... and similar paths return 404 after merge. ibc-go has about 217. Follow-up PRs will update them.

Docs site

  • ADRs are not published on the site; they are read on GitHub. The Specification tab gets one sidebar entry linking to the ADR index.
  • The ibc-go ADR copies under latest/ and v10.1.x/ are removed. The 32 old URLs redirect to the ADRs on GitHub, and ADR links in site pages, including frozen v10.1.x pages, point to GitHub.
  • specgen.py now publishes only spec/ics/ and strips the ics/ segment, so spec page URLs and navigation do not change. It also absolutizes image paths that carry a query string, such as the ICS-28 figures written as figure.png?raw=true, which were previously left relative.

Other

  • An e2e pointer README at e2e/docs/adr/.
  • A code fence in the ICS-28 data structures that was not aligned with its list item is re-indented. The file now passes markdownlint, which CI runs on every moved file.
  • SPDX headers on every new or changed file except docs.json.

Review

Start with spec/adr/README.md, spec/CONTRIBUTING.md, docs/scripts/specgen.py and docs/docs.json. Most of the remaining files are renames.

Validated locally with markdownlint, check-nav.js, check-canonicals.js, mint broken-links, specgen --check and test-specgen.py. Still to verify on a preview deployment: one old /ibc-go/latest/architecture/adr-… URL redirects to GitHub.

Linear: FOU-1170

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work. (Linear FOU-1170)
  • Include changelog entry when appropriate (e.g. chores should be omitted from changelog). (n/a: docs only)
  • Wrote unit and e2e tests if relevant. (updated test-specgen.py)
  • Updated documentation (docs/) if anything is changed. See docs/AGENTS.md.
  • Added godoc comments if relevant. (n/a)
  • Self-reviewed Files changed in the GitHub PR explorer.
  • Provide a conventional commit message to follow the repository standards.

Signed-off-by: Diana Borbe <diana@cosmoslabs.io>
@dianab-cl
dianab-cl requested a review from a team as a code owner November 3, 2026 11:27
@linear-code

linear-code Bot commented Nov 3, 2026

Copy link
Copy Markdown

FOU-1170

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Consolidates ADRs under spec/adr/ and moves standards under spec/ics/.

  • IBC design decisions now share one numbered ADR collection.
  • IBC standards now live under spec/ics/ with their supporting files.
  • The docs generator publishes standards from spec/ics/ at the existing site paths.

The generation check stopped because this checkout contains Git LFS pointers instead of source images; it did not complete.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  ICS["spec/ics/"] --> Generator["specgen.py"]
  Generator --> Site["docs/ibc/spec/ — unchanged URLs"]
  ADR["spec/adr/"] --> GitHub["ADRs on GitHub"]
  Old["Old architecture URLs"] --> Redirects["docs.json redirects"]
  Redirects --> GitHub
Loading

Reviews (3) · Last reviewed commit: "Merge branch 'main' into diana/fou-1170-..." · Reviewed by Greptile

Comment thread spec/adr/README.md Resolved
Signed-off-by: Diana Borbe <diana@cosmoslabs.io>
@dianab-cl

Copy link
Copy Markdown
Contributor Author

@greptile review

Signed-off-by: Diana Borbe <diana@cosmoslabs.io>
Signed-off-by: Diana Borbe <diana@cosmoslabs.io>
@dianab-cl

Copy link
Copy Markdown
Contributor Author

@greptile review

Signed-off-by: Diana Borbe <diana@cosmoslabs.io>
Signed-off-by: Diana Borbe <diana@cosmoslabs.io>
@dianab-cl dianab-cl closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant