Skip to content

Conversation

@Sipher
Copy link
Collaborator

@Sipher Sipher commented Jul 24, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a "RedText" component for visually highlighting important text in documentation.
    • Added comprehensive how-to guides for managing permissions, capabilities, and emission stream delegation.
    • Added new onboarding and glossary documentation pages to support users and clarify Torus concepts.
    • Added a "Start Here" introductory guide for developers.
  • Documentation

    • Major reorganization and relabeling of sidebar navigation for improved clarity and consistency.
    • Updated terminology, URLs, and navigation paths across documentation for accuracy and easier access.
    • Enhanced visual emphasis in guides using the new RedText component.
    • Improved and expanded guides for agent registration, staking, wallet setup, agent client/server setup, and more.
    • Removed outdated or redundant documentation files and sections.
    • Simplified and restructured the main introduction page for better user orientation.
  • Style

    • Updated link and sidebar navigation styles for better readability and user experience.
    • Added utility classes for red text highlighting.
  • Bug Fixes

    • Corrected broken or outdated internal and external documentation links.
    • Fixed minor formatting and typographical issues in documentation files.

Sipher and others added 20 commits July 19, 2025 12:26
…ation, and bridging processes for improved user experience
…istration, and root agents for enhanced user understanding and experience
…setting up agent client and server with clear instructions and examples
… specificity and cohesion across documentation
…rus" references for clarity and consistency across guides
…nding of agent systems and related concepts in Torus documentation
… registration, demand signaling, and root agents documentation
…ders, enhancing hierarchy and clarity in Torus guides
…ion page in the start-here section of Torus guides
…s; delete outdated files and improve clarity in navigation
…items for improved clarity and navigation consistency
…CLI setup guide; include related images and links updates
…ious how-to guides for enhanced readability and emphasis
…ment configuration, and improve endpoint structure
…nd add new concepts for improved understanding of Torus workflow
@coderabbitai
Copy link

coderabbitai bot commented Jul 24, 2025

Walkthrough

This update implements a comprehensive reorganization and relabeling of the Torus documentation site's sidebar configuration, introduces several new how-to guides and glossary pages, deletes outdated or redundant documentation, and enhances visual emphasis in guides through a new RedText component and supporting CSS. Numerous documentation links, section titles, and navigation structures are updated for clarity and consistency.

Changes

File(s) Change Summary
astro.config.mjs Sidebar navigation configuration extensively reorganized: sections and items renamed, reordered, and regrouped; slugs updated for clarity and hierarchy; some entries commented out or moved; new "Development" section created; "CLI & Tools" merged; "Start Here" entries added.
src/components/RedText.astro, src/tailwind.css New RedText Astro component and supporting CSS classes added for visually highlighting text in documentation; Tailwind CSS updated with custom link and sidebar styles, and new red text utility classes.
src/content/docs/getting-started/concepts-terminology.mdx, src/content/docs/how-to-guides/builders/create-permission.mdx, src/content/docs/how-to-guides/builders/delegate-emission-streams.mdx, src/content/docs/how-to-guides/builders/manage-capabilities.mdx, src/content/docs/how-to-guides/builders/manage-permissions.mdx, src/content/docs/development/start-here.mdx New documentation files added: a glossary of terms, detailed how-to guides for managing permissions, capabilities, and emission streams, and a "Start Here" page for developers.
src/content/docs/getting-started/concepts.mdx, src/content/docs/index.mdx Introduction and concepts documentation rewritten for higher-level narrative and improved user navigation; technical overviews replaced with user-friendly summaries, new sections, and updated links.
src/content/docs/how-to-guides/builders/create-signal.mdx, src/content/docs/how-to-guides/builders/edit-your-agent.mdx, src/content/docs/how-to-guides/builders/register-an-agent.mdx, src/content/docs/how-to-guides/holders/bridge-from-base.mdx, src/content/docs/how-to-guides/holders/setup-a-wallet.mdx, src/content/docs/how-to-guides/holders/stake-your-torus.mdx, src/content/docs/how-to-guides/root-agents/become-a-root-agent.mdx Guides updated to use new RedText component for emphasis, correct URLs, and improve clarity; terminology and navigation references updated.
src/content/docs/how-to-guides/builders/setup-agent-client.mdx, src/content/docs/how-to-guides/builders/setup-agent-server.mdx Agent client and server setup guides rewritten for improved error handling, environment configuration, and step-by-step clarity; new async functions and robust initialization patterns introduced in code samples.
src/content/docs/how-to-guides/start-here.mdx Section title changed from "For Torus Participants" to "For Torus Holders"; guide links updated to "holders" paths; builder section links updated; governance link updated.
src/content/docs/development/cli/setup-cli.mdx, src/content/docs/development/web-apps-overview(old).mdx, src/content/docs/development/web-apps-install-and-run(old).mdx, src/content/docs/concepts/agents.mdx, src/content/docs/concepts/network-overview.mdx Old or obsolete documentation files deleted; CLI setup guide links and markdown structure cleaned up.
src/content/docs/development/cli/key-management.mdx, src/content/docs/development/cli/balance-operations.mdx, src/content/docs/development/network/global-parameters.mdx, src/content/docs/development/network/running-node.mdx, src/content/docs/getting-started/tokenomics.mdx Minor whitespace, formatting, and newline fixes.
src/content/docs/development/web/overview-and-setup.mdx, src/content/docs/development/web/querying-data.mdx Documentation URLs and typographical details corrected.
src/content/docs/explanations/builders/agent-registration.mdx, src/content/docs/explanations/builders/demand-signaling.mdx, src/content/docs/explanations/root-agents/root-agents.mdx, src/content/docs/explanations/start-here.mdx, src/content/docs/explanations/v05/capability-permissions.mdx, src/content/docs/explanations/v05/control-space.mdx, src/content/docs/explanations/v05/emission-permissions.mdx, src/content/docs/explanations/v05/governance-dao.mdx, src/content/docs/explanations/v05/permissions.mdx Documentation links, section titles, and navigation cards updated or removed for consistency with new sidebar and structure.
src/content/docs/web-apps (deprecated)/torus-allocator.mdx, src/content/docs/web-apps (deprecated)/torus-dao.mdx, src/content/docs/web-apps (deprecated)/torus-portal.mdx, src/content/docs/web-apps (deprecated)/torus-wallet.mdx Deprecated web app documentation files updated to correct URLs and remove outdated related topics sections.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DocsSidebar
    participant GuidePage
    participant RedText
    participant CSS

    User->>DocsSidebar: Navigates documentation sidebar
    DocsSidebar-->>User: Shows reorganized, relabeled sections and links

    User->>GuidePage: Opens a how-to or concept guide
    GuidePage->>RedText: Renders emphasized instructions
    RedText->>CSS: Applies new red text styles
    GuidePage-->>User: Displays updated content and navigation

    User->>GuidePage: Follows updated links
    GuidePage-->>User: Navigates to correct, reorganized documentation
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐇
Reorganized docs, a warren anew,
With sidebars reshuffled and highlights in view.
RedText now hops where guidance is keen,
Old guides retire, new glossaries glean.
Builders and holders, find your next quest—
In Torus’s garden, the docs are their best!
🌱📚

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🔭 Outside diff range comments (1)
src/content/docs/explanations/v05/control-space.mdx (1)

6-8: Drop unused component imports introduced by card-grid removal.
CardGrid, LinkCard, and Aside are no longer referenced in this document. Keeping them may trigger unused-import lints in MDX builds.

-import { CardGrid, LinkCard, Aside } from "@astrojs/starlight/components";
+// No component imports needed after card-grid removal
🧹 Nitpick comments (21)
src/content/docs/web-apps (deprecated)/torus-portal.mdx (1)

48-49: Prefer relative doc links to keep builds portable
Hard-coding the absolute path (/how-to-guides/root-agents/become-a-root-agent) ties the site to the current base URL. If the docs are hosted under a different base path (e.g., staging), the link breaks.

-**Register Agent**: Basic agent registration (different from [root agent registration](/how-to-guides/root-agents/become-a-root-agent))
+**Register Agent**: Basic agent registration (different from [root agent registration](../../how-to-guides/root-agents/become-a-root-agent))
src/content/docs/development/cli/balance-operations.mdx (1)

44-46: Minor wording improvement for clarity
Consider possessive form to read more naturally.

-You can also specify the name of the key, if it's located on your disk. Same as in transferring or staking.
+You can also specify the key’s name if it is located on your disk, just as when transferring or staking.
src/content/docs/getting-started/tokenomics.mdx (1)

13-13: Alt-text typo: “Tekenomics” → “Tokenomics”
Alt text is part of accessibility; fixing the typo helps screen-reader users.

-<Image src={graph} alt="Tekenomics Graph" width="1080" />
+<Image src={graph} alt="Tokenomics Graph" width="1080" />
src/content/docs/development/network/running-node.mdx (1)

88-88: Consider linking to the actual config files for quicker discovery

The new bullet point is helpful, but readers may not know where “the appropriate files” live. Adding a relative path or a link to, e.g. torus-node/config/*.json, would make the tip actionable.

src/content/docs/explanations/v05/permissions.mdx (1)

61-63: Heading now lacks cross-links that existed before

Removing the three LinkCards under “Enforcement Authority System” breaks quick navigation to related pages (Control Space, Capability Permissions, Concepts). If the intent wasn’t to de-emphasise them, consider keeping a compact list or adding inline links to preserve discoverability.

src/content/docs/development/web/querying-data.mdx (1)

32-37: Add protocol prefix to sample endpoints.
The two example endpoints omit https://, which may confuse copy-paste users.

-```portal.torus.network/api/allocated-weight?userKey=<SS58Address>```
+```https://portal.torus.network/api/allocated-weight?userKey=<SS58Address>```-```portal.torus.network/api/allocated-weight?agentKey=<SS58Address>```
+```https://portal.torus.network/api/allocated-weight?agentKey=<SS58Address>```
src/components/RedText.astro (1)

18-18: Consider semantic HTML and accessibility.

While the implementation works, consider potential improvements for better semantics and accessibility:

-<span class={`${redClass} ${className}`} style="display: inline;"><slot /></span>
+<span class={`${redClass} ${className}`} style="display: inline;" role="emphasis"><slot /></span>

Adding role="emphasis" provides better semantic meaning for screen readers, though this is a minor enhancement since the visual styling already conveys emphasis.

src/content/docs/how-to-guides/holders/setup-a-wallet.mdx (1)

153-154: Consider converting single-item list to plain paragraph

With only one “What’s Next?” action remaining, a bullet list is visually noisy.
Optional, but switching to plain text improves readability.

src/content/docs/how-to-guides/start-here.mdx (1)

42-45: Placeholders are clear, but consider tracking tickets

“Manage Permissions” and “Delegate Emission Streams” are marked coming soon.
Create follow-up issues so these docs don’t get forgotten.

src/content/docs/development/start-here.mdx (1)

54-60: Minor copy nit: “open-source” as adjective

When “open-source” precedes a noun (e.g., “open-source code”) style guides recommend the hyphen.
Totally optional.

-Explore the open source code to understand implementation details:
+Explore the open-source code to understand implementation details:
src/tailwind.css (2)

57-94: Duplicate @layer components blocks → merge for maintainability

You open two separate @layer components { … } blocks back-to-back.
Tailwind merges them at build-time, but keeping a single block improves readability and avoids accidental rule shadowing.

-@layer components {
-  /* content-links */
-}
-
-/* Explicitly keep sidebar navigation in original colors */
-@layer components {
-  /* nav-links */
-}
+@layer components {
+  /* content-links */
+
+  /* --- sidebar / nav links -------------------------------------------- */
+}

96-112: Hard-coded red hex values – favour Tailwind theme tokens & verify dark-mode contrast

Using raw hex codes forfeits Tailwind’s colour-palette configurability and any future theme customisation (e.g. dark mode).

