Skip to content

Commit 85cdc0e

Browse files
authored
Add files via upload
1 parent c55240b commit 85cdc0e

9 files changed

Lines changed: 864 additions & 0 deletions

‎downloads/DEMO_SCRIPT.md‎

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Five-Minute Portfolio Demo Script
2+
3+
## 0:00–0:30 — Introduce the mission
4+
5+
“OpenSat Mission Lab is an end-to-end 6U CubeSat digital twin that I built to demonstrate space systems engineering on a home PC. The baseline mission monitors flood-prone regions in India for seven simulated days.”
6+
7+
## 0:30–1:15 — Show configuration and architecture
8+
9+
Open `configs/india_flood_monitoring.yaml`, then `docs/architecture.md`. Explain that a single configuration drives the orbit, payload, power, communications, ADCS, flight software, reliability campaign, and ground segment.
10+
11+
## 1:15–2:00 — Run the acceptance command
12+
13+
Run:
14+
15+
```powershell
16+
.\.venv\Scripts\python.exe -m opensatlab.cli accept configs/india_flood_monitoring.yaml --output outputs/acceptance
17+
```
18+
19+
Point out that the command produces a nonzero exit code if a requirement or analytical benchmark fails.
20+
21+
## 2:00–3:00 — Mission-control dashboard
22+
23+
Open `outputs/acceptance/mission_control_dashboard.html`. Demonstrate battery SOC, telemetry, alarm search, pass prioritization, the operations timeline, and the planning-only command console.
24+
25+
## 3:00–3:45 — Reliability dashboard
26+
27+
Open `outputs/acceptance/reliability_dashboard.html`. Show the FMEA, risk matrix, Monte Carlo outcome distribution, anomaly timeline, and fault tree. Explain that the uncertainty model is deliberately documented as a preliminary surrogate.
28+
29+
## 3:45–4:30 — Verification evidence
30+
31+
Open `outputs/acceptance/verification_report.html`. Show requirement status, analytical benchmark margins, traceability rows, and the PASS status. Open `output_manifest.json` to show SHA-256 hashes for reproducibility.
32+
33+
## 4:30–5:00 — Close
34+
35+
“This project shows not only simulation code, but also requirements, verification, operations, risk, documentation, tests, and CI. It is an open-source educational digital twin—not flight software—but it demonstrates how I approach complete space-system problems.”
36+
37+
## v1.1 add-on demonstration — 90 seconds
38+
39+
Open `external_validation_report.html`. Explain that the main propagator uses fixed-step RK4, while the reference uses universal variables and Lagrange f/g coefficients. Point to the six-hour maximum position and velocity errors, then show the GMAT starter script and Orekit request JSON as interfaces for a future independently installed tool.
40+
41+
Next open `hil_validation_report.html`. Show the 50 sent and 50 received UDP datagrams, zero invalid frames, and matching packet order. In two terminals, start `hil-listen` and then `hil-replay` to demonstrate telemetry transfer to another local process. Emphasize that the interface is suitable for a Raspberry Pi or serial gateway but is not flight-hardware qualification.
42+
43+
44+
## v1.3 constellation add-on — 90 seconds
45+
46+
Run:
47+
48+
```powershell
49+
opensatlab constellation configs/india_flood_monitoring.yaml --output outputs\constellation
50+
```
51+
52+
Open `constellation_dashboard.html`. Show the four spacecraft orbital slots, first-day ground tracks, coordinated imaging schedule, worst-case revisit comparison, hourly crosslink availability, and shared Bengaluru station schedule. Explain that the scheduler suppresses near-duplicate observations and that the crosslink model rejects paths blocked by Earth. Finish by opening `constellation_summary.txt` and highlighting the 3.95× worst-case revisit improvement and 2.33× observation-rate increase.
53+
54+
55+
## v1.4 safety and replanning add-on — 90 seconds
56+
57+
Run:
58+
59+
```powershell
60+
opensatlab safety configs/india_flood_monitoring.yaml --output outputs\safety
61+
```
62+
63+
Open `constellation_safety_dashboard.html`. Show the conjunction risk space, two high/critical events, maneuver recommendations, and task-utility comparison. Then open `replanning_events.csv` and `replanned_tasking_schedule.csv` to explain how an eight-hour spacecraft outage and flood-priority escalation regenerate the plan. End with the scope warning: the catalogue and probability values are deterministic educational proxies, not operational collision-avoidance products.
64+
65+
## v1.5 onboard autonomy add-on — 90 seconds
66+
67+
Open `onboard_autonomy_dashboard.html`. Show the flood probability, quality, battery state, and selected action for one image. Open `autonomy_scene_assessments.csv` and point out the separate water, change, cloud, quality, and priority contributions. Then show `autonomous_target_priorities.png` and `autonomous_tasking_schedule.csv` to demonstrate how onboard evidence can influence later mission planning while retaining traceable decisions and explicit safety boundaries.
68+
69+
70+
## v1.6 Earth-observation add-on — 90 seconds
71+
72+
Run `opensatlab earth-observation-demo --output outputs\earth-observation`. Open `earth_observation_dashboard.html` and show the calibrated true-colour scene, MNDWI and NDVI products, flood-probability raster, reference mask, and error map. Open `model_evaluation.csv` and `threshold_metrics.csv` to explain accuracy, F1, IoU, and threshold selection. Finish by showing the `earth-search` and `earth-search-download` commands, while noting that Sentinel-2 SCL water is only a weak reference and not independent flood ground truth.
73+
74+
## v1.9 data-cube segment — 90 seconds
75+
76+
1. Run `opensatlab datacube-demo --workspace examples/timeseries_observation --output outputs/datacube`.
77+
2. Open `datacube_dashboard.html` and show the six indexed scenes.
78+
3. Open `scene_catalog.csv` to point out acquisition time, CRS, bounds, bands, size, and SHA-256 fields.
79+
4. Open `processing_jobs.csv` and explain the content fingerprint that prevents duplicate processing.
80+
5. Run the same command again with `--keep-database`; highlight zero new scenes and no duplicate job.
81+
6. Run a date query with `opensatlab datacube-query --database outputs/datacube/opensat_datacube.sqlite --after 2026-07-09`.
82+
83+
84+
## v2.1 platform demonstration
85+
86+
1. Run `opensatlab service-demo --workspace examples/timeseries_observation --output outputs/services`.
87+
2. Open `outputs/services/platform_validation_dashboard.html`.
88+
3. Show the COG object under `outputs/services/object-store/cogs/`.
89+
4. Explain viewer/operator/admin API roles.
90+
5. Show the leased job fields, signed webhook evidence, and restored SQLite database.
91+
6. Finish with the Docker Compose architecture: PostGIS, MinIO, API, leased workers, and Prometheus.
92+
93+
94+
## v2.3 security demonstration
95+
96+
Run `opensat-security-demo`, show the 48/48 dashboard, inspect the RLS SQL, revoke a service credential, verify the signed audit bundle, and open the multi-region recovery evidence.
97+
98+
## v3.1 safety-assurance demonstration
99+
100+
1. Run `opensat-v31-demo --output outputs/v3.1`.
101+
2. Open `v31_safety_assurance_dashboard.html`.
102+
3. Show the ten verified signatures and three blocked approval attacks.
103+
4. Explain the authorization-window plot and the five blocked command attempts.
104+
5. Show the migration evidence and the 256-state invariant check with zero violations.

