{
  "task_id": "st_01a05976",
  "scope": "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined",
  "fixture_policy": "Synthetic-only: opaque IDs and synthetic measurements; no customer values read or recorded.",
  "baseline": {
    "status": "PASS",
    "coverage": [
      "v1 nutrition_daily calories/version-1 draft and version-1 binding load without byte rewrite",
      "missing unknown_steps defaults to an empty tuple",
      "cursor, known answer, and opaque message binding remain preserved",
      "future binding remains addressable",
      "repeated startup creates no event or replacement draft"
    ],
    "source_driver": {
      "status": "PASS",
      "preserved_v1_identity": true,
      "startup_mutations": 0,
      "network_events": 0,
      "telegram_sends": 0
    }
  },
  "RED": {
    "status": "CURRENT_COMBINED_SOURCE_ALREADY_GREEN",
    "requirements_encoded": [
      "empty unknown_steps default",
      "v1 binding no-rewrite load",
      "known and explicit-unknown calories transition to macros/version 2",
      "duplicate and stale replay do not advance",
      "startup, expiry, explicit resume, corrupt, contradictory, mismatched, and legacy free-text boundaries"
    ],
    "result": "The combined worktree already contained the Todo 1-5 behavior. The new compatibility cases passed immediately, so no source fix was justified or made."
  },
  "GREEN": {
    "new_compatibility_test": {
      "command": ".venv/bin/python -m pytest -q tests/gateway/test_nutricoach_stepper_legacy_compat.py",
      "result": "8 passed"
    },
    "focused_gateway_regression": {
      "command": ".venv/bin/python -m pytest -q tests/gateway/test_nutricoach_stepper_legacy_compat.py tests/gateway/test_telegram_physique_checkin.py tests/gateway/test_telegram_stepper_integration.py tests/gateway/test_customer_nutrition_stepper_card.py",
      "result": "113 passed"
    },
    "profile_regression": {
      "command": "PYTHONPATH=<profile>:<root> python -m pytest -q tests/test_nutrition_daily_unknown.py",
      "result": "19 passed"
    },
    "test_environment_note": "A first global-python gateway invocation lacked pytest-asyncio and failed only async collection/execution. The repository venv includes pytest-asyncio and the same focused suite passed 113/113."
  },
  "wheel": {
    "build": "PIP_NO_INDEX=1 pip wheel --no-index --no-deps --no-build-isolation into an isolated temporary root",
    "archives": [
      {
        "name": "hermes_agent-0.17.0-py3-none-any.whl",
        "sha256": "5facc21ca8d56d1aac2801fd881c910837b36edcd2d9e7d2607556c1410d7489",
        "zip_test": "PASS",
        "record_hashes": "PASS",
        "required_package": "gateway"
      },
      {
        "name": "physique_checkin_cli-0.1.0-py3-none-any.whl",
        "sha256": "ee6fb8b15397bcf76955f713c29e4f95b8ca0221fa1a48f1b98d4524dbda4edc",
        "zip_test": "PASS",
        "record_hashes": "PASS",
        "required_package": "checkin_cli"
      }
    ]
  },
  "import": {
    "source_mode": {
      "pythonpath": "cleared",
      "status": "PASS",
      "module_paths": {
        "gateway": "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined/gateway/__init__.py",
        "gateway.platforms.physique_checkin": "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined/gateway/platforms/physique_checkin.py",
        "checkin_cli": "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined/dualcoach/profile/checkin_cli/__init__.py",
        "checkin_cli.wizard": "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined/dualcoach/profile/checkin_cli/wizard.py"
      }
    },
    "installed_mode": {
      "pythonpath": "cleared",
      "cwd": "outside the source tree",
      "exact_wheels_installed": true,
      "require_wheel_runtime": true,
      "status": "PASS",
      "module_paths": {
        "gateway": "/tmp/nutricoach-task6-st_01a05976/venv/lib/python3.12/site-packages/gateway/__init__.py",
        "gateway.platforms.physique_checkin": "/tmp/nutricoach-task6-st_01a05976/venv/lib/python3.12/site-packages/gateway/platforms/physique_checkin.py",
        "checkin_cli": "/tmp/nutricoach-task6-st_01a05976/venv/lib/python3.12/site-packages/checkin_cli/__init__.py",
        "checkin_cli.wizard": "/tmp/nutricoach-task6-st_01a05976/venv/lib/python3.12/site-packages/checkin_cli/wizard.py"
      }
    },
    "identity_boundary": "The smoke requires --expected-runtime-root and validates gateway, checkin_cli, and both distributions resolve below it. A decoy expected root was rejected despite installed imports succeeding."
  },
  "manual": {
    "source_driver": {
      "status": "PASS",
      "network_events": 0,
      "telegram_sends": 0,
      "preserved_v1_identity": true,
      "known_step": "macros",
      "known_version": 2,
      "unknown_step": "macros",
      "unknown_version": 2,
      "duplicate_advances": 0,
      "startup_mutations": 0,
      "expired_sends": 0
    },
    "installed_driver": {
      "status": "PASS",
      "network_events": 0,
      "telegram_sends": 0,
      "preserved_v1_identity": true,
      "known_step": "macros",
      "known_version": 2,
      "unknown_step": "macros",
      "unknown_version": 2,
      "duplicate_advances": 0,
      "startup_mutations": 0,
      "expired_sends": 0
    }
  },
  "adversarial": {
    "malformed_and_corrupt_state": "PASS: corrupt version-1 binding, contradictory known/unknown draft state, and runtime/binding cursor mismatch fail closed without a domain mutation.",
    "legacy_free_text": "PASS: historical free text remains text and is not converted into an explicit unknown marker.",
    "leave_and_resume": "PASS: expired binding is observation-only and resumes only through an explicit launcher callback.",
    "repeated_startup": "PASS: two startup loads preserve the v1 draft/binding bytes and create no event or replacement draft.",
    "stale_and_duplicate": "PASS: stale service request and duplicate callback cannot advance a second time.",
    "dirty_hash": "PASS: a synthetic modified wheel member failed RECORD validation.",
    "misleading_installed_import": "PASS: decoy expected runtime exited 1 with an outside-supplied-runtime identity error.",
    "determinism": "PASS: fixed synthetic future epoch and no sleeps, polling, or network retries.",
    "network": "PASS: socket guard recorded 0 events in source and installed drivers.",
    "prompt_injection_and_hung_network": "N/A: this lane performs no model prompting and the socket guard blocks network construction."
  },
  "static": {
    "lsp": "PASS: no diagnostics for scripts/nutricoach_v150_customer_ux_smoke.py and tests/gateway/test_nutricoach_stepper_legacy_compat.py",
    "ruff": "PASS: .venv/bin/ruff check on both changed files",
    "ty": "PASS: PYTHONPATH=<profile> .venv/bin/ty check on both changed files",
    "basedpyright": "PASS: PYTHONPATH=<profile> basedpyright on both changed files; 0 errors, 0 warnings, 0 notes",
    "compile": "PASS: python -m py_compile on both changed files"
  },
  "cleanup": {
    "temporary_root": "/tmp/nutricoach-task6-st_01a05976",
    "removed": [
      "/tmp/nutricoach-task6-st_01a05976",
      "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined/build/bdist.linux-x86_64",
      "/home/cube/projects/richard/.worktrees/nutricoach-v150-combined/dualcoach/profile/build/bdist.linux-x86_64"
    ],
    "paths_absent": true,
    "retained": "Pre-existing build/lib roots and shared package caches were not removed."
  },
  "DoneClaim": {
    "status": "DONE",
    "source_fix": "None; no compatibility test demonstrated a Todo 1-5 product defect.",
    "commit_push_pr": false,
    "network_or_customer_messages": false
  }
}
