Skip to content

Commit f59394e

Browse files
Pigbibicodex
andauthored
chore: add qsl compat metadata and compatibility tests (#13)
Co-authored-by: Codex <noreply@openai.com>
1 parent 8ac638e commit f59394e

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

qsl.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[qsl]
2+
repo = "QuantAdvisorResearch"
3+
tier = "research"
4+
ring = 2
5+
allow_legacy = false
6+
artifact_contract = "docs/advisory_contract.md"
7+
snapshot_contract = "docs/architecture.md"
8+
9+
[qsl.compat]
10+
bundle = "2026.07.0"

tests/test_qsl_metadata.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""Minimal QSL compat metadata smoke tests."""
2+
3+
from __future__ import annotations
4+
5+
from pathlib import Path
6+
import tomllib
7+
8+
9+
def test_qsl_metadata_has_compat_bundle() -> None:
10+
path = Path(__file__).resolve().parents[1] / "qsl.toml"
11+
with path.open("rb") as f:
12+
data = tomllib.load(f)
13+
14+
qsl = data["qsl"]
15+
assert qsl["tier"] == "research"
16+
assert qsl["ring"] == 2
17+
assert qsl.get("repo") == "QuantAdvisorResearch"
18+
compat = qsl["compat"]
19+
assert compat["bundle"] == "2026.07.0"
20+
assert qsl.get("artifact_contract") == "docs/advisory_contract.md"
21+
assert qsl.get("snapshot_contract") == "docs/architecture.md"

0 commit comments

Comments
 (0)