Skip to content

docs: retire redundant guides and fix gateway package instructions - #133722

Merged
steipete merged 2 commits into
mainfrom
steipete/retire-redirect-docs-f9a625
Aug 31, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/retire-redirect-docs-f9a625

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Related: #133404 — the first historical-plan retirement.

Publisher prerequisites are merged and live-verified: openclaw/docs#143 — canonical Markdown at retired URLs; openclaw/docs#146 — publication admission and catch-up without starvation.

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.

What Problem This Solves

Readers still encounter duplicate redirect pages, a historical Node/tsx crash investigation, and a retired TCP bridge reference alongside maintained guidance. Gateway SDK installation guidance also needs to reflect the now-published packages and their actual compatibility contracts rather than initial-publication assumptions.

Why This Change Was Made

Retire 27 redundant redirect/duplicate pages and two historical notes, preserve useful current facts in canonical guides, and retain all 29 public URLs through central redirects. Move authored links and source-file references to their owners instead of maintaining another layer of stubs.

Make the Gateway client guide the installation owner, with reproducible stable 2026.8.1 pins and explicit distinctions between SDK package versions, the root CLI release, and wire protocol versions. Preserve host-owned device-auth requirements and the signed local-backend pairing exception. The only production-source change is a documentation URL in config UI hint metadata; no runtime logic, settings, validation/database schemas, migrations, SDK exports, package versions, credentials or operator state change.

User Impact

Readers reach current guidance directly, while old URLs remain usable by browsers and Markdown readers. SDK consumers install verified stable artifacts, with a short recovery note for lockfiles still containing the reserved 0.0.0 packages. The still-exported channel-message facade and its three deprecated inbound aliases remain documented accurately: the date is removal eligibility, not automatic retirement, a next-major promise or an import warning.

Current flow lookup, macOS SSH reconnect guidance, Node startup diagnostics and node exec lifecycle behavior are retained. Old Node pins/bisect notes and retired TCP wire frames are intentionally historical, not described as implemented current features. The docs guide corrects its stale hosting statement, and the TTS config help link points directly at the maintained guide.

Evidence

  • Publisher repair was deployed and verified before source deletion. Full R2 publication actually uploaded the artifact, and matching Worker deployment succeeded without host cutover. All 24 checked existing retirement variants passed explicit .md, all three Markdown Accept types, GET/HEAD, exact canonical bytes, Vary: Accept, no Location, and correct browser targets. Plain curl -fsS without -L returned the complete 71,584-byte canonical schema reference.
  • The 29 sources and relevant runtime owners were revalidated against main before deletion. The initial cleanup rebased cleanly onto c29f34dc5312530761529e7133afa083911e7959, retaining upstream navigation, glossary and protocol additions.
  • Full docs validation passed after retirement/rebase: 751 MDX files, 7,124 internal links with zero broken, and 1,210 config examples, plus formatting, Markdown/template lint and glossary checks. The stable-guidance refresh also passed the full docs gate. pnpm docs:list and git diff --check passed.
  • pnpm maturity:check validates source inputs. Evidence-backed generated freshness was explicitly skipped because no release-QA evidence directory was supplied; generated maturity output was not fabricated or edited.
  • QA source-reference coverage: 58 tests passed after deletion and rebase. Earlier focused node-event, node-registry, real CLI parser and package-transport suites: 307 passed; their relevant runtime owners are unchanged.
  • Initial CI found two missed documentation consumers: a test read the retired five-line ClawHub redirect stub, and TTS hint metadata still pointed at /tts. Both failures were reproduced. Removed only the obsolete stub from the plugin-author test input and changed the owning TTS docs URL to /tools/tts; all 16 tests in the two affected files now pass, without weakening assertions or changing schema/setting behavior. Valid legacy URL fixtures and generated external-plugin catalog metadata are left intact.
  • Registry freshness mattered: the initial unqualified 0.0.0 failure and beta proof were correct when collected, but both SDKs published stable 2026.8.1 at 2026-08-31 02:30 UTC, during review. Final guides use stable pins, not the now-stale placeholder claim. Fresh registry responses verify latest=2026.8.1, reserved=0.0.0, exact protocol dependency, publication times, tarballs and integrity. No package was published or retagged by this PR.
  • Stable package proof verifies all 23 client and 30 protocol tarball files against installed bytes, runtime/type entrypoints, strict TypeScript consumption, validators, and the browser import graph without Node built-ins or ws. Current/general/node/probe wire constants are 4/4/3/3. The pinned 3,326,258-byte schema download matches installed bytes; its package import subpath correctly rejects with ERR_PACKAGE_PATH_NOT_EXPORTED. Browser import/type checks are not a real-browser connection or minimum-engine matrix claim.
  • The published stable client completed real backend and UI connections to a task-owned built wire-v4 Gateway, with status RPC and operator.read. The signed unpaired backend received no device token; UI mode followed normal pairing and received one. PID 46108 exited, port 51204 closed, and synthetic state, credentials and preview configuration were removed. The operator's Gateway was not used or changed.
  • Fresh isolated Codex review covers the complete retirement plus stable-package and reference follow-ups: scoped-clean at the configured P0 blocking threshold. All classified core/core-test/docs checks passed, including core and test typechecking, lint and repository guards. The final local pnpm build also passed before the follow-up head was pushed.
  • Final-head CI and the required openclaw/ci-gate passed on 1a2a265daa4f4adf619a8637bee52e016baa4356; the native watcher finished GREEN. The prior two executed test failures are fixed, not bypassed. Cancelled superseded labeling/dispatch checks were not test failures.
  • Final-head clean Linux artifact proof passed against source 1a2a265daa4f4adf619a8637bee52e016baa4356 and merged publisher 8d0159ab1d44a762c9d83cc7e33cbb887ed8cac0: 76 publisher tests, 30,544 built pages, 85,950 R2 objects, 10,328 aliases and 41,228 GET/HEAD requests. All 29 English sources/old Markdown objects are absent and both alias forms are correct. Input checks compare 832 core files and 22 ClawHub-owned files against their actual owners. The 42 dotted aliases are excluded only from negotiation, not explicit .md verification. The initial harness ownership error comparing imported ClawHub pages with core entry-point guides was corrected, not worked around in product code. AWS lease cbx_3ea7d7544918 is independently confirmed released; no R2 upload was performed by the proof.
  • The latest ClawSweeper review covers this exact head and found no introduced defect. Its remaining writable-runner docs/publisher validation and exact-head CI requests are satisfied by the local checks, final Linux artifact and green CI above.

