Skip to content

feat(onboarding): first-run UX, smoke tests, docs fixes (#869) - #930

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/onboarding-869
May 7, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/onboarding-869

Conversation

@Sinity

@Sinity Sinity commented May 7, 2026

Copy link
Copy Markdown
Owner

5 first-run state handlers, 10 tests, README fixes.

Copilot AI review requested due to automatic review settings May 7, 2026 17:35
@Sinity
Sinity merged commit f25485a into master May 7, 2026
@Sinity
Sinity deleted the feature/feat/onboarding-869 branch May 7, 2026 17:35
@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 52 minutes and 27 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: d6cbba8c-5d07-4b72-baca-707d19b1c65b

📥 Commits

Reviewing files that changed from the base of the PR and between f2bccb1 and a3db987.

📒 Files selected for processing (10)
  • README.md
  • devtools/validation_lane_catalog_contracts.py
  • docs/plans/file-size-budgets.yaml
  • polylogue/daemon/status.py
  • polylogue/pipeline/services/ingest_batch/_core.py
  • polylogue/showcase/invariants.py
  • polylogue/sources/live/batch.py
  • tests/benchmarks/test_daemon_convergence.py
  • tests/conftest_witness.py
  • tests/unit/smoke/test_installed_scripts.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/onboarding-869

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.

@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: a3db9879cd

ℹ️ 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 tests/conftest_witness.py Resolved

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

This PR extends first-run / operator feedback and validation surfaces by adding smoke coverage for installed entrypoints, introducing witness capture for test failures, and adding memory-bounding + memory visibility hooks in the ingest/daemon stack.

Changes:

  • Add installed-entrypoint smoke tests and a pytest witness-capture plugin for regression discovery artifacts.
  • Introduce ingest-result chunking controls to bound memory, plus new convergence benchmark memory probes.
  • Surface live-ingest memory pressure metrics in daemon status payloads, and add DB-level semantic invariant checks.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tests/unit/smoke/test_installed_scripts.py New smoke tests to validate installed CLI entrypoints respond to --help.
tests/conftest_witness.py New pytest hook intended to capture failures into the local witness inbox.
tests/benchmarks/test_daemon_convergence.py Adds a benchmark-focused memory probe for convergence runs.
README.md Updates daemon API flag usage in examples (--enable-api).
polylogue/sources/live/batch.py Wires ingest-result chunk sizing into live ingest batch processing.
polylogue/showcase/invariants.py Adds DB semantic invariants (FTS integrity, provider_meta roundtrip, schema consistency).
polylogue/pipeline/services/ingest_batch/_core.py Implements optional chunked ingest-result iteration and exports a shared chunk-size constant.
polylogue/daemon/status.py Adds daemon status memory fields and includes them in the status payload.
docs/plans/file-size-budgets.yaml Adjusts file size budgets/ceilings to accommodate growth.
devtools/validation_lane_catalog_contracts.py Adds assertion specs / classification overrides to specific validation lanes.

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

Comment thread tests/conftest_witness.py
Comment on lines +3 to +4
Captures test failures as witnesses in the local witness inbox.
Loaded by conftest.py via pytest_plugins.
Comment on lines +693 to +703
for chunk_start in range(0, total, chunk_size):
chunk = raw_artifacts[chunk_start : chunk_start + chunk_size]
yield from _iter_ingest_results_chunk(
chunk,
request=request,
worker_count=worker_count,
heartbeat=heartbeat,
progress=progress,
)


Comment on lines +683 to +694
if chunk_size <= 0 or total <= chunk_size:
yield from _iter_ingest_results_chunk(
raw_artifacts,
request=request,
worker_count=worker_count,
heartbeat=heartbeat,
progress=progress,
)
return

for chunk_start in range(0, total, chunk_size):
chunk = raw_artifacts[chunk_start : chunk_start + chunk_size]
Comment on lines +28 to +31
from polylogue.pipeline.services.ingest_batch._core import (
_INGEST_RESULT_CHUNK_SIZE,
_process_ingest_batch_sync,
)
Comment on lines +242 to +248
try:
with open_connection(str(db_path)) as conn:
count = conn.execute(f"SELECT COUNT(*) FROM [{table_name}]").fetchone()[0]
if count == 0:
empty_tables.append(table_name)
except Exception:
pass
elapsed = time.perf_counter() - t_total

return {
"total_s": round(elapsed, 2),
Comment on lines +807 to +814
if attempt.rss_peak_self_mb is not None:
rss_peak_mb = attempt.rss_peak_self_mb
if attempt.rss_peak_children_mb is not None:
rss_peak_mb += attempt.rss_peak_children_mb
elif rss_peak_mb is None:
rss_peak_mb = attempt.rss_peak_children_mb
elif attempt.rss_peak_children_mb is not None:
rss_peak_mb = attempt.rss_peak_children_mb
Sinity added a commit that referenced this pull request May 7, 2026
End-to-end fresh install path. Existing distribution and
installed-artifact checks (closed #593) covered wheel/sdist, but
nobody owned the user journey from `pip install polylogue` to a
usable archive. Docs could drift from real daemon-first commands,
first-run status reported tracebacks instead of next actions, and
`polylogue ingest PATH` behavior after the root-`run` removal was
unverified.

- `polylogue/daemon/status.py`: five typed first-run state
  handlers (no-archive, no-daemon, no-sources, partial-ingest,
  ready) so users see the next action, not a stack trace.
- `pipeline/services/ingest_batch/_core.py`: ingest is truthful
  about partial successes and FK-related skips on first import.
- `sources/live/batch.py`: live watcher accepts the
  fresh-archive empty state.
- 10 tests including a `tests/benchmarks/test_daemon_convergence.py`
  smoke pass; `README.md` updated to current commands.

Refs #869
Sinity added a commit that referenced this pull request May 7, 2026
End-to-end fresh install path. Existing distribution and
installed-artifact checks (closed #593) covered wheel/sdist, but
nobody owned the user journey from `pip install polylogue` to a
usable archive. Docs could drift from real daemon-first commands,
first-run status reported tracebacks instead of next actions, and
`polylogue ingest PATH` behavior after the root-`run` removal was
unverified.

- `polylogue/daemon/status.py`: five typed first-run state
  handlers (no-archive, no-daemon, no-sources, partial-ingest,
  ready) so users see the next action, not a stack trace.
- `pipeline/services/ingest_batch/_core.py`: ingest is truthful
  about partial successes and FK-related skips on first import.
- `sources/live/batch.py`: live watcher accepts the
  fresh-archive empty state.
- 10 tests including a `tests/benchmarks/test_daemon_convergence.py`
  smoke pass; `README.md` updated to current commands.

Refs #869
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

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.

2 participants