Repository navigation
trace --format dot|pdf: the tasks an artifact rests on, as a graph - #33
Merged
Merged
Conversation
…drawn by Graphviz; release 0.12.0 One node per task: what it produced on this path, and what it consumed that no task made, by where that lives. One arrow per pair of tasks. Mermaid goes: one graph format. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Closes #32. A trace can now be drawn: a compact graph of the tasks an artifact rests on, laid out by Graphviz. The design was settled on real traces; the issue records it and what was rejected.
The command
analysis-workflow trace <artifact> [key] --format dotprints DOT text.--format pdf --output <file>renders it with Graphviz'sdot; a.svgor.pngsuffix gives that type. Withoutdoton PATH it says so and names the fix (pixi add graphviz).pyproject.toml.The picture
Mermaid goes.
--format mermaidandTrace.as_mermaidare removed, so there is one graph format. Thetrace-lineageskill saves the PDF and gives its path in the report.Also:
task_field(task, "Author" | "Date")reads a task README's header, besidetask_id.+361 −24 lines; version 0.12.0.
Tests: 185 pass, 1 skipped. New, on the DOT text: a node per task and an arrow per pair, the marker on the artifact alone, author and date in the bar; places outside the repo named and coloured the same in two different traces; items past the third counted; no graph for an artifact no task made; the command's
dotandpdfforms. CI has no Graphviz, so there thepdftest checks the message; wheredotis installed it checks the file. Rendered by hand with Graphviz 14.1.2 on a real branching trace of five tasks: the output matches the agreed design.Not done: a rendered check of a task that is not in the checkout, and of more than six places outside a repo; both are handled in code and untested by eye.
🤖 Generated with Claude Code