Representative commands:

pnpm check:docs
pnpm maturity:check
OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/run-vitest.mjs src/docs/clawhub-plugin-docs.test.ts src/config/schema.hints.test.ts
OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog.test.ts
node scripts/check-changed.mjs -- docs/gateway/clients.md docs/gateway/protocol.md docs/gateway/external-apps.md packages/gateway-client/README.md packages/gateway-protocol/README.md src/config/schema.hints.ts src/docs/clawhub-plugin-docs.test.ts

Production documentation-link metadata: +1/-1 (net 0); runtime logic unchanged. Tests: 0/-1. Docs and docs metadata: +253/-652. QA/maturity source-reference metadata: +2/-7. Total: 56 files, +256/-661 (net -405). Nine redirects are added, 20 existing retirement redirects retained, four obsolete navigation entries removed and three glossary labels added. Scores, coverage IDs, generated plugin references and generated locales remain untouched.

Retired URL → canonical destination (29 pages)
Retired URL Canonical destination
/automation/auth-monitoring /gateway/authentication
/automation/clawflow /automation/taskflow
/automation/cron-vs-heartbeat /automation#automations-vs-heartbeat
/automation/gmail-pubsub /automation/cron-jobs#gmail-pubsub-integration
/automation/poll /cli/message
/automation/troubleshooting /automation/cron-jobs#troubleshooting
/automation/webhook /automation/cron-jobs#webhooks
/brave-search /tools/brave-search
/perplexity /tools/perplexity-search
/tts /tools/tts
/cli/crestodian /cli/openclaw
/platforms/digitalocean /install/digitalocean
/platforms/oracle /install/oracle
/platforms/raspberry-pi /install/raspberry-pi
/plugins/agent-tools /plugins/building-plugins#registering-agent-tools
/plugins/building-extensions /plugins/building-plugins
/reference/wizard /start/wizard-cli-reference
/start/quickstart /start/getting-started
/tools/capability-cookbook /plugins/adding-capabilities
/tools/clawhub /clawhub
/cli/flows /cli/tasks#flow
/concepts/memory-qmd /concepts/memory-builtin#migrating-from-qmd
/gateway/network-model /network#core-model
/gateway/remote-gateway-readme /gateway/remote#macos-persistent-ssh-tunnel-via-launchagent
/platforms/mac/child-process /platforms/mac/bundled-gateway
/plugins/sdk-channel-message /plugins/sdk-channel-outbound
/plugins/sdk-channel-turn /plugins/sdk-channel-inbound#migration
/debug/node-issue /help/debugging#node-and-tsx-startup-errors
/gateway/bridge-protocol /gateway/protocol

Preservation owners: Task Flow naming → automation/taskflow; flow ID/owner-key lookup and statuses → cli/tasks; channel-message migration → plugins/sdk-channel-outbound; startup diagnostics → help/debugging; authenticated node exec fields, terminal consumption, suppression/quiet-success and best-effort delivery → gateway/protocol; SSH/app reconnect guidance → gateway/remote and platforms/mac/remote.

