|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://codecontextbench.dev/schemas/repo_set_fixture.schema.json", |
| 4 | + "title": "MCP-Unique Repo-Set Fixture", |
| 5 | + "description": "Schema for repo-set fixtures specifying which repositories are available locally vs via MCP only. Supports cross-org discovery (different GitHub orgs). Cross-host (different code hosts) is deferred.", |
| 6 | + "type": "object", |
| 7 | + "required": [ |
| 8 | + "repo_set_id", |
| 9 | + "description", |
| 10 | + "repos", |
| 11 | + "local_checkout_repos", |
| 12 | + "mcp_only_repos", |
| 13 | + "cross_org", |
| 14 | + "language_mix", |
| 15 | + "primary_language" |
| 16 | + ], |
| 17 | + "properties": { |
| 18 | + "repo_set_id": { |
| 19 | + "type": "string", |
| 20 | + "minLength": 1, |
| 21 | + "pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$", |
| 22 | + "description": "Unique identifier for this repo set (e.g. 'kubernetes-ecosystem'). Used as reference in use case registry." |
| 23 | + }, |
| 24 | + "description": { |
| 25 | + "type": "string", |
| 26 | + "minLength": 1, |
| 27 | + "description": "Human-readable description of this repo set and its purpose." |
| 28 | + }, |
| 29 | + "repos": { |
| 30 | + "type": "array", |
| 31 | + "minItems": 1, |
| 32 | + "items": { |
| 33 | + "$ref": "#/$defs/repo_entry" |
| 34 | + }, |
| 35 | + "description": "List of all repositories in this fixture." |
| 36 | + }, |
| 37 | + "local_checkout_repos": { |
| 38 | + "type": "array", |
| 39 | + "items": { |
| 40 | + "type": "string", |
| 41 | + "description": "Full name (org/repo_name) of a repo available via local checkout in baseline config." |
| 42 | + }, |
| 43 | + "description": "Repos available locally in baseline config. Subset of repos[].full_name values." |
| 44 | + }, |
| 45 | + "mcp_only_repos": { |
| 46 | + "type": "array", |
| 47 | + "items": { |
| 48 | + "type": "string", |
| 49 | + "description": "Full name (org/repo_name) of a repo only accessible via MCP/Sourcegraph." |
| 50 | + }, |
| 51 | + "description": "Repos only accessible via MCP tools. Baseline agents cannot access these." |
| 52 | + }, |
| 53 | + "cross_org": { |
| 54 | + "type": "boolean", |
| 55 | + "description": "True when repos span multiple GitHub organizations. Enables cross-org discovery tasks." |
| 56 | + }, |
| 57 | + "language_mix": { |
| 58 | + "type": "array", |
| 59 | + "items": { |
| 60 | + "type": "string" |
| 61 | + }, |
| 62 | + "minItems": 1, |
| 63 | + "uniqueItems": true, |
| 64 | + "description": "Programming languages present across the repos in this fixture." |
| 65 | + }, |
| 66 | + "primary_language": { |
| 67 | + "type": "string", |
| 68 | + "minLength": 1, |
| 69 | + "description": "The dominant programming language across the repo set." |
| 70 | + } |
| 71 | + }, |
| 72 | + "additionalProperties": false, |
| 73 | + "$defs": { |
| 74 | + "repo_entry": { |
| 75 | + "type": "object", |
| 76 | + "required": [ |
| 77 | + "host", |
| 78 | + "org", |
| 79 | + "repo_name", |
| 80 | + "full_name", |
| 81 | + "revision", |
| 82 | + "logical_name", |
| 83 | + "access_mode", |
| 84 | + "sourcegraph_indexed" |
| 85 | + ], |
| 86 | + "properties": { |
| 87 | + "host": { |
| 88 | + "type": "string", |
| 89 | + "default": "github.com", |
| 90 | + "description": "Code host domain. Defaults to github.com. Cross-host support deferred." |
| 91 | + }, |
| 92 | + "org": { |
| 93 | + "type": "string", |
| 94 | + "minLength": 1, |
| 95 | + "description": "Organization or owner on the code host (e.g. 'kubernetes', 'grafana')." |
| 96 | + }, |
| 97 | + "repo_name": { |
| 98 | + "type": "string", |
| 99 | + "minLength": 1, |
| 100 | + "description": "Repository name within the org (e.g. 'kubernetes', 'client-go')." |
| 101 | + }, |
| 102 | + "full_name": { |
| 103 | + "type": "string", |
| 104 | + "minLength": 1, |
| 105 | + "description": "Combined org/repo_name (e.g. 'kubernetes/kubernetes'). Used as key in local_checkout_repos and mcp_only_repos." |
| 106 | + }, |
| 107 | + "revision": { |
| 108 | + "type": "string", |
| 109 | + "minLength": 1, |
| 110 | + "description": "Git ref to pin this repo to (commit SHA, tag, or branch). Ensures reproducibility." |
| 111 | + }, |
| 112 | + "logical_name": { |
| 113 | + "type": "string", |
| 114 | + "minLength": 1, |
| 115 | + "description": "Human-friendly name for this repo's role in the fixture (e.g. 'core-api-server', 'go-client-library')." |
| 116 | + }, |
| 117 | + "access_mode": { |
| 118 | + "type": "string", |
| 119 | + "enum": ["local_checkout", "mcp_only", "both"], |
| 120 | + "description": "How the agent can access this repo. 'local_checkout' = available in workspace, 'mcp_only' = only via Sourcegraph MCP, 'both' = available both ways." |
| 121 | + }, |
| 122 | + "sourcegraph_indexed": { |
| 123 | + "type": "boolean", |
| 124 | + "description": "Whether this repo is indexed in Sourcegraph (either natively or via mirror)." |
| 125 | + }, |
| 126 | + "sourcegraph_mirror": { |
| 127 | + "type": "string", |
| 128 | + "description": "Name of the sg-benchmarks mirror if the public repo is not natively indexed (e.g. 'sg-benchmarks/kubernetes-client-go'). Only needed when sourcegraph_indexed=true via a mirror." |
| 129 | + } |
| 130 | + }, |
| 131 | + "additionalProperties": false |
| 132 | + } |
| 133 | + } |
| 134 | +} |
0 commit comments