cache: unify per-entry layout (v13); drop redundant run-logs dump - #65
Merged
Conversation
Move outputs from <cacheDir>/<hash>/<rel> to <cacheDir>/<hash>/outputs/<rel>
and pull captured stdout/stderr from the sibling logs/<hash>.{stdout,stderr}
into <hash>/stdout + <hash>/stderr. One entry = one directory; eviction is
a single rm -rf <hash>/.
Also delete src/orchestrator/task-logs.ts and the corresponding
persistTaskLogs() invocation from src/orchestrator.ts: the runtime
<cacheDir>/logs/<run_id>/<project>__<task>.{stdout,stderr} dump was
redundant with what the cache already captures per hash on success,
with the live stream for failures, with the structured runs-table
metadata, and with CI's own stdout capture.
CACHE_VERSION -> vx-cache-v13. Tests + docs updated.
5 tasks
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.
Summary
vx-cache-v13). Outputs moved from<cacheDir>/<hash>/<rel>to<cacheDir>/<hash>/outputs/<rel>; captured stdout/stderr moved from the sibling<cacheDir>/logs/<hash>.{stdout,stderr}into<cacheDir>/<hash>/stdoutand<cacheDir>/<hash>/stderr. One entry = one directory; eviction collapses to a singlerm -rf <hash>/.src/orchestrator/task-logs.tsand thepersistTaskLogs()invocation insrc/orchestrator.ts. The<cacheDir>/logs/<run_id>/<project>__<task>.{stdout,stderr}files were pure redundancy: successes already store stdout/stderr in the cache entry; failures are streamed live AND surfaced onTaskOutcome.stderr; CI captures the parent stdout natively; structured per-task metadata lives in therunsSQLite table.docs/caching.md,docs/modules/cache.md,docs/execution.md,docs/cli.md).Test plan
bun test— 331 pass, 0 failbun src/bin.ts run lint— cleanbun src/bin.ts run format-check— cleanGenerated by Claude Code