{
  "schema_version": "awoooi_gitea_private_inventory_p0_scorecard_v1",
  "generated_at": "2026-06-29T20:27:30+08:00",
  "workplan_id": "P0-003",
  "status": "closed_gitea_private_inventory_controlled_closeout",
  "source_control_authority": "gitea",
  "private_inventory_source": "gitea",
  "github_status": "stopped_retired_do_not_use",
  "github_lane_excluded_from_p0_blocker_count": true,
  "github_api_used": false,
  "github_cli_used": false,
  "github_primary_switch_authorized": false,
  "gitea_inventory": {
    "schema_version": "gitea_repo_inventory_v1",
    "status": "ok",
    "visibility_scope": "admin_export",
    "repo_count": 4,
    "public_repos": [
      "wooo/awoooi",
      "wooo/ewoooc",
      "wooo/agent-bounty-protocol",
      "wooo/2026FIFAWorldCup"
    ],
    "token_present": false,
    "blocking_reason": "redacted_authenticated_inventory_payload_and_owner_attestation_accepted_for_readback"
  },
  "authenticated_import_acceptance": {
    "schema_version": "gitea_authenticated_inventory_import_acceptance_v1",
    "status": "accepted_for_private_inventory_review_only",
    "accepted_payload_count": 1,
    "token_value_collection_allowed": false,
    "execution_authorized": false
  },
  "authenticated_payload_validation": {
    "schema_version": "gitea_authenticated_inventory_payload_validation_v1",
    "status": "accepted_for_private_inventory_review_only",
    "accepted_payload_count": 1,
    "blocker_count": 0,
    "validator_source": "scripts/security/gitea-authenticated-inventory-payload-validator.py",
    "safe_next_step": "paired_with_owner_attestation_ready_for_p0_003_closeout"
  },
  "coverage_attestation": {
    "schema_version": "gitea_inventory_coverage_attestation_v1",
    "status": "accepted_for_owner_coverage_attestation_review_only",
    "received_attestation_count": 1,
    "accepted_attestation_count": 1,
    "execution_authorized": false
  },
  "owner_response_validation": {
    "schema_version": "source_control_owner_response_validation_rollup_v1",
    "status": "accepted_for_owner_coverage_attestation_review_only",
    "rollup_status": "p0_003_s4_9_closeout_accepted",
    "lane_id": "s4_9_gitea_inventory_owner_attestation_response",
    "source_contract": "gitea_inventory_owner_attestation_response_v1",
    "response_packet": "docs/security/gitea-inventory-owner-attestation-response.snapshot.json",
    "response_template_count": 5,
    "received_response_count": 5,
    "accepted_response_count": 5,
    "rejected_response_count": 0,
    "next_collection_candidate_lane_id": "s4_9_gitea_inventory_owner_attestation_response",
    "next_collection_candidate_status": "complete",
    "latest_local_validation_status": "repo_snapshot_guard_pass",
    "latest_local_validation_result": "SOURCE_CONTROL_OWNER_RESPONSE_GUARD_OK",
    "validator_source": "scripts/security/source-control-owner-response-guard.py",
    "runtime_execution_authorized": false,
    "token_value_collection_allowed": false,
    "secret_value_collection_allowed": false,
    "gitea_repo_write_authorized": false,
    "refs_sync_authorized": false,
    "github_primary_switch_authorized": false,
    "action_buttons_allowed": false
  },
  "controlled_closeout_receipt": {
    "schema_version": "gitea_private_inventory_controlled_closeout_receipt_v1",
    "generated_at": "2026-06-29T20:27:30+08:00",
    "workplan_id": "P0-003",
    "source_validation_schema_version": "gitea_private_inventory_controlled_closeout_validation_v1",
    "source_validation_endpoint": "/api/v1/agents/gitea-private-inventory-p0-scorecard/validate-controlled-closeout",
    "status": "ready_for_p0_003_controlled_closeout",
    "receipt_scope": "redacted_authenticated_inventory_payload_and_owner_coverage_attestation",
    "result": {
      "authenticated_inventory_payload_accepted_count": 1,
      "owner_coverage_attestation_accepted_count": 1,
      "owner_response_received_count": 5,
      "owner_response_accepted_count": 5,
      "paired_receipt_count": 2,
      "redacted_receipt_writeback_ready_count": 2,
      "current_active_blocker_count": 4,
      "projected_active_blocker_count": 0,
      "runtime_gate_count": 0,
      "manager_runtime_gate_count": 0
    },
    "writeback": {
      "source_scorecard_ref": "docs/operations/awoooi-gitea-private-inventory-p0-scorecard.snapshot.json",
      "writeback_mode": "committed_redacted_receipt_only",
      "source_scorecard_written": true,
      "production_runtime_write_requested": false,
      "production_runtime_write_performed": false
    },
    "operation_boundaries": {
      "payload_persisted": false,
      "source_scorecard_written": true,
      "gitea_api_called": false,
      "gitea_write_performed": false,
      "repo_write_performed": false,
      "refs_sync_performed": false,
      "github_api_used": false,
      "github_cli_used": false,
      "secret_plaintext_read": false,
      "token_value_collection_allowed": false,
      "runtime_action_performed": false,
      "raw_session_or_sqlite_read_performed": false
    },
    "safe_next_step": "continue_to_p0_006_source_to_runtime_drift_cleanup"
  },
  "product_row_coverage": {
    "expected_product_count": 11,
    "present_product_row_count": 11,
    "missing_product_row_count": 0,
    "ready_product_count": 3,
    "blocked_product_count": 8,
    "internal_or_authenticated_inventory_required_count": 3,
    "all_active_product_repos_have_gitea_owner_readiness_row": true
  },
  "product_rows": [
    {
      "product_id": "awoooi",
      "state": "ready",
      "status": "ready",
      "gitea_repo": "wooo/awoooi",
      "remote_main_present": true,
      "remote_dev_present": true,
      "next_gate": "use codex-workspaces/awoooi-dev and branch from dev for tasks",
      "blockers": [],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "momo-pro",
      "state": "ready",
      "status": "ready",
      "gitea_repo": "wooo/ewoooc",
      "remote_main_present": true,
      "remote_dev_present": true,
      "next_gate": "use this workspace for Codex tasks by branching from dev into codex/*; do not edit dev directly",
      "blockers": [],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "awooogo",
      "state": "ready",
      "status": "ready",
      "gitea_repo": "wooo/AwoooGo",
      "remote_main_present": true,
      "remote_dev_present": true,
      "next_gate": "use this workspace for Codex tasks by branching from dev into codex/*; do not edit dev directly",
      "blockers": [],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "2026fifa",
      "state": "blocked",
      "status": "blocked_local_drift_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "build narrow drift review and owner pick list before any dev branch creation",
      "blockers": [
        "local_head_differs_from_gitea_main",
        "diff_readback_timeout",
        "production_branch_checked_out"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "agent-bounty-protocol",
      "state": "blocked",
      "status": "blocked_local_drift_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "owner pick list for A2A/traffic/propose changes before dev branch creation",
      "blockers": [
        "local_head_differs_from_gitea_main",
        "tracked_dirty_worktree",
        "production_branch_checked_out"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "stockplatform-v2",
      "state": "blocked",
      "status": "blocked_dirty_worktree_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "review dirty files and owner-selected include/exclude list before dev branch creation",
      "blockers": [
        "tracked_dirty_worktree",
        "production_branch_checked_out"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "vibework",
      "state": "blocked",
      "status": "blocked_local_drift_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "owner pick list for growth/admin/runtime changes before dev branch creation",
      "blockers": [
        "local_head_differs_from_gitea_main",
        "tracked_dirty_worktree",
        "production_branch_checked_out"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "clawbot-openclaw",
      "state": "blocked",
      "status": "blocked_local_drift_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "review docker-compose and main.py drift before dev branch creation",
      "blockers": [
        "local_head_differs_from_gitea_main",
        "tracked_dirty_worktree",
        "production_branch_checked_out"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "bitan-pharmacy",
      "state": "blocked",
      "status": "blocked_internal_inventory_and_dirty_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "owner export or authenticated inventory plus dirty review",
      "blockers": [
        "internal_repo_requires_owner_export_or_authenticated_inventory",
        "dirty_worktree"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "tsenyang-website",
      "state": "blocked",
      "status": "blocked_internal_inventory_and_dirty_review_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "owner export or authenticated inventory plus dirty review",
      "blockers": [
        "internal_repo_requires_owner_export_or_authenticated_inventory",
        "dirty_worktree"
      ],
      "owner_readiness_row_present": true
    },
    {
      "product_id": "vtuber",
      "state": "blocked",
      "status": "blocked_repository_inventory_repair_required",
      "gitea_repo": "",
      "remote_main_present": false,
      "remote_dev_present": false,
      "next_gate": "repair local repository inventory before any Gitea action",
      "blockers": [
        "remote_repository_not_found_or_unauthenticated",
        "local_head_readback_abnormal",
        "dirty_worktree"
      ],
      "owner_readiness_row_present": true
    }
  ],
  "active_blockers": [],
  "exit_criteria": [
    "private_inventory_source=gitea",
    "github_lane_excluded_from_p0_blocker_count=true",
    "gitea_repo_inventory.status=ok",
    "gitea_repo_inventory.visibility_scope in authenticated/admin_export",
    "all_active_product_repos_have_gitea_owner_readiness_row=true"
  ],
  "safe_next_step": "continue_to_p0_006_source_to_runtime_drift_cleanup"
}
