Skip to content

test: deduplicate explicit-skill-requests harness - #2159

Open
elliotxx wants to merge 1 commit into
obra:mainfrom
elliotxx:test/explicit-skill-requests-dedupe
Open

test: deduplicate explicit-skill-requests harness#2159
elliotxx wants to merge 1 commit into
obra:mainfrom
elliotxx:test/explicit-skill-requests-dedupe

Conversation

@elliotxx

Copy link
Copy Markdown

Summary

  • Extract shared test helpers into tests/lib/ (common.sh, assertions.sh, run-claude.sh, test-prompt.sh)
  • Refactor run-test.sh and multi-turn scripts to use the shared library instead of duplicating setup/assertion logic
  • Add prompts for /handoff manual skill invocation and mid-conversation technique recognition
  • Add optional minimal skill fixtures under tests/shared/optional-skills/
  • Add README.md, .gitignore, and docker-compose.yml for the explicit-skill-requests suite

Test plan

  • ./tests/explicit-skill-requests/run-test.sh subagent-driven-development ./tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt
  • ./tests/explicit-skill-requests/run-all.sh
  • ./tests/explicit-skill-requests/run-multiturn-test.sh
  • ./tests/explicit-skill-requests/run-extended-multiturn-test.sh

Made with Cursor

Extract shared helpers under tests/lib for fixtures, Claude runners, and
stream-json assertions. Refactor single- and multi-turn scripts to use the
shared library, add handoff/technique-recognition prompts, optional skill
fixtures, docker-compose, and README.

Co-authored-by: Cursor <cursoragent@cursor.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83359b4423

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +44 to +48
run_case "handoff-with-manual" \
"$SCRIPT_DIR/run-test.sh" "systematic-debugging" "$PROMPTS_DIR/handoff-with-manual.txt"

run_case "mid-conversation-technique-recognition" \
"$SCRIPT_DIR/run-test.sh" "systematic-debugging" "$PROMPTS_DIR/mid-conversation-technique-recognition.txt" 4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Move new behavior evals to the eval harness

These cases judge whether Claude recognizes and invokes a skill from particular prompt phrasing, so they are skill-behavior evals rather than plugin-infrastructure tests. Adding them to this live-model shell suite puts nondeterministic behavior checks in the part of the repository reserved for infrastructure tests; move these scenarios to superpowers-evals instead of extending run-all.sh.

AGENTS.md reference: AGENTS.md:L102-L104

Useful? React with 👍 / 👎.

Comment on lines +5 to +7
volumes:
- ../..:/workspace:ro
- ${HOME}/.claude:/root/.claude:ro

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Persist Docker test logs outside the disposable container

When the documented docker compose run --rm explicit-skill-requests command is used, common.sh writes all diagnostics beneath /tmp/superpowers-tests inside the container, but these volumes mount only the repository and Claude configuration. The container is therefore removed along with the logs when the run finishes, making the advertised full logs unavailable precisely when a test fails; bind-mount the output directory or use a persistent named volume.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant