Skip to content

docs: Technical Reference tab + deep troubleshooting/recovery + llms.txt - #235

Merged
KrasimirKralev merged 3 commits into
ID-Robots:mainfrom
KrasimirKralev:docs/technical-reference
Jul 4, 2026
Merged

KrasimirKralev merged 3 commits into
ID-Robots:mainfrom
KrasimirKralev:docs/technical-reference

Conversation

@KrasimirKralev

@KrasimirKralev KrasimirKralev commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Full documentation build-out for docs.clawbox.tech — technical reference, deep troubleshooting, and agent-scannability. Modeled on docs.openclaw.ai's structure (concepts / reference / symptom-first troubleshooting) and fact-checked against the codebase (service units, install.sh, updater.ts, auth.ts, configure/route.ts, gateway-pre-start.sh, clawbox-mcp.ts).

New: Technical Reference tab (8 pages)

Page Covers
Quick Reference One-page fact sheet: ports, paths, services, commands, API endpoints, 10 hard-won gotchas — the anchor page for power users and AI agents
Architecture Service topology (all 12 units), request routing (port 80 → gateway), boot lifecycle, ClawBox↔OpenClaw relationship
Networking AP mode + captive portal, mDNS/clawbox.local reliability (why it fails, what to do), full port map, remote access
Filesystem On-disk layout, exact secret locations, what survives updates vs factory reset
Authentication Login flow (unix_chkpwd requirements), session cookies, gateway token, MCP/local-AI tokens, security posture
AI Providers Every lane (incl. the two OpenAI lanes openai/ vs codex/), credential storage map, compat routing, boot-time self-heals
Update System Tag-based updates, the pipeline steps, channels, divergence/"Updates paused", manual-update pitfalls
Agent Interface Full MCP tool catalog (~50 tools), clawbox CLI, auth model

Upgraded: Support

  • Troubleshooting — rewritten symptom-first with diagnostic ladders drawn from June's real support cases: browser-rejects-password-but-SSH-works (autofill → unix_chkpwd test → login-API curl → perms → stale build → passwd reset), silent update suppression on diverged boxes, gateway token mismatch / Unrecognized key after manual updates, provider 401s after switching to the ChatGPT subscription, Telegram pairing.
  • Recovery (new) — ordered playbook: A password reset → B service restart → C safe reinstall → D factory reset (UI + SSH paths, post-reset steps, "which option do I need" table).

Agent scannability

  • llms.txt published at the site root (one-line docs-deploy.yml addition copies it into the export) — the standard LLM discovery index with per-page descriptions.
  • Tables-over-prose throughout; every fact traceable to code.

Notes

Summary by CodeRabbit

  • New Features

    • Expanded the documentation site with new technical reference sections covering architecture, networking, authentication, filesystem layout, updates, AI providers, and agent integration.
    • Added a new homepage “Going deeper” area linking to technical reference and recovery guides.
  • Bug Fixes

    • Improved troubleshooting and recovery guidance with clearer symptom-based steps, log locations, and safer restore options.
    • Ensured llms.txt is included in the published site output.

Full documentation build-out, modeled on docs.openclaw.ai's structure
(concepts/reference/symptom-first troubleshooting) and fact-checked against
the codebase:

- New 'Technical Reference' tab (8 pages): quick-reference (one-page
  ports/paths/services/commands/gotchas fact sheet — the anchor page),
  architecture (service topology, request routing, boot lifecycle),
  networking (AP mode, captive portal, mDNS reliability, port map),
  filesystem (on-disk layout, what survives updates vs factory reset),
  authentication (login flow, session cookies, gateway/MCP tokens),
  ai-providers (all lanes, credential storage map, the two OpenAI lanes,
  boot self-heals), update-system (tag-based updates, channels, divergence),
  agent-interface (full MCP tool catalog + clawbox CLI).
- support/troubleshooting rewritten symptom-first with diagnostic ladders
  drawn from real support cases: browser-rejects-password (unix_chkpwd/
  autofill/stale-build/encoding), silent update suppression on diverged
  boxes, manual-update pitfalls (gateway token mismatch, stale core),
  provider 401s after API-key->subscription switch, Telegram pairing.
- New support/recovery: ordered playbook A-D (password reset, service
  restart, safe reinstall, factory reset incl. SSH path + post-reset steps).
- llms.txt published at the site root (docs-deploy.yml copies it) for
  LLM/agent discovery per the llms.txt convention.
- Beta-only features (updates-paused UI, provider self-heals) are labeled
  as beta-channel — v3.1.5 stable shipped without them.

Validated: mint export builds 24 pages clean.
@KrasimirKralev
KrasimirKralev requested a review from a team as a code owner July 4, 2026 10:20
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@KrasimirKralev, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 25 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8a0b4a45-a715-4981-aac3-429fad7807d1

📥 Commits

Reviewing files that changed from the base of the PR and between 5a83803 and 4f01662.

