Skip to content

Commit c7be3f3

Browse files
feat(otdf-sdk-mgr): add xtest feature detection context to subagent prompt (DSPX-3302)
Subagents now receive an explanation of why `supports <feature>` must be added to the SDK CLI wrapper and how xtest uses it to activate dormant tests. Includes the pattern for probing SDK capabilities and a reminder that the scenario(s) are listed in the PR body. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 44e3f8e commit c7be3f3

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

otdf-sdk-mgr/src/otdf_sdk_mgr/cli_orchestrate.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,27 @@ def ensure_subagent_settings(worktree: Path, repo_path: str | None) -> None:
264264
{body}
265265
--- END SPEC ---
266266
267-
Instructions:
267+
## xtest feature detection
268+
269+
The `tests` repo has a draft PR with dormant integration tests for this feature.
270+
The tests stay skipped until the SDK CLI wrapper reports support. xtest detects
271+
support by running:
272+
273+
<sdk-cli> supports {name}
274+
275+
and expecting exit 0. Your todo list includes adding a `supports {name}` case
276+
to the SDK's `xtest/sdk/<lang>/cli.sh` wrapper. This is what activates the
277+
integration tests when your PR's CI runs — do not skip it.
278+
279+
Look at existing `supports` cases already in the file for the pattern (they
280+
typically grep the SDK's own help or capability output for a feature string,
281+
e.g. `grep -q "mlkem:768" <<< "$(cli help ...)"` or a direct SDK call). The
282+
specific probe to use is noted in your todo list item.
283+
284+
Related test scenario(s): {scenarios}
285+
286+
## Instructions
287+
268288
1. Implement every item in `repos.{cell_key}.todo`. Don't switch branches.
269289
2. Run the repo's local checks before committing (unit tests, linters, build).
270290
3. Commit using house-style subject: `<type>({path}): <description> ({jira})`.

0 commit comments

Comments
 (0)