feat(jade): JadeFlow Week 1 foundation — DAG engine, CLI, persistence#4
Open
alex-jadecli wants to merge 1 commit into
Open
feat(jade): JadeFlow Week 1 foundation — DAG engine, CLI, persistence#4alex-jadecli wants to merge 1 commit into
alex-jadecli wants to merge 1 commit into
Conversation
…LI, and persistence Complete Week 1 deliverable from the JadeFlow Bible: define workflows in Python and run them via CLI. Includes: - Core DAG engine with @flow/@task decorators and topological sort (Kahn's algorithm) - Sequential executor with retry logic, upstream failure propagation, and result passing - Task/flow state machines with validated transitions - SQLAlchemy ORM models (6 tables: workflows, runs, tasks, instances, logs, config) - Repository pattern for data access - Typer CLI: jade init, run, status, validate, graph, version - Feature flag system (defaults + file + env var override, cached) - Per-module CLAUDE.md files enforcing scope boundaries - 3 example workflows (hello_world, etl_pipeline, parallel_tasks) - 90 unit tests covering all modules (100% pass rate) https://claude.ai/code/session_01MsF8rLi2Q2BHcdvdvNfjeC
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
@flow/@taskdecorators, topological sort (Kahn's algorithm), sequential executor with retries, upstream failure propagation, and result passing between tasksjade init,run,status,validate,graph,version) — define workflows in Python and execute from the command line~/.jade/flags.json→ env vars) and cached loadingcore/,cli/,db/,ai/,plugins/Test plan
pytest tests/jade/ -v— 90 tests passruff check jade/ tests/jade/ examples/— cleanjade run examples/hello_world.py hello_world— executes successfullyjade validate examples/etl_pipeline.py etl_pipeline— validates DAGjade graph examples/parallel_tasks.py parallel_pipeline— renders ASCII DAGhttps://claude.ai/code/session_01MsF8rLi2Q2BHcdvdvNfjeC