GeezerVison is showing github.com — docs(rfc): JSON task graph, and dry-run plans with cache status by wan9chi · Pull Request #933 · voidzero-dev/vite-task
Conversation
wan9chi
commented
Nov 4, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Once the work in #929 lands, vp run caches tasks that read and rewrite their own files without exclusions in cache.input or cache.output.
Humans and AI agents will need to see why a task missed, and what it was checked against, more than before.
Today there is also no way to ask what a run would do, or whether it would hit the cache, before running it (#791, voidzero-dev/vite-plus#2848), or to get the task graph without parsing the task list (#320, voidzero-dev/vite-plus#1182).
Two RFCs:
docs/rfcs/task-graph-json.md: vp run --json prints every package and task in the workspace, and the dependsOn edges between tasks.
docs/rfcs/dry-run.md: --dry-run stops before running anything, --json prints the plan as JSON, and -v/-vv make the cache check list every change and everything the cached run depends on.
Note Low Risk
Documentation-only RFCs; they describe proposed CLI and JSON formats but do not change product code in this PR.
Overview
Adds two design RFCs under docs/rfcs/ that specify future vp run behavior for tooling and agents—no runtime changes in this PR.
task-graph-json.md defines vp run --json (no task): a versioned TaskGraph document with packages, tasks keyed by task ID, dependsOn edges, shared conventions (paths, $schema, absent fields, output rules), and which flag combinations are errors (e.g. --json with -r or --dry-run without a task).
dry-run.md defines --dry-run (plan + cache checks without executing or writing), --dry-run --json as a RunPlan with per-step cache status (hit / changed / unknown / noBaseline / etc.), structured changes, optional changesPartial, and -vv fingerprints/outputs. It also specifies behavior changes when implemented: -v/--verbose as a counted flag, and real runs with -v listing all cache miss reasons instead of stopping at the first file difference.
Reviewed by Cursor Bugbot for commit 408b97b. Bugbot is set up for automated code reviews on this repo. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fspy benchmark
linux
dynamic/launch change +0.84% [ -2.57% .. +4.35%] overhead +56.25%
dynamic/access change +0.00% [ -4.39% .. +2.92%] overhead +22.39%
dynamic/access-relative change +0.61% [ -2.94% .. +2.71%] overhead +71.66%
dynamic/access-contended change +2.19% [ -3.28% .. +6.98%] overhead +45.34%
static/launch change +0.06% [ -2.81% .. +2.54%] overhead +187.37%
static/access change +0.24% [ -1.07% .. +1.40%] overhead +1453.67%
static/access-relative change -0.17% [ -1.53% .. +1.48%] overhead +1985.61%
static/access-contended change -0.31% [ -1.33% .. +1.74%] overhead +2069.27%
macos
dynamic/launch change -0.44% [ -6.23% .. +4.79%] overhead +227.72%
dynamic/access change +0.01% [ -3.06% .. +3.96%] overhead +3.55%
dynamic/access-relative change -1.20% [ -3.91% .. +3.26%] overhead +250.18%
dynamic/access-contended change +2.34% [ -4.30% .. +6.39%] overhead +2.77%
windows
dynamic/launch change +0.36% [ -4.28% .. +3.64%] overhead +30.54%
dynamic/access change +0.00% [ -3.35% .. +1.97%] overhead +1.62%
dynamic/access-relative change +0.20% [ -3.02% .. +8.70%] overhead +1.41%
dynamic/access-contended change +0.59% [ -2.78% .. +3.32%] overhead +1.58%
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
wan9chi
changed the title
docs: add RFCs for task graph JSON and dry runs
docs(rfc): JSON task graph, and dry-run plans with cache status
Nov 4, 2026
This comment has been minimized.
This was referenced Nov 4, 2026
wan9chi
commented
Nov 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
@jasonkuhrt Thanks for the feedback. It's a very valid concern but also complex to implement. I'd prefer to do it in another RFC.
To avoid confusion in this RFC, I've added unknown status if any previous step misses cache or hit with outputs to restore.
|
jasonkuhrt reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Add two RFCs for `vp run` diagnostics:
- docs/rfcs/task-graph-json.md: `vp run --json` prints every package and
task in the workspace and the `dependsOn` edges between tasks.
- docs/rfcs/dry-run.md: `--dry-run` stops before running anything,
`--json` prints the plan as JSON, and `-v`/`-vv` make the cache check
list every change and everything the cached run depends on.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The RFCs say output keys are sorted, but the examples listed them in
another order. Sort every example's keys so they match.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a fresh checkout, a step that reads another step's outputs looked
changed in a dry run, although the real run hits once those outputs are
restored. A step that would be hit or changed is now unknown when a step
it waits on would write files first, by running or by restoring outputs.
It keeps today's changes, and restore-aware checking stays in Future.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
They share the same fields, so declare one object with a status union
instead of three members joined by an intersection.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fields follow the order the types declare them, so program and args
come before cache. Map entries keyed by path or ID stay sorted by key.
Plan tasks now declare package before name, as task graph tasks do.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
vp run --json without a task prints the task graph and rejects
--dry-run, so the rule that adding --dry-run never breaks a working
command line only holds when there is a task.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Points to a published JSON Schema with each field's description, so an
agent can look up what a field means from the output alone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The schema ships in the vite-plus package that printed the document, so
it matches the output exactly and works offline. The value is a file://
URL that is not percent-encoded and has a / before a Windows drive, the
form both VS Code and JetBrains IDEs read; neither reads a plain Windows
path.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
fengmk2
fengmk2 approved these changes
cpojer
Awaiting requested review from cpojer
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|