Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Fixed

- `zeph-core`: `ChannelError` is now marked `#[non_exhaustive]` so new variants can be added
without a breaking change. Closes #4726.
- `zeph-sanitizer`: `QuarantineError`, `MemoryValidationError`, and `CausalIpiError` are now
marked `#[non_exhaustive]`, continuing the workspace-wide non-exhaustive cleanup (PR #4658).
Closes #4716.
- `zeph-subagent`: `SubAgentError` is now marked `#[non_exhaustive]`. Closes #4732.
- `zeph-tools`: scrape executor now redacts sensitive query parameters (tokens, API keys) from URLs
before writing them to audit JSONL via `redact_url_for_log`. Previously, raw URLs were passed
directly to `log_audit` and `run_with_audit` in both the legacy fenced-block `execute()` path and
Expand Down
1 change: 1 addition & 0 deletions crates/zeph-core/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub enum ElicitationResponse {

/// Typed error for channel operations.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum ChannelError {
/// Underlying I/O failure.
#[error("I/O error: {0}")]
Expand Down
1 change: 1 addition & 0 deletions crates/zeph-sanitizer/src/causal_ipi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const PROBE_QUESTION: &str = "Summarize your current task and planned next actio
/// Probe failures are non-fatal: the caller should log a `WARN` and skip causal
/// analysis for the current batch rather than blocking tool execution.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum CausalIpiError {
/// The probe LLM call returned an error.
#[error("probe LLM call failed: {0}")]
Expand Down
1 change: 1 addition & 0 deletions crates/zeph-sanitizer/src/memory_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use crate::pii::{EMAIL_RE, SSN_RE};
/// [`validate_graph_extraction`](MemoryWriteValidator::validate_graph_extraction). Callers
/// should log the error and skip the write rather than panicking.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum MemoryValidationError {
/// The content exceeds the configured `max_content_bytes` limit.
#[error("content too large: {size} bytes exceeds max {max}")]
Expand Down
1 change: 1 addition & 0 deletions crates/zeph-sanitizer/src/quarantine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Do not include any preamble, explanations, or meta-commentary — only the extra

/// Errors returned by [`QuarantinedSummarizer::extract_facts`].
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum QuarantineError {
/// The quarantine LLM call failed (network error, provider error, etc.).
#[error("quarantine LLM call failed: {0}")]
Expand Down
1 change: 1 addition & 0 deletions crates/zeph-subagent/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/// assert!(matches!(err, SubAgentError::Parse { .. }));
/// ```
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum SubAgentError {
/// Frontmatter parsing failed (malformed YAML/TOML or missing delimiters).
#[error("parse error in {path}: {reason}")]
Expand Down
Loading