Merged as ee3ee255d8d9. Source sync succeeded and publisher commit f60987d1765ed694ceff36dafe1edbb4720d6d72 records that exact source, with all 29 English files absent. Full R2 publication actually built, smoke-tested and uploaded the snapshot: 30,544 pages, 85,951 objects, 11,081 changed uploads and 504 obsolete manifest-tracked objects deleted. The alias build/prepare/upload and Worker owners are unchanged from the complete artifact proof; independently landed browser anchor/mobile-TOC changes are also included in the production build. At 2026-08-31 04:31 UTC, all 58 original-/docs-route cases passed live, including 464 Markdown GET/HEAD requests, all three negotiated MIME types, exact canonical-body equality, no Location, and correct browser destinations—without following redirects or cache-busting. At 05:11 UTC, all nine SDK guide variants (three guides × explicit Markdown, negotiated Markdown and browser HTML) showed the authored stable 2026.8.1 guidance and no obsolete E404 publication note. The older client/protocol Markdown entries refreshed naturally under the existing edge policy; no purge, cache-busting, request bypass or cache-policy change was used. The complete 58-case retirement probe passed again after that cache refresh. Locale cleanup belongs to translation finalization, not source sync: the candidate sync reports 976 orphan localized pages across the existing corpus and deliberately retains them. At the final workflow check, Translate Incremental is disabled manually, and the active full translation wave selects source 4bc25d7a7001c67dadc80835619b200406fe5cb1, predating this retirement. Localized retirement therefore remains pending a new post-sync wave with complete accepted deletion artifacts, an aggregate commit and successful full deployment. No translation setting or finalizer gate is changed; English retirement is not a claim that every translated source has been removed.

@steipete steipete self-assigned this Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos gateway Gateway runtime extensions: qa-lab plugin: file-transfer app: linux plugin: linux-node size: S maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 02:14
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 11:49 PM ET / August 31, 2026, 03:49 UTC.

ClawSweeper review

What this changes

The PR removes redundant documentation stubs, preserves their routes through central redirects, and updates Gateway SDK installation and compatibility guidance.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer review. The PR is still needed: current main retains the old unpinned Gateway package guidance, while the branch centralizes all 29 retired routes and aligns the retained guides with the package source contracts. No introduced correctness or security defect was found.

Priority: P3
Reviewed head: 1a2a265daa4f4adf619a8637bee52e016baa4356

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned documentation cleanup with no actionable defect found; final CI remains a normal merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: Repository State identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the reviewed source confirms the documentation and package-contract claims without reexecuting the supplied runtime evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: Repository State identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the reviewed source confirms the documentation and package-contract claims without reexecuting the supplied runtime evidence.
Evidence reviewed 7 items All retired documentation routes remain represented: A read-only audit of the introduced deletion set found all 29 deleted documentation routes in the central redirect map; the newly added entries include CLI flows, QMD migration, remote Gateway, channel SDK, Node/tsx, and bridge-protocol routes.
Publisher ownership follows the documented architecture: The sync owner reads the source documentation configuration, composes the publish configuration, and writes it into the publish tree, so retaining redirects in docs.json is the canonical source-side path.
Gateway package guidance matches local package contracts: Both package manifests declare version 2026.8.1 and Node >=22.19.0; the protocol package exports listed subpaths but not protocol.schema.json, matching the revised installation and download guidance.
Findings None None.
Security None None.

How this fits together

OpenClaw’s documentation source is synchronized into a separate publish tree, where redirect metadata preserves legacy public URLs. The Gateway client and protocol packages are consumed by external applications, with their manifests and runtime source defining their supported entrypoints and host-owned authentication responsibilities.

flowchart LR
  Legacy[Legacy documentation URLs] --> Redirects[Central redirect metadata]
  Redirects --> Guides[Canonical operator and plugin guides]
  PackageSource[Gateway package manifests and source] --> InstallDocs[SDK installation guidance]
  InstallDocs --> ExternalClients[External Gateway clients]
Loading

Before merge

  • Resolve merge risk (P1) - Local docs validation could not run because Corepack cannot create its cache on this read-only host; the exact-head GitHub check rollup is also still incomplete.
Agent review details

Security

None.

PR surface

Source 0, Tests -1, Docs -399, Other -5. Total -405 across 56 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 0 1 -1
Docs 52 253 652 -399
Config 0 0 0 0
Generated 0 0 0 0
Other 2 2 7 -5
Total 56 256 661 -405

Review metrics

