Wire Guardian V3 housekeeping into the app server (#61797)

## What changed

- Install Guardian V3 with a local message-board host when the server enables `features.guardianv3.enabled`, independently of thread overrides.
- Clear inherited user, thread, and project instructions from Guardian V3 private threads and skip repository instruction discovery.

## Testing

Add integration coverage for routing the first live message while the actor is still sampling, for both new and resumed threads. Verify that resumed history is skipped, `AGENTS.md` reaches only the actor, and thread overrides cannot enable or disable server-level housekeeping.

GitOrigin-RevId: 3f3ae1be404c9e17b73eea12c95f5a95c96052cf
This commit is contained in:
felixxia-oai
2026-11-16 12:03:11 +00:00
committed by copyberry
parent cd18053706
commit 9544f09e7b
6 changed files with 178 additions and 5 deletions
@@ -75,6 +75,14 @@ impl PreparedGuardianContext {
}
impl PreparedGuardianContext {
/// Start with no parent user, thread or project instructions and skip repository discovery.
pub fn without_parent_instructions(mut self) -> Self {
self.key.user_instructions = None;
self.key.thread_instructions = None;
self.key.project_instructions = Some(Arc::default());
self
}
pub fn reuse_key(
&self,
previous: Option<&GuardianReviewSession>,