Skip to content

refactor(daemon): move browser capture under polylogued - #681

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/polylogued-browser-capture
May 2, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/polylogued-browser-capture

Conversation

@Sinity

@Sinity Sinity commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

Moves browser-capture receiver serving and status out of the interactive polylogue CLI and under polylogued browser-capture.

Problem

The root CLI is query-first and should not carry long-running receiver/server modes. polylogue browser-capture serve/status kept a daemon-like browser receiver beside archive query verbs.

Solution

  • Moved the browser-capture Click group from polylogue.cli.commands to polylogue.daemon.browser_capture.
  • Registered it under polylogued browser-capture.
  • Removed root polylogue browser-capture registration and required CLI-surface witness coverage.
  • Updated README and browser-capture docs to use the daemon command.
  • Refreshed generated CLI help, proof catalog, topology, quality, snapshots, and showcase baselines.

Verification

  • ruff format polylogue tests devtools
  • ruff check polylogue tests devtools --fix
  • pytest -q tests/unit/daemon/test_daemon_cli.py tests/unit/browser_capture/test_receiver.py tests/unit/cli/test_click_app.py tests/unit/cli/test_terminal_snapshots.py tests/unit/proof/test_witnesses.py tests/unit/showcase/test_exercise_catalog.py → 100 passed
  • devtools render-all --check
  • devtools verify-topology
  • devtools verify-layering
  • devtools verify-test-ownership
  • mypy polylogue/
  • devtools verify --quick
  • devtools build-package
  • .local/result/bin/polylogued browser-capture --help
  • .local/result/bin/polylogued browser-capture status --format json
  • .local/result/bin/polylogue --plain --help
  • push hook reran devtools verify --quick successfully

Ref #635
Ref #593

Problem: browser-capture serving and status were still root polylogue commands, keeping long-running receiver service mode in the query-first archive CLI.\n\nWhat changed: move the browser-capture Click group to the daemon entrypoint as polylogued browser-capture, remove root CLI registration, refresh generated help/proof/topology/showcase surfaces, and update docs/tests to use the daemon service surface.\n\nVerification: ruff format polylogue tests devtools; ruff check polylogue tests devtools --fix; pytest -q tests/unit/daemon/test_daemon_cli.py tests/unit/browser_capture/test_receiver.py tests/unit/cli/test_click_app.py tests/unit/cli/test_terminal_snapshots.py tests/unit/proof/test_witnesses.py tests/unit/showcase/test_exercise_catalog.py; devtools render-all --check; devtools verify-topology; devtools verify-layering; devtools verify-test-ownership; mypy polylogue/; devtools verify --quick; devtools build-package; .local/result/bin/polylogued browser-capture --help; .local/result/bin/polylogued browser-capture status --format json; .local/result/bin/polylogue --plain --help.\n\nRef #635\nRef #593
Copilot AI review requested due to automatic review settings May 2, 2026 01:01
@coderabbitai

coderabbitai Bot commented May 2, 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 22 minutes and 13 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ 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: 3bcfd618-1716-40fc-a427-ea3c6548d266

📥 Commits

Reviewing files that changed from the base of the PR and between 9370f85 and a32caf6.

📒 Files selected for processing (19)
  • CHANGELOG.md
  • README.md
  • docs/browser-capture.md
  • docs/cli-reference.md
  • docs/plans/topology-target.yaml
  • docs/test-quality-workflows.md
  • docs/verification-catalog.md
  • polylogue/cli/click_command_registration.py
  • polylogue/daemon/browser_capture.py
  • polylogue/daemon/cli.py
  • tests/baselines/showcase/help-browser-capture-serve.txt
  • tests/baselines/showcase/help-browser-capture-status.txt
  • tests/baselines/showcase/help-browser-capture.txt
  • tests/baselines/showcase/help-main.txt
  • tests/data/witnesses/cli-command-surface.json
  • tests/unit/browser_capture/test_receiver.py
  • tests/unit/cli/__snapshots__/test_terminal_snapshots.ambr
  • tests/unit/cli/test_click_app.py
  • tests/unit/daemon/test_daemon_cli.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/polylogued-browser-capture

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
Review rate limit: 0/1 reviews remaining, refill in 22 minutes and 13 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Polylogue Proof Pack

Refs: origin/master..HEAD
Changed paths: 19

Affected Domains

  • architecture_discipline — 2 claim(s), maturity growing
  • docs_media — 0 claim(s), maturity seed
  • spec_completeness — 1 claim(s), maturity seed
  • unclassified — 4 claim(s), maturity seed

