codex-tool-mapping-comprehension.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. scenario: codex-tool-mapping-comprehension
  2. description: >
  3. Measures whether a Codex agent correctly reports the Superpowers Codex
  4. mapping for Claude Code Task result collection.
  5. user_posture: spec-aware
  6. setup:
  7. helpers:
  8. - create_base_repo
  9. assertions:
  10. - "git rev-parse --is-inside-work-tree"
  11. - "test -f .agents/skills/superpowers/using-superpowers/references/codex-tools.md"
  12. turns:
  13. - intent: >
  14. When Codex is at its input prompt, type this exact message and press
  15. Enter. Do not type a placeholder, a period, or a shorter paraphrase:
  16. "Read .agents/skills/superpowers/using-superpowers/references/codex-tools.md.
  17. According to that file's mapping table, what is the Codex equivalent
  18. for the skill reference phrase 'Task returns result'? Do not perform
  19. any subagent workflow. Return exactly one compact JSON object with
  20. keys task_returns_result and wait_tool_scope. The task_returns_result
  21. value must be exactly the mapped tool name. The wait_tool_scope value
  22. should be one short sentence describing what the bare wait tool is
  23. for if the file discusses it, and it must include the exact token
  24. exec/wait if the file says bare wait is the exec/wait surface."
  25. - intent: >
  26. If the agent asks a short clarifying question, answer briefly and
  27. tell it to answer from the mapping file. If it returns a JSON object
  28. with task_returns_result and wait_tool_scope, you are done.
  29. limits:
  30. max_turns: 8
  31. turn_timeout: 180
  32. verify:
  33. assertions:
  34. - "grep -Eq '\"task_returns_result\"[[:space:]]*:[[:space:]]*\"wait_agent\"' session.log"
  35. - "! grep -Eq '\"task_returns_result\"[[:space:]]*:[[:space:]]*\"wait\"' session.log"
  36. - "grep -Eq '\"wait_tool_scope\"[^\\n]*exec/wait' session.log"
  37. criteria:
  38. - >
  39. Agent read the Codex tool mapping file before answering the mapping
  40. comprehension question.
  41. - >
  42. Agent answered that Task returns result maps to wait_agent.
  43. - >
  44. Agent distinguished bare wait from spawned-agent waiting by describing
  45. wait as the exec/wait surface.
  46. observe: true