‎downloads/LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 SAMUELSON G
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.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# OpenSat Mission Lab v3.1 — Orchestration Safety Assurance
2+
3+
## Purpose
4+
5+
v3.1 extends the v3.0 workflow simulator with cryptographic approval evidence, two-person separation of duties, time-bounded command grants, deterministic workflow-version migration, and exhaustive finite-state safety checks.
6+
7+
## Approval signatures
8+
9+
Approval payloads are serialized canonically, hashed with SHA-256, and signed using Ed25519. Public signing identities are exported; private keys and deterministic test seeds are never written to evidence files.
10+
11+
Two distinct signers are required:
12+
13+
- command-plan gate: mission director + safety officer;
14+
- product-publication gate: product owner + quality officer.
15+
16+
The requester cannot sign their own approval request. Duplicate actors, duplicate roles, altered payloads, and unknown signing keys are blocked.
17+
18+
## Command authorization
19+
20+
A command grant is bound to:
21+
22+
- one workflow ID;
23+
- one command name;
24+
- one SHA-256 command-and-parameter digest;
25+
- two signed approval record IDs;
26+
- a `not_before` time;
27+
- an expiry time no more than five minutes later.
28+
29+
The command gate also checks conjunction blackout state and spacecraft power safety. Expired grants are not renewed or extended in place.
30+
31+
## Workflow migration
32+
33+
The deterministic v3.0 → v3.1 migration inserts an `authorize` node before pending command work. Workflow IDs, idempotency keys, completed nodes, status, and terminal state are preserved. Completed or compensated workflows do not acquire unnecessary pending authorization work.
34+
35+
## Safety invariants
36+
37+
The demonstration enumerates all 256 Boolean combinations of eight command-gate conditions. Only the state satisfying every condition may transmit. Eight invariants are checked with zero violations.
38+
39+
This is exhaustive finite-state validation of the educational gate model. It is not a proof of a real spacecraft flight system, formal certification, or authorization to transmit operational commands.

