Skip to content

Add JSON output for reconstruction pipeline provenance - #52

Open
ajtritt wants to merge 1 commit into
mainfrom
44-reconstruct-output
Open

Add JSON output for reconstruction pipeline provenance#52
ajtritt wants to merge 1 commit into
mainfrom
44-reconstruct-output

Conversation

@ajtritt

@ajtritt ajtritt commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Close #44

  • src/dsagt/provenance.py: added compute_terminal_outputs() (files that appear as no record's input) and render_json() (records + dependency graph + terminal outputs as JSON). reconstruct_pipeline now accepts fmt="json", including a proper empty-JSON response when there are no records (previously all formats fell back to a bash-comment string).
  • src/dsagt/mcp/registry_tools.py: added "json" to the reconstruct_pipeline tool's format enum.
  • tests/test_pipeline.py: added TestComputeTerminalOutputs (diamond DAG, independent leaves, linear pipeline, no-outputs, duplicate-output dedup), TestRenderJson, and JSON-format cases in TestReconstructPipeline (including the empty case).

@ajtritt
ajtritt requested review from a team and aarontuor September 2, 2026 00:19
@ajtritt ajtritt self-assigned this Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://AI-ModCon.github.io/dsagt/pr-preview/pr-52/

Built to branch gh-pages at 2026-09-02 00:20 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Structured output format for reconstruct_pipeline

1 participant