Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/examples/skill-comparison/pr133-diagnostic-case05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"id": "case-05",
"split": "holdout",
"request": "Diagnose this blocked request at the recorded decision boundary; propose the next read-only check.",
"provenance": "Synthetic finite-state observations; not a production trace or engine benchmark.",
"events": [
{
"id": "E1",
"kind": "cache_lookup",
"value": "hit"
},
{
"id": "E2",
"kind": "receive",
"value": "pending"
},
{
"id": "E3",
"kind": "identity",
"value": "match"
},
{
"id": "E4",
"kind": "allocator",
"value": "denied"
}
]
}
]
3 changes: 3 additions & 0 deletions tests/test_skill_eval_auto_daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def test_missing_global_history_never_writes_pr_reservation(self):

def test_configuration_migration_preserves_legacy_read_only(self):
legacy = json.loads(auto.CONFIG.read_text())
legacy["schema_version"] = 1
legacy.pop("daily_budget", None)
legacy["anchors"].pop("133", None)
path = self.output / "config.json"
path.write_text(json.dumps(legacy))
self.assertEqual(auto.configuration(path, now=0), legacy)
Expand Down
10 changes: 9 additions & 1 deletion tests/test_skill_eval_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ def test_deployment_identity_and_expiry_are_closed(deployed):
assert deployed["repository_id"] == 1409534281
assert deployed["operators"] == ["Dong1017"]
assert deployed["label"] == "skill-eval:execute"
expected = {"159": "727d31e55f496c53fbf02cf4f624008487de27cb",
expected = {"133": "be3164546eb76d073ccd3ddd29cfd18794955bd0",
"159": "727d31e55f496c53fbf02cf4f624008487de27cb",
"160": "1fdbd8adc35e2df7439c3cd74780f869d2d6e668"}
assert set(deployed["anchors"]) == set(expected)
for number, sha in expected.items():
assert deployed["anchors"][number] == {
"ref": f"refs/heads/skill-eval-budget/1409534281/{number}",
"genesis_commit": sha, "checkpoint_commit": sha}
assert deployed["schema_version"] == 2
assert deployed["daily_budget"] == {
"currency": "USD", "amount": "1000", "timezone": "Asia/Shanghai",
"anchor": {
"ref": "refs/heads/skill-eval-budget/1409534281/daily",
"genesis_commit": "1d3df4ea3924c2b4ce92f051becf566839d66c9c",
"checkpoint_commit": "1d3df4ea3924c2b4ce92f051becf566839d66c9c"}}
assert deployed["expires_at"] == OBSERVED + 86400
assert deployed["provider"]["pricing"]["expires_at"] == deployed["expires_at"]
assert deployed["provider_sha256"] == pr.fingerprint(deployed["provider"])
Expand Down
19 changes: 17 additions & 2 deletions tools/skill_eval_auto_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schema_version": 1,
"schema_version": 2,
"repository_id": 1409534281,
"label": "skill-eval:execute",
"operators": [
Expand Down Expand Up @@ -57,7 +57,22 @@
"ref": "refs/heads/skill-eval-budget/1409534281/160",
"genesis_commit": "1fdbd8adc35e2df7439c3cd74780f869d2d6e668",
"checkpoint_commit": "1fdbd8adc35e2df7439c3cd74780f869d2d6e668"
},
"133": {
"ref": "refs/heads/skill-eval-budget/1409534281/133",
"genesis_commit": "be3164546eb76d073ccd3ddd29cfd18794955bd0",
"checkpoint_commit": "be3164546eb76d073ccd3ddd29cfd18794955bd0"
}
},
"review_evidence": "https://github.com/InferMatrixLab/InferRSI/issues/215#issuecomment-6467531341"
"review_evidence": "https://github.com/InferMatrixLab/InferRSI/issues/235#issuecomment-6486272232",
"daily_budget": {
"currency": "USD",
"amount": "1000",
"timezone": "Asia/Shanghai",
"anchor": {
"ref": "refs/heads/skill-eval-budget/1409534281/daily",
"genesis_commit": "1d3df4ea3924c2b4ce92f051becf566839d66c9c",
"checkpoint_commit": "1d3df4ea3924c2b4ce92f051becf566839d66c9c"
}
}
}
22 changes: 19 additions & 3 deletions tools/skill_eval_pr_cases.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"skill_root": "src/inferrsi/data/skill_library",
"model": {"name": "gpt-6.1-sol", "effort": "xhigh"},
"model": {
"name": "gpt-6.1-sol",
"effort": "xhigh"
},
"limits": {
"repeats": 1,
"max_task_calls": 2,
Expand All @@ -12,14 +15,27 @@
{
"skill": "inference-benchmark-design",
"entrypoint": "methods/inference-benchmark-design/SKILL.md",
"paths": ["src/inferrsi/data/skill_library/methods/inference-benchmark-design"],
"paths": [
"src/inferrsi/data/skill_library/methods/inference-benchmark-design"
],
"cases": "../docs/examples/skill-comparison/cases.json"
},
{
"skill": "audit-fixed-workload-claim",
"entrypoint": "methods/audit-fixed-workload-claim/SKILL.md",
"paths": ["src/inferrsi/data/skill_library/methods/audit-fixed-workload-claim"],
"paths": [
"src/inferrsi/data/skill_library/methods/audit-fixed-workload-claim"
],
"cases": "../docs/examples/skill-comparison/cases.json"
},
{
"skill": "optimization-search-policy",
"entrypoint": "methods/optimization-search-policy/SKILL.md",
"paths": [
"src/inferrsi/data/skill_library/methods/optimization-search-policy"
],
"cases": "../docs/examples/skill-comparison/pr133-diagnostic-case05.json",
"adapter": "kv-admission-diagnostic-v1"
}
]
}
Loading