Skip to content

Commit ea0e692

Browse files
Pigbibicodex
andcommitted
Add freshness and data quality gates
Co-Authored-By: Codex <noreply@openai.com>
1 parent f7dd58b commit ea0e692

22 files changed

Lines changed: 683 additions & 30 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Run tests
2323
run: python -m pytest -q
2424
- name: Validate example signal
25-
run: python scripts/validate_latest_signal.py examples/latest_signal.example.json
25+
run: python scripts/validate_latest_signal.py examples/latest_signal.example.json --allow-expired
2626
- name: Run example overlay replay
2727
run: python scripts/backtest_signal_overlay.py --prices examples/price_history.example.csv --signals examples/signal_history --symbol QQQ
2828
- name: Run example price extraction

.github/workflows/theme_momentum_snapshot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
ARGS+=(--strict-downloads)
7171
fi
7272
python scripts/build_theme_momentum_snapshot.py "${ARGS[@]}" | tee /tmp/theme_momentum_summary.json
73+
python scripts/validate_theme_momentum_snapshot.py data/output/theme_momentum_snapshot.json
7374
{
7475
echo "## Theme momentum snapshot"
7576
echo ""

data/output/latest_signal.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"schema_version": "1",
2+
"schema_version": "2",
3+
"model_version": "ai-shadow-context-v1",
4+
"scoring_version": "ai-shadow-context-rules-v1",
35
"as_of": "2026-06-25",
46
"generated_at": "2026-06-27T08:22:28.245044Z",
57
"mode": "shadow",
@@ -356,4 +358,4 @@
356358
"rationale": "Industrial automation remains a background context rather than a current positive signal."
357359
}
358360
}
359-
}
361+
}

data/output/latest_signal.manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"artifact": "data/output/latest_signal.json",
3-
"artifact_sha256": "39368aa3eae5da168665fde58edbe17bbef1c70fa4070b58051c928aaefc0b1a",
4-
"as_of": "2026-05-31",
5-
"generated_at": "2026-05-31T10:52:51Z",
6-
"history_artifact": "data/output/signal_history/2026-05-31.json",
3+
"artifact_sha256": "5fb8891cb793663636b65a70c4bb96c889533ded2a94cef2f7ae6e0c6fa482eb",
4+
"as_of": "2026-06-25",
5+
"generated_at": "2026-06-27T08:22:28.245044Z",
6+
"history_artifact": "data/output/signal_history/2026-06-25.json",
77
"mode": "shadow",
88
"policy": {
99
"downstream_use": "Manifest only records provenance for a shadow research artifact; it does not authorize execution.",

data/output/signal_history/2026-05-28.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"schema_version": "1",
2+
"schema_version": "2",
3+
"model_version": "shadow-signal-example-v1",
4+
"scoring_version": "shadow-signal-example-rules-v1",
35
"as_of": "2026-05-28",
46
"generated_at": "2026-05-28T14:38:47.474891Z",
57
"mode": "shadow",

data/output/signal_history/2026-05-31.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
"requires_fundamental_and_valuation_review",
3232
"no_account_level_advice"
3333
],
34-
"schema_version": "1",
34+
"schema_version": "2",
35+
"model_version": "shadow-signal-example-v1",
36+
"scoring_version": "shadow-signal-example-rules-v1",
3537
"symbol_bias": {
3638
"AMD": {
3739
"bias": "watch",

0 commit comments

Comments
 (0)