PoC: Add executable-doc based agent skills with context-aware command/guidance responses#64029
Draft
KatalKavya96 wants to merge 3 commits intoapache:mainfrom
Draft
PoC: Add executable-doc based agent skills with context-aware command/guidance responses#64029KatalKavya96 wants to merge 3 commits intoapache:mainfrom
KatalKavya96 wants to merge 3 commits intoapache:mainfrom
Conversation
…n engine - define structured workflow block for targeted test execution - implement extractor (markdown → JSON) - add context detection (host vs Breeze) - implement decision engine for command selection - connect decision engine to extracted skills (single source of truth) - add unit tests for extraction, context detection, and decision logic
… guidance responses
1 task
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
This PR introduces a small PoC for modeling Airflow contributor workflows as structured, executable agent skills, with context-aware command selection.
The goal is to explore a narrow vertical slice of the problem described in #62500 , focusing on workflow semantics rather than broad coverage.
What is implemented
1. Structured workflow blocks (Executable-doc style)
Two workflows are defined in a markdown file using structured blocks:
run_targeted_testsuv run --project ... pytest)breeze run pytest) when system dependencies are missingsetup_breeze_environment2. Extraction pipeline
A lightweight extractor converts structured blocks into machine-readable skill definitions:
3. Context-aware decision engine
A simple decision engine consumes
skills.jsonand returns the appropriate response based on execution context:hostvsbreeze4. Command vs Guidance response model
Instead of returning only commands, the PoC introduces a response contract:
{ "mode": "command", "command": "...", "reason": "..." } { "mode": "guidance", "message": "...", "next_action": "..." }This allows modeling workflows where the correct action is not execution, but a context-aware transition.
Example:
setup_breeze_environmentinside Breeze returns guidance instead of suggestingbreeze shell5. Tests
Unit tests cover:
Why this approach
This PoC explores whether:
This may better reflect real contributor workflows where:
Scope
This is intentionally limited to:
It does not yet include:
Related: #62500