Repository navigation
test(scenarios): prove demo archive convergence (#1843) - #1940
Conversation
Problem: #1843 still lacked end-to-end evidence that the landed demo fixture world could materialize through the archive ingest path into deterministic stored rows without private host path leakage. What changed: add a focused scenario test that writes the demo corpus specs, ingests them through parse_sources_archive into isolated source/index tiers, verifies expected origins, session IDs, timestamps, searchability, path hygiene, and repeat-ingest idempotent row counts. Verification: devtools test tests/unit/scenarios/test_demo_archive_convergence.py; devtools verify --quick.
|
Warning Review limit reached
More reviews will be available in 44 minutes and 9 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1783e62dd1
ℹ️ 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".
## Summary Regenerates `docs/topology-status.md` after the #1940/#1941 batch merges left the generated count stale. ## Problem A post-merge `devtools verify --quick` on current master failed only `render-all --check`, with `render-topology-status` reporting `docs/topology-status.md out of sync`. ## Solution Ran `devtools render-topology-status` and committed the generated count update. ## Verification - Before fix: `devtools verify --quick` -> exit_code 1; only `render-all` failed due stale `docs/topology-status.md`. - After fix: `devtools verify --quick` -> exit_code 0.
## Summary Adds a README-ready demo workflow transcript that documents the current `polylogue import --demo` path honestly and ties the runnable examples to the deterministic archive-convergence proof. ## Problem #1843 had fixture specs, demo import scheduling, parser hygiene, and archive convergence tests, but the README still lacked a clear command sequence a new user could follow against an isolated demo archive. ## Solution Documented an isolated demo environment, init, daemon startup, `polylogue import --demo`, status, stats, search, and read commands. The docs explicitly state that `import --demo` schedules daemon ingest rather than performing synchronous in-process convergence; the deterministic proof remains the #1940 `parse_sources_archive()` test until live daemon demo evidence lands. Issue slice: README-ready demo command transcript/evidence. Files inspected: README demo sections, `docs/generate.md`, doc-command verification surface. Files changed: `README.md`, `docs/generate.md`, `docs/topology-status.md`. Old surface removed or retained: retained `polylogue import --demo` as daemon scheduling. Contracts/tests added: doc-command coverage via existing verifier. Generated artifacts updated: topology status. Known caveats / SPEC_MISMATCH: `polylogue import --demo` is documented as scheduling, not synchronous archive convergence; search/read examples are truthful after daemon convergence. Follow-up intentionally not included: true daemon e2e convergence capture and #1883 KV overlay examples. ## Verification - `devtools verify-doc-commands` -> passed, 98 doc files scanned. - `devtools render-all --check` -> passed. - `devtools test tests/unit/devtools/test_verify_doc_commands.py` -> 20 passed. - `devtools verify --quick` -> exit_code 0. Ref #1843
## Summary Complete #1843's README-ready demo transcript by adding the missing `analyze` example alongside the existing demo import, status, stats, search, and read commands. ## Problem The #1843 acceptance criteria require the demo archive to support search/read/analyze examples. The current README and `docs/generate.md` transcript showed search and read after daemon convergence, but not an analyze command. Closing the issue without this would leave a literal AC gap. ## Solution Add `polylogue find "pytest" then analyze --facets` to both the README quick transcript and the detailed generate/demo page. Update the async import caveat so it consistently says search/read/analyze examples become meaningful after daemon convergence. ### AC matrix | AC | Current state | | --- | --- | | A new user can run demo import from a clean checkout. | Satisfied by `polylogue import --demo` in `polylogue/cli/commands/import_command.py`; tested by `tests/unit/cli/test_import.py`; documented in `README.md` and `docs/generate.md`. | | Demo archive supports search/read/analyze examples. | Satisfied here: README/docs now show `polylogue "pytest" list`, `polylogue find "pytest" then read --view messages`, and `polylogue find "pytest" then analyze --facets`. The archive-level `pytest` search/read evidence is pinned by `tests/unit/scenarios/test_demo_archive_convergence.py`; analyze is the registered aggregate verb over the matched result set. | | Fixture world is committed and documented. | Satisfied by `build_demo_corpus_specs()` and docs in `docs/generate.md`; prior PRs #1934, #1935, #1936, #1937, #1940, #1943, #1950, #1953, and #1975 recorded the fixture, live daemon path, convergence proof, and overlay evidence. | | Tests validate demo output without relying on dev machine state. | Satisfied by isolated archive/config roots in the demo import and convergence tests; #1975 additionally proves deterministic user overlays and private-path hygiene. | | No private data / no host-specific absolute paths. | Satisfied by the relative fixture-path tests and convergence assertions in `tests/unit/scenarios/test_corpus.py` and `tests/unit/scenarios/test_demo_archive_convergence.py`. | | Known tags/notes/KV once #1883 lands. | Satisfied by #1975: `seed_demo_user_overlays()` stores the `pytest-triage` tag, mark, blackboard note, saved query, and typed tag/decision assertions in `user.db` after convergence. | ### Explicit decisions `polylogue import --demo` remains asynchronous daemon scheduling. It does not synchronously seed user overlays because the target sessions may not exist yet. Overlay seeding stays as deterministic repository/release evidence after convergence, as documented by #1975. ## Verification - `nix develop --command devtools verify-doc-commands` -> `99 doc files scanned, no stale commands`. - `nix develop --command devtools verify --quick` -> `exit_code 0`. - Pre-push `devtools verify --quick` -> `exit_code 0`. Closes #1843
|
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. |
Summary
Adds an end-to-end demo fixture convergence test proving the approved fixture world can materialize into isolated archive storage and remain deterministic across repeat ingest.
Problem
#1843 had fixture specs,
polylogue import --demoscheduling, docs, and parser proof, but still lacked archive-level evidence that the demo world converges into stored sessions/searchable archive rows without private machine state.Solution
Added a focused scenario test that materializes
build_demo_corpus_specs(), ingests it throughparse_sources_archive()into isolatedsource.db/index.db, asserts deterministic session IDs/origins/timestamps/counts/source paths, proves search over the demo archive, checks for private path leakage, and reruns ingest to prove idempotent row counts.Issue slice: end-to-end demo archive convergence evidence.
Files inspected: demo corpus specs, archive parse/ingest helpers,
ArchiveStoresearch/read paths.Files changed:
tests/unit/scenarios/test_demo_archive_convergence.py.Old surface removed or retained: retained
polylogue import --demoas scheduling surface.Contracts/tests added: demo materialization, archive ingest/search, path-hygiene, and idempotency proof.
Generated artifacts updated: none.
Known caveats / SPEC_MISMATCH:
polylogue import --demoschedules daemon ingestion; this test proves convergence through existing archive ingest helpers rather than claiming the CLI scheduling command itself runs in-process convergence.Follow-up intentionally not included: README command transcript against a daemon-running demo archive, and #1883-backed demo notes/KV overlays.
Verification
devtools test tests/unit/scenarios/test_demo_archive_convergence.py-> 1 passed.devtools verify --quick-> exit_code 0.Ref #1843