Skip to content

feat: integrate archive convergence and capture platform - #2534

Merged
Sinity merged 125 commits into
masterfrom
feature/chore/schema-evolution-v2
Jul 4, 2026
Merged

Sinity merged 125 commits into
masterfrom
feature/chore/schema-evolution-v2

Conversation

@Sinity

@Sinity Sinity commented Jul 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add the durable-tier migration lane for source.db and user.db, fold recovered devloop audit results into Beads, land the current browser-capture fixes, add and satisfy an executable lineage citation gate, and make full-profile agent MCP access write-capable with auditable author attribution. The branch keeps derived tiers fresh-first, makes source/user additive evolution explicit, improves live browser-capture evidence handling, proves browser capture through the daemon web reader, and gives full/evidence/browser agents mutation affordances without hiding them behind manual operator-only flows.

Problem

Polylogue's schema policy correctly rejects in-place upgrade chains for rebuildable derived tiers, but durable source/user evidence needs a vetted additive evolution path. Browser-capture work exposed product-facing issues: the extension popup had poor diagnostics/feedback, capture envelopes could carry embedded attachment payloads while the parser indexed those attachments as unfetched metadata, and the demo proof stopped before proving the reader could render a freshly captured session. While strengthening that proof, the web reader realtime asset was found to reference state.selectedConvId even though current state stores the selected session at state.selected.id. The agent feedback flywheel also had a practical access gap: full-profile agents were wired to the read-role MCP server, and tag/correction writes did not preserve the calling agent identity in assertion-backed user rows.

Solution

  • Add polylogue.storage.sqlite.migration_runner for ordered durable-tier SQL resources under polylogue/storage/sqlite/migrations/{source,user}.
  • Bump the user tier to schema version 4 and add user_settings through migrations/user/004_user_settings.sql.
  • Allow initialize_archive_database(..., migration_backup_manifest=...) to migrate older durable tiers only after a polylogue-backup-v1 manifest proves the target tier was included.
  • Add polylogue ops maintenance migrate-tier {source,user} as the operator-facing command for durable tiers only.
  • Update schema-evolution lint/docs/agent guidance so source/user additive migrations are allowed, derived index/embedding tiers remain rebuild/blue-green, and ops remains disposable.
  • Add devtools workspace frontier plus conductor notes so the devloop can group Beads by subsystem, proof cost, runtime risk, schema-lane collision, and subagent suitability before choosing work.
  • Integrate recovered stale-agent audit findings into their owning Beads and upgrade analysis-only Beads into executable issue specs.
  • Polish the browser-capture popup diagnostics: larger layout, clearer status, visible command-specific button feedback, archive-state/debug log panes, passive tab activation/load archive-state refresh, and tested injected UI behavior.
  • Preserve browser-capture embedded attachment payloads (extracted_content and explicit base64 fields) as ParsedAttachment.inline_bytes, so the existing blob writer records true SHA-256 blobs with acquisition_status='acquired'; label-only DOM attachments remain honest unfetched refs.
  • Add browser-capture-tour to the committed visual-tapes inventory, with a generated GIF proving deterministic ChatGPT/Claude fixture capture through headless Chrome, the unpacked extension, branch-local daemon receiver, archive/API convergence, daemon web reader DOM rendering, and daemon teardown.
  • Fix branch-local dev-loop daemon launch so it verifies all archive tier versions before spawning, refreshes only the disposable repo-local .local/dev-archive, refuses stale custom archive roots, and defaults to a browser-capture/API proof shape that watches the capture spool instead of starting a full workstation source catch-up.
  • Fix the daemon reader realtime asset to derive the selected session from state.selected.id, so live-tail subscription/filtering follows the current state model.
  • Bound browser-capture live-page waits: popup/background tab capture messages and ChatGPT/Claude provider-native fetches now time out and degrade instead of leaving extension commands busy indefinitely.
  • Add devtools workspace lineage-validation as the read-only gate for externally cited archive counts: it separates physical stored counts from logical session counts, audits session-link inheritance and branch-point integrity, samples composed reads through the shared reader, writes current demo artifacts, and emits verdict.external_counts_citable.
  • Configure Sinnix full/evidence/browser agent profiles to launch mcp-polylogue --role write while lean remains --role read; live Home Manager activation now writes those generated Claude/Codex config files.
  • Add optional author_ref/author_kind to MCP tag and correction mutation paths, persist them into assertion-backed user rows, and include them in mutation receipts. Duplicate tag adds preserve the original author on no-op.

Verification

  • devtools test tests/unit/storage/test_durable_migrations.py tests/unit/storage/test_archive_tiers_assertions.py tests/unit/devtools/test_verify_schema_upgrade_lane.py tests/unit/cli/test_archive_maintenance_cli.py -k 'durable_migration or user_tier or schema_evolution_policy_lane or migrate_tier_cli or fresh_user_tier' -> 11 passed, 56 deselected.
  • devtools render all --check -> passed.
  • devtools lab policy schema-versioning --json -> {"upgrade_helpers":[],"invalid_migration_resources":[],"ok":true}.
  • uv build --wheel --out-dir /realm/tmp/polylogue-wheel-check plus wheel inspection confirmed polylogue/storage/sqlite/migrations/user/004_user_settings.sql is packaged.
  • devtools workspace frontier --limit 12 and devtools workspace frontier --limit 8 --json -> passed.
  • npm test and npm run lint in extension/browser-capture -> passed.
  • devtools test tests/unit/browser_capture/test_receiver_contract.py tests/unit/browser_capture/test_receiver.py -k 'archive_state or debug_log or lifecycle or accepted' -> passed.
  • Provider browser smoke: loaded the extension UI in Chromium, captured screenshot evidence, captured deterministic ChatGPT and Claude fixture pages, verified redacted popup debug events, and records post-capture page-responsiveness checks (task_delay_ms=0, event dispatch ok) for both providers.
  • devtools test tests/unit/sources/test_browser_capture.py -> 28 passed.
  • Visual-tape proof: devtools test tests/unit/devtools/test_visual_vhs.py -> 17 passed; devtools render visual-tapes --check -> 4 specs; browser provider smoke -> ok=True, providers {'chatgpt': True, 'claude': True}, popup ok=True with no raw payload leak.
  • MCP mutation attribution proof: focused devtools test over tag/correction/blackboard/MCP schema/user-tier paths -> 10 passed.
  • Messages read-format proof: devtools test tests/unit/cli/test_messages.py tests/unit/cli/test_query_verbs_runtime.py -k 'text_alias or messages_text_format or read_view_rejects_format_outside_selected_profile or read_format' -> 5 passed; seeded demo CLI smoke emitted message text for read --view messages --format text; devtools verify --quick passed at b5f9aa62f5b4415458e99e6b517ffb4221a9b79a (run_id=20260704T172946Z-quick-814825-167d936b).
  • Branch-local live-follow proof: devtools test tests/unit/devtools/test_dev_loop.py tests/unit/daemon/test_daemon_cli.py -k 'archive or launch or explicit_browser_capture_root or explicit_archive_inbox_root' -> 24 passed; constrained devtools workspace dev-loop --isolated-ports --launch-daemon --json launched API/receiver/watcher against the browser-capture spool with --no-source-catchup; deterministic provider smoke moved ChatGPT and Claude.ai captures from spooled_only to archived within two polls with raw rows and indexed sessions; /api/sessions/:id/messages returned captured turns; devtools verify --quick passed at 93b48823d1e3514aad56823133828128b54068f1 (run_id=20260704T170618Z-quick-750563-b1cc702d).
  • Reusable browser-capture reader proof: node --check browser-extension/scripts/dev-loop-provider-smoke.mjs; npm --prefix browser-extension run lint; devtools test tests/unit/devtools/test_dev_loop.py tests/unit/devtools/test_visual_vhs.py tests/unit/daemon/test_web_shell_endpoint_contracts.py -k 'browser_provider_live_follow or browser_provider_smoke or browser_capture_tour or live_tail_uses_current_selected_session_helper' -> 4 passed; devtools workspace dev-loop --isolated-ports --browser-provider-live-follow --json -> ok=True, archive_ok=True, api_ok=True, reader_ok=True, ChatGPT/Claude provider capture true, reader rows=2, daemon stopped with SIGTERM; vhs docs/examples/visual-tapes/browser-capture-tour.tape regenerated docs/examples/visual-tapes/browser-capture-tour.gif; devtools render visual-tapes --check -> 4 specs; devtools verify --quick passed at 80193d8c670e5f744b7978881e127a6409373954 (run_id=20260704T174536Z-quick-836294-bf79881f).
  • Browser-capture live-page timeout proof: pre-fix CDP capture against the reported ChatGPT project page hung beyond 60s; after the timeout fix, popup Sync open tabs returned in 5.4s, logged native-full capture for 6a4629b3-8510-83eb-9180-b94a537abf7a, and kept page responsiveness at p95 4.2ms -> 4.1ms. Stress provider smoke with 2,000 turns passed for ChatGPT/Claude with 0.1ms post-capture task delay. npm --prefix browser-extension run lint; npm --prefix browser-extension test -> 90 passed; npm --prefix browser-extension run validate; devtools verify --quick passed at fe0f050f405d7a9bae78576d47486b77e2052d8d (run_id=20260704T180324Z-quick-949727-cf328727).
  • Lineage citation-gate and repair proof: focused devtools test tests/unit/devtools/test_lineage_validation.py tests/unit/devtools/test_devtools_main.py -k 'lineage_validation or nested_workspace_command_dispatches_to_catalog_entry' -> 6 passed; focused devtools test tests/unit/storage/test_lineage_normalization.py tests/unit/daemon/test_daemon_cli.py -k 'stale_immediate_parent_branch_point or stale_non_materialized_msg_branch_point or waits_for_fts_startup_before_watcher' -> 3 passed; live devtools workspace lineage-validation --archive-root /home/sinity/.local/share/polylogue --sample-prefix-sharing 100 --max-sample-stored-messages 500 --out-dir .agent/demos/lineage-validation/current --json now reports schema v24, 16,635 physical sessions, 9,517 logical sessions, 4,269,978 stored messages, full profile coverage, 345 prefix-sharing links, 623,472 composed messages from 1,589 stored sampled tails, dangling_branch_points=0, and external_counts_citable=true; devtools verify --quick passed at 6dc4c1480242b4844f6a802795429f62d356a141 (run_id=20260704T183302Z-quick-1069768-4892bb9b).
  • Sinnix live config proof after switch: Claude full/browser configs pass ['--role','write'], Claude lean passes ['--role','read']; Codex full/evidence/browser pass ['--role','write'], Codex lean passes ['--role','read']; polylogued.service remains inactive.
  • Repro packet count after the attachment fix: claude-ai-browser-capture.json parsed as attachments=60, inline=16, unfetched_candidates=44; ChatGPT temporary DOM capture parsed as attachments=28, inline=0, unfetched_candidates=28.

Changelog

Add a durable-tier migration command for source/user archive tiers: polylogue ops maintenance migrate-tier. Improve browser-capture diagnostics and passive capture-state refresh, acquire embedded browser-capture attachment payloads as true blob evidence, prove browser capture through the daemon reader DOM, bound live-page capture waits, add the lineage citation gate, and enable write-role MCP mutation access for full-profile agents with author-attributed tag/correction receipts. Accept the advertised text format for message read views.

Risks and Follow-ups

  • This does not introduce in-place migrations for index.db or embeddings.db; those remain rebuildable derived tiers.
  • The first durable migration is intentionally small (user_settings) to establish the lane before larger user/source schema changes.
  • Label-only DOM attachment observations still cannot produce bytes; they remain unfetched until a real downloadable or embedded source is available.
  • Fresh-agent affordance-usage observation is tracked in Bead polylogue-ahqd, because this Codex process started before the Home Manager MCP-role activation and cannot honestly prove post-rollout agent write adoption from its own tool log.
  • The PR is intentionally broad because these commits are part of the current integration batch; remaining Beads should keep batching by coherent issue phase rather than opening micro-PRs.

Coordination Envelope Update

  • Added a shared AgentCoordinationPayload substrate over git/cwd state, Beads current-work detection, process/resource episodes, active archive path/schema evidence, overlap awareness, and conductor handoff refs.
  • Added root CLI projections under polylogue agents (status, self, work-item/current, conflicts/overlap, handoff) and one MCP agent_coordination tool plus agent_coordination_brief prompt over the same envelope.
  • Installed shared .beads-hooks so Polylogue pre-commit/pre-push gates compose with Beads pre-commit, pre-push, post-merge, post-checkout, and prepare-commit-msg hooks. The fast paths still run Beads when no Python files are staged or the pre-push verify stamp is current.

Additional verification:

  • devtools test tests/unit/coordination/test_envelope.py tests/unit/cli/test_agents_command.py tests/unit/mcp/test_agent_coordination.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_envelope_contracts.py -k 'coordination or registry or prompt or tool_names' -> 21 passed.
  • devtools test tests/unit/cli/test_agents_command.py tests/unit/cli/test_click_app.py -k 'agents or help_flag_lists_subcommands or retained_command' -> 4 passed.
  • devtools verify --quick -> passed at 32ff31651 (run_id=20260704T191209Z-quick-1232637-585a1023).
  • Live proof: POLYLOGUE_ARCHIVE_ROOT=/home/sinity/.local/share/polylogue polylogue agents status --json --limit 6 wrote /realm/tmp/polylogue-agent-coordination-status.json, showing Beads work item polylogue-s7ae.1, branch feature/chore/schema-evolution-v2, archive root /home/sinity/.local/share/polylogue schema 24, peer/resource rows, and non-blocking overlap advisories.

Baseline caveat: full devtools verify was started, but the pytest-testmon lane selected a broad noisy set with many scattered failures by 74%; it was stopped and the leftover pytest controller was killed. The focused coordination tests and quick gate are the proof for this batch.

Sinity added 4 commits July 4, 2026 02:33
Problem: source.db and user.db contain irreplaceable evidence and operator state, but the previous schema policy treated every tier as rebuild-only. That preserved derived-tier correctness but made durable-tier schema changes either impossible or operationally unsafe.

What changed: add a durable migration runner for source/user tiers with a backup-manifest gate, add the first user.db v3->v4 migration for user_settings, expose an ops maintenance migrate-tier command, and update schema-policy lint/docs/generated surfaces. Derived index/embedding tiers remain rebuild or blue-green only; ops.db keeps its disposable bootstrap ALTER carve-out.

Verification: devtools test tests/unit/storage/test_durable_migrations.py tests/unit/storage/test_archive_tiers_assertions.py tests/unit/devtools/test_verify_schema_upgrade_lane.py tests/unit/cli/test_archive_maintenance_cli.py -k 'durable_migration or user_tier or schema_evolution_policy_lane or migrate_tier_cli or fresh_user_tier' -> 11 passed, 56 deselected. devtools render all --check passed. devtools lab policy schema-versioning --json reported ok. ruff/mypy over the touched slice passed. uv build --wheel confirmed polylogue/storage/sqlite/migrations/user/004_user_settings.sql is packaged. devtools verify --quick passed.
Problem: the devloop Direction step used raw Beads lists, so batching, wait-ahead work, schema-lane avoidance, and read-only subagent lanes depended on ad hoc chat judgment. Ref polylogue-qra.

What changed: add a read-only devtools workspace frontier command that classifies ready and in-progress Beads by subsystem, proof cost, runtime risk, schema-lane conflict, and subagent suitability. Document the Direction -> Evidence -> Construction -> Proof -> Artifact -> Integration -> Velocity/Meta state machine in the tracked devloop scaffold and record the sidecar findings back on polylogue-qra.

Verification: devtools workspace frontier --limit 12; devtools workspace frontier --limit 8 --json; ruff format --check devtools/frontier_report.py devtools/command_catalog.py; ruff check devtools/frontier_report.py devtools/command_catalog.py; python -m py_compile devtools/frontier_report.py; devtools render devtools-reference --check; devtools verify --quick.
Problem: several completed sidecar audit agents still had useful findings only in transient agent output. That left concrete follow-up work around run-projection caches, rebuild performance, query-surface cleanup, and FK indexes outside the durable Beads backlog.

What changed: append the recovered audit findings to the owning Beads so each result is attached to executable work instead of chat-only state.

Verification: inspected the updated Beads with bd show and exported .beads/issues.jsonl.
@coderabbitai

coderabbitai Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR adds frontier-report tooling, introduces durable SQLite migrations for the user tier, removes raw_artifact_id from maintenance scope filtering, and retargets maintenance, FTS, and daemon status surfaces toward daemon convergence.

Changes

Frontier tooling and schema policy

Layer / File(s) Summary
Frontier workflow and command entrypoints
.agent/DEVLOOP.md, .agent/conductor-devloop/PROCESS.md, .agent/conductor-devloop/RUNBOOK.md, devtools/frontier_report.py, devtools/command_catalog.py, docs/devtools.md, AGENTS.md
Adds frontier classification guidance, implements the frontier report CLI, and registers the workspace command in developer docs and catalogs.
Schema policy docs and lint
AGENTS.md, CONTRIBUTING.md, docs/internals.md, docs/test-quality-workflows.md, devtools/render_quality_reference.py, devtools/verify_schema_upgrade_lane.py, devtools/command_catalog.py, tests/unit/devtools/test_verify_schema_upgrade_lane.py
Rewrites schema-evolution guidance and updates the lint to validate durable migration resources.

Durable SQLite migrations

