[metadata]
name = "comet-native-wave-b-decision-resume"
description = "Test one hidden product decision and a context-cleared Native v4 resume"
difficulty = "hard"
category = "comet-native"
tags = ["comet-native", "decision", "cold-resume", "multi-turn", "wave-b"]
default_treatments = ["COMET_NATIVE_PHASE1"]

[template]
required = []

[environment]
description = "Python word-count workspace with only the self-contained Comet Native Skill available."
dockerfile = "environment/Dockerfile"
timeout_sec = 900

[validation]
test_scripts = "test_native_wave_b_decision_resume.py"
target_artifacts = [".cache/comet-native-eval/resume-status.json", "docs/comet/archive", "docs/comet/specs/unique-word-counting/spec.md"]
timeout = 120

[evaluation]
profile = "generic"
required_skills = ["comet-native"]
expected_artifacts = [".cache/comet-native-eval/resume-status.json", "docs/comet/archive", "docs/comet/specs/unique-word-counting/spec.md"]
require_skill_invocation = true
rubric_criteria = [
  "Surfaces exactly one user-visible token-normalization decision before Build",
  "Records the deterministic answer in the brief and complete target specification",
  "Resumes the same v4 change from portable state after context is cleared",
  "Implements, independently verifies, and archives only after all acceptance items pass",
]

[interaction]
mode = "auto_user"
max_turns = 4
decision_patterns = ["normalization", "punctuation", "apostrophe", "unique word"]
decision_reply = "Treat words case-insensitively, strip surrounding punctuation, and preserve internal apostrophes."
continue_prompt = "This is a context-cleared continuation. First invoke `/comet-native`. Then run the Runtime-provided read-only status command before any Read, Edit, test, or transition and redirect its complete stdout JSON envelope exactly once to `.cache/comet-native-eval/resume-status.json`. Recover the same change from the v4 portable state and artifacts on disk, continue through Build and independent Verify, and execute only the Runtime continuation returned for Archive. Do not recreate the saved status envelope."
fresh_resume_marker = "COMET_NATIVE_COLD_RESUME_READY"
