{
  "trace_schema_version": "capsule_replay.trace.v1",
  "trace_id": "base-authoritative-retention",
  "description": "Show that the runtime retains structured state authoritatively by surfacing the latest fact value for a key during compile.",
  "steps": [
    {
      "step_id": "event_draft",
      "endpoint": "/v1/event",
      "body": {
        "task_id": "proof_base_retention_task_v2",
        "step_id": "step_001",
        "idempotency_key": "proof_base_retention_event_101",
        "event_type": "tool_result",
        "summary_1line": "record initial rollback plan",
        "task_title": "Rollback Readiness Review",
        "task_goal": "Track the latest rollout state without ambiguity",
        "fact_key": "release_state",
        "fact_value": "draft",
        "payload": {
          "artifacts_inline": [],
          "artifact_refs": [],
          "paths_touched": [
            "docs/rollout-checklist.md"
          ]
        }
      }
    },
    {
      "step_id": "event_approved",
      "endpoint": "/v1/event",
      "body": {
        "task_id": "proof_base_retention_task_v2",
        "step_id": "step_002",
        "idempotency_key": "proof_base_retention_event_102",
        "event_type": "tool_result",
        "summary_1line": "approve rollback plan after final check",
        "task_title": "Rollback Readiness Review",
        "task_goal": "Track the latest rollout state without ambiguity",
        "fact_key": "release_state",
        "fact_value": "approved",
        "payload": {
          "artifacts_inline": [],
          "artifact_refs": [],
          "paths_touched": [
            "docs/rollout-checklist.md"
          ]
        }
      }
    },
    {
      "step_id": "compile_after",
      "endpoint": "/v1/compile",
      "body": {
        "task_id": "proof_base_retention_task_v2",
        "budget": {
          "total_tokens_max": 5000,
          "section_tokens_max": {
            "TASK": 400,
            "SUCCESS_CRITERIA": 200,
            "CONSTRAINTS": 200,
            "CURRENT_STATE_SNAPSHOT": 500,
            "RECENT_DECISIONS": 300,
            "KNOWN_FACTS": 400,
            "RELEVANT_ARTIFACT_SNIPPETS": 1200,
            "PLAN_SLICE": 300,
            "OPEN_ITEMS_AND_RISKS": 200,
            "OUTPUT_REQUIREMENTS": 200
          }
        },
        "format": {
          "template_id": "default_v1",
          "include_artifact_hashes": true
        }
      }
    }
  ]
}
