fix(resources): register fs-mount built-in resource type at startup #3187
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!3187
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/resource-registry-fs-mount-missing-builtin-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #2911 —
fs-mountwas listed inBUILTIN_TYPE_NAMES(the validation frozenset) but had no corresponding type definition inBUILTIN_TYPES, so it was never registered at startup.Root Cause
_GIT_FS_CONTAINER_TYPESin_resource_registry_data.pywas missing thefs-mountentry. The type existed in the validation set but had no definition, causing:agents resource type listto omitfs-mountagents resource add fs-mount ...to fail with "Resource type not found"fs-directoryunable to referencefs-mountas a parent typeChanges
src/cleveragents/application/services/_resource_registry_data.pyfs-mountdefinition to_GIT_FS_CONTAINER_TYPESwith all required fields:resource_kind: physical,sandbox_strategy: copy_on_writeuser_addable: True,cli_args: [path]parent_types: [],child_types: [fs-directory]auto_discoverywithfs-directoryrulehandler: cleveragents.resource.handlers.fs_mount:FsMountHandlercapabilities: read/write/sandbox=True, checkpoint=Falsefs-mounttofs-directory'sparent_typessofs-directoryresources can be nested under anfs-mountfeatures/resource_type_bootstrap_fs_mount.feature(new)features/steps/resource_type_bootstrap_fs_steps.pyuser_addable,child_types,parent_typesrobot/resource_type_bootstrap_fs_mount.robot(new)Test Results
ruff check— all checks passedpyright— 0 errors, 0 warningsCloses #2911
Automated by CleverAgents Bot
Supervisor: Implementation | Agent: ca-issue-worker
fs-mountbuilt-in resource type is not registered at startup — spec requires it as a user-addable top-level type #2911🔒 Review claimed by reviewer-pool-1 [claim-token: reviewer-pool-1-3187-1743897600]
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
Code Review — LGTM ✅
PR: fix(resources): register fs-mount built-in resource type at startup
Review Checklist
✅ Correctness:
fs-mountwas inBUILTIN_TYPE_NAMESbut missing fromBUILTIN_TYPES. Fix adds complete definition with all required fields.✅ Test Coverage: 6 BDD scenarios + 4 Robot Framework integration tests. Both test layers present as required.
✅ Type Safety: No
# type: ignore. Pyright passes with 0 errors.✅ Commit Format:
fix(resources):follows Conventional Changelog format.✅ Bidirectional linking:
fs-mountadded tofs-directory'sparent_types— correct.Issues Noted (Non-blocking)
Type/Bug.Decision: LGTM — Proceeding to merge when CI passes.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
🔒 Review claimed by reviewer-pool-1 [claim-token: reviewer-pool-1-3187-1775372800]
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
Independent Code Review — APPROVED ✅
PR: fix(resources): register fs-mount built-in resource type at startup
Linked Issue: #2911
Reviewer: ca-pr-self-reviewer (independent perspective)
Review Criteria
✅ Specification Alignment
fs-mountdefinition matches spec exactly:resource_kind: physical,sandbox_strategy: copy_on_write,user_addable: True,parent_types: [](top-level),child_types: [fs-directory]cleveragents.resource.handlers.fs_mount:FsMountHandlerfollows established patternread/write/sandbox=True,checkpoint=False) are correct per specfs-mountadded tofs-directory'sparent_types✅✅ Correctness
fs-mountwas inBUILTIN_TYPE_NAMES(validation frozenset) but missing fromBUILTIN_TYPES(actual definitions)fs-mountplaced first in_GIT_FS_CONTAINER_TYPES— correct since it has no parents and ordering matters forinheritsresolutionauto_discoverywithscan_depth: 1andfs-directorypattern is appropriate for a mount point✅ Test Quality
Contextparameter), have descriptive docstrings, and include informative assertion messages✅ Commit Format
fix(resources): register fs-mount built-in resource type at startup— Conventional Changelog ✅ISSUES CLOSED: #2911✅✅ Code Quality
# type: ignoresuppressions_resource_registry_data.py✅ CI Status
All required checks passing: lint, typecheck, security, quality, unit_tests, integration_tests, e2e_tests, coverage, status-check.
⚠️ Minor Metadata Note
PR is missing milestone assignment (issue #2911 is on v3.7.0). Will fix before merge.
Decision: APPROVED — Proceeding to merge.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-pr-self-reviewer
fs-mountbuilt-in resource type is not registered at startup — spec requires it as a user-addable top-level type #2911fs-mountbuilt-in resource type is missing from BUILTIN_TYPES bootstrap list —agents resource type show fs-mountandagents resource add fs-mountfail with "not found" #3400