Repository navigation
feat(target): add openfox target support - #3394
Open
JamesAdams (JamesDAdams) wants to merge 2 commits into
Open
JamesAdams (JamesDAdams) wants to merge 2 commits into
JamesAdams (JamesDAdams) wants to merge 2 commits into
Conversation
JamesAdams (JamesDAdams)
requested review from
Daniel Meppiel (danielmeppiel) and
Sergio Sisternes (sergio-sisternes-epam)
as code owners
October 26, 2026 13:59
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Deployment and bundle paths can bypass agent normalization, omit tool restrictions, or drop installed skills.
4 open issues
What changed in this PR
Adds OpenFox as a native APM target, extending target selection, detection, compilation routing, and agent/skill deployment.
Changes:
- Registers project-scoped OpenFox support with
.openfox/agents/and.openfox/skills/. - Adds agent frontmatter normalization and OpenFox handling in bundle, policy, and deployment infrastructure.
- Adds coverage for target registration, detection, scope, and integration.
| File | Description |
|---|---|
| tests/unit/integration/test_targets.py | Tests automatic and explicit OpenFox selection. |
| tests/unit/integration/test_openfox_target.py | Adds dedicated profile, detection, and deployment tests. |
| tests/unit/integration/test_data_driven_dispatch.py | Adds the OpenFox agent partition expectation. |
| tests/unit/integration/test_agent_integrator.py | Excludes OpenFox from verbatim-copy expectations. |
| tests/unit/core/test_target_detection.py | Tests OpenFox detection and compilation routing. |
| tests/unit/core/test_target_catalog.py | Adds catalog and native-profile expectations. |
| tests/unit/core/test_target_catalog_owner_invariant.py | Includes OpenFox in catalog invariants. |
| tests/unit/core/test_scope.py | Tests project-only scope support. |
| src/apm_cli/policy/policy_checks.py | Adds .openfox to policy scan paths. |
| src/apm_cli/models/dependency/host_virtual.py | Recognizes the OpenFox virtual root. |
| src/apm_cli/integration/targets.py | Defines native agent and skill deployment paths. |
| src/apm_cli/integration/agent_integrator.py | Adds OpenFox metadata normalization and dispatch. |
| src/apm_cli/core/target_detection.py | Adds selection, detection, descriptions, and compilation routing. |
| src/apm_cli/core/target_catalog.py | Registers OpenFox capabilities. |
| src/apm_cli/core/errors.py | Includes OpenFox in detection guidance. |
| src/apm_cli/core/deployment_ledger.py | Recognizes the OpenFox deployment prefix. |
| src/apm_cli/compilation/context_optimizer.py | Treats .openfox as a hidden tool tree. |
| src/apm_cli/commands/init.py | Adds OpenFox to initialization target choices. |
| src/apm_cli/bundle/lockfile_enrichment.py | Adds cross-target bundle path mappings. |
Review effort: Balanced
Author
|
@microsoft-github-policy-service agree |
This branch has not been deployed
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.

Description
Add native target support for OpenFox in APM (
.openfox/agents/and.openfox/skills/).Summary of changes
openfoxto target capabilities and catalog withcompile_family="agents"andprimitive_profile="openfox"..openfox/agents/and skills to.openfox/skills/._write_openfox_agentinAgentIntegratorensuring requiredidand mappingtoolstoallowedToolsin frontmatter..openfox/directory and explicit--target openfox.test_openfox_target.py.Type of change
Testing
Spec conformance (OpenAPM v0.1)