Documentation Governance
This page defines the minimum quality bar and release-time controls for ta4j documentation.
Documentation quality bar
User-facing documentation should satisfy:
- Coverage: installation, strategy building, backtesting, live operations, and troubleshooting are all documented with runnable references
- Clarity: canonical paths and decision points are explicit
- Operability: production checklists and failure handling are documented
- Discoverability: key pages are reachable from
Homeand_Sidebar - Freshness: docs remain aligned with current APIs and examples
Use Documentation Quality Rubric for scored audits.
4.5 bar policy:
- Scores at
>=4.5must be supported by explicit evidence in the rubric’s evidence contract. - Score updates must include a short justification note tied to changed artifacts/checks.
Canonical ownership model
Home.md: canonical wiki homepage sourceREADME.md: repository landing page copy generated verbatim fromHome.mdviascripts/sync-readme-from-home.shta4j-examples/README.md: runnable progression and example discovery- Wiki:
- Canonical User Journey: end-to-end flow
- Backtesting, Live Trading: execution usage guidance
- Live Trading Runbook, Backtesting Realism Checklist, Troubleshooting Hub: production operations
Owner roles:
- Feature author owns doc updates for changed APIs/examples in the same change set.
- Release reviewer enforces the release-note-to-docs delta checklist.
- Maintainer on duty refreshes scorecard and freshness status before a release cut.
Homepage sync workflow:
- Edit
Home.mddirectly. - Run
bash scripts/sync-readme-from-home.shbefore commit to refreshREADME.md. - CI re-runs the sync script and fails if committed
README.mdis out of date.
Release-time documentation checks
Release preparation must validate:
- Link integrity for user-facing docs
- Example-reference integrity (linked files/classes exist)
- Command integrity where feasible (
-Dexec.mainClasstargets real classes) - No unresolved TODO markers in core user entry docs
Automation:
scripts/docs-integrity-check.sh(in theta4jrepository)prepare-release.ymlruns this check before versioning and release-note commits- Canonical docs gate includes entry docs, runbooks/checklists, decision matrix, migration map, expected outputs, and performance characterization pages
Required release checkpoint:
- Release PR is not ready until docs integrity passes and the release-note-to-docs delta checklist is complete.
Release-note to docs delta checklist
For each release PR, reviewers must confirm:
CHANGELOG.mdentries are reflected in affected user docs- New/changed API surface has corresponding wiki or README guidance
- Added/renamed examples are reflected in
ta4j-examples/README.mdand relevant wiki links - Removed/deprecated APIs are called out with migration direction
- Any changed execution semantics are reflected in backtesting/live docs
Freshness cadence
- Run a rubric refresh before each minor/patch release
- Re-run docs integrity checks in every release-prep workflow
- Track recurring user confusion patterns and resolve them in docs, not only in chat/issues
Freshness SLA for primary user docs (README, ta4j-examples/README, Home, Getting-started, Backtesting, Live-trading):
- Change-window SLA: update docs within the same PR when behavior/API changes.
- Release SLA: no unresolved TODO markers or broken references at release prepare time.
- Navigation SLA: new high-value pages must be linked from
Homeor_Sidebarbefore merge.
Dimension-to-evidence review checklist (required before scoring >=4.5):
- Coverage evidence: canonical path includes build, backtest, live, and incident handling references
- Clarity evidence: entry pages define exact next-step routing for primary user intents
- Operability evidence: checklist/runbook includes validation signals and escalation flow
- Discoverability evidence: canonical artifacts are visible in both entry copy and nav menus
- Freshness evidence: integrity checks and release checklist cover all canonical docs
- Canonical artifact set exists and passes integrity checks before release preparation
Consolidation baseline snapshot (2026-05-13)
This snapshot records overlap metrics before the “documentation surface-area consolidation” rollout.
Baseline metrics
- Wiki top-level pages (
*.md, excluding_Footer.md):38 - Wiki sidebar links:
48total /44local targets /38unique local targets - Wiki sidebar duplicate targets:
6Backtesting.mdLive-Candle-vs-Closed-Candle-Evaluation.mdLive-Trading-Runbook.mdLive-trading.mdTroubleshooting-Hub.mdUsage-examples.md
- Root
README.mdwiki links:30total /18unique destinations ta4j-examples/README.mdwiki links:11total /9unique destinations
Baseline overlap and consistency findings
- Execution-choice guidance appears in multiple entry pages (
Home,Getting-started,Backtesting) instead of one canonical decision surface. - Onboarding and “where to go next” guidance is duplicated across root/module READMEs plus wiki entry pages.
- Wiki-link style is inconsistent in repo docs:
.github/CONTRIBUTING.mdcurrently points togithub.com/ta4j/ta4j-wiki/wiki/...- Other docs mostly point to
ta4j.github.io/ta4j-wiki/...
- Runtime baseline wording is inconsistent:
- Root docs and contributing docs state Java/JDK 25+
ta4j-examples/README.mdstates JDK 21+
Target metrics
- Sidebar duplicate targets:
6-><=1 - Root
README.mdwiki link repetition (total vs unique gap): reduce by at least40% - Execution-choice decision tables: consolidate to a single canonical page
- Broken links after each phase:
0
Consolidation progress snapshot (2026-05-13)
Latest post-change metrics:
- Wiki top-level pages:
40(increased temporarily due to quickstart/reference split plus one deprecation stub) - Wiki sidebar links:
41total /37local targets /37unique local targets - Wiki sidebar duplicate targets:
0(target met) - Root
README.mdwiki links:25total /17unique destinations (total references reduced from baseline) - Execution-choice table ownership: consolidated to
Execution-Decision-Matrix.md - Link-integrity status:
scripts/docs-integrity-check.sh: pass- Wiki local-link smoke check:
missing_links 0
Notes:
- The temporary page-count increase is intentional for phase-3 split-by-intent (
Charting/Elliottquickstarts) and deprecation-safe routing (Alternative-librariesstub). - Future cleanup can remove stubs after the cooling window and collapse quickstarts if discoverability data shows no benefit.