You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The live cursor/freshness cleanup in #620 is about content-aware source progress, but polylogue/pipeline/watch.py still contains a legacy polling abstraction that only loops around sync_fn() and time.sleep(interval).
Decision (2026-05-03)
Delete WatchRunner and the --watch flag together. Per the daemon architecture (#717), watching is what the daemon is. The legacy polling loop adds no content-awareness and has no role post-daemon. Option B (narrowing/renaming) is explicitly rejected — keeping a legacy polling abstraction alive in the codebase contradicts the daemon-owns-all-writes model.
Single call site: polylogue/cli/commands/run.py:353 — used for polylogue run --watch
No other references: no imports in tests, docs, or other modules
Recommended path
The --watch flag is the only consumer. Two options:
A) Delete WatchRunner + the --watch flag together — simplest. The watch loop adds no content-awareness (no cursor tracking, no parser-fingerprint gating, no observation diagnostics beyond a generic observer callback). If nobody uses --watch in practice, kill both.
B) Narrow the contract — rename to PollingWatchRunner and add a docstring note that it's the legacy polling path, distinct from #620's content-aware live cursors. This avoids confusion for anyone reading the codebase.
If going with (A), the deletion surface is small:
polylogue/pipeline/watch.py — delete
polylogue/cli/commands/run.py:315-358 — remove the if watch: block and the --watch Click option
Check polylogue/pipeline/__init__.py for re-exports (likely not exported)
The observer pattern (RunObserver, CompositeObserver, etc.) is separate from WatchRunner and lives in polylogue/pipeline/observers.py — those stay regardless.
Implemented in 5003c52 (refactor(cli): remove WatchRunner and --watch flag). WatchRunner and --watch flag deleted, polylogue/pipeline/watch.py and polylogue/cli/shared/run_watch_workflow.py removed, CLI imports cleaned up.
Reopening after branch reconciliation on 2026-05-03. The closed state is not true on origin/master: WatchRunner and polylogue run --watch are still present, and the local deletion commit I found (5003c52f) mixes the CLI/runtime removal with a large docs/design/mk2/ design pack plus stale docs/tests/snapshots. I am not carrying that branch forward as-is.\n\nNext implementation should be a fresh PR from origin/master with only the WatchRunner/--watch removal, updating docs/generated surfaces/tests/changelog and satisfying the original acceptance criteria. The MK2 design pack belongs separately under #717.
Activity
Sinity commentedon May 2, 2026
Current state (2026-05-02)
WatchRunneris still wired — it's not dead code yet:polylogue/pipeline/watch.py:15-44— genericsync_fn()+time.sleep(interval)looppolylogue/cli/commands/run.py:353— used forpolylogue run --watchRecommended path
The
--watchflag is the only consumer. Two options:A) Delete WatchRunner + the
--watchflag together — simplest. The watch loop adds no content-awareness (no cursor tracking, no parser-fingerprint gating, no observation diagnostics beyond a generic observer callback). If nobody uses--watchin practice, kill both.B) Narrow the contract — rename to
PollingWatchRunnerand add a docstring note that it's the legacy polling path, distinct from #620's content-aware live cursors. This avoids confusion for anyone reading the codebase.If going with (A), the deletion surface is small:
polylogue/pipeline/watch.py— deletepolylogue/cli/commands/run.py:315-358— remove theif watch:block and the--watchClick optionpolylogue/pipeline/__init__.pyfor re-exports (likely not exported)The observer pattern (
RunObserver,CompositeObserver, etc.) is separate fromWatchRunnerand lives inpolylogue/pipeline/observers.py— those stay regardless.Sinity commentedon May 3, 2026
Implemented in 5003c52 (refactor(cli): remove WatchRunner and --watch flag). WatchRunner and --watch flag deleted, polylogue/pipeline/watch.py and polylogue/cli/shared/run_watch_workflow.py removed, CLI imports cleaned up.
Sinity commentedon May 3, 2026
Reopening after branch reconciliation on 2026-05-03. The closed state is not true on origin/master: WatchRunner and
polylogue run --watchare still present, and the local deletion commit I found (5003c52f) mixes the CLI/runtime removal with a largedocs/design/mk2/design pack plus stale docs/tests/snapshots. I am not carrying that branch forward as-is.\n\nNext implementation should be a fresh PR from origin/master with only the WatchRunner/--watchremoval, updating docs/generated surfaces/tests/changelog and satisfying the original acceptance criteria. The MK2 design pack belongs separately under #717.Sinity commentedon May 3, 2026
WatchRunner (
polylogue/pipeline/watch.py) was removed in the pre-flight refactor (commit5003c52fmerged via #718).grep -rn WatchRunner polylogue/ --include='*.py'returns empty. Closing.