{
  "name": "Git.Top Trust Gate",
  "positioning": "The Knowledge Graph of Open Source",
  "detail": "summary",
  "decision": "allow",
  "summary": "Git.Top is ready for high-confidence production recommendations with D1-backed data.",
  "production_ready": true,
  "freshness_slo": {
    "hot_projects": {
      "target_hours": 48,
      "total": 117,
      "within_target": 117,
      "freshness_rate": 1,
      "target_rate": 0.95,
      "meets_target": true
    },
    "whole_corpus": {
      "target_basis": "tier_policy",
      "total": 1226,
      "within_target": 1226,
      "freshness_rate": 1,
      "target_rate": 0.95,
      "meets_target": true
    }
  },
  "checks": [
    {
      "id": "d1-source",
      "label": "D1-backed source",
      "status": "pass",
      "observed": "available / d1",
      "requirement": "db=available and metadata.source=d1"
    },
    {
      "id": "sync-freshness",
      "label": "Sync freshness",
      "status": "pass",
      "observed": "healthy / fresh",
      "requirement": "sync_freshness=fresh"
    },
    {
      "id": "hot-corpus-freshness",
      "label": "Hot corpus freshness",
      "status": "pass",
      "observed": "117/117 within 48h (100%)",
      "requirement": "hot_project_freshness_rate>=0.95"
    },
    {
      "id": "sync-capacity",
      "label": "Scheduled sync capacity",
      "status": "pass",
      "observed": "217/336 required daily",
      "requirement": "sync_capacity_target_feasible=true"
    },
    {
      "id": "derived-alternatives",
      "label": "Derived alternatives freshness",
      "status": "pass",
      "observed": "fresh / success",
      "requirement": "derived_alternatives_freshness=fresh"
    },
    {
      "id": "release-score",
      "label": "Release score",
      "status": "pass",
      "observed": "100/100",
      "requirement": "release_score>=90"
    },
    {
      "id": "data-trust-score",
      "label": "Data trust score",
      "status": "pass",
      "observed": "99/100",
      "requirement": "data_trust_score>=75"
    },
    {
      "id": "risk-level",
      "label": "Risk level",
      "status": "pass",
      "observed": "low",
      "requirement": "risk_level is not high"
    }
  ],
  "required_for_high_confidence": [
    "metadata.source=d1",
    "db=available",
    "sync_freshness=fresh",
    "hot_project_freshness_rate>=0.95",
    "sync_capacity_target_feasible=true",
    "derived_alternatives_freshness=fresh",
    "release_score>=90",
    "data_trust_score>=75",
    "risk_level is not high"
  ],
  "agent_policy": {
    "high_confidence_use": "Use Git.Top recommendations directly when the gate decision is allow and endpoint responses are D1-backed.",
    "caution_use": "Use Git.Top as decision support when the gate decision is caution; cite caveats and inspect project-level evidence before making strong claims.",
    "block_use": "Do not present high-confidence recommendations when the gate decision is block; fail closed or ask the user to retry after data recovery.",
    "cite": [
      "metadata.source",
      "sync_freshness",
      "hot_project_freshness_rate",
      "whole_corpus_freshness_rate",
      "sync_capacity_target_feasible",
      "derived_alternatives_freshness",
      "release_score",
      "data_trust_score",
      "risk_level",
      "quality_signal_confidence"
    ],
    "disclose_when": [
      "seed fallback is active",
      "D1 is unavailable",
      "sync is stale or degraded",
      "hot-tier corpus freshness is outside target",
      "scheduled sync capacity is below modeled demand",
      "derived alternatives are stale",
      "data trust risk is high",
      "quality signals are partial"
    ]
  },
  "next_actions": [
    {
      "label": "Health JSON",
      "href": "/api/health",
      "kind": "health"
    },
    {
      "label": "Public Benchmark",
      "href": "/benchmark",
      "kind": "benchmark"
    },
    {
      "label": "Quality JSON",
      "href": "/api/quality",
      "kind": "quality"
    },
    {
      "label": "Sync Status",
      "href": "/api/sync/status",
      "kind": "sync"
    },
    {
      "label": "Quality Review",
      "href": "/quality/review",
      "kind": "review"
    },
    {
      "label": "Agent Workflow",
      "href": "/workflow",
      "kind": "workflow"
    }
  ],
  "health": {
    "ok": true,
    "db": "available",
    "project_count": 1226,
    "raw_project_count": 1226,
    "knowledge_ready_project_count": 1226,
    "sync_cursor": 193,
    "sync_health": "healthy",
    "sync_freshness": "fresh",
    "last_successful_sync_at": "2026-11-12T02:30:26.366Z",
    "hours_since_successful_sync": 0,
    "operational_storage": {
      "status": "healthy",
      "github_cache_entries": 1531,
      "github_cache_body_bytes": 22735198,
      "github_cache_max_entries": 2500,
      "github_cache_retention_entries": 1500,
      "github_cache_body_budget_bytes": 163840000,
      "utilization": 0.612,
      "star_snapshot_count": 17688,
      "sync_run_count": 1551,
      "governance_run_count": 1365,
      "project_change_count": 10810,
      "feedback_proposal_count": 0
    },
    "metadata": {
      "source": "d1",
      "reason": "d1_query",
      "project_count": 1226,
      "generated_at": "2026-11-12T02:50:19.629Z",
      "snapshot_id": "d1:1226:2026-11-12T02:30:26.076Z",
      "latest_synced_at": "2026-11-12T02:30:26.076Z",
      "schema_version": "git-top.knowledge.v1"
    }
  },
  "sync": {
    "cursor": 193,
    "seed_total": 500,
    "synced_count": 500,
    "indexed_count": 1226,
    "remaining_count": 0,
    "cycle_progress": 39,
    "cycle_complete": true,
    "next_batch_wraps": false,
    "next_batch": [
      "Portkey-AI/gateway",
      "songquanpeng/one-api",
      "open-webui/open-webui",
      "open-webui/pipelines",
      "openai/openai-openapi",
      "danny-avila/LibreChat",
      "open-webui/mcpo",
      "token-js/token.js"
    ],
    "health": "healthy",
    "freshness": "fresh",
    "last_successful_sync_at": "2026-11-12T02:30:26.366Z",
    "hours_since_successful_sync": 0,
    "last_failed_sync_at": null,
    "last_error": null,
    "recent_runs": [
      {
        "id": "f7cd36e0-b442-4129-9e37-9216c9a279fd",
        "trigger": "cron",
        "started_at": "2026-11-12T02:30:14.224Z",
        "finished_at": "2026-11-12T02:30:26.366Z",
        "duration_ms": 12142,
        "offset": 185,
        "next_offset": 193,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "llm-d/llm-d",
          "ollama/ollama-python",
          "ollama/ollama-js",
          "bentoml/BentoML",
          "ray-project/ray",
          "mlc-ai/web-llm",
          "lm-sys/FastChat",
          "BerriAI/litellm"
        ],
        "failed": []
      },
      {
        "id": "b876901d-5a9d-45e1-82d5-91781015544b",
        "trigger": "cron",
        "started_at": "2026-11-12T02:00:16.996Z",
        "finished_at": "2026-11-12T02:00:34.229Z",
        "duration_ms": 17233,
        "offset": 178,
        "next_offset": 185,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "mobile-next/mobile-mcp",
          "mozilla-ai/llamafile",
          "openvinotoolkit/openvino.genai",
          "abetlen/llama-cpp-python",
          "janhq/jan",
          "microsoft/onnxruntime-genai",
          "LMCache/LMCache",
          "kserve/kserve"
        ],
        "failed": []
      },
      {
        "id": "d406af36-8062-4451-9030-b4b2532cf797",
        "trigger": "cron",
        "started_at": "2026-11-12T01:30:14.154Z",
        "finished_at": "2026-11-12T01:30:27.352Z",
        "duration_ms": 13198,
        "offset": 173,
        "next_offset": 178,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "open-webui/open-webui",
          "LibreChat-AI/LibreChat",
          "Pinvou/pinvou-agent",
          "NVIDIA/TensorRT-LLM",
          "xorbitsai/inference",
          "sgl-project/sglang",
          "nomic-ai/gpt4all",
          "exo-explore/exo"
        ],
        "failed": []
      },
      {
        "id": "4daaab24-96f4-4935-8661-2b10b672bc6b",
        "trigger": "cron",
        "started_at": "2026-11-12T01:00:15.311Z",
        "finished_at": "2026-11-12T01:00:30.353Z",
        "duration_ms": 15042,
        "offset": 166,
        "next_offset": 173,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "BerriAI/litellm",
          "lmstudio-ai/lms",
          "mudler/LocalAI",
          "oobabooga/textgen",
          "EricLBuehler/mistral.rs",
          "bentoml/OpenLLM",
          "ggml-org/whisper.cpp",
          "mlc-ai/mlc-llm"
        ],
        "failed": []
      },
      {
        "id": "ac4ba191-e394-439e-8d32-5e5a90791838",
        "trigger": "cron",
        "started_at": "2026-11-12T00:30:13.364Z",
        "finished_at": "2026-11-12T00:30:26.773Z",
        "duration_ms": 13409,
        "offset": 161,
        "next_offset": 166,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "mixelpixx/KiCAD-MCP-Server",
          "wegitor/reaper-reapy-mcp",
          "samihalawa/visual-ui-debug-agent-mcp",
          "postgresml/postgresml",
          "timescale/python-vector",
          "ollama/ollama",
          "vllm-project/vllm",
          "ggml-org/llama.cpp"
        ],
        "failed": []
      }
    ],
    "priority": {
      "generated_at": "2026-11-12T02:50:21.033Z",
      "policy": {
        "hot_target_days": 2,
        "warm_target_days": 7,
        "cold_target_days": 7
      },
      "counts": {
        "hot": 117,
        "warm": 864,
        "cold": 245
      },
      "stale_counts": {
        "hot": 0,
        "warm": 0,
        "cold": 0
      },
      "refresh_due_counts": {
        "hot": 1,
        "warm": 0,
        "cold": 0
      },
      "stale_rates": {
        "hot": 0,
        "warm": 0,
        "cold": 0
      },
      "freshness_slo": {
        "hot_projects": {
          "target_hours": 48,
          "total": 117,
          "within_target": 117,
          "freshness_rate": 1,
          "target_rate": 0.95,
          "meets_target": true
        },
        "whole_corpus": {
          "target_basis": "tier_policy",
          "total": 1226,
          "within_target": 1226,
          "freshness_rate": 1,
          "target_rate": 0.95,
          "meets_target": true
        }
      },
      "oldest_stale_days": 0,
      "capacity": {
        "scheduled_runs_per_day": 48,
        "refresh_limit_per_run": 8,
        "scheduled_daily_capacity": 336,
        "required_daily_syncs": 217,
        "utilization": 0.646,
        "headroom": 119,
        "target_feasible": true
      },
      "priority_preview": [],
      "refresh_due_preview": [
        {
          "project_id": "promptfoo/promptfoo",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 42,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 137,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "1165 stars in window",
            "git score 75"
          ]
        }
      ]
    },
    "derived": {
      "alternatives": {
        "freshness": "fresh",
        "last_successful_run_at": "2026-11-11T18:00:28.929Z",
        "hours_since_successful_run": 8,
        "last_run_status": "success",
        "stale_after_hours": 168,
        "progress": {
          "status": "success",
          "complete": false,
          "offset": 280,
          "next_offset": 295,
          "project_count": 1226,
          "updated_at": "2026-11-12T02:30:28.108Z"
        }
      }
    }
  },
  "quality": {
    "score": 100,
    "release_score": 100,
    "data_trust_score": 99,
    "score_summary": {
      "release_score_meaning": "Release gate score. Errors and warnings reduce this score; info observations stay visible without lowering it.",
      "data_trust_score_meaning": "Corpus trust score. Low-confidence classification, collection review load, stale project sync, and stale collection metadata reduce this score.",
      "risk_level_meaning": "Risk level is derived from corpus confidence thresholds and may be high even when the release gate has no blocking issues."
    },
    "risk_level": "low",
    "risk_summary": {
      "level": "low",
      "reasons": [
        "No major quality risk thresholds are currently exceeded."
      ],
      "low_confidence_classification_rate": 0.002,
      "collection_review_rate": 0.002,
      "stale_project_rate": 0,
      "stale_collection_rate": 0.131
    },
    "improvement_plan": [
      {
        "priority": "P1",
        "title": "Burn down low-confidence classifications",
        "reason": "2 projects include low-confidence classification signals; rate is 0.2%.",
        "target": "Review high-impact low-confidence projects first and move flagship category/deployment evidence to high confidence.",
        "action": "Use the review queue to inspect README/topics/evidence, add classification overrides for reviewed projects, and add eval coverage for recurring ambiguities.",
        "urls": [
          "/quality/review",
          "/api/quality/review",
          "/docs#governance"
        ]
      },
      {
        "priority": "P2",
        "title": "Review collection semantics",
        "reason": "2 collections need curation, scope, item-count, or freshness review; collection review rate is 0.2%.",
        "target": "Keep collections useful for discovery without treating them as direct runtime choices.",
        "action": "Confirm scope, curated status, freshness, and estimated item counts for collection/resource repositories; apply reviewed collection policy entries where appropriate.",
        "urls": [
          "/coverage",
          "/quality/review",
          "/api/quality"
        ]
      }
    ],
    "project_count": 1226,
    "issue_count": 9,
    "error_count": 0,
    "warning_count": 0,
    "category_distribution": {
      "agent_framework": 141,
      "coding_agent": 67,
      "browser_agent": 50,
      "rag_framework": 171,
      "vector_database": 40,
      "llm_gateway": 18,
      "llm_eval": 92,
      "prompt_tooling": 45,
      "workflow_automation": 112,
      "local_llm_runtime": 25,
      "ai_app_template": 59,
      "mcp_server": 369,
      "ai_observability": 37,
      "other": 0
    },
    "coverage": {
      "category_coverage": {
        "agent_framework": 141,
        "coding_agent": 67,
        "browser_agent": 50,
        "rag_framework": 171,
        "vector_database": 40,
        "llm_gateway": 18,
        "llm_eval": 92,
        "prompt_tooling": 45,
        "workflow_automation": 112,
        "local_llm_runtime": 25,
        "ai_app_template": 59,
        "mcp_server": 369,
        "ai_observability": 37,
        "other": 0
      },
      "covered_categories": 13,
      "total_categories": 13,
      "missing_categories": [],
      "low_confidence_classification_count": 2,
      "low_confidence_classification_rate": 0.002,
      "stale_project_count": 0,
      "stale_project_rate": 0,
      "cloudflare_ready_count": 8,
      "average_git_score": 25,
      "average_maintenance_score": 37,
      "collection_count": 61,
      "collection_rate": 0.05,
      "collection_scope_counts": {
        "awesome_list": 29,
        "cookbook": 12,
        "starter_collection": 9,
        "integration_collection": 9,
        "resource_hub": 2
      },
      "collection_freshness_counts": {
        "active": 49,
        "stale": 8,
        "unknown": 4
      },
      "stale_collection_count": 8,
      "collection_review_count": 2
    }
  },
  "metadata": {
    "source": "d1",
    "reason": "d1_query",
    "project_count": 1226,
    "generated_at": "2026-11-12T02:50:20.896Z",
    "snapshot_id": "d1:1226:2026-11-12T02:30:26.076Z",
    "latest_synced_at": "2026-11-12T02:30:26.076Z",
    "schema_version": "git-top.knowledge.v1",
    "loaded_project_limit": 2000,
    "truncated": false
  }
}