feat(coordinator): document all TOML config keys with @ConfigDoc/@ConfigSection#3568
Open
gauravahuja wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Jul 20, 2026
gauravahuja
force-pushed
the
feat/coordinator-config-docs-annotate
branch
2 times, most recently
from
July 23, 2026 09:37
4952f74 to
6794434
Compare
gauravahuja
changed the base branch from
feat/coordinator-config-docs-check
to
feat/config-docs-coordinator-wiring
July 23, 2026 09:38
gauravahuja
force-pushed
the
feat/config-docs-coordinator-wiring
branch
from
July 23, 2026 09:51
7fc9f75 to
a89318d
Compare
…figSection Annotate every Coordinator TOML config class with @ConfigDoc (leaf values) and @ConfigSection (nested tables), covering all 450 config keys across: top-level sections, defaults, database, request retries, prover, traces, conflation, L1 submission, L2 network gas pricing, message anchoring, forced transactions, protocol, signer, state manager, type-2 state proof, L1 finalization monitor, and API. Annotations are imported from the jvm-libs:linea:config-docs module and depended on via compileOnly, so the tooling stays out of the production jar. checkConfigDocs now reports 450/450 keys documented. Refs: #3567 Signed-off-by: Gaurav Ahuja <gauravahuja9@gmail.com>
gauravahuja
force-pushed
the
feat/coordinator-config-docs-annotate
branch
from
July 23, 2026 09:54
6794434 to
4b24a17
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Annotate every Coordinator TOML config class with
@ConfigDoc(leaf values) and@ConfigSection(nested tables) so the schema is fully self-documented andcheckConfigDocs(from #3607) passes.@ConfigDoc(description, plusdefault/examplewhere meaningful); every nested table carries@ConfigSection.RequestRetriesToml) are documented once and reused everywhere.linea.config.docsmodule, added tocoordinator:appas acompileOnlydependency so the tooling stays out of the production jar../gradlew :coordinator:app:checkConfigDocsreports 450/450 keys documented.Conventions
default = "..."on optional leaves with stable defaults (durations as ISO-8601, e.g.PT1S); nullable "omit to disable" cases explained in the description.example = "..."for endpoints, paths, hosts, and hashes.Test plan
./gradlew :coordinator:app:checkConfigDocs— 450/450 documented../gradlew :coordinator:app:test --tests "linea.coordinator.config.v2.*"— passes../gradlew :coordinator:app:spotlessCheck— passes.Not in scope
checkConfigDocsintocheck+ CI (later).Note
Low Risk
Documentation-only annotations and generated docs; no changes to config parsing, defaults, or coordinator runtime behavior.
Overview
Documents the full Coordinator v2 TOML schema so
checkConfigDocs/generateConfigDocscan validate coverage and emit operator-facing reference material.Every leaf property on the TOML data classes gets
@ConfigDoc(description plusdefault/examplewhere useful). Nested tables get@ConfigSection. Shared shapes likeRequestRetriesTomlare documented once and reused across services (L1 submission, anchoring, database, etc.).coordinator:apppullsjvm-libs:linea:config-docsascompileOnlyso annotations are visible to the doc generator but not shipped in the production jar.The PR also adds
docs/tech/components/coordinator-config-reference.md, generated from those annotations (header points at./gradlew :coordinator:app:generateConfigDocs).Reviewed by Cursor Bugbot for commit 4b24a17. Bugbot is set up for automated code reviews on this repo. Configure here.