feat(harmonia-host): acquisition startup wiring (P101)#100
Merged
forkwright merged 1 commit intomainfrom Mar 16, 2026
Merged
Conversation
…n (P101) Add Phase 3A acquisition crate startup wiring to the serve command: - Layer 0: Zetesis (search/indexer) - Layer 1: Ergasia (download engine via SessionEngine adapter) - Layer 2: Syntaxis (download queue with event listener) - Layer 4: Syndesmos (external integrations with event handler) - Layer 4: Prostheke (subtitle service) Extend AppState with dyn-compatible trait handles for each subsystem. Add HostError variants for acquisition crate errors. Validate download_dir exists and is writable before acquisition startup. Graceful shutdown cancels subsystems in reverse layer order. Observations: - Episkope crate (Layer 3, monitoring) does not exist in workspace — skipped - librqbit DurationWithHumanReadable has private inner field — ETA dropped Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
servestartup/shutdown with correct layer ordering (0→1→2→4)AppStatewithArc<dyn DynXxx>handles for each subsystem via new placeholder traits in parocheHostErrorvariants,validate_download_dir()hard check, and graceful reverse-order shutdownLayer ordering
Observations
DurationWithHumanReadablehas a private innerDurationfield — ETA computation dropped from progress adapter, returnsNone.StubImportServiceused for syntaxis import pipeline — real import wiring deferred to follow-up prompt.Blast radius
5 files changed, 389 insertions, 3 deletions:
crates/harmonia-host/Cargo.toml— new depscrates/harmonia-host/src/error.rs— new error variantscrates/harmonia-host/src/serve.rs— startup/shutdown wiring + adapterscrates/paroche/src/state.rs— dyn traits + AppState fieldsCargo.lock— lockfile updateNo changes to Phase 3A crate internals, no route additions, no test additions.
Validation gate
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace(all pass, 0 failures)Test plan
cargo buildsucceeds on CIcargo run -- servewith valid config starts acquisition subsystems in log order🤖 Generated with Claude Code