fix(resources): register fs-mount built-in resource type at startup #3187

Merged
freemo merged 1 commits from fix/resource-registry-fs-mount-missing-builtin-type into master 2026-04-05 21:13:17 +00:00

1 Commits

Author SHA1 Message Date
freemo f373e3a527 fix(resources): register fs-mount built-in resource type at startup
CI / lint (pull_request) Successful in 31s
CI / typecheck (pull_request) Successful in 49s
CI / quality (pull_request) Successful in 48s
CI / security (pull_request) Successful in 56s
CI / build (pull_request) Successful in 17s
CI / helm (pull_request) Successful in 25s
CI / unit_tests (pull_request) Successful in 6m44s
CI / e2e_tests (pull_request) Successful in 19m27s
CI / integration_tests (pull_request) Successful in 22m41s
CI / coverage (pull_request) Successful in 11m4s
CI / docker (pull_request) Successful in 1m24s
CI / status-check (pull_request) Successful in 2s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 57m3s
Add fs-mount ResourceTypeDefinition to _GIT_FS_CONTAINER_TYPES in
_resource_registry_data.py so that bootstrap_builtin_types() seeds it
into the registry at startup.

The fs-mount type was listed in BUILTIN_TYPE_NAMES (validation frozenset)
but had no corresponding type definition in BUILTIN_TYPES, causing:
- 'agents resource type list' to omit fs-mount
- 'agents resource add fs-mount ...' to fail with 'Resource type not found'
- fs-directory to be unable to reference fs-mount as a parent type

Changes:
- Add fs-mount definition to _GIT_FS_CONTAINER_TYPES with correct fields:
  name, description, resource_kind=physical, sandbox_strategy=copy_on_write,
  user_addable=True, cli_args=[path], parent_types=[], child_types=[fs-directory],
  auto_discovery with fs-directory rule, handler=fs_mount:FsMountHandler,
  capabilities (read/write/sandbox=True, checkpoint=False)
- Add fs-mount to fs-directory's parent_types so fs-directory can be
  nested under an fs-mount resource
- Add BDD scenarios in resource_type_bootstrap_fs_mount.feature covering
  registration, user_addable, child_types, parent_types, resource add,
  and fs-directory parent resolution
- Add Robot Framework integration tests in resource_type_bootstrap_fs_mount.robot
  covering all four acceptance criteria end-to-end

ISSUES CLOSED: #2911
2026-04-05 07:29:35 +00:00