Skip to content

feat(agent): add server asked detector core#162

Merged
phall1 merged 1 commit into
mainfrom
codex/asked-detector-core
Jun 23, 2026
Merged

feat(agent): add server asked detector core#162
phall1 merged 1 commit into
mainfrom
codex/asked-detector-core

Conversation

@phall1

@phall1 phall1 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a clean-room server-side asked detector core with source arbitration
  • route REPORT_ASKED through detector state before broadcasting the existing asked event
  • clear pending asked state when a pane is reaped
  • close phux-2sl6.4 and the parent phux-2sl6 epic

Clean-room note

This implements phux-owned detector state and source precedence from ADR-0036. No herdr source, manifests, regular expressions, hook scripts, or assets were copied.

Validation

  • nix develop -c env CARGO_TARGET_DIR=/tmp/phux-detector-target cargo test -p phux-server agent_asked -- --nocapture
  • nix develop -c env CARGO_TARGET_DIR=/tmp/phux-detector-target cargo test -p phux-server --test agent_asked report_asked -- --nocapture
  • nix develop -c env CARGO_TARGET_DIR=/tmp/phux-detector-target cargo clippy -p phux-server --all-targets --all-features -- -D warnings
  • nix develop -c env CARGO_TARGET_DIR=/tmp/phux-detector-target just ci

Co-Authored-By: Warp agent@warp.dev

Add a clean-room server detector module for agent asked state arbitration, with hook reports taking priority over future scrape evidence and pane reap clearing pending asked state.

Route REPORT_ASKED through the detector before event fanout, close the detector bead and parent asked-event epic, and cover hook-wins-over-scrape plus clear-on-exit behavior.

Co-Authored-By: Warp <agent@warp.dev>
@phall1 phall1 merged commit 23c7bca into main Jun 23, 2026
3 checks passed
@phall1 phall1 deleted the codex/asked-detector-core branch June 23, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant