kaupane commited on
Commit
ac02325
·
verified ·
1 Parent(s): 713ebc6

Promote release v2.0.0

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. LICENSE +21 -0
  2. README.md +23 -568
  3. aeossp_standard/test-00000-of-00001.parquet +0 -3
  4. aeossp_standard/test_easy-00000-of-00001.parquet +0 -3
  5. aeossp_standard/test_hard-00000-of-00001.parquet +0 -3
  6. aeossp_standard/test_horizon_2022-00000-of-00001.parquet +0 -3
  7. aeossp_standard/train-00000-of-00001.parquet +0 -3
  8. regional_coverage/test-00000-of-00001.parquet +0 -3
  9. regional_coverage/train-00000-of-00001.parquet +0 -3
  10. registry.json +687 -0
  11. relay_constellation/test-00000-of-00001.parquet +0 -3
  12. relay_constellation/train-00000-of-00001.parquet +0 -3
  13. release-manifest.json +0 -0
  14. revisit_constellation/test-00000-of-00001.parquet +0 -3
  15. revisit_constellation/train-00000-of-00001.parquet +0 -3
  16. satnet/test-00000-of-00001.parquet +0 -3
  17. spot5/multi_orbit-00000-of-00001.parquet +0 -3
  18. spot5/single_orbit-00000-of-00001.parquet +0 -3
  19. spot5/test-00000-of-00001.parquet +0 -3
  20. spot5/train-00000-of-00001.parquet +0 -3
  21. stereo_imaging/test-00000-of-00001.parquet +0 -3
  22. stereo_imaging/train-00000-of-00001.parquet +0 -3
  23. tasks/aeossp_standard-test-case_0001/environment/Dockerfile +4 -0
  24. tasks/aeossp_standard-test-case_0001/environment/case/mission.yaml +24 -0
  25. tasks/aeossp_standard-test-case_0001/environment/case/satellites.yaml +361 -0
  26. tasks/aeossp_standard-test-case_0001/environment/case/tasks.yaml +0 -0
  27. tasks/aeossp_standard-test-case_0001/instruction.md +106 -0
  28. tasks/aeossp_standard-test-case_0001/solution/solution.json +0 -0
  29. tasks/aeossp_standard-test-case_0001/solution/solve.sh +3 -0
  30. tasks/aeossp_standard-test-case_0001/task.toml +24 -0
  31. tasks/aeossp_standard-test-case_0001/tests/Dockerfile +3 -0
  32. tasks/aeossp_standard-test-case_0001/tests/benchmarks/__init__.py +0 -0
  33. tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/__init__.py +0 -0
  34. tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/__init__.py +28 -0
  35. tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/engine.py +907 -0
  36. tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/io.py +346 -0
  37. tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/models.py +286 -0
  38. tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/run.py +39 -0
  39. tasks/aeossp_standard-test-case_0001/tests/case/mission.yaml +24 -0
  40. tasks/aeossp_standard-test-case_0001/tests/case/satellites.yaml +361 -0
  41. tasks/aeossp_standard-test-case_0001/tests/case/tasks.yaml +0 -0
  42. tasks/aeossp_standard-test-case_0001/tests/profile.json +34 -0
  43. tasks/aeossp_standard-test-case_0001/tests/score.py +84 -0
  44. tasks/aeossp_standard-test-case_0001/tests/task-config.json +36 -0
  45. tasks/aeossp_standard-test-case_0001/tests/test.sh +3 -0
  46. tasks/aeossp_standard-test-case_0002/environment/Dockerfile +4 -0
  47. tasks/aeossp_standard-test-case_0002/environment/case/mission.yaml +24 -0
  48. tasks/aeossp_standard-test-case_0002/environment/case/satellites.yaml +433 -0
  49. tasks/aeossp_standard-test-case_0002/environment/case/tasks.yaml +0 -0
  50. tasks/aeossp_standard-test-case_0002/instruction.md +106 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 [OpenMOSS-Team]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -1,585 +1,40 @@
1
  ---
2
- license: mit
 
 
3
  language:
4
- - en
5
  tags:
6
- - aerospace
7
- - satellite-scheduling
8
- - operations-research
9
- - constraint-optimization
10
- - astrodynamics
11
- - benchmark
12
- configs:
13
- - config_name: aeossp_standard
14
- data_files:
15
- - split: test
16
- path: aeossp_standard/test-*
17
- - split: test_horizon_2022
18
- path: aeossp_standard/test_horizon_2022-*
19
- - split: test_easy
20
- path: aeossp_standard/test_easy-*
21
- - split: test_hard
22
- path: aeossp_standard/test_hard-*
23
- - split: train
24
- path: aeossp_standard/train-*
25
- - config_name: regional_coverage
26
- data_files:
27
- - split: test
28
- path: regional_coverage/test-*
29
- - split: train
30
- path: regional_coverage/train-*
31
- - config_name: relay_constellation
32
- data_files:
33
- - split: test
34
- path: relay_constellation/test-*
35
- - split: train
36
- path: relay_constellation/train-*
37
- - config_name: revisit_constellation
38
- data_files:
39
- - split: test
40
- path: revisit_constellation/test-*
41
- - split: train
42
- path: revisit_constellation/train-*
43
- - config_name: satnet
44
- data_files:
45
- - split: test
46
- path: satnet/test-*
47
- - config_name: spot5
48
- data_files:
49
- - split: single_orbit
50
- path: spot5/single_orbit-*
51
- - split: multi_orbit
52
- path: spot5/multi_orbit-*
53
- - split: test
54
- path: spot5/test-*
55
- - split: train
56
- path: spot5/train-*
57
- - config_name: stereo_imaging
58
- data_files:
59
- - split: test
60
- path: stereo_imaging/test-*
61
- - split: train
62
- path: stereo_imaging/train-*
63
- dataset_info:
64
- - config_name: aeossp_standard
65
- features:
66
- - name: case_id
67
- dtype: string
68
- - name: split
69
- dtype: string
70
- - name: benchmark
71
- dtype: string
72
- - name: index_metadata
73
- struct:
74
- - name: case_id
75
- dtype: string
76
- - name: case_seed
77
- dtype: int64
78
- - name: celestrak_snapshot_epoch_utc
79
- dtype: string
80
- - name: horizon_hours
81
- dtype: int64
82
- - name: norad_catalog_ids
83
- list: int64
84
- - name: num_satellites
85
- dtype: int64
86
- - name: num_tasks
87
- dtype: int64
88
- - name: path
89
- dtype: string
90
- - name: satellite_sensor_mix
91
- struct:
92
- - name: infrared
93
- dtype: int64
94
- - name: visible
95
- dtype: int64
96
- - name: split
97
- dtype: string
98
- - name: task_sensor_mix
99
- struct:
100
- - name: infrared
101
- dtype: int64
102
- - name: visible
103
- dtype: int64
104
- - name: task_source_mix
105
- struct:
106
- - name: background
107
- dtype: int64
108
- - name: city
109
- dtype: int64
110
- - name: task_weight_summary
111
- struct:
112
- - name: max
113
- dtype: float64
114
- - name: mean
115
- dtype: float64
116
- - name: min
117
- dtype: float64
118
- - name: files
119
- list:
120
- - name: content
121
- dtype: string
122
- - name: path
123
- dtype: string
124
- splits:
125
- - name: test
126
- num_bytes: 2489505
127
- num_examples: 5
128
- - name: test_horizon_2022
129
- num_bytes: 2489544
130
- num_examples: 5
131
- - name: test_easy
132
- num_bytes: 1880560
133
- num_examples: 5
134
- - name: test_hard
135
- num_bytes: 5035798
136
- num_examples: 5
137
- - name: train
138
- num_bytes: 4807565
139
- num_examples: 10
140
- download_size: 16761038
141
- dataset_size: 16702972
142
- - config_name: regional_coverage
143
- features:
144
- - name: case_id
145
- dtype: string
146
- - name: split
147
- dtype: string
148
- - name: benchmark
149
- dtype: string
150
- - name: index_metadata
151
- struct:
152
- - name: case_id
153
- dtype: string
154
- - name: horizon_hours
155
- dtype: int64
156
- - name: num_regions
157
- dtype: int64
158
- - name: num_satellites
159
- dtype: int64
160
- - name: path
161
- dtype: string
162
- - name: satellite_class_ids
163
- list: string
164
- - name: split
165
- dtype: string
166
- - name: total_region_area_m2
167
- dtype: float64
168
- - name: files
169
- list:
170
- - name: content
171
- dtype: string
172
- - name: path
173
- dtype: string
174
- splits:
175
- - name: test
176
- num_bytes: 15300881
177
- num_examples: 5
178
- - name: train
179
- num_bytes: 26353791
180
- num_examples: 10
181
- download_size: 41667686
182
- dataset_size: 41654672
183
- - config_name: relay_constellation
184
- features:
185
- - name: case_id
186
- dtype: string
187
- - name: split
188
- dtype: string
189
- - name: benchmark
190
- dtype: string
191
- - name: index_metadata
192
- struct:
193
- - name: case_id
194
- dtype: string
195
- - name: horizon_hours
196
- dtype: int64
197
- - name: max_added_satellites
198
- dtype: int64
199
- - name: num_backbone_satellites
200
- dtype: int64
201
- - name: num_demanded_windows
202
- dtype: int64
203
- - name: num_endpoint_pairs
204
- dtype: int64
205
- - name: num_ground_endpoints
206
- dtype: int64
207
- - name: path
208
- dtype: string
209
- - name: split
210
- dtype: string
211
- - name: files
212
- list:
213
- - name: content
214
- dtype: string
215
- - name: path
216
- dtype: string
217
- splits:
218
- - name: test
219
- num_bytes: 27101
220
- num_examples: 5
221
- - name: train
222
- num_bytes: 52637
223
- num_examples: 10
224
- download_size: 112608
225
- dataset_size: 79738
226
- - config_name: revisit_constellation
227
- features:
228
- - name: case_id
229
- dtype: string
230
- - name: split
231
- dtype: string
232
- - name: benchmark
233
- dtype: string
234
- - name: index_metadata
235
- struct:
236
- - name: case_id
237
- dtype: string
238
- - name: max_num_satellites
239
- dtype: int64
240
- - name: path
241
- dtype: string
242
- - name: split
243
- dtype: string
244
- - name: target_count
245
- dtype: int64
246
- - name: uniform_revisit_threshold_hours
247
- dtype: float64
248
- - name: files
249
- list:
250
- - name: content
251
- dtype: string
252
- - name: path
253
- dtype: string
254
- splits:
255
- - name: test
256
- num_bytes: 48155
257
- num_examples: 5
258
- - name: train
259
- num_bytes: 95297
260
- num_examples: 10
261
- download_size: 155101
262
- dataset_size: 143452
263
- - config_name: satnet
264
- features:
265
- - name: case_id
266
- dtype: string
267
- - name: split
268
- dtype: string
269
- - name: benchmark
270
- dtype: string
271
- - name: index_metadata
272
- struct:
273
- - name: case_id
274
- dtype: string
275
- - name: maintenance_window_count
276
- dtype: int64
277
- - name: path
278
- dtype: string
279
- - name: request_count
280
- dtype: int64
281
- - name: split
282
- dtype: string
283
- - name: week
284
- dtype: int64
285
- - name: year
286
- dtype: int64
287
- - name: files
288
- list:
289
- - name: content
290
- dtype: string
291
- - name: path
292
- dtype: string
293
- splits:
294
- - name: test
295
- num_bytes: 3248419
296
- num_examples: 5
297
- download_size: 3254244
298
- dataset_size: 3248419
299
- - config_name: spot5
300
- features:
301
- - name: case_id
302
- dtype: string
303
- - name: split
304
- dtype: string
305
- - name: benchmark
306
- dtype: string
307
- - name: index_metadata
308
- struct:
309
- - name: case_id
310
- dtype: string
311
- - name: instance_file
312
- dtype: string
313
- - name: is_multi_orbit
314
- dtype: bool
315
- - name: path
316
- dtype: string
317
- - name: split
318
- dtype: string
319
- - name: files
320
- list:
321
- - name: content
322
- dtype: string
323
- - name: path
324
- dtype: string
325
- splits:
326
- - name: single_orbit
327
- num_bytes: 934024
328
- num_examples: 14
329
- - name: multi_orbit
330
- num_bytes: 1766774
331
- num_examples: 7
332
- - name: test
333
- num_bytes: 1147997
334
- num_examples: 5
335
- - name: train
336
- num_bytes: 742083
337
- num_examples: 10
338
- download_size: 4608851
339
- dataset_size: 4590878
340
- - config_name: stereo_imaging
341
- features:
342
- - name: case_id
343
- dtype: string
344
- - name: split
345
- dtype: string
346
- - name: benchmark
347
- dtype: string
348
- - name: index_metadata
349
- struct:
350
- - name: case_id
351
- dtype: string
352
- - name: horizon_end
353
- dtype: string
354
- - name: horizon_start
355
- dtype: string
356
- - name: norad_catalog_ids
357
- list: int64
358
- - name: num_satellites
359
- dtype: int64
360
- - name: num_targets
361
- dtype: int64
362
- - name: path
363
- dtype: string
364
- - name: satellite_ids
365
- list: string
366
- - name: split
367
- dtype: string
368
- - name: files
369
- list:
370
- - name: content
371
- dtype: string
372
- - name: path
373
- dtype: string
374
- splits:
375
- - name: test
376
- num_bytes: 138614
377
- num_examples: 5
378
- - name: train
379
- num_bytes: 285950
380
- num_examples: 10
381
- download_size: 439361
382
- dataset_size: 424564
383
  ---
384
 
385
- # AstroAgentBench Datasets
386
 
387
- This is the canonical Hugging Face Dataset repository for **AstroAgentBench**, a benchmark suite for evaluating AI agents and algorithms on space mission design and planning problems.
388
 
389
- Each benchmark is exposed as a separate **config** (subset) within this dataset. Splits within a config map transparently to the benchmark's own dataset splits (e.g., `test`, `single_orbit`, `multi_orbit`).
390
 
391
- ## Dataset Summary
392
 
393
- | Config | Cases | Splits | Domain |
394
- |---|---|---|---|
395
- | `aeossp_standard` | 30 | `test`, `test_easy`, `test_hard`, `test_horizon_2022`, `train` | Agile Earth-observation satellite scheduling |
396
- | `regional_coverage` | 15 | `test`, `train` | SAR-like regional strip-observation planning |
397
- | `relay_constellation` | 15 | `test`, `train` | Relay satellite constellation augmentation |
398
- | `revisit_constellation` | 15 | `test`, `train` | Constellation design for uniform target revisit |
399
- | `satnet` | 5 | `test` | Deep Space Network (DSN) antenna scheduling |
400
- | `spot5` | 31 | `single_orbit`, `multi_orbit`, `test`, `train` | SPOT-5 daily photograph scheduling (DCKP) |
401
- | `stereo_imaging` | 15 | `test`, `train` | Optical stereo/tri-stereo imaging planning |
402
-
403
- ## Dataset Structure
404
-
405
- Every example in every config follows the same schema:
406
-
407
- ```json
408
- {
409
- "case_id": "case_0001",
410
- "split": "test",
411
- "benchmark": "aeossp_standard",
412
- "index_metadata": { ... case-specific metadata from index.json ... },
413
- "files": [
414
- {"path": "mission.yaml", "content": "..."},
415
- {"path": "satellites.yaml", "content": "..."},
416
- {"path": "tasks.yaml", "content": "..."}
417
- ]
418
- }
419
- ```
420
-
421
- - **`case_id`**: Unique identifier for the case within the benchmark.
422
- - **`split`**: The dataset split the case belongs to.
423
- - **`benchmark`**: The benchmark name.
424
- - **`index_metadata`**: The case-level entry from the benchmark's `dataset/index.json` (e.g., satellite counts, task counts, horizons, thresholds, provenance).
425
- - **`files`**: A list of all text files inside the case directory. Each entry has a `path` (relative to the case directory) and the full UTF-8 `content`.
426
-
427
- > **Note**: Because different cases contain different filenames, `files` is stored as a uniform list of objects rather than a dictionary with dynamic keys. This ensures consistent features across splits.
428
-
429
- ## Quickstart
430
-
431
- ### Loading a single benchmark
432
-
433
- ```python
434
- from datasets import load_dataset
435
-
436
- # Load the aeossp_standard benchmark
437
- ds = load_dataset("kaupane/AstroAgentBench", "aeossp_standard")
438
- print(ds["test"][0]["case_id"])
439
- ```
440
-
441
- ### Loading a specific case's files
442
-
443
- ```python
444
- case = ds["test"][0]
445
- for file in case["files"]:
446
- print(file["path"])
447
- # file["content"] contains the full text of the file
448
- ```
449
-
450
- ### Iterating all configs
451
-
452
- ```python
453
- from datasets import get_dataset_config_names
454
-
455
- configs = get_dataset_config_names("kaupane/AstroAgentBench")
456
- for config in configs:
457
- ds = load_dataset("kaupane/AstroAgentBench", config)
458
- for split_name, split_ds in ds.items():
459
- print(f"{config}/{split_name}: {len(split_ds)} cases")
460
  ```
461
 
462
- ## Benchmark Descriptions
463
-
464
- ### `aeossp_standard`
465
- A planning-oriented agile Earth-observation satellite scheduling benchmark. Each case provides a fixed constellation of real satellites (via frozen TLEs), time-windowed point-imaging tasks, and hard constraints on observation geometry, battery state, and slew feasibility. The solver submits a schedule of `observation` actions. Metrics include completion ratio (`CR`), weighted completion ratio (`WCR`), time-averaged tardiness (`TAT`), and power consumption (`PC`).
466
-
467
- **Case files**: `mission.yaml`, `satellites.yaml`, `tasks.yaml`
468
-
469
- ### `regional_coverage`
470
- A SAR-like regional imaging benchmark. The solver must plan strip observations over polygonal regions of interest to maximize unique weighted coverage. Cases include real satellites with frozen TLEs, GeoJSON region definitions, and a benchmark-owned fine-grid scoring model. Hard constraints include roll-only strip geometry, same-satellite retargeting limits, battery feasibility, and optional per-region minimum coverage thresholds.
471
-
472
- **Case files**: `manifest.json`, `satellites.yaml`, `regions.geojson`, `coverage_grid.json`
473
-
474
- ### `relay_constellation`
475
- A partial constellation-design benchmark for relay service augmentation. Given an immutable MEO relay backbone and ground endpoints, the solver adds a bounded number of lower-altitude relay satellites and schedules ground-link and inter-satellite-link actions. The verifier scores service fraction, latency percentiles, and the number of added satellites.
476
-
477
- **Case files**: `manifest.json`, `network.json`, `demands.json`
478
-
479
- ### `revisit_constellation`
480
- A constellation-design and scheduling benchmark focused on revisit performance. The solver designs a satellite constellation (initial GCRF Cartesian states up to a case cap) and schedules `observation` actions to keep target revisit gaps as small as possible over a 48-hour horizon. Scoring is driven by `mean_revisit_gap_hours`, `max_revisit_gap_hours`, and `satellite_count`.
481
 
482
- **Case files**: `assets.json`, `mission.json`
483
 
484
- ### `satnet`
485
- A reinforcement-learning benchmark derived from NASA/JPL Deep Space Network (DSN) operations. The task is to schedule ground-station antenna tracks for interplanetary spacecraft over one-week windows, respecting precomputed view periods, setup/teardown times, maintenance windows, and non-overlap constraints. The primary metrics are the mission-level unsatisfied-demand fairness metrics `U_rms` and `U_max`, with satisfied request count and total communication hours used as secondary service-volume indicators.
486
 
487
- **Case files**: `problem.json`, `maintenance.csv`, `metadata.json`
488
 
489
- ### `spot5`
490
- A constraint optimization benchmark based on the ROADEF 2003 Challenge and CNES SPOT-5 operations. Cases are encoded in the DCKP (Disjunctively Constrained Knapsack Problem) format. The solver selects photographs and assigns cameras to maximize total profit while respecting binary/ternary disjunctive constraints and an onboard memory capacity constraint (for multi-orbit instances).
491
-
492
- **Case files**: `<case_id>.spot`
493
-
494
- ### `stereo_imaging`
495
- An optical satellite stereo imaging benchmark. The solver schedules timed observations from real satellites to acquire same-pass stereo or tri-stereo products over ground targets. The verifier scores `coverage_ratio` (fraction of targets with a valid stereo product) and `normalized_quality` (mean best-per-target quality based on convergence angle, overlap, and pixel scale).
496
-
497
- **Case files**: `satellites.yaml`, `targets.yaml`, `mission.yaml`
498
-
499
- ## Data Splits and Splits Policy
500
-
501
- - `aeossp_standard`, `regional_coverage`, `relay_constellation`, `revisit_constellation`, and `stereo_imaging`: expose benchmark-owned `train` splits for learning workflows and separate `test`-family splits for held-out evaluation.
502
- - `satnet`: exposes only the five published 2018 `test` cases; no `train` split is committed.
503
- - `spot5`: Exposes four splits:
504
- - `single_orbit`: 14 cases without memory constraints.
505
- - `multi_orbit`: 7 cases with a memory capacity of 200.
506
- - `test`: A 5-case sample drawn with seed 42 (overlaps with `single_orbit` and `multi_orbit`).
507
- - `train`: A 10-case sample drawn with seed 163 (overlaps with the full family splits).
508
-
509
- Future benchmark releases may add additional splits (e.g., `val`) transparently without changing the schema.
510
-
511
- ## Dataset Creation
512
-
513
- All canonical datasets are generated or curated by the AstroAgentBench repository. Where generators exist, they are deterministic and tied to committed `splits.yaml` contracts. Canonical cases are committed to the repository and are the source of truth for evaluation.
514
-
515
- ## Source Data
516
-
517
- | Config | Primary Sources |
518
- |---|---|
519
- | `aeossp_standard` | CelesTrak TLE snapshot; GeoNames cities; Natural Earth land polygons |
520
- | `regional_coverage` | CelesTrak TLE snapshot; GeoNames; Natural Earth |
521
- | `relay_constellation` | Synthetic case generator with deterministic seeds |
522
- | `revisit_constellation` | Kaggle world-cities dataset; CelesTrak TLE snapshot |
523
- | `satnet` | Derived from NASA/JPL Deep Space Network operations research (Chien et al., 2021) |
524
- | `spot5` | Mendeley Data DCKP abstraction (Wei & Hao, 2021) of CNES SPOT-5 ROADEF 2003 instances |
525
- | `stereo_imaging` | Kaggle world-cities; CelesTrak TLE snapshot |
526
-
527
- ## Considerations for Using the Data
528
-
529
- - **Algorithm-agnostic**: Benchmarks define problems and verification, not preferred solving strategies.
530
- - **Standalone**: Each config is self-contained with no runtime dependencies on other configs.
531
- - **No solutions included**: This dataset contains only problem instances (cases). Solutions, baselines, and leaderboards belong in downstream repositories.
532
- - **Binary files skipped**: The upload script ingests only text-based case files. Any future binary artifacts would be excluded from this HF release.
533
-
534
- ## Licensing Information
535
-
536
- This dataset repository aggregates multiple sources with different provenance:
537
-
538
- - **`spot5`**: The `.spot` instances are from the Mendeley Data release (DOI: 10.17632/2kbzg9nw3b.1) and are provided under **CC BY 4.0**.
539
- - **`satnet`**: Derived from NASA/JPL Deep Space Network operations research. Used for research and educational purposes.
540
- - **All other benchmarks** (`aeossp_standard`, `regional_coverage`, `relay_constellation`, `revisit_constellation`, `stereo_imaging`): Original benchmark materials created by the AstroAgentBench project.
541
-
542
- Please cite the appropriate references when using individual benchmarks (see Citation Information).
543
-
544
- ## Citation Information
545
-
546
- If you use this dataset suite in your research, please cite the AstroAgentBench paper and the original benchmark sources:
547
-
548
- ### Original preprint
549
- ```bibtex
550
- @article{wang2026astroreason,
551
- title={AstroReason-Bench: Evaluating Unified Agentic Planning across Heterogeneous Space Planning Problems},
552
- author={Wang, Weiyi and Chen, Xinchi and Gong, Jingjing and Huang, Xuanjing and Qiu, Xipeng},
553
- journal={arXiv preprint arXiv:2601.11354},
554
- year={2026}
555
- }
556
- ```
557
-
558
- ### SatNet
559
- ```bibtex
560
- @inproceedings{goh2021satnet,
561
- title={SatNet: A benchmark for satellite scheduling optimization},
562
- author={Goh, Edwin and Venkataram, Hamsa Shwetha and Balaji, Bharathan and Wilson, Brian D and Johnston, Mark D},
563
- booktitle={AAAI-22 workshop on Machine Learning for Operations Research (ML4OR)},
564
- year={2021}
565
- }
566
- ```
567
-
568
- ### SPOT-5 / DCKP
569
- ```bibtex
570
- @article{wei2023responsive,
571
- title={Responsive strategic oscillation for solving the disjunctively constrained knapsack problem},
572
- author={Wei, Zequn and Hao, Jin-Kao and Ren, Jintong and Glover, Fred},
573
- journal={European Journal of Operational Research},
574
- volume={309},
575
- number={3},
576
- pages={993--1009},
577
- year={2023},
578
- publisher={Elsevier}
579
- }
580
- ```
581
 
582
- ## Contact and Links
583
 
584
- - **Repository**: https://github.com/Mtrya/AstroAgentBench
585
- - **Issue Tracker**: https://github.com/Mtrya/AstroAgentBench/issues
 
1
  ---
