Skip to content

fix: correct ledger cadence, minimum balance formula, and Horizon status - #2806

Merged
ElliotFriend merged 3 commits into
mainfrom
fix/raven-factual-corrections
Sep 8, 2026
Merged

ElliotFriend merged 3 commits into
mainfrom
fix/raven-factual-corrections

Conversation

@ElliotFriend

@ElliotFriend ElliotFriend commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What

Three unrelated factual corrections, all filed by Stellar Raven. Each claim was re-verified against a primary source rather than against the issue text.

Issue File Change
#2805 docs/validators/README.mdx every 3-5 seconds → every 5-7 seconds
#2771 build/guides/transactions/sponsored-reserves.mdx drop + liabilities.selling from the minimum-balance formula, state the available-balance identity instead
#2771 learn/fundamentals/lumens.mdx define available balance where the page first uses the term
#2770 learn/migrate/evm/smart-contract-deployment.mdx the deprecated Horizon API → the Horizon API (nearing end-of-life)

Evidence

Left out on purpose

Extracting the Horizon lifecycle sentence into a shared partial (#2770). Worth doing, but it is a refactor across four pages and does not belong in a one-word correction.

Checks

prettier -c clean, check-relative-links.sh passes, full pnpm build green.

Closes #2805
Closes #2771
Closes #2770

🤖 Generated with Claude Code

Each correction verified against a primary source, not the reporting issue:

- Ledger cadence: a 199-delta Pubnet sample had no close under 5s (median
  6s) and CAP-70 targets 5000ms, so "3-5 seconds" was wrong. Now matches
  the Stellar Stack page.
- Minimum balance: Core's getMinBalance excludes selling liabilities, and
  getAvailableBalance subtracts them separately from v10. Split the two.
- Horizon: the canonical pages say deprecation is still ahead, so the
  present-tense "deprecated" was contradictory.

Refs #2805, #2771, #2770

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings August 31, 2026 18:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Corrects three factual inaccuracies, but the minimum-balance formula still incorrectly multiplies “2 base reserves” by baseReserve.

Changes:

  • Updates ledger cadence to 5–7 seconds.
  • Separates minimum and available balance calculations.
  • Clarifies Horizon’s lifecycle status.

Recommendation: NEEDS-CHANGES — correct the remaining minimum-balance formula error.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
docs/validators/README.mdx Corrects ledger cadence.
docs/build/guides/transactions/sponsored-reserves.mdx Revises balance formulas.
docs/learn/migrate/evm/smart-contract-deployment.mdx Clarifies Horizon status.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Completes the third part of the sd-043 recommendation, which the previous
commit skipped. The Lumens page is where sponsored-reserves sends readers
for minimum balance, and it used "available balance" without defining it
or mentioning selling liabilities.

Also drops "base reserves" from the sponsored-reserves formula, since every
other term in the parentheses is a count and the product already multiplies
by baseReserve.

Refs #2771

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 31, 2026 18:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread docs/learn/fundamentals/lumens.mdx Resolved
Replaces a comma splice on the Lumens page with the two-sentence
construction sponsored-reserves already used, and aligns the middle clause
so both pages word the minimum/available balance split the same way. The
sd-043 recommendation asked for one definition of each quantity, and two
different constructions were working against that.

Refs #2771

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 31, 2026 18:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@kaankacar

Copy link
Copy Markdown
Contributor

🤖 Automated message from Kaan's Automated Triage Bot.

All three claims check out against primary sources:

  • Core getMinBalance has no liabilities term; getAvailableBalance subtracts selling liabilities separately.
  • Pubnet closed every 5-7 seconds today (199 ledgers, median 6).
  • Canonical pages still put Horizon deprecation in the future.

Both Copilot points are fixed. The Jenkins preview has expired, so the green build check at this head is the render evidence. Ready to merge.

@kaankacar kaankacar added the bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge label Sep 7, 2026
@ElliotFriend
ElliotFriend merged commit ad0accb into main Sep 8, 2026
10 checks passed
@ElliotFriend
ElliotFriend deleted the fix/raven-factual-corrections branch September 8, 2026 15:05
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

PR Preview: torn down

@kalepail

kalepail commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Raven independently verified this fix on 2026-09-09.
The live EVM guide and both serving indexes now say Horizon API (nearing end-of-life).
The original production search returns the corrected EVM record.
Strict searches for the old phrase return zero hits.

The September 9 crawl completed at 12:03:55.702Z, after the source deployment.
Raven will retire the active finding after the final reference checks.

Immutable finding evidence: https://github.com/stellar-experimental/stellar-raven/blob/176513cc5e058fa12ad81f607ea4ca0d514a659a/improvements/stellar-docs/sd-042-horizon-deprecated-present-tense-regression.md


Raven independently verified this fix on 2026-09-09.
The live Validators and Stellar Stack pages both say every 5-7 seconds.
The original production searches return both corrected records.
Strict searches for the old Validators phrase return zero hits in both serving indexes.

The September 9 crawl completed at 12:03:55.702Z, after the source deployment.
Raven will retire the active finding after the final reference checks.

Immutable finding evidence: https://github.com/stellar-experimental/stellar-raven/blob/176513cc5e058fa12ad81f607ea4ca0d514a659a/improvements/stellar-docs/sd-047-validators-ledger-close-cadence-conflict.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge

Projects

None yet

4 participants