Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

feat: phase 1 foundation — chunking, config, attribution, logging, HNSW migration - #2

Merged
johansabent merged 5 commits into
mainfrom
feat/phase1-foundation
Mar 17, 2026
Merged

feat: phase 1 foundation — chunking, config, attribution, logging, HNSW migration#2
johansabent merged 5 commits into
mainfrom
feat/phase1-foundation

Conversation

@johansabent

Copy link
Copy Markdown
Owner

Summary

  • Fix SentenceSplitter: explicitly wire chunk_size=512, chunk_overlap=64 via transformations=[] — was imported but never used
  • Add .mdx support: install/northflank.mdx, install/railway.mdx, install/render.mdx are now ingested
  • Raise similarity_top_k from default 2 → 5, so the retriever considers more candidate chunks
  • Add SimilarityPostprocessor with cutoff 0.65 — prevents LLM being called when no chunk is relevant
  • Add source attribution: every query response now prints [score] file_name for each retrieved node
  • Centralise config: all hardcoded model names, dimensions, collection, batch size, top-k moved to .env; add .env.example template
  • Structured logging: replace all print() with logging; level controlled via LOG_LEVEL env var
  • HNSW index migration: migrations/001_hnsw_index.sql — run once in Supabase to fix the full-table-scan warning

Files changed

File Change
rag-agent/ingest.py SentenceSplitter, .mdx, env config, structured logging
rag-agent/query.py top_k=5, similarity cutoff, source attribution, env config, structured logging
rag-agent/.env.example New — public config template
rag-agent/migrations/001_hnsw_index.sql New — HNSW cosine index (run manually in Supabase once)
RAG_IMPROVEMENT_REPORT.md New — full audit report
SPRINT_PLAN.md New — 4-phase implementation roadmap

Test plan

  • Run python rag-agent/ingest.py — confirm chunk count reflects 512-token splits and .mdx files appear
  • Run python rag-agent/query.py "how do I configure multi agents on openclaw" — confirm answer + sources printed
  • Run again with LOG_LEVEL=DEBUG — confirm verbose output
  • Run HNSW migration SQL in Supabase editor — confirm no more cosine index warning on next query

🤖 Generated with Claude Code

johansabent and others added 4 commits March 13, 2026 01:25
- Add .agent/ to .gitignore (dev tooling, not part of committed source)
- Add cache dirs (.mypy_cache, .ruff_cache, .qodo) and /pr_comments.json
- README documents .agent/ in structure map and What Lives Here section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…SW migration

- Fix SentenceSplitter: wire chunk_size=512, overlap=64 via transformations=[]
- Add .mdx to ingestion file extensions (northflank, railway, render install docs)
- Raise similarity_top_k from default 2 → 5
- Add SimilarityPostprocessor with cutoff=0.65 to filter low-confidence hits
- Add source attribution: prints [score] file_name for each retrieved node
- Move all hardcoded values (models, dims, collection, batch size, top-k) to .env
- Replace print() with structured logging; level controlled by LOG_LEVEL env var
- Add .env.example template (no secrets)
- Add migrations/001_hnsw_index.sql (HNSW cosine index, run once in Supabase)
- Add RAG_IMPROVEMENT_REPORT.md and SPRINT_PLAN.md project docs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 17, 2026 05:48

Copilot AI 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.

Pull request overview

Adds a substantial OpenClaw documentation corpus and repo onboarding materials intended to serve as an interchangeable knowledge base for the RAG app.

Changes:

  • Introduces a large docs/ corpus (concepts, CLI, channels, automation, reference) plus DNS/CNAME.
  • Adds i18n glossary assets and documentation for the docs-i18n workflow.
  • Rewrites root README.md and adds AGENTS.md to define repo structure and operational guidelines.

Reviewed changes

