{
  "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": 121,
      "within_target": 121,
      "freshness_rate": 1,
      "target_rate": 0.95,
      "meets_target": true
    },
    "whole_corpus": {
      "target_basis": "tier_policy",
      "total": 1215,
      "within_target": 1215,
      "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": "121/121 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": 1215,
    "raw_project_count": 1215,
    "knowledge_ready_project_count": 1215,
    "sync_cursor": 84,
    "sync_health": "healthy",
    "sync_freshness": "fresh",
    "last_successful_sync_at": "2026-09-04T13:30:48.280Z",
    "hours_since_successful_sync": 0,
    "operational_storage": {
      "status": "healthy",
      "github_cache_entries": 1532,
      "github_cache_body_bytes": 18523913,
      "github_cache_max_entries": 2500,
      "github_cache_retention_entries": 1500,
      "github_cache_body_budget_bytes": 163840000,
      "utilization": 0.613,
      "star_snapshot_count": 12246,
      "sync_run_count": 2666,
      "governance_run_count": 967,
      "project_change_count": 8900,
      "feedback_proposal_count": 0
    },
    "metadata": {
      "source": "d1",
      "reason": "d1_query",
      "project_count": 1215,
      "generated_at": "2026-09-04T13:48:06.129Z",
      "snapshot_id": "d1:1215:2026-09-04T13:30:47.956Z",
      "latest_synced_at": "2026-09-04T13:30:47.956Z",
      "schema_version": "git-top.knowledge.v1"
    }
  },
  "sync": {
    "cursor": 84,
    "seed_total": 500,
    "synced_count": 500,
    "indexed_count": 1215,
    "remaining_count": 0,
    "cycle_progress": 17,
    "cycle_complete": true,
    "next_batch_wraps": false,
    "next_batch": [
      "scrapy/scrapy",
      "unclecode/crawl4ai",
      "openai/openai-cua-sample-app",
      "tinyfish-io/agentql",
      "continuedev/continue",
      "cline/cline",
      "aider-ai/aider",
      "OpenHands/OpenHands"
    ],
    "health": "healthy",
    "freshness": "fresh",
    "last_successful_sync_at": "2026-09-04T13:30:48.280Z",
    "hours_since_successful_sync": 0,
    "last_failed_sync_at": null,
    "last_error": null,
    "recent_runs": [
      {
        "id": "8e388a75-6a36-4b70-9e94-754ecda65977",
        "trigger": "cron",
        "started_at": "2026-09-04T13:30:34.228Z",
        "finished_at": "2026-09-04T13:30:48.280Z",
        "duration_ms": 14052,
        "offset": 77,
        "next_offset": 84,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "mudler/LocalAI",
          "microsoft/playwright",
          "microsoft/playwright-python",
          "puppeteer/puppeteer",
          "SeleniumHQ/selenium",
          "lavague-ai/LaVague",
          "browser-use/web-ui",
          "reworkd/tarsier"
        ],
        "failed": []
      },
      {
        "id": "ef874e03-1e2b-48db-b455-3c8dca789627",
        "trigger": "cron",
        "started_at": "2026-09-04T13:00:34.705Z",
        "finished_at": "2026-09-04T13:00:45.589Z",
        "duration_ms": 10884,
        "offset": 69,
        "next_offset": 77,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "browserbase/mcp-server-browserbase",
          "Skyvern-AI/skyvern",
          "steel-dev/steel-browser",
          "lightpanda-io/browser",
          "nanobrowser/nanobrowser",
          "browserless/browserless",
          "browserbase/stagehand",
          "apify/crawlee"
        ],
        "failed": []
      },
      {
        "id": "82d91534-8ca3-443c-ba2d-6df73d5e1c69",
        "trigger": "admin",
        "started_at": "2026-09-04T12:46:45.651Z",
        "finished_at": "2026-09-04T12:46:46.478Z",
        "duration_ms": 827,
        "offset": 0,
        "next_offset": 0,
        "limit": 1,
        "synced_count": 1,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "titechprabhasolutions/Brahma-Echo"
        ],
        "failed": []
      },
      {
        "id": "f64f2477-f5c6-4ec2-a881-1afd21648540",
        "trigger": "admin",
        "started_at": "2026-09-04T12:46:36.719Z",
        "finished_at": "2026-09-04T12:46:42.456Z",
        "duration_ms": 5737,
        "offset": 0,
        "next_offset": 0,
        "limit": 5,
        "synced_count": 5,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "PrismorSec/prismor",
          "google/mantis",
          "winfunc/opcode",
          "Softeria/ms-365-mcp-server",
          "tuya/TuyaOpen"
        ],
        "failed": []
      },
      {
        "id": "a5a21de6-8310-4c10-afd4-ad02a45f3191",
        "trigger": "cron",
        "started_at": "2026-09-04T12:30:35.276Z",
        "finished_at": "2026-09-04T12:30:47.649Z",
        "duration_ms": 12373,
        "offset": 66,
        "next_offset": 69,
        "limit": 8,
        "synced_count": 8,
        "failed_count": 0,
        "alternatives_updated": 0,
        "synced": [
          "ggml-org/llama.cpp",
          "zhnt/loushang",
          "firerpa/lamda",
          "yolorouter/yolorouter",
          "google-github-actions/run-gemini-cli",
          "wong2/awesome-mcp-servers",
          "browser-use/browser-use",
          "microsoft/playwright-mcp"
        ],
        "failed": []
      }
    ],
    "priority": {
      "generated_at": "2026-09-04T13:48:06.943Z",
      "policy": {
        "hot_target_days": 2,
        "warm_target_days": 7,
        "cold_target_days": 7
      },
      "counts": {
        "hot": 121,
        "warm": 867,
        "cold": 227
      },
      "stale_counts": {
        "hot": 0,
        "warm": 0,
        "cold": 0
      },
      "refresh_due_counts": {
        "hot": 2,
        "warm": 0,
        "cold": 0
      },
      "stale_rates": {
        "hot": 0,
        "warm": 0,
        "cold": 0
      },
      "freshness_slo": {
        "hot_projects": {
          "target_hours": 48,
          "total": 121,
          "within_target": 121,
          "freshness_rate": 1,
          "target_rate": 0.95,
          "meets_target": true
        },
        "whole_corpus": {
          "target_basis": "tier_policy",
          "total": 1215,
          "within_target": 1215,
          "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": "headroomlabs-ai/headroom",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 42,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "5100 stars in window",
            "git score 84"
          ]
        },
        {
          "project_id": "omnigent-ai/omnigent",
          "tier": "hot",
          "stale_days": 1,
          "age_hours": 42,
          "target_interval_days": 2,
          "refresh_due": true,
          "overdue": false,
          "priority_score": 142,
          "reasons": [
            "hot tier target 2d",
            "1d since sync",
            "1593 stars in window",
            "git score 84"
          ]
        }
      ]
    },
    "derived": {
      "alternatives": {
        "freshness": "fresh",
        "last_successful_run_at": "2026-09-02T10:01:21.639Z",
        "hours_since_successful_run": 51,
        "last_run_status": "success",
        "stale_after_hours": 168,
        "progress": {
          "status": "success",
          "complete": false,
          "offset": 1115,
          "next_offset": 1130,
          "project_count": 1215,
          "updated_at": "2026-09-04T13:30:50.843Z"
        }
      }
    }
  },
  "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.001,
      "stale_project_rate": 0,
      "stale_collection_rate": 0.102
    },
    "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": "1 collections need curation, scope, item-count, or freshness review; collection review rate is 0.1%.",
        "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": 1215,
    "issue_count": 5,
    "error_count": 0,
    "warning_count": 0,
    "category_distribution": {
      "agent_framework": 138,
      "coding_agent": 71,
      "browser_agent": 53,
      "rag_framework": 175,
      "vector_database": 39,
      "llm_gateway": 18,
      "llm_eval": 91,
      "prompt_tooling": 47,
      "workflow_automation": 116,
      "local_llm_runtime": 24,
      "ai_app_template": 62,
      "mcp_server": 345,
      "ai_observability": 36,
      "other": 0
    },
    "coverage": {
      "category_coverage": {
        "agent_framework": 138,
        "coding_agent": 71,
        "browser_agent": 53,
        "rag_framework": 175,
        "vector_database": 39,
        "llm_gateway": 18,
        "llm_eval": 91,
        "prompt_tooling": 47,
        "workflow_automation": 116,
        "local_llm_runtime": 24,
        "ai_app_template": 62,
        "mcp_server": 345,
        "ai_observability": 36,
        "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": 59,
      "collection_rate": 0.049,
      "collection_scope_counts": {
        "awesome_list": 28,
        "cookbook": 12,
        "starter_collection": 9,
        "integration_collection": 9,
        "resource_hub": 1
      },
      "collection_freshness_counts": {
        "active": 48,
        "stale": 6,
        "unknown": 5
      },
      "stale_collection_count": 6,
      "collection_review_count": 1
    }
  },
  "metadata": {
    "source": "d1",
    "reason": "d1_query",
    "project_count": 1215,
    "generated_at": "2026-09-04T13:48:06.822Z",
    "snapshot_id": "d1:1215:2026-09-04T13:30:47.956Z",
    "latest_synced_at": "2026-09-04T13:30:47.956Z",
    "schema_version": "git-top.knowledge.v1",
    "loaded_project_limit": 2000,
    "truncated": false
  }
}