codex icon indicating copy to clipboard operation
codex copied to clipboard

Identify rejecting threads in Guardian policy refresh errors

Open TheOutlandsDev opened this issue 1 day ago • 0 comments

When a live thread rejects a Guardian policy refresh, the registry logs its thread ID. The caller of ThreadManager::refresh_guardian_policy() receives only Guardian policy refresh rejected by one or more live threads. Could the host-facing error or a structured result include the rejecting thread IDs so callers can identify the affected threads? Registry source

The existing guardian_refresh_reports_live_thread_rejection integration test passed at acd1a379 and confirmed the generic error. On bda8fc3c with a local diagnostics patch, two focused tests passed:

  • Invalid fallback: The error identifies the rejecting thread, which retains its previous policy and revision.
  • Suspended refresh: The error identifies only the rejecting thread, and the other thread applies the update.

The tests ran offline on Linux with Rust 1.99.1, locked dependencies, and loopback for the mock server. The results cover the core API. Hosted UI behavior remains unverified. Existing integration test

TheOutlandsDev avatar Nov 30 '26 13:11 TheOutlandsDev