Skip to content

feat: restructure docs for TBV launch#430

Open
web3jenks wants to merge 9 commits intomainfrom
feat/tbv-docs-restructure
Open

feat: restructure docs for TBV launch#430
web3jenks wants to merge 9 commits intomainfrom
feat/tbv-docs-restructure

Conversation

@web3jenks
Copy link
Copy Markdown
Collaborator

Summary

  • New top navigation: Overview, Vault Users, Vault Builders, Vault Operators (replacing Stakers, Developers, Operators as separate top-level items)
  • Vault Users section: 5 new documentation pages covering the Trustless Bitcoin Vault protocol from an end-user perspective:
    • Overview — TBV architecture, key properties, and vault lifecycle
    • Vault Creation — 7-stage peg-in flow with WOTS/BitVM3 updates (BTCVaultRegistry, ChallengeAssertX/Y, gRPC, 6 GC instances)
    • Vault Redemption — Depositor and liquidation redemption paths with ZK proof generation
    • Protocol Actors — Vault providers, vault keepers (LLPs), universal challengers, security council
    • Fees — Protocol fees, liquidation settlement fees, Bitcoin tx costs, Ethereum gas costs
  • Vault Builders / Vault Operators: Placeholder sections for future content
  • Sidebar restructure: Overview sidebar now consolidates existing staker, developer, and operator content under "Bitcoin Staking" and "Babylon Genesis" sub-sections
  • No content deleted: All existing pages preserved at original URLs for backward compatibility

Test plan

  • Verify site builds without new broken link errors (npm run build)
  • Navigate to /vault-users/ and confirm all 5 pages render correctly
  • Verify top nav items link to correct sections
  • Verify Overview sidebar shows Bitcoin Staking and Babylon Genesis sub-sections
  • Confirm existing URLs (/stakers/, /developers/, /operators/) still work
  • Check /vault-builders/ and /vault-operators/ placeholder pages render

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

🔐 Commit Signature Verification

All 9 commit(s) passed verification

Commit Author Signature Key Type Key Check
867fabc0f3fa Jenks sk-ssh-ed25519
3fa185ff3be5 Jenks sk-ssh-ed25519
f35456c891d7 Jenks sk-ssh-ed25519
632933b98ac0 Jenks sk-ssh-ed25519
bd4da3c57469 Jenks sk-ssh-ed25519
91713059c29e Jenks sk-ssh-ed25519
017b3afdd0d2 Jenks sk-ssh-ed25519
1f657611cfb2 Jenks sk-ssh-ed25519
f1060b7b9532 Jenks sk-ssh-ed25519

Summary

  • Commits verified: 9
  • Signature check: ✅ All passed
  • Key type enforcement: ✅ All sk-ssh-ed25519

Required key type: sk-ssh-ed25519 (FIDO2 hardware key)

Last verified: 2026-04-14 09:10 UTC

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Apr 10, 2026

Greptile Summary

This PR restructures the top navigation to introduce Vault Users, Vault Builders, and Vault Operators sections for the TBV launch, while consolidating existing staker/developer/operator content under a new Overview sidebar. Five substantive Vault Users pages are added covering the full vault lifecycle (creation, redemption, protocol actors, and fees); the Vault Builders and Vault Operators sections are placeholder stubs.

  • P1 — vault-creation.mdx line 27: The intro claims "The peg-in process has nine stages:" but only seven stages are documented. This is a factual error that will confuse readers following the guide.

Confidence Score: 4/5

Safe to merge after fixing the stage-count typo in vault-creation.mdx; remaining findings are non-blocking P2s.

One P1 factual error exists (nine vs. seven stages) that should be corrected before publishing — it will mislead users reading the guide. All other findings are P2 quality/clarity improvements that don't block merge.

docs/vault-users/vault-creation.mdx (stage count mismatch on line 27)

Important Files Changed

Filename Overview
docs/vault-users/vault-creation.mdx New 7-stage peg-in guide, but the intro incorrectly claims "nine stages" — needs correction before publish.
docs/vault-users/vault-redemption.mdx Depositor and liquidation redemption paths documented well; minor inconsistency between claim-process steps and the Bitcoin transaction cost list (missing "proof transaction" step).
docs/vault-users/fees.mdx Complete fee breakdown added; references an "Aave v4 Fees page" that doesn't exist yet and has no link.
docs/vault-users/protocol-actors.mdx Clear, well-structured overview of all four protocol actors with ASCII diagrams; no issues found.
docs/vault-users/vault-users.mdx Overview page with three-layer architecture and vault lifecycle summary; internal links all point to valid pages in the vault-users section.
docusaurus.config.js Navbar restructured to Overview / Vault Users / Vault Builders / Vault Operators; old stakers/developers/operators entries removed from nav (content preserved via existing URLs and sidebar).
sidebars-default.js Adds vaultUsers/vaultBuilders/vaultOperators sidebars; Overview (guides) sidebar now consolidates stakers/developers/operators content under Bitcoin Staking and Babylon Genesis categories.
docs/vault-builders/vault-builders.mdx Placeholder page for future SDK/API content; straightforward and intentional.
docs/vault-operators/vault-operators.mdx Placeholder page for future operator setup content; straightforward and intentional.
docs/vault-builders/category.json Category config for vault-builders sidebar; missing trailing newline (same for vault-operators and vault-users category files).

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Top Navigation] --> B[Overview]
    A --> C[Vault Users]
    A --> D[Vault Builders]
    A --> E[Vault Operators]
    A --> F[API]

    B --> B1[guides sidebar]
    B1 --> B2[Bitcoin Staking category]
    B1 --> B3[Babylon Genesis category]
    B2 --> B2a[stakers/]
    B2 --> B2b[developers/bitcoin_staking/]
    B3 --> B3a[developers/babylon_genesis_chain/]
    B3 --> B3b[operators/]

    C --> C1[vault-users sidebar]
    C1 --> C2[Overview]
    C1 --> C3[Vault Creation - 7 stages]
    C1 --> C4[Vault Redemption]
    C1 --> C5[Protocol Actors]
    C1 --> C6[Fees]

    D --> D1[Placeholder - Coming soon]
    E --> E1[Placeholder - Coming soon]
Loading

Reviews (1): Last reviewed commit: "feat: restructure docs for TBV launch — ..." | Re-trigger Greptile

## Overview of the Peg-In Flow

The peg-in process has nine stages:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Stage count mismatch: "nine stages" but only seven are documented

The overview text says "The peg-in process has nine stages:" but the document only defines and describes 7 stages (Stage 1 through Stage 7). Readers following the guide will reach Stage 7 expecting two more stages and find none.

Suggested change
The peg-in process has seven stages:

Comment thread docs/vault-users/fees.mdx Outdated
Comment on lines +20 to +22
Aave-specific lending fees (interest rates, liquidation bonuses), see the
Aave v4 Fees page.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Unlinked cross-reference to "Aave v4 Fees page"

The text "see the Aave v4 Fees page" references a page that doesn't appear to exist in the vault-users section (and no relative link is provided). Readers have no way to navigate there. Either add a link once the page exists, or remove the reference until it's ready.

Comment thread docs/vault-users/vault-redemption.mdx Outdated
Comment on lines +114 to +122
1. **Claim Transaction.** The authorized redeemer (vault provider or liquidator)
broadcasts a claim transaction on Bitcoin, spending from the vault's Taproot
output. This transaction includes a commitment to the ZK proof.

2. **Payout (Optimistic Path).** If no challenge is raised within the timelock
period, the payout transaction is broadcast, releasing the BTC to the
depositor's Bitcoin address. This is the happy path — in a properly functioning
system, most redemptions follow this path.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 "Proof transaction" missing from the Claim Process steps

The "Bitcoin Transaction Costs" section (line 166) lists three transactions for the normal redemption path: claim, proof, and payout. However, the numbered "Claim Process" steps above only mention (1) Claim Transaction and (2) Payout (Optimistic Path) — the proof transaction is never described in the flow. If a distinct proof transaction exists on Bitcoin, it should be added as a step here so users understand the full sequence.

"type": "doc",
"id": "vault-builders/vault-builders"
}
} No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Missing trailing newline

All three _category_.json files (vault-builders, vault-operators, vault-users) are missing a trailing newline. Many linters and editors expect files to end with a newline. Add a newline after the closing } in each file.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 553e4a48c6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread sidebars-default.js Outdated
Comment on lines +28 to +30
{ type: 'autogenerated', dirName: 'stakers' },
{ type: 'autogenerated', dirName: 'developers/bitcoin_staking' },
],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid placing the same docs in multiple sidebars