2
+ license: other
3
+ license_name: mixed-source-licenses
4
+ license_link: https://huggingface.co/datasets/kaupane/AstroAgentBench/blob/v2.0.0/README.md#licensing-and-attribution
5
  language:
6
+ - en
7
  tags:
8
+ - rl-environment
9
+ - harbor
10
+ - aerospace
11
+ - satellite-scheduling
12
+ - astrodynamics
13
+ - benchmark
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
 
16
+ # AstroAgentBench
17
 
18
+ Harbor tasks for evaluating complete agent systems on space mission design. [GitHub](https://github.com/Mtrya/AstroAgentBench/tree/6f5b9d21b1efb2ca2ee6fcabdc338a9d077612cb) is the canonical source for benchmark definitions, generators, and source inputs. This release is `v2.0.0`, generated from Git commit `6f5b9d21b1efb2ca2ee6fcabdc338a9d077612cb`.
19
 
20
+ ## Run a taskset
21
 
22
+ Install Harbor 0.23.0 with Python 3.13 and have Docker available. Run the seven reference checks, one per benchmark family:
23
 
24
+ ```bash
25
+ harbor run --repo https://huggingface.co/datasets/kaupane/AstroAgentBench@v2.0.0 --dataset smoke@v2.0.0 --agent oracle -n 1 --jobs-dir results --job-name astroagentbench-smoke
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  ```
27
 
28
+ `registry.json` lists one dataset per benchmark and split, such as `regional_coverage-test@v2.0.0` and `spot5-single_orbit@v2.0.0`. Select one with `--dataset` and supply your Harbor agent adapter and model. Only the seven tasks in `smoke` include oracle solutions. Native scores have benchmark-specific units and directions; do not combine scores across families.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
+ ## Contents and resources
31
 
32
+ Each directory under `tasks/` contains a task brief, case inputs, environment Dockerfile, and independent verifier. The solving and verifier images share a public runtime pinned by digest. Tasks default to 8 CPUs, 16384 MiB memory, 7200 seconds of agent execution, 600 seconds of verification, public network access, and 10240 MiB requested storage. Docker does not enforce the requested storage as a disk quota. Harbor resource overrides are recorded with each run.
 
33
 
34
+ `release-manifest.json` records the Git source, runtime image, byte sizes, and SHA-256 checksums. Dataset versions match the GitHub release tags. Releases from `v2.0.0` use this taskset layout; historical tags retain their original contents. The complete raw source tree remains on GitHub.
35
 
36
+ ## Licensing and attribution
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
+ This release combines project code under the root [MIT license](LICENSE) with third-party inputs under their own terms. The MIT license does not replace those source licenses. See the [benchmark READMEs and source manifests at the release commit](https://github.com/Mtrya/AstroAgentBench/tree/6f5b9d21b1efb2ca2ee6fcabdc338a9d077612cb/benchmarks) for provenance.
39
 
40
+ The SPOT5 `.spot` inputs are distributed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), from Zequn Wei and Jin-Kao Hao's [Mendeley Data release, version 1 (2021), DOI 10.17632/2kbzg9nw3b.1](https://data.mendeley.com/datasets/2kbzg9nw3b/1). The bundled source files are unchanged; benchmark case files are derived from them. Retain this attribution and indicate any further modifications when redistributing those data.
 
aeossp_standard/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9446954a5e29f7764448766c651f461ee4c952c215957829db1f1e33bda882eb
3
- size 2501057
 
 
 
 
aeossp_standard/test_easy-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:78d2448182ea110bbf94195141fd642533c4d1079d5901beea6c9aede2e4384c
3
- size 1892158
 
 
 
 
aeossp_standard/test_hard-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:14a90cfd1af4bab39c48f818885ea7e7c2d94fecd99261821c1957ddb46c63d3
3
- size 5047500
 
 
 
 
aeossp_standard/test_horizon_2022-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e52546752aecd8e539bbca4f28aea724900cf390d89821dcb72f742d4c731a9b
3
- size 2501211
 
 
 
 
aeossp_standard/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4cf3f54a274c9b9aa109dc48d1f80a2e74b0adda05a803bb6248287b76a90f47
3
- size 4819112
 
 
 
 
regional_coverage/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fafbb9e27266f2d96f0c69d39ab00587240afd562a62be5fa8c8d86c60df5370
3
- size 15307349
 
 
 
 
regional_coverage/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cab2bc23677b97b1903172ad8011d13275c507a470b9a1c7759240098ed01776
3
- size 26360337
 
 
 
 
registry.json ADDED
@@ -0,0 +1,687 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "aeossp_standard-test",
4
+ "version": "v2.0.0",
5
+ "description": "AstroAgentBench aeossp_standard-test",
6
+ "tasks": [
7
+ {
8
+ "name": "aeossp_standard-test-case_0001",
9
+ "path": "tasks/aeossp_standard-test-case_0001"
10
+ },
11
+ {
12
+ "name": "aeossp_standard-test-case_0002",
13
+ "path": "tasks/aeossp_standard-test-case_0002"
14
+ },
15
+ {
16
+ "name": "aeossp_standard-test-case_0003",
17
+ "path": "tasks/aeossp_standard-test-case_0003"
18
+ },
19
+ {
20
+ "name": "aeossp_standard-test-case_0004",
21
+ "path": "tasks/aeossp_standard-test-case_0004"
22
+ },
23
+ {
24
+ "name": "aeossp_standard-test-case_0005",
25
+ "path": "tasks/aeossp_standard-test-case_0005"
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "name": "aeossp_standard-test_easy",
31
+ "version": "v2.0.0",
32
+ "description": "AstroAgentBench aeossp_standard-test_easy",
33
+ "tasks": [
34
+ {
35
+ "name": "aeossp_standard-test_easy-case_0001",
36
+ "path": "tasks/aeossp_standard-test_easy-case_0001"
37
+ },
38
+ {
39
+ "name": "aeossp_standard-test_easy-case_0002",
40
+ "path": "tasks/aeossp_standard-test_easy-case_0002"
41
+ },
42
+ {
43
+ "name": "aeossp_standard-test_easy-case_0003",
44
+ "path": "tasks/aeossp_standard-test_easy-case_0003"
45
+ },
46
+ {
47
+ "name": "aeossp_standard-test_easy-case_0004",
48
+ "path": "tasks/aeossp_standard-test_easy-case_0004"
49
+ },
50
+ {
51
+ "name": "aeossp_standard-test_easy-case_0005",
52
+ "path": "tasks/aeossp_standard-test_easy-case_0005"
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ "name": "aeossp_standard-test_hard",
58
+ "version": "v2.0.0",
59
+ "description": "AstroAgentBench aeossp_standard-test_hard",
60
+ "tasks": [
61
+ {
62
+ "name": "aeossp_standard-test_hard-case_0001",
63
+ "path": "tasks/aeossp_standard-test_hard-case_0001"
64
+ },
65
+ {
66
+ "name": "aeossp_standard-test_hard-case_0002",
67
+ "path": "tasks/aeossp_standard-test_hard-case_0002"
68
+ },
69
+ {
70
+ "name": "aeossp_standard-test_hard-case_0003",
71
+ "path": "tasks/aeossp_standard-test_hard-case_0003"
72
+ },
73
+ {
74
+ "name": "aeossp_standard-test_hard-case_0004",
75
+ "path": "tasks/aeossp_standard-test_hard-case_0004"
76
+ },
77
+ {
78
+ "name": "aeossp_standard-test_hard-case_0005",
79
+ "path": "tasks/aeossp_standard-test_hard-case_0005"
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "aeossp_standard-test_horizon_2022",
85
+ "version": "v2.0.0",
86
+ "description": "AstroAgentBench aeossp_standard-test_horizon_2022",
87
+ "tasks": [
88
+ {
89
+ "name": "aeossp_standard-test_horizon_2022-case_0001",
90
+ "path": "tasks/aeossp_standard-test_horizon_2022-case_0001"
91
+ },
92
+ {
93
+ "name": "aeossp_standard-test_horizon_2022-case_0002",
94
+ "path": "tasks/aeossp_standard-test_horizon_2022-case_0002"
95
+ },
96
+ {
97
+ "name": "aeossp_standard-test_horizon_2022-case_0003",
98
+ "path": "tasks/aeossp_standard-test_horizon_2022-case_0003"
99
+ },
100
+ {
101
+ "name": "aeossp_standard-test_horizon_2022-case_0004",
102
+ "path": "tasks/aeossp_standard-test_horizon_2022-case_0004"
103
+ },
104
+ {
105
+ "name": "aeossp_standard-test_horizon_2022-case_0005",
106
+ "path": "tasks/aeossp_standard-test_horizon_2022-case_0005"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "name": "aeossp_standard-train",
112
+ "version": "v2.0.0",
113
+ "description": "AstroAgentBench aeossp_standard-train",
114
+ "tasks": [
115
+ {
116
+ "name": "aeossp_standard-train-case_0001",
117
+ "path": "tasks/aeossp_standard-train-case_0001"
118
+ },
119
+ {
120
+ "name": "aeossp_standard-train-case_0002",
121
+ "path": "tasks/aeossp_standard-train-case_0002"
122
+ },
123
+ {
124
+ "name": "aeossp_standard-train-case_0003",
125
+ "path": "tasks/aeossp_standard-train-case_0003"
126
+ },
127
+ {
128
+ "name": "aeossp_standard-train-case_0004",
129
+ "path": "tasks/aeossp_standard-train-case_0004"
130
+ },
131
+ {
132
+ "name": "aeossp_standard-train-case_0005",
133
+ "path": "tasks/aeossp_standard-train-case_0005"
134
+ },
135
+ {
136
+ "name": "aeossp_standard-train-case_0006",
137
+ "path": "tasks/aeossp_standard-train-case_0006"
138
+ },
139
+ {
140
+ "name": "aeossp_standard-train-case_0007",
141
+ "path": "tasks/aeossp_standard-train-case_0007"
142
+ },
143
+ {
144
+ "name": "aeossp_standard-train-case_0008",
145
+ "path": "tasks/aeossp_standard-train-case_0008"
146
+ },
147
+ {
148
+ "name": "aeossp_standard-train-case_0009",
149
+ "path": "tasks/aeossp_standard-train-case_0009"
150
+ },
151
+ {
152
+ "name": "aeossp_standard-train-case_0010",
153
+ "path": "tasks/aeossp_standard-train-case_0010"
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "name": "regional_coverage-test",
159
+ "version": "v2.0.0",
160
+ "description": "AstroAgentBench regional_coverage-test",
161
+ "tasks": [
162
+ {
163
+ "name": "regional_coverage-test-case_0001",
164
+ "path": "tasks/regional_coverage-test-case_0001"
165
+ },
166
+ {
167
+ "name": "regional_coverage-test-case_0002",
168
+ "path": "tasks/regional_coverage-test-case_0002"
169
+ },
170
+ {
171
+ "name": "regional_coverage-test-case_0003",
172
+ "path": "tasks/regional_coverage-test-case_0003"
173
+ },
174
+ {
175
+ "name": "regional_coverage-test-case_0004",
176
+ "path": "tasks/regional_coverage-test-case_0004"
177
+ },
178
+ {
179
+ "name": "regional_coverage-test-case_0005",
180
+ "path": "tasks/regional_coverage-test-case_0005"
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "name": "regional_coverage-train",
186
+ "version": "v2.0.0",
187
+ "description": "AstroAgentBench regional_coverage-train",
188
+ "tasks": [
189
+ {
190
+ "name": "regional_coverage-train-case_0001",
191
+ "path": "tasks/regional_coverage-train-case_0001"
192
+ },
193
+ {
194
+ "name": "regional_coverage-train-case_0002",
195
+ "path": "tasks/regional_coverage-train-case_0002"
196
+ },
197
+ {
198
+ "name": "regional_coverage-train-case_0003",
199
+ "path": "tasks/regional_coverage-train-case_0003"
200
+ },
201
+ {
202
+ "name": "regional_coverage-train-case_0004",
203
+ "path": "tasks/regional_coverage-train-case_0004"
204
+ },
205
+ {
206
+ "name": "regional_coverage-train-case_0005",
207
+ "path": "tasks/regional_coverage-train-case_0005"
208
+ },
209
+ {
210
+ "name": "regional_coverage-train-case_0006",
211
+ "path": "tasks/regional_coverage-train-case_0006"
212
+ },
213
+ {
214
+ "name": "regional_coverage-train-case_0007",
215
+ "path": "tasks/regional_coverage-train-case_0007"
216
+ },
217
+ {
218
+ "name": "regional_coverage-train-case_0008",
219
+ "path": "tasks/regional_coverage-train-case_0008"
220
+ },
221
+ {
222
+ "name": "regional_coverage-train-case_0009",
223
+ "path": "tasks/regional_coverage-train-case_0009"
224
+ },
225
+ {
226
+ "name": "regional_coverage-train-case_0010",
227
+ "path": "tasks/regional_coverage-train-case_0010"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "name": "relay_constellation-test",
233
+ "version": "v2.0.0",
234
+ "description": "AstroAgentBench relay_constellation-test",
235
+ "tasks": [
236
+ {
237
+ "name": "relay_constellation-test-case_0001",
238
+ "path": "tasks/relay_constellation-test-case_0001"
239
+ },
240
+ {
241
+ "name": "relay_constellation-test-case_0002",
242
+ "path": "tasks/relay_constellation-test-case_0002"
243
+ },
244
+ {
245
+ "name": "relay_constellation-test-case_0003",
246
+ "path": "tasks/relay_constellation-test-case_0003"
247
+ },
248
+ {
249
+ "name": "relay_constellation-test-case_0004",
250
+ "path": "tasks/relay_constellation-test-case_0004"
251
+ },
252
+ {
253
+ "name": "relay_constellation-test-case_0005",
254
+ "path": "tasks/relay_constellation-test-case_0005"
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "name": "relay_constellation-train",
260
+ "version": "v2.0.0",
261
+ "description": "AstroAgentBench relay_constellation-train",
262
+ "tasks": [
263
+ {
264
+ "name": "relay_constellation-train-case_0001",
265
+ "path": "tasks/relay_constellation-train-case_0001"
266
+ },
267
+ {
268
+ "name": "relay_constellation-train-case_0002",
269
+ "path": "tasks/relay_constellation-train-case_0002"
270
+ },
271
+ {
272
+ "name": "relay_constellation-train-case_0003",
273
+ "path": "tasks/relay_constellation-train-case_0003"
274
+ },
275
+ {
276
+ "name": "relay_constellation-train-case_0004",
277
+ "path": "tasks/relay_constellation-train-case_0004"
278
+ },
279
+ {
280
+ "name": "relay_constellation-train-case_0005",
281
+ "path": "tasks/relay_constellation-train-case_0005"
282
+ },
283
+ {
284
+ "name": "relay_constellation-train-case_0006",
285
+ "path": "tasks/relay_constellation-train-case_0006"
286
+ },
287
+ {
288
+ "name": "relay_constellation-train-case_0007",
289
+ "path": "tasks/relay_constellation-train-case_0007"
290
+ },
291
+ {
292
+ "name": "relay_constellation-train-case_0008",
293
+ "path": "tasks/relay_constellation-train-case_0008"
294
+ },
295
+ {
296
+ "name": "relay_constellation-train-case_0009",
297
+ "path": "tasks/relay_constellation-train-case_0009"
298
+ },
299
+ {
300
+ "name": "relay_constellation-train-case_0010",
301
+ "path": "tasks/relay_constellation-train-case_0010"
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "name": "revisit_constellation-test",
307
+ "version": "v2.0.0",
308
+ "description": "AstroAgentBench revisit_constellation-test",
309
+ "tasks": [
310
+ {
311
+ "name": "revisit_constellation-test-case_0001",
312
+ "path": "tasks/revisit_constellation-test-case_0001"
313
+ },
314
+ {
315
+ "name": "revisit_constellation-test-case_0002",
316
+ "path": "tasks/revisit_constellation-test-case_0002"
317
+ },
318
+ {
319
+ "name": "revisit_constellation-test-case_0003",
320
+ "path": "tasks/revisit_constellation-test-case_0003"
321
+ },
322
+ {
323
+ "name": "revisit_constellation-test-case_0004",
324
+ "path": "tasks/revisit_constellation-test-case_0004"
325
+ },
326
+ {
327
+ "name": "revisit_constellation-test-case_0005",
328
+ "path": "tasks/revisit_constellation-test-case_0005"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "name": "revisit_constellation-train",
334
+ "version": "v2.0.0",
335
+ "description": "AstroAgentBench revisit_constellation-train",
336
+ "tasks": [
337
+ {
338
+ "name": "revisit_constellation-train-case_0001",
339
+ "path": "tasks/revisit_constellation-train-case_0001"
340
+ },
341
+ {
342
+ "name": "revisit_constellation-train-case_0002",
343
+ "path": "tasks/revisit_constellation-train-case_0002"
344
+ },
345
+ {
346
+ "name": "revisit_constellation-train-case_0003",
347
+ "path": "tasks/revisit_constellation-train-case_0003"
348
+ },
349
+ {
350
+ "name": "revisit_constellation-train-case_0004",
351
+ "path": "tasks/revisit_constellation-train-case_0004"
352
+ },
353
+ {
354
+ "name": "revisit_constellation-train-case_0005",
355
+ "path": "tasks/revisit_constellation-train-case_0005"
356
+ },
357
+ {
358
+ "name": "revisit_constellation-train-case_0006",
359
+ "path": "tasks/revisit_constellation-train-case_0006"
360
+ },
361
+ {
362
+ "name": "revisit_constellation-train-case_0007",
363
+ "path": "tasks/revisit_constellation-train-case_0007"
364
+ },
365
+ {
366
+ "name": "revisit_constellation-train-case_0008",
367
+ "path": "tasks/revisit_constellation-train-case_0008"
368
+ },
369
+ {
370
+ "name": "revisit_constellation-train-case_0009",
371
+ "path": "tasks/revisit_constellation-train-case_0009"
372
+ },
373
+ {
374
+ "name": "revisit_constellation-train-case_0010",
375
+ "path": "tasks/revisit_constellation-train-case_0010"
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "name": "satnet-test",
381
+ "version": "v2.0.0",
382
+ "description": "AstroAgentBench satnet-test",
383
+ "tasks": [
384
+ {
385
+ "name": "satnet-test-W10_2018",
386
+ "path": "tasks/satnet-test-W10_2018"
387
+ },
388
+ {
389
+ "name": "satnet-test-W20_2018",
390
+ "path": "tasks/satnet-test-W20_2018"
391
+ },
392
+ {
393
+ "name": "satnet-test-W30_2018",
394
+ "path": "tasks/satnet-test-W30_2018"
395
+ },
396
+ {
397
+ "name": "satnet-test-W40_2018",
398
+ "path": "tasks/satnet-test-W40_2018"
399
+ },
400
+ {
401
+ "name": "satnet-test-W50_2018",
402
+ "path": "tasks/satnet-test-W50_2018"
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "name": "spot5-multi_orbit",
408
+ "version": "v2.0.0",
409
+ "description": "AstroAgentBench spot5-multi_orbit",
410
+ "tasks": [
411
+ {
412
+ "name": "spot5-multi_orbit-1021",
413
+ "path": "tasks/spot5-multi_orbit-1021"
414
+ },
415
+ {
416
+ "name": "spot5-multi_orbit-1401",
417
+ "path": "tasks/spot5-multi_orbit-1401"
418
+ },
419
+ {
420
+ "name": "spot5-multi_orbit-1403",
421
+ "path": "tasks/spot5-multi_orbit-1403"
422
+ },
423
+ {
424
+ "name": "spot5-multi_orbit-1405",
425
+ "path": "tasks/spot5-multi_orbit-1405"
426
+ },
427
+ {
428
+ "name": "spot5-multi_orbit-1502",
429
+ "path": "tasks/spot5-multi_orbit-1502"
430
+ },
431
+ {
432
+ "name": "spot5-multi_orbit-1504",
433
+ "path": "tasks/spot5-multi_orbit-1504"
434
+ },
435
+ {
436
+ "name": "spot5-multi_orbit-1506",
437
+ "path": "tasks/spot5-multi_orbit-1506"
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "name": "spot5-single_orbit",
443
+ "version": "v2.0.0",
444
+ "description": "AstroAgentBench spot5-single_orbit",
445
+ "tasks": [
446
+ {
447
+ "name": "spot5-single_orbit-5",
448
+ "path": "tasks/spot5-single_orbit-5"
449
+ },
450
+ {
451
+ "name": "spot5-single_orbit-8",
452
+ "path": "tasks/spot5-single_orbit-8"
453
+ },
454
+ {
455
+ "name": "spot5-single_orbit-11",
456
+ "path": "tasks/spot5-single_orbit-11"
457
+ },
458
+ {
459
+ "name": "spot5-single_orbit-28",
460
+ "path": "tasks/spot5-single_orbit-28"
461
+ },
462
+ {
463
+ "name": "spot5-single_orbit-29",
464
+ "path": "tasks/spot5-single_orbit-29"
465
+ },
466
+ {
467
+ "name": "spot5-single_orbit-42",
468
+ "path": "tasks/spot5-single_orbit-42"
469
+ },
470
+ {
471
+ "name": "spot5-single_orbit-54",
472
+ "path": "tasks/spot5-single_orbit-54"
473
+ },
474
+ {
475
+ "name": "spot5-single_orbit-404",
476
+ "path": "tasks/spot5-single_orbit-404"
477
+ },
478
+ {
479
+ "name": "spot5-single_orbit-408",
480
+ "path": "tasks/spot5-single_orbit-408"
481
+ },
482
+ {
483
+ "name": "spot5-single_orbit-412",
484
+ "path": "tasks/spot5-single_orbit-412"
485
+ },
486
+ {
487
+ "name": "spot5-single_orbit-503",
488
+ "path": "tasks/spot5-single_orbit-503"
489
+ },
490
+ {
491
+ "name": "spot5-single_orbit-505",
492
+ "path": "tasks/spot5-single_orbit-505"
493
+ },
494
+ {
495
+ "name": "spot5-single_orbit-507",
496
+ "path": "tasks/spot5-single_orbit-507"
497
+ },
498
+ {
499
+ "name": "spot5-single_orbit-509",
500
+ "path": "tasks/spot5-single_orbit-509"
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "name": "spot5-test",
506
+ "version": "v2.0.0",
507
+ "description": "AstroAgentBench spot5-test",
508
+ "tasks": [
509
+ {
510
+ "name": "spot5-test-8",
511
+ "path": "tasks/spot5-test-8"
512
+ },
513
+ {
514
+ "name": "spot5-test-1403",
515
+ "path": "tasks/spot5-test-1403"
516
+ },
517
+ {
518
+ "name": "spot5-test-1021",
519
+ "path": "tasks/spot5-test-1021"
520
+ },
521
+ {
522
+ "name": "spot5-test-28",
523
+ "path": "tasks/spot5-test-28"
524
+ },
525
+ {
526
+ "name": "spot5-test-1506",
527
+ "path": "tasks/spot5-test-1506"
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "name": "spot5-train",
533
+ "version": "v2.0.0",
534
+ "description": "AstroAgentBench spot5-train",
535
+ "tasks": [
536
+ {
537
+ "name": "spot5-train-507",
538
+ "path": "tasks/spot5-train-507"
539
+ },
540
+ {
541
+ "name": "spot5-train-54",
542
+ "path": "tasks/spot5-train-54"
543
+ },
544
+ {
545
+ "name": "spot5-train-5",
546
+ "path": "tasks/spot5-train-5"
547
+ },
548
+ {
549
+ "name": "spot5-train-1502",
550
+ "path": "tasks/spot5-train-1502"
551
+ },
552
+ {
553
+ "name": "spot5-train-503",
554
+ "path": "tasks/spot5-train-503"
555
+ },
556
+ {
557
+ "name": "spot5-train-29",
558
+ "path": "tasks/spot5-train-29"
559
+ },
560
+ {
561
+ "name": "spot5-train-1403",
562
+ "path": "tasks/spot5-train-1403"
563
+ },
564
+ {
565
+ "name": "spot5-train-8",
566
+ "path": "tasks/spot5-train-8"
567
+ },
568
+ {
569
+ "name": "spot5-train-509",
570
+ "path": "tasks/spot5-train-509"
571
+ },
572
+ {
573
+ "name": "spot5-train-42",
574
+ "path": "tasks/spot5-train-42"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "name": "stereo_imaging-test",
580
+ "version": "v2.0.0",
581
+ "description": "AstroAgentBench stereo_imaging-test",
582
+ "tasks": [
583
+ {
584
+ "name": "stereo_imaging-test-case_0001",
585
+ "path": "tasks/stereo_imaging-test-case_0001"
586
+ },
587
+ {
588
+ "name": "stereo_imaging-test-case_0002",
589
+ "path": "tasks/stereo_imaging-test-case_0002"
590
+ },
591
+ {
592
+ "name": "stereo_imaging-test-case_0003",
593
+ "path": "tasks/stereo_imaging-test-case_0003"
594
+ },
595
+ {
596
+ "name": "stereo_imaging-test-case_0004",
597
+ "path": "tasks/stereo_imaging-test-case_0004"
598
+ },
599
+ {
600
+ "name": "stereo_imaging-test-case_0005",
601
+ "path": "tasks/stereo_imaging-test-case_0005"
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "name": "stereo_imaging-train",
607
+ "version": "v2.0.0",
608
+ "description": "AstroAgentBench stereo_imaging-train",
609
+ "tasks": [
610
+ {
611
+ "name": "stereo_imaging-train-case_0001",
612
+ "path": "tasks/stereo_imaging-train-case_0001"
613
+ },
614
+ {
615
+ "name": "stereo_imaging-train-case_0002",
616
+ "path": "tasks/stereo_imaging-train-case_0002"
617
+ },
618
+ {
619
+ "name": "stereo_imaging-train-case_0003",
620
+ "path": "tasks/stereo_imaging-train-case_0003"
621
+ },
622
+ {
623
+ "name": "stereo_imaging-train-case_0004",
624
+ "path": "tasks/stereo_imaging-train-case_0004"
625
+ },
626
+ {
627
+ "name": "stereo_imaging-train-case_0005",
628
+ "path": "tasks/stereo_imaging-train-case_0005"
629
+ },
630
+ {
631
+ "name": "stereo_imaging-train-case_0006",
632
+ "path": "tasks/stereo_imaging-train-case_0006"
633
+ },
634
+ {
635
+ "name": "stereo_imaging-train-case_0007",
636
+ "path": "tasks/stereo_imaging-train-case_0007"
637
+ },
638
+ {
639
+ "name": "stereo_imaging-train-case_0008",
640
+ "path": "tasks/stereo_imaging-train-case_0008"
641
+ },
642
+ {
643
+ "name": "stereo_imaging-train-case_0009",
644
+ "path": "tasks/stereo_imaging-train-case_0009"
645
+ },
646
+ {
647
+ "name": "stereo_imaging-train-case_0010",
648
+ "path": "tasks/stereo_imaging-train-case_0010"
649
+ }
650
+ ]
651
+ },
652
+ {
653
+ "name": "smoke",
654
+ "version": "v2.0.0",
655
+ "description": "One oracle integration check per benchmark family",
656
+ "tasks": [
657
+ {
658
+ "name": "revisit_constellation-test-case_0001",
659
+ "path": "tasks/revisit_constellation-test-case_0001"
660
+ },
661
+ {
662
+ "name": "satnet-test-W10_2018",
663
+ "path": "tasks/satnet-test-W10_2018"
664
+ },
665
+ {
666
+ "name": "spot5-single_orbit-8",
667
+ "path": "tasks/spot5-single_orbit-8"
668
+ },
669
+ {
670
+ "name": "stereo_imaging-test-case_0001",
671
+ "path": "tasks/stereo_imaging-test-case_0001"
672
+ },
673
+ {
674
+ "name": "regional_coverage-test-case_0001",
675
+ "path": "tasks/regional_coverage-test-case_0001"
676
+ },
677
+ {
678
+ "name": "relay_constellation-test-case_0005",
679
+ "path": "tasks/relay_constellation-test-case_0005"
680
+ },
681
+ {
682
+ "name": "aeossp_standard-test-case_0001",
683
+ "path": "tasks/aeossp_standard-test-case_0001"
684
+ }
685
+ ]
686
+ }
687
+ ]
relay_constellation/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:44c3e976679795767e74b5366f4816ba63a1d16de42658d9d0d6aedfe1bf5379
3
- size 43668
 
 
 
 
relay_constellation/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f35a5c6146ce46033f3b71f7ab7b6fba4f8293528232919905121792277931a3
3
- size 68940
 
 
 
 
release-manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
revisit_constellation/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eae3f9113983c7dfe4558441544254586474e542942ec21760de50659b110cd0
3
- size 54073
 
 
 
 
revisit_constellation/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5a0a0d11db3e3d1152511d0b5269ff56a3bd56360d6a9cfcb4c11206f230060
3
- size 101028
 
 
 
 
satnet/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:82aefd2db6b819d265cd3b00757f5b9c02df8aa336cfc87ab2004614201418c8
3
- size 3254244
 
 
 
 
spot5/multi_orbit-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e99d911840f76e8d8d5ee181f41c665a241fb240379711ae6a5f8b6842813156
3
- size 1771397
 
 
 
 
spot5/single_orbit-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:694bd2652134b7a4f6b467378dfeb0e9825c1beaedfdb7507ce8dec6cbad538b
3
- size 938344
 
 
 
 
spot5/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:57842aba5936ff5f0d8d1455e39df992ab5bb609376a76ec0f3799bf21be6b69
3
- size 1152592
 
 
 
 
spot5/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:580ea4e3e7d03b0f5dfd0f73777ba1ad405b54748b27396af09c082c8a52c893
3
- size 746518
 
 
 
 
stereo_imaging/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:21520abaabf9cdcc33668978f4ad019d92b7465b968ae293755c8237b79e6d51
3
- size 146102
 
 
 
 
stereo_imaging/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:26a99fa14ec8ef4f47642264e2061032bf2b6ec3cb71afb15e52f72ad634a9ec
3
- size 293259
 
 
 
 
tasks/aeossp_standard-test-case_0001/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM ghcr.io/mtrya/astroagentbench-python@sha256:fe9733cad55519aa08dd0db9abb51444051ef5f53d6ac1ef0b4b6592491437d1
2
+ WORKDIR /workspace
3
+ COPY case /workspace/case
4
+ RUN mkdir -p /workspace/solution
tasks/aeossp_standard-test-case_0001/environment/case/mission.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mission:
2
+ case_id: case_0001
3
+ horizon_start: '2026-04-14T04:00:00Z'
4
+ horizon_end: '2026-04-14T16:00:00Z'
5
+ action_time_step_s: 5
6
+ geometry_sample_step_s: 5
7
+ resource_sample_step_s: 10
8
+ propagation:
9
+ model: sgp4
10
+ frame_inertial: gcrf
11
+ frame_fixed: itrf
12
+ earth_shape: wgs84
13
+ scoring:
14
+ ranking_order:
15
+ - valid
16
+ - WCR
17
+ - CR
18
+ - TAT
19
+ - PC
20
+ reported_metrics:
21
+ - CR
22
+ - WCR
23
+ - TAT
24
+ - PC
tasks/aeossp_standard-test-case_0001/environment/case/satellites.yaml ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ satellites:
2
+ - satellite_id: sat_001
3
+ norad_catalog_id: 28051
4
+ tle_line1: 1 28051U 03046A 26103.92936350 .00000126 00000+0 55914-4 0 9994
5
+ tle_line2: 2 28051 98.1985 143.5711 0064246 173.9227 286.4737 14.36137850171300
6
+ sensor:
7
+ sensor_type: visible
8
+ attitude_model:
9
+ max_slew_velocity_deg_per_s: 1.8
10
+ max_slew_acceleration_deg_per_s2: 0.4
11
+ settling_time_s: 2.0
12
+ max_off_nadir_deg: 30.0
13
+ resource_model:
14
+ battery_capacity_wh: 1300.0
15
+ initial_battery_wh: 800.0
16
+ idle_power_w: 20.0
17
+ imaging_power_w: 420.0
18
+ slew_power_w: 360.0
19
+ sunlit_charge_power_w: 85.0
20
+ - satellite_id: sat_002
21
+ norad_catalog_id: 32783
22
+ tle_line1: 1 32783U 08021A 26103.91837750 .00000562 00000+0 82530-4 0 9990
23
+ tle_line2: 2 32783 97.7709 154.8031 0010967 327.3165 32.7367 14.79161859969302
24
+ sensor:
25
+ sensor_type: visible
26
+ attitude_model:
27
+ max_slew_velocity_deg_per_s: 1.0
28
+ max_slew_acceleration_deg_per_s2: 0.25
29
+ settling_time_s: 3.0
30
+ max_off_nadir_deg: 25.0
31
+ resource_model:
32
+ battery_capacity_wh: 1600.0
33
+ initial_battery_wh: 1000.0
34
+ idle_power_w: 25.0
35
+ imaging_power_w: 480.0
36
+ slew_power_w: 280.0
37
+ sunlit_charge_power_w: 100.0
38
+ - satellite_id: sat_003
39
+ norad_catalog_id: 33396
40
+ tle_line1: 1 33396U 08049A 26103.92431574 .00000228 00000+0 12693-3 0 9997
41
+ tle_line2: 2 33396 98.5635 163.2775 0001215 96.0005 264.1311 14.20124562908846
42
+ sensor:
43
+ sensor_type: visible
44
+ attitude_model:
45
+ max_slew_velocity_deg_per_s: 1.8
46
+ max_slew_acceleration_deg_per_s2: 0.4
47
+ settling_time_s: 2.0
48
+ max_off_nadir_deg: 30.0
49
+ resource_model:
50
+ battery_capacity_wh: 1300.0
51
+ initial_battery_wh: 800.0
52
+ idle_power_w: 20.0
53
+ imaging_power_w: 420.0
54
+ slew_power_w: 360.0
55
+ sunlit_charge_power_w: 85.0
56
+ - satellite_id: sat_004
57
+ norad_catalog_id: 35681
58
+ tle_line1: 1 35681U 09041A 26103.88486025 .00000736 00000+0 11600-3 0 9996
59
+ tle_line2: 2 35681 97.7323 263.9278 0002534 65.1442 295.0031 14.75171584897400
60
+ sensor:
61
+ sensor_type: visible
62
+ attitude_model:
63
+ max_slew_velocity_deg_per_s: 1.0
64
+ max_slew_acceleration_deg_per_s2: 0.25
65
+ settling_time_s: 3.0
66
+ max_off_nadir_deg: 25.0
67
+ resource_model:
68
+ battery_capacity_wh: 1600.0
69
+ initial_battery_wh: 1000.0
70
+ idle_power_w: 25.0
71
+ imaging_power_w: 480.0
72
+ slew_power_w: 280.0
73
+ sunlit_charge_power_w: 100.0
74
+ - satellite_id: sat_005
75
+ norad_catalog_id: 37387
76
+ tle_line1: 1 37387U 11015A 26103.89999973 -.00000252 00000+0 -94795-4 0 9999
77
+ tle_line2: 2 37387 98.7689 171.7738 0012401 84.9704 275.2889 14.21615505777047
78
+ sensor:
79
+ sensor_type: visible
80
+ attitude_model:
81
+ max_slew_velocity_deg_per_s: 1.0
82
+ max_slew_acceleration_deg_per_s2: 0.25
83
+ settling_time_s: 3.0
84
+ max_off_nadir_deg: 25.0
85
+ resource_model:
86
+ battery_capacity_wh: 1600.0
87
+ initial_battery_wh: 1000.0
88
+ idle_power_w: 25.0
89
+ imaging_power_w: 480.0
90
+ slew_power_w: 280.0
91
+ sunlit_charge_power_w: 100.0
92
+ - satellite_id: sat_006
93
+ norad_catalog_id: 38012
94
+ tle_line1: 1 38012U 11076F 26103.92452051 .00000031 00000+0 16420-4 0 9999
95
+ tle_line2: 2 38012 98.1996 179.8836 0001241 74.0617 41.3226 14.58569444762624
96
+ sensor:
97
+ sensor_type: visible
98
+ attitude_model:
99
+ max_slew_velocity_deg_per_s: 1.0
100
+ max_slew_acceleration_deg_per_s2: 0.25
101
+ settling_time_s: 3.0
102
+ max_off_nadir_deg: 25.0
103
+ resource_model:
104
+ battery_capacity_wh: 1600.0
105
+ initial_battery_wh: 1000.0
106
+ idle_power_w: 25.0
107
+ imaging_power_w: 480.0
108
+ slew_power_w: 280.0
109
+ sunlit_charge_power_w: 100.0
110
+ - satellite_id: sat_007
111
+ norad_catalog_id: 39019
112
+ tle_line1: 1 39019U 12068A 26103.93709536 .00000156 00000+0 43477-4 0 9993
113
+ tle_line2: 2 39019 98.1967 179.8664 0001151 77.9509 282.1820 14.58557094711482
114
+ sensor:
115
+ sensor_type: infrared
116
+ attitude_model:
117
+ max_slew_velocity_deg_per_s: 0.9
118
+ max_slew_acceleration_deg_per_s2: 0.15
119
+ settling_time_s: 3.5
120
+ max_off_nadir_deg: 20.0
121
+ resource_model:
122
+ battery_capacity_wh: 1800.0
123
+ initial_battery_wh: 1000.0
124
+ idle_power_w: 30.0
125
+ imaging_power_w: 680.0
126
+ slew_power_w: 320.0
127
+ sunlit_charge_power_w: 115.0
128
+ - satellite_id: sat_008
129
+ norad_catalog_id: 39084
130
+ tle_line1: 1 39084U 13008A 26103.95632536 .00000202 00000+0 54735-4 0 9998
131
+ tle_line2: 2 39084 98.1863 175.0919 0001171 93.9204 266.2128 14.57117273688546
132
+ sensor:
133
+ sensor_type: visible
134
+ attitude_model:
135
+ max_slew_velocity_deg_per_s: 1.0
136
+ max_slew_acceleration_deg_per_s2: 0.25
137
+ settling_time_s: 3.0
138
+ max_off_nadir_deg: 25.0
139
+ resource_model:
140
+ battery_capacity_wh: 1600.0
141
+ initial_battery_wh: 1000.0
142
+ idle_power_w: 25.0
143
+ imaging_power_w: 480.0
144
+ slew_power_w: 280.0
145
+ sunlit_charge_power_w: 100.0
146
+ - satellite_id: sat_009
147
+ norad_catalog_id: 40013
148
+ tle_line1: 1 40013U 14033D 26103.93736737 .00001307 00000+0 12918-3 0 9990
149
+ tle_line2: 2 40013 97.5922 340.6596 0001765 111.5119 248.6289 14.93547723628139
150
+ sensor:
151
+ sensor_type: visible
152
+ attitude_model:
153
+ max_slew_velocity_deg_per_s: 1.8
154
+ max_slew_acceleration_deg_per_s2: 0.4
155
+ settling_time_s: 2.0
156
+ max_off_nadir_deg: 30.0
157
+ resource_model:
158
+ battery_capacity_wh: 1300.0
159
+ initial_battery_wh: 800.0
160
+ idle_power_w: 20.0
161
+ imaging_power_w: 420.0
162
+ slew_power_w: 360.0
163
+ sunlit_charge_power_w: 85.0
164
+ - satellite_id: sat_010
165
+ norad_catalog_id: 42063
166
+ tle_line1: 1 42063U 17013A 26103.94175150 -.00000047 00000+0 -13025-5 0 9999
167
+ tle_line2: 2 42063 98.5661 179.6296 0001235 93.6242 266.5083 14.30820285475457
168
+ sensor:
169
+ sensor_type: visible
170
+ attitude_model:
171
+ max_slew_velocity_deg_per_s: 1.0
172
+ max_slew_acceleration_deg_per_s2: 0.25
173
+ settling_time_s: 3.0
174
+ max_off_nadir_deg: 25.0
175
+ resource_model:
176
+ battery_capacity_wh: 1600.0
177
+ initial_battery_wh: 1000.0
178
+ idle_power_w: 25.0
179
+ imaging_power_w: 480.0
180
+ slew_power_w: 280.0
181
+ sunlit_charge_power_w: 100.0
182
+ - satellite_id: sat_011
183
+ norad_catalog_id: 42988
184
+ tle_line1: 1 42988U 17068B 26103.65081329 .00006062 00000+0 18960-3 0 9999
185
+ tle_line2: 2 42988 97.4398 239.9634 0001252 115.0478 245.0894 15.33517382472468
186
+ sensor:
187
+ sensor_type: infrared
188
+ attitude_model:
189
+ max_slew_velocity_deg_per_s: 0.9
190
+ max_slew_acceleration_deg_per_s2: 0.15
191
+ settling_time_s: 3.5
192
+ max_off_nadir_deg: 20.0
193
+ resource_model:
194
+ battery_capacity_wh: 1800.0
195
+ initial_battery_wh: 1000.0
196
+ idle_power_w: 30.0
197
+ imaging_power_w: 680.0
198
+ slew_power_w: 320.0
199
+ sunlit_charge_power_w: 115.0
200
+ - satellite_id: sat_012
201
+ norad_catalog_id: 42991
202
+ tle_line1: 1 42991U 17068E 26103.83844932 .00006341 00000+0 18525-3 0 9997
203
+ tle_line2: 2 42991 97.4427 240.6998 0005447 348.9947 11.1177 15.35651042472498
204
+ sensor:
205
+ sensor_type: visible
206
+ attitude_model:
207
+ max_slew_velocity_deg_per_s: 1.0
208
+ max_slew_acceleration_deg_per_s2: 0.25
209
+ settling_time_s: 3.0
210
+ max_off_nadir_deg: 25.0
211
+ resource_model:
212
+ battery_capacity_wh: 1600.0
213
+ initial_battery_wh: 1000.0
214
+ idle_power_w: 25.0
215
+ imaging_power_w: 480.0
216
+ slew_power_w: 280.0
217
+ sunlit_charge_power_w: 100.0
218
+ - satellite_id: sat_013
219
+ norad_catalog_id: 43111
220
+ tle_line1: 1 43111U 18004A 26104.12260037 .00002784 00000+0 13508-3 0 9997
221
+ tle_line2: 2 43111 97.4095 164.6288 0002452 119.7879 240.3599 15.19306551457606
222
+ sensor:
223
+ sensor_type: visible
224
+ attitude_model:
225
+ max_slew_velocity_deg_per_s: 1.8
226
+ max_slew_acceleration_deg_per_s2: 0.4
227
+ settling_time_s: 2.0
228
+ max_off_nadir_deg: 30.0
229
+ resource_model:
230
+ battery_capacity_wh: 1300.0
231
+ initial_battery_wh: 800.0
232
+ idle_power_w: 20.0
233
+ imaging_power_w: 420.0
234
+ slew_power_w: 360.0
235
+ sunlit_charge_power_w: 85.0
236
+ - satellite_id: sat_014
237
+ norad_catalog_id: 43259
238
+ tle_line1: 1 43259U 18031A 26104.11950488 .00000002 00000+0 76800-5 0 9992
239
+ tle_line2: 2 43259 98.0579 166.8090 0002685 187.3457 172.7713 14.76430187433244
240
+ sensor:
241
+ sensor_type: visible
242
+ attitude_model:
243
+ max_slew_velocity_deg_per_s: 1.0
244
+ max_slew_acceleration_deg_per_s2: 0.25
245
+ settling_time_s: 3.0
246
+ max_off_nadir_deg: 25.0
247
+ resource_model:
248
+ battery_capacity_wh: 1600.0
249
+ initial_battery_wh: 1000.0
250
+ idle_power_w: 25.0
251
+ imaging_power_w: 480.0
252
+ slew_power_w: 280.0
253
+ sunlit_charge_power_w: 100.0
254
+ - satellite_id: sat_015
255
+ norad_catalog_id: 43260
256
+ tle_line1: 1 43260U 18031B 26104.16530807 .00000436 00000+0 70146-4 0 9995
257
+ tle_line2: 2 43260 98.0571 166.7195 0001054 283.4938 76.6154 14.76417197433241
258
+ sensor:
259
+ sensor_type: infrared
260
+ attitude_model:
261
+ max_slew_velocity_deg_per_s: 0.9
262
+ max_slew_acceleration_deg_per_s2: 0.15
263
+ settling_time_s: 3.5
264
+ max_off_nadir_deg: 20.0
265
+ resource_model:
266
+ battery_capacity_wh: 1800.0
267
+ initial_battery_wh: 1000.0
268
+ idle_power_w: 30.0
269
+ imaging_power_w: 680.0
270
+ slew_power_w: 320.0
271
+ sunlit_charge_power_w: 115.0
272
+ - satellite_id: sat_016
273
+ norad_catalog_id: 43262
274
+ tle_line1: 1 43262U 18031D 26103.93793093 .00000573 00000+0 89849-4 0 9991
275
+ tle_line2: 2 43262 98.0583 166.6754 0000885 62.3940 297.7360 14.76451671433200
276
+ sensor:
277
+ sensor_type: visible
278
+ attitude_model:
279
+ max_slew_velocity_deg_per_s: 1.0
280
+ max_slew_acceleration_deg_per_s2: 0.25
281
+ settling_time_s: 3.0
282
+ max_off_nadir_deg: 25.0
283
+ resource_model:
284
+ battery_capacity_wh: 1600.0
285
+ initial_battery_wh: 1000.0
286
+ idle_power_w: 25.0
287
+ imaging_power_w: 480.0
288
+ slew_power_w: 280.0
289
+ sunlit_charge_power_w: 100.0
290
+ - satellite_id: sat_017
291
+ norad_catalog_id: 48079
292
+ tle_line1: 1 48079U 21026A 26103.94185373 .00000257 00000+0 40677-4 0 9992
293
+ tle_line2: 2 48079 97.9928 102.3896 0006302 84.5923 275.6008 14.80244388272253
294
+ sensor:
295
+ sensor_type: infrared
296
+ attitude_model:
297
+ max_slew_velocity_deg_per_s: 0.9
298
+ max_slew_acceleration_deg_per_s2: 0.15
299
+ settling_time_s: 3.5
300
+ max_off_nadir_deg: 20.0
301
+ resource_model:
302
+ battery_capacity_wh: 1800.0
303
+ initial_battery_wh: 1000.0
304
+ idle_power_w: 30.0
305
+ imaging_power_w: 680.0
306
+ slew_power_w: 320.0
307
+ sunlit_charge_power_w: 115.0
308
+ - satellite_id: sat_018
309
+ norad_catalog_id: 48268
310
+ tle_line1: 1 48268U 21034A 26103.96224166 -.00000034 00000+0 22549-5 0 9990
311
+ tle_line2: 2 48268 97.8933 179.6508 0001284 93.5777 266.5583 14.81672073268143
312
+ sensor:
313
+ sensor_type: visible
314
+ attitude_model:
315
+ max_slew_velocity_deg_per_s: 1.8
316
+ max_slew_acceleration_deg_per_s2: 0.4
317
+ settling_time_s: 2.0
318
+ max_off_nadir_deg: 30.0
319
+ resource_model:
320
+ battery_capacity_wh: 1300.0
321
+ initial_battery_wh: 800.0
322
+ idle_power_w: 20.0
323
+ imaging_power_w: 420.0
324
+ slew_power_w: 360.0
325
+ sunlit_charge_power_w: 85.0
326
+ - satellite_id: sat_019
327
+ norad_catalog_id: 52912
328
+ tle_line1: 1 52912U 22069A 26103.95907240 .00000113 00000+0 21656-4 0 9994
329
+ tle_line2: 2 52912 97.8359 353.4264 0001854 52.2815 307.8565 14.79930234205115
330
+ sensor:
331
+ sensor_type: visible
332
+ attitude_model:
333
+ max_slew_velocity_deg_per_s: 1.8
334
+ max_slew_acceleration_deg_per_s2: 0.4
335
+ settling_time_s: 2.0
336
+ max_off_nadir_deg: 30.0
337
+ resource_model:
338
+ battery_capacity_wh: 1300.0
339
+ initial_battery_wh: 800.0
340
+ idle_power_w: 20.0
341
+ imaging_power_w: 420.0
342
+ slew_power_w: 360.0
343
+ sunlit_charge_power_w: 85.0
344
+ - satellite_id: sat_020
345
+ norad_catalog_id: 60989
346
+ tle_line1: 1 60989U 24157A 26103.90679551 .00000060 00000+0 39456-4 0 9991
347
+ tle_line2: 2 60989 98.5642 179.6103 0001350 108.6675 251.4655 14.30813258 83797
348
+ sensor:
349
+ sensor_type: visible
350
+ attitude_model:
351
+ max_slew_velocity_deg_per_s: 1.0
352
+ max_slew_acceleration_deg_per_s2: 0.25
353
+ settling_time_s: 3.0
354
+ max_off_nadir_deg: 25.0
355
+ resource_model:
356
+ battery_capacity_wh: 1600.0
357
+ initial_battery_wh: 1000.0
358
+ idle_power_w: 25.0
359
+ imaging_power_w: 480.0
360
+ slew_power_w: 280.0
361
+ sunlit_charge_power_w: 100.0
tasks/aeossp_standard-test-case_0001/environment/case/tasks.yaml ADDED
The diff for this file is too large to render. See raw diff
 
tasks/aeossp_standard-test-case_0001/instruction.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Agile Earth Observation Scheduling Problem
2
+
3
+ This workspace contains one agile Earth-observation scheduling problem over a fixed mission horizon.
4
+
5
+ You are given:
6
+
7
+ - a mission description in `case/mission.yaml`
8
+ - a fixed constellation with frozen orbital elements and subsystem limits in `case/satellites.yaml`
9
+ - a set of time-windowed imaging tasks in `case/tasks.yaml`
10
+
11
+ Your job is to produce `/workspace/solution/solution.json`, an event schedule of `observation` actions that completes as many high-value tasks as possible without violating hard timing, geometry, slew, or battery constraints.
12
+
13
+ This problem is modeled as point-imaging scheduling on a fixed fleet. You are choosing when each satellite should spend a continuous interval observing a target, not redesigning the satellites, not changing their orbits, and not submitting low-level attitude trajectories. An action in the solution means "this satellite continuously observes this target over this interval," and the geometry, maneuver windows, and battery evolution are derived from that commitment during validation.
14
+
15
+ ## What Good Solutions Do
16
+
17
+ A strong solution should:
18
+
19
+ - satisfy all hard validity rules
20
+ - complete as many high-weight tasks as possible
21
+ - also improve overall completion rate when possible
22
+ - avoid unnecessary lateness and wasteful power use when tie-breaking matters
23
+
24
+ In practical terms, valid task completion matters first, especially on higher-weight tasks.
25
+
26
+ ## Files In This Workspace
27
+
28
+ - `case/mission.yaml`: mission horizon, public time grids, and reported metric metadata
29
+ - `case/satellites.yaml`: fixed satellites, TLEs, sensor limits, slew limits, and battery/power parameters
30
+ - `case/tasks.yaml`: imaging requests with time windows, durations, sensor requirements, and weights
31
+
32
+ ## Expected Output
33
+
34
+ Write one JSON object named `/workspace/solution/solution.json` in the solution directory.
35
+
36
+ The required top-level field is:
37
+
38
+ - `actions`
39
+
40
+ Each action should represent one observation interval with:
41
+
42
+ - `type`
43
+ - `satellite_id`
44
+ - `task_id`
45
+ - `start_time`
46
+ - `end_time`
47
+
48
+ Do not submit visibility claims, maneuver windows, power traces, or completion claims. Those are derived during validation.
49
+
50
+ ## Modeling Contract
51
+
52
+ Use SI units, degrees, and timezone-aware ISO 8601 timestamps. A trailing `Z` is the safest UTC form. `case/mission.yaml` is a top-level `mission` mapping. Let `H0 = mission.horizon_start`, `H1 = mission.horizon_end`, and `dt = mission.action_time_step_s`. Every action `start_time` and `end_time` must satisfy:
53
+
54
+ ```text
55
+ H0 <= start_time < end_time <= H1
56
+ (start_time - H0) / dt is an integer
57
+ (end_time - H0) / dt is an integer
58
+ ```
59
+
60
+ Each task in `case/tasks.yaml` has `release_time`, `due_time`, and `required_duration_s` on the same grid. A valid observation action must use `type: "observation"`, reference a known `satellite_id` and `task_id`, satisfy `release_time <= start_time` and `end_time <= due_time`, and have:
61
+
62
+ ```text
63
+ end_time - start_time = required_duration_s
64
+ ```
65
+
66
+ Longer or shorter observations do not partially complete the task. The satellite's `sensor.sensor_type` must exactly equal the task's `required_sensor_type`.
67
+
68
+ The constellation is fixed by `case/satellites.yaml`. Satellite states are propagated only from each satellite's `tle_line1` and `tle_line2`; do not add satellites, change TLEs, or submit attitude trajectories. Inertial quantities use the case's GCRF convention, Earth-fixed geometry uses ITRF/ECEF, target coordinates use WGS84 geodetic `longitude_deg`, `latitude_deg`, and `altitude_m`, and Earth orientation is deterministic for a given case.
69
+
70
+ Observation visibility is checked at `start_time`, `end_time`, and every `geometry_sample_step_s` grid instant strictly inside the action. At every checked instant, the target line of sight must be above the target local horizon and the off-nadir angle from satellite nadir to target line of sight must be no greater than `attitude_model.max_off_nadir_deg`, allowing only tiny numerical tolerance at the boundary.
71
+
72
+ For a satellite, observation intervals are half-open for overlap purposes: `[start_time, end_time)`. Same-satellite actions must not overlap. For consecutive same-satellite observations, the required retargeting gap is computed from the angle `theta` between the previous target vector at the previous `end_time` and the next target vector at the next `start_time`, both in the inertial frame. With `omega = max_slew_velocity_deg_per_s` and `alpha = max_slew_acceleration_deg_per_s2`:
73
+
74
+ ```text
75
+ if theta <= omega^2 / alpha:
76
+ slew_time_s = 2 * sqrt(theta / alpha)
77
+ else:
78
+ slew_time_s = 2 * (omega / alpha) + (theta - omega^2 / alpha) / omega
79
+
80
+ required_gap_s = slew_time_s + settling_time_s
81
+ ```
82
+
83
+ The required gap is reserved immediately before the later observation. The solution is invalid if the available idle gap is shorter than `required_gap_s`.
84
+
85
+ Battery feasibility is simulated for each satellite over the full mission horizon using `resource_sample_step_s` grid points plus all action and retargeting-window boundaries. Each segment uses its midpoint to decide whether an observation, retargeting window, and sunlight are active. Battery starts at `resource_model.initial_battery_wh`, is capped after each segment at `battery_capacity_wh`, and invalidates the solution if it drops below zero. Segment load is:
86
+
87
+ ```text
88
+ load_power_w = idle_power_w
89
+ + imaging_power_w if the segment midpoint is inside an observation
90
+ + slew_power_w if the segment midpoint is inside a retargeting window
91
+
92
+ battery_next_wh = battery_wh + (charge_power_w - load_power_w) * duration_s / 3600
93
+ ```
94
+
95
+ `charge_power_w` is `sunlit_charge_power_w` in sunlight and `0` in eclipse. `PC` is gross consumed watt-hours summed over satellites that pass the battery check.
96
+
97
+ Task completion is binary. For each `task_id`, the earliest valid completing observation by `end_time` counts once; duplicates do not add credit. For valid solutions:
98
+
99
+ ```text
100
+ CR = completed_task_count / total_task_count
101
+ WCR = sum(weight for completed tasks) / sum(weight for all tasks)
102
+ TAT = mean(completion_time - release_time) over completed tasks, in seconds, or null if none complete
103
+ PC = gross consumed watt-hours
104
+ ```
105
+
106
+ Validity is the hard gate before these metrics matter. Residual ambiguity remains only for borderline propagation, geometry, and battery cases at numerical tolerances.
tasks/aeossp_standard-test-case_0001/solution/solution.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/aeossp_standard-test-case_0001/solution/solve.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ cp /solution/solution.json /workspace/solution/solution.json
tasks/aeossp_standard-test-case_0001/task.toml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ artifacts = [{source = "/workspace/solution", destination = "solution"}]
3
+ [task]
4
+ name = "astroagentbench/aeossp_standard-test-case_0001"
5
+ [metadata]
6
+ benchmark = "aeossp_standard"
7
+ split = "test"
8
+ case_id = "case_0001"
9
+ source_commit = "6f5b9d21b1efb2ca2ee6fcabdc338a9d077612cb"
10
+ source_dirty = false
11
+ case_sha256 = "81213315b8f4e84e07479e8048313c9102928c829bce1054cfad4ca58c84dcc4"
12
+ verifier_sha256 = "a5372c13197394134bf55297a1d04ec8d0610f4fd22e2ec7b247e21c6fa0db9a"
13
+ runtime_image = "ghcr.io/mtrya/astroagentbench-python@sha256:fe9733cad55519aa08dd0db9abb51444051ef5f53d6ac1ef0b4b6592491437d1"
14
+ solution_filename = "solution.json"
15
+ [environment]
16
+ cpus = 8
17
+ memory_mb = 16384
18
+ storage_mb = 10240
19
+ network_mode = "public"
20
+ [agent]
21
+ timeout_sec = 7200
22
+ [verifier]
23
+ environment_mode = "separate"
24
+ timeout_sec = 600
tasks/aeossp_standard-test-case_0001/tests/Dockerfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ FROM ghcr.io/mtrya/astroagentbench-python@sha256:fe9733cad55519aa08dd0db9abb51444051ef5f53d6ac1ef0b4b6592491437d1
2
+ COPY . /tests
3
+ WORKDIR /tests
tasks/aeossp_standard-test-case_0001/tests/benchmarks/__init__.py ADDED
File without changes
tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/__init__.py ADDED
File without changes
tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/__init__.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Public verifier helpers for aeossp_standard."""
2
+
3
+ from .engine import analyze, analyze_solution, verify, verify_solution
4
+ from .models import (
5
+ ActionFailure,
6
+ BatteryTraceSegment,
7
+ ManeuverWindow,
8
+ SolutionAnalysis,
9
+ TaskOutcome,
10
+ TimelineEvent,
11
+ ValidatedAction,
12
+ VerificationResult,
13
+ )
14
+
15
+ __all__ = [
16
+ "ActionFailure",
17
+ "BatteryTraceSegment",
18
+ "ManeuverWindow",
19
+ "SolutionAnalysis",
20
+ "TaskOutcome",
21
+ "TimelineEvent",
22
+ "ValidatedAction",
23
+ "VerificationResult",
24
+ "analyze",
25
+ "analyze_solution",
26
+ "verify",
27
+ "verify_solution",
28
+ ]
tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/engine.py ADDED
@@ -0,0 +1,907 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Core verification logic for the aeossp_standard benchmark."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from collections import defaultdict
6
+ from datetime import UTC, datetime, timedelta
7
+ import math
8
+ from pathlib import Path
9
+ from typing import Any
10
+
11
+ import brahe
12
+ import numpy as np
13
+
14
+ from .io import load_case, load_solution
15
+ from .models import (
16
+ AeosspCase,
17
+ AeosspSolution,
18
+ ActionFailure,
19
+ BatteryTraceSegment,
20
+ ManeuverWindow,
21
+ Mission,
22
+ NUMERICAL_EPS,
23
+ ObservationAction,
24
+ SolutionAnalysis,
25
+ TaskDef,
26
+ TaskOutcome,
27
+ TimelineEvent,
28
+ ValidatedAction,
29
+ VerificationResult,
30
+ )
31
+
32
+
33
+ _BRAHE_EOP_INITIALIZED = False
34
+
35
+
36
+ class _PropagationContext:
37
+ def __init__(self, case: AeosspCase):
38
+ self.case = case
39
+ step_s = float(min(case.mission.action_time_step_s, case.mission.geometry_sample_step_s))
40
+ self.propagators = {
41
+ sat_id: brahe.SGPPropagator.from_tle(sat.tle_line1, sat.tle_line2, step_s)
42
+ for sat_id, sat in case.satellites.items()
43
+ }
44
+ self._eci_cache: dict[tuple[str, datetime], np.ndarray] = {}
45
+ self._ecef_cache: dict[tuple[str, datetime], np.ndarray] = {}
46
+
47
+ def state_eci(self, satellite_id: str, instant: datetime) -> np.ndarray:
48
+ key = (satellite_id, instant.astimezone(UTC))
49
+ state = self._eci_cache.get(key)
50
+ if state is None:
51
+ epoch = _datetime_to_epoch(key[1])
52
+ state = np.asarray(self.propagators[satellite_id].state_eci(epoch), dtype=float).reshape(6)
53
+ self._eci_cache[key] = state
54
+ return state
55
+
56
+ def state_ecef(self, satellite_id: str, instant: datetime) -> np.ndarray:
57
+ key = (satellite_id, instant.astimezone(UTC))
58
+ state = self._ecef_cache.get(key)
59
+ if state is None:
60
+ epoch = _datetime_to_epoch(key[1])
61
+ state = np.asarray(self.propagators[satellite_id].state_ecef(epoch), dtype=float).reshape(6)
62
+ self._ecef_cache[key] = state
63
+ return state
64
+
65
+
66
+ def _ensure_brahe_ready() -> None:
67
+ global _BRAHE_EOP_INITIALIZED
68
+ if _BRAHE_EOP_INITIALIZED:
69
+ return
70
+ brahe.set_global_eop_provider_from_static_provider(
71
+ brahe.StaticEOPProvider.from_zero()
72
+ )
73
+ _BRAHE_EOP_INITIALIZED = True
74
+
75
+
76
+ def _datetime_to_epoch(value: datetime) -> brahe.Epoch:
77
+ value = value.astimezone(UTC)
78
+ second = float(value.second) + (value.microsecond / 1_000_000.0)
79
+ return brahe.Epoch.from_datetime(
80
+ value.year,
81
+ value.month,
82
+ value.day,
83
+ value.hour,
84
+ value.minute,
85
+ second,
86
+ 0.0,
87
+ brahe.TimeSystem.UTC,
88
+ )
89
+
90
+
91
+ def _iso_z(value: datetime) -> str:
92
+ return value.astimezone(UTC).isoformat().replace("+00:00", "Z")
93
+
94
+
95
+ def _default_metrics() -> dict[str, Any]:
96
+ return {"CR": 0.0, "WCR": 0.0, "TAT": None, "PC": 0.0}
97
+
98
+
99
+ def _invalid_result(
100
+ violations: list[str], diagnostics: dict[str, Any] | None = None
101
+ ) -> VerificationResult:
102
+ return VerificationResult(
103
+ valid=False,
104
+ metrics=_default_metrics(),
105
+ violations=violations,
106
+ diagnostics=diagnostics or {},
107
+ )
108
+
109
+
110
+ def _is_aligned(seconds: float, step_s: int) -> bool:
111
+ return abs((seconds / step_s) - round(seconds / step_s)) <= 1.0e-9
112
+
113
+
114
+ def _action_sample_times(
115
+ mission: Mission,
116
+ start_time: datetime,
117
+ end_time: datetime,
118
+ ) -> list[datetime]:
119
+ if end_time <= start_time:
120
+ return [start_time]
121
+ points = [start_time]
122
+ step_s = mission.geometry_sample_step_s
123
+ start_offset_s = int(round((start_time - mission.horizon_start).total_seconds()))
124
+ end_offset_s = int(round((end_time - mission.horizon_start).total_seconds()))
125
+ next_grid_offset_s = ((start_offset_s // step_s) + 1) * step_s
126
+ while next_grid_offset_s < end_offset_s:
127
+ points.append(mission.horizon_start + timedelta(seconds=next_grid_offset_s))
128
+ next_grid_offset_s += step_s
129
+ if points[-1] != end_time:
130
+ points.append(end_time)
131
+ return points
132
+
133
+
134
+ def _angle_between_deg(vector_a: np.ndarray, vector_b: np.ndarray) -> float:
135
+ norm_a = float(np.linalg.norm(vector_a))
136
+ norm_b = float(np.linalg.norm(vector_b))
137
+ if norm_a <= NUMERICAL_EPS or norm_b <= NUMERICAL_EPS:
138
+ return 0.0
139
+ cosine = float(np.dot(vector_a, vector_b) / (norm_a * norm_b))
140
+ cosine = max(-1.0, min(1.0, cosine))
141
+ return math.degrees(math.acos(cosine))
142
+
143
+
144
+ def _off_nadir_deg(satellite_position_ecef_m: np.ndarray, target_ecef_m: np.ndarray) -> float:
145
+ return _angle_between_deg(
146
+ -satellite_position_ecef_m,
147
+ target_ecef_m - satellite_position_ecef_m,
148
+ )
149
+
150
+
151
+ def _target_visible(
152
+ satellite_position_ecef_m: np.ndarray,
153
+ target_ecef_m: np.ndarray,
154
+ ) -> bool:
155
+ target_norm = float(np.linalg.norm(target_ecef_m))
156
+ if target_norm <= NUMERICAL_EPS:
157
+ return False
158
+ target_normal = target_ecef_m / target_norm
159
+ return float(np.dot(satellite_position_ecef_m - target_ecef_m, target_normal)) > 0.0
160
+
161
+
162
+ def _target_vector_eci(
163
+ task: TaskDef,
164
+ propagation: _PropagationContext,
165
+ satellite_id: str,
166
+ instant: datetime,
167
+ ) -> np.ndarray:
168
+ epoch = _datetime_to_epoch(instant)
169
+ target_eci = np.asarray(
170
+ brahe.position_ecef_to_eci(epoch, np.asarray(task.target_ecef_m, dtype=float)),
171
+ dtype=float,
172
+ ).reshape(3)
173
+ sat_state_eci = propagation.state_eci(satellite_id, instant)
174
+ return target_eci - sat_state_eci[:3]
175
+
176
+
177
+ def _is_sunlit(position_eci_m: np.ndarray, epoch: brahe.Epoch) -> bool:
178
+ sun_position = np.asarray(brahe.sun_position(epoch), dtype=float)
179
+ sun_hat = sun_position / np.linalg.norm(sun_position)
180
+ projection = float(np.dot(position_eci_m, sun_hat))
181
+ perpendicular = np.linalg.norm(position_eci_m - (projection * sun_hat))
182
+ return not (projection < 0.0 and perpendicular < brahe.R_EARTH)
183
+
184
+
185
+ def _slew_time_s(
186
+ delta_angle_deg: float,
187
+ max_velocity_deg_per_s: float,
188
+ max_acceleration_deg_per_s2: float,
189
+ ) -> float:
190
+ delta_angle_deg = max(0.0, delta_angle_deg)
191
+ if delta_angle_deg <= NUMERICAL_EPS:
192
+ return 0.0
193
+ if max_velocity_deg_per_s <= 0.0 or max_acceleration_deg_per_s2 <= 0.0:
194
+ return math.inf
195
+ ramp_time = max_velocity_deg_per_s / max_acceleration_deg_per_s2
196
+ triangular_threshold = (
197
+ max_velocity_deg_per_s * max_velocity_deg_per_s / max_acceleration_deg_per_s2
198
+ )
199
+ if delta_angle_deg <= triangular_threshold:
200
+ return 2.0 * math.sqrt(delta_angle_deg / max_acceleration_deg_per_s2)
201
+ cruise_angle = delta_angle_deg - triangular_threshold
202
+ return (2.0 * ramp_time) + (cruise_angle / max_velocity_deg_per_s)
203
+
204
+
205
+ def _make_failure(
206
+ *,
207
+ action_index: int,
208
+ satellite_id: str,
209
+ task_id: str,
210
+ reason: str,
211
+ stage: str,
212
+ time: datetime | None = None,
213
+ ) -> ActionFailure:
214
+ return ActionFailure(
215
+ action_index=action_index,
216
+ satellite_id=satellite_id,
217
+ task_id=task_id,
218
+ reason=reason,
219
+ stage=stage,
220
+ time=time.astimezone(UTC) if time is not None else None,
221
+ )
222
+
223
+
224
+ def _validate_action_structure(
225
+ case: AeosspCase,
226
+ solution: AeosspSolution,
227
+ ) -> tuple[list[ValidatedAction], list[ActionFailure], list[str]]:
228
+ validated: list[ValidatedAction] = []
229
+ failures: list[ActionFailure] = []
230
+ violations: list[str] = []
231
+ for index, action in enumerate(solution.actions):
232
+ prefix = f"actions[{index}]"
233
+ if action.satellite_id not in case.satellites:
234
+ failures.append(
235
+ _make_failure(
236
+ action_index=index,
237
+ satellite_id=action.satellite_id,
238
+ task_id=action.task_id,
239
+ reason="unknown satellite_id",
240
+ stage="structure",
241
+ time=action.start_time,
242
+ )
243
+ )
244
+ violations.append(f"{prefix}: unknown satellite_id {action.satellite_id!r}")
245
+ continue
246
+ if action.task_id not in case.tasks:
247
+ failures.append(
248
+ _make_failure(
249
+ action_index=index,
250
+ satellite_id=action.satellite_id,
251
+ task_id=action.task_id,
252
+ reason="unknown task_id",
253
+ stage="structure",
254
+ time=action.start_time,
255
+ )
256
+ )
257
+ violations.append(f"{prefix}: unknown task_id {action.task_id!r}")
258
+ continue
259
+ task = case.tasks[action.task_id]
260
+ if action.end_time <= action.start_time:
261
+ reason = "end_time must be after start_time"
262
+ failures.append(
263
+ _make_failure(
264
+ action_index=index,
265
+ satellite_id=action.satellite_id,
266
+ task_id=action.task_id,
267
+ reason=reason,
268
+ stage="structure",
269
+ time=action.start_time,
270
+ )
271
+ )
272
+ violations.append(f"{prefix}: {reason}")
273
+ continue
274
+ if action.start_time < case.mission.horizon_start or action.end_time > case.mission.horizon_end:
275
+ reason = "action lies outside the mission horizon"
276
+ failures.append(
277
+ _make_failure(
278
+ action_index=index,
279
+ satellite_id=action.satellite_id,
280
+ task_id=action.task_id,
281
+ reason=reason,
282
+ stage="structure",
283
+ time=action.start_time,
284
+ )
285
+ )
286
+ violations.append(f"{prefix}: {reason}")
287
+ continue
288
+ misaligned = False
289
+ for field_name, instant in (("start_time", action.start_time), ("end_time", action.end_time)):
290
+ seconds = (instant - case.mission.horizon_start).total_seconds()
291
+ if not _is_aligned(seconds, case.mission.action_time_step_s):
292
+ reason = f"{field_name} must align to the {case.mission.action_time_step_s}s action grid"
293
+ failures.append(
294
+ _make_failure(
295
+ action_index=index,
296
+ satellite_id=action.satellite_id,
297
+ task_id=action.task_id,
298
+ reason=reason,
299
+ stage="structure",
300
+ time=instant,
301
+ )
302
+ )
303
+ violations.append(f"{prefix}: {reason}")
304
+ misaligned = True
305
+ break
306
+ if misaligned:
307
+ continue
308
+ if action.start_time < task.release_time or action.end_time > task.due_time:
309
+ reason = "action lies outside the task window"
310
+ failures.append(
311
+ _make_failure(
312
+ action_index=index,
313
+ satellite_id=action.satellite_id,
314
+ task_id=action.task_id,
315
+ reason=reason,
316
+ stage="structure",
317
+ time=action.start_time,
318
+ )
319
+ )
320
+ violations.append(f"{prefix}: {reason}")
321
+ continue
322
+ if action.duration_s != task.required_duration_s:
323
+ reason = (
324
+ f"action duration must equal required_duration_s "
325
+ f"({task.required_duration_s}s)"
326
+ )
327
+ failures.append(
328
+ _make_failure(
329
+ action_index=index,
330
+ satellite_id=action.satellite_id,
331
+ task_id=action.task_id,
332
+ reason=reason,
333
+ stage="structure",
334
+ time=action.start_time,
335
+ )
336
+ )
337
+ violations.append(f"{prefix}: {reason}")
338
+ continue
339
+ satellite = case.satellites[action.satellite_id]
340
+ if satellite.sensor.sensor_type != task.required_sensor_type:
341
+ reason = "satellite sensor_type does not match task required_sensor_type"
342
+ failures.append(
343
+ _make_failure(
344
+ action_index=index,
345
+ satellite_id=action.satellite_id,
346
+ task_id=action.task_id,
347
+ reason=reason,
348
+ stage="structure",
349
+ time=action.start_time,
350
+ )
351
+ )
352
+ violations.append(f"{prefix}: {reason}")
353
+ continue
354
+ validated.append(
355
+ ValidatedAction(
356
+ action_index=index,
357
+ satellite_id=action.satellite_id,
358
+ task_id=action.task_id,
359
+ start_time=action.start_time,
360
+ end_time=action.end_time,
361
+ )
362
+ )
363
+ return validated, failures, violations
364
+
365
+
366
+ def _validate_observation_geometry(
367
+ case: AeosspCase,
368
+ propagation: _PropagationContext,
369
+ validated_actions: list[ValidatedAction],
370
+ failures: list[ActionFailure],
371
+ violations: list[str],
372
+ ) -> list[ValidatedAction]:
373
+ accepted: list[ValidatedAction] = []
374
+ for item in validated_actions:
375
+ satellite = case.satellites[item.satellite_id]
376
+ task = case.tasks[item.task_id]
377
+ sample_times = _action_sample_times(
378
+ case.mission,
379
+ item.start_time,
380
+ item.end_time,
381
+ )
382
+ bad_reason: str | None = None
383
+ bad_time: datetime | None = None
384
+ for sample_time in sample_times:
385
+ state_ecef = propagation.state_ecef(item.satellite_id, sample_time)
386
+ sat_pos_ecef = state_ecef[:3]
387
+ if not _target_visible(sat_pos_ecef, np.asarray(task.target_ecef_m, dtype=float)):
388
+ bad_reason = "target is not continuously visible"
389
+ bad_time = sample_time
390
+ break
391
+ off_nadir_deg = _off_nadir_deg(sat_pos_ecef, np.asarray(task.target_ecef_m, dtype=float))
392
+ if off_nadir_deg > satellite.attitude_model.max_off_nadir_deg + 1.0e-6:
393
+ bad_reason = "required pointing exceeds max_off_nadir_deg"
394
+ bad_time = sample_time
395
+ break
396
+ if bad_reason is not None:
397
+ failure_text = f"{bad_reason} at {_iso_z(bad_time)}" if bad_time is not None else bad_reason
398
+ failures.append(
399
+ _make_failure(
400
+ action_index=item.action_index,
401
+ satellite_id=item.satellite_id,
402
+ task_id=item.task_id,
403
+ reason=failure_text,
404
+ stage="geometry",
405
+ time=bad_time,
406
+ )
407
+ )
408
+ violations.append(f"actions[{item.action_index}]: {failure_text}")
409
+ continue
410
+ accepted.append(item)
411
+ return accepted
412
+
413
+
414
+ def _validate_slew_and_build_maneuver_windows(
415
+ case: AeosspCase,
416
+ propagation: _PropagationContext,
417
+ actions_by_satellite: dict[str, list[ValidatedAction]],
418
+ failures: list[ActionFailure],
419
+ violations: list[str],
420
+ ) -> tuple[dict[str, list[ValidatedAction]], dict[str, list[ManeuverWindow]]]:
421
+ accepted_actions_by_satellite: dict[str, list[ValidatedAction]] = defaultdict(list)
422
+ maneuver_windows: dict[str, list[ManeuverWindow]] = defaultdict(list)
423
+ for satellite_id, actions in actions_by_satellite.items():
424
+ satellite = case.satellites[satellite_id]
425
+ actions.sort(key=lambda item: (item.start_time, item.end_time, item.action_index))
426
+ previous: ValidatedAction | None = None
427
+ for current in actions:
428
+ if previous is not None and previous.end_time > current.start_time:
429
+ reason = "observation actions overlap on the same satellite"
430
+ failures.append(
431
+ _make_failure(
432
+ action_index=current.action_index,
433
+ satellite_id=satellite_id,
434
+ task_id=current.task_id,
435
+ reason=reason,
436
+ stage="slew",
437
+ time=current.start_time,
438
+ )
439
+ )
440
+ violations.append(f"actions[{current.action_index}]: {reason}")
441
+ continue
442
+ current_task = case.tasks[current.task_id]
443
+ current_start_vec = _target_vector_eci(
444
+ current_task, propagation, satellite_id, current.start_time
445
+ )
446
+ if previous is None:
447
+ sat_state_eci = propagation.state_eci(satellite_id, current.start_time)
448
+ from_vector = -sat_state_eci[:3]
449
+ available_gap_s = (
450
+ current.start_time - case.mission.horizon_start
451
+ ).total_seconds()
452
+ from_task_id = None
453
+ from_action_index = None
454
+ else:
455
+ previous_task = case.tasks[previous.task_id]
456
+ from_vector = _target_vector_eci(
457
+ previous_task, propagation, satellite_id, previous.end_time
458
+ )
459
+ available_gap_s = (
460
+ current.start_time - previous.end_time
461
+ ).total_seconds()
462
+ from_task_id = previous.task_id
463
+ from_action_index = previous.action_index
464
+ slew_angle_deg = _angle_between_deg(from_vector, current_start_vec)
465
+ slew_time_s = _slew_time_s(
466
+ slew_angle_deg,
467
+ satellite.attitude_model.max_slew_velocity_deg_per_s,
468
+ satellite.attitude_model.max_slew_acceleration_deg_per_s2,
469
+ )
470
+ required_gap_s = slew_time_s + satellite.attitude_model.settling_time_s
471
+ if available_gap_s + NUMERICAL_EPS < required_gap_s:
472
+ reason = (
473
+ f"insufficient slew/settle time before observation "
474
+ f"(need {required_gap_s:.3f}s, have {available_gap_s:.3f}s)"
475
+ )
476
+ failures.append(
477
+ _make_failure(
478
+ action_index=current.action_index,
479
+ satellite_id=satellite_id,
480
+ task_id=current.task_id,
481
+ reason=reason,
482
+ stage="slew",
483
+ time=current.start_time,
484
+ )
485
+ )
486
+ violations.append(f"actions[{current.action_index}]: {reason}")
487
+ continue
488
+ if required_gap_s > NUMERICAL_EPS:
489
+ window_start = current.start_time - timedelta(seconds=required_gap_s)
490
+ maneuver_windows[satellite_id].append(
491
+ ManeuverWindow(
492
+ action_index=current.action_index,
493
+ satellite_id=satellite_id,
494
+ start_time=window_start,
495
+ end_time=current.start_time,
496
+ required_gap_s=required_gap_s,
497
+ slew_angle_deg=slew_angle_deg,
498
+ from_action_index=from_action_index,
499
+ from_task_id=from_task_id,
500
+ to_task_id=current.task_id,
501
+ )
502
+ )
503
+ accepted_actions_by_satellite[satellite_id].append(current)
504
+ previous = current
505
+ return accepted_actions_by_satellite, maneuver_windows
506
+
507
+
508
+ def _interval_contains(instant: datetime, start: datetime, end: datetime) -> bool:
509
+ return start <= instant < end
510
+
511
+
512
+ def _resource_time_points(
513
+ mission: Mission,
514
+ actions: list[ValidatedAction],
515
+ maneuver_windows: list[ManeuverWindow],
516
+ ) -> list[datetime]:
517
+ points: set[datetime] = {mission.horizon_start, mission.horizon_end}
518
+ current = mission.horizon_start
519
+ delta = timedelta(seconds=mission.resource_sample_step_s)
520
+ while current < mission.horizon_end:
521
+ points.add(current)
522
+ current = min(current + delta, mission.horizon_end)
523
+ points.add(mission.horizon_end)
524
+ for item in actions:
525
+ points.add(item.start_time)
526
+ points.add(item.end_time)
527
+ for window in maneuver_windows:
528
+ points.add(window.start_time)
529
+ points.add(window.end_time)
530
+ return sorted(points)
531
+
532
+
533
+ def _segment_mode(
534
+ active_observation: ValidatedAction | None,
535
+ active_maneuver: ManeuverWindow | None,
536
+ ) -> str:
537
+ if active_observation is not None and active_maneuver is not None:
538
+ return "observation+slew"
539
+ if active_observation is not None:
540
+ return "observation"
541
+ if active_maneuver is not None:
542
+ return "slew"
543
+ return "idle"
544
+
545
+
546
+ def _simulate_battery_and_power(
547
+ case: AeosspCase,
548
+ propagation: _PropagationContext,
549
+ actions_by_satellite: dict[str, list[ValidatedAction]],
550
+ maneuver_windows: dict[str, list[ManeuverWindow]],
551
+ failures: list[ActionFailure],
552
+ violations: list[str],
553
+ ) -> tuple[float, dict[str, Any], dict[str, tuple[BatteryTraceSegment, ...]]]:
554
+ total_pc_wh = 0.0
555
+ summaries: dict[str, Any] = {}
556
+ traces: dict[str, tuple[BatteryTraceSegment, ...]] = {}
557
+ for satellite_id, satellite in case.satellites.items():
558
+ actions = sorted(
559
+ actions_by_satellite.get(satellite_id, []),
560
+ key=lambda item: (item.start_time, item.end_time, item.action_index),
561
+ )
562
+ windows = maneuver_windows.get(satellite_id, [])
563
+ time_points = _resource_time_points(case.mission, actions, windows)
564
+ battery_wh = satellite.resource_model.initial_battery_wh
565
+ min_battery_wh = battery_wh
566
+ min_battery_time = case.mission.horizon_start
567
+ gross_consumption_wh = 0.0
568
+ total_charge_wh = 0.0
569
+ total_imaging_time_s = 0.0
570
+ total_slew_time_s = 0.0
571
+ failed = False
572
+ trace_segments: list[BatteryTraceSegment] = []
573
+ for start_time, end_time in zip(time_points, time_points[1:]):
574
+ duration_s = (end_time - start_time).total_seconds()
575
+ if duration_s <= 0.0:
576
+ continue
577
+ midpoint = start_time + ((end_time - start_time) / 2)
578
+ active_observation = next(
579
+ (
580
+ item
581
+ for item in actions
582
+ if _interval_contains(midpoint, item.start_time, item.end_time)
583
+ ),
584
+ None,
585
+ )
586
+ active_maneuver = next(
587
+ (
588
+ window
589
+ for window in windows
590
+ if _interval_contains(midpoint, window.start_time, window.end_time)
591
+ ),
592
+ None,
593
+ )
594
+ load_power_w = satellite.resource_model.idle_power_w
595
+ if active_observation is not None:
596
+ load_power_w += satellite.resource_model.imaging_power_w
597
+ total_imaging_time_s += duration_s
598
+ if active_maneuver is not None:
599
+ load_power_w += satellite.resource_model.slew_power_w
600
+ total_slew_time_s += duration_s
601
+ epoch = _datetime_to_epoch(midpoint)
602
+ state_eci = propagation.state_eci(satellite_id, midpoint)
603
+ charge_power_w = (
604
+ satellite.resource_model.sunlit_charge_power_w
605
+ if _is_sunlit(state_eci[:3], epoch)
606
+ else 0.0
607
+ )
608
+ battery_start_wh = battery_wh
609
+ gross_consumption_wh += (load_power_w * duration_s) / 3600.0
610
+ total_charge_wh += (charge_power_w * duration_s) / 3600.0
611
+ battery_wh += ((charge_power_w - load_power_w) * duration_s) / 3600.0
612
+ if battery_wh < -NUMERICAL_EPS:
613
+ reason = f"battery depletes below zero around {_iso_z(midpoint)}"
614
+ failing_index = active_observation.action_index if active_observation else -1
615
+ failing_task = active_observation.task_id if active_observation else ""
616
+ failures.append(
617
+ _make_failure(
618
+ action_index=failing_index,
619
+ satellite_id=satellite_id,
620
+ task_id=failing_task,
621
+ reason=reason,
622
+ stage="battery",
623
+ time=midpoint,
624
+ )
625
+ )
626
+ violations.append(f"Satellite {satellite_id}: {reason}")
627
+ failed = True
628
+ battery_end_wh = battery_wh
629
+ else:
630
+ battery_wh = min(satellite.resource_model.battery_capacity_wh, battery_wh)
631
+ battery_end_wh = battery_wh
632
+ if battery_wh < min_battery_wh:
633
+ min_battery_wh = battery_wh
634
+ min_battery_time = end_time
635
+ trace_segments.append(
636
+ BatteryTraceSegment(
637
+ satellite_id=satellite_id,
638
+ start_time=start_time,
639
+ end_time=end_time,
640
+ battery_start_wh=battery_start_wh,
641
+ battery_end_wh=battery_end_wh,
642
+ load_power_w=load_power_w,
643
+ charge_power_w=charge_power_w,
644
+ mode=_segment_mode(active_observation, active_maneuver),
645
+ active_action_index=active_observation.action_index if active_observation else None,
646
+ active_task_id=active_observation.task_id if active_observation else None,
647
+ active_maneuver_to_action_index=active_maneuver.action_index if active_maneuver else None,
648
+ )
649
+ )
650
+ if failed:
651
+ break
652
+ summaries[satellite_id] = {
653
+ "initial_battery_wh": satellite.resource_model.initial_battery_wh,
654
+ "minimum_battery_wh": min_battery_wh,
655
+ "minimum_battery_time": _iso_z(min_battery_time),
656
+ "final_battery_wh": battery_wh,
657
+ "gross_consumption_wh": gross_consumption_wh,
658
+ "total_charge_wh": total_charge_wh,
659
+ "total_imaging_time_s": total_imaging_time_s,
660
+ "total_slew_time_s": total_slew_time_s,
661
+ "failed": failed,
662
+ }
663
+ traces[satellite_id] = tuple(trace_segments)
664
+ if not failed:
665
+ total_pc_wh += gross_consumption_wh
666
+ return total_pc_wh, summaries, traces
667
+
668
+
669
+ def _compute_task_outcomes(
670
+ case: AeosspCase,
671
+ validated_actions: list[ValidatedAction],
672
+ ) -> dict[str, TaskOutcome]:
673
+ completed_by_task: dict[str, ValidatedAction] = {}
674
+ for item in sorted(
675
+ validated_actions,
676
+ key=lambda item: (item.end_time, item.start_time, item.action_index),
677
+ ):
678
+ current = completed_by_task.get(item.task_id)
679
+ if current is None or item.end_time < current.end_time:
680
+ completed_by_task[item.task_id] = item
681
+ outcomes: dict[str, TaskOutcome] = {}
682
+ for task_id, task in case.tasks.items():
683
+ completion = completed_by_task.get(task_id)
684
+ outcomes[task_id] = TaskOutcome(
685
+ task_id=task_id,
686
+ completed=completion is not None,
687
+ completion_time=completion.end_time if completion is not None else None,
688
+ completed_by_action_index=completion.action_index if completion is not None else None,
689
+ weight=task.weight,
690
+ )
691
+ return outcomes
692
+
693
+
694
+ def _compute_metrics(
695
+ case: AeosspCase,
696
+ task_outcomes: dict[str, TaskOutcome],
697
+ total_pc_wh: float,
698
+ ) -> dict[str, Any]:
699
+ total_tasks = len(case.tasks)
700
+ completed = [outcome for outcome in task_outcomes.values() if outcome.completed]
701
+ total_weight = sum(task.weight for task in case.tasks.values())
702
+ completed_weight = sum(outcome.weight for outcome in completed)
703
+ tat_values_s = [
704
+ (
705
+ outcome.completion_time - case.tasks[outcome.task_id].release_time
706
+ ).total_seconds()
707
+ for outcome in completed
708
+ if outcome.completion_time is not None
709
+ ]
710
+ return {
711
+ "CR": len(completed) / total_tasks if total_tasks else 0.0,
712
+ "WCR": completed_weight / total_weight if total_weight > 0.0 else 0.0,
713
+ "TAT": (sum(tat_values_s) / len(tat_values_s)) if tat_values_s else None,
714
+ "PC": total_pc_wh,
715
+ }
716
+
717
+
718
+ def _build_timeline_events(
719
+ validated_actions: list[ValidatedAction],
720
+ maneuver_windows: tuple[ManeuverWindow, ...],
721
+ failures: list[ActionFailure],
722
+ ) -> tuple[TimelineEvent, ...]:
723
+ events: list[TimelineEvent] = []
724
+ for action in validated_actions:
725
+ events.append(
726
+ TimelineEvent(
727
+ time=action.start_time,
728
+ satellite_id=action.satellite_id,
729
+ kind="action_start",
730
+ action_index=action.action_index,
731
+ task_id=action.task_id,
732
+ )
733
+ )
734
+ events.append(
735
+ TimelineEvent(
736
+ time=action.end_time,
737
+ satellite_id=action.satellite_id,
738
+ kind="action_end",
739
+ action_index=action.action_index,
740
+ task_id=action.task_id,
741
+ )
742
+ )
743
+ for window in maneuver_windows:
744
+ events.append(
745
+ TimelineEvent(
746
+ time=window.start_time,
747
+ satellite_id=window.satellite_id,
748
+ kind="maneuver_start",
749
+ action_index=window.action_index,
750
+ task_id=window.to_task_id,
751
+ )
752
+ )
753
+ events.append(
754
+ TimelineEvent(
755
+ time=window.end_time,
756
+ satellite_id=window.satellite_id,
757
+ kind="maneuver_end",
758
+ action_index=window.action_index,
759
+ task_id=window.to_task_id,
760
+ )
761
+ )
762
+ for failure in failures:
763
+ if failure.time is None:
764
+ continue
765
+ events.append(
766
+ TimelineEvent(
767
+ time=failure.time,
768
+ satellite_id=failure.satellite_id,
769
+ kind="failure",
770
+ action_index=failure.action_index if failure.action_index >= 0 else None,
771
+ task_id=failure.task_id or None,
772
+ detail=failure.reason,
773
+ )
774
+ )
775
+ events.sort(key=lambda item: (item.time, item.satellite_id, item.kind, item.action_index or -1))
776
+ return tuple(events)
777
+
778
+
779
+ def _build_snapshot_candidates(
780
+ validated_actions: list[ValidatedAction],
781
+ failures: list[ActionFailure],
782
+ resource_summary: dict[str, Any],
783
+ ) -> tuple[datetime, ...]:
784
+ candidates: list[datetime] = []
785
+ for action in validated_actions:
786
+ candidates.extend((action.start_time, action.end_time))
787
+ for failure in failures:
788
+ if failure.time is not None:
789
+ candidates.append(failure.time)
790
+ for summary in resource_summary.values():
791
+ minimum_battery_time = summary.get("minimum_battery_time")
792
+ if isinstance(minimum_battery_time, str):
793
+ candidates.append(datetime.fromisoformat(minimum_battery_time.replace("Z", "+00:00")).astimezone(UTC))
794
+ unique = sorted({candidate.astimezone(UTC) for candidate in candidates})
795
+ return tuple(unique)
796
+
797
+
798
+ def _build_diagnostics(
799
+ task_outcomes: dict[str, TaskOutcome],
800
+ failures: list[ActionFailure],
801
+ maneuver_windows: tuple[ManeuverWindow, ...],
802
+ resource_summary: dict[str, Any],
803
+ ) -> dict[str, Any]:
804
+ return {
805
+ "action_failures": [failure.as_dict() for failure in failures],
806
+ "maneuver_windows": [window.as_dict() for window in maneuver_windows],
807
+ "per_task": {
808
+ task_id: outcome.as_dict()
809
+ for task_id, outcome in task_outcomes.items()
810
+ },
811
+ "per_satellite_resource_summary": resource_summary,
812
+ }
813
+
814
+
815
+ def analyze(case: AeosspCase, solution: AeosspSolution) -> SolutionAnalysis:
816
+ _ensure_brahe_ready()
817
+ propagation = _PropagationContext(case)
818
+
819
+ validated_actions, failures, violations = _validate_action_structure(case, solution)
820
+ validated_actions = _validate_observation_geometry(
821
+ case, propagation, validated_actions, failures, violations
822
+ )
823
+
824
+ actions_by_satellite: dict[str, list[ValidatedAction]] = defaultdict(list)
825
+ for item in validated_actions:
826
+ actions_by_satellite[item.satellite_id].append(item)
827
+
828
+ accepted_actions_by_satellite, maneuver_windows_by_satellite = _validate_slew_and_build_maneuver_windows(
829
+ case, propagation, actions_by_satellite, failures, violations
830
+ )
831
+ accepted_actions = [
832
+ item
833
+ for satellite_id in sorted(accepted_actions_by_satellite)
834
+ for item in accepted_actions_by_satellite[satellite_id]
835
+ ]
836
+ maneuver_windows = tuple(
837
+ window
838
+ for satellite_id in sorted(maneuver_windows_by_satellite)
839
+ for window in maneuver_windows_by_satellite[satellite_id]
840
+ )
841
+
842
+ total_pc_wh = 0.0
843
+ resource_summary: dict[str, Any] = {}
844
+ battery_traces: dict[str, tuple[BatteryTraceSegment, ...]] = {
845
+ sat_id: tuple() for sat_id in case.satellites
846
+ }
847
+ total_pc_wh, resource_summary, battery_traces = _simulate_battery_and_power(
848
+ case,
849
+ propagation,
850
+ accepted_actions_by_satellite,
851
+ maneuver_windows_by_satellite,
852
+ failures,
853
+ violations,
854
+ )
855
+
856
+ task_outcomes = _compute_task_outcomes(case, accepted_actions)
857
+ diagnostics = _build_diagnostics(task_outcomes, failures, maneuver_windows, resource_summary)
858
+ timeline_events = _build_timeline_events(accepted_actions, maneuver_windows, failures)
859
+ snapshot_candidates = _build_snapshot_candidates(accepted_actions, failures, resource_summary)
860
+
861
+ if violations:
862
+ result = VerificationResult(
863
+ valid=False,
864
+ metrics=_default_metrics(),
865
+ violations=violations,
866
+ diagnostics=diagnostics,
867
+ )
868
+ else:
869
+ result = VerificationResult(
870
+ valid=True,
871
+ metrics=_compute_metrics(case, task_outcomes, total_pc_wh),
872
+ violations=[],
873
+ diagnostics=diagnostics,
874
+ )
875
+
876
+ return SolutionAnalysis(
877
+ case=case,
878
+ solution=solution,
879
+ result=result,
880
+ validated_actions=tuple(
881
+ sorted(accepted_actions, key=lambda item: (item.start_time, item.end_time, item.action_index))
882
+ ),
883
+ action_failures=tuple(failures),
884
+ maneuver_windows=maneuver_windows,
885
+ task_outcomes=task_outcomes,
886
+ battery_traces=battery_traces,
887
+ per_satellite_resource_summary=resource_summary,
888
+ timeline_events=timeline_events,
889
+ snapshot_candidates=snapshot_candidates,
890
+ )
891
+
892
+
893
+ def analyze_solution(case_dir: str | Path, solution_path: str | Path) -> SolutionAnalysis:
894
+ case = load_case(case_dir)
895
+ solution = load_solution(solution_path)
896
+ return analyze(case, solution)
897
+
898
+
899
+ def verify(case: AeosspCase, solution: AeosspSolution) -> VerificationResult:
900
+ return analyze(case, solution).result
901
+
902
+
903
+ def verify_solution(case_dir: str | Path, solution_path: str | Path) -> VerificationResult:
904
+ try:
905
+ return analyze_solution(case_dir, solution_path).result
906
+ except (FileNotFoundError, ValueError) as exc:
907
+ return _invalid_result([str(exc)], diagnostics={})
tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/io.py ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Case and solution loading for the aeossp_standard verifier."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from datetime import UTC, datetime, timedelta
6
+ from pathlib import Path
7
+ from typing import Any
8
+ import json
9
+
10
+ import brahe
11
+ import yaml
12
+
13
+ from .models import (
14
+ AeosspCase,
15
+ AeosspSolution,
16
+ AttitudeModel,
17
+ Mission,
18
+ NUMERICAL_EPS,
19
+ ObservationAction,
20
+ ResourceModel,
21
+ SatelliteDef,
22
+ Sensor,
23
+ TaskDef,
24
+ )
25
+
26
+
27
+ def _load_yaml(path: Path) -> Any:
28
+ return yaml.safe_load(path.read_text(encoding="utf-8"))
29
+
30
+
31
+ def _load_json(path: Path) -> Any:
32
+ return json.loads(path.read_text(encoding="utf-8"))
33
+
34
+
35
+ def _parse_iso_utc(value: str, *, field_name: str) -> datetime:
36
+ if not isinstance(value, str):
37
+ raise ValueError(f"{field_name} must be an ISO 8601 timestamp string")
38
+ parsed = datetime.fromisoformat(value.replace("Z", "+00:00"))
39
+ if parsed.tzinfo is None:
40
+ raise ValueError(f"{field_name} must include timezone information")
41
+ return parsed.astimezone(UTC)
42
+
43
+
44
+ def _require_mapping(payload: Any, context: str) -> dict[str, Any]:
45
+ if not isinstance(payload, dict):
46
+ raise ValueError(f"{context} must be a mapping/object")
47
+ return payload
48
+
49
+
50
+ def _require_list(payload: Any, context: str) -> list[Any]:
51
+ if not isinstance(payload, list):
52
+ raise ValueError(f"{context} must be a list/array")
53
+ return payload
54
+
55
+
56
+ def _require_str(mapping: dict[str, Any], key: str, context: str) -> str:
57
+ value = mapping.get(key)
58
+ if not isinstance(value, str) or not value:
59
+ raise ValueError(f"{context}.{key} must be a non-empty string")
60
+ return value
61
+
62
+
63
+ def _require_int(mapping: dict[str, Any], key: str, context: str) -> int:
64
+ value = mapping.get(key)
65
+ if not isinstance(value, int):
66
+ raise ValueError(f"{context}.{key} must be an integer")
67
+ return value
68
+
69
+
70
+ def _require_float(mapping: dict[str, Any], key: str, context: str) -> float:
71
+ value = mapping.get(key)
72
+ if not isinstance(value, (int, float)):
73
+ raise ValueError(f"{context}.{key} must be numeric")
74
+ return float(value)
75
+
76
+
77
+ def _validate_positive_int(value: int, *, field_name: str) -> None:
78
+ if value <= 0:
79
+ raise ValueError(f"{field_name} must be > 0")
80
+
81
+
82
+ def _validate_non_negative(value: float, *, field_name: str) -> None:
83
+ if value < -NUMERICAL_EPS:
84
+ raise ValueError(f"{field_name} must be >= 0")
85
+
86
+
87
+ def _is_aligned(seconds: float, step_s: int) -> bool:
88
+ return abs((seconds / step_s) - round(seconds / step_s)) <= 1.0e-9
89
+
90
+
91
+ def _validate_horizon_divisibility(mission: Mission) -> None:
92
+ for field_name, step_s in (
93
+ ("action_time_step_s", mission.action_time_step_s),
94
+ ("geometry_sample_step_s", mission.geometry_sample_step_s),
95
+ ("resource_sample_step_s", mission.resource_sample_step_s),
96
+ ):
97
+ if not _is_aligned(float(mission.horizon_seconds), step_s):
98
+ raise ValueError(
99
+ f"mission horizon must be exactly divisible by {field_name}"
100
+ )
101
+
102
+
103
+ def _task_target_ecef_m(task: dict[str, Any], context: str):
104
+ return brahe.position_geodetic_to_ecef(
105
+ [
106
+ _require_float(task, "longitude_deg", context),
107
+ _require_float(task, "latitude_deg", context),
108
+ _require_float(task, "altitude_m", context),
109
+ ],
110
+ brahe.AngleFormat.DEGREES,
111
+ )
112
+
113
+
114
+ def load_case(case_dir: str | Path) -> AeosspCase:
115
+ case_path = Path(case_dir).resolve()
116
+ mission_doc = _require_mapping(_load_yaml(case_path / "mission.yaml"), "mission.yaml")
117
+ satellites_doc = _require_mapping(
118
+ _load_yaml(case_path / "satellites.yaml"), "satellites.yaml"
119
+ )
120
+ tasks_doc = _require_mapping(_load_yaml(case_path / "tasks.yaml"), "tasks.yaml")
121
+
122
+ mission_raw = _require_mapping(mission_doc.get("mission"), "mission.yaml.mission")
123
+ satellites_raw = _require_list(
124
+ satellites_doc.get("satellites"), "satellites.yaml.satellites"
125
+ )
126
+ tasks_raw = _require_list(tasks_doc.get("tasks"), "tasks.yaml.tasks")
127
+
128
+ mission = Mission(
129
+ case_id=_require_str(mission_raw, "case_id", "mission.yaml.mission"),
130
+ horizon_start=_parse_iso_utc(
131
+ _require_str(mission_raw, "horizon_start", "mission.yaml.mission"),
132
+ field_name="mission.horizon_start",
133
+ ),
134
+ horizon_end=_parse_iso_utc(
135
+ _require_str(mission_raw, "horizon_end", "mission.yaml.mission"),
136
+ field_name="mission.horizon_end",
137
+ ),
138
+ action_time_step_s=_require_int(
139
+ mission_raw, "action_time_step_s", "mission.yaml.mission"
140
+ ),
141
+ geometry_sample_step_s=_require_int(
142
+ mission_raw, "geometry_sample_step_s", "mission.yaml.mission"
143
+ ),
144
+ resource_sample_step_s=_require_int(
145
+ mission_raw, "resource_sample_step_s", "mission.yaml.mission"
146
+ ),
147
+ )
148
+ if mission.horizon_end <= mission.horizon_start:
149
+ raise ValueError("mission.horizon_end must be after mission.horizon_start")
150
+ _validate_positive_int(mission.action_time_step_s, field_name="mission.action_time_step_s")
151
+ _validate_positive_int(
152
+ mission.geometry_sample_step_s, field_name="mission.geometry_sample_step_s"
153
+ )
154
+ _validate_positive_int(
155
+ mission.resource_sample_step_s, field_name="mission.resource_sample_step_s"
156
+ )
157
+ _validate_horizon_divisibility(mission)
158
+
159
+ propagation = _require_mapping(mission_raw.get("propagation"), "mission.yaml.mission.propagation")
160
+ if _require_str(propagation, "model", "mission.yaml.mission.propagation") != "sgp4":
161
+ raise ValueError("mission.propagation.model must be 'sgp4'")
162
+
163
+ satellites: dict[str, SatelliteDef] = {}
164
+ for index, payload in enumerate(satellites_raw):
165
+ context = f"satellites.yaml.satellites[{index}]"
166
+ sat_raw = _require_mapping(payload, context)
167
+ sat_id = _require_str(sat_raw, "satellite_id", context)
168
+ if sat_id in satellites:
169
+ raise ValueError(f"Duplicate satellite_id: {sat_id}")
170
+ tle_line1 = _require_str(sat_raw, "tle_line1", context)
171
+ tle_line2 = _require_str(sat_raw, "tle_line2", context)
172
+ if not brahe.validate_tle_lines(tle_line1, tle_line2):
173
+ raise ValueError(f"{context} contains an invalid TLE pair")
174
+ sensor_raw = _require_mapping(sat_raw.get("sensor"), f"{context}.sensor")
175
+ attitude_raw = _require_mapping(sat_raw.get("attitude_model"), f"{context}.attitude_model")
176
+ resource_raw = _require_mapping(sat_raw.get("resource_model"), f"{context}.resource_model")
177
+ sensor = Sensor(sensor_type=_require_str(sensor_raw, "sensor_type", f"{context}.sensor"))
178
+ if sensor.sensor_type not in {"visible", "infrared"}:
179
+ raise ValueError(f"{context}.sensor.sensor_type must be 'visible' or 'infrared'")
180
+ attitude = AttitudeModel(
181
+ max_slew_velocity_deg_per_s=_require_float(
182
+ attitude_raw, "max_slew_velocity_deg_per_s", f"{context}.attitude_model"
183
+ ),
184
+ max_slew_acceleration_deg_per_s2=_require_float(
185
+ attitude_raw,
186
+ "max_slew_acceleration_deg_per_s2",
187
+ f"{context}.attitude_model",
188
+ ),
189
+ settling_time_s=_require_float(
190
+ attitude_raw, "settling_time_s", f"{context}.attitude_model"
191
+ ),
192
+ max_off_nadir_deg=_require_float(
193
+ attitude_raw, "max_off_nadir_deg", f"{context}.attitude_model"
194
+ ),
195
+ )
196
+ resource = ResourceModel(
197
+ battery_capacity_wh=_require_float(
198
+ resource_raw, "battery_capacity_wh", f"{context}.resource_model"
199
+ ),
200
+ initial_battery_wh=_require_float(
201
+ resource_raw, "initial_battery_wh", f"{context}.resource_model"
202
+ ),
203
+ idle_power_w=_require_float(resource_raw, "idle_power_w", f"{context}.resource_model"),
204
+ imaging_power_w=_require_float(
205
+ resource_raw, "imaging_power_w", f"{context}.resource_model"
206
+ ),
207
+ slew_power_w=_require_float(resource_raw, "slew_power_w", f"{context}.resource_model"),
208
+ sunlit_charge_power_w=_require_float(
209
+ resource_raw, "sunlit_charge_power_w", f"{context}.resource_model"
210
+ ),
211
+ )
212
+ if resource.battery_capacity_wh <= 0:
213
+ raise ValueError(f"{context}.resource_model.battery_capacity_wh must be > 0")
214
+ if resource.initial_battery_wh < -NUMERICAL_EPS or (
215
+ resource.initial_battery_wh > resource.battery_capacity_wh + NUMERICAL_EPS
216
+ ):
217
+ raise ValueError(
218
+ f"{context}.resource_model.initial_battery_wh must lie within [0, battery_capacity_wh]"
219
+ )
220
+ for field_name, value in (
221
+ ("max_slew_velocity_deg_per_s", attitude.max_slew_velocity_deg_per_s),
222
+ ("max_slew_acceleration_deg_per_s2", attitude.max_slew_acceleration_deg_per_s2),
223
+ ("settling_time_s", attitude.settling_time_s),
224
+ ("max_off_nadir_deg", attitude.max_off_nadir_deg),
225
+ ("idle_power_w", resource.idle_power_w),
226
+ ("imaging_power_w", resource.imaging_power_w),
227
+ ("slew_power_w", resource.slew_power_w),
228
+ ("sunlit_charge_power_w", resource.sunlit_charge_power_w),
229
+ ):
230
+ _validate_non_negative(value, field_name=f"{context}.{field_name}")
231
+ satellites[sat_id] = SatelliteDef(
232
+ satellite_id=sat_id,
233
+ norad_catalog_id=_require_int(sat_raw, "norad_catalog_id", context),
234
+ tle_line1=tle_line1,
235
+ tle_line2=tle_line2,
236
+ sensor=sensor,
237
+ attitude_model=attitude,
238
+ resource_model=resource,
239
+ )
240
+
241
+ tasks: dict[str, TaskDef] = {}
242
+ for index, payload in enumerate(tasks_raw):
243
+ context = f"tasks.yaml.tasks[{index}]"
244
+ task_raw = _require_mapping(payload, context)
245
+ task_id = _require_str(task_raw, "task_id", context)
246
+ if task_id in tasks:
247
+ raise ValueError(f"Duplicate task_id: {task_id}")
248
+ release_time = _parse_iso_utc(
249
+ _require_str(task_raw, "release_time", context),
250
+ field_name=f"{context}.release_time",
251
+ )
252
+ due_time = _parse_iso_utc(
253
+ _require_str(task_raw, "due_time", context),
254
+ field_name=f"{context}.due_time",
255
+ )
256
+ required_duration_s = _require_int(task_raw, "required_duration_s", context)
257
+ weight_value = task_raw.get("weight", 1.0)
258
+ if not isinstance(weight_value, (int, float)):
259
+ raise ValueError(f"{context}.weight must be numeric")
260
+ weight = float(weight_value)
261
+ if release_time < mission.horizon_start or release_time > mission.horizon_end:
262
+ raise ValueError(f"{context}.release_time must lie inside the mission horizon")
263
+ if due_time < mission.horizon_start or due_time > mission.horizon_end:
264
+ raise ValueError(f"{context}.due_time must lie inside the mission horizon")
265
+ if due_time <= release_time:
266
+ raise ValueError(f"{context}.due_time must be after release_time")
267
+ if required_duration_s <= 0:
268
+ raise ValueError(f"{context}.required_duration_s must be > 0")
269
+ if weight <= 0.0:
270
+ raise ValueError(f"{context}.weight must be > 0")
271
+ for field_name, seconds in (
272
+ (f"{context}.release_time", (release_time - mission.horizon_start).total_seconds()),
273
+ (f"{context}.due_time", (due_time - mission.horizon_start).total_seconds()),
274
+ (f"{context}.required_duration_s", float(required_duration_s)),
275
+ ):
276
+ if not _is_aligned(seconds, mission.action_time_step_s):
277
+ raise ValueError(
278
+ f"{field_name} must align to the {mission.action_time_step_s}s action grid"
279
+ )
280
+ if required_duration_s > int((due_time - release_time).total_seconds()):
281
+ raise ValueError(f"{context}.required_duration_s exceeds the task window length")
282
+ sensor_type = _require_str(task_raw, "required_sensor_type", context)
283
+ if sensor_type not in {"visible", "infrared"}:
284
+ raise ValueError(
285
+ f"{context}.required_sensor_type must be 'visible' or 'infrared'"
286
+ )
287
+ tasks[task_id] = TaskDef(
288
+ task_id=task_id,
289
+ name=_require_str(task_raw, "name", context),
290
+ latitude_deg=_require_float(task_raw, "latitude_deg", context),
291
+ longitude_deg=_require_float(task_raw, "longitude_deg", context),
292
+ altitude_m=_require_float(task_raw, "altitude_m", context),
293
+ release_time=release_time,
294
+ due_time=due_time,
295
+ required_duration_s=required_duration_s,
296
+ required_sensor_type=sensor_type,
297
+ weight=weight,
298
+ target_ecef_m=brahe.position_geodetic_to_ecef(
299
+ [
300
+ _require_float(task_raw, "longitude_deg", context),
301
+ _require_float(task_raw, "latitude_deg", context),
302
+ _require_float(task_raw, "altitude_m", context),
303
+ ],
304
+ brahe.AngleFormat.DEGREES,
305
+ ),
306
+ )
307
+
308
+ return AeosspCase(
309
+ case_dir=case_path,
310
+ mission=mission,
311
+ satellites=satellites,
312
+ tasks=tasks,
313
+ )
314
+
315
+
316
+ def load_solution(solution_path: str | Path) -> AeosspSolution:
317
+ path = Path(solution_path).resolve()
318
+ payload = _load_json(path)
319
+ if not isinstance(payload, dict):
320
+ raise ValueError("solution.json must be a JSON object")
321
+ actions_raw = payload.get("actions", [])
322
+ if not isinstance(actions_raw, list):
323
+ raise ValueError("solution.json.actions must be a list")
324
+ actions: list[ObservationAction] = []
325
+ for index, payload in enumerate(actions_raw):
326
+ context = f"solution.json.actions[{index}]"
327
+ action_raw = _require_mapping(payload, context)
328
+ action_type = _require_str(action_raw, "type", context)
329
+ if action_type != "observation":
330
+ raise ValueError(f"{context}.type {action_type!r} is unsupported")
331
+ actions.append(
332
+ ObservationAction(
333
+ satellite_id=_require_str(action_raw, "satellite_id", context),
334
+ task_id=_require_str(action_raw, "task_id", context),
335
+ start_time=_parse_iso_utc(
336
+ _require_str(action_raw, "start_time", context),
337
+ field_name=f"{context}.start_time",
338
+ ),
339
+ end_time=_parse_iso_utc(
340
+ _require_str(action_raw, "end_time", context),
341
+ field_name=f"{context}.end_time",
342
+ ),
343
+ )
344
+ )
345
+ return AeosspSolution(actions=actions)
346
+
tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/models.py ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Data models for the aeossp_standard verifier."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import dataclass, field
6
+ from datetime import UTC, datetime
7
+ from pathlib import Path
8
+ from typing import Any
9
+ import json
10
+
11
+ import numpy as np
12
+
13
+
14
+ NUMERICAL_EPS = 1.0e-9
15
+
16
+
17
+ @dataclass(frozen=True)
18
+ class Mission:
19
+ case_id: str
20
+ horizon_start: datetime
21
+ horizon_end: datetime
22
+ action_time_step_s: int
23
+ geometry_sample_step_s: int
24
+ resource_sample_step_s: int
25
+
26
+ @property
27
+ def horizon_seconds(self) -> int:
28
+ seconds = (self.horizon_end - self.horizon_start).total_seconds()
29
+ if seconds < 0:
30
+ raise ValueError("mission horizon_end must be after horizon_start")
31
+ if abs(seconds - round(seconds)) > NUMERICAL_EPS:
32
+ raise ValueError("mission horizon must be an integer number of seconds")
33
+ return int(round(seconds))
34
+
35
+
36
+ @dataclass(frozen=True)
37
+ class Sensor:
38
+ sensor_type: str
39
+
40
+
41
+ @dataclass(frozen=True)
42
+ class AttitudeModel:
43
+ max_slew_velocity_deg_per_s: float
44
+ max_slew_acceleration_deg_per_s2: float
45
+ settling_time_s: float
46
+ max_off_nadir_deg: float
47
+
48
+
49
+ @dataclass(frozen=True)
50
+ class ResourceModel:
51
+ battery_capacity_wh: float
52
+ initial_battery_wh: float
53
+ idle_power_w: float
54
+ imaging_power_w: float
55
+ slew_power_w: float
56
+ sunlit_charge_power_w: float
57
+
58
+
59
+ @dataclass(frozen=True)
60
+ class SatelliteDef:
61
+ satellite_id: str
62
+ norad_catalog_id: int
63
+ tle_line1: str
64
+ tle_line2: str
65
+ sensor: Sensor
66
+ attitude_model: AttitudeModel
67
+ resource_model: ResourceModel
68
+
69
+
70
+ @dataclass(frozen=True)
71
+ class TaskDef:
72
+ task_id: str
73
+ name: str
74
+ latitude_deg: float
75
+ longitude_deg: float
76
+ altitude_m: float
77
+ release_time: datetime
78
+ due_time: datetime
79
+ required_duration_s: int
80
+ required_sensor_type: str
81
+ weight: float
82
+ target_ecef_m: np.ndarray
83
+
84
+
85
+ @dataclass(frozen=True)
86
+ class AeosspCase:
87
+ case_dir: Path
88
+ mission: Mission
89
+ satellites: dict[str, SatelliteDef]
90
+ tasks: dict[str, TaskDef]
91
+
92
+
93
+ @dataclass(frozen=True)
94
+ class ObservationAction:
95
+ satellite_id: str
96
+ task_id: str
97
+ start_time: datetime
98
+ end_time: datetime
99
+
100
+ @property
101
+ def duration_s(self) -> int:
102
+ seconds = (self.end_time - self.start_time).total_seconds()
103
+ if abs(seconds - round(seconds)) > NUMERICAL_EPS:
104
+ raise ValueError("Action duration must be an integer number of seconds")
105
+ return int(round(seconds))
106
+
107
+
108
+ @dataclass(frozen=True)
109
+ class AeosspSolution:
110
+ actions: list[ObservationAction]
111
+
112
+
113
+ @dataclass(frozen=True)
114
+ class ActionFailure:
115
+ action_index: int
116
+ satellite_id: str
117
+ task_id: str
118
+ reason: str
119
+ stage: str
120
+ time: datetime | None = None
121
+
122
+ def as_dict(self) -> dict[str, Any]:
123
+ return {
124
+ "action_index": self.action_index,
125
+ "satellite_id": self.satellite_id,
126
+ "task_id": self.task_id,
127
+ "reason": self.reason,
128
+ "stage": self.stage,
129
+ "time": self.time.astimezone(UTC).isoformat().replace("+00:00", "Z")
130
+ if self.time is not None
131
+ else None,
132
+ }
133
+
134
+
135
+ @dataclass(frozen=True)
136
+ class ManeuverWindow:
137
+ action_index: int
138
+ satellite_id: str
139
+ start_time: datetime
140
+ end_time: datetime
141
+ required_gap_s: float
142
+ slew_angle_deg: float
143
+ from_action_index: int | None
144
+ from_task_id: str | None
145
+ to_task_id: str
146
+
147
+ def as_dict(self) -> dict[str, Any]:
148
+ return {
149
+ "action_index": self.action_index,
150
+ "satellite_id": self.satellite_id,
151
+ "start_time": self.start_time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
152
+ "end_time": self.end_time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
153
+ "required_gap_s": self.required_gap_s,
154
+ "slew_angle_deg": self.slew_angle_deg,
155
+ "from_action_index": self.from_action_index,
156
+ "from_task_id": self.from_task_id,
157
+ "to_task_id": self.to_task_id,
158
+ }
159
+
160
+
161
+ @dataclass(frozen=True)
162
+ class ValidatedAction:
163
+ action_index: int
164
+ satellite_id: str
165
+ task_id: str
166
+ start_time: datetime
167
+ end_time: datetime
168
+
169
+ @property
170
+ def duration_s(self) -> int:
171
+ seconds = (self.end_time - self.start_time).total_seconds()
172
+ return int(round(seconds))
173
+
174
+ def as_dict(self) -> dict[str, Any]:
175
+ return {
176
+ "action_index": self.action_index,
177
+ "satellite_id": self.satellite_id,
178
+ "task_id": self.task_id,
179
+ "start_time": self.start_time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
180
+ "end_time": self.end_time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
181
+ "duration_s": self.duration_s,
182
+ }
183
+
184
+
185
+ @dataclass(frozen=True)
186
+ class TaskOutcome:
187
+ task_id: str
188
+ completed: bool
189
+ completion_time: datetime | None
190
+ completed_by_action_index: int | None
191
+ weight: float
192
+
193
+ def as_dict(self) -> dict[str, Any]:
194
+ return {
195
+ "task_id": self.task_id,
196
+ "completed": self.completed,
197
+ "completion_time": self.completion_time.astimezone(UTC).isoformat().replace("+00:00", "Z")
198
+ if self.completion_time is not None
199
+ else None,
200
+ "completed_by_action_index": self.completed_by_action_index,
201
+ "weight": self.weight,
202
+ }
203
+
204
+
205
+ @dataclass(frozen=True)
206
+ class BatteryTraceSegment:
207
+ satellite_id: str
208
+ start_time: datetime
209
+ end_time: datetime
210
+ battery_start_wh: float
211
+ battery_end_wh: float
212
+ load_power_w: float
213
+ charge_power_w: float
214
+ mode: str
215
+ active_action_index: int | None
216
+ active_task_id: str | None
217
+ active_maneuver_to_action_index: int | None
218
+
219
+ def as_dict(self) -> dict[str, Any]:
220
+ return {
221
+ "satellite_id": self.satellite_id,
222
+ "start_time": self.start_time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
223
+ "end_time": self.end_time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
224
+ "battery_start_wh": self.battery_start_wh,
225
+ "battery_end_wh": self.battery_end_wh,
226
+ "load_power_w": self.load_power_w,
227
+ "charge_power_w": self.charge_power_w,
228
+ "mode": self.mode,
229
+ "active_action_index": self.active_action_index,
230
+ "active_task_id": self.active_task_id,
231
+ "active_maneuver_to_action_index": self.active_maneuver_to_action_index,
232
+ }
233
+
234
+
235
+ @dataclass(frozen=True)
236
+ class TimelineEvent:
237
+ time: datetime
238
+ satellite_id: str
239
+ kind: str
240
+ action_index: int | None = None
241
+ task_id: str | None = None
242
+ detail: str | None = None
243
+
244
+ def as_dict(self) -> dict[str, Any]:
245
+ return {
246
+ "time": self.time.astimezone(UTC).isoformat().replace("+00:00", "Z"),
247
+ "satellite_id": self.satellite_id,
248
+ "kind": self.kind,
249
+ "action_index": self.action_index,
250
+ "task_id": self.task_id,
251
+ "detail": self.detail,
252
+ }
253
+
254
+
255
+ @dataclass(frozen=True)
256
+ class VerificationResult:
257
+ valid: bool
258
+ metrics: dict[str, Any]
259
+ violations: list[str]
260
+ diagnostics: dict[str, Any]
261
+
262
+ def to_dict(self) -> dict[str, Any]:
263
+ return {
264
+ "valid": self.valid,
265
+ "metrics": self.metrics,
266
+ "violations": self.violations,
267
+ "diagnostics": self.diagnostics,
268
+ }
269
+
270
+ def __str__(self) -> str: # pragma: no cover - convenience helper
271
+ return json.dumps(self.to_dict(), indent=2, sort_keys=True)
272
+
273
+
274
+ @dataclass(frozen=True)
275
+ class SolutionAnalysis:
276
+ case: AeosspCase
277
+ solution: AeosspSolution
278
+ result: VerificationResult
279
+ validated_actions: tuple[ValidatedAction, ...]
280
+ action_failures: tuple[ActionFailure, ...]
281
+ maneuver_windows: tuple[ManeuverWindow, ...]
282
+ task_outcomes: dict[str, TaskOutcome]
283
+ battery_traces: dict[str, tuple[BatteryTraceSegment, ...]] = field(repr=False)
284
+ per_satellite_resource_summary: dict[str, Any]
285
+ timeline_events: tuple[TimelineEvent, ...]
286
+ snapshot_candidates: tuple[datetime, ...]
tasks/aeossp_standard-test-case_0001/tests/benchmarks/aeossp_standard/verifier/run.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """CLI entrypoint for the aeossp_standard verifier."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+
8
+ from .engine import verify_solution
9
+
10
+
11
+ def build_parser() -> argparse.ArgumentParser:
12
+ parser = argparse.ArgumentParser(
13
+ description="Verify aeossp_standard observation schedules against a canonical case.",
14
+ )
15
+ parser.add_argument("case_dir", help="Path to one canonical case directory")
16
+ parser.add_argument("solution_path", help="Path to a single-case solution JSON file")
17
+ return parser
18
+
19
+
20
+ def main(argv: list[str] | None = None) -> int:
21
+ args = build_parser().parse_args(argv)
22
+ result = verify_solution(args.case_dir, args.solution_path)
23
+ print(
24
+ json.dumps(
25
+ {
26
+ "valid": result.valid,
27
+ "metrics": result.metrics,
28
+ "violations": result.violations,
29
+ "diagnostics": result.diagnostics,
30
+ },
31
+ indent=2,
32
+ sort_keys=True,
33
+ )
34
+ )
35
+ return 0 if result.valid else 1
36
+
37
+
38
+ if __name__ == "__main__":
39
+ raise SystemExit(main())
tasks/aeossp_standard-test-case_0001/tests/case/mission.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mission:
2
+ case_id: case_0001
3
+ horizon_start: '2026-04-14T04:00:00Z'
4
+ horizon_end: '2026-04-14T16:00:00Z'
5
+ action_time_step_s: 5
6
+ geometry_sample_step_s: 5
7
+ resource_sample_step_s: 10
8
+ propagation:
9
+ model: sgp4
10
+ frame_inertial: gcrf
11
+ frame_fixed: itrf
12
+ earth_shape: wgs84
13
+ scoring:
14
+ ranking_order:
15
+ - valid
16
+ - WCR
17
+ - CR
18
+ - TAT
19
+ - PC
20
+ reported_metrics:
21
+ - CR
22
+ - WCR
23
+ - TAT
24
+ - PC
tasks/aeossp_standard-test-case_0001/tests/case/satellites.yaml ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ satellites:
2
+ - satellite_id: sat_001
3
+ norad_catalog_id: 28051
4
+ tle_line1: 1 28051U 03046A 26103.92936350 .00000126 00000+0 55914-4 0 9994
5
+ tle_line2: 2 28051 98.1985 143.5711 0064246 173.9227 286.4737 14.36137850171300
6
+ sensor:
7
+ sensor_type: visible
8
+ attitude_model:
9
+ max_slew_velocity_deg_per_s: 1.8
10
+ max_slew_acceleration_deg_per_s2: 0.4
11
+ settling_time_s: 2.0
12
+ max_off_nadir_deg: 30.0
13
+ resource_model:
14
+ battery_capacity_wh: 1300.0
15
+ initial_battery_wh: 800.0
16
+ idle_power_w: 20.0
17
+ imaging_power_w: 420.0
18
+ slew_power_w: 360.0
19
+ sunlit_charge_power_w: 85.0
20
+ - satellite_id: sat_002
21
+ norad_catalog_id: 32783
22
+ tle_line1: 1 32783U 08021A 26103.91837750 .00000562 00000+0 82530-4 0 9990
23
+ tle_line2: 2 32783 97.7709 154.8031 0010967 327.3165 32.7367 14.79161859969302
24
+ sensor:
25
+ sensor_type: visible
26
+ attitude_model:
27
+ max_slew_velocity_deg_per_s: 1.0
28
+ max_slew_acceleration_deg_per_s2: 0.25
29
+ settling_time_s: 3.0
30
+ max_off_nadir_deg: 25.0
31
+ resource_model:
32
+ battery_capacity_wh: 1600.0
33
+ initial_battery_wh: 1000.0
34
+ idle_power_w: 25.0
35
+ imaging_power_w: 480.0
36
+ slew_power_w: 280.0
37
+ sunlit_charge_power_w: 100.0
38
+ - satellite_id: sat_003
39
+ norad_catalog_id: 33396
40
+ tle_line1: 1 33396U 08049A 26103.92431574 .00000228 00000+0 12693-3 0 9997
41
+ tle_line2: 2 33396 98.5635 163.2775 0001215 96.0005 264.1311 14.20124562908846
42
+ sensor:
43
+ sensor_type: visible
44
+ attitude_model:
45
+ max_slew_velocity_deg_per_s: 1.8
46
+ max_slew_acceleration_deg_per_s2: 0.4
47
+ settling_time_s: 2.0
48
+ max_off_nadir_deg: 30.0
49
+ resource_model:
50
+ battery_capacity_wh: 1300.0
51
+ initial_battery_wh: 800.0
52
+ idle_power_w: 20.0
53
+ imaging_power_w: 420.0
54
+ slew_power_w: 360.0
55
+ sunlit_charge_power_w: 85.0
56
+ - satellite_id: sat_004
57
+ norad_catalog_id: 35681
58
+ tle_line1: 1 35681U 09041A 26103.88486025 .00000736 00000+0 11600-3 0 9996
59
+ tle_line2: 2 35681 97.7323 263.9278 0002534 65.1442 295.0031 14.75171584897400
60
+ sensor:
61
+ sensor_type: visible
62
+ attitude_model:
63
+ max_slew_velocity_deg_per_s: 1.0
64
+ max_slew_acceleration_deg_per_s2: 0.25
65
+ settling_time_s: 3.0
66
+ max_off_nadir_deg: 25.0
67
+ resource_model:
68
+ battery_capacity_wh: 1600.0
69
+ initial_battery_wh: 1000.0
70
+ idle_power_w: 25.0
71
+ imaging_power_w: 480.0
72
+ slew_power_w: 280.0
73
+ sunlit_charge_power_w: 100.0
74
+ - satellite_id: sat_005
75
+ norad_catalog_id: 37387
76
+ tle_line1: 1 37387U 11015A 26103.89999973 -.00000252 00000+0 -94795-4 0 9999
77
+ tle_line2: 2 37387 98.7689 171.7738 0012401 84.9704 275.2889 14.21615505777047
78
+ sensor:
79
+ sensor_type: visible
80
+ attitude_model:
81
+ max_slew_velocity_deg_per_s: 1.0
82
+ max_slew_acceleration_deg_per_s2: 0.25
83
+ settling_time_s: 3.0
84
+ max_off_nadir_deg: 25.0
85
+ resource_model:
86
+ battery_capacity_wh: 1600.0
87
+ initial_battery_wh: 1000.0
88
+ idle_power_w: 25.0
89
+ imaging_power_w: 480.0
90
+ slew_power_w: 280.0
91
+ sunlit_charge_power_w: 100.0
92
+ - satellite_id: sat_006
93
+ norad_catalog_id: 38012
94
+ tle_line1: 1 38012U 11076F 26103.92452051 .00000031 00000+0 16420-4 0 9999
95
+ tle_line2: 2 38012 98.1996 179.8836 0001241 74.0617 41.3226 14.58569444762624
96
+ sensor:
97
+ sensor_type: visible
98
+ attitude_model:
99
+ max_slew_velocity_deg_per_s: 1.0
100
+ max_slew_acceleration_deg_per_s2: 0.25
101
+ settling_time_s: 3.0
102
+ max_off_nadir_deg: 25.0
103
+ resource_model:
104
+ battery_capacity_wh: 1600.0
105
+ initial_battery_wh: 1000.0
106
+ idle_power_w: 25.0
107
+ imaging_power_w: 480.0
108
+ slew_power_w: 280.0
109
+ sunlit_charge_power_w: 100.0
110
+ - satellite_id: sat_007
111
+ norad_catalog_id: 39019
112
+ tle_line1: 1 39019U 12068A 26103.93709536 .00000156 00000+0 43477-4 0 9993
113
+ tle_line2: 2 39019 98.1967 179.8664 0001151 77.9509 282.1820 14.58557094711482
114
+ sensor:
115
+ sensor_type: infrared
116
+ attitude_model:
117
+ max_slew_velocity_deg_per_s: 0.9
118
+ max_slew_acceleration_deg_per_s2: 0.15
119
+ settling_time_s: 3.5
120
+ max_off_nadir_deg: 20.0
121
+ resource_model:
122
+ battery_capacity_wh: 1800.0
123
+ initial_battery_wh: 1000.0
124
+ idle_power_w: 30.0
125
+ imaging_power_w: 680.0
126
+ slew_power_w: 320.0
127
+ sunlit_charge_power_w: 115.0
128
+ - satellite_id: sat_008
129
+ norad_catalog_id: 39084
130
+ tle_line1: 1 39084U 13008A 26103.95632536 .00000202 00000+0 54735-4 0 9998
131
+ tle_line2: 2 39084 98.1863 175.0919 0001171 93.9204 266.2128 14.57117273688546
132
+ sensor:
133
+ sensor_type: visible
134
+ attitude_model:
135
+ max_slew_velocity_deg_per_s: 1.0
136
+ max_slew_acceleration_deg_per_s2: 0.25
137
+ settling_time_s: 3.0
138
+ max_off_nadir_deg: 25.0
139
+ resource_model:
140
+ battery_capacity_wh: 1600.0
141
+ initial_battery_wh: 1000.0
142
+ idle_power_w: 25.0
143
+ imaging_power_w: 480.0
144
+ slew_power_w: 280.0
145
+ sunlit_charge_power_w: 100.0
146
+ - satellite_id: sat_009
147
+ norad_catalog_id: 40013
148
+ tle_line1: 1 40013U 14033D 26103.93736737 .00001307 00000+0 12918-3 0 9990
149
+ tle_line2: 2 40013 97.5922 340.6596 0001765 111.5119 248.6289 14.93547723628139
150
+ sensor:
151
+ sensor_type: visible
152
+ attitude_model:
153
+ max_slew_velocity_deg_per_s: 1.8
154
+ max_slew_acceleration_deg_per_s2: 0.4
155
+ settling_time_s: 2.0
156
+ max_off_nadir_deg: 30.0
157
+ resource_model:
158
+ battery_capacity_wh: 1300.0
159
+ initial_battery_wh: 800.0
160
+ idle_power_w: 20.0
161
+ imaging_power_w: 420.0
162
+ slew_power_w: 360.0
163
+ sunlit_charge_power_w: 85.0
164
+ - satellite_id: sat_010
165
+ norad_catalog_id: 42063
166
+ tle_line1: 1 42063U 17013A 26103.94175150 -.00000047 00000+0 -13025-5 0 9999
167
+ tle_line2: 2 42063 98.5661 179.6296 0001235 93.6242 266.5083 14.30820285475457
168
+ sensor:
169
+ sensor_type: visible
170
+ attitude_model:
171
+ max_slew_velocity_deg_per_s: 1.0
172
+ max_slew_acceleration_deg_per_s2: 0.25
173
+ settling_time_s: 3.0
174
+ max_off_nadir_deg: 25.0
175
+ resource_model:
176
+ battery_capacity_wh: 1600.0
177
+ initial_battery_wh: 1000.0
178
+ idle_power_w: 25.0
179
+ imaging_power_w: 480.0
180
+ slew_power_w: 280.0
181
+ sunlit_charge_power_w: 100.0
182
+ - satellite_id: sat_011
183
+ norad_catalog_id: 42988
184
+ tle_line1: 1 42988U 17068B 26103.65081329 .00006062 00000+0 18960-3 0 9999
185
+ tle_line2: 2 42988 97.4398 239.9634 0001252 115.0478 245.0894 15.33517382472468
186
+ sensor:
187
+ sensor_type: infrared
188
+ attitude_model:
189
+ max_slew_velocity_deg_per_s: 0.9
190
+ max_slew_acceleration_deg_per_s2: 0.15
191
+ settling_time_s: 3.5
192
+ max_off_nadir_deg: 20.0
193
+ resource_model:
194
+ battery_capacity_wh: 1800.0
195
+ initial_battery_wh: 1000.0
196
+ idle_power_w: 30.0
197
+ imaging_power_w: 680.0
198
+ slew_power_w: 320.0
199
+ sunlit_charge_power_w: 115.0
200
+ - satellite_id: sat_012
201
+ norad_catalog_id: 42991
202
+ tle_line1: 1 42991U 17068E 26103.83844932 .00006341 00000+0 18525-3 0 9997
203
+ tle_line2: 2 42991 97.4427 240.6998 0005447 348.9947 11.1177 15.35651042472498
204
+ sensor:
205
+ sensor_type: visible
206
+ attitude_model:
207
+ max_slew_velocity_deg_per_s: 1.0
208
+ max_slew_acceleration_deg_per_s2: 0.25
209
+ settling_time_s: 3.0
210
+ max_off_nadir_deg: 25.0
211
+ resource_model:
212
+ battery_capacity_wh: 1600.0
213
+ initial_battery_wh: 1000.0
214
+ idle_power_w: 25.0
215
+ imaging_power_w: 480.0
216
+ slew_power_w: 280.0
217
+ sunlit_charge_power_w: 100.0
218
+ - satellite_id: sat_013
219
+ norad_catalog_id: 43111
220
+ tle_line1: 1 43111U 18004A 26104.12260037 .00002784 00000+0 13508-3 0 9997
221
+ tle_line2: 2 43111 97.4095 164.6288 0002452 119.7879 240.3599 15.19306551457606
222
+ sensor:
223
+ sensor_type: visible
224
+ attitude_model:
225
+ max_slew_velocity_deg_per_s: 1.8
226
+ max_slew_acceleration_deg_per_s2: 0.4
227
+ settling_time_s: 2.0
228
+ max_off_nadir_deg: 30.0
229
+ resource_model:
230
+ battery_capacity_wh: 1300.0
231
+ initial_battery_wh: 800.0
232
+ idle_power_w: 20.0
233
+ imaging_power_w: 420.0
234
+ slew_power_w: 360.0
235
+ sunlit_charge_power_w: 85.0
236
+ - satellite_id: sat_014
237
+ norad_catalog_id: 43259
238
+ tle_line1: 1 43259U 18031A 26104.11950488 .00000002 00000+0 76800-5 0 9992
239
+ tle_line2: 2 43259 98.0579 166.8090 0002685 187.3457 172.7713 14.76430187433244
240
+ sensor:
241
+ sensor_type: visible
242
+ attitude_model:
243
+ max_slew_velocity_deg_per_s: 1.0
244
+ max_slew_acceleration_deg_per_s2: 0.25
245
+ settling_time_s: 3.0
246
+ max_off_nadir_deg: 25.0
247
+ resource_model:
248
+ battery_capacity_wh: 1600.0
249
+ initial_battery_wh: 1000.0
250
+ idle_power_w: 25.0
251
+ imaging_power_w: 480.0
252
+ slew_power_w: 280.0
253
+ sunlit_charge_power_w: 100.0
254
+ - satellite_id: sat_015
255
+ norad_catalog_id: 43260
256
+ tle_line1: 1 43260U 18031B 26104.16530807 .00000436 00000+0 70146-4 0 9995
257
+ tle_line2: 2 43260 98.0571 166.7195 0001054 283.4938 76.6154 14.76417197433241
258
+ sensor:
259
+ sensor_type: infrared
260
+ attitude_model:
261
+ max_slew_velocity_deg_per_s: 0.9
262
+ max_slew_acceleration_deg_per_s2: 0.15
263
+ settling_time_s: 3.5
264
+ max_off_nadir_deg: 20.0
265
+ resource_model:
266
+ battery_capacity_wh: 1800.0
267
+ initial_battery_wh: 1000.0
268
+ idle_power_w: 30.0
269
+ imaging_power_w: 680.0
270
+ slew_power_w: 320.0
271
+ sunlit_charge_power_w: 115.0
272
+ - satellite_id: sat_016
273
+ norad_catalog_id: 43262
274
+ tle_line1: 1 43262U 18031D 26103.93793093 .00000573 00000+0 89849-4 0 9991
275
+ tle_line2: 2 43262 98.0583 166.6754 0000885 62.3940 297.7360 14.76451671433200
276
+ sensor:
277
+ sensor_type: visible
278
+ attitude_model:
279
+ max_slew_velocity_deg_per_s: 1.0
280
+ max_slew_acceleration_deg_per_s2: 0.25
281
+ settling_time_s: 3.0
282
+ max_off_nadir_deg: 25.0
283
+ resource_model:
284
+ battery_capacity_wh: 1600.0
285
+ initial_battery_wh: 1000.0
286
+ idle_power_w: 25.0
287
+ imaging_power_w: 480.0
288
+ slew_power_w: 280.0
289
+ sunlit_charge_power_w: 100.0
290
+ - satellite_id: sat_017
291
+ norad_catalog_id: 48079
292
+ tle_line1: 1 48079U 21026A 26103.94185373 .00000257 00000+0 40677-4 0 9992
293
+ tle_line2: 2 48079 97.9928 102.3896 0006302 84.5923 275.6008 14.80244388272253
294
+ sensor:
295
+ sensor_type: infrared
296
+ attitude_model:
297
+ max_slew_velocity_deg_per_s: 0.9
298
+ max_slew_acceleration_deg_per_s2: 0.15
299
+ settling_time_s: 3.5
300
+ max_off_nadir_deg: 20.0
301
+ resource_model:
302
+ battery_capacity_wh: 1800.0
303
+ initial_battery_wh: 1000.0
304
+ idle_power_w: 30.0
305
+ imaging_power_w: 680.0
306
+ slew_power_w: 320.0
307
+ sunlit_charge_power_w: 115.0
308
+ - satellite_id: sat_018
309
+ norad_catalog_id: 48268
310
+ tle_line1: 1 48268U 21034A 26103.96224166 -.00000034 00000+0 22549-5 0 9990
311
+ tle_line2: 2 48268 97.8933 179.6508 0001284 93.5777 266.5583 14.81672073268143
312
+ sensor:
313
+ sensor_type: visible
314
+ attitude_model:
315
+ max_slew_velocity_deg_per_s: 1.8
316
+ max_slew_acceleration_deg_per_s2: 0.4
317
+ settling_time_s: 2.0
318
+ max_off_nadir_deg: 30.0
319
+ resource_model:
320
+ battery_capacity_wh: 1300.0
321
+ initial_battery_wh: 800.0
322
+ idle_power_w: 20.0
323
+ imaging_power_w: 420.0
324
+ slew_power_w: 360.0
325
+ sunlit_charge_power_w: 85.0
326
+ - satellite_id: sat_019
327
+ norad_catalog_id: 52912
328
+ tle_line1: 1 52912U 22069A 26103.95907240 .00000113 00000+0 21656-4 0 9994
329
+ tle_line2: 2 52912 97.8359 353.4264 0001854 52.2815 307.8565 14.79930234205115
330
+ sensor:
331
+ sensor_type: visible
332
+ attitude_model:
333
+ max_slew_velocity_deg_per_s: 1.8
334
+ max_slew_acceleration_deg_per_s2: 0.4
335
+ settling_time_s: 2.0
336
+ max_off_nadir_deg: 30.0
337
+ resource_model:
338
+ battery_capacity_wh: 1300.0
339
+ initial_battery_wh: 800.0
340
+ idle_power_w: 20.0
341
+ imaging_power_w: 420.0
342
+ slew_power_w: 360.0
343
+ sunlit_charge_power_w: 85.0
344
+ - satellite_id: sat_020
345
+ norad_catalog_id: 60989
346
+ tle_line1: 1 60989U 24157A 26103.90679551 .00000060 00000+0 39456-4 0 9991
347
+ tle_line2: 2 60989 98.5642 179.6103 0001350 108.6675 251.4655 14.30813258 83797
348
+ sensor:
349
+ sensor_type: visible
350
+ attitude_model:
351
+ max_slew_velocity_deg_per_s: 1.0
352
+ max_slew_acceleration_deg_per_s2: 0.25
353
+ settling_time_s: 3.0
354
+ max_off_nadir_deg: 25.0
355
+ resource_model:
356
+ battery_capacity_wh: 1600.0
357
+ initial_battery_wh: 1000.0
358
+ idle_power_w: 25.0
359
+ imaging_power_w: 480.0
360
+ slew_power_w: 280.0
361
+ sunlit_charge_power_w: 100.0
tasks/aeossp_standard-test-case_0001/tests/case/tasks.yaml ADDED
The diff for this file is too large to render. See raw diff
 
tasks/aeossp_standard-test-case_0001/tests/profile.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "benchmark": "aeossp_standard",
3
+ "metrics": [
4
+ {
5
+ "name": "WCR",
6
+ "path": "metrics.WCR",
7
+ "direction": "maximize",
8
+ "role": "primary"
9
+ },
10
+ {
11
+ "name": "CR",
12
+ "path": "metrics.CR",
13
+ "direction": "maximize",
14
+ "role": "secondary"
15
+ },
16
+ {
17
+ "name": "TAT",
18
+ "path": "metrics.TAT",
19
+ "direction": "minimize",
20
+ "role": "secondary"
21
+ },
22
+ {
23
+ "name": "PC",
24
+ "path": "metrics.PC",
25
+ "direction": "minimize",
26
+ "role": "secondary"
27
+ }
28
+ ],
29
+ "solution_filename": "solution.json",
30
+ "verifier_command": [
31
+ "-m",
32
+ "benchmarks.aeossp_standard.verifier.run"
33
+ ]
34
+ }
tasks/aeossp_standard-test-case_0001/tests/score.py ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Call an unmodified benchmark verifier and expose its native metrics to Harbor."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ import math
8
+ from pathlib import Path
9
+ import re
10
+ import shutil
11
+ import subprocess
12
+ import sys
13
+
14
+
15
+ TEXT_METRICS = {
16
+ "spot5": {"computed_profit": "Computed Profit", "computed_weight": "Computed Weight", "computed_selected": "Selected Photos"},
17
+ "satnet": {"score_hours": "Total tracking hours", "n_tracks": "Tracks", "n_satisfied_requests": "Satisfied requests", "u_rms": "U_rms", "u_max": "U_max"},
18
+ }
19
+
20
+
21
+ def parse_report(benchmark: str, stdout: str, returncode: int) -> dict:
22
+ if returncode not in (0, 1):
23
+ raise RuntimeError(f"Verifier exited with {returncode}; inspect verifier.stderr")
24
+ if benchmark in TEXT_METRICS:
25
+ status = re.search(r"^Status:\s*(VALID|INVALID)\s*$", stdout, re.MULTILINE)
26
+ if status is None:
27
+ raise ValueError("Verifier output has no validity status")
28
+ metrics = {}
29
+ for name, label in TEXT_METRICS[benchmark].items():
30
+ match = re.search(rf"^{re.escape(label)}:\s*([-+\d.eE]+)", stdout, re.MULTILINE)
31
+ if match is None:
32
+ raise ValueError(f"Verifier output has no {label}")
33
+ metrics[name] = float(match.group(1))
34
+ report = {"valid": status.group(1) == "VALID", "metrics": metrics}
35
+ else:
36
+ report = json.loads(stdout)
37
+ if benchmark == "revisit_constellation":
38
+ report["valid"] = report["is_valid"]
39
+ if type(report.get("valid")) is not bool or not isinstance(report.get("metrics"), dict):
40
+ raise ValueError("Verifier output must contain valid and metrics")
41
+ if report["valid"] != (returncode == 0):
42
+ raise ValueError("Verifier validity and exit status disagree")
43
+ return report
44
+
45
+
46
+ def score(task_tests: Path, solution_dir: Path, output: Path) -> dict:
47
+ profile = json.loads((task_tests / "profile.json").read_text())
48
+ benchmark = profile["benchmark"]
49
+ output.mkdir(parents=True, exist_ok=True)
50
+ shutil.copyfile(task_tests / "task-config.json", output / "task-config.json")
51
+ # One required filename makes missing/ambiguous submissions explicit.
52
+ solution = solution_dir / profile["solution_filename"]
53
+ if not solution.is_file():
54
+ report = {"valid": False, "metrics": {}, "errors": [f"Missing {solution.name}"], "status": "missing_solution"}
55
+ else:
56
+ command = [sys.executable, *profile["verifier_command"], str(task_tests / "case"), str(solution.resolve())]
57
+ if benchmark in TEXT_METRICS:
58
+ command.append("--verbose")
59
+ result = subprocess.run(command, cwd=task_tests, capture_output=True, text=True)
60
+ (output / "verifier.stdout").write_text(result.stdout)
61
+ (output / "verifier.stderr").write_text(result.stderr)
62
+ report = parse_report(benchmark, result.stdout, result.returncode)
63
+ report["status"] = "valid" if report["valid"] else "invalid"
64
+ (output / "report.json").write_text(json.dumps(report, indent=2, allow_nan=False) + "\n")
65
+ rewards = {"valid": float(report["valid"])}
66
+ for metric in profile["metrics"]:
67
+ value = report["metrics"].get(metric["name"])
68
+ if isinstance(value, (int, float)) and not isinstance(value, bool) and math.isfinite(value):
69
+ rewards[f"{benchmark}/{metric['name']}"] = value
70
+ (output / "reward.json").write_text(json.dumps(rewards, indent=2, allow_nan=False) + "\n")
71
+ return report
72
+
73
+
74
+ def main() -> None:
75
+ parser = argparse.ArgumentParser(description=__doc__)
76
+ parser.add_argument("--tests", type=Path, default=Path("/tests"))
77
+ parser.add_argument("--solution", type=Path, default=Path("/workspace/solution"))
78
+ parser.add_argument("--output", type=Path, default=Path("/logs/verifier"))
79
+ args = parser.parse_args()
80
+ score(args.tests.resolve(), args.solution.resolve(), args.output.resolve())
81
+
82
+
83
+ if __name__ == "__main__":
84
+ main()
tasks/aeossp_standard-test-case_0001/tests/task-config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.3",
3
+ "artifacts": [
4
+ {
5
+ "source": "/workspace/solution",
6
+ "destination": "solution"
7
+ }
8
+ ],
9
+ "task": {
10
+ "name": "astroagentbench/aeossp_standard-test-case_0001"
11
+ },
12
+ "metadata": {
13
+ "benchmark": "aeossp_standard",
14
+ "split": "test",
15
+ "case_id": "case_0001",
16
+ "source_commit": "6f5b9d21b1efb2ca2ee6fcabdc338a9d077612cb",
17
+ "source_dirty": false,
18
+ "case_sha256": "81213315b8f4e84e07479e8048313c9102928c829bce1054cfad4ca58c84dcc4",
19
+ "verifier_sha256": "a5372c13197394134bf55297a1d04ec8d0610f4fd22e2ec7b247e21c6fa0db9a",
20
+ "runtime_image": "ghcr.io/mtrya/astroagentbench-python@sha256:fe9733cad55519aa08dd0db9abb51444051ef5f53d6ac1ef0b4b6592491437d1",
21
+ "solution_filename": "solution.json"
22
+ },
23
+ "environment": {
24
+ "cpus": 8,
25
+ "memory_mb": 16384,
26
+ "storage_mb": 10240,
27
+ "network_mode": "public"
28
+ },
29
+ "agent": {
30
+ "timeout_sec": 7200
31
+ },
32
+ "verifier": {
33
+ "environment_mode": "separate",
34
+ "timeout_sec": 600
35
+ }
36
+ }
tasks/aeossp_standard-test-case_0001/tests/test.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ python /tests/score.py
tasks/aeossp_standard-test-case_0002/environment/Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM ghcr.io/mtrya/astroagentbench-python@sha256:fe9733cad55519aa08dd0db9abb51444051ef5f53d6ac1ef0b4b6592491437d1
2
+ WORKDIR /workspace
3
+ COPY case /workspace/case
4
+ RUN mkdir -p /workspace/solution
tasks/aeossp_standard-test-case_0002/environment/case/mission.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mission:
2
+ case_id: case_0002
3
+ horizon_start: '2026-04-14T06:00:00Z'
4
+ horizon_end: '2026-04-14T18:00:00Z'
5
+ action_time_step_s: 5
6
+ geometry_sample_step_s: 5
7
+ resource_sample_step_s: 10
8
+ propagation:
9
+ model: sgp4
10
+ frame_inertial: gcrf
11
+ frame_fixed: itrf
12
+ earth_shape: wgs84
13
+ scoring:
14
+ ranking_order:
15
+ - valid
16
+ - WCR
17
+ - CR
18
+ - TAT
19
+ - PC
20
+ reported_metrics:
21
+ - CR
22
+ - WCR
23
+ - TAT
24
+ - PC
tasks/aeossp_standard-test-case_0002/environment/case/satellites.yaml ADDED
@@ -0,0 +1,433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ satellites:
2
+ - satellite_id: sat_001
3
+ norad_catalog_id: 28051
4
+ tle_line1: 1 28051U 03046A 26103.92936350 .00000126 00000+0 55914-4 0 9994
5
+ tle_line2: 2 28051 98.1985 143.5711 0064246 173.9227 286.4737 14.36137850171300
6
+ sensor:
7
+ sensor_type: infrared
8
+ attitude_model:
9
+ max_slew_velocity_deg_per_s: 0.9
10
+ max_slew_acceleration_deg_per_s2: 0.15
11
+ settling_time_s: 3.5
12
+ max_off_nadir_deg: 20.0
13
+ resource_model:
14
+ battery_capacity_wh: 1800.0
15
+ initial_battery_wh: 1000.0
16
+ idle_power_w: 30.0
17
+ imaging_power_w: 680.0
18
+ slew_power_w: 320.0
19
+ sunlit_charge_power_w: 115.0
20
+ - satellite_id: sat_002
21
+ norad_catalog_id: 28649
22
+ tle_line1: 1 28649U 05017A 26103.78459344 .00000718 00000+0 78137-4 0 9993
23
+ tle_line2: 2 28649 97.5369 129.7615 0000594 88.5323 271.5964 14.90885377134226
24
+ sensor:
25
+ sensor_type: visible
26
+ attitude_model:
27
+ max_slew_velocity_deg_per_s: 1.8
28
+ max_slew_acceleration_deg_per_s2: 0.4
29
+ settling_time_s: 2.0
30
+ max_off_nadir_deg: 30.0
31
+ resource_model:
32
+ battery_capacity_wh: 1300.0
33
+ initial_battery_wh: 800.0
34
+ idle_power_w: 20.0
35
+ imaging_power_w: 420.0
36
+ slew_power_w: 360.0
37
+ sunlit_charge_power_w: 85.0
38
+ - satellite_id: sat_003
39
+ norad_catalog_id: 32783
40
+ tle_line1: 1 32783U 08021A 26103.91837750 .00000562 00000+0 82530-4 0 9990
41
+ tle_line2: 2 32783 97.7709 154.8031 0010967 327.3165 32.7367 14.79161859969302
42
+ sensor:
43
+ sensor_type: visible
44
+ attitude_model:
45
+ max_slew_velocity_deg_per_s: 1.0
46
+ max_slew_acceleration_deg_per_s2: 0.25
47
+ settling_time_s: 3.0
48
+ max_off_nadir_deg: 25.0
49
+ resource_model:
50
+ battery_capacity_wh: 1600.0
51
+ initial_battery_wh: 1000.0
52
+ idle_power_w: 25.0
53
+ imaging_power_w: 480.0
54
+ slew_power_w: 280.0
55
+ sunlit_charge_power_w: 100.0
56
+ - satellite_id: sat_004
57
+ norad_catalog_id: 33396
58
+ tle_line1: 1 33396U 08049A 26103.92431574 .00000228 00000+0 12693-3 0 9997
59
+ tle_line2: 2 33396 98.5635 163.2775 0001215 96.0005 264.1311 14.20124562908846
60
+ sensor:
61
+ sensor_type: visible
62
+ attitude_model:
63
+ max_slew_velocity_deg_per_s: 1.0
64
+ max_slew_acceleration_deg_per_s2: 0.25
65
+ settling_time_s: 3.0
66
+ max_off_nadir_deg: 25.0
67
+ resource_model:
68
+ battery_capacity_wh: 1600.0
69
+ initial_battery_wh: 1000.0
70
+ idle_power_w: 25.0
71
+ imaging_power_w: 480.0
72
+ slew_power_w: 280.0
73
+ sunlit_charge_power_w: 100.0
74
+ - satellite_id: sat_005
75
+ norad_catalog_id: 36795
76
+ tle_line1: 1 36795U 10035A 26103.91725973 .00000606 00000+0 89742-4 0 9999
77
+ tle_line2: 2 36795 98.0028 154.8560 0012216 44.0868 316.1314 14.78652641850354
78
+ sensor:
79
+ sensor_type: visible
80
+ attitude_model:
81
+ max_slew_velocity_deg_per_s: 1.0
82
+ max_slew_acceleration_deg_per_s2: 0.25
83
+ settling_time_s: 3.0
84
+ max_off_nadir_deg: 25.0
85
+ resource_model:
86
+ battery_capacity_wh: 1600.0
87
+ initial_battery_wh: 1000.0
88
+ idle_power_w: 25.0
89
+ imaging_power_w: 480.0
90
+ slew_power_w: 280.0
91
+ sunlit_charge_power_w: 100.0
92
+ - satellite_id: sat_006
93
+ norad_catalog_id: 37387
94
+ tle_line1: 1 37387U 11015A 26103.89999973 -.00000252 00000+0 -94795-4 0 9999
95
+ tle_line2: 2 37387 98.7689 171.7738 0012401 84.9704 275.2889 14.21615505777047
96
+ sensor:
97
+ sensor_type: visible
98
+ attitude_model:
99
+ max_slew_velocity_deg_per_s: 1.8
100
+ max_slew_acceleration_deg_per_s2: 0.4
101
+ settling_time_s: 2.0
102
+ max_off_nadir_deg: 30.0
103
+ resource_model:
104
+ battery_capacity_wh: 1300.0
105
+ initial_battery_wh: 800.0
106
+ idle_power_w: 20.0
107
+ imaging_power_w: 420.0
108
+ slew_power_w: 360.0
109
+ sunlit_charge_power_w: 85.0
110
+ - satellite_id: sat_007
111
+ norad_catalog_id: 39084
112
+ tle_line1: 1 39084U 13008A 26103.95632536 .00000202 00000+0 54735-4 0 9998
113
+ tle_line2: 2 39084 98.1863 175.0919 0001171 93.9204 266.2128 14.57117273688546
114
+ sensor:
115
+ sensor_type: visible
116
+ attitude_model:
117
+ max_slew_velocity_deg_per_s: 1.0
118
+ max_slew_acceleration_deg_per_s2: 0.25
119
+ settling_time_s: 3.0
120
+ max_off_nadir_deg: 25.0
121
+ resource_model:
122
+ battery_capacity_wh: 1600.0
123
+ initial_battery_wh: 1000.0
124
+ idle_power_w: 25.0
125
+ imaging_power_w: 480.0
126
+ slew_power_w: 280.0
127
+ sunlit_charge_power_w: 100.0
128
+ - satellite_id: sat_008
129
+ norad_catalog_id: 39418
130
+ tle_line1: 1 39418U 13066C 26103.89800586 .00001935 00000+0 11389-3 0 9999
131
+ tle_line2: 2 39418 97.3884 155.3394 0021902 172.5671 187.5889 15.12606827678767
132
+ sensor:
133
+ sensor_type: visible
134
+ attitude_model:
135
+ max_slew_velocity_deg_per_s: 1.0
136
+ max_slew_acceleration_deg_per_s2: 0.25
137
+ settling_time_s: 3.0
138
+ max_off_nadir_deg: 25.0
139
+ resource_model:
140
+ battery_capacity_wh: 1600.0
141
+ initial_battery_wh: 1000.0
142
+ idle_power_w: 25.0
143
+ imaging_power_w: 480.0
144
+ slew_power_w: 280.0
145
+ sunlit_charge_power_w: 100.0
146
+ - satellite_id: sat_009
147
+ norad_catalog_id: 40013
148
+ tle_line1: 1 40013U 14033D 26103.93736737 .00001307 00000+0 12918-3 0 9990
149
+ tle_line2: 2 40013 97.5922 340.6596 0001765 111.5119 248.6289 14.93547723628139
150
+ sensor:
151
+ sensor_type: infrared
152
+ attitude_model:
153
+ max_slew_velocity_deg_per_s: 0.9
154
+ max_slew_acceleration_deg_per_s2: 0.15
155
+ settling_time_s: 3.5
156
+ max_off_nadir_deg: 20.0
157
+ resource_model:
158
+ battery_capacity_wh: 1800.0
159
+ initial_battery_wh: 1000.0
160
+ idle_power_w: 30.0
161
+ imaging_power_w: 680.0
162
+ slew_power_w: 320.0
163
+ sunlit_charge_power_w: 115.0
164
+ - satellite_id: sat_010
165
+ norad_catalog_id: 40053
166
+ tle_line1: 1 40053U 14034A 26103.93758432 .00000121 00000+0 34006-4 0 9997
167
+ tle_line2: 2 40053 98.0684 168.0716 0001643 85.6600 274.4789 14.60901965627756
168
+ sensor:
169
+ sensor_type: visible
170
+ attitude_model:
171
+ max_slew_velocity_deg_per_s: 1.8
172
+ max_slew_acceleration_deg_per_s2: 0.4
173
+ settling_time_s: 2.0
174
+ max_off_nadir_deg: 30.0
175
+ resource_model:
176
+ battery_capacity_wh: 1300.0
177
+ initial_battery_wh: 800.0
178
+ idle_power_w: 20.0
179
+ imaging_power_w: 420.0
180
+ slew_power_w: 360.0
181
+ sunlit_charge_power_w: 85.0
182
+ - satellite_id: sat_011
183
+ norad_catalog_id: 40118
184
+ tle_line1: 1 40118U 14049A 26103.98557118 -.00000071 00000+0 -23137-5 0 9998
185
+ tle_line2: 2 40118 98.0162 168.2418 0008785 82.4719 277.7491 14.80823040629735
186
+ sensor:
187
+ sensor_type: visible
188
+ attitude_model:
189
+ max_slew_velocity_deg_per_s: 1.0
190
+ max_slew_acceleration_deg_per_s2: 0.25
191
+ settling_time_s: 3.0
192
+ max_off_nadir_deg: 25.0
193
+ resource_model:
194
+ battery_capacity_wh: 1600.0
195
+ initial_battery_wh: 1000.0
196
+ idle_power_w: 25.0
197
+ imaging_power_w: 480.0
198
+ slew_power_w: 280.0
199
+ sunlit_charge_power_w: 100.0
200
+ - satellite_id: sat_012
201
+ norad_catalog_id: 41556
202
+ tle_line1: 1 41556U 16033A 26103.92916150 .00003508 00000+0 15880-3 0 9999
203
+ tle_line2: 2 41556 97.3856 180.9285 0014429 156.8761 203.3127 15.21454593548215
204
+ sensor:
205
+ sensor_type: visible
206
+ attitude_model:
207
+ max_slew_velocity_deg_per_s: 1.0
208
+ max_slew_acceleration_deg_per_s2: 0.25
209
+ settling_time_s: 3.0
210
+ max_off_nadir_deg: 25.0
211
+ resource_model:
212
+ battery_capacity_wh: 1600.0
213
+ initial_battery_wh: 1000.0
214
+ idle_power_w: 25.0
215
+ imaging_power_w: 480.0
216
+ slew_power_w: 280.0
217
+ sunlit_charge_power_w: 100.0
218
+ - satellite_id: sat_013
219
+ norad_catalog_id: 42063
220
+ tle_line1: 1 42063U 17013A 26103.94175150 -.00000047 00000+0 -13025-5 0 9999
221
+ tle_line2: 2 42063 98.5661 179.6296 0001235 93.6242 266.5083 14.30820285475457
222
+ sensor:
223
+ sensor_type: visible
224
+ attitude_model:
225
+ max_slew_velocity_deg_per_s: 1.8
226
+ max_slew_acceleration_deg_per_s2: 0.4
227
+ settling_time_s: 2.0
228
+ max_off_nadir_deg: 30.0
229
+ resource_model:
230
+ battery_capacity_wh: 1300.0
231
+ initial_battery_wh: 800.0
232
+ idle_power_w: 20.0
233
+ imaging_power_w: 420.0
234
+ slew_power_w: 360.0
235
+ sunlit_charge_power_w: 85.0
236
+ - satellite_id: sat_014
237
+ norad_catalog_id: 42767
238
+ tle_line1: 1 42767U 17036C 26104.09092135 -.00000035 00000+0 15208-5 0 9994
239
+ tle_line2: 2 42767 97.4333 164.9288 0003685 154.9538 205.1876 15.19227050488418
240
+ sensor:
241
+ sensor_type: visible
242
+ attitude_model:
243
+ max_slew_velocity_deg_per_s: 1.8
244
+ max_slew_acceleration_deg_per_s2: 0.4
245
+ settling_time_s: 2.0
246
+ max_off_nadir_deg: 30.0
247
+ resource_model:
248
+ battery_capacity_wh: 1300.0
249
+ initial_battery_wh: 800.0
250
+ idle_power_w: 20.0
251
+ imaging_power_w: 420.0
252
+ slew_power_w: 360.0
253
+ sunlit_charge_power_w: 85.0
254
+ - satellite_id: sat_015
255
+ norad_catalog_id: 42991
256
+ tle_line1: 1 42991U 17068E 26103.83844932 .00006341 00000+0 18525-3 0 9997
257
+ tle_line2: 2 42991 97.4427 240.6998 0005447 348.9947 11.1177 15.35651042472498
258
+ sensor:
259
+ sensor_type: infrared
260
+ attitude_model:
261
+ max_slew_velocity_deg_per_s: 0.9
262
+ max_slew_acceleration_deg_per_s2: 0.15
263
+ settling_time_s: 3.5
264
+ max_off_nadir_deg: 20.0
265
+ resource_model:
266
+ battery_capacity_wh: 1800.0
267
+ initial_battery_wh: 1000.0
268
+ idle_power_w: 30.0
269
+ imaging_power_w: 680.0
270
+ slew_power_w: 320.0
271
+ sunlit_charge_power_w: 115.0
272
+ - satellite_id: sat_016
273
+ norad_catalog_id: 43259
274
+ tle_line1: 1 43259U 18031A 26104.11950488 .00000002 00000+0 76800-5 0 9992
275
+ tle_line2: 2 43259 98.0579 166.8090 0002685 187.3457 172.7713 14.76430187433244
276
+ sensor:
277
+ sensor_type: visible
278
+ attitude_model:
279
+ max_slew_velocity_deg_per_s: 1.8
280
+ max_slew_acceleration_deg_per_s2: 0.4
281
+ settling_time_s: 2.0
282
+ max_off_nadir_deg: 30.0
283
+ resource_model:
284
+ battery_capacity_wh: 1300.0
285
+ initial_battery_wh: 800.0
286
+ idle_power_w: 20.0
287
+ imaging_power_w: 420.0
288
+ slew_power_w: 360.0
289
+ sunlit_charge_power_w: 85.0
290
+ - satellite_id: sat_017
291
+ norad_catalog_id: 43262
292
+ tle_line1: 1 43262U 18031D 26103.93793093 .00000573 00000+0 89849-4 0 9991
293
+ tle_line2: 2 43262 98.0583 166.6754 0000885 62.3940 297.7360 14.76451671433200
294
+ sensor:
295
+ sensor_type: visible
296
+ attitude_model:
297
+ max_slew_velocity_deg_per_s: 1.8
298
+ max_slew_acceleration_deg_per_s2: 0.4
299
+ settling_time_s: 2.0
300
+ max_off_nadir_deg: 30.0
301
+ resource_model:
302
+ battery_capacity_wh: 1300.0
303
+ initial_battery_wh: 800.0
304
+ idle_power_w: 20.0
305
+ imaging_power_w: 420.0
306
+ slew_power_w: 360.0
307
+ sunlit_charge_power_w: 85.0
308
+ - satellite_id: sat_018
309
+ norad_catalog_id: 43484
310
+ tle_line1: 1 43484U 18048A 26103.96554721 .00000418 00000+0 66848-4 0 9993
311
+ tle_line2: 2 43484 97.7811 168.9881 0012819 29.3816 330.8113 14.76556691423917
312
+ sensor:
313
+ sensor_type: visible
314
+ attitude_model:
315
+ max_slew_velocity_deg_per_s: 1.8
316
+ max_slew_acceleration_deg_per_s2: 0.4
317
+ settling_time_s: 2.0
318
+ max_off_nadir_deg: 30.0
319
+ resource_model:
320
+ battery_capacity_wh: 1300.0
321
+ initial_battery_wh: 800.0
322
+ idle_power_w: 20.0
323
+ imaging_power_w: 420.0
324
+ slew_power_w: 360.0
325
+ sunlit_charge_power_w: 85.0
326
+ - satellite_id: sat_019
327
+ norad_catalog_id: 44622
328
+ tle_line1: 1 44622U 19066A 26103.98739708 .00000848 00000+0 11127-3 0 9997
329
+ tle_line2: 2 44622 98.0448 57.1255 0005574 1.4726 358.6503 14.82916452352865
330
+ sensor:
331
+ sensor_type: visible
332
+ attitude_model:
333
+ max_slew_velocity_deg_per_s: 1.0
334
+ max_slew_acceleration_deg_per_s2: 0.25
335
+ settling_time_s: 3.0
336
+ max_off_nadir_deg: 25.0
337
+ resource_model:
338
+ battery_capacity_wh: 1600.0
339
+ initial_battery_wh: 1000.0
340
+ idle_power_w: 25.0
341
+ imaging_power_w: 480.0
342
+ slew_power_w: 280.0
343
+ sunlit_charge_power_w: 100.0
344
+ - satellite_id: sat_020
345
+ norad_catalog_id: 44804
346
+ tle_line1: 1 44804U 19081A 26103.94018655 .00001352 00000+0 67366-4 0 9991
347
+ tle_line2: 2 44804 97.4366 166.8204 0012500 22.3961 337.7817 15.19216469353714
348
+ sensor:
349
+ sensor_type: visible
350
+ attitude_model:
351
+ max_slew_velocity_deg_per_s: 1.0
352
+ max_slew_acceleration_deg_per_s2: 0.25
353
+ settling_time_s: 3.0
354
+ max_off_nadir_deg: 25.0
355
+ resource_model:
356
+ battery_capacity_wh: 1600.0
357
+ initial_battery_wh: 1000.0
358
+ idle_power_w: 25.0
359
+ imaging_power_w: 480.0
360
+ slew_power_w: 280.0
361
+ sunlit_charge_power_w: 100.0
362
+ - satellite_id: sat_021
363
+ norad_catalog_id: 48079
364
+ tle_line1: 1 48079U 21026A 26103.94185373 .00000257 00000+0 40677-4 0 9992
365
+ tle_line2: 2 48079 97.9928 102.3896 0006302 84.5923 275.6008 14.80244388272253
366
+ sensor:
367
+ sensor_type: visible
368
+ attitude_model:
369
+ max_slew_velocity_deg_per_s: 1.0
370
+ max_slew_acceleration_deg_per_s2: 0.25
371
+ settling_time_s: 3.0
372
+ max_off_nadir_deg: 25.0
373
+ resource_model:
374
+ battery_capacity_wh: 1600.0
375
+ initial_battery_wh: 1000.0
376
+ idle_power_w: 25.0
377
+ imaging_power_w: 480.0
378
+ slew_power_w: 280.0
379
+ sunlit_charge_power_w: 100.0
380
+ - satellite_id: sat_022
381
+ norad_catalog_id: 48268
382
+ tle_line1: 1 48268U 21034A 26103.96224166 -.00000034 00000+0 22549-5 0 9990
383
+ tle_line2: 2 48268 97.8933 179.6508 0001284 93.5777 266.5583 14.81672073268143
384
+ sensor:
385
+ sensor_type: infrared
386
+ attitude_model:
387
+ max_slew_velocity_deg_per_s: 0.9
388
+ max_slew_acceleration_deg_per_s2: 0.15
389
+ settling_time_s: 3.5
390
+ max_off_nadir_deg: 20.0
391
+ resource_model:
392
+ battery_capacity_wh: 1800.0
393
+ initial_battery_wh: 1000.0
394
+ idle_power_w: 30.0
395
+ imaging_power_w: 680.0
396
+ slew_power_w: 320.0
397
+ sunlit_charge_power_w: 115.0
398
+ - satellite_id: sat_023
399
+ norad_catalog_id: 49070
400
+ tle_line1: 1 49070U 21073E 26103.92847993 -.00000361 00000+0 -39215-4 0 9991
401
+ tle_line2: 2 49070 97.8932 179.6137 0001280 92.8039 267.3320 14.81672472251852
402
+ sensor:
403
+ sensor_type: infrared
404
+ attitude_model:
405
+ max_slew_velocity_deg_per_s: 0.9
406
+ max_slew_acceleration_deg_per_s2: 0.15
407
+ settling_time_s: 3.5
408
+ max_off_nadir_deg: 20.0
409
+ resource_model:
410
+ battery_capacity_wh: 1800.0
411
+ initial_battery_wh: 1000.0
412
+ idle_power_w: 30.0
413
+ imaging_power_w: 680.0
414
+ slew_power_w: 320.0
415
+ sunlit_charge_power_w: 115.0
416
+ - satellite_id: sat_024
417
+ norad_catalog_id: 52912
418
+ tle_line1: 1 52912U 22069A 26103.95907240 .00000113 00000+0 21656-4 0 9994
419
+ tle_line2: 2 52912 97.8359 353.4264 0001854 52.2815 307.8565 14.79930234205115
420
+ sensor:
421
+ sensor_type: visible
422
+ attitude_model:
423
+ max_slew_velocity_deg_per_s: 1.0
424
+ max_slew_acceleration_deg_per_s2: 0.25
425
+ settling_time_s: 3.0
426
+ max_off_nadir_deg: 25.0
427
+ resource_model:
428
+ battery_capacity_wh: 1600.0
429
+ initial_battery_wh: 1000.0
430
+ idle_power_w: 25.0
431
+ imaging_power_w: 480.0
432
+ slew_power_w: 280.0
433
+ sunlit_charge_power_w: 100.0
tasks/aeossp_standard-test-case_0002/environment/case/tasks.yaml ADDED
The diff for this file is too large to render. See raw diff
 
tasks/aeossp_standard-test-case_0002/instruction.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Agile Earth Observation Scheduling Problem
2
+
3
+ This workspace contains one agile Earth-observation scheduling problem over a fixed mission horizon.
4
+
5
+ You are given:
6
+
7
+ - a mission description in `case/mission.yaml`
8
+ - a fixed constellation with frozen orbital elements and subsystem limits in `case/satellites.yaml`
9
+ - a set of time-windowed imaging tasks in `case/tasks.yaml`
10
+
11
+ Your job is to produce `/workspace/solution/solution.json`, an event schedule of `observation` actions that completes as many high-value tasks as possible without violating hard timing, geometry, slew, or battery constraints.
12
+
13
+ This problem is modeled as point-imaging scheduling on a fixed fleet. You are choosing when each satellite should spend a continuous interval observing a target, not redesigning the satellites, not changing their orbits, and not submitting low-level attitude trajectories. An action in the solution means "this satellite continuously observes this target over this interval," and the geometry, maneuver windows, and battery evolution are derived from that commitment during validation.
14
+
15
+ ## What Good Solutions Do
16
+
17
+ A strong solution should:
18
+
19
+ - satisfy all hard validity rules
20
+ - complete as many high-weight tasks as possible
21
+ - also improve overall completion rate when possible
22
+ - avoid unnecessary lateness and wasteful power use when tie-breaking matters
23
+
24
+ In practical terms, valid task completion matters first, especially on higher-weight tasks.
25
+
26
+ ## Files In This Workspace
27
+
28
+ - `case/mission.yaml`: mission horizon, public time grids, and reported metric metadata
29
+ - `case/satellites.yaml`: fixed satellites, TLEs, sensor limits, slew limits, and battery/power parameters
30
+ - `case/tasks.yaml`: imaging requests with time windows, durations, sensor requirements, and weights
31
+
32
+ ## Expected Output
33
+
34
+ Write one JSON object named `/workspace/solution/solution.json` in the solution directory.
35
+
36
+ The required top-level field is:
37
+
38
+ - `actions`
39
+
40
+ Each action should represent one observation interval with:
41
+
42
+ - `type`
43
+ - `satellite_id`
44
+ - `task_id`
45
+ - `start_time`
46
+ - `end_time`
47
+
48
+ Do not submit visibility claims, maneuver windows, power traces, or completion claims. Those are derived during validation.
49
+
50
+ ## Modeling Contract
51
+
52
+ Use SI units, degrees, and timezone-aware ISO 8601 timestamps. A trailing `Z` is the safest UTC form. `case/mission.yaml` is a top-level `mission` mapping. Let `H0 = mission.horizon_start`, `H1 = mission.horizon_end`, and `dt = mission.action_time_step_s`. Every action `start_time` and `end_time` must satisfy:
53
+
54
+ ```text
55
+ H0 <= start_time < end_time <= H1
56
+ (start_time - H0) / dt is an integer
57
+ (end_time - H0) / dt is an integer
58
+ ```
59
+
60
+ Each task in `case/tasks.yaml` has `release_time`, `due_time`, and `required_duration_s` on the same grid. A valid observation action must use `type: "observation"`, reference a known `satellite_id` and `task_id`, satisfy `release_time <= start_time` and `end_time <= due_time`, and have:
61
+
62
+ ```text
63
+ end_time - start_time = required_duration_s
64
+ ```
65
+
66
+ Longer or shorter observations do not partially complete the task. The satellite's `sensor.sensor_type` must exactly equal the task's `required_sensor_type`.
67
+
68
+ The constellation is fixed by `case/satellites.yaml`. Satellite states are propagated only from each satellite's `tle_line1` and `tle_line2`; do not add satellites, change TLEs, or submit attitude trajectories. Inertial quantities use the case's GCRF convention, Earth-fixed geometry uses ITRF/ECEF, target coordinates use WGS84 geodetic `longitude_deg`, `latitude_deg`, and `altitude_m`, and Earth orientation is deterministic for a given case.
69
+
70
+ Observation visibility is checked at `start_time`, `end_time`, and every `geometry_sample_step_s` grid instant strictly inside the action. At every checked instant, the target line of sight must be above the target local horizon and the off-nadir angle from satellite nadir to target line of sight must be no greater than `attitude_model.max_off_nadir_deg`, allowing only tiny numerical tolerance at the boundary.
71
+
72
+ For a satellite, observation intervals are half-open for overlap purposes: `[start_time, end_time)`. Same-satellite actions must not overlap. For consecutive same-satellite observations, the required retargeting gap is computed from the angle `theta` between the previous target vector at the previous `end_time` and the next target vector at the next `start_time`, both in the inertial frame. With `omega = max_slew_velocity_deg_per_s` and `alpha = max_slew_acceleration_deg_per_s2`:
73
+
74
+ ```text
75
+ if theta <= omega^2 / alpha:
76
+ slew_time_s = 2 * sqrt(theta / alpha)
77
+ else:
78
+ slew_time_s = 2 * (omega / alpha) + (theta - omega^2 / alpha) / omega
79
+
80
+ required_gap_s = slew_time_s + settling_time_s
81
+ ```
82
+
83
+ The required gap is reserved immediately before the later observation. The solution is invalid if the available idle gap is shorter than `required_gap_s`.
84
+
85
+ Battery feasibility is simulated for each satellite over the full mission horizon using `resource_sample_step_s` grid points plus all action and retargeting-window boundaries. Each segment uses its midpoint to decide whether an observation, retargeting window, and sunlight are active. Battery starts at `resource_model.initial_battery_wh`, is capped after each segment at `battery_capacity_wh`, and invalidates the solution if it drops below zero. Segment load is:
86
+
87
+ ```text
88
+ load_power_w = idle_power_w
89
+ + imaging_power_w if the segment midpoint is inside an observation
90
+ + slew_power_w if the segment midpoint is inside a retargeting window
91
+
92
+ battery_next_wh = battery_wh + (charge_power_w - load_power_w) * duration_s / 3600
93
+ ```
94
+
95
+ `charge_power_w` is `sunlit_charge_power_w` in sunlight and `0` in eclipse. `PC` is gross consumed watt-hours summed over satellites that pass the battery check.
96
+
97
+ Task completion is binary. For each `task_id`, the earliest valid completing observation by `end_time` counts once; duplicates do not add credit. For valid solutions:
98
+
99
+ ```text
100
+ CR = completed_task_count / total_task_count
101
+ WCR = sum(weight for completed tasks) / sum(weight for all tasks)
102
+ TAT = mean(completion_time - release_time) over completed tasks, in seconds, or null if none complete
103
+ PC = gross consumed watt-hours
104
+ ```
105
+
106
+ Validity is the hard gate before these metrics matter. Residual ambiguity remains only for borderline propagation, geometry, and battery cases at numerical tolerances.