FEAT-006: Python orchestration engine v2 + sync + local sessions - #31
Merged
Conversation
Introduce engine/sdlc_engine for pointer, workflow, team registry, and archive with a CLI and pytest suite. scripts/sdlc.sh gains SDLC_ENGINE=shell|python|auto (default shell) so bash remains stable while callers can opt into Python. Co-authored-by: John Menke <jmjava@gmail.com>
Remove committed __pycache__ and egg-info; keep the source package clean. Co-authored-by: John Menke <jmjava@gmail.com>
Introduce links/sync-links/sync-roadmap/issues commands in the Python engine so requirements/milestones stay aligned with canvas Metadata, Linked Work status, ROADMAP summary, and remote issue drafts (gh / JIRA_*). Dogfood repair across existing milestone requirements. Co-authored-by: John Menke <jmjava@gmail.com>
Give exploratory/agent sessions a first-class machine-private identity under .sdlc/local-sessions/ so work is tracked without inventing FEAT/SPIKE artifacts. Promote later into canvas + milestone requirement + claim. Route local* through the Python engine even when SDLC_ENGINE=shell. Co-authored-by: John Menke <jmjava@gmail.com>
Co-authored-by: John Menke <jmjava@gmail.com>
Cover milestone↔ticket write-back with mocked Jira HTTP and fake gh unit tests, plus a live GitHub Issues integration suite (pull always; create/close behind SDLC_GITHUB_ISSUE_CREATE). Fix empty Metadata bullet parsing that swallowed the next line and blocked canvas Source Issue repair after GitHub push. Co-authored-by: John Menke <jmjava@gmail.com>
Co-authored-by: John Menke <jmjava@gmail.com>
Jira Cloud rejects plain markdown for description fields. Convert milestone ## Jira markdown into structured ADF on push (wiki markup for Server v2), preview via issues draft --format adf|wiki, and pull ADF back to markdown. Co-authored-by: John Menke <jmjava@gmail.com>
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
Starts v2 orchestration: a reusable Python package that can drive the SDLC-SPDD workflow instead of relying only on bash — plus milestone↔Jira/GitHub sync, ADF-formatted Jira descriptions, local/offline work sessions, and a testable issue-sync harness.
What’s new
engine/sdlc_engine— pointer / workflow / registry / archivelinks,sync-links [--repair],sync-roadmapissues draft|push|pull(GitHubgh/ JiraJIRA_*;--applyto mutate)issues draft --format adf|wiki; pull ADF→markdownlocal start|list|capture|shelf|resume|promote|abandon(LOCAL-*)Jira formatting fix
Jira Cloud rejects plain markdown strings for
description. The engine now:## Jira(Summary / Description / Business value / Scope / Acceptance / Traceability)POST /rest/api/3/issue(default on*.atlassian.net)JIRA_DESCRIPTION_FALLBACK=1issues draft --system jira --format adfTry it
Note
Permission probes left open issues #32 and #33 — this environment’s token can create but not close. Please close manually; CI create tests close with
GITHUB_TOKEN.REASONS Canvas
spdd/canvas/FEAT-006-python-orchestration-engine.mdTest Plan
python3 -m pip install -e './engine[dev]' pytest -q engine/tests SDLC_GITHUB_INTEGRATION=1 pytest -q engine/tests/test_issues_github_integration.py --run-github-integration ./tests/test-sdlc-engine-shim.sh