AiContextAgentSettingsTest fails with ai_agents 1.3.2+ due to hardcoded edit form path
## Problem
CI phpunit jobs are failing on multiple open MRs with the same
functional test failure:
- `AiContextAgentSettingsTest::testAgentNameLinkRespectsEditAccess`
- Error: `No link containing href /admin/config/ai/agents/test_agent_link_access/edit/form found`
Examples:
- MR !210: https://git.drupalcode.org/project/ai_context/-/jobs/10792643
- MR !208: https://git.drupalcode.org/project/ai_context/-/jobs/10790623
MR !208 passed CI on 2026-07-03 and failed on 2026-07-07 with no
ai_context code change in between. Composer resolved
`drupal/ai_agents` 1.3.1 on the passing run and 1.3.2 on the failing
run.
### Cause
In `drupal/ai_agents` 1.3.2, commit 578bf6ab
([#3586032](https://www.drupal.org/project/ai_agents/issues/3586032))
changed the model owner base path from:
- `admin/config/ai/agents`
to:
- `admin/config/ai/tools-automation/agents`
The `entity.ai_agent.edit_form` route path is derived from that base
path, so the edit form URL is now:
- `/admin/config/ai/tools-automation/agents/{id}/edit/form`
`AiContextAgentsForm::buildAgentNameMarkup()` already builds the link
via `Url::fromRoute('entity.ai_agent.edit_form', ...)`, so runtime
behavior is correct. The test hardcodes the old path:
```php
$edit_form_path = '/admin/config/ai/agents/' . $agent_id . '/edit/form';
```
This is not a regression in ai_context prefilter or agent settings
logic. It is a brittle test assertion that broke when CI started
resolving ai_agents 1.3.2.
## Solution
In `tests/src/Functional/AiContextAgentSettingsTest.php`, derive the
expected edit form path from the route instead of hardcoding it:
```php
use Drupal\Core\Url;
$edit_form_path = Url::fromRoute(
'entity.ai_agent.edit_form',
['ai_agent' => $agent_id],
)->toString();
```
No production code change is required.
Other assertions in this test class that use
`ai_agents_debugger.form` and `ai_agents_explorer.explorer` route
names are unaffected; only the agent edit form path changed.
### Test plan
- [ ] Run:
`vendor/bin/phpunit --filter testAgentNameLinkRespectsEditAccess`
- [ ] Run full `AiContextAgentSettingsTest`
- [ ] Confirm CI phpunit passes on MRs currently blocked by this
failure (e.g. !208, !210)
### Backport
Target `1.0.x`. This should be merged independently so active MRs can
rebase/cherry-pick and get green CI without mixing it into unrelated
feature work.
## AI usage
- [x] AI assisted issue
issue