Adding stakers (and other legacy sections) under guides while also keeping standalone stakers/developers/operators sidebars duplicates the same doc IDs across sidebars. In Docusaurus, duplicated doc items are not valid unless they are added as ref, so this sidebar layout can fail docs loading/build when sidebar metadata is generated. Use ref links for cross-linking or keep each doc tree associated with only one sidebar.

Useful? React with 👍 / 👎.

web3jenks and others added 9 commits April 14, 2026 17:08
…cumentation

Restructures the docs site navigation to add Trustless Bitcoin Vault sections:
- New top nav: Overview, Vault Users, Vault Builders, Vault Operators
- Vault Users section with 5 pages: Overview, Vault Creation, Vault Redemption,
  Protocol Actors, Fees
- Vault Builders and Vault Operators as placeholders for future content
- Overview sidebar now includes Bitcoin Staking and Babylon Genesis sub-sections
  consolidating staker, developer, and operator content
- All existing content preserved at original URLs for backward compatibility

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove networks sidebar icon CSS rules and className
- Fix sidebar to prevent bitcoin_staking.mdx from appearing as top-level item
- Nest operators and developers content under Babylon Genesis category
- Fix Babylon Genesis child ordering: Architecture, BABY Tokens, Governance, Networks, then Specifications last
- Add Mermaid architecture diagram to vault-users overview
- Add Mermaid sequence diagram to vault-creation (7-stage peg-in flow)
- Add Mermaid sequence diagram to vault-redemption (peg-out + challenge flow)
- Add Mermaid actor relationship diagram to protocol-actors
- Add Mermaid fee flow diagram to fees

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bitcoin Staking was floating as a root-level sidebar item outside the
Overview category. Now correctly nested inside Overview between
Trustless Bitcoin Vault and Babylon Genesis, matching the intended
structure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The autogenerated directives were producing flat items without category
headers. Wrapping them in explicit category blocks restores the
Research, Security, and Support groupings in the sidebar.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s, fix governance nesting

- Add displayed_sidebar: guides to all .mdx files in stakers/, developers/bitcoin_staking/,
  developers/babylon_genesis_chain/, operators/, and developers top-level pages so they
  show the Overview sidebar instead of old standalone sidebars
- Remove stakers/developers/operators standalone sidebar entries from sidebars-default.js
- Add link properties to all _category_.json files to eliminate duplicate label/doc pairs
- Fix governance.mdx sidebar_position from 4.1 to 0
- Rename operators category label from "BabylonOperators" to "Node Operators"
- Add redirects for retired /stakers/, /developers/, /operators/ top nav pages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Developer content (chain info, explorers, dApps, wallet setup) now
grouped under "Build on Genesis" collapsible category. Operator content
(Babylon Node, Validators, Finality Providers, Covenant Emulator) now
grouped under "Run a Node" collapsible category. Reduces sidebar length
significantly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…erator placeholders

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rnance, move vigilantes

- Remove mainnet.mdx and testnet.mdx network pages (redundant with
  developers/bitcoin_staking/networks)
- Move Vigilantes under BTC Staking Program in Architecture
- Flatten governance proposal subfolders (reviewing_proposals,
  drafting_proposals, submit_proposals) directly into governance/
- Add redirects for all moved/removed URLs
- Significantly reduces sidebar depth and clutter

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codex review found and fixed:
- Legacy governance redirects pointing at non-existent routes
- Babylon Genesis network redirects pointing at removed pages
- CometBFT navbar item using relative path
- Internal implementation details exposed in public docs (SP1 CUDA,
  secure channels, internal state labels, ChallengeAssert terminology)
- Unexplained jargon (fairness payment token, Core Spoke) simplified
- Vault Builders placeholder referenced private APIs — generalized
- Vault Operators placeholder locked in specific stack choices — generalized
- Removed dead diagram placeholder comments
- Rewrote sections to be user-facing rather than internal-ops style

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@web3jenks web3jenks force-pushed the feat/tbv-docs-restructure branch from 31e2254 to 867fabc Compare April 14, 2026 09:10
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