Copilot reviewed 103 out of 425 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
docs/concepts/markdown-formatting.md New concepts doc describing Markdown IR + chunking/render pipeline.
docs/concepts/features.md New features overview page.
docs/concepts/context.md New concepts doc explaining “context” and inspection commands.
docs/concepts/compaction.md New compaction behavior/config documentation.
docs/concepts/architecture.md New gateway architecture overview doc.
docs/concepts/agent.md New agent runtime/workspace/bootstrap documentation.
docs/concepts/agent-workspace.md New detailed agent workspace and backup guidance.
docs/concepts/agent-loop.md New agent loop lifecycle and streaming doc.
docs/cli/webhooks.md New CLI reference for openclaw webhooks.
docs/cli/voicecall.md New CLI reference for openclaw voicecall.
docs/cli/update.md New CLI reference for update workflow and options.
docs/cli/uninstall.md New CLI reference for uninstall workflow.
docs/cli/tui.md New CLI reference for the terminal UI.
docs/cli/system.md New CLI reference for system events/heartbeat/presence.
docs/cli/status.md New CLI reference for status diagnostics.
docs/cli/skills.md New CLI reference for skills inspection.
docs/cli/setup.md New CLI reference for setup initialization.
docs/cli/sessions.md New CLI reference for session listing/cleanup including JSON shapes.
docs/cli/security.md New CLI reference for security audit/fix checks.
docs/cli/secrets.md New CLI reference for SecretRef lifecycle (reload/audit/configure/apply).
docs/cli/sandbox.md New CLI reference for sandbox commands and usage patterns.
docs/cli/reset.md New CLI reference for reset workflow.
docs/cli/qr.md New CLI reference for iOS pairing QR/setup code generation.
docs/cli/plugins.md New CLI reference for plugin management.
docs/cli/pairing.md New CLI reference for pairing flows.
docs/cli/onboard.md New CLI reference for interactive/non-interactive onboarding.
docs/cli/nodes.md New CLI reference for node management and invocation.
docs/cli/node.md New CLI reference for headless node host command surface.
docs/cli/models.md New CLI reference for model status/list/set/scan and auth probes.
docs/cli/memory.md New CLI reference for memory plugin status/index/search.
docs/cli/logs.md New CLI reference for tailing gateway logs via RPC.
docs/cli/hooks.md New CLI reference for installing/enabling/updating hooks.
docs/cli/health.md New CLI reference for gateway health checks.
docs/cli/gateway.md New CLI reference for gateway run/query/service/discovery commands.
docs/cli/doctor.md New CLI reference for doctor checks and repair behaviors.
docs/cli/docs.md New CLI reference for docs search.
docs/cli/dns.md New CLI reference for wide-area discovery DNS helpers.
docs/cli/directory.md New CLI reference for directory lookups and ID formats.
docs/cli/devices.md New CLI reference for device pairing/token management.
docs/cli/dashboard.md New CLI reference for opening the Control UI.
docs/cli/daemon.md New CLI reference for legacy daemon alias.
docs/cli/cron.md New CLI reference for cron job behavior and edits.
docs/cli/configure.md New CLI reference for interactive configuration wizard.
docs/cli/config.md New CLI reference for config get/set/unset/validate.
docs/cli/completion.md New CLI reference for shell completion generation/install.
docs/cli/clawbot.md New CLI reference for legacy clawbot alias namespace.
docs/cli/channels.md New CLI reference for channels list/status/add/remove/capabilities.
docs/cli/browser.md New CLI reference for browser control, profiles, and relay workflows.
docs/cli/backup.md New CLI reference for backup create/verify behavior and caveats.
docs/cli/approvals.md New CLI reference for exec approvals management.
docs/cli/agents.md New CLI reference for agent lifecycle, bindings, and identity.
docs/cli/agent.md New CLI reference for one-shot agent turns via Gateway.
docs/cli/acp.md New CLI reference for ACP bridge usage and IDE integrations.
docs/ci.md New overview of CI scoping/jobs and local equivalents.
docs/channels/zalouser.md New channel doc for Zalo personal account plugin.
docs/channels/zalo.md New channel doc for Zalo Bot API plugin.
docs/channels/troubleshooting.md New per-channel troubleshooting ladder and failure signatures.
docs/channels/tlon.md New channel doc for Tlon/Urbit plugin including auth and policies.
docs/channels/synology-chat.md New channel doc for Synology Chat plugin setup and security notes.
docs/channels/pairing.md New pairing concept doc (DM pairing + node pairing).
docs/channels/nostr.md New channel doc for Nostr DM plugin setup and policies.
docs/channels/nextcloud-talk.md New channel doc for Nextcloud Talk plugin setup and controls.
docs/channels/location.md New doc describing normalized location parsing and context fields.
docs/channels/line.md New channel doc for LINE plugin configuration and webhook requirements.
docs/channels/irc.md New channel doc for IRC plugin setup and access/mention gating.
docs/channels/index.md New channel index listing supported channel surfaces.
docs/channels/group-messages.md New WhatsApp group behavior and config documentation.
docs/channels/channel-routing.md New routing/session-key documentation and precedence rules.
docs/brave-search.md New Brave Search API setup doc for web_search.
docs/automation/webhook.md New webhook ingress docs including auth and session-key policy.
docs/automation/troubleshooting.md New automation troubleshooting ladder for cron/heartbeat.
docs/automation/poll.md New polls doc covering CLI/RPC/tool differences by channel.
docs/automation/auth-monitoring.md New auth expiry monitoring guidance via models status --check.
docs/auth-credential-semantics.md New credential resolution semantics reference (no frontmatter).
docs/CNAME Adds docs site CNAME.
docs/.i18n/glossary.zh-CN.json Adds zh-CN glossary term mappings.
docs/.i18n/glossary.ja-JP.json Adds ja-JP glossary term mappings.
docs/.i18n/README.md Documents i18n glossary/TM assets and expected formats.
README.md Rewrites repo README for DOC-KB-RAG structure and usage.
AGENTS.md Adds agent guidelines for working within this repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread docs/ci.md
Comment thread docs/cli/sandbox.md Outdated
Comment thread docs/auth-credential-semantics.md
Comment thread docs/.i18n/README.md
Comment thread docs/cli/acp.md Outdated
Comment thread README.md

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 752e92a163

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

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

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rag-agent/.env.example Outdated
Comment thread rag-agent/migrations/001_hnsw_index.sql
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the RAG system's reliability, retrieval quality, and maintainability. It introduces foundational improvements by optimizing document processing, refining retrieval mechanisms, and centralizing system configurations. The changes aim to make the RAG agent more robust and efficient for handling interchangeable documentation sets.

Highlights

  • SentenceSplitter Configuration: Explicitly configured SentenceSplitter with chunk_size=512 and chunk_overlap=64, addressing its previous unused state.
  • MDX File Ingestion: Enabled ingestion of .mdx files, including install/northflank.mdx, install/railway.mdx, and install/render.mdx.
  • Retriever Candidate Count: Increased similarity_top_k from 2 to 5 to allow the retriever to consider more candidate chunks.
  • Relevance Cutoff: Implemented a SimilarityPostprocessor with a cutoff of 0.65 to prevent LLM calls when no relevant chunks are found.
  • Source Attribution: Added source attribution to query responses, displaying [score] file_name for each retrieved node.
  • Centralized Configuration: Migrated hardcoded model names, dimensions, collection, batch size, and top-k values to .env, and added an .env.example template.
  • Structured Logging: Replaced print() statements with Python's logging module, with level control via the LOG_LEVEL environment variable.
  • HNSW Index Migration: Provided a SQL migration script (migrations/001_hnsw_index.sql) to create an HNSW index in Supabase, resolving full-table-scan warnings.
Changelog
  • .gitignore
    • Added new entries for agent coordination framework, cache directories, and temporary generated files.
  • AGENTS.md
    • Added guidelines for AI agents working within the codebase, covering scope, modularity, CLI execution, safety, and documentation.
  • RAG_IMPROVEMENT_REPORT.md
    • Added a detailed report outlining issues and an improvement plan for the RAG system.
  • README.md
    • Updated the project README with a new structure map, working directory rules, quick start, configuration, main commands, and maintenance sections.
  • SPRINT_PLAN.md
    • Added a multi-phase implementation roadmap for RAG MCP Server improvements.
  • docs/.i18n/README.md
    • Added documentation for i18n assets, glossary format, and notes.
  • docs/.i18n/glossary.ja-JP.json
    • Added Japanese glossary terms for documentation translation.
  • docs/.i18n/glossary.zh-CN.json
    • Added Chinese glossary terms for documentation translation.
  • docs/CNAME
    • Added CNAME file for custom domain docs.openclaw.ai.
  • docs/assets/pixel-lobster.svg
    • Added an SVG asset for a pixel lobster.
  • docs/assets/showcase/padel-cli.svg
    • Added an SVG asset for a padel-cli availability output showcase.
  • docs/assets/showcase/roborock-status.svg
    • Added an SVG asset for a Roborock status output showcase.
  • docs/assets/sponsors/blacksmith.svg
    • Added an SVG asset for the Blacksmith sponsor logo.
  • docs/assets/sponsors/convex.svg
    • Added an SVG asset for the Convex sponsor logo.
  • docs/assets/sponsors/openai.svg
    • Added an SVG asset for the OpenAI sponsor logo.
  • docs/assets/sponsors/vercel.svg
    • Added an SVG asset for the Vercel sponsor logo.
  • docs/auth-credential-semantics.md
    • Added documentation defining auth credential eligibility and resolution semantics.
  • docs/automation/auth-monitoring.md
    • Added documentation for auth monitoring, including CLI checks and optional scripts.
  • docs/automation/cron-jobs.md
    • Added comprehensive documentation for cron jobs, covering usage, storage, retry policy, configuration, and troubleshooting.
  • docs/automation/cron-vs-heartbeat.md
    • Added guidance for choosing between heartbeat and cron jobs for automation.
  • docs/automation/gmail-pubsub.md
    • Added documentation for integrating Gmail Pub/Sub with OpenClaw webhooks.
  • docs/automation/hooks.md
    • Added extensive documentation for hooks, covering discovery, structure, event types, custom hooks, configuration, and troubleshooting.
  • docs/automation/poll.md
    • Added documentation for poll sending via gateway and CLI across various channels.
  • docs/automation/troubleshooting.md
    • Added troubleshooting guide for cron and heartbeat scheduling and delivery issues.
  • docs/automation/webhook.md
    • Added documentation for webhook ingress, endpoints, security, and examples.
  • docs/brave-search.md
    • Added documentation for Brave Search API integration for web_search.
  • docs/channels/bluebubbles.md
    • Added detailed documentation for BlueBubbles iMessage integration.
  • docs/channels/broadcast-groups.md
    • Added documentation for experimental broadcast groups in WhatsApp.
  • docs/channels/channel-routing.md
    • Added documentation for channel routing rules and session key shapes.
  • docs/channels/discord.md
    • Added comprehensive documentation for Discord bot support.
  • docs/channels/feishu.md
    • Added detailed documentation for Feishu bot integration.
  • docs/channels/googlechat.md
    • Added detailed documentation for Google Chat app support.
  • docs/channels/group-messages.md
    • Added documentation for WhatsApp group message handling.
  • docs/channels/groups.md
    • Added comprehensive documentation for group chat behavior across various messaging platforms.
  • docs/channels/imessage.md
    • Added documentation for legacy iMessage support via imsg.
  • docs/channels/index.md
    • Added an index page listing all supported chat channels.
  • docs/channels/irc.md
    • Added documentation for IRC channel integration.
  • docs/channels/line.md
    • Added documentation for LINE Messaging API plugin.
  • docs/channels/location.md
    • Added documentation for channel location parsing.
  • docs/channels/matrix.md
    • Added detailed documentation for Matrix plugin support.
  • docs/channels/mattermost.md
    • Added detailed documentation for Mattermost plugin support.
  • docs/channels/msteams.md
    • Added detailed documentation for Microsoft Teams plugin support.
  • docs/channels/nextcloud-talk.md
    • Added detailed documentation for Nextcloud Talk plugin support.
  • docs/channels/nostr.md
    • Added detailed documentation for Nostr DM channel plugin.
  • docs/channels/pairing.md
    • Added documentation for pairing overview and approval steps.
  • docs/channels/signal.md
    • Added detailed documentation for Signal support via signal-cli.
  • docs/channels/slack.md
    • Added detailed documentation for Slack app integration.
  • docs/channels/synology-chat.md
    • Added detailed documentation for Synology Chat plugin.
  • docs/channels/telegram.md
    • Added detailed documentation for Telegram bot support.
  • docs/channels/tlon.md
    • Added detailed documentation for Tlon/Urbit plugin support.
  • docs/channels/troubleshooting.md
    • Added channel-level troubleshooting guide.
  • docs/channels/twitch.md
    • Added detailed documentation for Twitch chat plugin.
  • docs/channels/whatsapp.md
    • Added detailed documentation for WhatsApp Web channel support.
  • docs/channels/zalo.md
    • Added detailed documentation for Zalo Bot API plugin.
  • docs/channels/zalouser.md
    • Added detailed documentation for Zalo Personal unofficial plugin.
  • docs/ci.md
    • Added documentation for the CI pipeline, job overview, and local equivalents.
  • docs/cli/acp.md
    • Added CLI reference for the acp command.
  • docs/cli/agent.md
    • Added CLI reference for the agent command.
  • docs/cli/agents.md
    • Added CLI reference for the agents command.
  • docs/cli/approvals.md
    • Added CLI reference for the approvals command.
  • docs/cli/backup.md
    • Added CLI reference for the backup command.
  • docs/cli/browser.md
    • Added CLI reference for the browser command.
  • docs/cli/channels.md
    • Added CLI reference for the channels command.
  • docs/cli/clawbot.md
    • Added CLI reference for the clawbot command.
  • docs/cli/completion.md
    • Added CLI reference for the completion command.
  • docs/cli/config.md
    • Added CLI reference for the config command.
  • docs/cli/configure.md
    • Added CLI reference for the configure command.
  • docs/cli/cron.md
    • Added CLI reference for the cron command.
  • docs/cli/daemon.md
    • Added CLI reference for the daemon command.
  • docs/cli/dashboard.md
    • Added CLI reference for the dashboard command.
  • docs/cli/devices.md
    • Added CLI reference for the devices command.
  • docs/cli/directory.md
    • Added CLI reference for the directory command.
  • docs/cli/dns.md
    • Added CLI reference for the dns command.
  • docs/cli/docs.md
    • Added CLI reference for the docs command.
  • docs/cli/doctor.md
    • Added CLI reference for the doctor command.
  • docs/cli/gateway.md
    • Added CLI reference for the gateway command.
  • docs/cli/health.md
    • Added CLI reference for the health command.
  • docs/cli/hooks.md
    • Added CLI reference for the hooks command.
  • docs/cli/index.md
    • Added an index page for CLI reference.
  • docs/cli/logs.md
    • Added CLI reference for the logs command.
  • docs/cli/memory.md
    • Added CLI reference for the memory command.
  • docs/cli/message.md
    • Added CLI reference for the message command.
  • docs/cli/models.md
    • Added CLI reference for the models command.
  • docs/cli/node.md
    • Added CLI reference for the node command.
  • docs/cli/nodes.md
    • Added CLI reference for the nodes command.
  • docs/cli/onboard.md
    • Added CLI reference for the onboard command.
  • docs/cli/pairing.md
    • Added CLI reference for the pairing command.
  • docs/cli/plugins.md
    • Added CLI reference for the plugins command.
  • docs/cli/qr.md
    • Added CLI reference for the qr command.
  • docs/cli/reset.md
    • Added CLI reference for the reset command.
  • docs/cli/sandbox.md
    • Added CLI reference for the sandbox command.
  • docs/cli/secrets.md
    • Added CLI reference for the secrets command.
  • docs/cli/security.md
    • Added CLI reference for the security command.
  • docs/cli/sessions.md
    • Added CLI reference for the sessions command.
  • docs/cli/setup.md
    • Added CLI reference for the setup command.
  • docs/cli/skills.md
    • Added CLI reference for the skills command.
  • docs/cli/status.md
    • Added CLI reference for the status command.
  • docs/cli/system.md
    • Added CLI reference for the system command.
  • docs/cli/tui.md
    • Added CLI reference for the tui command.
  • docs/cli/uninstall.md
    • Added CLI reference for the uninstall command.
  • docs/cli/update.md
    • Added CLI reference for the update command.
  • docs/cli/voicecall.md
    • Added CLI reference for the voicecall command.
  • docs/cli/webhooks.md
    • Added CLI reference for the webhooks command.
  • docs/concepts/agent-loop.md
    • Added documentation for the agent loop lifecycle.
  • docs/concepts/agent-workspace.md
    • Added documentation for the agent workspace.
  • docs/concepts/agent.md
    • Added documentation for the agent runtime.
  • docs/concepts/architecture.md
    • Added documentation for the Gateway architecture.
  • docs/concepts/compaction.md
    • Added documentation for context window and compaction.
  • docs/concepts/context.md
    • Added documentation explaining agent context.
  • docs/concepts/features.md
    • Added a list of OpenClaw features.
  • docs/concepts/markdown-formatting.md
    • Added documentation for Markdown formatting pipeline.
