Skip to content

Refactor/shared review scaffolding#101

Merged
asiniscalchi merged 6 commits into
mainfrom
refactor/shared-review-scaffolding
Jun 11, 2026
Merged

Refactor/shared review scaffolding#101
asiniscalchi merged 6 commits into
mainfrom
refactor/shared-review-scaffolding

Conversation

@asiniscalchi

Copy link
Copy Markdown
Owner

No description provided.

asiniscalchi and others added 6 commits June 11, 2026 17:23
Replace hand-written Display/Error impls with thiserror derives for
SemanticSearchError, CaptureEmbeddingError, AnalyzerError,
PromptSourceError, and EmbedderError. Messages are unchanged.

TransferError and BulkImportError keep manual impls: their Conflict
variant has a `source: String` field that thiserror would mistake for
an error source.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Convert the daily-review and signal modules (repository, service,
prompt, generator, search, backfill) to thiserror derives. Introduce a
small from_error_string! macro that replaces the hand-written From
impls collapsing upstream errors into a string-carrying variant.
Messages are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… types with thiserror

Same mechanical conversion as the review module: thiserror derives
replace hand-written Display/Error impls, and from_error_string!
replaces the From impls that collapse sqlx errors into Storage/Database
variants. Messages are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…h thiserror

Convert the delivery workers, validation errors, and ToolError to
thiserror derives, completing the migration. The only hand-written
error impls left are TransferError and BulkImportError, whose Conflict
variant has a `source: String` field that thiserror would treat as an
error source.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
TelegramDailyReviewSender and TelegramWeeklyReviewSender were identical
except for names and the log line. Replace both with a single
TelegramReviewSender in workers::telegram that implements each worker's
sender trait, and merge the two identical SendOutcome enums into one
shared ReviewSendOutcome.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The four prompt modules (daily review, weekly review, signal
extraction, entry extraction) duplicated the same config struct,
env-override resolution, file loading, version derivation, error enum,
and tests. Move the loading into prompts::file with a single PromptFile
type and PromptFileError; each module keeps its own config type, env
var, default path, and kind label for error messages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@asiniscalchi asiniscalchi merged commit d83daa3 into main Jun 11, 2026
2 checks passed
@asiniscalchi asiniscalchi deleted the refactor/shared-review-scaffolding branch June 11, 2026 22:12
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