📒 Files selected for processing (25)
  • docs-site/docs.json
  • docs-site/guides/messaging-channels.mdx
  • docs-site/guides/subscriptions.mdx
  • docs-site/hardware/clawbox-connect.mdx
  • docs-site/hardware/clawbox-workstation.mdx
  • docs-site/hardware/requirements.mdx
  • docs-site/index.mdx
  • docs-site/llms.txt
  • docs-site/quickstart.mdx
  • docs-site/setup/choose-ai-provider.mdx
  • docs-site/setup/connect-network.mdx
  • docs-site/setup/first-boot.mdx
  • docs-site/setup/openclaw-setup.mdx
  • docs-site/support/faq.mdx
  • docs-site/support/recovery.mdx
  • docs-site/support/troubleshooting.mdx
  • docs-site/support/updating.mdx
  • docs-site/technical/agent-interface.mdx
  • docs-site/technical/ai-providers.mdx
  • docs-site/technical/architecture.mdx
  • docs-site/technical/authentication.mdx
  • docs-site/technical/filesystem.mdx
  • docs-site/technical/networking.mdx
  • docs-site/technical/quick-reference.mdx
  • docs-site/technical/update-system.mdx
📝 Walkthrough

Walkthrough

This PR adds a new "Technical Reference" documentation section (Architecture, Networking, Filesystem, Authentication, AI Providers, Update System, Agent Interface, Quick Reference), overhauls the Recovery and Troubleshooting support pages, adds an llms.txt file, and wires navigation, homepage links, and CI export.

Changes

Documentation site additions and overhaul

Layer / File(s) Summary
Navigation, homepage links, and llms.txt export
docs-site/docs.json, docs-site/index.mdx, docs-site/llms.txt, .github/workflows/docs-deploy.yml
Adds a Technical Reference nav tab, homepage "Going deeper" links, new llms.txt content, and a CI step copying llms.txt into the exported site.
Support recovery guide
docs-site/support/recovery.mdx
New page detailing password reset, service restart, safe reinstall, and factory reset recovery options with a symptom lookup table.
Support troubleshooting overhaul
docs-site/support/troubleshooting.mdx
Rewrites troubleshooting into symptom-first sections for connectivity, login, updates, AI provider errors, assistant replies, Telegram, and log reading.
Architecture, networking, and filesystem pages
docs-site/technical/architecture.mdx, docs-site/technical/networking.mdx, docs-site/technical/filesystem.mdx
New pages describing service topology, request routing, boot lifecycle, port map, and on-disk file layout.
Authentication page
docs-site/technical/authentication.mdx
New page covering shared password login, session cookies, gateway/service tokens, and security posture.
AI providers page
docs-site/technical/ai-providers.mdx
New page covering provider lanes, credential storage, compatibility routing, local models, and boot self-healing.
Update system page
docs-site/technical/update-system.mdx
New page covering the git-based update pipeline, channels, divergence handling, and version pinning.
Agent interface page
docs-site/technical/agent-interface.mdx
New page covering the MCP tool catalog, CLI mapping, and authentication/safety rails.
Quick reference page
docs-site/technical/quick-reference.mdx
New single-page reference with identity, ports, paths, services, commands, API endpoints, and gotchas.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed but doesn't follow the required template sections for Summary, change type, testing, checklist, or screenshots/logs. Reformat the PR description to match the template and add Summary, Type of change, Testing, Checklist, and Screenshots/logs sections.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main doc changes: technical reference, troubleshooting/recovery, and llms.txt.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs-site/index.mdx`:
- Around line 57-67: The “Troubleshooting & Recovery” card in index.mdx only
points to the troubleshooting page, so users looking for recovery steps have to
take an extra hop. Update the existing Card in the Going deeper section to make
recovery directly accessible as well, using the Card component and its
href/label setup so the destination clearly surfaces both troubleshooting and
recovery content.

In `@docs-site/support/troubleshooting.mdx`:
- Around line 89-100: The “Rebuild the web app” step in troubleshooting
duplicates the reinstall instructions already maintained in the recovery guide,
so update the Step content in troubleshooting.mdx to point to the existing
`/support/recovery#c--safe-reinstall-1015-minutes-no-data-loss` section instead
of repeating the full command block. Keep the surrounding explanatory text, but
replace the duplicated snippet so future changes only need to be made in the
recovery page. Use the Step title and the recovery Option C anchor to locate the
duplicated block.

In `@docs-site/technical/networking.mdx`:
- Around line 13-24: The networking docs are hardcoding the default AP and LAN
URL targets instead of using the active fallback IP/hostname, which can be wrong
when the primary subnet collides or the hostname is renamed. Update the captive
portal and steady-state LAN references in networking.mdx to reflect the active
AP IP fallback behavior and the configurable hostname documented elsewhere, so
the docs match the runtime behavior of the AP/mDNS flow.