Activity
  • Initial commit of foundational RAG improvements.
  • Self-review completed, addressing initial formatting and clarity.
  • Test plan executed successfully, confirming core functionalities.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new RAG (Retrieval-Augmented Generation) system, including comprehensive guidelines for AI agents, a detailed improvement report outlining critical to low-priority issues with a prioritized plan, and a significantly updated README.md to reflect the new project structure and usage. It also adds new documentation for various CLI commands (acp, agent, agents, approvals, backup, browser, channels, clawbot, completion, config, configure, cron, daemon, dashboard, devices, directory, dns, docs, gateway, health, hooks, logs, memory, message, models, node, nodes, onboard, pairing, plugins, qr, reset, sandbox, secrets, security, sessions, setup, skills, status, system, tui, uninstall, update, voicecall, webhooks), agent concepts (agent loop, workspace, compaction, context, features, markdown formatting, models, multi-agent, oauth, queue, sandbox, secrets, session, session pruning, streaming, system prompt, timezone, token use, tools, usage tracking), channel specifics (BlueBubbles, broadcast groups, channel routing, Discord, Feishu, Google Chat, group messages, groups, iMessage, index, IRC, LINE, location, Matrix, Mattermost, Microsoft Teams, Nextcloud Talk, Nostr, pairing, Signal, Slack, Synology Chat, Telegram, Tlon, troubleshooting, Twitch, WhatsApp, Zalo, Zalo Personal), and various assets like SVG icons and glossary files for internationalization. Additionally, it updates the .gitignore to exclude new cache and development files, and adds a SPRINT_PLAN.md for future RAG system enhancements.

- docs/cli/sandbox.md: convert read_when from scalar string to YAML list
- docs/cli/acp.md: fix article — 'a OpenClaw' → 'an OpenClaw'
- docs/.i18n/README.md: wrap glossary JSON example in array (text already said "array of entries")
- docs/auth-credential-semantics.md: add missing frontmatter (summary, read_when)
- rag-agent/.env.example: align API key placeholder with runtime sentinel (YOUR_API_KEY_HERE)
- rag-agent/migrations/001_hnsw_index.sql: add note + parameterized DO block for non-default COLLECTION_NAME

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@johansabent

Copy link
Copy Markdown
Owner Author

@copilot-pull-request-reviewer @chatgpt-codex-connector[bot] @gemini-code-assist[bot] /review I have addressed all feedback. Summary of fixes:

  • docs/cli/sandbox.md: read_when converted from scalar to YAML list
  • docs/cli/acp.md: 'a OpenClaw' → 'an OpenClaw'
  • docs/.i18n/README.md: glossary JSON example wrapped in array
  • docs/auth-credential-semantics.md: frontmatter added (summary, read_when)
  • rag-agent/.env.example: API key placeholder aligned with runtime sentinel (YOUR_API_KEY_HERE)
  • rag-agent/migrations/001_hnsw_index.sql: added note + parameterized DO block for non-default COLLECTION_NAME

@johansabent
johansabent merged commit 4e22946 into main Mar 17, 2026
2 checks passed
@johansabent
johansabent deleted the feat/phase1-foundation branch March 17, 2026 06:17
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

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

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces comprehensive documentation for the DOC-KB-RAG system, including agent guidelines, a detailed RAG improvement report outlining critical to low-priority issues with fixes and research findings, and a significantly updated README.md for better clarity and structure. It also adds extensive documentation for automation features like cron jobs, heartbeat scheduling, webhook integration (including Gmail Pub/Sub), and various chat channels (Discord, Feishu, Google Chat, iMessage, IRC, LINE, Matrix, Mattermost, MS Teams, Nextcloud Talk, Nostr, Signal, Slack, Telegram, Tlon, Twitch, WhatsApp, Zalo, Zalo Personal), covering their setup, access control, capabilities, and troubleshooting. New CLI command documentation is provided for acp, agent, agents, approvals, backup, browser, channels, clawbot, completion, config, configure, cron, daemon, dashboard, devices, directory, dns, docs, doctor, gateway, health, hooks, logs, memory, message, models, node, nodes, onboard, pairing, plugins, qr, reset, sandbox, secrets, security, sessions, setup, skills, status, system, tui, uninstall, update, and webhooks. Additionally, core concepts like agent loop, agent workspace, architecture, context, compaction, markdown formatting, multi-agent routing, OAuth, queueing, sandbox, secrets management, session management, session pruning, streaming, system prompt, timezone handling, token use, and usage tracking are thoroughly documented. The .gitignore file is updated to exclude new cache and agent-related directories, and various SVG assets for logos and showcase examples are added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants