Skip to content

Commit 3ced2da

Browse files
author
TNFR AI Agent
committed
test: commit self-optimization test fixtures ignored by data/ rule [skip release]
The broad 'data/' gitignore rule silently excluded committed test fixtures under tests/data/ (self_optimization, self_opt_validation, replay_manifests). The tracked tests/scripts tests read these fixtures, so CI fresh checkouts failed with FileNotFoundError and empty-payload assertion errors. Add a negation to track tests/data/ fixtures.
1 parent fef06c4 commit 3ced2da

11 files changed

Lines changed: 256 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ cache/
7676
data/
7777
logs/
7878

79+
# Committed test fixtures live under tests/data/ (override the data/ rule above)
80+
!tests/data/
81+
!tests/data/**
82+
7983
# Type checking cache
8084
.mypy_cache/
8185

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"n": 299,
3+
"modulus": 1764526545,
4+
"timestamp": 1732960000.0,
5+
"partition_directory": "results/certificates/partitioned/sample_run",
6+
"partition_files": [],
7+
"entries": [
8+
{
9+
"partition_id": "partition_000",
10+
"candidate_count": 12,
11+
"node_count": 640,
12+
"boundary_count": 32,
13+
"telemetry": {
14+
"phi_s": 0.52,
15+
"phase_gradient": 0.11,
16+
"phase_curvature": 0.21,
17+
"coherence_length": 1.48
18+
}
19+
},
20+
{
21+
"partition_id": "partition_001",
22+
"candidate_count": 8,
23+
"node_count": 512,
24+
"boundary_count": 24,
25+
"telemetry": {
26+
"phi_s": 0.47,
27+
"phase_gradient": 0.09,
28+
"phase_curvature": 0.19,
29+
"coherence_length": 1.37
30+
}
31+
}
32+
],
33+
"summary": {
34+
"phi_s_mean": 0.495
35+
},
36+
"aggregation": {
37+
"partition_batches": 1
38+
},
39+
"partition_file_archive": "_partition_files.txt.gz",
40+
"partition_file_threshold": 1,
41+
"partition_files_inlined": false
42+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"n": 299,
3+
"modulus": 1764526545,
4+
"timestamp": 1732960000.0,
5+
"partition_count": 2,
6+
"candidate_stats": {
7+
"min": 8,
8+
"max": 12,
9+
"avg": 10.0
10+
},
11+
"node_stats": {
12+
"min": 512,
13+
"max": 640,
14+
"avg": 576.0
15+
},
16+
"boundary_stats": {
17+
"min": 24,
18+
"max": 32,
19+
"avg": 28.0
20+
},
21+
"telemetry_keys": [
22+
"phi_s",
23+
"phase_gradient",
24+
"phase_curvature",
25+
"coherence_length"
26+
],
27+
"file_index": {
28+
"inline": false,
29+
"threshold": 1,
30+
"archive": "_partition_files.txt.gz",
31+
"manifest": "_manifest.json"
32+
}
33+
}
73 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"metadata": {
3+
"operation_type": "paley_partition",
4+
"node": "p0",
5+
"seed": "alpha",
6+
"timestamp": "2025-12-01T00:00:00Z",
7+
"dry_run": true
8+
},
9+
"recommendations": {
10+
"recommended_strategies": [
11+
"enhance_coherence_coupling"
12+
]
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"metadata": {
3+
"operation_type": "integration_pipeline",
4+
"node": "segment",
5+
"seed": "beta",
6+
"timestamp": "2025-12-01T00:00:01Z",
7+
"dry_run": true
8+
},
9+
"recommendations": {
10+
"recommended_strategies": [
11+
"use_phase_transition_handling"
12+
]
13+
}
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"metadata": {
3+
"operation_type": "orbitals_demo",
4+
"node": "global",
5+
"seed": "gamma",
6+
"timestamp": "2025-12-01T00:00:02Z",
7+
"dry_run": true
8+
},
9+
"recommendations": {
10+
"recommended_strategies": []
11+
}
12+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"modulus": 21,
3+
"n": 21,
4+
"timestamp": 1760000000,
5+
"partition_directory": "partitioned/test_run",
6+
"partition_files": [
7+
"partitioned/test_run/test_run_p0.json",
8+
"partitioned/test_run/test_run_p1.json"
9+
],
10+
"entries": [
11+
{
12+
"partition_id": "p0",
13+
"relative_path": "partitioned/test_run/test_run_p0.json",
14+
"size": 6,
15+
"candidate_factors": [3, 7],
16+
"telemetry": {
17+
"phi_s": 0.12,
18+
"phase_gradient": 0.08,
19+
"phase_curvature": 0.19,
20+
"coherence_length": 3.5,
21+
"coherence": 0.52,
22+
"sense_index": 0.61
23+
}
24+
},
25+
{
26+
"partition_id": "p1",
27+
"relative_path": "partitioned/test_run/test_run_p1.json",
28+
"size": 6,
29+
"candidate_factors": [3, 7],
30+
"telemetry": {
31+
"phi_s": 0.15,
32+
"phase_gradient": 0.09,
33+
"phase_curvature": 0.24,
34+
"coherence_length": 3.1,
35+
"coherence": 0.55,
36+
"sense_index": 0.64
37+
}
38+
}
39+
],
40+
"aggregation": {
41+
"candidate_factors": [3, 7],
42+
"partition_count": 2,
43+
"phi_s_mean": 0.135,
44+
"phase_gradient_mean": 0.085,
45+
"phase_curvature_mean": 0.215,
46+
"coherence_length_mean": 3.3
47+
}
48+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"modulus": 21,
3+
"partition_count": 2,
4+
"telemetry": {
5+
"phi_s": {
6+
"mean": 0.135,
7+
"max": 0.15,
8+
"min": 0.12
9+
},
10+
"phase_gradient": {
11+
"mean": 0.085,
12+
"max": 0.09,
13+
"min": 0.08
14+
}
15+
},
16+
"candidate_factors": [3, 7]
17+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"n": 21,
3+
"modulus": 21,
4+
"partition_id": "p0",
5+
"partition": {
6+
"id": "p0",
7+
"node_indices": [0, 1, 2, 3, 4, 5],
8+
"boundary_nodes": [0, 5],
9+
"phase_reference": 0.0,
10+
"telemetry": {
11+
"phi_s": 0.12,
12+
"phase_gradient": 0.08,
13+
"phase_curvature": 0.19,
14+
"coherence_length": 3.5,
15+
"coherence": 0.52,
16+
"sense_index": 0.61,
17+
"notes": "test"
18+
},
19+
"metadata": {
20+
"range": [0, 5],
21+
"ratio": 0.25,
22+
"size": 6,
23+
"nodal_state": {
24+
"sequence": ["AL", "UM", "IL", "SHA"]
25+
}
26+
}
27+
},
28+
"candidate_factors": [3, 7],
29+
"parent_partition_summary": {
30+
"modulus": 21,
31+
"partition_count": 2,
32+
"overlap_policy": "boundary_overlap",
33+
"notes": "test"
34+
},
35+
"notes": "unit-test"
36+
}

0 commit comments

Comments
 (0)