exp: add non-mutating Jules readiness preflight - #6
Draft
mark-e-deyoung wants to merge 4 commits into
Draft
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.
Purpose
Add the smallest missing readiness sensor for the existing hardened Jules dispatch path: determine whether an opaque approved target + approved task is currently dispatchable through exactly one Jules Source without creating a Jules session.
This is an experimental sensor only. It does not widen the target policy, add credentials, expose private target mappings, create sessions, dispatch work, poll results, or change acceptance authority.
Changes
scripts/jules_preflight.pyscripts/jules.py;.github/workflows/jules-preflight.ymlworkflow_dispatchusing the existingjules-dispatchenvironment and actor gate;tests/test_jules_preflight.py.github/workflows/jules-preflight-tests.ymlOutput contract
Successful preflight output is limited to:
ready;target;task;jules_source: available-unique;session_created: false;authority_mutation: false.It deliberately omits repository, branch, prompt, source ID, Jules session/provider metadata, activities, patches, and PR metadata.
Why this is separate from dispatch
The current control path can only discover some readiness failures while attempting a live session. That makes a provider mutation an unnecessarily expensive way to answer a configuration question. This preflight allows qualification/placement logic to distinguish
READYfrom environment/policy/source blockers before spending a work-sample execution.Non-goals