fix(resource): call bootstrap_builtin_types during initialization #626

Merged
freemo merged 2 commits from feature/m3-fix-resource-bootstrap-rebased into master 2026-03-07 19:41:33 +00:00
Owner

Summary

Built-in resource types (fs-directory, git-checkout) were not available after agents init because bootstrap_builtin_types() in ResourceRegistryService was never called during the initialization path. Running agents resource add fs-directory or agents resource add git-checkout failed with "Resource type not found" because the types defined in _BUILTIN_TYPES were never seeded into the database.

This PR fixes the initialization path to call bootstrap_builtin_types() so that all built-in resource types are available immediately after agents init. It also activates previously @wip-tagged BDD test scenarios that were excluded from CI via behave.ini, removes the global ~@wip tag exclusion from behave.ini, and fixes mock patching in plan_commands_new_coverage_steps.py to work correctly under behave-parallel's fork-based workers.

Changes

  • behave.ini: Removed global tags = ~@wip exclusion so previously skipped TDD scenarios now run in CI.
  • features/cli_init_yes_flag.feature: Removed @wip tags from 4 scenarios (bug #522).
  • features/resource_type_bootstrap_fs.feature: Removed @wip tag from fs-directory bootstrap scenario (bug #523).
  • features/resource_type_bootstrap_git.feature: Removed @wip tag from git-checkout bootstrap scenario (bug #524).
  • features/steps/plan_commands_new_coverage_steps.py: Fixed _get_apply_service mock patching to patch PlanApplyService at both the canonical source module and the plan module (with create=True) so the lazy import resolves correctly under behave-parallel fork workers.
  • CHANGELOG.md: Added entry for git-checkout resource type bootstrap tests (#553).

Closes #523
Closes #524

## Summary Built-in resource types (`fs-directory`, `git-checkout`) were not available after `agents init` because `bootstrap_builtin_types()` in `ResourceRegistryService` was never called during the initialization path. Running `agents resource add fs-directory` or `agents resource add git-checkout` failed with "Resource type not found" because the types defined in `_BUILTIN_TYPES` were never seeded into the database. This PR fixes the initialization path to call `bootstrap_builtin_types()` so that all built-in resource types are available immediately after `agents init`. It also activates previously `@wip`-tagged BDD test scenarios that were excluded from CI via `behave.ini`, removes the global `~@wip` tag exclusion from `behave.ini`, and fixes mock patching in `plan_commands_new_coverage_steps.py` to work correctly under `behave-parallel`'s fork-based workers. ## Changes - **behave.ini**: Removed global `tags = ~@wip` exclusion so previously skipped TDD scenarios now run in CI. - **features/cli_init_yes_flag.feature**: Removed `@wip` tags from 4 scenarios (bug #522). - **features/resource_type_bootstrap_fs.feature**: Removed `@wip` tag from fs-directory bootstrap scenario (bug #523). - **features/resource_type_bootstrap_git.feature**: Removed `@wip` tag from git-checkout bootstrap scenario (bug #524). - **features/steps/plan_commands_new_coverage_steps.py**: Fixed `_get_apply_service` mock patching to patch `PlanApplyService` at both the canonical source module and the plan module (with `create=True`) so the lazy import resolves correctly under `behave-parallel` fork workers. - **CHANGELOG.md**: Added entry for git-checkout resource type bootstrap tests (#553). Closes #523 Closes #524
freemo added this to the v3.2.0 milestone 2026-03-07 16:24:37 +00:00
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-07 16:27:54 +00:00
freemo changed title from feature/m3-fix-resource-bootstrap-rebased to fix(resource): call bootstrap_builtin_types during initialization 2026-03-07 16:32:54 +00:00
freemo force-pushed feature/m3-fix-resource-bootstrap-rebased from c566759b4f
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 18s
CI / build (pull_request) Successful in 16s
CI / security (pull_request) Successful in 34s
CI / typecheck (pull_request) Successful in 37s
CI / unit_tests (pull_request) Successful in 2m27s
CI / integration_tests (pull_request) Failing after 3m11s
CI / docker (pull_request) Successful in 44s
CI / coverage (pull_request) Successful in 5m12s
CI / benchmark-regression (pull_request) Has been cancelled
to 9c1ab4b876
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 16s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 22s
CI / security (pull_request) Successful in 35s
CI / typecheck (pull_request) Successful in 37s
CI / unit_tests (pull_request) Failing after 2m37s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Failing after 3m6s
CI / coverage (pull_request) Successful in 4m39s
CI / benchmark-regression (pull_request) Has been cancelled
2026-03-07 17:24:47 +00:00
Compare
freemo force-pushed feature/m3-fix-resource-bootstrap-rebased from 9c1ab4b876
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 16s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 22s
CI / security (pull_request) Successful in 35s
CI / typecheck (pull_request) Successful in 37s
CI / unit_tests (pull_request) Failing after 2m37s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Failing after 3m6s
CI / coverage (pull_request) Successful in 4m39s
CI / benchmark-regression (pull_request) Has been cancelled
to 87b63be839
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 16s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 17s
CI / security (pull_request) Successful in 33s
CI / typecheck (pull_request) Successful in 35s
CI / unit_tests (pull_request) Failing after 2m22s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 3m11s
CI / coverage (pull_request) Successful in 4m32s
CI / benchmark-regression (pull_request) Has been cancelled
2026-03-07 17:42:34 +00:00
Compare
freemo force-pushed feature/m3-fix-resource-bootstrap-rebased from 87b63be839
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 16s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 17s
CI / security (pull_request) Successful in 33s
CI / typecheck (pull_request) Successful in 35s
CI / unit_tests (pull_request) Failing after 2m22s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 3m11s
CI / coverage (pull_request) Successful in 4m32s
CI / benchmark-regression (pull_request) Has been cancelled
to 89f1af66f5
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 18s
CI / build (pull_request) Successful in 18s
CI / security (pull_request) Successful in 37s
CI / typecheck (pull_request) Successful in 39s
CI / unit_tests (pull_request) Failing after 2m48s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 3m3s
CI / coverage (pull_request) Successful in 4m32s
CI / benchmark-regression (pull_request) Has been cancelled
2026-03-07 17:48:50 +00:00
Compare
freemo force-pushed feature/m3-fix-resource-bootstrap-rebased from 3fca95632f
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 18s
CI / quality (pull_request) Successful in 19s
CI / security (pull_request) Successful in 35s
CI / typecheck (pull_request) Successful in 1m37s
CI / unit_tests (pull_request) Successful in 2m20s
CI / docker (pull_request) Successful in 39s
CI / integration_tests (pull_request) Successful in 3m17s
CI / coverage (pull_request) Successful in 4m29s
CI / benchmark-regression (pull_request) Successful in 28m57s
to 025e7cbe60
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 18s
CI / typecheck (pull_request) Successful in 36s
CI / security (pull_request) Successful in 49s
CI / unit_tests (pull_request) Successful in 2m23s
CI / docker (pull_request) Successful in 40s
CI / integration_tests (pull_request) Successful in 3m37s
CI / coverage (pull_request) Successful in 4m33s
CI / benchmark-regression (pull_request) Successful in 30m34s
2026-03-07 18:55:44 +00:00
Compare
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-07 18:55:56 +00:00
freemo force-pushed feature/m3-fix-resource-bootstrap-rebased from 025e7cbe60
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 18s
CI / typecheck (pull_request) Successful in 36s
CI / security (pull_request) Successful in 49s
CI / unit_tests (pull_request) Successful in 2m23s
CI / docker (pull_request) Successful in 40s
CI / integration_tests (pull_request) Successful in 3m37s
CI / coverage (pull_request) Successful in 4m33s
CI / benchmark-regression (pull_request) Successful in 30m34s
to 64cfdc782a
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 18s
CI / security (pull_request) Successful in 34s
CI / typecheck (pull_request) Successful in 51s
CI / unit_tests (pull_request) Successful in 2m20s
CI / docker (pull_request) Successful in 38s
CI / integration_tests (pull_request) Successful in 3m12s
CI / coverage (pull_request) Successful in 4m30s
CI / lint (push) Successful in 13s
CI / quality (push) Successful in 16s
CI / build (push) Successful in 15s
CI / security (push) Successful in 32s
CI / typecheck (push) Successful in 34s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 3m45s
CI / docker (push) Successful in 41s
CI / integration_tests (push) Successful in 4m34s
CI / coverage (push) Successful in 4m36s
CI / benchmark-publish (push) Successful in 16m13s
CI / benchmark-regression (pull_request) Successful in 28m59s
2026-03-07 19:36:09 +00:00
Compare
freemo merged commit 64cfdc782a into master 2026-03-07 19:41:33 +00:00
freemo deleted branch feature/m3-fix-resource-bootstrap-rebased 2026-03-07 19:41:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core!626
No description provided.