‎downloads/PORTFOLIO.md‎

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Portfolio Case Study — OpenSat Mission Lab
2+
3+
## Project summary
4+
5+
**OpenSat Mission Lab** is a home-PC CubeSat mission digital twin created by **SAMUELSON G**. It links mission design, astrodynamics, environmental geometry, payload scheduling, power, communications, attitude control, flight software, mission operations, reliability analysis, and formal verification in one reproducible Python project.
6+
7+
## Problem
8+
9+
Space portfolios often demonstrate only one isolated skill: orbit plotting, satellite tracking, image processing, or a dashboard. Real missions require subsystem interactions and evidence that requirements are satisfied. This project demonstrates those interactions through a seven-day 6U Earth-observation scenario.
10+
11+
## Engineering contribution
12+
13+
- Designed a modular Python architecture with subsystem boundaries and configuration-driven behavior.
14+
- Implemented two-body and J2 orbit propagation, eclipse calculations, WGS-84 station access, and target visibility.
15+
- Modelled payload scheduling, battery energy, adaptive S-band downlink, quaternion ADCS, supervisory flight software, and ground operations.
16+
- Added fault injection, watchdog recovery, FMEA, Monte Carlo uncertainty, anomaly detection, and operator dashboards.
17+
- Built requirement traceability, analytical benchmarks, release manifests, automated tests, CI, and acceptance reporting.
18+
19+
## Evidence
20+
21+
The baseline release generates 10,081 mission samples, multiple engineering CSV files and figures, two interactive dashboards, a reliability package, and an HTML verification report. The exact result set is hashed in `output_manifest.json`.
22+
23+
## Skills demonstrated
24+
25+
Systems engineering, mission analysis, orbital mechanics, remote sensing, EPS, RF link budgets, ADCS, flight software, telemetry, ground systems, reliability engineering, data visualization, Python packaging, automated testing, CI/CD, technical writing, and open-source governance.
26+
27+
## Important scope statement
28+
29+
The software is educational and suitable for preliminary analysis and portfolio demonstration. It is not flight-qualified, independently validated, cyber-hardened, licensed for spectrum use, or approved to command real hardware.
30+
31+
## v1.1 validation and home-lab extension
32+
33+
The v1.1 release adds two portfolio demonstrations beyond the software-only digital twin:
34+
35+
1. **Independent orbit cross-validation:** the RK4 two-body implementation is compared with a separately implemented universal-variable propagator over six hours. The release exports aligned primary and reference state histories, error metrics, external-tool interchange files, and an HTML report.
36+
2. **Hardware-in-the-loop telemetry path:** generated housekeeping packets are framed as CRC-protected `OSML-HIL/1` UDP datagrams. A 50-packet loopback acceptance test verifies delivery and order, while listener/replay commands support a second PC or Raspberry Pi.
37+
38+
These additions demonstrate numerical-method validation, interface definition, packet integrity, network test automation, and clear separation between educational evidence and real flight qualification.
39+
40+
## v1.2 physical home-lab bridge
41+
42+
The v1.3 release adds bidirectional command and telemetry protocols, optional USB/UART transport, an executable Raspberry Pi gateway, and ESP32 firmware. This demonstrates systems integration across simulation software, networking, serial drivers, embedded firmware, operator commands, packet integrity, and verification evidence.
43+
44+
45+
## v1.3 constellation and distributed operations
46+
47+
The v1.3 release extends the baseline spacecraft into a four-satellite Walker-style demonstration. It propagates all vehicles on a common grid, coordinates target collection, suppresses duplicate observations, calculates Earth-occultation-aware crosslinks, builds the sampled network graph, and schedules one shared ground-station channel. The seven-day scenario produces 35 coordinated images, 848 sampled crosslink windows, up to 3.95× better worst-case revisit, and up to 2.33× higher observation rate.
48+
49+
This layer demonstrates constellation design, distributed scheduling, inter-satellite networking, shared-resource operations, network analysis, and clear separation between preliminary mission analysis and flight-qualified operations.
50+
51+
52+
## v1.4 space-safety and autonomy layer
53+
54+
The v1.4 release demonstrates conjunction-screening software architecture without claiming operational space-traffic-management capability. A deterministic six-object relative-motion catalogue is screened against all protected constellation spacecraft. High-risk events feed a maneuver trade study, recommended burns create tasking blackout windows, and the constellation scheduler regenerates a conflict-checked plan. A second disruption scenario removes one spacecraft temporarily and escalates a flood target, demonstrating autonomous schedule replanning with traceable decisions.
55+
56+
This layer showcases space-situational-awareness concepts, collision-risk triage, maneuver trade analysis, constrained optimization, autonomous operations, safety boundaries, and verification-driven engineering.
57+
58+
## v1.5 onboard autonomy and edge intelligence
59+
60+
The v1.5 release adds a transparent onboard decision layer. Coordinated observations receive deterministic synthetic scene features, an explainable event probability, image-quality scores, and resource context. The software selects downlink and retention actions, updates target priorities, and generates a conflict-checked autonomous plan. Every model contribution is exported so reviewers can inspect why a decision was made. The project explicitly avoids claiming a trained flood model or flight-qualified autonomy.
61+
62+
63+
## v1.6 calibrated Earth-observation validation
64+
65+
The v1.6 release connects the mission digital twin to geospatial raster engineering. It ingests calibrated multispectral GeoTIFFs, standardizes mixed-resolution Sentinel-2 assets, generates overlapping tiles, calculates NDWI, MNDWI, NDVI, and brightness, evaluates an explainable flood baseline against a reference mask, and produces confusion-matrix and threshold-sensitivity evidence. A public STAC adapter searches Earth Search and can build a common-grid Sentinel-2 subset. This demonstrates remote-sensing data engineering, reproducibility, geospatial validation, and careful separation between a software baseline and an operational disaster product.
66+
67+
## v1.9 portfolio evidence: operational data management
68+
69+
The v1.9 layer demonstrates that the project is not limited to isolated
70+
notebooks or one-off plots. It indexes raster assets in SQLite, records SHA-256
71+
integrity and provenance, suppresses duplicate work through content
72+
fingerprints, emits processing events, exports STAC-like records, and exposes a
73+
searchable operational dashboard. The bundled demonstration indexes six scenes
74+
and completes one event-triggered time-series job without duplicate work on a
75+
second scan.
76+
77+
78+
## v2.1 platform-hardening extension
79+
80+
The project now demonstrates operational platform engineering in addition to mission analysis: GDAL-backed Cloud Optimized GeoTIFF publishing, S3-compatible storage, expiring worker leases, HMAC-signed webhooks, role-based API access, and verified backup/recovery. The bundled validation proves these controls with a local object store and a real localhost webhook receiver.
81+
82+
83+
## v2.3 security-platform evidence
84+
85+
The repository now demonstrates PostgreSQL RLS policy design, transaction-bound tenant context, secret-key rotation, service workload credentials, policy-as-code decisions, signed audit export, and multi-region recovery evidence.
86+
87+
## v3.1 safety assurance
88+
89+
The orchestration layer now demonstrates detached Ed25519 approval signatures, two-person separation of duties, time-bounded and digest-bound command grants, deterministic workflow migration, and exhaustive validation of 256 command-gate states.

0 commit comments

Comments
 (0)