Repository navigation
fix(sandbox): give every harness the built-in visual-aspect-analyzer - #3535
Merged
Merged
Conversation
The session entrypoint linked the image-baked skills (/opt/agents/skills) into Claude Code's user skill directory only. OpenCode reads that directory too, but Codex, Gemini CLI, Qwen Code, Pi, OpenClaw and Cursor read ~/.agents/skills and Hermes reads $HERMES_HOME/skills, so none of them ever listed the built-in visual-aspect-analyzer. link_baked_skills now links each baked skill into .claude/skills, .agents/skills and .hermes/skills under the session HOME, keeping a directory or live link someone already put there. The runtime README states the directories and which copy each harness lists when the workspace repository ships a same-named skill; the image conformance test holds both tables: every link, and every managed harness's golden exec run against a request-recording stub model. Refs #2790
Linking the baked skills into every harness's user-level skill directory made the repository-over-bake rule depend on each loader: Claude Code ranks user skills above project skills, Codex lists both copies and OpenCode keeps whichever finishes loading last. The per-turn reconcile that withdrew the baked link went away in #2857. runnerd now owns the links (daemon/src/baked-skills.ts) instead of the entrypoint. It reconciles at boot and before every exec: while the workspace ships <name>/SKILL.md in .claude/skills or .agents/skills, the baked link of that name leaves the same directory under HOME, and it comes back once the repository drops the skill. A directory or live link of someone's own is still never touched. The image conformance test now runs every managed harness's golden exec through runnerd: with a repository copy in both directories every harness lists that copy (Hermes, which reads no project skills, keeps the baked one), and the links are withdrawn and restored. Refs #2790
yannickmonney
added a commit
that referenced
this pull request
Sep 27, 2026
TASK-F34 now names the description mentions box that #3519 landed, and open #3535 claims TASK-F35, so the box for a connector running for the run's starter becomes TASK-F36, and TASK-B10 points at it. The suite's cost and the readme's tasks row and total are re-derived from the merged suite. The registers follow the run-bound caller: the automation row names the run_ended refusal, the auto-retry pin and the relayed connector refusals, the error-codes row adds run_ended, and B10 and its pin name Cancel run before a new start. BL-2 records the remaining exposure: two runs of one agent share its session and user, so a live run's token can be read by its sibling.
…very-harness # Conflicts: # services/platform/tests/manual/suites/tasks.md
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.
Problem
The runtime image bakes the built-in
visual-aspect-analyzerunder/opt/agents/skills, but the session entrypoint linked it only into Claude Code's user skill directory (~/.claude/skills). OpenCode happens to read that directory too. Codex, Gemini CLI, Qwen Code, Pi, OpenClaw and Cursor read~/.agents/skills, and Hermes reads$HERMES_HOME/skills, so none of them ever listed the skill.The repository-over-bake rule was also already broken on
main. The per-turn reconcile that removed the baked link when the workspace repository shipped a skill of the same name went away in #2857. Claude Code ranks user skills above project skills, so onmainit listed the baked copy over the repository's own.Change
services/sandbox-runtime/daemon/src/baked-skills.ts). The entrypoint no longer does it. runnerd links every baked skill into.claude/skills,.agents/skillsand.hermes/skillsunder the session HOME. It does this at boot and again before every exec (ExecManager's newbeforeSpawnhook)./agent/workspace/.claude/skills/<name>/SKILL.mdexists, runnerd withdraws the baked<name>link from.claude/skillsunder HOME. The same rule applies to.agents/skills. A withdrawn link comes back once the repository drops its copy. Because the check runs before every exec, a repository cloned during one turn decides the next one.README.md→ Built-in skills documents the guarantee: which directory each harness reads, and which copy each harness lists beside a repository skill of the same name.platform/agents/harnesses, EN/DE/FR): every runtime finds the built-in skill without anyone equipping it, and a repository copy of the same name takes its place.TASK-F35(a live model, run on a non-Claude harness and on Claude Code), its pin, and anautomation.mdrow.Repository copy vs. baked copy
With a same-named skill in the workspace's
.claude/skillsand.agents/skills:mainVerification
daemon/src/baked-skills.test.ts(11 cases) runs the real reconcile against temporary roots. It covers:SKILL.mdwithdraws nothingexec-manager.test.tschecks that the hook runs before each child spawns. Both fail againstmain's daemon: the module is missing, and the hook never runs.tests/integration/container-sandbox-runtime-test.ts, section "built-in skills reach every harness" runs in CI's "Validate images" job. It checks:managed-model-opusgolden exec, run through runnerd's/execsas a platform turn is, against a request-recording stub, names the skill in its first model requestLocal runs:
main's entrypoint and runnerd: 14 failed. The failures: the.agents/.hermeslinks are missing, six harnesses do not list the skill, Claude Code lists the baked copy beside the repository's, and the withdraw/restore checks fail.Other checks:
oxlint --type-awareon every changed TS filetsc --noEmitfor the daemon and the platformbun testbun run lint:manualcheck-guide.tsontasks.mdLocally, two daemon tests fail the same way on
main: thefile-opsstalled-URL deadline and themain.test.tspartial exec body. They are macOS-environment failures.Open
.agents/skills). OpenCode reads both directories, so in that case it may still list either copy. The README says so.container-sandbox-runtime-test.tschecks nothing. It readsenv.baseat the top ofharness.yml, but the key lives underexec.env. This PR leaves that guard alone.Closes #2790