feat(backends): resolve external CLI descriptors in the runtime - #23
Open
elsheppo wants to merge 3 commits into
Open
feat(backends): resolve external CLI descriptors in the runtime#23elsheppo wants to merge 3 commits into
elsheppo wants to merge 3 commits into
Conversation
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
NEEDLE already loads external CLI backend descriptors, but runtime configuration still resolves only built-in backends. This change carries an explicitly selected descriptor and verified executable through normal config resolution and store construction, then uses the descriptor's atomic claim contract.
Remote lease renewal and dispatch admission/finalization are intentionally separate follow-ups.
Validation
cargo test --locked --test external_backend_runtime— 8 passedscripts/definition-of-done.sh --fast— 5 checks passedThe repository's
--allwrapper could not complete on the macOS validation host because it invokes GNUtimeout, which is not installed there. A manual library run was compared with an untouched-base run and did not worsen the aggregate pre-existing failure count. I am not claiming the full suite is green; upstream CI remains authoritative.Downstream proof
The complete three-layer contribution stack was deployed to a real external work-plane integration before submission. A 50-item production batch completed with 50 verified receipt references and no queued, running, or failed work remaining. Controlled restart recovery, expired-lease reclamation, duplicate/idempotent completion, expired-grant denial, invalid thread-correlation denial, credential isolation, app-server reconnect, and a full empty-queue backoff with zero launches all passed.
That downstream proof includes the separate lease-aware and dispatch-lifecycle follow-up patches; it is evidence that this extension point works in the intended integration, not a claim that this PR alone provides those later capabilities.