Repository navigation
Closed
Description
Problem
Polylogue should remain relatively agnostic to machine resource policy. Sinnix owns this workstation's cgroup slice placement, CPU/IO/memory policy, service restart posture, desktop notification defaults, and pressure gates. Polylogue should expose product behavior clearly enough that Sinnix and coding agents can reason about it without Polylogue growing host-specific modes.
Recent recon found that the old --resource-mode / self-demotion behavior appears gone, which is good. The remaining issue is boundary and ledger clarity:
- The devshell currently does workstation/session hygiene: removes
result, clears cache roots, sets hooks, creates/activates.venv, runsuv sync, regeneratesAGENTS.md, and prints status..envrcduplicates some cleanup/status behavior. Some of this is product dev setup; some is host/session policy and should not accrete in Polylogue. - Run observability is split: every run writes JSON under
archive_root/runs, while finalization also records a DB row. The JSON contains richer metrics/index error data than the SQLiterunstable, so the stores are not equivalent. - The live watcher cursor defaults to
archive_root/polylogue.sqlite, distinct from the product DB defaultpolylogue.db. It is unclear whether that is product ingest state, daemon-local runtime state, or legacy residue. - Devtools memory budgets are acceptable as measurement-only QA, but must not become runtime scheduling/throttling modes.
- Long-running notifications/hooks in foreground
polylogue run --watchlook like futurepolyloguedpolicy rather than one-shot CLI policy.
Desired Direction
Keep Polylogue-owned observability product-native:
- run IDs, source IDs, stage timings, parse/render/index failures, counts, drift, throughput, RSS/process metrics when available, and daemon component status;
- stable CLI/daemon status surfaces that Sinnix can ingest without knowing filesystem internals;
- explicit distinction between canonical DB state and export/artifact JSON.
Keep Sinnix-owned policy out of Polylogue:
- systemd slices/scopes, CPU/IO niceness, memory caps, service restart policy, pressure gates, workstation cache root choices, and desktop notification defaults.
Acceptance
- Decide whether SQLite is the canonical run ledger. If yes, add missing rich fields there and stop requiring
runs/*.jsonfor normal operation. If no, document JSON as the richer export/artifact and make the DB role explicit. - Move or justify the live watcher cursor database location.
- Split devshell/product setup from workstation hygiene so host-specific cleanup/status policy can live in Sinnix or a shared host convention.
- Keep memory-budget tooling measurement-only and prevent reintroduction of Polylogue runtime resource modes.
- Record which surfaces should move to
polyloguedversus remain in one-shotpolylogue run.
Refs Sinity/sinnix#37, #716, #713, #719.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Sinity commentedon May 4, 2026
Closed: all concerns resolved or obsolete.
.envrcdoes repo-local cleanup only (cache dirs, build artifacts, motd). No system-level policy.runstable pending removal (no longer relevant post-daemon split).polylogue.dbdirectly, not a separatepolylogue.sqlite.polylogue run --watch: moved topolylogued run.The principle stands: Polylogue exposes product behavior; Sinnix owns host policy.