Skip to content

feat(setup): canonical OpenClaw happy-path + actionable setup checks (#321) - #322

Merged
hurttlocker merged 1 commit into
mainfrom
feat/321-openclaw-happy-path
Mar 11, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
feat/321-openclaw-happy-path

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

What this does

Implements #321 as one bounded setup hardening slice:

  • creates a single canonical Cortex + OpenClaw happy-path setup doc
  • upgrades openclaw cortex setup into actionable health verification
  • adds stale ~/bin/cortex drift detection, plugin/runtime drift checks, and HNSW rebuild guidance
  • aligns setup references across docs to one canonical flow

Problem / Context

Setup quality had drift and split guidance:

  • setup guidance duplicated across docs with different depth/order
  • openclaw cortex setup printed raw config but did not clearly guide next steps
  • stale local runtime paths (especially ~/bin/cortex) and plugin/runtime drift could remain invisible
  • HNSW warnings lacked clear repair loop in OpenClaw setup flow

Issue: #321

How it works

1) Canonical setup flow (single source of truth)

Added:

  • docs/openclaw-happy-path.md

This defines one operator happy-path from install → config placement → setup verify → smoke test.

2) Actionable openclaw cortex setup

plugin/index.ts setup command now performs structured checks with pass/warn/fail + explicit next: actions:

  • OpenClaw config file presence and parse
  • plugin entry presence
  • config placement validation (plugins.entries.openclaw-cortex.config)
  • configured Cortex binary execution + version
  • stale ~/bin/cortex vs PATH runtime drift detection
  • runtime drift warning if below recommended baseline (1.2.4)
  • binary-path drift warning (configured binary vs PATH runtime mismatch)
  • doctor-derived checks surfaced in setup output:
    • DB path/open/stats
    • embeddings + embed config
    • version check
    • HNSW index check
  • explicit HNSW rebuild health hint: cortex index + rerun setup

3) Docs alignment (no duplicate competing setup path)

Updated references to canonical flow:

  • README.md
  • docs/setup-guide.md (OpenClaw section now points to canonical doc)
  • plugin/README.md

Testing done

Exact commands run:

  1. node --check plugin/index.ts
  2. node --test plugin/hygiene.test.ts
  3. go test ./...

Screenshots / before-after

Terminal behavior change:

  • Before: openclaw cortex setup mostly echoed config + basic stats/connect output
  • After: structured setup checks with explicit pass/warn/fail and actionable next: guidance, including drift and HNSW rebuild health

Breaking changes / risks

Breaking changes: None.

Concise risk note for Hawk:

  • primary risk is setup warnings becoming noisier on edge local PATH layouts
  • mitigated by bounded scope + explicit remediation hints + non-destructive behavior (no auto-mutations)
  • no retrieval/ranking/reasoning behavior changed in this PR

Merge notes

@hurttlocker
hurttlocker merged commit 33010b4 into main Mar 11, 2026
4 checks passed
@hurttlocker
hurttlocker deleted the feat/321-openclaw-happy-path branch March 21, 2026 01:27
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