Skip to content

[fix] A changed agent artifact now evicts the warm session - #6398

Merged
mmabrouk merged 1 commit into
release/v0.114.4from
fix/lifecycle-agent-artifact-id
Aug 31, 2026
Merged

[fix] A changed agent artifact now evicts the warm session#6398
mmabrouk merged 1 commit into
release/v0.114.4from
fix/lifecycle-agent-artifact-id

Conversation

@mmabrouk

Copy link
Copy Markdown
Member

Cold/warm audit finding 4 (docs/design/lifecycle-cold-warm-audit).

What was wrong

The agent-mount artifact id is baked at acquire: it signs the mount, sets the mount env var, and lands in the prompt guidance. But it sat in no fingerprint and no facet. A run that switched to a different agent artifact, or gained one, reused the warm sandbox that was built for the old agent. A probe measured the reuse.

The fix

  • runContext.workflow.artifact.id now rides the sandbox facet and the config fingerprint. A change rebuilds; everything else in runContext stays volatile.
  • A pinned test proves the id evicts and that revision, variant, and trace ids still do not.

How to verify

Run pnpm exec vitest run tests/unit/lifecycle-desired-state.test.ts tests/unit/session-pool.test.ts in services/runner.

Part of the audit-findings stack; base is #6374.

https://claude.ai/code/session_0165tsjmvf3qvTPFcb9EV44g

…hanges

The agent-mount artifact id signs the mount, sets its env var, and lands in the
prompt guidance, all baked at acquire. Yet it sat in no fingerprint and no facet,
so a changed or newly present id reused the warm sandbox built for the OLD agent
(cold/warm audit finding 4, measured with a probe). The id now rides the sandbox
facet and the config fingerprint; the rest of runContext stays out, pinned by a
volatile-fields test.

Claude-Session: https://claude.ai/code/session_0165tsjmvf3qvTPFcb9EV44g
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview Aug 31, 2026 4:04pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • release/.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 5aed5e33-ee34-4672-b54e-993c72122c7f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mmabrouk
mmabrouk changed the base branch from fix/model-capabilities-volatile to release/v0.114.4 August 31, 2026 16:37
@mmabrouk
mmabrouk merged commit 22872fb into release/v0.114.4 Aug 31, 2026
63 of 65 checks passed
@mmabrouk mmabrouk mentioned this pull request Aug 31, 2026
Sign up for free to 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