Required Gates

  • devtools render-all --check — generated surface or renderer changed
  • devtools verify-manifests — structural manifest changed
  • devtools affected-obligations --path docs/plans/topology-target.yaml — refresh structural obligation routing
  • devtools verify-topology — topology projection changed
  • pytest tests/unit/cli — CLI command surface changed
  • pytest tests/unit/proof/test_evidence_runners.py — CLI proof runners exercise command output
  • devtools render-cli-reference --check — CLI reference is generated from command help
  • devtools verify --quick — full PR gate remains explicit
  • devtools verify — full PR gate remains explicit
  • devtools build-package — deployment readiness gate; run when packaging or release confidence matters
  • nix flake check — deployment readiness gate; run when packaging or release confidence matters

Known Gaps

  • docs_media: docs_media: No scenario for documentation freshness verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], docs_media: README examples and media are not yet generated from executable scenario projections. [owner: docs-media; next: Add executable scenario projection or media integrity gate], docs_media: Screenshots and VHS media have no committed nonblank/readability verification. [owner: docs-media; next: Add executable scenario projection or media integrity gate]

Oracle / Cost

  • oracle mix: {"construction_sanity": 171, "drift_check": 2}
  • cost tier: {"static": 168, "unit": 5}
  • stale evidence: 173
  • manual review cells: 0

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

Moves the long-running browser-capture receiver CLI surface off the query-first polylogue CLI and under the daemon-focused polylogued entrypoint, aligning CLI responsibilities with the project’s service vs. query separation.

Changes:

  • Registered browser-capture under polylogued and removed it from polylogue root command registration.
  • Updated unit tests and CLI surface witnesses/snapshots to reflect the new command location.
  • Updated docs (README + browser-capture docs + generated CLI reference/catalog artifacts) to reference polylogued browser-capture ....

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unit/daemon/test_daemon_cli.py Adds coverage asserting polylogued advertises browser-capture and its subcommands.
tests/unit/cli/test_click_app.py Ensures polylogue no longer registers browser-capture.
tests/unit/cli/snapshots/test_terminal_snapshots.ambr Updates polylogue --help snapshots to remove browser-capture.
tests/unit/browser_capture/test_receiver.py Switches CLI invocation from polylogue to polylogued for status JSON.
tests/data/witnesses/cli-command-surface.json Removes browser-capture from required polylogue root commands.
tests/baselines/showcase/help-main.txt Updates baseline help output to match polylogue command list sans browser-capture.
tests/baselines/showcase/help-browser-capture*.txt Removes obsolete polylogue browser-capture help baselines.
polylogue/daemon/cli.py Registers browser-capture group under the daemon CLI (polylogued).
polylogue/daemon/browser_capture.py Hosts the click group/commands for receiver serve and status.
polylogue/cli/click_command_registration.py Drops browser-capture from polylogue root command registration.
docs/verification-catalog.md Regenerates verification catalog after CLI surface change.
docs/test-quality-workflows.md Regenerates workflow snapshot counts after CLI surface change.
docs/plans/topology-target.yaml Updates topology plan to reflect file move/removal and LOC shifts.
docs/cli-reference.md Updates CLI reference help excerpt for polylogue without browser-capture.
docs/browser-capture.md Updates usage to polylogued browser-capture serve.
README.md Updates examples to use polylogued browser-capture.
CHANGELOG.md Notes the command move for users.

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

@Sinity
Sinity merged commit 02188d3 into master May 2, 2026
18 checks passed
@Sinity
Sinity deleted the feature/refactor/polylogued-browser-capture branch May 2, 2026 01:14
Sinity added a commit that referenced this pull request May 7, 2026
## Summary

Moves browser-capture receiver serving and status out of the interactive
`polylogue` CLI and under `polylogued browser-capture`.

## Problem

The root CLI is query-first and should not carry long-running
receiver/server modes. `polylogue browser-capture serve/status` kept a
daemon-like browser receiver beside archive query verbs.

## Solution

- Moved the browser-capture Click group from `polylogue.cli.commands` to
`polylogue.daemon.browser_capture`.
- Registered it under `polylogued browser-capture`.
- Removed root `polylogue browser-capture` registration and required
CLI-surface witness coverage.
- Updated README and browser-capture docs to use the daemon command.
- Refreshed generated CLI help, proof catalog, topology, quality,
snapshots, and showcase baselines.

## Verification

- `ruff format polylogue tests devtools`
- `ruff check polylogue tests devtools --fix`
- `pytest -q tests/unit/daemon/test_daemon_cli.py
tests/unit/browser_capture/test_receiver.py
tests/unit/cli/test_click_app.py
tests/unit/cli/test_terminal_snapshots.py
tests/unit/proof/test_witnesses.py
tests/unit/showcase/test_exercise_catalog.py` → `100 passed`
- `devtools render-all --check`
- `devtools verify-topology`
- `devtools verify-layering`
- `devtools verify-test-ownership`
- `mypy polylogue/`
- `devtools verify --quick`
- `devtools build-package`
- `.local/result/bin/polylogued browser-capture --help`
- `.local/result/bin/polylogued browser-capture status --format json`
- `.local/result/bin/polylogue --plain --help`
- push hook reran `devtools verify --quick` successfully

Ref #635
Ref #593
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