{
  "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": 122,
      "within_target": 122,
      "freshness_rate": 1,
      "target_rate": 0.95,
      "meets_target": true
    },
    "whole_corpus": {
      "target_basis": "tier_policy",
      "total": 1067,
      "within_target": 1067,
      "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": "122/122 within 48h (100%)",
      "requirement": "hot_project_freshness_rate>=0.95"
    },
    {
      "id": "sync-capacity",
      "label": "Scheduled sync capacity",
      "status": "pass",
      "observed": "196/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": 1067,
    "raw_project_count": 1067,
    "knowledge_ready_project_count": 1067,
    "sync_cursor": 315,
    "sync_health": "healthy",
    "sync_freshness": "fresh",
    "last_successful_sync_at": "2026-08-13T13:53:06.728Z",
    "hours_since_successful_sync": 1,
    "operational_storage": {
      "status": "healthy",
      "github_cache_entries": 1500,
      "github_cache_body_bytes": 23301168,
      "github_cache_max_entries": 2500,
      "github_cache_retention_entries": 1500,
      "github_cache_body_budget_bytes": 163840000,
      "utilization": 0.6,
      "star_snapshot_count": 8462,
      "sync_run_count": 1079,
      "governance_run_count": 682,
      "project_change_count": 7693,
      "feedback_proposal_count": 0
    },
    "metadata": {
      "source": "d1",
      "reason": "d1_query",
      "project_count": 1067,
      "generated_at": "2026-08-13T15:37:02.874Z",
      "snapshot_id": "d1:1067:2026-08-13T13:53:06.589Z",
      "latest_synced_at": "2026-08-13T13:53:06.589Z",
      "schema_version": "git-top.knowledge.v1"
    }
  },
  "sync": {
    "cursor": 315,
    "seed_total": 500,
    "synced_count": 498,
    "indexed_count": 1067,
    "remaining_count": 2,
    "cycle_progress": 63,
    "cycle_complete": false,
    "next_batch_wraps": false,
    "next_batch": [
      "huggingface/lighteval",
      "huggingface/evaluate",
      "openai/frontier-evals",
      "sgl-project/genai-bench",
      "vercel/next-evals-oss"
    ],
    "health": "healthy",
    "freshness": "fresh",
    "last_successful_sync_at": "2026-08-13T13:53:06.728Z",
    "hours_since_successful_sync": 1,
    "last_failed_sync_at": null,
    "last_error": null,
    "recent_runs": [
      {
        "id": "680f0b64-69ca-4870-83d2-3fca84fc8ba9",
        "trigger": "admin",
        "started_at": "2026-08-13T13:53:00.409Z",
        "finished_at": "2026-08-13T13:53:06.728Z",
        "duration_ms": 6319,
        "offset": 0,
        "next_offset": 0,
        "limit": 5,
        "synced_count": 5,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "Pinvou/pinvou-agent",
          "facebookresearch/faiss",
          "magnitudedev/browser-agent",
          "ntegrals/openbrowser",
          "vespa-engine/vespa"
        ],
        "failed": []
      },
      {
        "id": "04c10613-8481-4a3f-9d49-217fdffdb493",
        "trigger": "cron",
        "started_at": "2026-08-13T09:00:31.430Z",
        "finished_at": "2026-08-13T09:00:43.599Z",
        "duration_ms": 12169,
        "offset": 309,
        "next_offset": 315,
        "limit": 6,
        "synced_count": 6,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "BerriAI/liteLLM-proxy",
          "BerriAI/litellm-skills",
          "Portkey-AI/mcp-tool-filter",
          "Portkey-AI/hoot",
          "lobehub/chat-plugins-gateway",
          "openai/human-eval"
        ],
        "failed": []
      },
      {
        "id": "09036de2-960c-4a29-93c4-421f270c81a6",
        "trigger": "cron",
        "started_at": "2026-08-13T09:00:24.618Z",
        "finished_at": "2026-08-13T09:00:28.636Z",
        "duration_ms": 4018,
        "offset": 0,
        "next_offset": 0,
        "limit": 2,
        "synced_count": 2,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "sarvamai/llm_intent_entity",
          "tugkanboz/awesome-ai-testing"
        ],
        "failed": []
      },
      {
        "id": "8d9171ff-f26a-4c65-9b43-8153024d7774",
        "trigger": "cron",
        "started_at": "2026-08-13T08:30:22.504Z",
        "finished_at": "2026-08-13T08:30:42.114Z",
        "duration_ms": 19610,
        "offset": 301,
        "next_offset": 309,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "wasp-lang/open-saas",
          "firecrawl/firecrawl",
          "firecrawl/firecrawl-mcp-server",
          "comet-ml/opik-mcp",
          "exa-labs/exa-mcp-server",
          "upstash/context7",
          "charmbracelet/crush",
          "open-webui/openapi-servers"
        ],
        "failed": []
      },
      {
        "id": "7b2aa173-bb16-4b4a-bc63-ec30739267ff",
        "trigger": "cron",
        "started_at": "2026-08-13T08:00:25.135Z",
        "finished_at": "2026-08-13T08:00:44.011Z",
        "duration_ms": 18876,
        "offset": 299,
        "next_offset": 301,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "lancedb/lancedb",
          "opensearch-project/OpenSearch",
          "pgvector/pgvector",
          "marqo-ai/marqo",
          "tensorchord/pgvecto.rs",
          "supabase/vecs",
          "abi/screenshot-to-code",
          "BuilderIO/ai-shell"
        ],
        "failed": []
      }
    ],
    "priority": {
      "generated_at": "2026-08-13T15:37:04.002Z",
      "policy": {
        "hot_target_days": 2,
        "warm_target_days": 7,
        "cold_target_days": 7
      },
      "counts": {
        "hot": 122,
        "warm": 746,
        "cold": 199
      },
      "stale_counts": {
        "hot": 0,
        "warm": 0,
        "cold": 0
      },
      "refresh_due_counts": {
        "hot": 27,
        "warm": 1,
        "cold": 2
      },
      "stale_rates": {
        "hot": 0,
        "warm": 0,
        "cold": 0
      },
      "freshness_slo": {
        "hot_projects": {
          "target_hours": 48,
          "total": 122,
          "within_target": 122,
          "freshness_rate": 1,
          "target_rate": 0.95,
          "meets_target": true
        },
        "whole_corpus": {
          "target_basis": "tier_policy",
          "total": 1067,
          "within_target": 1067,
          "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": 196,
        "utilization": 0.583,
        "headroom": 140,
        "target_feasible": true
      },
      "priority_preview": [],
      "refresh_due_preview": [
        {
          "project_id": "AstrBotDevs/AstrBot",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 43,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "2637 stars in window",
            "git score 84"
          ]
        },
        {
          "project_id": "headroomlabs-ai/headroom",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 43,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "2516 stars in window",
            "git score 84"
          ]
        },
        {
          "project_id": "infiniflow/ragflow",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 43,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "2438 stars in window",
            "git score 84"
          ]
        },
        {
          "project_id": "mem0ai/mem0",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 43,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "2404 stars in window",
            "git score 84"
          ]
        },
        {
          "project_id": "QuantumNous/new-api",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 43,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "2998 stars in window",
            "git score 84"
          ]
        }
      ]
    },
    "derived": {
      "alternatives": {
        "freshness": "fresh",
        "last_successful_run_at": "2026-08-10T14:33:58.715Z",
        "hours_since_successful_run": 73,
        "last_run_status": "success",
        "stale_after_hours": 168,
        "progress": {
          "status": "success",
          "complete": false,
          "offset": 845,
          "next_offset": 855,
          "project_count": 1067,
          "updated_at": "2026-08-13T13:53:36.602Z"
        }
      }
    }
  },
  "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,
      "collection_review_rate": 0.002,
      "stale_project_rate": 0,
      "stale_collection_rate": 0.123
    },
    "improvement_plan": [
      {
        "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"
        ]
      },
      {
        "priority": "P2",
        "title": "Strengthen alternatives evidence",
        "reason": "1 popular projects have weak same-category alternatives and 1 popular projects are missing alternatives.",
        "target": "Improve direct replacement quality for high-traffic alternatives and comparison pages.",
        "action": "Refresh generated alternatives, inspect same-category overlap, and add reviewed alternatives for high-visibility projects when generated matches are adjacent rather than direct substitutes.",
        "urls": [
          "/alternatives",
          "/topics/alternatives-engine-guide",
          "/api/recipes"
        ]
      }
    ],
    "project_count": 1067,
    "issue_count": 7,
    "error_count": 0,
    "warning_count": 0,
    "category_distribution": {
      "agent_framework": 116,
      "coding_agent": 64,
      "browser_agent": 49,
      "rag_framework": 156,
      "vector_database": 37,
      "llm_gateway": 13,
      "llm_eval": 83,
      "prompt_tooling": 42,
      "workflow_automation": 107,
      "local_llm_runtime": 20,
      "ai_app_template": 56,
      "mcp_server": 294,
      "ai_observability": 30,
      "other": 0
    },
    "coverage": {
      "category_coverage": {
        "agent_framework": 116,
        "coding_agent": 64,
        "browser_agent": 49,
        "rag_framework": 156,
        "vector_database": 37,
        "llm_gateway": 13,
        "llm_eval": 83,
        "prompt_tooling": 42,
        "workflow_automation": 107,
        "local_llm_runtime": 20,
        "ai_app_template": 56,
        "mcp_server": 294,
        "ai_observability": 30,
        "other": 0
      },
      "covered_categories": 13,
      "total_categories": 13,
      "missing_categories": [],
      "low_confidence_classification_count": 0,
      "low_confidence_classification_rate": 0,
      "stale_project_count": 0,
      "stale_project_rate": 0,
      "cloudflare_ready_count": 9,
      "average_git_score": 26,
      "average_maintenance_score": 37,
      "collection_count": 57,
      "collection_rate": 0.053,
      "collection_scope_counts": {
        "awesome_list": 28,
        "cookbook": 11,
        "starter_collection": 8,
        "integration_collection": 9,
        "resource_hub": 1
      },
      "collection_freshness_counts": {
        "active": 45,
        "stale": 7,
        "unknown": 5
      },
      "stale_collection_count": 7,
      "collection_review_count": 2
    }
  },
  "metadata": {
    "source": "d1",
    "reason": "d1_query",
    "project_count": 1067,
    "generated_at": "2026-08-13T15:37:03.914Z",
    "snapshot_id": "d1:1067:2026-08-13T13:53:06.589Z",
    "latest_synced_at": "2026-08-13T13:53:06.589Z",
    "schema_version": "git-top.knowledge.v1",
    "loaded_project_limit": 2000,
    "truncated": false
  }
}