Skip to content

feat(cache): add explicit auto output tracking - #460

Merged
wan9chi merged 1 commit into
mainfrom
infra-explicit-auto-output
Jun 15, 2026
Merged

feat(cache): add explicit auto output tracking#460
wan9chi merged 1 commit into
mainfrom
infra-explicit-auto-output

Conversation

@wan9chi

@wan9chiwan9chi commented Jun 14, 2026

Copy link
Copy Markdown
Member

Motivation

Users should be able to ask the runner to archive files written by a task without manually maintaining output globs, while still keeping the default behavior unchanged for a small reviewable step.

Scope

Support output: [{ auto: true }], attach fspy when explicit auto output tracking is requested, keep read and write filtering separate, and archive fspy-tracked writes after applying output negatives and runner ignoreOutput reports. Add an e2e with input: [] to prove explicit auto output tracking works on its own.

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:a1c7046148

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

&mut negative_globs,
)?;
}
UserOutputEntry::Auto(AutoInput { auto: true }) => includes_auto = true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Propagate auto outputs through synthetic cache merges

When an inherited SyntheticPlanRequest supplies output: [{ auto: true }], this new includes_auto value is resolved here but resolve_synthetic_cache_config still merges only positive_globs and negative_globs from synthetic_output (crates/vite_task_plan/src/plan.rs:521-535). In that nested-synthetic context the flag is dropped back to the parent output config (usually false), so fspy is not attached and the synthetic command's written outputs are never archived or restored despite opting into auto output tracking.

Useful? React with 👍 / 👎.

@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 729380c to cc9e8c7CompareJune 14, 2026 16:20
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch from ed8d3c6 to f83d812CompareJune 14, 2026 16:20
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from cc9e8c7 to 64ed82bCompareJune 14, 2026 16:26
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch 2 times, most recently from d843881 to e1a8b45CompareJune 14, 2026 16:29
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 64ed82b to 8a334a7CompareJune 14, 2026 16:29
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch from e1a8b45 to e713ae3CompareJune 14, 2026 22:17
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 8a334a7 to 6d2908cCompareJune 14, 2026 22:17
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch from e713ae3 to dcee0e6CompareJune 14, 2026 22:36
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 6d2908c to 5eb76f5CompareJune 14, 2026 22:36
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch from dcee0e6 to 5d84636CompareJune 14, 2026 22:41
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 5eb76f5 to c34daebCompareJune 14, 2026 22:41
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch 2 times, most recently from c47df41 to 02224e8CompareJune 14, 2026 22:49
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch 2 times, most recently from 18d1416 to 4bb199dCompareJune 14, 2026 22:49
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 4bb199d to 3e75f37CompareJune 14, 2026 22:50
@wan9chi
wan9chiforce-pushed the infra-ignore-output-overlap branch from 02224e8 to 521bb20CompareJune 15, 2026 01:19
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 3e75f37 to 12e1a52CompareJune 15, 2026 01:19
@wan9chiGraphite App

wan9chi commented Jun 15, 2026

Copy link
Copy Markdown
MemberAuthor

Merge activity

  • Jun 15, 1:30 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 15, 1:37 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 15, 1:40 AM UTC: @wan9chi merged this pull request with Graphite.

@wan9chi
wan9chi changed the base branch from infra-ignore-output-overlap to graphite-base/460June 15, 2026 01:31
@wan9chi
wan9chi changed the base branch from graphite-base/460 to mainJune 15, 2026 01:35
Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi
wan9chiforce-pushed the infra-explicit-auto-output branch from 12e1a52 to a077de0CompareJune 15, 2026 01:36
@wan9chi
wan9chi merged commit 6842ab2 into mainJun 15, 2026
20 checks passed
@wan9chi
wan9chi deleted the infra-explicit-auto-output branch June 15, 2026 01:40
Sign up for freeto 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.

1 participant

@wan9chi