-  .text-red-attention { color: #ef4444 !important; }
+  .text-red-attention { @apply text-red-500 !important; }

Also ensure these reds meet WCAG contrast on both light & dark backgrounds.
Consider exposing them via theme.extend.colors.attention in tailwind.config.js for consistency.

src/content/docs/how-to-guides/builders/edit-your-agent.mdx (1)

58-67: Consider letting <Steps> handle numbering

Manually prefixing each step with 1., 2. … often leads to drift when authors reorder items.
<Steps> usually renders an ordered list; plain markdown bullets inside are sufficient:

<Steps>
-1. **Find your Agent …**
+**Find your Agent …**

This keeps markup minimal and avoids duplicate numbers in generated HTML.

src/content/docs/getting-started/concepts.mdx (2)

16-17: Spelling: “granularily” → “granularly”

Minor typo in the narrative paragraph.


21-22: Spelling: “implemention” → “implementation”

-The v0.5 is a pragmatic, growth oriented and limited implemention
+The v0.5 is a pragmatic, growth-oriented and limited implementation
src/content/docs/index.mdx (1)

15-15: Fix grammar: "Setup" should be "Set up" in this context.

In this sentence structure, "set up" should be used as a verb phrase rather than the noun "setup".

-- **For Token Holders** — [Setup a Wallet, Stake TORUS, earn rewards](https://docs.torus.network/how-to-guides/holders/setup-a-wallet/)
+- **For Token Holders** — [Set up a Wallet, Stake TORUS, earn rewards](https://docs.torus.network/how-to-guides/holders/setup-a-wallet/)
src/content/docs/how-to-guides/builders/manage-permissions.mdx (2)

6-14: Unused RedText import generates build warnings

import RedText … is never referenced in this document. Starlight treats unused MDX component imports as errors in strict mode.

-import RedText from '/src/components/RedText.astro';

Remove or reference RedText somewhere (e.g., to highlight caution notes).


1-4: Content duplication with create-permission.mdx

Both guides cover “create/manage permissions” with near-identical step lists. Consider consolidating into one authoritative guide or clearly separating scopes (Create vs Manage) to avoid user confusion and long-term maintenance burden.

src/content/docs/how-to-guides/builders/setup-agent-server.mdx (3)

58-64: Plain-text mnemonic in .env is a security red flag

Storing a wallet mnemonic unencrypted on disk is risky. At minimum:

• Add .env to .gitignore in the guide
• Recommend using a secrets manager (1Password, Vault, doppler run -- …) for production deployments.

Readers tend to copy guides verbatim—let’s keep them safe.


78-86: Non-null assertion hides missing env vars

process.env.AGENT_KEY! satisfies TypeScript but still passes undefined at runtime if the variable is absent, leading to subtle failures.

const agentKey = process.env.AGENT_KEY;
if (!agentKey) throw new Error("AGENT_KEY not set");
…
agent: new Agent({ agentKey, … })

Explicit checks provide clearer errors for readers following the tutorial.


141-144: Mixed numeric/string port types

You parse PORT as number for the Agent but log it later as a possibly-string env var. Cast once and reuse to avoid mismatched types:

-const port = process.env.PORT || 3000;
+const port = Number(process.env.PORT ?? 3000);
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b4064f7 and e832f6b.

⛔ Files ignored due to path filters (2)
  • public/images/how-to-guide/manage-capabilities/create-capability-confirm-information.png is excluded by !**/*.png
  • public/images/how-to-guide/manage-capabilities/delete-capability-confirm-information.png is excluded by !**/*.png
📒 Files selected for processing (46)
  • astro.config.mjs (4 hunks)
  • src/components/RedText.astro (1 hunks)
  • src/content/docs/concepts/agents.mdx (0 hunks)
  • src/content/docs/concepts/network-overview.mdx (0 hunks)
  • src/content/docs/development/cli/balance-operations.mdx (1 hunks)
  • src/content/docs/development/cli/key-management.mdx (2 hunks)
  • src/content/docs/development/cli/setup-cli.mdx (2 hunks)
  • src/content/docs/development/network/global-parameters.mdx (1 hunks)
  • src/content/docs/development/network/running-node.mdx (1 hunks)
  • src/content/docs/development/start-here.mdx (1 hunks)
  • src/content/docs/development/web-apps-install-and-run(old).mdx (0 hunks)
  • src/content/docs/development/web-apps-overview(old).mdx (0 hunks)
  • src/content/docs/development/web/overview-and-setup.mdx (2 hunks)
  • src/content/docs/development/web/querying-data.mdx (2 hunks)
  • src/content/docs/explanations/builders/agent-registration.mdx (2 hunks)
  • src/content/docs/explanations/builders/demand-signaling.mdx (1 hunks)
  • src/content/docs/explanations/root-agents/root-agents.mdx (1 hunks)
  • src/content/docs/explanations/start-here.mdx (1 hunks)
  • src/content/docs/explanations/v05/capability-permissions.mdx (0 hunks)
  • src/content/docs/explanations/v05/control-space.mdx (1 hunks)
  • src/content/docs/explanations/v05/emission-permissions.mdx (0 hunks)
  • src/content/docs/explanations/v05/governance-dao.mdx (2 hunks)
  • src/content/docs/explanations/v05/permissions.mdx (1 hunks)
  • src/content/docs/getting-started/concepts-terminology.mdx (1 hunks)
  • src/content/docs/getting-started/concepts.mdx (1 hunks)
  • src/content/docs/getting-started/tokenomics.mdx (1 hunks)
  • src/content/docs/how-to-guides/builders/create-permission.mdx (1 hunks)
  • src/content/docs/how-to-guides/builders/create-signal.mdx (4 hunks)
  • src/content/docs/how-to-guides/builders/delegate-emission-streams.mdx (1 hunks)
  • src/content/docs/how-to-guides/builders/edit-your-agent.mdx (5 hunks)
  • src/content/docs/how-to-guides/builders/manage-capabilities.mdx (1 hunks)
  • src/content/docs/how-to-guides/builders/manage-permissions.mdx (1 hunks)
  • src/content/docs/how-to-guides/builders/register-an-agent.mdx (4 hunks)
  • src/content/docs/how-to-guides/builders/setup-agent-client.mdx (2 hunks)
  • src/content/docs/how-to-guides/builders/setup-agent-server.mdx (3 hunks)
  • src/content/docs/how-to-guides/holders/bridge-from-base.mdx (7 hunks)
  • src/content/docs/how-to-guides/holders/setup-a-wallet.mdx (5 hunks)
  • src/content/docs/how-to-guides/holders/stake-your-torus.mdx (7 hunks)
  • src/content/docs/how-to-guides/root-agents/become-a-root-agent.mdx (4 hunks)
  • src/content/docs/how-to-guides/start-here.mdx (3 hunks)
  • src/content/docs/index.mdx (1 hunks)
  • src/content/docs/web-apps (deprecated)/torus-allocator.mdx (1 hunks)
  • src/content/docs/web-apps (deprecated)/torus-dao.mdx (0 hunks)
  • src/content/docs/web-apps (deprecated)/torus-portal.mdx (1 hunks)
  • src/content/docs/web-apps (deprecated)/torus-wallet.mdx (1 hunks)
  • src/tailwind.css (1 hunks)
💤 Files with no reviewable changes (7)
  • src/content/docs/explanations/v05/capability-permissions.mdx
  • src/content/docs/web-apps (deprecated)/torus-dao.mdx
  • src/content/docs/explanations/v05/emission-permissions.mdx
  • src/content/docs/concepts/agents.mdx
  • src/content/docs/development/web-apps-overview(old).mdx
  • src/content/docs/development/web-apps-install-and-run(old).mdx
  • src/content/docs/concepts/network-overview.mdx
🧰 Additional context used
🪛 LanguageTool
src/content/docs/development/start-here.mdx

[uncategorized] ~56-~56: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...em news ### Core Projects Explore the open source code to understand implementation detai...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

src/content/docs/getting-started/concepts.mdx

[grammar] ~16-~16: Ensure spelling is correct
Context: ...n & delegation system enables agents to granularily specialize while remaining aligned acro...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

src/content/docs/index.mdx

[grammar] ~15-~15: Ensure spelling is correct
Context: ...stuff done - For Token Holders — [Setup a Wallet, Stake TORUS, earn rewards](ht...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🔇 Additional comments (59)
src/content/docs/development/network/global-parameters.mdx (1)

87-89: Nothing to flag – formatting tweak looks good
Closing fence alignment is correct and doesn’t affect rendering.

src/content/docs/development/web/overview-and-setup.mdx (2)

20-22: Nice catch updating the testnet URL
The new portal.testnet.torus.network/root-allocator address matches the rebranded Portal.


55-57: Typographic apostrophe fixed – thanks
No further action needed.

src/content/docs/web-apps (deprecated)/torus-wallet.mdx (1)

74-76: Internal link correctly updated to the new hierarchy

The new /development/cli/balance-operations path aligns with the re-org and renders fine under the site root. No further action needed.

src/content/docs/web-apps (deprecated)/torus-allocator.mdx (1)

39-39: Allocator URL refresh looks good

Switching to https://portal.torus.network/root-allocator reflects the new portal location. Verified that the link resolves.

src/content/docs/explanations/builders/demand-signaling.mdx (1)

38-38: Tokenomics link path updated — looks correct

The new /getting-started/tokenomics/ target matches the reorganised docs. No issues spotted.

src/content/docs/development/cli/key-management.mdx (2)

48-50: Inline comment improves clarity – no further action needed.
The additional comment succinctly explains the purpose of torus key list; this is helpful for newcomers.


72-72: Sentence reads well – LGTM.
No issues spotted with the new explanatory line.

src/content/docs/explanations/root-agents/root-agents.mdx (1)

34-36: Confirm updated paths resolve correctly.
The new absolute URLs look correct, but a quick manual click-test (or link-checker run) will prevent broken docs once deployed.

src/content/docs/how-to-guides/root-agents/become-a-root-agent.mdx (3)

13-13: LGTM: Component import added correctly.

The RedText component import is properly added and will be used consistently throughout the file for visual emphasis.


67-67: Good use of RedText component for UI emphasis.

The RedText component with "light" variant is appropriately used to highlight key UI button labels ("Connect Wallet" and "Submit Proposal"), improving visual guidance for users.

Also applies to: 88-88


46-46: URLs Consistency Verified

All occurrences of the old “participants” and “bridge-to-base” links have been removed, and the new “holders/setup-a-wallet” and “holders/bridge-from-base” URLs are now used uniformly across the documentation (e.g., start-here.mdx, become-a-root-agent.mdx, register-an-agent.mdx, edit-your-agent.mdx, stake-your-torus.mdx, index.mdx). No further updates are required.

src/content/docs/explanations/start-here.mdx (1)

20-31: Excellent documentation organization improvement.

The new "v0.5 Related Topics" section effectively consolidates key technical concepts in a logical flow:

  1. Control Space (foundation)
  2. Permission System (core interactions)
  3. Capability/Emission Permissions (specific mechanisms)
  4. Governance & DAO (decision-making)

This structure helps users understand the technical hierarchy and relationships between concepts.

src/components/RedText.astro (2)

2-5: Well-designed component interface.

The Props interface is clean and provides appropriate flexibility with optional variant selection and custom class support.


7-16: Solid implementation with good defaults.

The component implementation follows best practices:

  • Destructuring with sensible defaults
  • Clear variant-to-class mapping
  • Proper variable naming

The logic is straightforward and maintainable.

src/content/docs/development/cli/setup-cli.mdx (2)

140-143: URL updates align with documentation restructuring.

The path updates correctly reflect the new documentation structure:

  • CLI paths moved from /cli/ to /development/cli/
  • Consistent relative path usage
  • Links properly updated to match the new sidebar organization

156-160: Consistent path updates in related topics.

The CardGrid links are properly updated to match the new /development/cli/ structure, maintaining consistency throughout the documentation.

src/content/docs/explanations/builders/agent-registration.mdx (3)

20-27: Excellent addition of critical user guidance.

The caution aside about agent name immutability is crucial information that prevents costly user mistakes. The explanation clearly communicates:

  • The permanence of the decision
  • The technical reasoning (permission system consistency)
  • The practical impact (identity confusion prevention)

This proactive guidance will save users from registration regrets.


41-41: URL correction improves accuracy.

The update from "Allocator page" at allocator.torus.network to "Allocator tab" at portal.torus.network/root-allocator reflects the current infrastructure and provides users with the correct location.


48-49: Documentation links updated for v0.5 structure.

The URLs have been updated to point to the new explanations/v05/ paths, maintaining consistency with the overall documentation restructuring.

src/content/docs/how-to-guides/holders/setup-a-wallet.mdx (1)

21-24: Import looks good

No issues with the new RedText import; path resolves to the components folder and keeps tree-shaking intact.

src/content/docs/how-to-guides/holders/bridge-from-base.mdx (2)

74-80: Sequential numbering resets – double-check rendered output

Inside the <Steps> component you restart at 1. after having used 1. & 2. previously.
If Steps renders native <ol> elements this will appear as 1, 1, 2.
Either rely on automatic numbering (1. for every item) or continue the manual sequence to avoid confusion.


70-80: Good use of RedText for critical UI cues

All new highlights use the correct variant="light" prop and clearly draw attention to error-prone actions.

src/content/docs/how-to-guides/builders/create-signal.mdx (1)

52-57: LGTM – emphasis reads well

RedText is used sparingly and improves scannability without over-styling the content.

src/content/docs/how-to-guides/start-here.mdx (1)

22-30: Holder section link updates look correct

New slug structure (/holders/) matches the sidebar re-org—no broken links detected.

src/content/docs/development/start-here.mdx (1)

19-44: Solid structure for new developer landing page

Clear breakout between Web, CLI and Infra keeps onboarding tight. No structural issues found.

src/content/docs/how-to-guides/builders/edit-your-agent.mdx (1)

15-16: Import path may break without a configured Vite alias

import RedText from '/src/components/RedText.astro'; is an absolute path from the filesystem root.
Unless you have a /src ↦ <repoRoot>/src alias, this will fail in production builds.

-import RedText from '/src/components/RedText.astro';
+import RedText from '../../components/RedText.astro';

(or use the alias defined in tsconfig.json/vite.config.ts such as @/components/RedText.astro)

src/content/docs/how-to-guides/builders/register-an-agent.mdx (1)

14-15: Same absolute-path import caveat as above

Ensure the /src/components/RedText.astro alias exists or switch to a relative/aliased path.

src/content/docs/getting-started/concepts-terminology.mdx (1)

1-81: Well-structured glossary – good addition

Content reads clearly, sections are logically grouped, and the aside makes future maintenance explicit. Nice work.

src/content/docs/how-to-guides/builders/setup-agent-client.mdx (6)

12-12: LGTM! Component import follows correct pattern.

The RedText component import is properly structured and aligns with the new styling system being introduced across the documentation.


46-51: Excellent improvement in dependency management.

The addition of dotenv and @types/node shows proper consideration for environment management and TypeScript development. This is a significant security improvement over hardcoded credentials.


57-61: Good security practice with environment variables.

The .env file structure properly separates sensitive configuration from code. The variable naming is clear and follows common conventions.


72-91: Robust client creation with proper error handling.

The asynchronous createClient function demonstrates excellent practices:

  • Environment validation before proceeding
  • Clear error messages
  • Proper error propagation
  • Informative logging

This is a significant improvement over simpler initialization patterns.


97-117: Well-structured API call wrapper with comprehensive error handling.

The callAgent function encapsulates API calls effectively with:

  • Request logging for debugging
  • Explicit success/failure handling
  • Detailed error information
  • Consistent error propagation

This pattern makes the SDK easier to use and debug.


123-150: Complete example demonstrates real-world usage patterns.

The main function provides a practical example showing:

  • Proper initialization flow
  • Multiple API calls
  • Error handling with process exit
  • Clear logging throughout

This gives developers a solid foundation to build upon.

src/content/docs/index.mdx (4)

7-7: LGTM! Component import follows established pattern.

The RedText component import is consistent with other documentation files and properly structured.


9-11: Clear and engaging introduction.

The restructured introduction effectively communicates Torus's value proposition while remaining accessible to different user types.


23-25: Well-organized "Understand more" section.

The hierarchical approach from concepts to tokenomics to detailed explanations provides a logical learning path for users.


43-44: Effective use of RedText component for navigation guidance.

The styling helps draw attention to different documentation paths while maintaining readability.

src/content/docs/how-to-guides/holders/stake-your-torus.mdx (5)

14-14: Consistent component import pattern.

The RedText component import follows the established pattern used across other documentation files.


47-47: Updated links reflect new documentation structure.

The URL changes to /how-to-guides/holders/ paths align with the sidebar reorganization and improve navigation consistency.

Also applies to: 51-51


61-61: Effective use of RedText for UI element emphasis.

The RedText component appropriately highlights interactive elements like buttons and tabs, making the instructions clearer for users following the guide.

Also applies to: 65-65, 77-78, 91-91


105-105: Terminology update from "Allocator App" to "Allocator Tab" improves accuracy.

The updated terminology better reflects the actual UI structure and provides more precise guidance to users.

Also applies to: 121-121


163-164: Updated links maintain consistency with new documentation structure.

The link updates to the "Allocator tab" and tokenomics section align with the overall documentation reorganization.

src/content/docs/how-to-guides/builders/manage-capabilities.mdx (6)

6-17: Well-organized imports and assets.

The component imports are properly structured and the image assets follow consistent naming conventions for the capability management workflow.


18-26: Clear introduction explaining the value proposition.

The opening effectively explains both what capabilities are and why managing them matters, covering both the collaborative benefits and security considerations.


63-82: Comprehensive validation rules with clear examples.

The capability path validation section provides:

  • Clear character restrictions
  • Multiple valid examples showing different patterns
  • Invalid examples with specific explanations
  • Proper use of RedText for emphasis

This gives users concrete guidance to avoid common mistakes.


86-95: Helpful REST method explanations.

The REST method descriptions provide practical context for each option, including specific use cases. This helps users choose the appropriate method for their capability.


124-135: Excellent explanation of segment-based deletion.

The deletion logic explanation with concrete examples helps users understand the cascading effect of capability deletion. The visual cues (green/red segments) mentioned align well with the UI design.


137-141: Appropriate warning for destructive operations.

The caution aside properly emphasizes the permanent nature of capability deletion and potential impact on integrations. This prevents accidental destructive actions.

astro.config.mjs (7)

28-31: Improved Getting Started section structure.

The label updates ("Welcome" instead of "Introduction", "Understanding Torus" instead of "Concepts & Terminology") create clearer, more welcoming entry points for new users.


40-48: Better organization with v0.5 versioning.

Moving version-specific content under a dedicated "v0.5" subsection provides clear context and prepares for future version documentation organization.


57-59: Updated builder section reflects current focus.

The addition of "Agent Server" and "Agent Client" items aligns with the comprehensive guides being added for these topics.


62-62: Clear terminology: "Goal Leaders" instead of "Leaders".

The more specific label helps users understand the role and context better than the generic "Leaders" term.


78-81: Consistent path structure for holder guides.

The updated slugs create a clear hierarchy under "how-to-guides/holders/" and the new "Manage Capabilities" item reflects the comprehensive guide being added.

Also applies to: 89-89


91-92: Appropriate use of comments for incomplete features.

Commenting out the incomplete guides ("Manage Permissions", "Delegate Emission Streams") while keeping them visible in the code shows good planning for future additions.


109-141: Well-structured Development section consolidation.

The reorganization of CLI & Tools content into a comprehensive "Development" section with logical subsections (Web Apps, CLI Reference, Network Operations) creates better information architecture and user navigation.

src/content/docs/how-to-guides/builders/delegate-emission-streams.mdx (1)

6-15: Verify absolute import path for RedText

import RedText from '/src/components/RedText.astro' uses a leading slash which Astro resolves only when an alias for / → project root is configured. In a default Starlight setup this resolves to the site root at runtime and 404s.

Safer, alias-agnostic import:

-import RedText from '/src/components/RedText.astro';
+import RedText from '../../../components/RedText.astro';

(or configure import.meta.env.BASE_URL alias).

Broken imports cause the whole page to fail hydration.

src/content/docs/how-to-guides/builders/setup-agent-server.mdx (1)

68-74: Import path may be incorrect for current SDK

Please confirm that @torus-network/sdk/agent is a published sub-path export. If not, change to:

-import { Agent } from "@torus-network/sdk/agent";
+import { Agent } from "@torus-network/sdk";

A wrong sub-path breaks TypeScript resolution and runtime ESM loading.

description: Learn how to query the stake weight between keys
---

import { CardGrid, LinkCard, Aside } from "@astrojs/starlight/components";
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Prune unused component imports.
CardGrid and LinkCard are not utilised in this file; only Aside is required.

-import { CardGrid, LinkCard, Aside } from "@astrojs/starlight/components";
+import { Aside } from "@astrojs/starlight/components";
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { CardGrid, LinkCard, Aside } from "@astrojs/starlight/components";
import { Aside } from "@astrojs/starlight/components";
🤖 Prompt for AI Agents
In src/content/docs/development/web/querying-data.mdx at line 6, remove the
unused imports CardGrid and LinkCard from the import statement, leaving only
Aside imported from "@astrojs/starlight/components" to clean up the code and
avoid unnecessary imports.

label: Register an Agent
---

import { Tabs, TabItem, Aside, LinkCard } from "@astrojs/starlight/components";
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Remove unused LinkCard import.
Since link-cards were deleted, LinkCard isn’t used. Trim the import to avoid MDX compile warnings.

-import { Tabs, TabItem, Aside, LinkCard } from "@astrojs/starlight/components";
+import { Tabs, TabItem, Aside } from "@astrojs/starlight/components";
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { Tabs, TabItem, Aside, LinkCard } from "@astrojs/starlight/components";
import { Tabs, TabItem, Aside } from "@astrojs/starlight/components";
🤖 Prompt for AI Agents
In src/content/docs/explanations/v05/governance-dao.mdx at line 6, the import
statement includes LinkCard which is no longer used because link-cards were
deleted. Remove LinkCard from the import list to prevent MDX compile warnings
and keep the code clean.

Comment on lines +1 to +4
---
title: Manage Permissions
description: Step-by-step guide to creating, editing, and managing permissions in Torus's recursive delegation system.
---
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Filename ↔︎ front-matter title mismatch will break routing & produce duplicate slugs

The file is named create-permission.mdx but declares
title: Manage Permissions.
With another file already called manage-permissions.mdx, Starlight will generate two pages whose slugs collide (/manage-permissions/), or worse, one will shadow the other depending on build order.

Either:

- title: Manage Permissions
+ title: Create Permission

or rename the file to manage-permissions.mdx and delete/merge the duplicate.

Failing to fix this will cause broken links like /how-to-guides/builders/create-permission at the bottom of other guides.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
---
title: Manage Permissions
description: Step-by-step guide to creating, editing, and managing permissions in Torus's recursive delegation system.
---
---
title: Create Permission
description: Step-by-step guide to creating, editing, and managing permissions in Torus's recursive delegation system.
---
🤖 Prompt for AI Agents
In src/content/docs/how-to-guides/builders/create-permission.mdx lines 1 to 4,
the front-matter title "Manage Permissions" does not match the filename
"create-permission.mdx", causing slug conflicts with an existing
"manage-permissions.mdx" file. To fix this, either rename this file to
"manage-permissions.mdx" and merge or delete duplicates, or update the
front-matter title to match the current filename to ensure unique slugs and
prevent routing issues.

Comment on lines +115 to 120
6. **Check your Agent on the [Allocator tab](https://portal.torus.network/root-allocator?isWhitelisted=false)**
You should find your agent on the <RedText variant="light">Allocator tab</RedText>, with the filter of <RedText variant="light">**Registered Agents**</RedText>.
<ClickableImage src={registeredAgents} alt="Allocator tab" />

6. **All Done**
You've now successfully registered an Agent on Torus.
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Duplicate step number – breaks ordered lists

There are two “6.” steps. Renumber the “All Done” section.

-6. **All Done**   
+7. **All Done**   
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
6. **Check your Agent on the [Allocator tab](https://portal.torus.network/root-allocator?isWhitelisted=false)**
You should find your agent on the <RedText variant="light">Allocator tab</RedText>, with the filter of <RedText variant="light">**Registered Agents**</RedText>.
<ClickableImage src={registeredAgents} alt="Allocator tab" />
6. **All Done**
You've now successfully registered an Agent on Torus.
6. **Check your Agent on the [Allocator tab](https://portal.torus.network/root-allocator?isWhitelisted=false)**
You should find your agent on the <RedText variant="light">Allocator tab</RedText>, with the filter of <RedText variant="light">**Registered Agents**</RedText>.
<ClickableImage src={registeredAgents} alt="Allocator tab" />
7. **All Done**
You've now successfully registered an Agent on Torus.
🤖 Prompt for AI Agents
In src/content/docs/how-to-guides/builders/register-an-agent.mdx around lines
115 to 120, there are two steps numbered "6." which breaks the ordered list
formatting. Change the second "6." in the "All Done" section to "7." to maintain
proper sequential numbering in the list.

Comment on lines 125 to 127
3. **Search for Torus and activate it**
Click on the search bar, type Torus, and select it from the list. Make sure to enable it so it appears in your list of active tokens.
Click on the search bar, type Torus, and select it from the list. <RedText varian="light">Make sure to enable it</RedText> so it appears in your list of active tokens.
<ClickableImage src={subwalletSearchTorusNetwork} alt="SubWallet search for Torus button" />
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix typo in RedText prop or the component will render incorrectly

varian="light" is missing the t. At build-time this will likely throw an Astro/React prop-validation error and the highlight won’t appear.

-<RedText varian="light">Make sure to enable it</RedText>
+<RedText variant="light">Make sure to enable it</RedText>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
3. **Search for Torus and activate it**
Click on the search bar, type Torus, and select it from the list. Make sure to enable it so it appears in your list of active tokens.
Click on the search bar, type Torus, and select it from the list. <RedText varian="light">Make sure to enable it</RedText> so it appears in your list of active tokens.
<ClickableImage src={subwalletSearchTorusNetwork} alt="SubWallet search for Torus button" />
3. **Search for Torus and activate it**
Click on the search bar, type Torus, and select it from the list. <RedText variant="light">Make sure to enable it</RedText> so it appears in your list of active tokens.
<ClickableImage src={subwalletSearchTorusNetwork} alt="SubWallet search for Torus button" />
🤖 Prompt for AI Agents
In src/content/docs/how-to-guides/holders/setup-a-wallet.mdx around lines 125 to
127, the RedText component has a typo in the prop name "varian" which should be
corrected to "variant" to ensure proper rendering and avoid build-time errors.
Update the prop name from "varian" to "variant" in the RedText component usage.

Comment on lines +34 to +41
.sl-markdown-content a,
.starlight-aside a,
article a,
main a,
p a,
ul:not(nav ul) li a,
ol:not(nav ol) li a {
color: #3b82f6 !important; /* Tailwind blue-500 - soft blue */
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

:not() selector is invalid and silently ignored

ul:not(nav ul) / ol:not(nav ol) break the CSS Grammar because the argument of :not() cannot include a descendant combinator ( ).
As a result, the selector is ignored – the link colour rule never applies to list items, defeating the intent.

-  ul:not(nav ul) li a,
-  ol:not(nav ol) li a {
+  /* exclude lists that are *inside* a nav element */
+  ul:not(nav ul) li a,          /* <-- invalid */
+  ol:not(nav ol) li a {         /* <-- invalid */
+  
+  /* Suggested fix */
+  ul:not(:where(nav ul)) li a,
+  ol:not(:where(nav ol)) li a {

(The :where() hack preserves specificity while allowing the descendant.)
Please adjust – or switch to a utility class generated with @apply to avoid brittle selectors altogether.

Also applies to: 38-40

🤖 Prompt for AI Agents
In src/tailwind.css around lines 34 to 41, the selectors using :not() with
descendant combinators like ul:not(nav ul) and ol:not(nav ol) are invalid and
ignored by CSS. Replace these selectors with valid alternatives, such as using
:where() to maintain specificity without descendant combinators, or refactor the
styling to use utility classes with @apply to avoid brittle selectors. Update
all occurrences on lines 38 to 40 similarly.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
src/content/docs/getting-started/concepts.mdx (3)

6-6: Remove or actually use the imported UI components

CardGrid, LinkCard, and Aside are imported but never referenced, which will trigger an “unused export” / bundle-size warning in Starlight builds.
Drop the import or integrate the components (e.g. as a sidebar call-out or further-reading grid).


8-8: Duplicate top-level heading – omit the manual #

Starlight automatically renders the page title from the front-matter title: field.
Keeping the manual # Layer1 … results in two H1s, harming semantics and accessibility.
Simply delete the Markdown heading.

-# Layer1 self-assembling & self-optimizing autonomous super-swarm 

27-28: Clean up wording in the v0.5 section

Minor language fixes improve professionalism:

-The v0.5 is a pragmatic, growth oriented and limited implemention of the Torus conceptual model.
-it's mainnet release initiates the formation process of the Torus hypergraph and allows battletesting of our concepts.
+The v0.5 release is a pragmatic, growth-oriented and limited implementation of the Torus conceptual model.
+Its mainnet launch initiates the formation of the Torus hypergraph and allows battle-testing of our concepts.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e832f6b and ea96dfc.

📒 Files selected for processing (2)
  • astro.config.mjs (4 hunks)
  • src/content/docs/getting-started/concepts.mdx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • astro.config.mjs
🧰 Additional context used
🪛 LanguageTool
src/content/docs/getting-started/concepts.mdx

[grammar] ~21-~21: Ensure spelling is correct
Context: ...n & delegation system enables agents to granularily specialize while remaining aligned acro...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

Comment on lines +10 to +22
Torus is a stake-based p2p protocol for goal-driven agent swarm coordination.
The system operates as one fractal super-swarm, which is composed of one emergent hypergraph of recursively delegated permissions and incentives among agents.
warms are subgraphs, and can form at any position in the hypergraph.

The biological analogy for the stake root is the genome, where the genetic library is stored offchain in the evolving minds of the stakeholders and the Torus memeplex, continuously mutating, and the onchain stake-based control mechanism is the gene regulatory system, translating how the genetic library can express itself onto the Torus
The Torus hypergraph emerges from and aligns back to the stake root, tethering the system to the interests of stake.
orus aligns towards the central point of stake, while stake is decentralized representing the system as a whole, effectively aligning it to itself.

---
### Emissions

Emissions are the continuous distribution of TORUS tokens to agents based on their utility and stake allocation. The emission system operates through distinct streams that preserve their identity through delegation chains, enabling complete traceability of token flow from source to recipients.

Agents can delegate portions of their emissions to other agents through stream-based allocations (percentage-based) or fixed amount allocations, creating complex economic coordination structures. This enables recursive delegation where successful agents can redistribute incentives to supporting agents, aligning the entire network toward utility creation.

---
### Namespace

A namespace is a hierarchical naming system that enables agents to organize and delegate access to their capabilities and services. Using dot-separated paths (like `agent.alice.memory.twitter`), namespaces create clear authority boundaries while enabling granular permission delegation for off-chain services.
Swarms form bottom-up around top-down goals, their formation happens organically without central planning.
Swarms operate as self-assembling multi-scale competency architectures,
ollectively navigating towards complex goals with full autonomy at every level and open competition at every edge.

Namespaces represent the *potential* for creating new controls, acting as genetic templates from which specific permissions can emerge. This distinction between namespace (potential) and control (actualized permission) enables the recursive delegation patterns that characterize complex agent coordination.
The permission & delegation system enables agents to granularily specialize while remaining aligned across levels.
Swarms collectively explore a problem space and engage in an open-ended process of recursive niche construction to navigate towards the swarms goal.
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix multiple typos and stray leading spaces

Several lines contain copy-paste artefacts or spelling mistakes that hurt credibility.

- warms are subgraphs, and can form at any position in the hypergraph.
- orus aligns towards the central point of stake, while stake is decentralized representing the system as a whole, effectively aligning it to itself. 
+Swarms are subgraphs and can form at any position in the hypergraph.
+Torus aligns towards the central point of stake, while stake is decentralized, representing the system as a whole and effectively aligning it to itself.

- ollectively navigating towards complex goals with full autonomy at every level and open competition at every edge.
+collectively navigating towards complex goals with full autonomy at every level and open competition at every edge.

-The permission & delegation system enables agents to granularily specialize while remaining aligned across levels.
+The permission & delegation system enables agents to granularly specialize while remaining aligned across levels.

-Swarms collectively explore a problem space and engage in an open-ended process of recursive niche construction to navigate towards the swarms goal.
+Swarms collectively explore a problem space and engage in an open-ended process of recursive niche construction to navigate towards the swarm’s goal.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Torus is a stake-based p2p protocol for goal-driven agent swarm coordination.
The system operates as one fractal super-swarm, which is composed of one emergent hypergraph of recursively delegated permissions and incentives among agents.
warms are subgraphs, and can form at any position in the hypergraph.
The biological analogy for the stake root is the genome, where the genetic library is stored offchain in the evolving minds of the stakeholders and the Torus memeplex, continuously mutating, and the onchain stake-based control mechanism is the gene regulatory system, translating how the genetic library can express itself onto the Torus
The Torus hypergraph emerges from and aligns back to the stake root, tethering the system to the interests of stake.
orus aligns towards the central point of stake, while stake is decentralized representing the system as a whole, effectively aligning it to itself.
---
### Emissions
Emissions are the continuous distribution of TORUS tokens to agents based on their utility and stake allocation. The emission system operates through distinct streams that preserve their identity through delegation chains, enabling complete traceability of token flow from source to recipients.
Agents can delegate portions of their emissions to other agents through stream-based allocations (percentage-based) or fixed amount allocations, creating complex economic coordination structures. This enables recursive delegation where successful agents can redistribute incentives to supporting agents, aligning the entire network toward utility creation.
---
### Namespace
A namespace is a hierarchical naming system that enables agents to organize and delegate access to their capabilities and services. Using dot-separated paths (like `agent.alice.memory.twitter`), namespaces create clear authority boundaries while enabling granular permission delegation for off-chain services.
Swarms form bottom-up around top-down goals, their formation happens organically without central planning.
Swarms operate as self-assembling multi-scale competency architectures,
ollectively navigating towards complex goals with full autonomy at every level and open competition at every edge.
Namespaces represent the *potential* for creating new controls, acting as genetic templates from which specific permissions can emerge. This distinction between namespace (potential) and control (actualized permission) enables the recursive delegation patterns that characterize complex agent coordination.
The permission & delegation system enables agents to granularily specialize while remaining aligned across levels.
Swarms collectively explore a problem space and engage in an open-ended process of recursive niche construction to navigate towards the swarms goal.
Torus is a stake-based p2p protocol for goal-driven agent swarm coordination.
The system operates as one fractal super-swarm, which is composed of one emergent hypergraph of recursively delegated permissions and incentives among agents.
Swarms are subgraphs and can form at any position in the hypergraph.
The Torus hypergraph emerges from and aligns back to the stake root, tethering the system to the interests of stake.
Torus aligns towards the central point of stake, while stake is decentralized, representing the system as a whole and effectively aligning it to itself.
Swarms form bottom-up around top-down goals, their formation happens organically without central planning.
Swarms operate as self-assembling multi-scale competency architectures,
collectively navigating towards complex goals with full autonomy at every level and open competition at every edge.
The permission & delegation system enables agents to granularly specialize while remaining aligned across levels.
Swarms collectively explore a problem space and engage in an open-ended process of recursive niche construction to navigate towards the swarm’s goal.
🧰 Tools
🪛 LanguageTool

[grammar] ~21-~21: Ensure spelling is correct
Context: ...n & delegation system enables agents to granularily specialize while remaining aligned acro...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🤖 Prompt for AI Agents
In src/content/docs/getting-started/concepts.mdx around lines 10 to 22, fix
multiple typos and remove stray leading spaces at the start of lines. Correct
misspellings such as "stake-based" instead of "stake-based," "swarms" instead of
"warms," and "collectively" instead of "ollectively." Also, ensure proper
capitalization and spacing, for example, "Torus" instead of "orus," and remove
any unintended line breaks or spaces that disrupt sentence flow.

@Sipher Sipher closed this Jul 24, 2025
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.

2 participants