Repository navigation
fix(bundle): bundle init names a registered installed alias an exported entity names by the alias - #795
Merged
Conversation
Base automatically changed from
edgararakelyan/bundle-init-installed-alias
to
main
November 18, 2026 23:51
…ed entity names by the alias A computer env registered into a shared store on agent-env's own base and driver names them by their aliases there (ubuntu-24.04, reference), and bundle init wrote both into the folder as copies. An entity another exported entity names now floats by its alias, as a step's does, when the store's registration ledger says that version came from the installed bundle. No folder takes an alias the export floats: a first pass, writing nothing, finds them, a nested one as well as a step's, so the names are known before any folder is named. It takes copies of the tasks, since an import edits what it reads. An export that floats nothing reserves nothing, so a stored claude-code nothing floats keeps its own name again, and an export that names no alias still reads no registration ledger. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
earakely-scale
force-pushed
the
edgararakelyan/bundle-init-nested-alias
branch
from
November 18, 2026 23:53
98ef152 to
410863c
Compare
…ails the import A skill's folder takes its skill's name, and skills share their names with artifacts, so a skill named like an artifact alias the export floats would take the alias's place in a run. The import refuses it, as it does a skill named like another artifact in the folder. Tests found in chaos testing: an eval's tasks keep a hand-put version off the alias another floats in either order; a ledger row of another bundle, kind or version floats nothing; a desktop registered on the shipped base and driver, exported, plans in a fresh store from the installed bundles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
earakely-scale
marked this pull request as ready for review
November 19, 2026 00:49
…ted alias task_images listed a task's images in one pass with no names reserved, so it missed a skill named like an artifact alias the export floats, which import_task refuses: a caller could push images for an export that fails. It now takes the same first pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follows #789 (merged), which this builds on.
What
bundle initnow leaves an installed alias as a reference wherever the export names it: in a task's step, as #789 does, and also inside an entity the export writes. It does so when the store's registration ledger says that version was written from the installed bundle.Why
A computer env registered into a shared store on agent-env's own base and driver names them there by their aliases,
ubuntu-24.04andreference(orcua-driver).bundle initcopied both into the folder: the base's 37 files, its clock and egress sources included, and the driver's. The exported bundle then ran frozen copies instead of the runner's agent-env's. Found in psi-benchmark-tasks #19.How
_EntityOut.ref, which an entity'sto_tomlcalls for each entity it names, floats a registered alias as_refdoes for a step.claude-codethat nothing floats keeps its own name. An export that names no alias still reads no registration ledger.Tests
register_test.py: a desktop onubuntu-24.04andreference, registered into a shared store, exports as the desktop alone, itsenv.tomlnaming both aliases.register_test.py(continued): planned in a fresh store, that export resolvesubuntu-24.04andreferenceto agent-env's own bundles.importer_test.py:mailwritesmailinto itsenv.tomlfloating. A storedteam/mailthat another step deploys, named before it, goes toenvs/mail-2.claude-codev2 off the alias another task floats, in either task order.tst/unit/bundle/: 1293 passed.Chaos testing (30 minutes, scratch tests against this branch) turned up one gap, fixed in the last commit. A skill's folder takes its skill's name, and skills share names with artifacts, so a skill named like a floated artifact alias would have taken the alias's place in a run. These came out as expected:
task_imagesleaving out a floated entity's image;End to end, with the PSI laptop task (scaleapi/psi-benchmark-tasks #19), whose desktop names
ubuntu-24.04andcua-driver:ubuntu-24.04andcua-driverunder their aliases, with ledger rows frominstalled:agentenv-framework/computersandinstalled:agentenv-framework/drivers. The cua-driver desktop composed on Modal VMs.env.tomlnamescomputer = "ubuntu-24.04"anddriver = "cua-driver", floating, and the bundle has no base or driver folder. Before, it carried the base's 37 files and the driver's. The PR's diff dropped 7,198 lines of copied agent-env code. The export still floats both after a second registration, when the hub's desktop names the hub's stored copies rather than writing them.claude-code,cua-driverandubuntu-24.04to agent-env's agents, drivers and computers bundles.ghcr.io/scaleapi/agentenv-ubuntu-24.04) and cua-driver, ready in 14 minutes.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Bundle exports keep registered installed aliases as references, including inside exported entities, and keep local folders from taking those names.
No new actionable issues found.
Reviews (2) · Last reviewed commit: "fix(bundle): task_images refuses what im..." · Reviewed by Greptile