6bc0e9e6df
Trimmed salvage of #110045 (deltas 1 + 2 only), stacked on the #110009 scope inheritance: - `declared_conversation_scope` treats an inherited value as a DECLARED scope only when it carries the `gwk_` prefix. A rotated CLI parent publishes no affinity scope (None → sticky key falls back to the conversation root); the fork now publishes exactly the same instead of an explicit physical lineage root. `resolve_prompt_cache_scope` honors any inherited value directly, so the body `prompt_cache_key` still matches. - `build_cache_parity_fork` snapshots `parent._conversation_root_id()` as `_cached_conversation_root`; with `_session_db=None` the fork's own walk fell back to the parent's PHYSICAL id, so after a compression rotation the review's Portal `conversation=` tag fragmented usage attribution across one logical conversation. Dropped from the original: copying `_gateway_session_key` onto the persistence-detached fork (no cache-identity consumer reads it there; the compression-boundary hooks were deliberately severed by `_detach_fork_compression`), and the defensive hasattr/callable/try wrapper around `_conversation_root_id()`.