Layer / File(s) Summary
Durable SQLite migrations
polylogue/storage/sqlite/migration_runner.py, polylogue/storage/sqlite/migrations/*, polylogue/storage/sqlite/archive_tiers/user.py, polylogue/storage/sqlite/archive_tiers/bootstrap.py, polylogue/cli/commands/maintenance.py, tests/unit/storage/test_durable_migrations.py, tests/unit/cli/test_archive_maintenance_cli.py, tests/unit/storage/test_archive_tiers_assertions.py
Adds the migration runner, user-tier schema bump, bootstrap integration, CLI support, and tests for manifest-gated durable migrations.

Maintenance and daemon convergence

Layer / File(s) Summary
Maintenance scope and target cleanup
polylogue/maintenance/scope.py, polylogue/cli/commands/maintenance.py, polylogue/mcp/server_maintenance_tools.py, polylogue/daemon/http.py, polylogue/maintenance/targets.py, polylogue/maintenance/replay.py, polylogue/artifacts/runtime.py, tests/data/witnesses/mcp-tool-schemas.json, tests/unit/maintenance/test_scope_filter*, tests/unit/core/test_maintenance_targets.py, tests/unit/core/test_artifact_graph.py, tests/unit/maintenance/test_failure_routing.py, tests/unit/maintenance/test_idempotency.py, tests/unit/maintenance/test_planner_contract.py, tests/unit/maintenance/test_resume.py, tests/unit/scenarios/test_metadata.py, tests/unit/cli/test_archive_maintenance_cli.py
Removes raw_artifact_id plumbing, prunes deprecated targets, and updates replay/routing/tests and surface contracts.
Daemon convergence, FTS, and status surfaces
polylogue/daemon/cli.py, polylogue/daemon/embedding_backlog.py, polylogue/daemon/convergence.py, polylogue/daemon/convergence_stages.py, polylogue/daemon/fts_startup.py, polylogue/daemon/fts_status.py, polylogue/daemon/status.py, polylogue/storage/archive_readiness.py, polylogue/storage/embeddings/status_payload.py, polylogue/storage/search/runtime.py, polylogue/storage/search_providers/fts5.py, polylogue/storage/sqlite/archive_tiers/archive.py, polylogue/storage/sqlite/queries/sessions_search.py, polylogue/readiness/__init__.py, polylogue/readiness/capability.py, polylogue/cli/convergence_feedback.py, polylogue/cli/commands/status.py, polylogue/cli/shared/check_options.py, tests/unit/daemon/test_daemon_cli.py, tests/unit/daemon/test_daemon_convergence.py, tests/unit/daemon/test_daemon_status.py, tests/unit/daemon/test_convergence_stages.py, tests/unit/daemon/test_embedding_convergence_progress.py, tests/unit/cli/test_status.py, tests/unit/cli/test_convergence_feedback.py, tests/unit/cli/test_convergence_surface_contract.py, tests/unit/cli/test_embed_status_fast.py, tests/unit/core/test_readiness_capability.py, tests/unit/storage/test_archive_readiness.py, tests/unit/storage/test_repair.py, tests/unit/daemon/test_metrics_endpoint.py
Reworks daemon convergence loops, FTS readiness/status payloads, archive readiness, repair hints, and related tests toward daemon convergence.
Storage repair and FTS lifecycle
polylogue/storage/repair.py, polylogue/storage/fts/fts_lifecycle.py, polylogue/storage/fts/sql.py, tests/unit/storage/test_fts_repair_sql.py, tests/unit/storage/test_repair.py, tests/integration/test_health.py, polylogue/operations/archive_debt.py, tests/unit/operations/test_archive_debt.py
Extends raw-materialization repair with bounded selection and batched FTS cleanup helpers, and rewrites archive-debt actions toward daemon convergence.

Topology refresh

Layer / File(s) Summary
Topology metadata and counts
docs/plans/topology-target.yaml, docs/topology-status.md, tests/unit/devtools/test_daemon_workload_probe.py, devtools/daemon_workload_probe.py, devtools/temporal_archive_aggregates.py, docs/internals.md, AGENTS.md
Refreshes generated topology locations, count precision reporting, and related aggregate/status documents.

Estimated code review effort: 5 (Critical) | ~120 minutes

Possibly related issues

Possibly related PRs

Suggested labels: type:refactor, area:storage, area:cli, tool:claude

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and points to the PR's main themes: archive convergence and capture-related work.
Description check ✅ Passed The description includes all required sections and provides detailed summary, problem, solution, verification, changelog, and risks.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/chore/schema-evolution-v2

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.

github-actions Bot pushed a commit that referenced this pull request Jul 4, 2026
Sinity added 2 commits July 4, 2026 02:52
Problem: the devloop accelerator Bead still listed remaining work after the frontier command, wait-ahead record, and sidecar audit integrations had landed.

What changed: record the closure evidence and close polylogue-qra so future process work is represented by specific follow-up Beads instead of stale residual scope.

Verification: bd show/export state after closure.
Problem: the first closure note for polylogue-qra was polluted by shell command substitution and embedded an entire frontier report into the Bead notes.

What changed: replace the qra notes with a concise closure record covering the frontier command, wait-ahead proof, and sidecar audit integrations.

Verification: bd show polylogue-qra after the replacement and exported .beads/issues.jsonl.

@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: 917732c353

ℹ️ 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 devtools/verify_schema_upgrade_lane.py Resolved
Sinity added 5 commits July 4, 2026 02:59
Problem: several older Polylogue audit findings were still discoverable only by reading archived conductor markdown, even though the current devloop relies on Beads as the shared task frontier.

What changed: add a Beads task that enumerates the remaining concrete construct-validity, fanout, and insights audit findings that need current-source reconciliation. The task names likely owning areas so live findings can be split or linked instead of staying buried in archive notes.

Verification: inspected existing Beads for the sidecar-integrated audit notes and full-graph searches for the remaining audit patterns; no code was changed.
Problem: the archived-audit residue task named likely owners in prose, but the Beads graph did not expose those relationships to frontier and dependency views.

What changed: add relates-to edges from the reconciliation task to the lineage, provider-usage, insights, attachment, provider-drift, DSL, and CLI-surface programs.

Verification: bd dep list polylogue-38x shows the expected related programs.
Problem: active archive convergence had shifted from a broad raw-materialization repair into controlled per-artifact replay, but the durable task state did not yet preserve the evidence, remaining count, or product lesson about broad repair progress opacity.

What changed: update the active convergence and rebuild-performance Beads with the user.db migration gate, the interrupted broad repair, the successful single-row probe, two bounded per-row replay chunks, and the current remaining raw-materialization count.

Verification: active archive dry-run after the controlled chunks reported affected_rows=1479 with zero failure samples; the second chunk completed 50/50 rows under 120-second per-row caps.
Problem: the active archive convergence bead needed the latest controlled-drain checkpoint, including the newly isolated timeout raw artifact and the current remaining raw-materialization count.

What changed: record the 99-row successful chunk, the exact timed-out Codex raw artifact, the subsequent 100-row successful skip-one chunk, and the resulting 1280 remaining candidates. Also add the timeout row as performance evidence on the rebuild/replay bead.

Verification: active archive dry-run after the chunks reported affected_rows=1280 with zero failure samples; no raw-materialization writer remained running after the checkpoint.
Problem: raw source-to-index materialization and FTS coherence were exposed as routine maintenance targets, which taught operators and agents to run manual repair commands for states that should be kept coherent by daemon convergence and startup/write-path invariants.

What changed: remove raw_materialization and dangling_fts from the public maintenance target catalog, CLI/HTTP/MCP scope surfaces, doctor/status repair hints, docs, generated references, and snapshots. Add a bounded daemon raw-materialization convergence loop that drains source rows in small batches and treats transient SQLite locks as retryable. Keep internal primitives available for daemon/startup use without advertising them as operator maintenance workflows.

Verification: python -m py_compile over edited modules; devtools render all --check; focused maintenance/status/MCP/graph test batch reported 416 passed with only terminal snapshots requiring update; devtools test tests/unit/cli/test_terminal_snapshots.py --snapshot-update -q reported 9 passed and 3 snapshots updated; targeted raw/daemon implementation tests reported 7 passed; post-lint affected test rerun reported 27 passed.

Ref polylogue-sl1
github-actions Bot pushed a commit that referenced this pull request Jul 4, 2026
Sinity added 2 commits July 4, 2026 04:56
Problem: the live dev daemon was correctly running against the active archive, but its background raw-materialization and embedding loops started while watcher catch-up was still ingesting large source files. That let daemon-owned writers contend with each other and produced repeated database-is-locked errors during the exact convergence path that should be automatic.

What changed: raw materialization and embedding backlog checks now accept a watcher catch-up completion gate. run_daemon_services bridges the watcher event into those loops, matching the existing derived-debt retry behavior, so write-heavy background convergence begins after initial source catch-up instead of racing it.

Verification: devtools test tests/unit/daemon/test_daemon_cli.py -k 'raw_materialization_convergence_waits or raw_materialization_convergence_treats or convergence_check_waits_for_catch_up_complete or run_daemon_services_waits_for_fts_startup_before_watcher'; devtools test tests/unit/daemon/test_embedding_convergence_progress.py -k 'periodic_embedding_backlog_waits or daemon_embedding_backlog_drain_is_noop_when_disabled'.
Problem: the previous daemon scheduling change was behaviorally covered but mypy could not prove the watcher branch only uses the catch-up gate after the startup branch assigns it.

What changed: initialize the optional catch-up gate at run_daemon_services scope before the startup wiring assigns the watcher-aware event.

Verification: devtools verify --quick.

@coderabbitai coderabbitai 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.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (4)
docs/maintenance.md (2)

200-218: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Stale caveat contradicts the newly rewritten scope-filters section.

Lines 202-213 now state the repeatable --session-id/--origin/--source-family/--source-root/--since/--until/--failure-kind/--parser-version filters are "the current shipping surface," but the very next paragraph (lines 216-218) still says "Until #1196 lands, the only way to narrow a run is through --target and --scope. Do not script against flag names that are not yet on polylogue ops maintenance run --help." These two statements directly contradict each other.

📝 Proposed fix
-Until `#1196` lands, the only way to narrow a run is through `--target`
-and `--scope`. Do not script against flag names that are not yet on
-`polylogue ops maintenance run --help`.
+The scope-filter flags above are on `polylogue ops maintenance run --help`
+today; do not script against additional flag names that are not yet
+documented there.

As per coding guidelines, "Documentation should describe the current workflow and architecture accurately, including commands, schema policy, and generated surfaces."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/maintenance.md` around lines 200 - 218, The scope-filters docs are
contradictory: the new list in the “Scope filters” section already documents
repeatable filters as supported, so remove or rewrite the stale caveat that
still says only --target and --scope can narrow a run. Update the wording in
maintenance.md so it matches the current behavior described by the scope-filters
examples and the `polylogue ops maintenance run` command surface, without
referencing deprecated help limitations.

Source: Coding guidelines


168-186: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

--resume target:2 no-ops against the two-target example.

The worked example now uses only two targets (session_insights, message_type_backfill), so cursor indices only run 0-1. --resume target:2 sets start_index == len(targets), meaning the replay loop executes zero iterations instead of demonstrating a "surgical replay" of a remaining target.

📝 Proposed fix
-# Explicit cursor override (rare — for surgical replays).
-polylogue ops maintenance run --operation-id "$op" --resume target:2 \
+# Explicit cursor override (rare — for surgical replays).
+polylogue ops maintenance run --operation-id "$op" --resume target:1 \
        --target session_insights \
        --target message_type_backfill

As per coding guidelines, "Documentation should describe the current workflow and architecture accurately, including commands, schema policy, and generated surfaces."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/maintenance.md` around lines 168 - 186, The maintenance run example
shows an invalid surgical replay cursor for the current two-target list, so the
explicit resume command no longer demonstrates a real replay. Update the worked
example in the maintenance docs around the `polylogue ops maintenance run` and
`--resume` usage so the cursor index matches the available targets, or expand
the target list if you want to keep a non-no-op replay example. Keep the
narrative consistent with the `op` capture and resume flow shown in the same
snippet.

Source: Coding guidelines

polylogue/daemon/cli.py (1)

405-445: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicated retry/backoff/logging boilerplate across periodic convergence loops.

_periodic_convergence_check and _periodic_raw_materialization_convergence share nearly identical transient-lock retry handling (info-log on is_transient_sqlite_lock, warning-log otherwise, generic except Exception → warning, then sleep). Consider extracting a small shared helper (e.g. _run_periodic_convergence_pass(label, coro_fn, interval)) to avoid the two loops drifting apart as more convergence stages are added.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/daemon/cli.py` around lines 405 - 445, Both
`_periodic_convergence_check` and `_periodic_raw_materialization_convergence`
duplicate the same transient SQLite lock handling, warning fallback, and
sleep-loop structure. Extract the shared retry/backoff and logging flow into a
small helper (for example a periodic convergence runner that takes the label and
drain function) and have both functions delegate to it. Keep the existing
`is_transient_sqlite_lock`, `logger.info`, and `logger.warning` behavior
unchanged so future convergence stages can reuse the same path without drift.
polylogue/operations/archive_debt.py (1)

710-740: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Inconsistent action metadata: missing description on new "Run daemon convergence" actions.

The parsed-session-unmaterialized branch's "Run daemon convergence" action (line 683-686) includes a description, but the fallback (line 736-738) and FTS actions (line 1020-1023, 1067-1070) omit it. Minor UX inconsistency for downstream consumers rendering these action payloads.

Also applies to: 1018-1024, 1065-1072

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/operations/archive_debt.py` around lines 710 - 740, The new “Run
daemon convergence” action payloads are inconsistent with the existing
`parsed-session-unmaterialized` branch because the fallback in `archive_debt.py`
(and the similar FTS action constructors in the same module) omit a
`description`. Update the `ArchiveDebtActionPayload` instances in the `else`
branch that sets `command=("polylogued", "run")`, and in the FTS-related action
builders, to include the same style of descriptive text used by the other “Run
daemon convergence” action so downstream consumers render consistent metadata.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@devtools/frontier_report.py`:
- Around line 152-166: The _schema_lane helper is too narrow because the " ddl"
token misses DDL mentions at the start of sentences or lines, causing
schema-related issues to be classified as unclassified. Update _schema_lane to
use a word-boundary style match or a normalized plain "ddl" term alongside the
existing schema indicators so DDL-related text is detected reliably.

In `@polylogue/storage/sqlite/archive_tiers/bootstrap.py`:
- Around line 160-174: The durable-tier migration gate in the bootstrap logic is
too permissive because it only checks that a backup manifest object exists
before calling migrate_archive_tier. Tighten the condition in this bootstrap
flow so migration is allowed only after a real backup verification is performed
by validate_migration_backup_manifest, including checking backed_up_files and
confirming the expected tier database is actually backed up on disk. If the
backup is missing or incomplete, keep raising the explicit RuntimeError path
instead of proceeding with an in-place migration.

In `@polylogue/storage/sqlite/archive_tiers/user.py`:
- Around line 41-49: Keep the user_settings schema definition in sync between
the archive tier setup and the user migration SQL. Update the user_settings DDL
in user.py and the corresponding migration entry together so fresh
initialization and migrated databases use the exact same table definition,
including column types, defaults, and STRICT behavior. Use the user_settings
table definition as the single source of truth when making changes to avoid
drift.

In `@polylogue/storage/sqlite/migration_runner.py`:
- Around line 90-93: The migration executor in _execute_migration_sql currently
splits SQL on semicolons, which will break for statements containing semicolons
in strings, comments, or trigger bodies. Replace the naive split/loop with a
statement-aware approach in _execute_migration_sql, using
sqlite3.complete_statement or equivalent buffering so each complete statement is
executed intact. Keep the existing connection-level transaction behavior in
migration_runner unchanged and ensure the new parser still skips empty
statements.

In `@tests/unit/cli/test_archive_maintenance_cli.py`:
- Around line 122-176: The test helpers `_create_user_v3` and
`_write_backup_manifest` are duplicated here and in the durable migration tests,
so update the archive maintenance CLI tests to reuse a shared fixture/helper
module instead of keeping separate copies. Move the common v3 schema setup and
backup manifest writer into a central test helper such as `conftest.py` or a
small `_migration_fixtures.py`, then import and use those helpers from both
`test_archive_maintenance_cli.py` and `test_durable_migrations.py` so the
schema/manifest shape is maintained in one place.

---

Outside diff comments:
In `@docs/maintenance.md`:
- Around line 200-218: The scope-filters docs are contradictory: the new list in
the “Scope filters” section already documents repeatable filters as supported,
so remove or rewrite the stale caveat that still says only --target and --scope
can narrow a run. Update the wording in maintenance.md so it matches the current
behavior described by the scope-filters examples and the `polylogue ops
maintenance run` command surface, without referencing deprecated help
limitations.
- Around line 168-186: The maintenance run example shows an invalid surgical
replay cursor for the current two-target list, so the explicit resume command no
longer demonstrates a real replay. Update the worked example in the maintenance
docs around the `polylogue ops maintenance run` and `--resume` usage so the
cursor index matches the available targets, or expand the target list if you
want to keep a non-no-op replay example. Keep the narrative consistent with the
`op` capture and resume flow shown in the same snippet.

In `@polylogue/daemon/cli.py`:
- Around line 405-445: Both `_periodic_convergence_check` and
`_periodic_raw_materialization_convergence` duplicate the same transient SQLite
lock handling, warning fallback, and sleep-loop structure. Extract the shared
retry/backoff and logging flow into a small helper (for example a periodic
convergence runner that takes the label and drain function) and have both
functions delegate to it. Keep the existing `is_transient_sqlite_lock`,
`logger.info`, and `logger.warning` behavior unchanged so future convergence
stages can reuse the same path without drift.

In `@polylogue/operations/archive_debt.py`:
- Around line 710-740: The new “Run daemon convergence” action payloads are
inconsistent with the existing `parsed-session-unmaterialized` branch because
the fallback in `archive_debt.py` (and the similar FTS action constructors in
the same module) omit a `description`. Update the `ArchiveDebtActionPayload`
instances in the `else` branch that sets `command=("polylogued", "run")`, and in
the FTS-related action builders, to include the same style of descriptive text
used by the other “Run daemon convergence” action so downstream consumers render
consistent metadata.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 216b19a9-9577-4fa3-ba8d-5b1e32870b22

📥 Commits

Reviewing files that changed from the base of the PR and between e1b5ce2 and 57d35bd.

📒 Files selected for processing (68)
  • .agent/DEVLOOP.md
  • .agent/conductor-devloop/PROCESS.md
  • .agent/conductor-devloop/RUNBOOK.md
  • .beads/interactions.jsonl
  • .beads/issues.jsonl
  • AGENTS.md
  • CONTRIBUTING.md
  • devtools/command_catalog.py
  • devtools/frontier_report.py
  • devtools/render_quality_reference.py
  • devtools/verify_schema_upgrade_lane.py
  • docs/cli-reference.md
  • docs/devtools.md
  • docs/internals.md
  • docs/maintenance.md
  • docs/plans/topology-target.yaml
  • docs/test-quality-workflows.md
  • docs/topology-status.md
  • polylogue/artifacts/runtime.py
  • polylogue/cli/commands/maintenance.py
  • polylogue/cli/commands/status.py
  • polylogue/daemon/cli.py
  • polylogue/daemon/http.py
  • polylogue/daemon/status.py
  • polylogue/maintenance/envelope.py
  • polylogue/maintenance/replay.py
  • polylogue/maintenance/scope.py
  • polylogue/maintenance/targets.py
  • polylogue/mcp/server_maintenance_tools.py
  • polylogue/operations/archive_debt.py
  • polylogue/readiness/__init__.py
  • polylogue/storage/repair.py
  • polylogue/storage/search/runtime.py
  • polylogue/storage/search_providers/fts5.py
  • polylogue/storage/sqlite/archive_tiers/archive.py
  • polylogue/storage/sqlite/archive_tiers/bootstrap.py
  • polylogue/storage/sqlite/archive_tiers/user.py
  • polylogue/storage/sqlite/migration_runner.py
  • polylogue/storage/sqlite/migrations/__init__.py
  • polylogue/storage/sqlite/migrations/user/004_user_settings.sql
  • polylogue/storage/sqlite/migrations/user/__init__.py
  • polylogue/storage/sqlite/queries/sessions_search.py
  • tests/data/witnesses/mcp-tool-schemas.json
  • tests/unit/cli/__snapshots__/test_terminal_snapshots.ambr
  • tests/unit/cli/test_archive_maintenance_cli.py
  • tests/unit/cli/test_status.py
  • tests/unit/core/test_artifact_graph.py
  • tests/unit/core/test_maintenance_targets.py
  • tests/unit/core/test_readiness_capability.py
  • tests/unit/daemon/test_daemon_cli.py
  • tests/unit/daemon/test_daemon_status.py
  • tests/unit/devtools/test_artifact_graph.py
  • tests/unit/devtools/test_execution_specs.py
  • tests/unit/devtools/test_scenario_coverage.py
  • tests/unit/devtools/test_verify_schema_upgrade_lane.py
  • tests/unit/maintenance/test_failure_routing.py
  • tests/unit/maintenance/test_idempotency.py
  • tests/unit/maintenance/test_planner_contract.py
  • tests/unit/maintenance/test_planner_filter_narrowing.py
  • tests/unit/maintenance/test_resume.py
  • tests/unit/maintenance/test_scope_filter.py
  • tests/unit/maintenance/test_scope_filter_envelope_contract.py
  • tests/unit/maintenance/test_scope_filter_roundtrip.py
  • tests/unit/operations/test_archive_debt.py
  • tests/unit/scenarios/test_metadata.py
  • tests/unit/storage/test_archive_tiers_assertions.py
  • tests/unit/storage/test_durable_migrations.py
  • tests/unit/storage/test_repair.py
💤 Files with no reviewable changes (9)
  • tests/data/witnesses/mcp-tool-schemas.json
  • tests/unit/devtools/test_scenario_coverage.py
  • tests/unit/maintenance/test_scope_filter_envelope_contract.py
  • polylogue/daemon/http.py
  • polylogue/maintenance/targets.py
  • tests/unit/maintenance/test_planner_filter_narrowing.py
  • tests/unit/maintenance/test_scope_filter_roundtrip.py
  • tests/unit/maintenance/test_scope_filter.py
  • polylogue/maintenance/replay.py

Comment on lines +152 to +166
def _schema_lane(issue: dict[str, Any]) -> bool:
haystack = _text(issue)
return any(
term in haystack
for term in (
"migration",
"archive_tiers",
"user_version",
"schema_version",
"index schema",
"schema migration",
"canonical ddl",
" ddl",
)
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Broaden schema-lane detection.

The " ddl" token misses DDL mentions at the start of a line or sentence, so genuine schema-lane beads can fall through to unclassified. Use a word-boundary match or normalize to plain ddl instead.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@devtools/frontier_report.py` around lines 152 - 166, The _schema_lane helper
is too narrow because the " ddl" token misses DDL mentions at the start of
sentences or lines, causing schema-related issues to be classified as
unclassified. Update _schema_lane to use a word-boundary style match or a
normalized plain "ddl" term alongside the existing schema indicators so
DDL-related text is detected reliably.

Comment on lines +160 to +174
if (
current_version != 0
and current_version < expected_version
and tier in DURABLE_MIGRATION_TIERS
and migration_backup_manifest is not None
):
migrate_archive_tier(conn, tier, backup_manifest=migration_backup_manifest)
return
if current_version != 0:
if current_version < expected_version and tier in DURABLE_MIGRATION_TIERS:
raise RuntimeError(
f"{path.name} schema version {current_version} is older than the current {tier.value} tier "
f"version {expected_version}; run an explicit durable-tier migration with a verified backup "
"manifest"
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Inspect validate_migration_backup_manifest's actual checks
ast-grep outline polylogue/storage/sqlite/migration_runner.py
ast-grep run --pattern 'def validate_migration_backup_manifest($$$):
    $$$' --lang python polylogue/storage/sqlite/migration_runner.py

Repository: Sinity/polylogue

Length of output: 971


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the validation logic and the referenced tests.
sed -n '1,220p' polylogue/storage/sqlite/migration_runner.py
printf '\n===== TEST: durable migrations =====\n'
sed -n '1,260p' tests/unit/storage/test_durable_migrations.py
printf '\n===== TEST: archive maintenance CLI =====\n'
sed -n '1,260p' tests/unit/cli/test_archive_maintenance_cli.py

Repository: Sinity/polylogue

Length of output: 21472


Require a real backup check before allowing durable-tier migration.
validate_migration_backup_manifest only checks that the manifest exists, is valid JSON, and includes <tier>.db; it does not inspect backed_up_files or any on-disk backup contents. An empty manifest still unlocks the in-place durable-tier migration.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/storage/sqlite/archive_tiers/bootstrap.py` around lines 160 - 174,
The durable-tier migration gate in the bootstrap logic is too permissive because
it only checks that a backup manifest object exists before calling
migrate_archive_tier. Tighten the condition in this bootstrap flow so migration
is allowed only after a real backup verification is performed by
validate_migration_backup_manifest, including checking backed_up_files and
confirming the expected tier database is actually backed up on disk. If the
backup is missing or incomplete, keep raising the explicit RuntimeError path
instead of proceeding with an in-place migration.

Comment on lines +41 to +49

-- Durable user/workspace settings. These are intentionally separate from
-- assertions: settings are state, not epistemic claims.
CREATE TABLE IF NOT EXISTS user_settings (
setting_key TEXT PRIMARY KEY,
value_json TEXT NOT NULL,
updated_at_ms INTEGER NOT NULL,
author_ref TEXT NOT NULL DEFAULT 'user:local'
) STRICT;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Compare fresh DDL vs. migration SQL for user_settings
fd '004_user_settings.sql' polylogue/storage/sqlite/migrations
cat polylogue/storage/sqlite/migrations/user/004_user_settings.sql 2>/dev/null

Repository: Sinity/polylogue

Length of output: 432


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate all user_settings definitions/usages and inspect nearby context.
rg -n --hidden --glob '!**/.git/**' --glob '!**/node_modules/**' 'user_settings|004_user_settings\.sql|CREATE TABLE IF NOT EXISTS user_settings' polylogue

printf '\n--- fresh-init DDL file ---\n'
cat -n polylogue/storage/sqlite/archive_tiers/user.py | sed -n '1,120p'

printf '\n--- migration file ---\n'
cat -n polylogue/storage/sqlite/migrations/user/004_user_settings.sql

printf '\n--- tests mentioning user_settings ---\n'
rg -n --hidden --glob '!**/.git/**' --glob '!**/node_modules/**' 'user_settings|archive_tiers/user|migrations/user/004_user_settings' polylogue/test polylogue/tests . || true

Repository: Sinity/polylogue

Length of output: 17710


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- tests/unit/storage/test_archive_tiers_assertions.py ---'
cat -n tests/unit/storage/test_archive_tiers_assertions.py | sed -n '110,190p'

printf '\n%s\n' '--- tests/unit/storage/test_durable_migrations.py ---'
cat -n tests/unit/storage/test_durable_migrations.py | sed -n '1,160p'

printf '\n%s\n' '--- schema policy/docs mentions ---'
rg -n 'lockstep|identical schema|user_settings|fresh-init|migration' docs tests/unit/storage tests/unit/cli polylogue/storage/sqlite -g '!**/.git/**'

Repository: Sinity/polylogue

Length of output: 20216


Keep user_settings DDL in lockstep
user_settings is duplicated in polylogue/storage/sqlite/archive_tiers/user.py and polylogue/storage/sqlite/migrations/user/004_user_settings.sql. The current tests only assert the table exists and that the column names match, so a future edit can still leave fresh-init and migrated user.db files diverging on types, defaults, or STRICT.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/storage/sqlite/archive_tiers/user.py` around lines 41 - 49, Keep
the user_settings schema definition in sync between the archive tier setup and
the user migration SQL. Update the user_settings DDL in user.py and the
corresponding migration entry together so fresh initialization and migrated
databases use the exact same table definition, including column types, defaults,
and STRICT behavior. Use the user_settings table definition as the single source
of truth when making changes to avoid drift.

Comment on lines +90 to +93
def _execute_migration_sql(conn: sqlite3.Connection, sql: str) -> None:
statements = [statement.strip() for statement in sql.split(";") if statement.strip()]
for statement in statements:
conn.execute(statement)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Semicolon splitting is fragile for non-trivial migrations.

sql.split(";") will misparse any future migration containing ; inside string literals, --//* */ comments, or CREATE TRIGGER ... BEGIN ... END bodies, executing invalid fragments. The current 004 DDL is safe, but this is a landmine for durable migrations. conn.executescript() is unusable here because it forces an implicit commit that would break the surrounding BEGIN IMMEDIATE transaction, so consider a statement-aware splitter (or sqlite3.complete_statement) instead.

♻️ Sketch using sqlite3.complete_statement
def _execute_migration_sql(conn: sqlite3.Connection, sql: str) -> None:
    buffer = ""
    for line in sql.splitlines(keepends=True):
        buffer += line
        if sqlite3.complete_statement(buffer):
            statement = buffer.strip()
            if statement:
                conn.execute(statement)
            buffer = ""
    if buffer.strip():
        conn.execute(buffer)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/storage/sqlite/migration_runner.py` around lines 90 - 93, The
migration executor in _execute_migration_sql currently splits SQL on semicolons,
which will break for statements containing semicolons in strings, comments, or
trigger bodies. Replace the naive split/loop with a statement-aware approach in
_execute_migration_sql, using sqlite3.complete_statement or equivalent buffering
so each complete statement is executed intact. Keep the existing
connection-level transaction behavior in migration_runner unchanged and ensure
the new parser still skips empty statements.

Comment on lines +122 to +176
def _create_user_v3(path: Path) -> None:
path.unlink(missing_ok=True)
with sqlite3.connect(path) as conn:
conn.executescript(
"""
CREATE TABLE assertions (
assertion_id TEXT PRIMARY KEY,
scope_ref TEXT,
target_ref TEXT NOT NULL,
key TEXT,
kind TEXT NOT NULL,
value_json TEXT,
body_text TEXT,
author_ref TEXT DEFAULT 'user:local',
author_kind TEXT DEFAULT 'user',
evidence_refs_json TEXT DEFAULT '[]',
status TEXT DEFAULT 'active',
visibility TEXT DEFAULT 'private',
confidence REAL,
staleness_json TEXT,
context_policy_json TEXT DEFAULT '{"inject":false}',
supersedes_json TEXT DEFAULT '[]',
created_at_ms INTEGER NOT NULL,
updated_at_ms INTEGER NOT NULL
) STRICT;
CREATE INDEX idx_assertions_target_kind
ON assertions(target_ref, kind);
CREATE INDEX idx_assertions_kind_status_updated
ON assertions(kind, status, updated_at_ms);
CREATE INDEX idx_assertions_target_kind_status_visibility
ON assertions(target_ref, kind, status, visibility);
PRAGMA user_version = 3;
"""
)


def _write_backup_manifest(path: Path, *, included_tiers: list[str]) -> Path:
path.mkdir()
manifest_path = path / "manifest.json"
manifest_path.write_text(
json.dumps(
{
"format": "polylogue-backup-v1",
"profile": "user_overlays",
"included_tiers": included_tiers,
"omitted_tiers": [],
"backed_up_files": [],
"warnings": [],
}
),
encoding="utf-8",
)
return manifest_path


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicate migration-test fixtures across files.

_create_user_v3 and _write_backup_manifest here are near-duplicates of the same-named helpers in tests/unit/storage/test_durable_migrations.py (lines 15-66). Consider extracting both into a shared test helper module (e.g. a conftest.py or a small _migration_fixtures.py) so the v3 schema/manifest shape only needs to be updated in one place as the durable migration matures.

🧰 Tools
🪛 ast-grep (0.44.0)

[info] 161-170: use jsonify instead of json.dumps for JSON output
Context: json.dumps(
{
"format": "polylogue-backup-v1",
"profile": "user_overlays",
"included_tiers": included_tiers,
"omitted_tiers": [],
"backed_up_files": [],
"warnings": [],
}
)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unit/cli/test_archive_maintenance_cli.py` around lines 122 - 176, The
test helpers `_create_user_v3` and `_write_backup_manifest` are duplicated here
and in the durable migration tests, so update the archive maintenance CLI tests
to reuse a shared fixture/helper module instead of keeping separate copies. Move
the common v3 schema setup and backup manifest writer into a central test helper
such as `conftest.py` or a small `_migration_fixtures.py`, then import and use
those helpers from both `test_archive_maintenance_cli.py` and
`test_durable_migrations.py` so the schema/manifest shape is maintained in one
place.

Sinity added 6 commits July 4, 2026 05:08
Problem: status and daemon startup still framed normal read-model drift as operator maintenance. A poisoned zero-count FTS freshness row could preserve misleading readiness, session profile gaps had no daemon catch-up loop, and complete/current archive tiers downgraded by raw materialization debt advertised archive-init even though the daemon should converge the archive.

What changed: add bounded session-profile convergence after source catch-up, recompute poisoned stale FTS ledgers when docsize proves the index exists, and map complete-schema materialization lag to polylogued run rather than archive-init. The new tests cover catch-up gating, transient SQLite lock handling, stale-zero FTS ledgers, and archive-storage status semantics.

Verification: python -m py_compile polylogue/daemon/cli.py polylogue/daemon/fts_startup.py polylogue/daemon/convergence_stages.py polylogue/daemon/status.py; devtools test tests/unit/daemon/test_daemon_cli.py -k 'archive_message_fts_startup_large_drift_is_deferred or archive_message_fts_startup_records_known_stale_ledger_without_global_counts or archive_message_fts_startup_recomputes_poisoned_stale_zero_ledger or session_insight_convergence_waits or session_insight_convergence_treats or run_daemon_services_waits_for_fts_startup_before_watcher'; devtools test tests/unit/daemon/test_daemon_status.py -k 'component_readiness or downgrades_archive_ready_for_raw_materialization_debt'; devtools verify --quick
Problem: the daemon rich-status snapshot called the default embedding status path every 10 seconds, and that headline path still scanned message_embeddings_meta for model, dimension, and timestamp summaries. On the live archive this measured at about 266 MB of reads and 2.9 seconds per call, causing avoidable background I/O while the daemon was trying to converge.

What changed: move embedding metadata summary scans behind the explicit detail path. Default/headline status still reports configured state, coverage, pending sessions, failures, and latest catch-up runs, but skips model/dimension/time-bound grouping unless the operator asks for detail.

Verification: live archive measurement for embedding_readiness_info dropped from ~266 MB / 2.9s to 0 read bytes / 0.005s; devtools test tests/unit/cli/test_embed_status_fast.py -k 'default_does_not_exact_count_archive_session_state or default_skips_embedding_metadata_summary_scans or detail_uses_uniform_metadata_probe_when_grouping_times_out'; devtools verify --quick
Problem: live catch-up could turn a changed path with no resolved session ids into whole-archive FTS or insight work. On the live archive a 350 MB Codex file entered convergence with no further progress while the daemon read tens of GB, because path-scoped convergence silently fell back to global repair/materialization.

What changed: empty path/session resolution is now a no-op for path-scoped FTS and insight convergence. Global FTS repair remains a dedicated surface-debt operation, and global missing-profile refresh is handled by the bounded daemon backlog loop added separately. Tests pin that unknown path scope does not rebuild the global FTS surface or scan global missing profiles.

Verification: devtools test tests/unit/daemon/test_convergence_stages.py -k 'archive_repair_sessions_fts_skips_unknown_scope or archive_insights_path_batch_does_not_fallback_to_global_missing_profiles or archive_fts_stage_repairs_only_changed_session_rows or insights_stage_materializes_archive_profiles_from_archive_tiers'; python -m py_compile polylogue/daemon/convergence_stages.py; devtools test tests/unit/daemon/test_daemon_cli.py -k 'archive_message_fts_startup_large_drift_is_deferred or archive_message_fts_startup_records_known_stale_ledger_without_global_counts or archive_message_fts_startup_recomputes_poisoned_stale_zero_ledger or session_insight_convergence_waits or session_insight_convergence_treats or run_daemon_services_waits_for_fts_startup_before_watcher'; devtools verify --quick
Problem: daemon startup could block on full archive FTS counts when the durable freshness ledger was internally inconsistent, for example state=ready with source_rows far above indexed_rows. The readiness check correctly distrusted the row, but startup then fell through to full COUNT(*) scans over blocks and messages_fts_docsize before the watcher or rich status snapshot could start.

