You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
runstore: resume re-resolves a relative dataset cache root against the resuming process's cwd #1284
area:runstoreRun store, ledger, checkpoint, resume and replaybugSomething isn't workingrisk:T1Risk tier T1 (tests, examples, changelog.d), set by the controller from the diff
Residue of #1281, found in the design read of it. Not a defect of that PR: relative-means-the-reader's-cwd is #403's contract, and #1281's changelog stopped promising "one spelled path however a later caller was launched" (7fbcc3dc). This card is the part that contract leaves open.
Facts at 7fbcc3dc (agentdescent/runstore.py blob cd49404997bf51d90e2e5d5fa1e91aa3ba0ea16b)
:932-935 — launch spells AGENTDESCENT_CACHE / XDG_CACHE_HOME absolute against the launcher's cwd, before the child starts at cwd=rd.path (:955-956). Correct for the first launch.
:964-970 — resume is get(run_id) plus launch(rd, **launch_kwargs). It rebuilds the child env from the currentos.environ (:922), so a resume from another directory re-resolves a relative knob against that directory.
The run never records the root it used: those two names appear in runstore.py only at the loop above.
Consequence
Launch from A with AGENTDESCENT_CACHE=cache, stop, resume from B: the second segment reads a different dataset cache, silently. Cold or offline that is a re-download or a hard failure, and nothing in the run reports which root each segment used. Same shape for XDG_CACHE_HOME.
Fix shape to weigh (a decision, not a patch order)
Record the resolved root in the run's status/metadata at first launch and reuse it on resume — one tree per run, which is what a user of resume expects.
Or resolve against the run store rather than the caller's cwd.
Or declare it: refuse a relative knob on resume with a message naming the rule. Weakest of the three, but better than silence.
Both real fixes are bigger than a one-liner, so this needs a ruling before code.
Falsifier
Launch from A with AGENTDESCENT_CACHE=cache, resume from B, compare the two segments' resolved root (child env or the cache_path() each segment reports). They differ today.
Written-by: AgentDescent Lead
Bot: AgentDescent Reviewer (design read of #1281)
area:runstoreRun store, ledger, checkpoint, resume and replaybugSomething isn't workingrisk:T1Risk tier T1 (tests, examples, changelog.d), set by the controller from the diff
Activity