feat: implement custody journal for agent execution tracking
- Add CustodyJournal class to manage execution records with atomic persistence.
- Introduce CustodyRecord interface to define the structure of custody records.
- Implement recovery logic for interrupted turns and handle various custody states.
- Create tests for CustodyJournal to ensure correct behavior during recovery and state management.
feat: add custody service for Electron integration
- Create custody service to manage journal access and authority verification.
- Implement scopeKeyFor and authorityOf functions to handle session keys and authority normalization.
- Add scopeViolation function to check the validity of granted workspace roots.
feat: develop custody halt banner component
- Implement CustodyHaltBanner component to display halt notifications with preserved evidence.
- Provide user feedback for reauthorization actions and display relevant details about the halt.
feat: enhance crew integration presentation logic
- Create functions to present crew integration status with user-friendly messages.
- Implement tests to verify the presentation logic for different integration states.
feat: introduce crew review fingerprinting
- Implement crewReviewFingerprint function to track changes in lane ownership.
- Ensure that runtime status updates do not affect the review evidence display.
chore: add shared custody types for consistency
- Define custody invariant types and violation structures for shared use across main and renderer processes.