What changed: inconsistent ready ledgers and stale zero-count ledgers are downgraded to stale using existing ledger evidence, convergence debt is recorded, and startup continues without global counts. Explicit surface repair/diagnostics remain responsible for expensive reconciliation.

Verification: python -m py_compile polylogue/daemon/fts_startup.py polylogue/daemon/convergence_stages.py; devtools test tests/unit/daemon/test_daemon_cli.py -k 'archive_message_fts_startup_large_drift_is_deferred or archive_message_fts_startup_records_known_stale_ledger_without_global_counts or archive_message_fts_startup_downgrades_inconsistent_ready_ledger_without_global_counts or archive_message_fts_startup_records_poisoned_stale_zero_ledger_without_global_counts or session_insight_convergence_waits or session_insight_convergence_treats or run_daemon_services_waits_for_fts_startup_before_watcher'; devtools verify --quick
Problem: the branch-local daemon could turn a small append to a huge active Codex session into session-scoped convergence. That foreground path retried historical FTS/insight debt for the whole session and produced tens of GiB of reads while the watcher appeared stuck in convergence.

What changed: keep split-archive source-path FTS convergence as a cheap no-op because archive writes already repair newly changed rows, remove the live known-session convergence shortcut, and leave session-scoped repair for explicit session/debt retries. Update topology after removing the stale helper.

Verification: devtools test tests/unit/daemon/test_convergence_stages.py tests/unit/daemon/test_fts_global_repair.py tests/unit/sources/test_live_batch_convergence.py; devtools verify --quick. Runtime proof: the branch-local daemon completed the 317 MB 019f12b5-fc19 Codex append with source_payload_read_bytes=243655, read_amp=0.000768x, parse_s=0.147429, convergence_s=0.009203, total_time_s=0.410164.
Problem: raw-materialization and insight readiness surfaces still advertised manual debt or maintenance commands as the way to make derived archive state correct. That contradicts the daemon convergence invariant and encourages operators/agents to bypass the automatic path.

What changed: raw-materialization readiness now points degraded/stale states at polylogued run, query warnings describe unclassified raw/index gaps as daemon convergence input, and direct status insight hints use the same daemon convergence path as search. Tests now assert the operator-facing contract.

Verification: devtools test tests/unit/core/test_readiness_capability.py tests/unit/daemon/test_daemon_status.py tests/unit/cli/test_status.py tests/unit/cli/test_convergence_feedback.py tests/unit/cli/test_convergence_surface_contract.py; devtools verify --quick; restarted polylogued-devloop-live-current.service and confirmed /api/status reports raw_materialization/session_profiles/search repair_hint=polylogued run with prod polylogued.service inactive.

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
polylogue/daemon/status.py (1)

1742-1763: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicated STALE condition risks drifting caveat/state consistency.

The materialization_pending caveat re-evaluates the exact same expression (final_shape_ready and archive_schema_ready and not archive_materialization_ready) used to select the STALE state at Line 1747, but independently, and it's not gated by which branch of the state if/elif chain actually matched (e.g. it can also fire when REBUILDING won the earlier branch). If either condition is edited in the future without updating the other, the state and caveat can silently diverge.

♻️ Suggested consolidation
+    materialization_pending = (
+        storage.final_shape_ready and storage.archive_schema_ready and not storage.archive_materialization_ready
+    )
     if storage.archive_ready:
         state = CapabilityReadinessState.READY
     elif storage.active_rebuild_index_attempts:
         state = CapabilityReadinessState.REBUILDING
-    elif storage.final_shape_ready and storage.archive_schema_ready and not storage.archive_materialization_ready:
+    elif materialization_pending:
         state = CapabilityReadinessState.STALE
     elif storage.final_shape_ready or storage.schema_mismatches:
         state = CapabilityReadinessState.BLOCKED
     ...
-    if storage.final_shape_ready and storage.archive_schema_ready and not storage.archive_materialization_ready:
+    if materialization_pending:
         caveats += ("materialization_pending",)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/daemon/status.py` around lines 1742 - 1763, The
_component_from_archive_storage helper repeats the same stale/materialization
condition in both the state selection and the caveat assembly, which can let
them drift apart. Consolidate the shared check into a single local flag or
branch in _component_from_archive_storage, and use that same result both to
choose CapabilityReadinessState.STALE and to append the materialization_pending
caveat only when that branch is the one that applied.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@polylogue/daemon/convergence_stages.py`:
- Around line 1303-1312: The LIMIT in
_schema_archive_session_ids_missing_profiles() is being applied before
stale-session filtering, so fresh sessions can consume the quota and block later
stale ones from ever being returned. Move the stale-session predicate into the
SQL built in this helper so the query itself filters to sessions missing
profiles before applying LIMIT, and keep the existing _table_exists and
_archive_stale_session_profile_ids flow aligned with that result set.

In `@polylogue/daemon/fts_startup.py`:
- Around line 151-167: The READY-path in _message_fts_freshness_row_ready_sync
currently records a stale 0/0 surface state when freshness_row has source_rows
and indexed_rows both zero but blocks.search_text is populated. Add the same
zero/zero docsize-populated guard used in the STALE branch before calling
record_fts_surface_state_sync, and redirect this case to recompute or preserve
the real drift instead of writing misleading 0/0 counts.

In `@polylogue/daemon/status.py`:
- Around line 1764-1771: The repair hint selection in the status flow is too
narrow because the `storage.schema_mismatches` check only matches when the list
is exactly `["index"]`. Update the logic in the `repair_hint` block so the
targeted index reset hint is chosen whenever `"index"` appears in
`storage.schema_mismatches`, even if other tiers are also mismatched, while
keeping the existing `missing_tiers` and fallback branches in `status.py`
intact.

---

Outside diff comments:
In `@polylogue/daemon/status.py`:
- Around line 1742-1763: The _component_from_archive_storage helper repeats the
same stale/materialization condition in both the state selection and the caveat
assembly, which can let them drift apart. Consolidate the shared check into a
single local flag or branch in _component_from_archive_storage, and use that
same result both to choose CapabilityReadinessState.STALE and to append the
materialization_pending caveat only when that branch is the one that applied.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 106eee10-28c6-47fb-8faf-e48780db9a54

📥 Commits

Reviewing files that changed from the base of the PR and between 57d35bd and 8c932ce.

📒 Files selected for processing (25)
  • .beads/issues.jsonl
  • docs/plans/topology-target.yaml
  • docs/topology-status.md
  • polylogue/cli/commands/status.py
  • polylogue/cli/convergence_feedback.py
  • polylogue/daemon/cli.py
  • polylogue/daemon/convergence_stages.py
  • polylogue/daemon/embedding_backlog.py
  • polylogue/daemon/fts_startup.py
  • polylogue/daemon/status.py
  • polylogue/readiness/capability.py
  • polylogue/sources/live/batch.py
  • polylogue/sources/live/session_convergence.py
  • polylogue/storage/archive_readiness.py
  • polylogue/storage/embeddings/status_payload.py
  • tests/unit/cli/test_convergence_feedback.py
  • tests/unit/cli/test_convergence_surface_contract.py
  • tests/unit/cli/test_embed_status_fast.py
  • tests/unit/cli/test_status.py
  • tests/unit/core/test_readiness_capability.py
  • tests/unit/daemon/test_convergence_stages.py
  • tests/unit/daemon/test_daemon_cli.py
  • tests/unit/daemon/test_daemon_status.py
  • tests/unit/daemon/test_embedding_convergence_progress.py
  • tests/unit/sources/test_live_batch_convergence.py
💤 Files with no reviewable changes (2)
  • polylogue/sources/live/session_convergence.py
  • polylogue/sources/live/batch.py

Comment thread polylogue/daemon/convergence_stages.py Resolved
Comment on lines +151 to 167
if freshness_row is not None and str(freshness_row[0]) == READY:
logger.warning("daemon: archive message FTS startup readiness found inconsistent ready freshness ledger")
_record_message_fts_surface_debt(db_path, "startup found inconsistent messages_fts ready freshness ledger")
recorded_source_rows = _int_or_zero(freshness_row[1])
recorded_indexed_rows = _int_or_zero(freshness_row[2])
record_fts_surface_state_sync(
conn,
surface="messages_fts",
state=STALE,
source_rows=_int_or_zero(freshness_row[1]),
indexed_rows=_int_or_zero(freshness_row[2]),
missing_rows=_int_or_zero(freshness_row[3]),
excess_rows=_int_or_zero(freshness_row[4]),
source_rows=recorded_source_rows,
indexed_rows=recorded_indexed_rows,
missing_rows=max(_int_or_zero(freshness_row[3]), recorded_source_rows - recorded_indexed_rows, 0),
excess_rows=max(_int_or_zero(freshness_row[4]), recorded_indexed_rows - recorded_source_rows, 0),
duplicate_rows=_int_or_zero(freshness_row[5]),
detail=_MESSAGE_FTS_STARTUP_DEBT_DETAIL,
)
return True

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Confirm freshness_ready_record_trusted's zero-count semantics that determine
# whether a READY row with 0/0 counts can reach the line-151 branch.
rg -n -A 25 'def freshness_ready_record_trusted' polylogue/storage/fts/freshness.py

Repository: Sinity/polylogue

Length of output: 1152


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== freshness_ready_record_trusted ==\n'
sed -n '64,110p' polylogue/storage/fts/freshness.py

printf '\n== message FTS startup branches ==\n'
sed -n '130,215p' polylogue/daemon/fts_startup.py

printf '\n== _message_fts_freshness_row_ready_sync ==\n'
sed -n '298,360p' polylogue/daemon/fts_startup.py

Repository: Sinity/polylogue

Length of output: 8673


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '215,290p' polylogue/daemon/fts_startup.py

Repository: Sinity/polylogue

Length of output: 2789


Handle the zero/zero docsize-populated case here too. _message_fts_freshness_row_ready_sync() can route a READY row with source_rows=0/indexed_rows=0 and populated blocks.search_text into this branch, so it will write stale 0/0 counts and miss the actual drift. Mirror the STALE-branch guard before recording the surface state.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/daemon/fts_startup.py` around lines 151 - 167, The READY-path in
_message_fts_freshness_row_ready_sync currently records a stale 0/0 surface
state when freshness_row has source_rows and indexed_rows both zero but
blocks.search_text is populated. Add the same zero/zero docsize-populated guard
used in the STALE branch before calling record_fts_surface_state_sync, and
redirect this case to recompute or preserve the real drift instead of writing
misleading 0/0 counts.

Comment on lines 1764 to +1771
repair_hint = None
if state is not CapabilityReadinessState.READY:
repair_hint = (
"polylogue ops reset --index && polylogued run"
if storage.schema_mismatches == ["index"]
else "polylogue ops maintenance archive-init --yes"
)
if storage.schema_mismatches == ["index"]:
repair_hint = "polylogue ops reset --index && polylogued run"
elif storage.missing_tiers:
repair_hint = "polylogue ops maintenance archive-init --yes"
else:
repair_hint = "polylogued run"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Map the relevant file first, then inspect the surrounding logic and the source of schema_mismatches.
ast-grep outline polylogue/daemon/status.py --view expanded | sed -n '1,220p'

printf '\n--- status.py around repair_hint ---\n'
sed -n '1740,1785p' polylogue/daemon/status.py

printf '\n--- search for schema_mismatches definitions/usages ---\n'
rg -n "schema_mismatches" polylogue | sed -n '1,200p'

Repository: Sinity/polylogue

Length of output: 14971


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the type and construction of storage schema mismatch data if it lives elsewhere.
rg -n "class .*Storage|schema_mismatch|missing_tiers|CapabilityReadinessState" polylogue | sed -n '1,220p'

Repository: Sinity/polylogue

Length of output: 13781


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# If schema_mismatches is a list/set derived from a structured source, inspect the relevant builder.
rg -n "schema_mismatches\s*=|schema_mismatches:|mismatches" polylogue | sed -n '1,240p'

Repository: Sinity/polylogue

Length of output: 2988


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Look for tier-specific reset/repair commands and any docs that constrain when --index applies.
rg -n "reset --index|archive-init|schema_mismatch:|missing_tiers|repair_hint|reset.*index|index reset" polylogue | sed -n '1,260p'

printf '\n--- archive_layout blockers/order ---\n'
sed -n '1,140p' polylogue/storage/archive_layout.py

printf '\n--- metrics builder for schema_mismatches ---\n'
sed -n '1470,1545p' polylogue/daemon/metrics.py

Repository: Sinity/polylogue

Length of output: 14890


Broaden the index repair hint. storage.schema_mismatches collects all mismatched tiers, so == ["index"] only matches when index is the only one. If the index reset still applies when other tiers also mismatch, use "index" in storage.schema_mismatches so the targeted hint isn’t skipped.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@polylogue/daemon/status.py` around lines 1764 - 1771, The repair hint
selection in the status flow is too narrow because the
`storage.schema_mismatches` check only matches when the list is exactly
`["index"]`. Update the logic in the `repair_hint` block so the targeted index
reset hint is chosen whenever `"index"` appears in `storage.schema_mismatches`,
even if other tiers are also mismatched, while keeping the existing
`missing_tiers` and fallback branches in `status.py` intact.

Sinity added 5 commits July 4, 2026 06:28
Problem: the normal watched daemon could detect stale derived debt at startup but fail to repair it automatically. The convergence-debt retry loop slept before its first pass, and live archive evidence showed FTS repair could also turn ordinary SQLite writer contention into a noisy hard failure instead of deferred retry work.

What changed: run the convergence-debt retry immediately after the catch-up gate, schedule the retry loop on the watched daemon maintenance gate, and make archive FTS session/global repair use the daemon write connection profile while classifying transient SQLite locks as deferred convergence work.

Verification: devtools test tests/unit/daemon/test_convergence_stages.py::test_fts_session_debt_uses_targeted_repair_not_full_rebuild tests/unit/daemon/test_convergence_stages.py::test_archive_fts_session_repair_defers_sqlite_lock tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_defers_sqlite_lock tests/unit/daemon/test_daemon_cli.py::test_drain_convergence_debt_retries_global_messages_fts_surface tests/unit/daemon/test_daemon_cli.py::test_periodic_convergence_check_treats_sqlite_lock_as_archive_busy tests/unit/daemon/test_daemon_cli.py::test_periodic_convergence_check_waits_for_catch_up_complete tests/unit/daemon/test_daemon_cli.py::test_periodic_convergence_check_warns_on_non_lock_failures tests/unit/daemon/test_daemon_cli.py::test_run_daemon_services_waits_for_fts_startup_before_watcher; devtools verify --quick
Problem: daemon-owned messages_fts surface convergence treated stale global freshness as a structural FTS reset. On the live archive that could create a large WAL, provide no progress signal, and compete poorly with normal watched ingest even when the actual debt was missing FTS rows.

What changed: route daemon global messages_fts surface repair through the existing bounded missing-row repair substrate with daemon repair pragmas and an outcome log. Transient SQLite locks still defer to the next convergence retry.

Verification: devtools test tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_inserts_missing_rows_without_reset tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_defers_sqlite_lock tests/unit/daemon/test_convergence_stages.py::test_fts_session_debt_uses_targeted_repair_not_full_rebuild tests/unit/daemon/test_daemon_cli.py::test_drain_convergence_debt_retries_global_messages_fts_surface; devtools verify --quick
Problem: live daemon evidence showed messages_fts surface convergence still front-loaded exact full-archive counts and allowed per-session retries to run before the global FTS invariant. On the active archive this made automatic convergence expensive, opaque, and easy to starve behind live session churn.

What changed: make the shared missing-row FTS insert primitive optionally skip before/after exact counts and emit progress callbacks; daemon global messages_fts repair now inserts missing rows in rowid windows with progress logs, then records the exact freshness snapshot after the bounded write pass. The debt drain handles fts_surface debts before path/session debts.

Verification: devtools test tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_inserts_missing_rows_without_reset tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_defers_sqlite_lock tests/unit/daemon/test_daemon_cli.py::test_drain_convergence_debt_retries_global_messages_fts_surface tests/unit/daemon/test_daemon_cli.py::test_drain_convergence_debt_retries_session_subjects_without_source_lookup tests/unit/storage/test_fts_repair_sql.py; devtools verify --quick
Problem: after making convergence debt retry part of the watched daemon maintenance gate, the older watcher-specific retry task was still started. Live daemon logs showed overlapping messages_fts rowid scans restarting from the beginning while another pass was active.

What changed: remove the duplicate watcher-local convergence retry task and assert the watched daemon starts exactly one convergence loop after FTS startup.

Verification: devtools test tests/unit/daemon/test_daemon_cli.py::test_run_daemon_services_waits_for_fts_startup_before_watcher tests/unit/daemon/test_daemon_cli.py::test_drain_convergence_debt_retries_global_messages_fts_surface tests/unit/daemon/test_daemon_cli.py::test_periodic_convergence_check_waits_for_catch_up_complete tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_inserts_missing_rows_without_reset tests/unit/storage/test_fts_repair_sql.py; devtools verify --quick
Problem: the live archive daemon could retry message FTS convergence with bounded missing-row inserts, but the observed active archive drift was the inverse shape: messages_fts_docsize held 131 rows whose canonical blocks were no longer indexable. That left search readiness stale even though coverage rounded to 100%, and the only previous whole-surface helper was too rebuild-shaped for normal daemon convergence.

What changed: add a bounded excess-row query and deletion helper for the block-backed message FTS surface, run that helper before bounded missing-row insertion in the daemon global FTS convergence stage, and keep the existing reset/rebuild helper out of the automatic retry path.

Verification: devtools test tests/unit/storage/test_fts_repair_sql.py::test_excess_fts_repair_deletes_orphan_docsize_rows tests/unit/storage/test_fts_repair_sql.py::test_missing_fts_repair_commits_and_checkpoints_batches tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_deletes_excess_rows_without_reset tests/unit/daemon/test_convergence_stages.py::test_archive_fts_global_repair_inserts_missing_rows_without_reset tests/unit/daemon/test_daemon_cli.py::test_drain_convergence_debt_retries_global_messages_fts_surface; devtools verify --quick
github-actions Bot pushed a commit that referenced this pull request Jul 4, 2026
Sinity and others added 8 commits July 4, 2026 21:46
Problem: the coordination envelope from s7ae.1 was useful for JSON and agent flows, but the human-facing CLI and web surfaces still lacked a mission-control projection. That left polylogue-bby.9 at risk of becoming a web-specific silo instead of a renderer over the shared envelope.

What changed: add markdown and tree renderers over AgentCoordinationPayload, expose them through polylogue agents --format, publish /api/agents/coordination as a daemon route, and add a Mission inspector tab fed by that route. Regenerated OpenAPI and topology docs, and updated Beads state for the active bby.9 phase.

Verification: devtools test tests/unit/cli/test_agents_command.py tests/unit/coordination/test_envelope.py tests/unit/daemon/test_route_contracts.py tests/unit/daemon/test_web_reader.py -k 'agents or coordination or route_contract or required_regions or agent_coordination_endpoint' -> 101 passed, 136 deselected. devtools verify --quick -> run 20260704T193817Z-quick-1336893-8b779ddf. Live active-archive proofs wrote /realm/tmp/polylogue-agent-mission-control.{md,tree.txt,web.json} against /home/sinity/.local/share/polylogue schema v24. Residual bby.9 scope remains for first-class subagent dispatch/final-message and context-flow refs, likely through polylogue-s7ae.4.
Swarm-audited backlog upgrade (41 agents -> single-writer apply):
- Populate empty 1xc scale epic (7 children); new epics for usage/cost (f2qv),
  config-doctrine (w8db), security (kwsb), operational-resilience (8jg9),
  capture-extension (jlme), interop (l4kf), substrate-consolidation (a7xr).
- Promote cpf to doctrine epic (+3 enforcement-hook beads).
- Fill 35 acceptance/design gaps; add 48 dep edges (fix dangling emb-* aliases,
  reverse backwards mhx.1<->37t.5); reparent 74 orphans; 5 reprioritizations.
- Close s7ae.1 + 3 resolved-doctrine decisions (jgp/6mv/lnd); retype f94/gjg/
  20d.4/7aw; file verify-gap, migration-framework, test-debt, docs-reconcile,
  and a standing backlog-hygiene-invariant bead.
- 6 GitHub mirror issues closed (Beads authoritative).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01QVLKfkZYCUfXPwS67pxmBo
Problem: the coordination envelope exposed live repo/process/Beads state but did not include the archive-derived session tree, activity, proof, or context-flow refs required by the mission-control and multi-agent proof work.

What changed: add bounded archive-evidence payloads, compose them read-only from current v24 index tables, surface them through CLI/MCP/web renderers, and preserve schema-health-only degradation when archive evidence is absent.

Verification: devtools test tests/unit/coordination/test_envelope.py tests/unit/mcp/test_agent_coordination.py tests/unit/cli/test_agents_command.py tests/unit/daemon/test_web_reader.py -k 'coordination or agent_coordination or mission' -> 9 passed, 140 deselected. devtools verify --quick -> passed run 20260704T195750Z-quick-1419311-64a8296a. Live active-archive artifacts under /realm/tmp/polylogue-agent-coordination-archive-evidence.* show session_trees=1, activity_episodes=5, proof_refs=5, context_flow_refs=1 against schema v24.
Problem: devloop-review and devloop-status treated the browser-capture spool parent as the branch-local run directory. The current dev-loop launcher nests the spool under xdg-data/polylogue/browser-capture, so a current daemon was falsely reported as stale.

What changed: walk upward from --spool until the directory name contains the current short HEAD, falling back to the immediate parent when no stamped run directory is present.

Verification: bash -n .agent/scripts/devloop-review .agent/scripts/devloop-status; .agent/scripts/devloop-review -> clean after relaunching the current-code dev daemon.
Problem: Beads task state had accumulated coordination-envelope closure and current Hermes ownership changes across the devloop, but those tracker updates were not yet committed.

What changed: commit the .beads issue state as a standalone tracker sync so product/source commits stay reviewable.

Verification: devtools verify --quick passed in run 20260704T202441Z-quick-1540835-b73c6101; no product source is included in this commit.
Problem: the architecture docs still described schema handling as a single fresh-first policy, while the branch now distinguishes durable source/user tiers from rebuildable derived tiers.

What changed: document the two-regime model: additive numbered migrations with backup manifests for durable tiers, derived-tier rebuild/blue-green replacement for index and embeddings tiers, and the narrow ops.db bootstrap exception. The generated AGENTS.md copy was refreshed from the docs source.

Verification: devtools verify --quick passed in run 20260704T202441Z-quick-1540835-b73c6101.
Problem: Hermes' durable session source is ~/.hermes/state.db, but Polylogue only understood older JSON snapshot-style Hermes documents. That left normal import, watcher, and daemon convergence blind to the authoritative local state.

What changed: add a Hermes state.db parser for sessions, messages, tool calls, reasoning, lineage, cost, and disjoint token/cache/reasoning lanes; route SQLite marker payloads through provider detection and raw-payload classification; teach path import to snapshot live SQLite databases through the backup API; let watcher/live batch acquisition recognize ~/.hermes/state.db; and update provider/onboarding documentation plus topology metadata. The older JSON Hermes document parser remains a fallback for exported snapshots.

Verification: devtools test tests/unit/sources/test_parsers_local_agent.py tests/unit/sources/test_live_watcher_catchup_order.py tests/unit/cli/test_import.py -k 'hermes or import_command_snapshots or default_sources_watch_hermes' -> 8 passed, 28 deselected. devtools verify --quick -> passed run 20260704T202441Z-quick-1540835-b73c6101. Ref polylogue-fs1.1.
Problem: Beads command interactions are part of the durable task audit trail and were updated while closing polylogue-fs1.1.

What changed: commit the generated interactions log separately from product code so the source change remains reviewable.

Verification: preceding Hermes importer commit passed focused Hermes tests and devtools verify --quick run 20260704T202441Z-quick-1540835-b73c6101.
github-actions Bot pushed a commit that referenced this pull request Jul 4, 2026
Sinity and others added 2 commits July 4, 2026 22:30
architecture-spine.md and internals.md still described a single fresh-first
'no in-place upgrade chains' doctrine, contradicting the shipped durable-tier
additive migration framework (migrations/{source,user}/, migration_runner.py)
and internals.md's own two-regime section. Rewrite the spine decision and the
internals summary to state both regimes (durable=additive numbered migrations
behind a backup gate; derived=rebuild/blue-green); repoint architecture.md from
the superseded execution-plan.md to the Beads backlog. Ref polylogue-3tl.13.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01QVLKfkZYCUfXPwS67pxmBo
- Discharge the frontier AC-drought: 39 P0/P1/ready-P2 beads gain execution-grade
  acceptance (+design where null), each criterion naming a verify command;
  0 frontier beads remain null-acc.
- Prose->edges: 21 dependency edges extracted from design narrative (5 blocks,
  16 relates-to), cycle-checked against the live graph.
- False-block sweep: 17 stale blocks-edges to closed beads removed (un-hide the
  ready frontier). Wave coherence: 21 beads retagged (real frontier -> wave:1).
- Reality: close z7rv (migration framework already shipped 5b28e91); narrow
  1xc.2 to its residual (source.db still in default reset deletion set + guard).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01QVLKfkZYCUfXPwS67pxmBo
@Sinity Sinity changed the title feat(storage): add migrations and capture fixes feat: integrate archive convergence and capture platform Jul 4, 2026
@Sinity
Sinity merged commit 3498981 into master Jul 4, 2026
18 checks passed
@Sinity
Sinity deleted the feature/chore/schema-evolution-v2 branch July 4, 2026 20:52
@github-actions github-actions Bot mentioned this pull request Jul 5, 2026
Sinity pushed a commit that referenced this pull request Jul 11, 2026
Automated release PR opened by release-please. See
[docs/release.md](docs/release.md).
---


## [0.2.0](https://github.com/Sinity/polylogue/compare/v0.1.0...v0.2.0)
(2026-07-11)


### Added

* **analytics:** delegation enabling primitive + view (1vpm.1 phases
1-2) ([#2607](https://github.com/Sinity/polylogue/issues/2607))
([09dc46c](https://github.com/Sinity/polylogue/commit/09dc46c26648e7b90de3acf03e3efbf82f10dafc))
* **analyze:** add corpus-wide sanitized portfolio report
([#2437](https://github.com/Sinity/polylogue/issues/2437))
([#2451](https://github.com/Sinity/polylogue/issues/2451))
([d101a37](https://github.com/Sinity/polylogue/commit/d101a37c989177dc9d8a2b49a241a7a4818697ac))
* **archive:** preserve structured session evidence
([#2496](https://github.com/Sinity/polylogue/issues/2496))
([e55c675](https://github.com/Sinity/polylogue/commit/e55c675aaeee8c565c7cd1bb7276af7fccc2866d))
* **browser-capture:** add gated post commands
([#2494](https://github.com/Sinity/polylogue/issues/2494))
([79a8ac0](https://github.com/Sinity/polylogue/commit/79a8ac097aa68304bdb5b3e53ef1c1a7d6556afd))
* **browser-extension:** capture retry queue, receiver health probe,
popup outcomes
([#2671](https://github.com/Sinity/polylogue/issues/2671))
([67f522b](https://github.com/Sinity/polylogue/commit/67f522bd54762ad9a387ab4eadde1850806b4059))
* **capture:** acquire assistant-produced file bytes at capture time
([#2669](https://github.com/Sinity/polylogue/issues/2669))
([8db8d60](https://github.com/Sinity/polylogue/commit/8db8d60b34565f23ced411b786b252b6a4473b00))
* **cli:** add full message read export
([0d63cd6](https://github.com/Sinity/polylogue/commit/0d63cd6cc2c3aac5055535c7f9e30fe8a273a356))
* converge dogfood branch state
([#2504](https://github.com/Sinity/polylogue/issues/2504))
([d40d00a](https://github.com/Sinity/polylogue/commit/d40d00a312e5530a76e3e1ba29f3ddc37ce89d82))
* **coordination:** render subagent exchanges
([#2545](https://github.com/Sinity/polylogue/issues/2545))
([a35bd6d](https://github.com/Sinity/polylogue/commit/a35bd6d97eafef647cf016998437c49d5aca98bc))
* **cost:** price current Opus 4.7/4.8 flagships
([#2445](https://github.com/Sinity/polylogue/issues/2445))
([fbb8f09](https://github.com/Sinity/polylogue/commit/fbb8f09187ae013b6a27db01e2961440f507cacb))
* **demo:** enrich demo cost and fix profile token-lane round-trip
([#2446](https://github.com/Sinity/polylogue/issues/2446))
([05f8c98](https://github.com/Sinity/polylogue/commit/05f8c980c5c516bec358abcdd841edbf742c1e07))
* **demo:** give demo session a canonical repo for repos_touched
([#2447](https://github.com/Sinity/polylogue/issues/2447))
([b73f01d](https://github.com/Sinity/polylogue/commit/b73f01db8e2f008bee5801f17a297d80867a105d))
* **demo:** Incident 14:32 constructs — source outage, cross-material
duplicate, compaction omission
([#2674](https://github.com/Sinity/polylogue/issues/2674))
([8c15e86](https://github.com/Sinity/polylogue/commit/8c15e86127ba15454c667ccae0c7c1318d0050cc))
* **demo:** materialize session insights in no-daemon seed
([#2439](https://github.com/Sinity/polylogue/issues/2439))
([21951de](https://github.com/Sinity/polylogue/commit/21951de986200babb056d1f9c77ad17758ec4fad))
* **demo:** one-command receipts proof, enforced public-claims gate,
corpus v2 ([#2662](https://github.com/Sinity/polylogue/issues/2662))
([529fc43](https://github.com/Sinity/polylogue/commit/529fc43979d7e3292252529925ba2009a4ddfa23))
* **demo:** package claim evidence reproduction
([678f3d6](https://github.com/Sinity/polylogue/commit/678f3d6805b664ef47b1d8350ed81549a01bb9e0))
* **devtools:** accept bead: owners in coverage-manifest gap records
([#2611](https://github.com/Sinity/polylogue/issues/2611))
([10a1212](https://github.com/Sinity/polylogue/commit/10a1212f4b17b9359494949dccb032456f26c4ef))
* **devtools:** add bench ingest-throughput wall-clock benchmark
([#2490](https://github.com/Sinity/polylogue/issues/2490))
([d415412](https://github.com/Sinity/polylogue/commit/d415412d7d68008a92296f6f6dd29f53b4cb7a10))
* **devtools:** add claim-vs-evidence demo report
([af4915d](https://github.com/Sinity/polylogue/commit/af4915d11bea6c81eda0da5521932a9c7d150890))
* **devtools:** add cost reconciliation probe
([153dab3](https://github.com/Sinity/polylogue/commit/153dab3eaf721b82ffce37ac14174d12e91abc1d))
* **devtools:** add full-body read package projection
([0e83712](https://github.com/Sinity/polylogue/commit/0e837125aa425a8c6f8015cbeeb1b5231a01ebb6))
* **devtools:** catch subcommand/flag drift in verify doc-commands
([#2442](https://github.com/Sinity/polylogue/issues/2442))
([0d5a3bb](https://github.com/Sinity/polylogue/commit/0d5a3bb6ee3c18e1abc4690a249aa465d0ce5e9d))
* **devtools:** classify affordance surface usage
([fb4eab8](https://github.com/Sinity/polylogue/commit/fb4eab84989d6eee4aaab86f8eb0e05d7dcfba95))
* **devtools:** compare Claude usage grains
([2abe147](https://github.com/Sinity/polylogue/commit/2abe1478401ffe117df71e0c019a62f7a2152945))
* **devtools:** Demo Finding Packet contract + registry lint
([#2589](https://github.com/Sinity/polylogue/issues/2589))
([4e49b6c](https://github.com/Sinity/polylogue/commit/4e49b6ccd03a63ffed2b50a878a882131f79801e))
* **devtools:** enforce production writer ownership
([#2682](https://github.com/Sinity/polylogue/issues/2682))
([f314e81](https://github.com/Sinity/polylogue/commit/f314e812ec64b43bd50be04a8f825fc9402f7c14))
* **devtools:** expose cost probe residual metadata
([a6ecbaf](https://github.com/Sinity/polylogue/commit/a6ecbaf0a6d3aa7eba2da525cad14dca056a6a4c))
* **devtools:** instrument ingest with cpu/memory/io/stage metrics
([#2491](https://github.com/Sinity/polylogue/issues/2491))
([52b5bc0](https://github.com/Sinity/polylogue/commit/52b5bc038a0bd959563cf61db4a1e0fd15001ea3))
* **devtools:** show Claude lineage in cost residuals
([76f56a4](https://github.com/Sinity/polylogue/commit/76f56a46263278ec089d389dae54769e5854c702))
* **devtools:** show logical usage grain in cost probe
([77543d4](https://github.com/Sinity/polylogue/commit/77543d449515b036954216cb6349b5c6ed5eb7ee))
* **devtools:** summarize Codex state outlier flags
([ab72066](https://github.com/Sinity/polylogue/commit/ab72066dc528bedc06b1e1b6da01554ac0dec629))
* **devtools:** timestamp-doctrine lint for durable-tier DDL
([#2601](https://github.com/Sinity/polylogue/issues/2601))
([6c12e92](https://github.com/Sinity/polylogue/commit/6c12e92348d6e67db212462573ff939110996395))
* **export:** add fail-closed sanitized shareable export
([#2381](https://github.com/Sinity/polylogue/issues/2381))
([#2433](https://github.com/Sinity/polylogue/issues/2433))
([f5ab219](https://github.com/Sinity/polylogue/commit/f5ab2195558823fd01d6db432a32e1768d6ba930))
* **export:** add sanitized spans-jsonl bundle leg
([#2434](https://github.com/Sinity/polylogue/issues/2434))
([#2455](https://github.com/Sinity/polylogue/issues/2455))
([c4b6771](https://github.com/Sinity/polylogue/commit/c4b677181847375d9636cb9448e3accbf4688595))
* **export:** redact Windows paths and emails in sanitized export
([#2444](https://github.com/Sinity/polylogue/issues/2444))
([c05e83e](https://github.com/Sinity/polylogue/commit/c05e83ee9d1c2a8605f48f2d640749c0ddae62db))
* **forensics:** price origin-reported usage
([f859356](https://github.com/Sinity/polylogue/commit/f859356a56dde0229e846c6aa838b21e60ecd74c))
* **insights:** add usage timeline read model
([56f38ef](https://github.com/Sinity/polylogue/commit/56f38ef6653f9e2937983d9554270188ef1adae8))
* **insights:** deterministic agent-workflow pathology detectors
([#2448](https://github.com/Sinity/polylogue/issues/2448))
([72d0623](https://github.com/Sinity/polylogue/commit/72d0623ea331f5348ceb7c6fde61e7c6ce41d200))
* **insights:** expose pathology distribution via API + MCP tool
([#2383](https://github.com/Sinity/polylogue/issues/2383))
([#2449](https://github.com/Sinity/polylogue/issues/2449))
([e7a39b3](https://github.com/Sinity/polylogue/commit/e7a39b37fb0de39ba103bb4633bce8d4ba90da23))
* install and monitor harness hooks
([#2644](https://github.com/Sinity/polylogue/issues/2644))
([7e6123c](https://github.com/Sinity/polylogue/commit/7e6123cac3e5ed3c365ff9abb4fafe04deec3b9c))
* integrate archive convergence and capture platform
([#2534](https://github.com/Sinity/polylogue/issues/2534))
([3498981](https://github.com/Sinity/polylogue/commit/349898106783020294e52e30d3a2296021094940))
* **lineage:** surface a completeness signal on composed reads
([#2603](https://github.com/Sinity/polylogue/issues/2603))
([c06ca60](https://github.com/Sinity/polylogue/commit/c06ca601c3e35eae8408425c3c6b27092aab3ea4))
* **maintenance:** bound index replay selections
([d98f126](https://github.com/Sinity/polylogue/commit/d98f1262c6df6b3c274d723a80850fe56594cffa))
* **maintenance:** replay source rows into index tier
([a549285](https://github.com/Sinity/polylogue/commit/a549285140be52fde995ff826cd9d8b1073d9589))
* **mcp:** add filtered message tail paging
([f64920f](https://github.com/Sinity/polylogue/commit/f64920f22bc8234af2bb506130c6bf5c418f0da9))
* **mcp:** expose postmortem bundle and sanitized export as agent tools
([#2443](https://github.com/Sinity/polylogue/issues/2443))
([66fb40a](https://github.com/Sinity/polylogue/commit/66fb40af5c4a7aeb8cde44b6b605414602e0d60c))
* normalize session lineage and correct cross-provider cost accounting
([#2469](https://github.com/Sinity/polylogue/issues/2469))
([7412b69](https://github.com/Sinity/polylogue/commit/7412b69a9b64863a1bf4df11d7feeb99f61262ff))
* **parsers:** capture Claude server_tool_use web request counts
([#2486](https://github.com/Sinity/polylogue/issues/2486))
([badd731](https://github.com/Sinity/polylogue/commit/badd73180f1e33db3bcf26db02800f4648e4a965))
* **query:** add Terminal pipeline stage; route verbs through one
executor ([#2006](https://github.com/Sinity/polylogue/issues/2006))
([#2463](https://github.com/Sinity/polylogue/issues/2463))
([fb9073c](https://github.com/Sinity/polylogue/commit/fb9073cfc801a6b4d8150e6998c96b966e39047c))
* **query:** attach evidence units to session results
([f76e700](https://github.com/Sinity/polylogue/commit/f76e7006f3d6fcda7206ff7bc67b572421f15e59))
* **query:** attach related units to session queries
([#2495](https://github.com/Sinity/polylogue/issues/2495))
([4a9c7a0](https://github.com/Sinity/polylogue/commit/4a9c7a07a12787a2b71a13f588b1b4dc835747a5))
* **query:** expose action followup classification
([c68c278](https://github.com/Sinity/polylogue/commit/c68c278ef9c5f212ca49c4a9d70215910aca1f4c))
* **query:** expose action outcome predicates
([8b0595d](https://github.com/Sinity/polylogue/commit/8b0595dcc29f88c04679f8da307a66d5a43b462c))
* **query:** expose projection unit completions
([03f9ffb](https://github.com/Sinity/polylogue/commit/03f9ffb727072ed87fd6b576dcf41784134f0682))
* **query:** select fields for attached projection units
([867b1d0](https://github.com/Sinity/polylogue/commit/867b1d0482aca870053b188648b2a1d92170efc0))
* **read-package:** expose handoff freshness metadata
([d7aa9e8](https://github.com/Sinity/polylogue/commit/d7aa9e81a5a662236f86d938a06f750f9e9a7b57))
* **read:** add projection render specs
([#2503](https://github.com/Sinity/polylogue/issues/2503))
([ce2f62a](https://github.com/Sinity/polylogue/commit/ce2f62ac65e6e7c29558a74f1dd10ba78d0999e2))
* **storage:** block content-hash citation anchors with typed resolver
([#2588](https://github.com/Sinity/polylogue/issues/2588))
([6974706](https://github.com/Sinity/polylogue/commit/6974706611cb18695a1b85924193724c8b3f93dd))
* **storage:** classify attachment acquisition debt separately from
source blobs ([#2586](https://github.com/Sinity/polylogue/issues/2586))
([b536fc3](https://github.com/Sinity/polylogue/commit/b536fc3aa57ed92b3b6ec2300e97d7bb3b0af247))
* **storage:** persist raw revision authority evidence
([#2681](https://github.com/Sinity/polylogue/issues/2681))
([2032b2c](https://github.com/Sinity/polylogue/commit/2032b2cb26c6000b2f7db7d07efb4a2176546bf1))
* **usage:** expose all-origin logical token rollups
([8ca374e](https://github.com/Sinity/polylogue/commit/8ca374e59b7863e7414b473a85bb73886e98eb92))
* **usage:** label logical model rollup grain
([a336b86](https://github.com/Sinity/polylogue/commit/a336b864c670397b941a757ede80ac1df430692d))
* **usage:** report pricing provenance lanes
([57263f9](https://github.com/Sinity/polylogue/commit/57263f9c8831221ad44842259b68f9a5ab012292))
* **web:** evidence-cockpit IA — four-verb navigation, landing view,
session evidence strip
([#2675](https://github.com/Sinity/polylogue/issues/2675))
([79fb50d](https://github.com/Sinity/polylogue/commit/79fb50d9450f24a52cb84c7d060265c6ca70f2cd))


### Fixed

* **agent:** align quick raw-debt status
([28db963](https://github.com/Sinity/polylogue/commit/28db9636e2843cdd6ebcd43de73259a2c233e096))
* **agent:** allow active devloop backlog
([5816a75](https://github.com/Sinity/polylogue/commit/5816a7599067cb5347cedf16b25a9d801c3cf039))
* **agent:** include raw debt in quick devloop status
([d5589c4](https://github.com/Sinity/polylogue/commit/d5589c418635a8cfcf3525419b54857e0d6ba722))
* **agent:** keep devloop probes on quick status
([7bd0440](https://github.com/Sinity/polylogue/commit/7bd044094b22e6d98eeb4bc0ec4fc1d20383f8ee))
* **agent:** keep quick status off raw debt scans
([2743c46](https://github.com/Sinity/polylogue/commit/2743c46fd680349060154e26b1b008eb51afac4b))
* **agent:** resolve devloop repo roots dynamically
([#2505](https://github.com/Sinity/polylogue/issues/2505))
([79290e6](https://github.com/Sinity/polylogue/commit/79290e6e6ea718aad5de0bb5d015eeb91c42699a))
* **archive:** report evidence and convergence honestly
([#2502](https://github.com/Sinity/polylogue/issues/2502))
([7120bde](https://github.com/Sinity/polylogue/commit/7120bde619a1ffaaef6a82afcba13de904adf80f))
* **attachments:** acquire Claude extracted payloads
([60d93b6](https://github.com/Sinity/polylogue/commit/60d93b618e2d8cbd73dce8176ee2c9267fdfb8af))
* batch deep-read defects — convergence probes, conn leaks, reset gate,
parser ([#2543](https://github.com/Sinity/polylogue/issues/2543))
([9ed21a6](https://github.com/Sinity/polylogue/commit/9ed21a613d3f5c036434bc44a7f953321c240a17))
* **beads:** add timestamp-aware guard against post-checkout/post-merge
revert
([209c9db](https://github.com/Sinity/polylogue/commit/209c9db223286a70667c6a1fc64063d9d704df28))
* bound daemon HTTP archive-query concurrency, add per-request timeout
([#2628](https://github.com/Sinity/polylogue/issues/2628))
([f6c1da9](https://github.com/Sinity/polylogue/commit/f6c1da997bea64bc6cd9670d9cbb8f7e7439ec51))
* **browser-capture:** bound the outbound post-command queue (gnie
[#4](https://github.com/Sinity/polylogue/issues/4))
([#2568](https://github.com/Sinity/polylogue/issues/2568))
([28a263f](https://github.com/Sinity/polylogue/commit/28a263fcd217a4b611824edab6649d6705e4be56))
* **browser-capture:** report stale archived captures
([c972c84](https://github.com/Sinity/polylogue/commit/c972c843400b3fde9504f409fbebe9295bd64123))
* **browser-capture:** require an auto-minted bearer token by default
([#2571](https://github.com/Sinity/polylogue/issues/2571))
([f39a7fb](https://github.com/Sinity/polylogue/commit/f39a7fb6c19899a8a134c8db846723fc276c0861))
* **browser-extension:** bound asset acquisition by wall-clock and
failure streaks
([#2672](https://github.com/Sinity/polylogue/issues/2672))
([73a0654](https://github.com/Sinity/polylogue/commit/73a0654aa115ae6e6af597f122dfbaa35c950507))
* **chatgpt:** strip inline citation markers; keep injected context
messages ([#2668](https://github.com/Sinity/polylogue/issues/2668))
([9f54f7f](https://github.com/Sinity/polylogue/commit/9f54f7faf6e06d4da95e387f69588629fbb90056))
* classify blockless thinking messages as reasoning
([#2634](https://github.com/Sinity/polylogue/issues/2634))
([bdc7b73](https://github.com/Sinity/polylogue/commit/bdc7b73ad8500319cf2c8c9084856be9a3beb840))
* **cli:** bound daemon fast-path probes
([f458002](https://github.com/Sinity/polylogue/commit/f458002985838c379074cd6f1e321395f581eddb))
* **cli:** bound root find row output
([54dd217](https://github.com/Sinity/polylogue/commit/54dd217a0b9733d8c050a5b306c578eae09143c4))
* **cli:** compact ops status JSON by default
([62862df](https://github.com/Sinity/polylogue/commit/62862dfaabbd4b3ef1c425a6a963332932b9a8cd))
* **cli:** count queried analyze results from search scope
([2726f5a](https://github.com/Sinity/polylogue/commit/2726f5a5a186299b336d3bb49cbc5c6fbcc6ae47))
* **cli:** honor JSON format for select
([#2517](https://github.com/Sinity/polylogue/issues/2517))
([3baa238](https://github.com/Sinity/polylogue/commit/3baa238f87b2e2f12be1f5aaa24093dcd208470a))
* **cli:** mark analyze totals as partial during convergence
([37e192b](https://github.com/Sinity/polylogue/commit/37e192b346e5ce45f1d2e00f73a4580b5ffabf54))
* **cli:** resolve exact refs before root search
([08d3a5b](https://github.com/Sinity/polylogue/commit/08d3a5b8867f70f7e4acd16a9ece60fc69eb122e))
* **cli:** route structured queries without FTS
([c58f93e](https://github.com/Sinity/polylogue/commit/c58f93e2b7b63612d0766585277ae933ae32436e))
* **cli:** warn when empty results may be partial
([41b7e74](https://github.com/Sinity/polylogue/commit/41b7e7409573cdb5fbe11b303e082a6b1aff856a))
* **codex:** omit inline image data from tool text
([6d3871f](https://github.com/Sinity/polylogue/commit/6d3871f871d9b592981ad758bbaec57cb7c675c3))
* **context:** coerce non-user assertion authors to candidate at one
chokepoint ([#2572](https://github.com/Sinity/polylogue/issues/2572))
([39f0765](https://github.com/Sinity/polylogue/commit/39f0765a536a1268f64890aae49d5c5576641423))
* **context:** enforce assertion guidance trust boundary
([#2677](https://github.com/Sinity/polylogue/issues/2677))
([ce65396](https://github.com/Sinity/polylogue/commit/ce65396c2c80da8a652feaf71748cec6f5a15549))
* **convergence:** classify stale raw parse failures
([884efb5](https://github.com/Sinity/polylogue/commit/884efb5f92d76b065bedc1d22cf8dc836fe31201))
* **convergence:** restore append-only raw blob spans
([cbb27fb](https://github.com/Sinity/polylogue/commit/cbb27fbd030ca78ff03b7947860ed106243ac081))
* **coordination:** compact agent status projections
([#2656](https://github.com/Sinity/polylogue/issues/2656))
([#2656](https://github.com/Sinity/polylogue/issues/2656))
([de7f2b9](https://github.com/Sinity/polylogue/commit/de7f2b90960f6fc9af2733c2625ed6af81280aa8))
* **coordination:** resolve logical caller identity
([#2665](https://github.com/Sinity/polylogue/issues/2665))
([#2665](https://github.com/Sinity/polylogue/issues/2665))
([cfa0839](https://github.com/Sinity/polylogue/commit/cfa0839d2b7d34dc7673f7d0cd777b1f2523d37e))
* **core:** consolidate 6 divergent _parse_archive_datetime copies
([#2567](https://github.com/Sinity/polylogue/issues/2567))
([f54e87e](https://github.com/Sinity/polylogue/commit/f54e87ea123bf89ae7a9c52be0fefc04d338ee7e))
* **cost:** bill subscription output credits at 5x input rate
([#2484](https://github.com/Sinity/polylogue/issues/2484))
([3c1bbb3](https://github.com/Sinity/polylogue/commit/3c1bbb3f3248a2013edb3d8933539add2587723c))
* **cost:** count Codex cumulative tokens per session, not per model
([#2489](https://github.com/Sinity/polylogue/issues/2489))
([22d8bb5](https://github.com/Sinity/polylogue/commit/22d8bb50789d6ebec0fe59ae26eec16920c506d0))
* **cost:** flag paid models missing a catalog cache rate instead of $0
([#2487](https://github.com/Sinity/polylogue/issues/2487))
([e851b33](https://github.com/Sinity/polylogue/commit/e851b33deed3a79f560704c00104349098fcd6e1))
* **cost:** keep Codex message token lanes disjoint
([#2647](https://github.com/Sinity/polylogue/issues/2647))
([8c9dfbb](https://github.com/Sinity/polylogue/commit/8c9dfbb0044ea73a1629731b14347d2ac56d3388))
* **daemon:** align browser capture spool watching
([3b90e9e](https://github.com/Sinity/polylogue/commit/3b90e9e33eb1e66f50e019a822a18622bc4f57ca))
* **daemon:** back off filtered retry paths
([c92ecd5](https://github.com/Sinity/polylogue/commit/c92ecd5f99588d3d4ac0ddf780d71343dbde759c))
* **daemon:** back off no-op catch-up chunks
([95fe147](https://github.com/Sinity/polylogue/commit/95fe1475b1012ac5b301e7a728b2cd2cb081a94e))
* **daemon:** back off no-op retry batches
([c982135](https://github.com/Sinity/polylogue/commit/c982135f96f41169651aac7f29fa8a5c9cf673fa))
* **daemon:** bound ordinary revision replay
([#2689](https://github.com/Sinity/polylogue/issues/2689))
([8030555](https://github.com/Sinity/polylogue/commit/803055541011a3057477d9a4ac9c6396b06890c8))
* **daemon:** close two stored-XSS bug classes in the web shell (2n39)
([#2569](https://github.com/Sinity/polylogue/issues/2569))
([7002c9f](https://github.com/Sinity/polylogue/commit/7002c9f2e818a96b82b5681bcf90bc23c8b84b41))
* **daemon:** decode session route ids
([42c3ed6](https://github.com/Sinity/polylogue/commit/42c3ed6fd4f01cfa1c8962d310a19ba2131647e2))
* **daemon:** default /api/provider-usage to headline detail, not full
([#2560](https://github.com/Sinity/polylogue/issues/2560))
([3306866](https://github.com/Sinity/polylogue/commit/33068663ab6c4e6ce10ada7f94881bb017e989e6))
* **daemon:** enable authority-safe raw convergence
([#2688](https://github.com/Sinity/polylogue/issues/2688))
([df559d8](https://github.com/Sinity/polylogue/commit/df559d8b3047f3db096a01e5c6b0ee6d7a2937ba))
* **daemon:** Host-admission gate, receiver hardening, spool governor
([#2559](https://github.com/Sinity/polylogue/issues/2559))
([bfd247d](https://github.com/Sinity/polylogue/commit/bfd247d5646c66786eacb8351874625eb2ba9b3a))
* **daemon:** mark active index rebuilds not ready
([cc4698a](https://github.com/Sinity/polylogue/commit/cc4698a885c84be2956e2ede650c0dd4870232e3))
* **daemon:** route web facets through facade
([2e02aa8](https://github.com/Sinity/polylogue/commit/2e02aa8e1fe794219b72b3257989e3fc9cab9138))
* **daemon:** serialize archive writers across runtime loops
([#2676](https://github.com/Sinity/polylogue/issues/2676))
([29e5b45](https://github.com/Sinity/polylogue/commit/29e5b45524b850d4bbdb28e1ba9731ab82377317))
* **daemon:** share bounded embedding readiness
([19e493b](https://github.com/Sinity/polylogue/commit/19e493b5785f62b570d71c8c3f8ae456abd6eadc))
* **debt:** classify empty Claude raw artifacts
([16c42ef](https://github.com/Sinity/polylogue/commit/16c42efb0d5ec2062749feabd0f1dd5c665cbf9c))
* **debt:** mark parsed raw materialization repairable
([3afc6e1](https://github.com/Sinity/polylogue/commit/3afc6e15ffe10c62ce65f30ff34637e5a8bd6f3b))
* **demo:** add acknowledgment-window sensitivity
([8a12256](https://github.com/Sinity/polylogue/commit/8a12256ad9f22939e6d86740a8a2b927f8f9bc98))
* **demo:** calibrate failure acknowledgment markers
([ca76f2d](https://github.com/Sinity/polylogue/commit/ca76f2df1071c71d93cce0a63e35195f35cc9695))
* **demo:** explain claim classifier decisions
([b4bb351](https://github.com/Sinity/polylogue/commit/b4bb351147880f7a650b1e8a168e6e05b6f3183b))
* **demo:** expose claim evidence samples by origin
([c75dc47](https://github.com/Sinity/polylogue/commit/c75dc4737e8dddcf863f81701ccba08c9ef2e62b))
* **demos:** close generated shelf over repository inputs
([#2651](https://github.com/Sinity/polylogue/issues/2651))
([#2651](https://github.com/Sinity/polylogue/issues/2651))
([c6aa6a0](https://github.com/Sinity/polylogue/commit/c6aa6a05d2a64309a2dbed52bbdda75d495e1441))
* **demo:** show claim evidence follow-up previews
([aef35bf](https://github.com/Sinity/polylogue/commit/aef35bfbb5340d015c9eae555f2adcf306d2978d))
* **demo:** split ambiguous failure follow-ups
([1d9187d](https://github.com/Sinity/polylogue/commit/1d9187d532b6fcafdfe33bfe41113e20f4eb24b8))
* **demo:** split failure outcomes by handler class
([6e35892](https://github.com/Sinity/polylogue/commit/6e35892a1d5b32f50b00cfdc0ad0d1cf73b5e042))
* **demo:** state claim sample frames explicitly
([4640501](https://github.com/Sinity/polylogue/commit/46405011f667290b3b2a5cdcb719805453f457d8))
* **demo:** stratify claim evidence samples by origin
([2ce5e2f](https://github.com/Sinity/polylogue/commit/2ce5e2f433bcfc677eb64053cfb5b9b0e0ffb6dd))
* **devloop:** enforce demo shelf currentness
([943aebd](https://github.com/Sinity/polylogue/commit/943aebd8945d6d5928c45c9397f4e0687173d618))
* **devtools:** align Claude cost probe to cache horizon
([e5d39c0](https://github.com/Sinity/polylogue/commit/e5d39c08f6b38e4edcda0ad4d82de1e85cd52e14))
* **devtools:** detect squash-equivalent worktrees
([#2501](https://github.com/Sinity/polylogue/issues/2501))
([f41e078](https://github.com/Sinity/polylogue/commit/f41e078903edd6327459a609364aeb9755f6a6ac))
* **devtools:** generate demo shelf navigation
([7aba1c8](https://github.com/Sinity/polylogue/commit/7aba1c8bf9d8765b948d198d20b30624e6ae93de))
* **devtools:** keep dev-loop daemon source-only
([c37cb0d](https://github.com/Sinity/polylogue/commit/c37cb0dc390c539e0a121993d1e970d7977c9587))
* **devtools:** key verify's stall detector off test-event progress
([#2581](https://github.com/Sinity/polylogue/issues/2581))
([85fa450](https://github.com/Sinity/polylogue/commit/85fa4505585b46c37b6c03c10121babf201e0e77))
* **docs:** repair generated pages links
([#2500](https://github.com/Sinity/polylogue/issues/2500))
([a9985f4](https://github.com/Sinity/polylogue/commit/a9985f4115d057c7de0842c1a23414492b3c1efe))
* **embed:** account for skipped catchup sessions
([f316d4b](https://github.com/Sinity/polylogue/commit/f316d4b10f9cd2ecd08b37a0128587dd61fea13f))
* **embed:** align status text fields
([6a4b4ca](https://github.com/Sinity/polylogue/commit/6a4b4ca4bba681f9177e72bc580e0f4eddb4e9e3))
* **embed:** avoid false zero cost in status detail
([510fe18](https://github.com/Sinity/polylogue/commit/510fe188f8ecf90cb77c1b1084c4a8303a692f68))
* **embed:** bound archive backfill windows
([1963a01](https://github.com/Sinity/polylogue/commit/1963a0129022162b1ea519fcb4e48e52483f2017))
* **embed:** bound archive pending windows after eligibility
([47cb6f9](https://github.com/Sinity/polylogue/commit/47cb6f9fcd1e509b03ab16d77104596ded6d49e8))
* **embed:** bound default archive status counts
([2562cd4](https://github.com/Sinity/polylogue/commit/2562cd4dc343bbe9091ac6811ea4d8ceffa080d2))
* **embed:** bound exact archive detail status
([d7403e2](https://github.com/Sinity/polylogue/commit/d7403e2ad6e1735a193035337be872dc90437e0d))
* **embed:** count only prose in embedding stats
([#2519](https://github.com/Sinity/polylogue/issues/2519))
([4601922](https://github.com/Sinity/polylogue/commit/46019227d125ae113d5bdad8fc7496d28ace082d))
* **embeddings:** count exact prose in pending windows
([6ae15a9](https://github.com/Sinity/polylogue/commit/6ae15a909ed107bb1d75f251f05d0c6a27f335b9))
* **embeddings:** detect same-count message edits
([d07627e](https://github.com/Sinity/polylogue/commit/d07627ebeffb41100d4da82a1390dd8645d4dcae))
* **embeddings:** preserve unknown status counts
([#2661](https://github.com/Sinity/polylogue/issues/2661))
([69990dc](https://github.com/Sinity/polylogue/commit/69990dcc873c2fc0a9c900861bb10db94b75f434))
* **embeddings:** report manual backfill progress
([3eb5efa](https://github.com/Sinity/polylogue/commit/3eb5efaa4fa7f53960a1fd50386c505f6bde1275))
* **embeddings:** reselect stale clean archive sessions
([b998ec4](https://github.com/Sinity/polylogue/commit/b998ec4cfc28cde2606c89631a451b3b0133fd47))
* **embeddings:** stop retrying terminal provider errors
([108d71f](https://github.com/Sinity/polylogue/commit/108d71f3e5abe826fd2f937b3010a3679ff7b002))
* **embed:** distinguish session and prose coverage
([c1c1b1a](https://github.com/Sinity/polylogue/commit/c1c1b1a4144cc6c27164e8ef56884fe0cec4897c))
* **embed:** emit structured backfill results
([#2518](https://github.com/Sinity/polylogue/issues/2518))
([2993141](https://github.com/Sinity/polylogue/commit/299314105b0747a3d16a9d1b187ab3b6cc4b3df4))
* **embed:** expose preflight min-message floor
([#2506](https://github.com/Sinity/polylogue/issues/2506))
([12e7cdf](https://github.com/Sinity/polylogue/commit/12e7cdfd2fa877b8c094d5a4560c68e3ceb7dc94))
* **embed:** keep backfill windows under message cap
([#2516](https://github.com/Sinity/polylogue/issues/2516))
([18df4c4](https://github.com/Sinity/polylogue/commit/18df4c457445c016d29c7a1ceecbcfcfa1c4624c))
* **embed:** keep bounded backfill windows cheap
([3441570](https://github.com/Sinity/polylogue/commit/344157058cab0eb23a64b1a74324d2b9e9cfee6b))
* **embed:** keep partial vectors retrieval-ready
([#2515](https://github.com/Sinity/polylogue/issues/2515))
([aa13e1f](https://github.com/Sinity/polylogue/commit/aa13e1f73f85eefe347d9f8869d0a2e98825c25b))
* **embed:** keep status responsive during backfill
([33dae38](https://github.com/Sinity/polylogue/commit/33dae38e0e39a86a4b7ab01f0c097a8f3fe940f3))
* **embed:** make status backfill actions executable
([9ec46c8](https://github.com/Sinity/polylogue/commit/9ec46c89dcaccecff10892961472e3ab77d23891))
* **embed:** persist archive backfill runs in ops
([093fd81](https://github.com/Sinity/polylogue/commit/093fd814455174299f0a7718b7485b30bcf3bf68))
* **embed:** report archive catchup session counts
([7eb514e](https://github.com/Sinity/polylogue/commit/7eb514e955006da5f9ead6db307f20338542dec4))
* **embed:** report archive embedding metadata fast
([b187f5d](https://github.com/Sinity/polylogue/commit/b187f5d1f65c14d969506853cc7ee501909416ba))
* **embed:** report archive embedding timestamp bounds
([1f0d6b8](https://github.com/Sinity/polylogue/commit/1f0d6b80f75f882da6ce56378770af4b0c69ad7c))
* **embed:** summarize uniform archive metadata fast
([6d3a84d](https://github.com/Sinity/polylogue/commit/6d3a84d3069247e6ca9bc79023ea98be73a4284c))
* **embed:** surface material catchup progress
([fc24f58](https://github.com/Sinity/polylogue/commit/fc24f58b53560c21074d6b40dc766244ea6a7c27))
* **embed:** treat completed sessions as embedded
([#2514](https://github.com/Sinity/polylogue/issues/2514))
([6cd054d](https://github.com/Sinity/polylogue/commit/6cd054d652cffcdf27860e769e9a15451cddd08b))
* **extension:** make capture popup readable
([1bfb0a3](https://github.com/Sinity/polylogue/commit/1bfb0a3138da769fc62a7c274321c29331afa62e))
* **extension:** stop automatic page capture
([a35d521](https://github.com/Sinity/polylogue/commit/a35d5210110b6df6a5adfdbee93ce35c4f79387f))
* **fts:** chunk missing-row repair
([6406558](https://github.com/Sinity/polylogue/commit/6406558618b2a0e216b5e131bfbc5f83a1b8f3d1))
* harden cloud bootstrap for sandbox lanes
([#2631](https://github.com/Sinity/polylogue/issues/2631))
([c68585b](https://github.com/Sinity/polylogue/commit/c68585b8bf3a8e83f57faa364fff108a23ed504a))
* **hermes:** make state database imports reproducible
([#2639](https://github.com/Sinity/polylogue/issues/2639))
([#2639](https://github.com/Sinity/polylogue/issues/2639))
([9e92b6b](https://github.com/Sinity/polylogue/commit/9e92b6b6d7656f315dd491b8f5f59049d104e868))
* **import:** keep newer session body on stale reimport
([9beac9a](https://github.com/Sinity/polylogue/commit/9beac9a5300125eb0f4362d8c8ce41ab033db6ac))
* **ingest:** finalize live raw parse state
([#2663](https://github.com/Sinity/polylogue/issues/2663))
([938c671](https://github.com/Sinity/polylogue/commit/938c671e5c5c68454b77592d84c0c726f53819e7))
* **ingest:** preserve richer browser captures
([c907759](https://github.com/Sinity/polylogue/commit/c9077590a279037c530dd309f37b886f9052c594))
* **ingest:** publish full results after raw completion
([#2664](https://github.com/Sinity/polylogue/issues/2664))
([0cccef1](https://github.com/Sinity/polylogue/commit/0cccef1df3b8618c6e6dbe3e3a4b6860ab8cebc3))
* **insights:** add text_derived provenance markers to forensic payloads
([#2579](https://github.com/Sinity/polylogue/issues/2579))
([90d3e31](https://github.com/Sinity/polylogue/commit/90d3e31747de58f3a7cd354866504ca4ec49ea2c))
* **insights:** audit every registered product, not just contracted ones
([#2573](https://github.com/Sinity/polylogue/issues/2573))
([7b5f846](https://github.com/Sinity/polylogue/commit/7b5f846f57073d931737962dcabc17d5ef962dc0))
* **insights:** render None, not 0.0, for averages over empty backing
rows ([#2585](https://github.com/Sinity/polylogue/issues/2585))
([f8f3e40](https://github.com/Sinity/polylogue/commit/f8f3e40a5b7f548e6a9530d3e9f48c9964345e79))
* **insights:** scope run-projection row refs
([#2539](https://github.com/Sinity/polylogue/issues/2539))
([b9d01d7](https://github.com/Sinity/polylogue/commit/b9d01d7aa34a9ee106c5122dbb8f4d2f1a8bd457))
* **insights:** stop laundering weak temporal provenance into
provider_ts ([#2558](https://github.com/Sinity/polylogue/issues/2558))
([89b14e5](https://github.com/Sinity/polylogue/commit/89b14e5876749fdc66f26745ce507ba76ebc788a))
* **insights:** treat run projections as optional cache
([40f22dd](https://github.com/Sinity/polylogue/commit/40f22dd804ab9dbfa610a8111ce0c5cd981b3dd0))
* **insights:** upsert run-projection rows on cross-session ref
collisions ([#2464](https://github.com/Sinity/polylogue/issues/2464))
([15f4f21](https://github.com/Sinity/polylogue/commit/15f4f21b63f662f13fb4f16b5379d7dfaad17627))
* **lineage:** hold one read transaction across composition
([#2594](https://github.com/Sinity/polylogue/issues/2594))
([0861717](https://github.com/Sinity/polylogue/commit/0861717015066fe602d363df2440afadec7deea3))
* **lineage:** iterative transcript composition, remove effective depth
cap ([#2542](https://github.com/Sinity/polylogue/issues/2542))
([1e4a694](https://github.com/Sinity/polylogue/commit/1e4a694382a7a76ec7b2391f9309d02ab1a595cf))
* **logging:** forward exc_info/extra in stdlib logger shim
([#2548](https://github.com/Sinity/polylogue/issues/2548))
([ee1a51c](https://github.com/Sinity/polylogue/commit/ee1a51cb69bb9bfcba7fd577a843c655a42e1e7a))
* **maintenance:** clear session insight debt
([5ab2352](https://github.com/Sinity/polylogue/commit/5ab23525d17df4ef5f5e295b90aeae3fcfa1f982))
* **maintenance:** ignore parsed raw sidecars
([#2511](https://github.com/Sinity/polylogue/issues/2511))
([1d5d112](https://github.com/Sinity/polylogue/commit/1d5d1126943648d18bfcb2c55520942e0f807347))
* **maintenance:** make index rebuilds plannable and FK-clean
([#2522](https://github.com/Sinity/polylogue/issues/2522))
([41d4bb4](https://github.com/Sinity/polylogue/commit/41d4bb4a7be28376c1ace1e46e3ca31f0962c879))
* **maintenance:** replay parsed raw rows after index reset
([#2508](https://github.com/Sinity/polylogue/issues/2508))
([d1bbb3e](https://github.com/Sinity/polylogue/commit/d1bbb3e02bfb09d55ba0e2ef6a1f69be5db37408))
* **maintenance:** resume interrupted raw materialization
([#2510](https://github.com/Sinity/polylogue/issues/2510))
([b55ea52](https://github.com/Sinity/polylogue/commit/b55ea528e9c3d856c9ef2bf144b8ccba5a1e01b3))
* make partial resume profiles explicit
([#2635](https://github.com/Sinity/polylogue/issues/2635))
([186daf2](https://github.com/Sinity/polylogue/commit/186daf287ae2b04994f7f6afe5b0564b6f947584))
* **mcp:** report split-tier embedding stats
([c70081b](https://github.com/Sinity/polylogue/commit/c70081b69728b678a66371bf43e24d00eb6c267b))
* **mcp:** stop silently capping aggregate totals
([29c020d](https://github.com/Sinity/polylogue/commit/29c020d4b2f3dd58f3135c8ce5ff810a45d3a020))
* **ops:** point index resets at source replay
([e84c2ae](https://github.com/Sinity/polylogue/commit/e84c2aef8a75f8ae196643b2364e869f234350f6))
* parse ChatGPT recipient-addressed tool calls as TOOL_USE, not raw text
([#2629](https://github.com/Sinity/polylogue/issues/2629))
([7688d10](https://github.com/Sinity/polylogue/commit/7688d103d5393e9bc3d6b249bcd6daa656eee58a))
* **parsers:** keep asset-only chat turns
([607d79b](https://github.com/Sinity/polylogue/commit/607d79bddcff4f95eb046f0f80857d2ca656a515))
* **read:** degrade bounded reads to content
([4eb337b](https://github.com/Sinity/polylogue/commit/4eb337b36d139e806ccd1feacba904b6eb60141f))
* **readiness:** classify explained raw join gaps
([d9bc786](https://github.com/Sinity/polylogue/commit/d9bc786b8619e2d7a0ea3c80fdecbbb4a838cda3))
* **readiness:** close verifier failures
([#2547](https://github.com/Sinity/polylogue/issues/2547))
([4b9389d](https://github.com/Sinity/polylogue/commit/4b9389d752b53742fc70df5364d221b16a292f9d))
* **readiness:** expose fast archive convergence state
([c9ded08](https://github.com/Sinity/polylogue/commit/c9ded089ca53d61baa883e5915a3b2248c621250))
* **readiness:** report materialization progress counts
([f5d848e](https://github.com/Sinity/polylogue/commit/f5d848e87cf8946e3d981cede9ff58401cdf7cb8))
* **read:** use session links for streaming lineage checks
([29ed6ea](https://github.com/Sinity/polylogue/commit/29ed6ea87a9f3df390b5f9987c0dbfcd43f0c4e9))
* repair 3 flagship CLI query bugs found in prod smoke test
([#2626](https://github.com/Sinity/polylogue/issues/2626))
([5d5edaf](https://github.com/Sinity/polylogue/commit/5d5edaf496d70b9372c7c2123c2e70a6ed4d34e6))
* restore deterministic archive contracts
([#2641](https://github.com/Sinity/polylogue/issues/2641))
([f6b396b](https://github.com/Sinity/polylogue/commit/f6b396bf63cbe43b6e7645e94b8aafa88a2fd0b0))
* route ops reset --session/--source through the mutation contract
([#2627](https://github.com/Sinity/polylogue/issues/2627))
([a075ce2](https://github.com/Sinity/polylogue/commit/a075ce290837f68af678f093b02f39fe42286d11))
* **search:** keep default find lexical
([faba5f3](https://github.com/Sinity/polylogue/commit/faba5f3950b308658dbbbfe9067488f65b606fcc))
* **search:** make FTS readiness cheap in fresh indexes
([a46be16](https://github.com/Sinity/polylogue/commit/a46be16d2b3a74241fe9f063f1052f4743493198))
* **security:** harden blob hash validation, drop misleading symlink
check ([#2599](https://github.com/Sinity/polylogue/issues/2599))
([b6b9fef](https://github.com/Sinity/polylogue/commit/b6b9fef2a05ed7d5a1272188ce852f74a133b637))
* **sources:** close CursorStore get-&gt;modify-&gt;put lost-update race
([#2615](https://github.com/Sinity/polylogue/issues/2615))
([fac493c](https://github.com/Sinity/polylogue/commit/fac493cb3cc37edfa58e939b367c78e069730304))
* **sources:** merge Claude Code stream sessions
([#2520](https://github.com/Sinity/polylogue/issues/2520))
([a651bb9](https://github.com/Sinity/polylogue/commit/a651bb95f1fc3595cff8f545ec3768831b858daf))
* **sources:** restrict append planning to JSONL streams
([#2691](https://github.com/Sinity/polylogue/issues/2691))
([fae9e0b](https://github.com/Sinity/polylogue/commit/fae9e0bb580caaac18f94b28674f104c5b9ca6b8))
* stamp focused test runs with git head
([#2632](https://github.com/Sinity/polylogue/issues/2632))
([4dabc85](https://github.com/Sinity/polylogue/commit/4dabc85dd05f6c0d710e6755853a2bf70b4b0a2f))
* **status:** gate readiness on raw materialization
([91bf2d7](https://github.com/Sinity/polylogue/commit/91bf2d7fb8a43601f5b046ccddb974f29c6b2beb))
* **status:** ignore stale rebuild attempts for readiness
([f2f1a21](https://github.com/Sinity/polylogue/commit/f2f1a2156dbcfc1bc6e4f23ed449dfb16d37cac5))
* **status:** preserve unknown embedding pending messages
([36446ec](https://github.com/Sinity/polylogue/commit/36446ecbf0c79497712f3149509d1e8ae1e65b03))
* **status:** project durable raw authority into readiness
([#2695](https://github.com/Sinity/polylogue/issues/2695))
([93af1a5](https://github.com/Sinity/polylogue/commit/93af1a53a8b68d6500c69ddfc6060d542c6d0d8d))
* **status:** show SQLite maintenance state
([f7d2539](https://github.com/Sinity/polylogue/commit/f7d2539a4380c8e7b3d86499f6eb9d248af70726))
* **status:** use fast materialization readiness
([80dd748](https://github.com/Sinity/polylogue/commit/80dd748cce2c4b0e86927605f1cf605fc57ad490))
* **status:** validate actions view readiness
([#2687](https://github.com/Sinity/polylogue/issues/2687))
([9018d58](https://github.com/Sinity/polylogue/commit/9018d5861a699d595da42a56d9df95ad5d4fdd24))
* **storage:** add offline index generation promotion
([#2685](https://github.com/Sinity/polylogue/issues/2685))
([a2bbd25](https://github.com/Sinity/polylogue/commit/a2bbd25d6a315791430e11191c3b2070cdfdbe2f))
* **storage:** compose forks on paginated, batch, and streaming reads
([#2485](https://github.com/Sinity/polylogue/issues/2485))
([8664ee8](https://github.com/Sinity/polylogue/commit/8664ee872286811f5094e125cbcf78559c6b7499)),
closes [#2470](https://github.com/Sinity/polylogue/issues/2470)
* **storage:** contain authority-ambiguous raw replay
([#2670](https://github.com/Sinity/polylogue/issues/2670))
([#2670](https://github.com/Sinity/polylogue/issues/2670))
([202a09c](https://github.com/Sinity/polylogue/commit/202a09c240bc56a74c7d078663aafc7c7f97e59c))
* **storage:** contain conflicting archive index identities
([#2680](https://github.com/Sinity/polylogue/issues/2680))
([36147f2](https://github.com/Sinity/polylogue/commit/36147f29c7255474071bce869e6942c02ce3e348))
* **storage:** enforce monotonic raw revision replay
([#2684](https://github.com/Sinity/polylogue/issues/2684))
([6a579d0](https://github.com/Sinity/polylogue/commit/6a579d09021c9b0ed128287ace51cdff077cd5b7))
* **storage:** gate embedding success write against config-change race
([#2616](https://github.com/Sinity/polylogue/issues/2616))
([16fdb0f](https://github.com/Sinity/polylogue/commit/16fdb0fcacba55f9640222a3e0e52984f6c414aa))
* **storage:** include timeless sessions in search --since filters
([#2578](https://github.com/Sinity/polylogue/issues/2578))
([97459e6](https://github.com/Sinity/polylogue/commit/97459e61d4fae716594eb871381f865a4f79593e))
* **storage:** include timeless work-events/phases in since/until
windows ([#2577](https://github.com/Sinity/polylogue/issues/2577))
([1b29fa5](https://github.com/Sinity/polylogue/commit/1b29fa52460cbeca78656be4536531cf66cb6d1f))
* **storage:** pair actions view by transcript rank, not tool_id
equality ([#2597](https://github.com/Sinity/polylogue/issues/2597))
([7b5a5aa](https://github.com/Sinity/polylogue/commit/7b5a5aa0589772ed9d7eb9632af1591cf22cdd33))
* **storage:** preserve semantic replay frontiers
([#2692](https://github.com/Sinity/polylogue/issues/2692))
([7d300a5](https://github.com/Sinity/polylogue/commit/7d300a59628742cf739706bd5ebe225daf9b4825))
* **storage:** preserve source evidence during reset
([#2537](https://github.com/Sinity/polylogue/issues/2537))
([1f629c9](https://github.com/Sinity/polylogue/commit/1f629c9d2d923789f0dbf7167ffb021b13b3707d))
* **storage:** remove unreachable blob-GC lease mechanism
([#2617](https://github.com/Sinity/polylogue/issues/2617))
([a263612](https://github.com/Sinity/polylogue/commit/a2636120495d1b87a8e5170c7d108144c3bc7f4b))
* **storage:** reserve blobs until durable references commit
([#2660](https://github.com/Sinity/polylogue/issues/2660))
([a0ef2fa](https://github.com/Sinity/polylogue/commit/a0ef2fa8d479a0168db36fe09f3752de6311b26e))
* **storage:** retire governed bundle raws
([#2693](https://github.com/Sinity/polylogue/issues/2693))
([304b840](https://github.com/Sinity/polylogue/commit/304b84019d7dfa0474a8db4685166849af16d297))
* **storage:** route ops-doctor orphan-blob repair through the safe GC
planner ([#2564](https://github.com/Sinity/polylogue/issues/2564))
([8e4efb7](https://github.com/Sinity/polylogue/commit/8e4efb72379f458d23524c00fb2de29346ce0e0b))
* **storage:** single-source FTS freshness DDL
([c769ea7](https://github.com/Sinity/polylogue/commit/c769ea7b7cd6b04da1d54314809d5a093a62471c))
* **storage:** slice provider usage on prefix-sharing forks
([4628cd3](https://github.com/Sinity/polylogue/commit/4628cd30f24ea72546ed2d53512d093e2aea8501))
* **storage:** stop epoch-pinning timeless rows in the query CLI unit
engine ([#2576](https://github.com/Sinity/polylogue/issues/2576))
([c67fd45](https://github.com/Sinity/polylogue/commit/c67fd45392a693428d504c95359c7e4bdfcd9a53))
* **storage:** stop replaying terminal raw revisions
([#2690](https://github.com/Sinity/polylogue/issues/2690))
([90cf639](https://github.com/Sinity/polylogue/commit/90cf639b151c0c16dbb74ff70f7132c09297f6e7))
* **storage:** stop scheduling governed replay debt
([#2694](https://github.com/Sinity/polylogue/issues/2694))
([63a6c75](https://github.com/Sinity/polylogue/commit/63a6c756326ba43238bee48b8de24eab657bfb17))
* **storage:** stop usage_timeline silently dropping timeless-session
usage ([#2575](https://github.com/Sinity/polylogue/issues/2575))
([a31d096](https://github.com/Sinity/polylogue/commit/a31d0968581d108fba5a6261d41e939e3e4907ab))
* **storage:** surface SQLite maintenance drift
([e50b923](https://github.com/Sinity/polylogue/commit/e50b923168de1e2ec8a7c81a4f11f30cc0c724de))
* **storage:** trigram-index the affordance-usage CLI-detection
substring scan
([#2622](https://github.com/Sinity/polylogue/issues/2622))
([f5c35e7](https://github.com/Sinity/polylogue/commit/f5c35e7021dceebfb2836e4c84377fe8e0bbd457))
* **storage:** trust stale FTS readiness rows
([05a30c0](https://github.com/Sinity/polylogue/commit/05a30c0a8c652669305675fc29f0bd4cf55ea808))
* **test:** repair full-verify baseline drift from 2026-07-05 commit
batch ([#2556](https://github.com/Sinity/polylogue/issues/2556))
([a836e4b](https://github.com/Sinity/polylogue/commit/a836e4bfc9d8830d30b0995efbee4e2ada71e3cd))
* **topology:** integrate hook service placement
([#2658](https://github.com/Sinity/polylogue/issues/2658))
([#2658](https://github.com/Sinity/polylogue/issues/2658))
([a8eb1bf](https://github.com/Sinity/polylogue/commit/a8eb1bf1a8af6fdf3257f022b49935b07ad5dc73))
* **types:** restore quick verification gate
([87ce471](https://github.com/Sinity/polylogue/commit/87ce4718768abe247bc54bc03fda7f0db7a78752))
* **usage:** reconcile Codex tokens from disjoint rollups
([cae61ed](https://github.com/Sinity/polylogue/commit/cae61ed8ad5006e83374b72bfde7a252d82889bb))
* **verify:** restore quick gate currency
([3216c02](https://github.com/Sinity/polylogue/commit/3216c020660acef86db68f51239c343816c35a93))
* **web-shell:** correct total_sessions path, clear stuck status notice
([#2562](https://github.com/Sinity/polylogue/issues/2562))
([8506792](https://github.com/Sinity/polylogue/commit/850679209c6a551106d31104b640c728f70295f1))
* **web:** render truthful loading/stale/error states, not false
emptiness ([#2673](https://github.com/Sinity/polylogue/issues/2673))
([5479bea](https://github.com/Sinity/polylogue/commit/5479beabcb300049d9a2bbb50859d70b3742639d))
* word-boundary anchor the work-event text-signal keyword matcher
([#2630](https://github.com/Sinity/polylogue/issues/2630))
([7806b26](https://github.com/Sinity/polylogue/commit/7806b26e76f9307931d0150ca2bed35bd1d34566))


### Changed

* **cli:** avoid select setup on bounded output
([01e592e](https://github.com/Sinity/polylogue/commit/01e592e3db300e1420b7d209e68e9744c60d9f7b))
* **cli:** delegate session pages to daemon
([01847a3](https://github.com/Sinity/polylogue/commit/01847a36d52879bfef79d404413bf4d1a09b0102))
* **demo:** bound claim evidence report scans
([9045330](https://github.com/Sinity/polylogue/commit/90453304c1cf7e737459e1a83ea4ec8240d2d7b4))
* **demo:** bound claim evidence sampling before pairing
([8112fa2](https://github.com/Sinity/polylogue/commit/8112fa24373c5c8e8bbf64c69affd6686fa4b5d7))
* **devtools:** bound affordance detail reports
([898a6d1](https://github.com/Sinity/polylogue/commit/898a6d1868925a44a603fede6dc73e28379705a9))
* **embed:** avoid exact scans during window selection
([#2512](https://github.com/Sinity/polylogue/issues/2512))
([ba4655a](https://github.com/Sinity/polylogue/commit/ba4655afc2040bf0f59e015331032a487511cba5))
* **embed:** constrain archive block text lookup
([#2513](https://github.com/Sinity/polylogue/issues/2513))
([da18955](https://github.com/Sinity/polylogue/commit/da18955963ac32bc0c4f88443a0926d7a4abdb82))
* **embeddings:** batch archive vector writes
([660d01d](https://github.com/Sinity/polylogue/commit/660d01dbb9ceef95daff4b4613a05aecad1c7385))
* **embeddings:** stream pending prose windows
([ff6c4f9](https://github.com/Sinity/polylogue/commit/ff6c4f950960ee1848033e9faea1c99f5e3432a5))
* **embed:** index authored prose selection
([#2507](https://github.com/Sinity/polylogue/issues/2507))
([cdd0081](https://github.com/Sinity/polylogue/commit/cdd008167b4cfe03d08231b0200420b4353df957))
* **ingest:** batch commits by accumulated message count
([#2492](https://github.com/Sinity/polylogue/issues/2492))
([eaa4ad7](https://github.com/Sinity/polylogue/commit/eaa4ad7e23ac9238291b9d1902f9c13ec7963432)),
closes [#2391](https://github.com/Sinity/polylogue/issues/2391)
* **ingest:** batch session event writes
([6e681ff](https://github.com/Sinity/polylogue/commit/6e681ff40534daaac2479641d665c380cf560910))
* **ingest:** log slow write stage timings
([5da0be3](https://github.com/Sinity/polylogue/commit/5da0be374074fe6ad1fd46d911f3c5f1c38c549c))
* **ingest:** skip current root graph refreshes
([452f051](https://github.com/Sinity/polylogue/commit/452f051db880ad4d17156c981644b8b08f0241bd))
* **ingest:** skip unchanged thread refreshes
([cf6b41e](https://github.com/Sinity/polylogue/commit/cf6b41ef7a344e4577d37ba7158dadef1ddc1f33))
* **insights:** aggregate cost rollups from usage rows
([bb2f84f](https://github.com/Sinity/polylogue/commit/bb2f84ff871fb6717c94c733ddd3b963570509b1))
* **insights:** bound async giant-session rebuilds
([#2540](https://github.com/Sinity/polylogue/issues/2540))
([3de0079](https://github.com/Sinity/polylogue/commit/3de00794ef058d68ec8707c6a977f391504b8f95))
* **insights:** bound insight-rebuild WAL via per-chunk commits (Ref
[#2458](https://github.com/Sinity/polylogue/issues/2458))
([#2466](https://github.com/Sinity/polylogue/issues/2466))
([2eee22a](https://github.com/Sinity/polylogue/commit/2eee22a9fbfe9f177bc895f64c3271917044a91b))
* **insights:** bound usage timeline event scans
([b9f4253](https://github.com/Sinity/polylogue/commit/b9f4253cae00dfdd621281ef5ce3e1ebedbb8862))
* **maintenance:** batch raw materialization replay
([#2509](https://github.com/Sinity/polylogue/issues/2509))
([4a39c0c](https://github.com/Sinity/polylogue/commit/4a39c0c31fa07d76e314773cf69a7e191ff474d9))
* **maintenance:** replay rebuild rows source-first
([#2524](https://github.com/Sinity/polylogue/issues/2524))
([4a0ab58](https://github.com/Sinity/polylogue/commit/4a0ab5883a8fbcda0b558779d8066af04fc318d6))
* **maintenance:** report weighted rebuild run size
([#2529](https://github.com/Sinity/polylogue/issues/2529))
([ad1bf4e](https://github.com/Sinity/polylogue/commit/ad1bf4e177eafde709f0bc63f627b2d01bec2a90))
* **maintenance:** scope targeted index materialization
([90f1c5a](https://github.com/Sinity/polylogue/commit/90f1c5a493e1f583149fbf60ed78cdd1467e8532))
* **maintenance:** weight rebuild planning by raw payload
([#2528](https://github.com/Sinity/polylogue/issues/2528))
([3954534](https://github.com/Sinity/polylogue/commit/39545347c89f66e9e97ab63f59cbc206f625a185))
* **pipeline:** report raw ingest batch starts
([#2530](https://github.com/Sinity/polylogue/issues/2530))
([e15eda2](https://github.com/Sinity/polylogue/commit/e15eda24e6118ce7c1631da3b618c07666f1205a))
* **read-package:** run artifacts in process
([ed7cafb](https://github.com/Sinity/polylogue/commit/ed7cafbf4e8bff88a94089bf4629355a3af7651f))
* **read:** avoid full-session pagination loads
([a17e3af](https://github.com/Sinity/polylogue/commit/a17e3af95dd601f07ca0aa2b946f8efaa750b2c5))
* **read:** bound exact-session temporal handoffs
([478d6a7](https://github.com/Sinity/polylogue/commit/478d6a77cf1cea1d63c180701d49099ad2cfacc3))
* **read:** stream exact markdown file exports
([a9dc3f2](https://github.com/Sinity/polylogue/commit/a9dc3f274abb92c10830b5d2dcd82f5e291cb905))
* **read:** stream messages file exports
([177523a](https://github.com/Sinity/polylogue/commit/177523aab8c9407f319eed77361fad965f0ac56b))
* **status:** keep full status off exact scans
([4399db6](https://github.com/Sinity/polylogue/commit/4399db6360c27cb1e87e316fac6604470588f576))
* **storage:** append thread membership suffixes
([adc2541](https://github.com/Sinity/polylogue/commit/adc25412e5d57865e5325fc4cef9274e100bac2f))
* **storage:** avoid redundant thread refresh churn
([af0c1cc](https://github.com/Sinity/polylogue/commit/af0c1cc1c48c37f2ba37f80fd525ad934ff3142e))
* **storage:** bound revision census memory
([#2686](https://github.com/Sinity/polylogue/issues/2686))
([3fe7837](https://github.com/Sinity/polylogue/commit/3fe7837c83377017341958d544c62f79587bff0b))
* **storage:** cache composed lineage during graph repair
([51ddf75](https://github.com/Sinity/polylogue/commit/51ddf75a82adf1b248fdda287c12b4f5eb962043))
* **storage:** clean empty lineage tails by session
([#2525](https://github.com/Sinity/polylogue/issues/2525))
([b2936ba](https://github.com/Sinity/polylogue/commit/b2936ba8dddd90b94c5c708f8be4569e16171344))
* **storage:** reduce graph resolve refresh churn
([#2526](https://github.com/Sinity/polylogue/issues/2526))
([7b9f4e0](https://github.com/Sinity/polylogue/commit/7b9f4e0419875801d7cc26653b6f4858e7e3a2d4))
* **storage:** time delayed prefix re-extraction
([#2527](https://github.com/Sinity/polylogue/issues/2527))
([04ecfe0](https://github.com/Sinity/polylogue/commit/04ecfe0ec26910fa6abb3221aa4607ede15d81e9))
* **storage:** use session-scoped block lookup for signatures
([#2532](https://github.com/Sinity/polylogue/issues/2532))
([89b20c3](https://github.com/Sinity/polylogue/commit/89b20c33584a2a8aebef8798b1a425a1ce4d5ad9))
* **usage:** add headline detail for usage reports
([c1067fb](https://github.com/Sinity/polylogue/commit/c1067fb45cc1cf93fb6a9dd5ccd6bc03c79477a7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@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.

@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.

  • 77.F031 / P2: fixed-already at the checked revision: Migration backup admission authenticates the verification receipt, validates the closed artifact and blob inventory, requires the target artifact and checks the live fingerprint; a minimal JSON tier list or deleted backup is not sufficient. See polylogue/storage/sqlite/migration_runner.py:867.

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.

1 participant