Metric Value Why it matters
Production versus test LOC runtime metadata +1/-1 (net 0); tests 0/-1; docs and QA metadata +255/-659 The only executable-source change retargets an existing TTS help URL; the remainder consolidates documentation, redirects, and reference metadata.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the redirect consolidation and canonical package guidance after exact-head documentation/publisher validation completes on a writable CI runner.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the redirect consolidation and canonical package guidance after exact-head documentation/publisher validation completes on a writable CI runner.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is documentation maintenance rather than a reported runtime bug. Static inspection confirms each deleted source route has a central redirect, but the local docs-list command could not start on the read-only host.

Is this the best way to solve the issue?

Yes. Using the publisher-owned redirect map and preserving the useful facts in canonical guides avoids maintaining duplicate stubs while keeping old URLs reachable.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 945ea6fa91d9.

Labels

Label justifications:

  • P3: This is low-risk documentation and operator-guidance maintenance with no identified runtime regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable: Repository State identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the reviewed source confirms the documentation and package-contract claims without reexecuting the supplied runtime evidence.

Evidence

What I checked:

  • All retired documentation routes remain represented: A read-only audit of the introduced deletion set found all 29 deleted documentation routes in the central redirect map; the newly added entries include CLI flows, QMD migration, remote Gateway, channel SDK, Node/tsx, and bridge-protocol routes. Public docs: docs/docs.json. (docs/docs.json:1092, 1a2a265daa4f)
  • Publisher ownership follows the documented architecture: The sync owner reads the source documentation configuration, composes the publish configuration, and writes it into the publish tree, so retaining redirects in docs.json is the canonical source-side path. (scripts/docs-sync-publish.mjs:511, 1a2a265daa4f)
  • Gateway package guidance matches local package contracts: Both package manifests declare version 2026.8.1 and Node >=22.19.0; the protocol package exports listed subpaths but not protocol.schema.json, matching the revised installation and download guidance. (packages/gateway-protocol/package.json:34, 1a2a265daa4f)
  • Host-owned device authentication is documented from the implementation: GatewayClientHostDeps owns identity loading, signing, public-key encoding, and device-token storage; the revised package README directs Node hosts to provide those dependencies rather than implying the package reads OpenClaw credentials. (packages/gateway-client/src/client.ts:76, 1a2a265daa4f)
  • Current main has not absorbed the central documentation change: Current main at the fetched SHA still shows unpinned package installation and the initial-publication E404 note, so the PR is not redundant. Public docs: docs/gateway/clients.md. (docs/gateway/clients.md:20, 945ea6fa91d9)
  • History and current-area routing: Recent documentation history includes the merged historical-plan retirement and the current source line ancestry; the PR head is not contained in fetched main. Public docs: docs/docs.json. (docs/docs.json:1092, a2a9edfccf65)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the exact-head documentation and publisher checks finish on a writable runner.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-31T02:22:45.780Z sha d72232e :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 1a2a265daa4f4adf619a8637bee52e016baa4356:

Exact-head CI, the required openclaw/ci-gate, and the native CI watcher are green. The two real failures from the earlier head were reproduced and fixed: the obsolete ClawHub stub test input is removed, and TTS documentation metadata now points to the canonical page. All 16 affected tests pass; no assertions or gates were weakened.

Fresh AWS/Linux full-artifact proof used the exact final core source and merged publisher. It verified 832 core files and 22 separately owned ClawHub files, passed 76 publisher tests and make docs-check, built 30,544 pages/85,950 objects, and checked 10,328 aliases with 41,228 GET/HEAD requests. All 29 retired English sources and old Markdown objects are absent. The 42 dotted aliases are excluded only from negotiation, not explicit .md checks. Lease cbx_3ea7d7544918 is independently confirmed released; this proof did not upload anything to R2.

Local pnpm check:docs, pnpm maturity:check source-input validation, the classified changed gate, pnpm build, and git diff --check passed. Exact focused commands and the stable SDK artifact/authentication evidence are in the updated PR body. Fresh complete-candidate Codex review is scoped-clean at the configured P0 threshold. The latest ClawSweeper review covers this head, and its remaining writable-runner docs/publisher/CI request is now satisfied.

Proceeding through native prepare/merge, then verifying actual source sync, full R2 publication and all 58 original-/docs-route cases. Generated locale cleanup is explicitly separate: incremental translation is disabled and the active full wave predates this change. No claim of localized retirement, generated-output freshness, real-browser SDK connectivity, package publication, schema changes or operator-state changes is being made.

@steipete
steipete merged commit ee3ee25 into main Aug 31, 2026
246 of 248 checks passed
@steipete
steipete deleted the steipete/retire-redirect-docs-f9a625 branch August 31, 2026 04:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
…penclaw#133722)

* docs: retire legacy redirects and clarify gateway package installs

* docs: refresh stable gateway SDK guidance and canonical links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: linux app: macos App: macos docs Improvements or additions to documentation extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: file-transfer plugin: linux-node rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant