Repository navigation
refactor(delivery): single-source executor kinds; dedupe prompt rendering - #143
Merged
Merged
Conversation
…ring - ExecutorKind::ALL is now a slice, so in-memory and Redis queue adapters no longer hardcode the kind count; adding a variant only touches domain/delivery.rs - MCP dispatch schema derives the executor enum from ExecutorKind::ALL instead of a hand-kept list; web EXECUTOR_LABEL and CLI normalize_agent carry explicit sync comments - WorkSpec::to_prompt moves into delivery ports as the canonical prompt builder; the local executor adapter uses it, and agent-runtime's standalone mirror is documented as such (it intentionally avoids the delivery dep)
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
ExecutorKind::ALLis now a slice, so the in-memory and Redis queue adapters no longer hardcode the kind count — adding a variant only touchesdomain/delivery.rs.ExecutorKind::ALLinstead of a hand-kept list; webEXECUTOR_LABELand CLInormalize_agentcarry explicit sync comments.WorkSpec::to_promptmoves into delivery ports as the canonical prompt builder; the local executor adapter uses it, andagent-runtime's standalone mirror is documented as such (it intentionally avoids the delivery dependency).Verification
cargo test -p delivery(incl. newto_promptunit test)cargo check -p delivery -p server -p agent-runtimenpm run typecheckcargo fmt --check+cargo clippy --workspace -D warnings