Skip to content

docs: surface bounded embedding activation - #1533

Merged
Sinity merged 1 commit into
masterfrom
feature/docs/embedding-activation-actions
May 25, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/docs/embedding-activation-actions

Conversation

@Sinity

@Sinity Sinity commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

polylogue embed status now prints explicit bounded next actions for semantic-search activation and first catch-up. docs/search.md documents the same activation flow, including the distinction between fast conversation-count windows and hard live-count message windows.

Problem

After #1531/#1532, the mechanics for bounded embedding catch-up and daemon progress existed, but the operator still had to infer the safe first commands from status fields and docs spread across search/architecture. On the live archive this matters: embeddings are disabled, the key is present, and there are 7,951 pending conversations, so the next step must be obvious and bounded.

Solution

Embedding status now prints:

  • activation command when config is disabled,
  • bounded preflight command,
  • bounded backfill command,
  • daemon-enabled wording when the daemon stage is already enabled.

Search docs now include the activation/catch-up sequence and explicitly state that --max-messages uses live counts because it is a hard cap, while --max-conversations may use materialized stats for speed.

Verification

  • pytest -q tests/unit/cli/test_embed_status_fast.py --tb=short — 8 passed.
  • ruff format --check polylogue/cli/shared/embed_stats.py tests/unit/cli/test_embed_status_fast.py — passed.
  • ruff check polylogue/cli/shared/embed_stats.py tests/unit/cli/test_embed_status_fast.py — passed.
  • python -m mypy polylogue/cli/shared/embed_stats.py tests/unit/cli/test_embed_status_fast.py — passed.
  • POLYLOGUE_FORCE_PLAIN=1 timeout 20 polylogue embed status — live read-only smoke showed the new activation/preflight/backfill lines against the real archive.
  • devtools render-all --check — passed after refreshing the docs site cache.
  • devtools verify --quick — passed.

Ref #1503

Problem: semantic embedding status exposed configuration and backlog state, but did not tell the operator the next safe bounded command. That left live activation and first catch-up steps implicit even after bounded preflight/backfill support landed.

What changed: embed status now prints bounded preflight/backfill next actions, distinguishing daemon-enabled catch-up from the disabled pre-enable path. Search docs now describe the bounded activation and catch-up workflow, including why max-messages uses live counts.

Verification: pytest -q tests/unit/cli/test_embed_status_fast.py --tb=short; ruff format --check polylogue/cli/shared/embed_stats.py tests/unit/cli/test_embed_status_fast.py; ruff check polylogue/cli/shared/embed_stats.py tests/unit/cli/test_embed_status_fast.py; python -m mypy polylogue/cli/shared/embed_stats.py tests/unit/cli/test_embed_status_fast.py; POLYLOGUE_FORCE_PLAIN=1 timeout 20 polylogue embed status
@coderabbitai

coderabbitai Bot commented May 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've used your available PR reviews for now.

Your plan includes 1 review of capacity. Refill in 25 minutes and 52 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

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

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ed80c13a-6ead-4507-866d-d934b2f4277b

📥 Commits

Reviewing files that changed from the base of the PR and between f727678 and e65e0a4.

📒 Files selected for processing (3)
  • docs/search.md
  • polylogue/cli/shared/embed_stats.py
  • tests/unit/cli/test_embed_status_fast.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/embedding-activation-actions

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 and usage tips.

@Sinity
Sinity merged commit c350089 into master May 25, 2026
7 checks passed
@Sinity
Sinity deleted the feature/docs/embedding-activation-actions branch May 25, 2026 01:47
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