Skip to content

fix(daemon): Host-admission gate, receiver hardening, spool governor - #2559

Merged
Sinity merged 2 commits into
masterfrom
feature/fix/daemon-capture-security-hardening
Jul 7, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/fix/daemon-capture-security-hardening

Conversation

@Sinity

@Sinity Sinity commented Jul 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes the three confirmed holes on the daemon/browser-capture listening surface (polylogue-kwsb.1): DNS-rebinding archive reads, unauthenticated capture writes, and unbounded spool growth. Found and fixed one more real bug in passing: a registered-but-unimplemented route that crashed on request.

Problem

  1. DNS rebinding reads the whole archive. GET routes had no Host check at all; the Origin check that existed was POST-only and silently skipped when the header was absent. During a DNS-rebinding attack the browser's TCP connection genuinely originates from 127.0.0.1 (the attacker's domain was resolved there), so client-IP loopback checks (is_loopback_host(self._client_host)) cannot detect it — only the Host header, which the browser can never forge to match ours, can.
  2. Browser-capture receiver has no auth on loopback by default — any local process could POST forged captures.
  3. No spool quota — a hostile or runaway poster could disk-fill by varying provider_session_id.

Solution

  • polylogue/daemon/http.py: new _check_host_admission (pure logic in _check_host_admission_logic) allowlists loopback names/addresses and the configured api_host. An absent Host is permitted — every real HTTP/1.1 browser sends one (RFC 7230 §5.4); only non-browser local callers, already trusted by this daemon's existing token-optional posture, omit it. Applied at the very top of _dispatch_get (web shell, paste/attachment pages, healthz/metrics probes, and the API route tables) and at the top of _do_post_impl/_do_delete_impl (before the OTLP special-case, which previously bypassed every check).
    • A deep route-inventory review (escrowed at .agent/scratch/new-gpt-pro/) made a convincing case that healthz/metrics/dev-loop leak real information (PID, archive_root, DB sizes, exception text) and are reachable via the same vector — the gate covers them too. The documented docker-compose.yaml healthcheck already targets 127.0.0.1 and is unaffected.
  • _check_auth_logic and browser_capture/server.py's _check_token now use hmac.compare_digest instead of ==.
  • ?access_token= (needed because EventSource cannot set custom headers) is now restricted to /api/events — it previously worked on every authenticated route, risking leakage into logs/proxies/Referer.
  • browser_capture/receiver.py: SPOOL_MAX_FILES/SPOOL_MAX_BYTES governor in write_capture_envelope — replacing an existing same-session capture never grows the spool and is always allowed; a genuinely new capture over quota raises SpoolQuotaExceededError, surfaced as 429 without writing partial state.
  • Found in passing: GET /api/provider-usage was registered in both _static_get_routes and route_contracts.py, but _handle_provider_usage was never implemented — any real request raised an unhandled AttributeError (polylogue-g9j6, filed and closed by this PR). Added the handler (mirrors the MCP provider_usage tool) plus a route-registration regression test so a future route can't repeat this silently.

Deliberately deferred

  • polylogue-gnie: making the browser-capture receiver token mandatory by default. The extension already supports a manually-configured token (background.js:174-180), but flipping the default would 401 any operator who hasn't set one, with no auto-pairing fallback yet.
  • polylogue-2n39: stored-content XSS hardening in web_shell.py's escAttr/web_shell_attachments.py rendering — a content-rendering boundary, not a request-admission one. Confirmed escAttr does not escape backslashes (a real attribute-breakout vector) but scoped it as separate work.

Verification

  • devtools test tests/unit/daemon/ → 1596 passed
  • devtools test tests/unit/browser_capture/ → 69 passed
  • devtools test tests/unit/daemon/test_provider_usage_endpoint.py → 3 passed (new functional coverage for the fixed handler)
  • mypy (bare, matching the verify-gate invocation) → clean
  • devtools verify --quick → exit 0

Ref polylogue-kwsb.1.

Summary by CodeRabbit

  • New Features

    • Added a new usage-reporting endpoint in the daemon so clients can view provider usage details.
  • Bug Fixes

    • Fixed capture uploads to return a clear “too many requests” response when storage limits are reached.
    • Improved handling so authenticated capture requests are validated more reliably.
    • Restored a previously unavailable daemon endpoint.
  • Security

    • Strengthened request validation to better protect against invalid hosts and unauthorized access.

Problem: three confirmed holes on the daemon/browser-capture listening
surface (polylogue-kwsb.1). (1) DNS rebinding reads the whole archive —
GET routes had no Host check, and the Origin check that existed was
POST-only and skipped when the header was absent. Because the browser's
TCP connection during a rebinding attack genuinely originates from
localhost, client-IP loopback checks cannot detect it; only the Host
header (which the browser can never forge to match ours) can. (2) The
browser-capture receiver had no auth on loopback by default. (3) No
spool quota — a runaway or hostile poster could disk-fill.

What changed:
- polylogue/daemon/http.py: new _check_host_admission (with pure-logic
  _check_host_admission_logic) allowlists loopback names/addresses and
  the configured api_host; an ABSENT Host is permitted (every real
  HTTP/1.1 browser sends one — only non-browser local callers, already
  trusted by this daemon's existing token-optional posture, omit it).
  Applied at the very top of _dispatch_get (before web shell, paste/
  attachment pages, healthz/metrics probes, and the API route tables)
  and at the top of _do_post_impl/_do_delete_impl (before the OTLP
  special-case, which previously bypassed all admission checks). A
  deep route-inventory review (escrowed at .agent/scratch/new-gpt-pro/)
  argued convincingly that healthz/metrics/dev-loop leak real
  information (PID, archive_root, DB sizes, exception text) and are
  reachable via the same rebinding vector, so the gate covers them too
  — the documented docker-compose healthcheck already targets
  127.0.0.1 and is unaffected.
- _check_auth_logic and browser_capture/server.py's _check_token now
  use hmac.compare_digest instead of ``==`` (timing side-channel).
- The ?access_token= query-param fallback (needed because EventSource
  cannot set custom headers) is now restricted to /api/events; it
  previously worked on every authenticated route, risking token leakage
  into logs/proxies/Referer.
- browser_capture/receiver.py: SPOOL_MAX_FILES/SPOOL_MAX_BYTES governor
  in write_capture_envelope — replacing an existing same-session capture
  never grows the spool and is always allowed; a genuinely NEW capture
  over quota raises SpoolQuotaExceededError, surfaced by server.py as
  429 without writing partial state.
- Found and fixed in passing: GET /api/provider-usage was registered in
  both _static_get_routes and route_contracts.py but _handle_provider_
  usage was never implemented — any real request raised an unhandled
  AttributeError (polylogue-g9j6). Added the handler (mirrors the MCP
  provider_usage tool) plus a route-registration regression test
  (test_every_registered_route_handler_name_resolves_to_a_real_method)
  so a future route can't repeat this silently.

Deliberately deferred (tracked as polylogue-gnie, polylogue-2n39):
making the browser-capture receiver token mandatory by default (the
extension already supports a manually-configured token via
chrome.storage, but flipping the default would 401 any operator who
hasn't set one, with no auto-pairing fallback yet); stored-content XSS
hardening in web_shell.py's escAttr/web_shell_attachments.py rendering
(a content-rendering boundary, not a request-admission one — confirmed
escAttr does not escape backslashes, a real attribute-breakout vector).

Verification: devtools test tests/unit/daemon/ -> 1596 passed (0 fail,
0 flake on this run); devtools test tests/unit/browser_capture/ -> 69
passed; devtools test tests/unit/daemon/test_provider_usage_endpoint.py
-> 3 passed; mypy clean; devtools verify --quick -> exit 0.

Ref polylogue-kwsb.1.

Co-Authored-By: Claude <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 37 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e11e2be6-c4bb-4d9b-9e78-cb6b56297894

📥 Commits

Reviewing files that changed from the base of the PR and between b70b08c and 97c0880.

📒 Files selected for processing (5)
  • .beads/issues.jsonl
  • polylogue/browser_capture/receiver.py
  • polylogue/daemon/http.py
  • tests/unit/browser_capture/test_receiver.py
  • tests/unit/daemon/test_daemon_http_security.py
📝 Walkthrough

Walkthrough

This PR hardens daemon and browser-capture HTTP security by adding spool quota enforcement for capture artifacts, switching token comparisons to constant-time hmac, restricting query-token auth fallback to SSE routes, adding Host-header admission gating against DNS rebinding, implementing the previously missing provider-usage endpoint handler, and tracking related issues in beads.

Changes

Security hardening and endpoint fixes

Layer / File(s) Summary
Tracking issues
.beads/issues.jsonl
Adds beads entries for stored XSS risk, missing receiver auth/spool controls, and the missing provider-usage handler.
Spool quota governor
polylogue/browser_capture/receiver.py, polylogue/browser_capture/server.py, tests/unit/browser_capture/test_receiver.py
Introduces SPOOL_MAX_FILES/SPOOL_MAX_BYTES, SpoolUsage, and SpoolQuotaExceededError; enforces quota in write_capture_envelope before new writes; server maps the exception to a 429 spool_quota_exceeded response; tests cover replacement vs. new-session quota behavior.
Constant-time token comparison
polylogue/browser_capture/server.py, polylogue/daemon/http.py, tests/unit/browser_capture/test_receiver.py
Replaces plain equality with hmac.compare_digest for bearer token checks in both servers, with a rejection test.
Host-admission gating and SSE-only token fallback
polylogue/daemon/http.py, tests/unit/daemon/test_daemon_http_security.py, tests/unit/daemon/test_daemon_events_endpoint.py
Adds _check_host_admission_logic/_check_host_admission to reject foreign Host headers with 403, restricts access_token query fallback to /api/events, wires the guard into GET/POST/DELETE dispatch, and adds host-gate and query-fallback tests including OTLP-path coverage.
Provider-usage handler
polylogue/daemon/http.py, tests/unit/daemon/test_daemon_http_security.py, tests/unit/daemon/test_provider_usage_endpoint.py
Implements _handle_provider_usage for GET /api/provider-usage returning provider_usage_report as JSON, adds a route-contract test asserting all registered handler names resolve to real methods, and adds end-to-end handler tests.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Possibly related PRs

  • Sinity/polylogue#1011: Both PRs touch daemon/browser_capture HTTP security around loopback/host/origin gating.
  • Sinity/polylogue#1076: Both PRs extend tests/unit/daemon/test_daemon_http_security.py to pin daemon HTTP mutation-route access-gating behavior.
  • Sinity/polylogue#1128: Both PRs modify polylogue/daemon/http.py's auth/routing around the ?access_token= query fallback.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main security hardening and spool-quota work.
Description check ✅ Passed The description is detailed and mostly matches the template, with clear Summary, Problem, Solution, Verification, and deferred follow-ups.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/daemon-capture-security-hardening

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.

Comment thread polylogue/daemon/http.py
ONLY on the SSE route (``/api/events``) — ``EventSource`` cannot
set custom headers, so it is the sole legitimate use case.
Accepting it broadly would leak bearer tokens into server logs,
proxies, and the ``Referer`` header on every other route.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

False positive / pre-existing: _send_request_id_header (unrelated to this PR — not touched in this diff) already sanitizes at _request_id_header two lines above (rejects \r/\n and length>128 before the value ever reaches send_header). CodeQL is flagging the header-construction pattern generically without seeing that guard. Not fixing here — out of this PRs scope and already safe.

@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

🤖 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/browser_capture/receiver.py`:
- Around line 336-346: The _spool_usage helper in receiver.py is doing a full
recursive scan of spool_root on every new-capture write, which is too expensive
on the request path. Replace the repeated rglob/stat counting with an
incremental spool usage counter that is updated when capture files are written
or deleted, and have the write path use that cached state instead of rescanning.
While updating the counting logic, verify that the capture quota only includes
intended capture artifacts by checking how capture_artifact_path and related
spool_path users place files under spool_root, so unrelated JSON files are not
counted.
- Around line 336-355: The spool quota check is vulnerable to a TOCTOU race
because `_check_spool_quota()` is evaluated separately from the actual write in
`write_capture_envelope()`, allowing concurrent requests to overfill the spool.
Serialize the quota check with the write path by holding the same lock across
both operations, or otherwise make the reservation atomic, so
`BrowserCaptureHTTPServer` cannot pass `_check_spool_quota()` concurrently
before a capture is persisted.

In `@polylogue/daemon/http.py`:
- Around line 999-1024: The host admission check in _check_host_admission_logic
must reject malformed Host values instead of letting parsing errors escape. Wrap
the urlsplit(f"//{host_header}") hostname extraction in a ValueError guard and
return False when parsing fails, so invalid bracketed or NFKC-unsafe host
headers are denied cleanly rather than bypassing the check.

In `@tests/unit/daemon/test_daemon_http_security.py`:
- Around line 454-565: Add test coverage in TestCheckHostAdmissionLogic for
malformed bracketed Host values and an NFKC-unsafe Host string to exercise
_check_host_admission_logic directly. Update the parametrized matrix or add a
focused test so the invalid input path is asserted not to raise and instead is
handled safely, catching regressions in polylogue.daemon.http’s host-admission
parsing logic.

In `@tests/unit/daemon/test_provider_usage_endpoint.py`:
- Around line 27-52: The test setup for DaemonAPIHandler is duplicated across
multiple daemon test files, which risks divergence when the handler mock
contract changes. Extract the shared _MockServer, _MockHeaders, and
_make_handler scaffolding into a common test helper module and update
test_daemon_http_security, test_daemon_events_endpoint, and
test_provider_usage_endpoint to import and reuse it so all handler-mocking
behavior stays consistent, including any future additions like host.
🪄 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: c21de017-0309-45d8-a67e-50ce21d9f0b8

📥 Commits

Reviewing files that changed from the base of the PR and between 89b14e5 and b70b08c.

📒 Files selected for processing (8)
  • .beads/issues.jsonl
  • polylogue/browser_capture/receiver.py
  • polylogue/browser_capture/server.py
  • polylogue/daemon/http.py
  • tests/unit/browser_capture/test_receiver.py
  • tests/unit/daemon/test_daemon_events_endpoint.py
  • tests/unit/daemon/test_daemon_http_security.py
  • tests/unit/daemon/test_provider_usage_endpoint.py

Comment on lines +336 to +346
def _spool_usage(spool_root: Path) -> SpoolUsage:
file_count = 0
total_bytes = 0
if spool_root.exists():
for path in spool_root.rglob("*.json"):
try:
total_bytes += path.stat().st_size
except OSError:
continue
file_count += 1
return SpoolUsage(file_count=file_count, total_bytes=total_bytes)

@coderabbitai coderabbitai Bot Jul 7, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Full spool scan on every new-capture write.

_spool_usage walks the entire spool_root tree with rglob("*.json") and stat()s every match on every non-replacing write, up to the 20,000-file / 2 GiB bound. As the spool approaches quota this becomes a non-trivial per-request I/O cost on the request-handling path. An incremental counter (updated on write/delete) would avoid repeated full-tree scans.

Also worth confirming rglob("*.json") under spool_root doesn't also match unrelated JSON artifacts (e.g., post-command queue files) that would be miscounted against the capture quota.
[recommended]

#!/bin/bash
# Description: Inspect spool directory layout and capture_artifact_path to see what else lives under spool_root.
rg -n "def capture_artifact_path" -A 15 polylogue/browser_capture/receiver.py
rg -n "spool_path" polylogue/browser_capture/receiver.py | head -50
🤖 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/browser_capture/receiver.py` around lines 336 - 346, The
_spool_usage helper in receiver.py is doing a full recursive scan of spool_root
on every new-capture write, which is too expensive on the request path. Replace
the repeated rglob/stat counting with an incremental spool usage counter that is
updated when capture files are written or deleted, and have the write path use
that cached state instead of rescanning. While updating the counting logic,
verify that the capture quota only includes intended capture artifacts by
checking how capture_artifact_path and related spool_path users place files
under spool_root, so unrelated JSON files are not counted.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed: switched from an unlocked check to _SPOOL_WRITE_LOCK held across check-and-write, closing the TOCTOU gap flagged in the next comment on this line range. Left the full-scan (_spool_usage rglob+stat) as-is rather than adding an incremental counter — this is a local, single-operator receiver with a hard 20k-file ceiling (bounded worst-case cost), and a stateful counter adds real correctness risk (drift on crash/restart, external file deletion, startup reconciliation) that outweighs the perf win here. Added a regression test (test_concurrent_new_session_writes_never_exceed_the_quota) proving 20 concurrent threads never push the spool past a quota of 5.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Sinity Understood — full-scan-per-write is a reasonable tradeoff here given the hard 20k-file ceiling and the correctness risks of a stateful counter (crash/restart drift, external file deletion, reconciliation on startup). The concurrent-write regression test is a nice addition to lock in the bound. Thanks for closing the TOCTOU gap with _SPOOL_WRITE_LOCK too.


✏️ Learnings added
Learnt from: Sinity
Repo: Sinity/polylogue PR: 2559
File: polylogue/browser_capture/receiver.py:336-346
Timestamp: 2026-07-07T22:29:55.556Z
Learning: In `polylogue/browser_capture/receiver.py`, `_spool_usage` intentionally performs a full `rglob("*.json")` + `stat()` scan of the spool root on every non-replacing write in `write_capture_envelope`, rather than maintaining an incremental file-count/byte-count counter. This is a deliberate tradeoff: the receiver is a local, single-operator service with a hard `SPOOL_MAX_FILES = 20_000` ceiling (bounded worst-case scan cost), and a stateful counter would introduce correctness risks such as drift on crash/restart, external file deletion outside the receiver, and the need for startup reconciliation logic. The check-and-write path is protected by `_SPOOL_WRITE_LOCK` held across the check-and-write to avoid TOCTOU races, and this is covered by a concurrency regression test (`test_concurrent_new_session_writes_never_exceed_the_quota`).

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

Comment thread polylogue/browser_capture/receiver.py Resolved
Comment thread polylogue/daemon/http.py Resolved
Sinity added a commit that referenced this pull request Jul 7, 2026
…idence

New beads from the new-gpt-pro corpus route-inventory-analysis session
(a deep review of the kwsb.1 daemon/capture security surface, verified
against master 2026-07-07):
- g9j6: GET /api/provider-usage registered but never implemented,
  crashes on request (fixed in PR #2559, filed to track the finding).
- gnie: browser-capture receiver default-no-auth gap, deliberately
  deferred from kwsb.1 (needs an extension-side pairing UX).
- 2n39: stored-content XSS in web_shell escAttr/attachment rendering,
  confirmed live (escAttr does not escape backslashes) but scoped as
  separate content-rendering work, not request-admission.

Corpus reference notes attached (not authoritative, not verified line
by line — pointers for whoever picks the bead up):
- pf1: storage-twins-*.csv (15 exact-duplicate async/sync SQL statements).
- 4p1: one-read-contract-cut.report.md conformance inventory.
- jnj: mcp-surface-collapse-design.report.md tool-collapse proposal.
- xnkf: replace-actions-view session's materialized-table design.

Note: switching git branches mid-session (git checkout) triggers the
post-checkout beads hook, which re-imports the checked-out branch's
committed .beads/issues.jsonl and silently reverts any live bd update
made since that commit — lost and redone the four note-appends above
after discovering this. Export+commit beads changes before switching
branches, not after.

Co-Authored-By: Claude <[email protected]>
- browser_capture/receiver.py: serialize write_capture_envelope's spool
  quota check and write behind _SPOOL_WRITE_LOCK. BrowserCaptureHTTPServer
  is threaded, so without this, concurrent new-capture POSTs could all
  pass _check_spool_quota() before any one write landed (TOCTOU),
  overshooting SPOOL_MAX_FILES/SPOOL_MAX_BYTES under load. Regression
  test: 20 concurrent threads against a quota of 5 never push the spool
  over quota.
- daemon/http.py: _check_host_admission_logic now catches ValueError from
  urlsplit (malformed Host — e.g. unmatched IPv6 brackets like "[::1")
  and refuses cleanly instead of letting the exception propagate as an
  unhandled error. Added malformed/punycode Host cases to the parametrized
  matrix.

Two lower-severity findings triaged and left as-is with inline replies:
the flagged CodeQL header-splitting pattern at http.py:1080 is unrelated
pre-existing code already guarded against \r\n; the full-spool-scan perf
nitpick is an intentional bounded-cost tradeoff over adding stateful
counter drift risk. A third (test-scaffolding duplication across three
daemon test files) is filed as polylogue-myhg.

Verification: devtools test tests/unit/daemon/test_daemon_http_security.py
tests/unit/daemon/test_daemon_events_endpoint.py
tests/unit/daemon/test_provider_usage_endpoint.py tests/unit/browser_capture/
-> 585 passed; mypy clean; devtools verify --quick -> exit 0.

Ref polylogue-kwsb.1.

Co-Authored-By: Claude <[email protected]>
@Sinity
Sinity merged commit bfd247d into master Jul 7, 2026
14 checks passed
@Sinity
Sinity deleted the feature/fix/daemon-capture-security-hardening branch July 7, 2026 22:35
Sinity added a commit that referenced this pull request Jul 7, 2026
g9j6 (missing /api/provider-usage handler) fixed and closed via PR #2559.
kwsb.1 stays open pointing at its own gnie follow-up: 4/5 AC clauses
satisfied by the merged PR, receiver auth-mandatory-by-default deferred
(needs extension-side pairing UX, not implemented here).

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions Bot mentioned this pull request Jul 7, 2026
Sinity added a commit that referenced this pull request Jul 7, 2026
…#2560)

## Summary
Dogfood-discovered while smoke-testing the kwsb.1/g9j6 deploy against
the live 26GB archive: `GET /api/provider-usage` hung past 90s because
it defaulted to `detail=full`, which walks
`session_provider_usage_events` with an unbounded Python-side
scan-and-compare. Defaults the daemon handler to `headline` instead.

## Problem
`polylogue analyze usage --detail full` against the live archive
(`/home/sinity/.local/share/polylogue`) took >90s (killed by `timeout`);
`--detail headline` on the same archive returned in ~2s. This confirms
the slow path is a pre-existing query-cost bug
(`_stale_provider_rollup_stats`/`_expected_provider_model_rollups` in
`polylogue/storage/usage.py:797`), not something specific to the daemon
— tracked separately as **polylogue-dlmv**. But my
`_handle_provider_usage` handler (landed in #2559 to fix the
missing-handler crash, polylogue-g9j6) defaulted to `full` to mirror the
MCP `provider_usage` tool, meaning any client hitting the endpoint with
no params blocks a daemon HTTP thread for 90+ seconds — much worse than
a CLI call a human can interrupt.

## Solution
- `_handle_provider_usage` now defaults to `detail=headline` (SQL-side
rollups only). `?detail=full` is still available for callers that
explicitly want it.
- Added a test pinning the default
(`test_default_detail_is_headline_not_full`).

The underlying query-cost bug stays open as polylogue-dlmv — this PR is
a footgun mitigation for the entry point I just shipped, not a fix for
the query itself.

## Verification
- `devtools test tests/unit/daemon/test_provider_usage_endpoint.py` → 4
passed
- `mypy` → clean
- `devtools verify --quick` → exit 0

Ref polylogue-dlmv, polylogue-g9j6.

Co-authored-by: Claude <[email protected]>
Sinity added a commit that referenced this pull request Jul 8, 2026
…2571)

## Summary

The browser-capture receiver now requires a bearer token by default —
auto-minted into a 0600 file on first use — instead of defaulting to no
auth at all on plain loopback. Closes the remaining gaps in
polylogue-gnie and unblocks polylogue-kwsb.1's deferred token-mandatory
work.

## Problem

`polylogue/browser_capture/server.py`'s `_reject_token()` gate is shared
uniformly by every route (GET `/v1/status`, `/v1/archive-state`,
`/v1/post-commands`, and POST `/v1/browser-captures`,
`/v1/post-commands`) but only enforces a bearer token when one happens
to be configured. With `auth_token=None` (the previous default), any
local process — not just a browser page — could read
spool/archive-lifecycle state, drain queued post commands, or post
forged captures. kwsb.1's Host/Origin admission gate (#2559, merged)
closed the DNS-rebinding read hole but deliberately deferred this
default-auth work, since flipping the default with no pairing path
would 401 every operator who hadn't manually configured a token.

## Solution

- `polylogue/browser_capture/receiver.py`:
`load_or_mint_receiver_token()`
  (atomic mkstemp + `fchmod(0o600)` + `os.replace`, a plain
  pairing-secret file rather than the keyring-backed OAuth store in
  `sources/token_store.py`) and `resolve_receiver_auth_token(explicit,
allow_no_auth, token_path)`: an explicit `--browser-capture-auth-token`
  always wins, otherwise auto-mint/load, with
  `--browser-capture-allow-no-auth` /
  `POLYLOGUE_BROWSER_CAPTURE_ALLOW_NO_AUTH` as the loud, logged opt-out.
- Wired into both `polylogued run` (`daemon/cli.py`) and the standalone
  `browser-capture serve` CLI. `make_server()`'s own default is
  untouched, so existing unit tests that build a server directly with
  `auth_token=None` are unaffected.
- New `polylogue browser-capture token show [--rotate]` CLI prints the
  token to pair with the extension's existing manual token field
  (`browser-extension/src/background.js`, unchanged).
- `browser-extension/src/popup.js`: a 401 now renders as "Receiver
  requires a pairing token. Run `polylogued browser-capture token
  show`..." instead of a generic "Receiver offline" with no next step.
- `polylogue/config.py`: new `browser_capture_allow_no_auth` config key
  (TOML/env/CLI, inventory-registered).
- Docs updated: `docs/daemon.md`, `docs/configuration.md`,
  `docs/security.md`.

**Rejected alternative:** the bead's AC option (a) asked for the
extension to "auto-discover" the token file directly. Browser
extensions can't read arbitrary host files without a native-messaging
host — a much larger, separate capability — so this PR substitutes the
CLI-pairing + popup-UX equivalent above. Documented in the closing bead
notes (polylogue-gnie).

## Verification

- `devtools test tests/unit/browser_capture
tests/unit/daemon/test_daemon_cli.py
tests/unit/core/test_config_inventory.py tests/unit/core/test_config.py`
→ 251 passed, including a new end-to-end real-HTTP round trip
(`test_receiver_token.py::test_default_resolved_token_gates_get_and_post_and_pairs_end_to_end`)
proving the default-resolved token gates both GET and POST and that the
same value pairs both.
- `devtools verify --quick`
(format/lint/mypy/render/topology/layering/doc-commands/manifests/ci-workflows/test-clock-hygiene)
→ all green, including on the pre-push hook run above.
- `npx vitest run` in `browser-extension/` → 91 passed (incl. new
unauthorized-state popup test); `npx eslint src/ tests/` clean.

## Follow-ups

- `polylogue-1rfj`: stale `polylogue browser-capture ...` doc references
(should be `polylogued`) discovered in `browser-extension/README.md` and
`docs/design/mk2/**` — pre-existing, not touched here.
- `polylogue-rzve`: `--api-auth-token` help text claims auto-generation
that isn't implemented — unrelated daemon-API component, discovered in
passing.

Ref polylogue-gnie polylogue-kwsb.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Browser-capture now uses a pairing token by default, with a new token
display/rotation command and updated startup options.
* The browser extension popup now shows a clear pairing prompt when
access is unauthorized.

* **Bug Fixes**
* Unauthorized browser-capture access is now handled more clearly
instead of appearing offline.
  * Added support for an explicit no-auth mode when needed.

* **Documentation**
* Updated configuration, daemon, and security docs to reflect the new
token-based browser-capture behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude <[email protected]>
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 added a commit that referenced this pull request Jul 31, 2026
## Summary

- Extracts the hand-duplicated
`_MockServer`/`_MockHeaders`/`_make_handler` trio from three daemon test
files into a shared `tests/infra/daemon_http_harness.py`
(polylogue-myhg).
- Closes three CodeRabbit findings from PR #3425's review that were
triaged and filed as polylogue-2vor rather than blocking that merge (all
three are in `polylogue/insights/session_commit.py`, with regression
tests).

## Problem

**polylogue-myhg**: CodeRabbit flagged (PR #2559) that
`_MockServer`/`_MockHeaders`/`_make_handler` were duplicated
near-identically across `test_daemon_http_security.py`,
`test_daemon_events_endpoint.py`, and `test_provider_usage_endpoint.py`.
Drift already happened once: the `host=` parameter was added to two of
the three copies during a fast-follow, not all three. A fresh grep
tonight confirmed the duplication was still live.

**polylogue-2vor**: three P2 findings in `session_commit.py` were left
unaddressed at PR #3425's merge time:
1. `typed_refs_from_session_refs()` coerced a `session_refs` row with a
valid `url`/`repo` but no `ref_number` to "PR #0" (observed for Codex
Cloud's `chatgpt_codex_sidecar._pull_request_ref()`, which stores
`external_pull_request_id` in `url` and leaves `repo`/`number` unset).
Since typed refs are authoritative over the regex fallback, this could
suppress a correctly-parsed regex result with a bogus PR #0.
2. Disagreement detection compared PR/issue identity by bare number
only, so `acme/product#42` and `other/repo#42` compared equal — a real
cross-repo disagreement was never surfaced.
3. Foreign-trailer classification flagged a disagreement whenever a
commit carried *any* Claude-Session trailer, even when the current
session has no `bridge_session_ids` of its own — i.e. even with no typed
identity to compare against.

## Solution

**Mock harness extraction** (`tests/infra/daemon_http_harness.py`):
- `MockDaemonServer`, `MockHeaders`, `make_daemon_handler`,
`capture_json_response`, `capture_responses` — these mock only the HTTP
transport boundary (the listening socket/`ThreadingHTTPServer` a real
`DaemonAPIHandler` normally sits on, and the parsed header block a
socket read would produce). `do_GET`/`do_POST` dispatch, `_check_auth`,
cross-origin checks, route handlers, and JSON/SSE serialization all
still run as the real production `DaemonAPIHandler` built via `__new__`
— no boundary that was previously mocked is hollowed out.
- The three named test files now import the shared harness instead of
defining their own copies. `test_daemon_http_security.py` keeps a thin
file-local `_make_handler` wrapper because that file's whole point is
exercising the auth-required path, so its default server needs a
configured token (`"secret"`) unlike the harness's own open-by-default
`MockDaemonServer`.
- While touching `test_daemon_events_endpoint.py`, three ad-hoc
`type()`-built `_Srv` server stand-ins were also converted to
`MockDaemonServer` — same duplication pattern CodeRabbit flagged in the
original trio.
- Fixed two cross-file importers (`test_web_auth.py`,
`test_route_contracts.py`) that imported
`_MockServer`/`_capture_responses` *from* `test_daemon_http_security.py`
rather than defining their own copies — a case a narrow per-file
`devtools test` run doesn't catch but whole-repo `mypy --strict` does.

**session_commit.py fixes** (regression test per finding, see
`tests/unit/insights/test_session_commit.py`):
1. `typed_refs_from_session_refs()` now tries to recover a real number
by parsing a genuine `github.com` PR/issue URL out of `url` when
`number` is absent; if that also fails, the row is skipped rather than
defaulting to 0.
2. New `_refs_match()` compares the full `(owner, repo, number)`
identity whenever both refs are repo-qualified, falling back to
number-only equality when either side lacks repo identity (e.g. a bare
`#42` regex mention).
3. `foreign_trailer` now additionally requires `own_trailer_tokens` to
be non-empty.

## Verification

- `ruff check` + `mypy` (strict, whole repo: 2397 source files) clean.
- `devtools test tests/unit/daemon/test_daemon_http_security.py
tests/unit/daemon/test_daemon_events_endpoint.py
tests/unit/daemon/test_provider_usage_endpoint.py
tests/unit/daemon/test_web_auth.py
tests/unit/daemon/test_route_contracts.py` → 709 passed.
- `devtools test tests/unit/insights/test_session_commit.py` → 46
passed; also ran `tests/unit/cli/test_correlate_view.py
tests/unit/storage/test_archive_tiers_write.py` (other consumers of
`session_commit.py`) → 80 passed.
- `devtools verify --quick` → clean end to end.

Ref polylogue-myhg
Ref polylogue-2vor

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants