GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@wan9chi wan9chi commented Nov 4, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
@wan9chi wan9chi added the read-write overlap Caching tasks that read and write the same paths label Nov 4, 2026
@wan9chi wan9chi mentioned this pull request Nov 4, 2026
☂️ Cache tools that maintain their own cache #929
Open
graphite-app[bot]
graphite-app Bot reviewed Nov 4, 2026
View reviewed changes
Comment thread docs/rfcs/dry-run.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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%
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi 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
@jasonkuhrt

This comment has been minimized.

Sign in to view
This was referenced Nov 4, 2026
vp run --plan: print what a run would do, without running it voidzero-dev/vite-plus#2848
Closed
A miss on a fresh checkout runs tsc --incremental with no build info, though the step's entry archived it #936
Open
@wan9chi

wan9chi commented Nov 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

@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
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi
wan9chi requested review from cpojer and fengmk2 November 5, 2026 02:10
@jasonkuhrt jasonkuhrt mentioned this pull request Nov 5, 2026
A dry run marks a step unknown behind a cached prerequisite that restores outputs, though the restore gives it the exact files it recorded #938
Open
graphite-app[bot]
graphite-app Bot reviewed Nov 5, 2026
View reviewed changes
Comment thread docs/rfcs/dry-run.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 approved these changes Nov 5, 2026
View reviewed changes

@fengmk2 fengmk2 left a comment

Copy link
Copy Markdown
Member

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.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread docs/rfcs/dry-run.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

wan9chi and others added 10 commits November 5, 2026 14:36
@wan9chi @claude
docs: add RFCs for task graph JSON and dry runs
1b72410
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]>
@wan9chi @claude
docs(rfc): sort keys in the JSON examples
a16b774
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]>
@wan9chi @claude
docs(rfc): mark steps after files-writing steps as unknown
434fba0
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]>
@wan9chi @claude
docs(rfc): merge the hit, changed and unknown cache shapes
5433535
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]>
@wan9chi @claude
docs(rfc): rename partial to changesPartial
c4d2edf
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wan9chi @claude
docs(rfc): print fields in declared order, not sorted
1ecded2
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]>
@wan9chi @claude
docs(rfc): omit a step's cwd when it is the package directory
b200e27
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wan9chi @claude
docs(rfc): scope the --dry-run rule to command lines with a task
5544c68
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]>
@wan9chi @claude
docs(rfc): add $schema to the task graph and run plan
7e0f3f7
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]>
@wan9chi @claude
docs(rfc): point $schema at the schema shipped with vite-plus
408b97b
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]>
@wan9chi
wan9chi force-pushed the claude/task-graph-cli-design-516a03 branch from c8ca834 to 408b97b Compare November 5, 2026 06:36
@wan9chi
wan9chi merged commit 56d38d2 into main Nov 5, 2026
18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi
wan9chi deleted the claude/task-graph-cli-design-516a03 branch November 5, 2026 06:38
@jasonkuhrt jasonkuhrt mentioned this pull request Nov 12, 2026
When the local and remote entries both miss, the miss reason describes only the local one #993
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@graphite-app graphite-app[bot] graphite-app[bot] left review comments
@fengmk2 fengmk2 fengmk2 approved these changes
@cpojer cpojer Awaiting requested review from cpojer

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

read-write overlap Caching tasks that read and write the same paths

Projects

None yet

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.

3 participants

@wan9chi @jasonkuhrt @fengmk2
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.