Agentic OS SkillFS container image
SkillFS is a skill runtime file system for AI agents. It uses FUSE to map a local skill source directory to a standardized directory view that agents can directly access. This topic describes the permission and topology requirements of the SkillFS image, how to share the FUSE view with the agent container, the container roles, mount propagation, /dev/fuse, and the configurations of the three probes in Kubernetes, and the environment variables, the exit code reference, and the handling of residual mounts.
SkillFS uses FUSE to expose the skill source directory as a view that agents can read from and write to. In the default flat layout, the physical directory is <source>/<skill-name>/SKILL.md, and the agent reads from <mountpoint>/skills/<skill-name>/SKILL.md. The source directory itself is not mounted to the agent.
By default, the image provides a regular mount and does not automatically enable Skill Ledger integration protection. If you require the ledger record, scan signature, and activation control features, you must configure integration with the Skill Ledger of AgentSecCore. For more information, see Integration with Skill Ledger.
Suitable scenarios
You can use this image if you want to let agents read and write skills while isolating the physical source directory. The image is deployed as a sidecar in the same pod as the agent container. The agent does not need to integrate the SkillFS SDK, but it must configure the FUSE view path as its own skill search directory.
Unsuitable scenarios
This image targets skill directories. It does not provide general-purpose file sharing or an overlay. The deployment environment must allow privileged containers, provide /dev/fuse, and support bidirectional mount propagation. For more information, see Permission and topology requirements.
Image versions
|
Image name |
Address |
Information |
|
skillfs |
ac2-registry.cn-hangzhou.cr.aliyuncs.com/ac2/agentic-os:1.3-skillfs0.4.2-alinux4 |
skillfs: 0.4.2 |
The current public image is released only for linux/amd64. The Docker quick start requires a Linux
amd64 host. In heterogeneous Kubernetes clusters, use nodeSelector: {kubernetes.io/arch: amd64} to restrict the pod to amd64 nodes.
Permission and topology requirements
Before deployment, confirm the device access and mount propagation conditions. Configure the runtime UID based on whether you use a regular mount or a security integration scenario. Do not treat the default root user of the image as a fixed requirement of FUSE.
-
Privileges and
/dev/fuseare required. A FUSE mount requires the container to open the/dev/fusecharacter device for reading and writing. In Docker, use--privileged --device /dev/fuse. In Kubernetes, useprivileged: truetogether with a hostPath whose type isCharDevice. Without privileges, the container can still be scheduled, but the mount cannot be established and the feature is unavailable. -
Bidirectional mount propagation is required. SkillFS establishes the FUSE mount on a subdirectory of the shared volume. The mount must be able to propagate beyond the container boundary before the agent container can see it. Use
Bidirectionalon the SkillFS side andHostToContaineron the agent side. -
If the cluster prohibits privileged containers by default (which is the case for some serverless container clusters), apply for a namespace-level allowlist based on the cluster policy. Specify
privileged: true,/dev/fusedevice access, andmountPropagation: Bidirectional, and declare the actual runtime UID. The security integration example uses UID 10001 and still retains the privileged configuration of SkillFS.
An allowlist only resolves cluster admission. It does not eliminate the node-level high-privilege risk. We recommend that you grant privileges only to the SkillFS container, keep the agent container non-root, and mount only the FUSE view instead of the physical source directory to the agent container. If conditions permit, schedule the pod to a dedicated trusted node.
Image information
|
Item |
Value |
|
Image address |
|
|
SkillFS version |
|
|
Base image |
Alibaba Cloud Linux 4.0.5 |
|
Architecture |
|
|
Runtime user |
root by default. The security integration example uses UID 10001, which requires you to add the user information and directory permissions |
|
ENTRYPOINT |
|
|
Main process |
|
|
Bundled tools |
|
|
Listening port |
None |
|
Privilege requirements |
Required. For more information, see Permission and topology requirements |
--foreground and --allow-other are hard-coded in the image and cannot be modified by using environment variables. The former lets SkillFS run as the main process so that it directly receives SIGTERM and unmounts. The latter lets agent processes that run as other UIDs access the mounted view.
Prerequisites
|
Condition |
Description |
|
|
The device must exist and be able to be opened for reading and writing. The container must be privileged, or the runtime must explicitly grant permissions on the device |
|
Kernel FUSE support |
The host kernel must load the |
|
|
This is a prerequisite for |
|
Source directory |
The directory must already exist and be readable and writable (a requirement of write pass-through). It is provided by the user |
|
Mount point |
The mount point must be a subdirectory of the shared volume. It cannot use the same path as the source directory, and we recommend that you do not use the volume root directly |
The source directory and the mount point must be two different paths. SkillFS itself supports in-place mounts, but this image uses a topology in which the source directory and the agent view are separated. The preflight check actively rejects a configuration in which both resolve to the same path.
At startup, the container checks the configuration, /dev/fuse, fusermount3, fuse.conf, the source directory, and the mount point in sequence, and attempts to clean up residual FUSE mounts. If a check fails, the container exits with a specific exit code. For the meanings of the exit codes, see Exit code reference.
Quick start
The following commands are used for a single-container smoke test of a regular mount. They do not include an agent sidecar or Skill Ledger. The default flat layout requires that the source directory be organized directly as <skill-name>/SKILL.md. skills/ is a virtual layer that the FUSE view adds.
sudo mkdir -p /srv/skillfs/source/skills/skillfs-container-example
sudo tee /srv/skillfs/source/skills/skillfs-container-example/SKILL.md >/dev/null <<'EOF'
# skillfs-container-example
This is a probe skill for SkillFS startup validation.
EOF
docker run -d --name skillfs \
--privileged --device /dev/fuse \
-v /srv/skillfs/source:/var/lib/skillfs/source \
ac2-registry.cn-hangzhou.cr.aliyuncs.com/ac2/agentic-os:1.3-skillfs0.4.2-alinux4
If the mount point /var/lib/skillfs/shared/mount does not exist, the preflight check automatically creates it.
Verify that the mount is available:
docker exec skillfs /usr/local/bin/skillfs-mount-probe --mode readiness && echo OK
The probe confirms that the mount point exists in /proc/self/mountinfo and that the file system type is fuse*, and then reads the probe file within a time limit. Do not use skillfs --version as a health signal, because it may still return a success even after the FUSE session becomes invalid.
You can also directly view the content of the view:
docker exec skillfs ls -l /var/lib/skillfs/shared/mount/skills
docker exec skillfs cat /var/lib/skillfs/shared/mount/skills/skillfs-container-example/SKILL.md
Share the view with the agent container
The agent must receive the mount that SkillFS establishes. Configure propagation as follows.
-
In Kubernetes, use
mountPropagation: Bidirectionalon the SkillFS side andHostToContaineron the agent side. -
In Docker, use
--mount type=bind,source=<host>,target=<path>,bind-propagation=rsharedon both sides. The host path itself must be a shared mount.
SKILLFS_DISCOVER_ROOT is the view path that the SkillFS container declares externally. The default value is /var/lib/skillfs/shared/mount/skills. It does not automatically configure the agent. You must configure this path as the skill search directory of the agent.
Debug mode
docker run -ti --rm --privileged --device /dev/fuse <image> bash # Enter only the shell without mounting
docker exec skillfs /usr/local/bin/skillfs-preflight # Run the preflight check separately
SKILLFS_SKIP_PREFLIGHT=1 is used only to skip the preflight check during troubleshooting. In this case, a configuration error is directly reported as a mount error.
Usage notes for Kubernetes
Container roles
These notes use a native sidecar. SkillFS is declared in initContainers with restartPolicy: Always. Together with a startupProbe, subsequent containers wait until the FUSE mount is readable before they start. Select different probe files for a regular mount and for security integration. For more information, see the following sections.
Native sidecars are available by default in Kubernetes 1.29 and later. In 1.28, you must explicitly enable the SidecarContainers feature gate. In earlier versions, you must run SkillFS as a regular container and ensure the startup order on the deployment side.
Permission configuration
The following is the default configuration for a regular mount. If you share an owner-only HMAC key with AgentSecCore, use the UID 10001 configuration described in Integration with Skill Ledger, and prepare the corresponding NSS user entries and directory permissions.
securityContext:
privileged: true
runAsUser: 0
runAsNonRoot: false # Overrides the pod-level runAsNonRoot
readOnlyRootFilesystem: false
Mount propagation and /dev/fuse
Merge the following three snippets into the SkillFS container, the agent container, and the pod volume declaration respectively.
# SkillFS side: The shared volume must use Bidirectional so that the mount can propagate outward
volumeMounts:
- name: skillfs-shared
mountPath: /var/lib/skillfs/shared
mountPropagation: Bidirectional
- name: skillfs-source
mountPath: /var/lib/skillfs/source
- name: dev-fuse
mountPath: /dev/fuse# Agent side: The same volume uses HostToContainer to receive the mount
volumeMounts:
- name: skillfs-shared
mountPath: /var/lib/skillfs/shared
mountPropagation: HostToContainervolumes:
- name: dev-fuse
hostPath:
path: /dev/fuse
type: CharDevice # The type must be CharDevice
- name: skillfs-shared
emptyDir: {}
- name: skillfs-source
emptyDir: {} # Use a PVC if you need to persist skills
SKILLFS_MOUNTPOINT must be a subdirectory of the shared volume, such as /var/lib/skillfs/shared/mount. It cannot directly over-mount the volume root. By default, SKILLFS_SOURCE can use /var/lib/skillfs/source. If you change it to a subdirectory such as /var/lib/skillfs/source/root, you must also modify the environment variables and the paths of the preset files.
Use an init container to prepare the source directory and the probe skill
By default, the startupProbe of a regular mount reads skills/skillfs-container-example/SKILL.md in the view. The corresponding physical file is located in /var/lib/skillfs/source/skillfs-container-example/SKILL.md. The following prepare container initializes the directories as root and applies to the example UID 10001 used in these notes.
initContainers:
- name: prepare
image: ac2-registry.cn-hangzhou.cr.aliyuncs.com/ac2/agentic-os:1.3-skillfs0.4.2-alinux4
securityContext:
runAsUser: 0
runAsNonRoot: false
command: ["/bin/bash", "-lc"]
args:
- |
set -euo pipefail
install -d -o 10001 -g 10001 -m 0775 \
/var/lib/skillfs/source/skillfs-container-example \
/var/lib/skillfs/shared/mount
cat > /var/lib/skillfs/source/skillfs-container-example/SKILL.md <<'EOF'
# skillfs-container-example
This is a probe skill for SkillFS sidecar startup validation.
EOF
chown -R 10001:10001 /var/lib/skillfs/source /var/lib/skillfs/shared/mount
volumeMounts:
- name: skillfs-source
mountPath: /var/lib/skillfs/source
- name: skillfs-shared
mountPath: /var/lib/skillfs/shared
prepare must be placed before the SkillFS native sidecar and must mount the same group of skillfs-source and skillfs-shared volumes.
In a production environment, you can replace this with your actual skill provisioning process. A regular mount requires that the probe file exist. Security integration uses the built-in virtual file skills/skill-discover/SKILL.md for probing and does not depend on the activation of business skills.
The three probes
Use the mount probe that is bundled with the image:
startupProbe:
exec:
command: ["/usr/local/bin/skillfs-mount-probe", "--mode", "startup"]
periodSeconds: 2
timeoutSeconds: 10
failureThreshold: 30
readinessProbe:
exec:
command: ["/usr/local/bin/skillfs-mount-probe", "--mode", "readiness"]
periodSeconds: 2
timeoutSeconds: 10
failureThreshold: 1
livenessProbe:
exec:
command: ["/usr/local/bin/skillfs-mount-probe", "--mode", "liveness"]
periodSeconds: 5
timeoutSeconds: 10
failureThreshold: 2
terminationGracePeriodSeconds: 10
The outer timeoutSeconds in Kubernetes is set to 10 seconds, which is longer than the default read timeout of 5 seconds inside the image. This allows the probe to output explicit diagnostics before kubelet handles the failure.
All three probes only check whether the FUSE mount and the specified file are readable. After you enable security integration, a successful probe does not indicate that the scan, the signature, and the activation are complete. Verify the business integration separately.
The SkillFS native sidecar may restart independently while the agent container is still running. During the brief window in which the mount is reestablished, ongoing continuous reads may temporarily fail. A regular agent call usually passes through the latency of a remote LLM, so the next read has often already passed the recovery window. Therefore, additional retry or avoidance configurations are not a deployment prerequisite. Only workloads that continuously read data or hold file descriptors for a long time need to evaluate retries or reopening based on their business characteristics.
Other considerations
-
The source directory volume cannot use
readOnly: true. Otherwise, the preflight check exits with code13. -
Do not use a ConfigMap to overwrite
/etc/fuse.confand loseuser_allow_other. Otherwise, the preflight check exits with code15. -
An abnormal container exit may leave a residual mount. A new container attempts to clean it up. For more information, see Residual mounts.
-
You can start from
requests: 100m / 128Miandlimits: 1 / 512Mifor resources, and then adjust the values based on the number of skills and the amount of concurrent reads and writes.
Integration with Skill Ledger
The following snippets apply to SkillFS 0.4.2 and agent-sec-core 0.11.1, and must be merged into your existing pod manifest. They supplement the configurations that security integration requires. They do not replace the startup, scanner, signature, and business configurations of sec-core itself. After deployment, you must still complete end-to-end verification in the target cluster.
Startup parameters on both sides
The SkillFS entrypoint passes mount parameters by using SKILLFS_EXTRA_ARGS. Setting only AGENT_SEC_DAEMON_SOCKET or AGENT_SEC_SKILLFS_* in the SkillFS container does not automatically enable the integration. Merge the following content into the SkillFS container and retain the existing device and shared volume mounts, the native sidecar declaration, and the three probes.
securityContext:
privileged: true
runAsUser: 10001
runAsGroup: 10001
runAsNonRoot: true
readOnlyRootFilesystem: false
env:
- name: SKILLFS_SOURCE
value: /var/lib/skillfs/source
- name: SKILLFS_EXTRA_ARGS
value: >-
--skill-layout flat
--security
--activation-mode file
--activation-reload-mode poll
--control-socket /run/agent-sec/skillfs/control.sock
--trusted-peer-key-file /run/agent-sec/keys/control.key
--notify-socket /run/agent-sec/runtime/daemon.sock
--notify-auth-key-file /run/agent-sec/keys/notify.key
- name: SKILLFS_PROBE_FILE
value: skills/skill-discover/SKILL.md
Use --security here. Do not replace it with --security-mode, which requires an in-place mount. The example source directly contains <skill-name>/SKILL.md. If you use /var/lib/skillfs/source/root, you must also modify SKILLFS_SOURCE and the file paths in the prepare container.
The sec-core container uses the following image and environment variables. Confirm that its actual effective UID is 10001 and keep it unprivileged. The _AUTH_ part in the HMAC variable names cannot be omitted.
image: ac2-registry.cn-hangzhou.cr.aliyuncs.com/ac2/agentic-os:1.3-agentseccore0.11.1-alinux4
env:
- name: AGENT_SEC_SKILLFS_CONTROL_SOCKET
value: /run/agent-sec/skillfs/control.sock
- name: AGENT_SEC_SKILLFS_NOTIFY_AUTH_KEY_FILE
value: /run/agent-sec/keys/notify.key
- name: AGENT_SEC_SKILLFS_CONTROL_AUTH_KEY_FILE
value: /run/agent-sec/keys/control.key
Business skills may be hidden before they are activated, whereas the built-in skill-discover is not subject to this restriction. Using it for the startupProbe prevents the startup of subsequent sec-core containers from being blocked while waiting for business activation, and prevents normal security hiding from being misjudged as a FUSE failure.
Shared directories and key isolation
|
Volume or directory |
Mount scope |
Requirement |
|
|
prepare, SkillFS, and sec-core |
Both services access the same writable source directory in |
|
|
prepare, SkillFS, and the agent |
Use the mount propagation configuration described earlier. The agent uses only the FUSE view |
|
|
prepare, SkillFS, and sec-core |
Mount it to |
|
|
prepare, SkillFS, and sec-core |
Mount this dedicated volume to |
If the agent needs to access the daemon interface, share only the required daemon socket subdirectory instead of the SkillFS control socket directory. Do not expose the source directory or the keys to the agent just because the agent and the services use the same UID.
sec-core must access the backing source on the exact same absolute path. After the resolver returns the path, operations such as scanning are still performed by sec-core on that path. Socket connectivity alone is not sufficient.
Merge the following volume definitions into the volumes section of the pod. If a runtime volume already exists, reuse it instead of declaring it again.
volumes:
- name: runtime
emptyDir: {}
- name: skillfs-auth
emptyDir:
medium: Memory
sizeLimit: 1Mi
prepare, SkillFS, and sec-core all mount these two volumes. Only prepare needs to write the keys. The two services can mount skillfs-auth as read-only. The following example uses sec-core and also adds the source directory volume that it requires.
volumeMounts:
- name: runtime
mountPath: /run/agent-sec
- name: skillfs-auth
mountPath: /run/agent-sec/keys
readOnly: true
- name: skillfs-source
mountPath: /var/lib/skillfs/source
Merge the following shell snippet into the initialization script of the root prepare container described earlier, and add the runtime mount and a writable skillfs-auth mount to prepare. The execution order remains prepare, the SkillFS native sidecar, and then the subsequent business containers.
install -d -o 10001 -g 10001 -m 0700 \
/run/agent-sec/runtime \
/run/agent-sec/skillfs \
/run/agent-sec/keys
umask 077
if [ ! -s /run/agent-sec/keys/notify.key ]; then
head -c 32 /dev/urandom > /run/agent-sec/keys/notify.key
fi
if [ ! -s /run/agent-sec/keys/control.key ]; then
head -c 32 /dev/urandom > /run/agent-sec/keys/control.key
fi
chown 10001:10001 /run/agent-sec/keys/notify.key /run/agent-sec/keys/control.key
chmod 0600 /run/agent-sec/keys/notify.key /run/agent-sec/keys/control.key
Both sides check that a key is a regular file, that its owner is equal to the effective UID, and that it has no group or other permissions. If both sides share the same key file, their UIDs must be the same. The UID 10001 used here is a deployment-specific value. The control and notify channels each use a different random key. Do not write key content into environment variables, logs, or documents.
User information for non-root mounts
Before you use UID 10001, make sure that NSS in the SkillFS image can look up the corresponding user, and that the source directory, the mount point, and the socket directory can be used by that UID. fusermount3 needs to query the username. If you specify only runAsUser: 10001 but the image does not contain the corresponding user entry, the mount may fail.
For images that do not contain the user, you can use the following compatibility configuration. It overwrites /etc/passwd and /etc/group in the container, so you must check it again when you upgrade the image. You can remove it after the image contains the required user.
apiVersion: v1
kind: ConfigMap
metadata:
name: skillfs-nss
data:
passwd: |
root:x:0:0:root:/root:/bin/sh
agent-sec:x:10001:10001:Agent Sec:/home/agent-sec:/sbin/nologin
group: |
root:x:0:
agent-sec:x:10001:
Merge the following mounts into the SkillFS container and the pod volume declaration. Do not overwrite these system files in other containers.
# SkillFS container
volumeMounts:
- name: skillfs-nss
mountPath: /etc/passwd
subPath: passwd
readOnly: true
- name: skillfs-nss
mountPath: /etc/group
subPath: group
readOnly: true
# Pod
volumes:
- name: skillfs-nss
configMap:
name: skillfs-nss
Integration verification
After deployment, confirm that the FUSE probe succeeds, that the first skill generates a Ledger record and an activation, and check whether a new signature version is generated after you modify a skill through the view. Then, restart SkillFS and sec-core separately to verify that the integration recovers. Authentication verification must include rejected control and notify requests that use an incorrect key or no authentication. Do not verify only the success path with the correct key.
From the agent container, confirm that the backing source, the HMAC keys, and the control socket are not exposed. Mount liveness, successful authentication, and business activation are separate check items. Do not use pod readiness as a substitute for the complete integration result.
If you use Qoder, you must additionally ensure that its actual HOME or XDG state directory is writable. For example, if HOME is located in /var/lib/agent-sec/persistent and XDG_STATE_HOME is not separately specified, you can have the prepare container create a .local/state directory owned by UID 10001. This is preparation work for the agent adapter, not a general mount condition of SkillFS.
Environment variable reference
|
Variable |
Default value |
Description |
|
|
|
The writable skill source directory (absolute path) |
|
|
|
The path on which the FUSE view is exposed (absolute path, must be a subdirectory of the shared volume) |
|
|
|
The skill root directory that is declared externally |
|
|
|
The file that the probe reads, relative to the mount point |
|
|
|
The timeout period of a single probe read (seconds) |
|
|
Empty |
Additional parameters that are appended to |
|
|
|
|
|
|
|
|
|
|
|
The path of the FUSE character device |
|
|
|
The path of the libfuse configuration file |
|
|
|
The log levels include |
Exit code reference
The exit codes of the preflight check are used to locate container startup failures.
|
Exit code |
Meaning |
Handling method |
|
|
A path is empty or is not an absolute path, or the source directory and the mount point are the same |
Correct |
|
|
|
Add |
|
|
|
The image is abnormal. Pull it again and confirm the tag |
|
|
The source directory does not exist, is not a directory, or is not readable and writable |
Create the directory and grant permissions in advance. Confirm that the volume is not |
|
|
The mount point does not exist and cannot be created, or it is not readable |
Create the mount point directory in advance, or grant write permissions on the parent directory |
|
|
|
Do not use an external volume or a ConfigMap to overwrite |
|
|
A residual mount that cannot be cleaned up exists on the mount point |
See Residual mounts |
The mount probe skillfs-mount-probe uses the following exit codes.
|
Exit code |
Meaning |
|
|
The mount exists and the probe file is readable |
|
|
The mount point or the probe file is missing, or the timeout value is invalid |
|
|
The mount point is not an active FUSE mount (the session is not established or has been torn down) |
|
|
The probe read timed out, reported an error, or read 0 bytes |
The probe supports --mode startup|readiness|liveness, which affects only the log prefix. The check logic is the same. You can also use --mountpoint, --file, and --timeout to override the environment variables.
Residual mounts
If the container is forcibly killed, an active mount or a disconnected endpoint (Transport endpoint is not connected) is left on the shared volume. The preflight check of a new container automatically attempts to clean it up by running fusermount3 -u, fusermount3 -u -z, and umount -l in sequence, with a maximum of 10 retries.
The cleanup logic unmounts only FUSE file systems. If the log contains refusing to unmount ... it carries a 'xxx' filesystem, not a FUSE mount, SKILLFS_MOUNTPOINT points to the root directory of the shared volume or to another file system. Change it to a dedicated subdirectory of the shared volume.
FAQ
|
Symptom |
Cause |
Handling method |
|
The startup fails and the log contains |
|
Add |
|
The startup fails, the log contains |
The source directory volume is mounted as read-only |
Write pass-through requires the source directory to be writable. Remove the read-only setting |
|
The agent container cannot see the mounted content |
Bidirectional mount propagation is not enabled |
Configure the propagation attributes as described in Share the view with the agent container |
|
The agent can see the directory but a permission error is reported when it reads a file |
|
Confirm that |
|
The probe returns |
The FUSE session is disconnected but the process has not exited |
Restart the container. Check whether an external process ran |
|
The probe returns |
The FUSE session is hung and does not respond to requests |
Restart the container. Use |
Image update policy
This image is released in line with the version cadence of Agentic OS, and the release interval does not exceed one month. After a new version is released, the previous version is no longer maintained. Issue fixes and component upgrades are performed only on the latest version. Therefore, we recommend that you upgrade in a timely manner.
During deployment, we recommend that you pin a tag that contains the complete version number, such as 1.3-skillfs0.4.2-alinux4, to obtain a clear version boundary, and schedule a window for regular upgrades. If you require an immutable and strongly reproducible deployment, use the digest that is displayed in ACR and reference the image in the tag@sha256:... format. If you pin a version without ever upgrading, you remain on a version that is no longer maintained.