In `@docs-site/technical/quick-reference.mdx`:
- Line 100: Update the route examples in quick-reference so they include the
/setup-api/ prefix, since the current grouped paths in the table under the route
list can be mistaken for top-level endpoints. Adjust the markdown row containing
wifi/*, files/*, apps/*, clawkeep/*, code/*, and preferences so each example is
shown as a setup-api-prefixed route.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a750f30d-28d9-4904-95d7-12c031041e95

📥 Commits

Reviewing files that changed from the base of the PR and between a36c3fa and 5a83803.

📒 Files selected for processing (14)
  • .github/workflows/docs-deploy.yml
  • docs-site/docs.json
  • docs-site/index.mdx
  • docs-site/llms.txt
  • docs-site/support/recovery.mdx
  • docs-site/support/troubleshooting.mdx
  • docs-site/technical/agent-interface.mdx
  • docs-site/technical/ai-providers.mdx
  • docs-site/technical/architecture.mdx
  • docs-site/technical/authentication.mdx
  • docs-site/technical/filesystem.mdx
  • docs-site/technical/networking.mdx
  • docs-site/technical/quick-reference.mdx
  • docs-site/technical/update-system.mdx

Comment thread docs-site/index.mdx
Comment thread docs-site/support/troubleshooting.mdx Outdated
Comment thread docs-site/technical/networking.mdx Outdated
Comment thread docs-site/technical/quick-reference.mdx Outdated
…fixes

- Replace the ASCII architecture diagram with a native Mermaid flowchart
  (the box-drawing characters rendered misaligned; Mermaid is theme-aware
  and scrollbar-free)
- Add consistent sidebar icons to all 23 pages (a mixed icon/no-icon
  sidebar reads as unfinished)
- Shorten the ai-providers sidebar title; rename 'Deep Support' -> 'Support'
- CodeRabbit review fixes: link Recovery from the landing card; de-duplicate
  the reinstall block (divergence fix now links to Recovery C; the login
  ladder keeps its inline copy deliberately - a stuck user shouldn't hop
  pages mid-diagnosis); acknowledge the active-AP-IP fallback in the
  networking table; add the /setup-api/ prefix to the grouped endpoint row
- Verified: mint export builds 24 pages; mermaid compiles to the Mermaid
  component (not a plain code block); all internal links resolve
…x, dedup

Findings from a 4-angle review (duplication, simplification, consistency,
altitude) applied:

Factual corrections:
- The gateway is NOT loopback-only: clawbox-gateway.service runs --bind lan.
  Corrected the exposure claim in architecture (diagram + services table),
  networking, authentication, quick-reference, and llms.txt to 'LAN,
  token-gated - never browse :18789 directly'.
- support/updating.mdx rewritten: it told users four times to click Connect
  at :18789 (the exact anti-pattern the rest of the docs warn against) and
  recommended curl|bash as the PRIMARY update path. Now: System Update app
  first, sudo clawbox update over SSH, force-update.sh as the stuck-update
  fallback; kept its unique ~/.openclaw backup step; fixed repo casing,
  service-name style, and the 10-15 min duration.
- setup/openclaw-setup.mdx: 'systemctl restart openclaw' / 'journalctl -u
  openclaw' reference a unit that doesn't exist on a ClawBox - corrected to
  clawbox-gateway with a DIY note; Node 18+ -> 22+ (requirements.mdx 20+ ->
  22+ and its self-contradicting 'Minimum requirements' heading renamed).

Structure/ordering:
- Login ladder: fresh-password (10s) now precedes the rebuild (10-15 min);
  rebuild step links to Recovery C instead of inlining the destructive recipe.
- 'Update finished but misbehaves': full-installer guidance promoted to the
  intro; redundant 'Rule of thumb' accordion removed.
- Provider-401 accordion trimmed to symptom+fix, links to ai-providers for
  the two-lanes explanation (was a full retelling).
- Divergence beta note now links to update-system instead of duplicating it.
- OpenClaw pinning prose deduped (was stated in full on two pages).
- Credentials-location explanation single-sourced in ai-providers.
- Anchor-safe heading rename: 'AI provider errors (401 "Incorrect API key")'
  (the ' / ' variant slugified inconsistently with its 3 inbound links).
- first-boot title 'Setup Guide' -> 'First Boot' (matches every cross-link);
  llms.txt descriptions re-synced; index tightened + Discord link added;
  beta-availability phrasing standardized.

Skipped deliberately (product-truth calls for @yalexx): box-contents/case-
material discrepancies, ClawBox AI Free-tier mention in subscriptions.mdx,
messaging-channels device-managed nuance, Orin Nano 'Super' naming.

Validated: mint export 24 pages clean; all internal links resolve; zero
:18789 browsing instructions remain.
@KrasimirKralev
KrasimirKralev merged commit 653ecab into ID-Robots:main Jul 4, 2026
7 checks passed
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