From e2ebf847eee185e7960156df8c969607f939b455 Mon Sep 17 00:00:00 2001 From: dfeen87 <158860247+dfeen87@users.noreply.github.com> Date: Wed, 5 Aug 2026 09:40:29 +0000 Subject: [PATCH 1/2] Update licensing to PolyForm Noncommercial. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- LICENSE | 94 ++++++++++++++----- Makefile | 2 + README.md | 15 ++- dashboard/ai_iv_dashboard.html | 2 +- examples/rest_api_client.py | 2 + iv_extensions/flow_adjustment_plugin.cpp | 2 + iv_extensions/flow_adjustment_plugin.hpp | 2 + iv_extensions/simulation_metrics_observer.cpp | 2 + iv_extensions/simulation_metrics_observer.hpp | 2 + iv_logic/ailee_decision_engine.cpp | 2 + iv_logic/ailee_decision_engine.hpp | 2 + iv_logic/vital_signal_generator.cpp | 2 + iv_logic/vital_signal_generator.hpp | 2 + src/AdaptiveController.cpp | 2 + src/AdaptiveController.hpp | 2 + src/NeuralStateEstimator.hpp | 2 + src/SafetyMonitor.cpp | 2 + src/SafetyMonitor.hpp | 2 + src/StateEstimator.cpp | 2 + src/StateEstimator.hpp | 2 + src/SystemLogger.cpp | 2 + src/SystemLogger.hpp | 2 + src/Utils.hpp | 2 + src/adaptive_iv_therapy_control_system.cpp | 2 + src/config_defaults.hpp | 2 + src/domains/metabojoint_domain.hpp | 2 + src/iv_system_types.hpp | 2 + src/precision_spine/PrecisionSpine.cpp | 2 + src/precision_spine/PrecisionSpine.hpp | 2 + src/precision_spine/TreatmentFlow.hpp | 2 + src/replay_logger.hpp | 2 + src/rest_api_server.cpp | 2 + src/rest_api_server.hpp | 2 + src/simulation_engine.cpp | 2 + src/simulation_engine.hpp | 2 + tests/test_neural_estimator.cpp | 2 + tests/test_safety_monitor.cpp | 2 + tests/test_state_estimator.cpp | 2 + tools/train_sensor_fusion_model.py | 2 + 39 files changed, 157 insertions(+), 26 deletions(-) diff --git a/LICENSE b/LICENSE index 86ee1ff..0c34cc5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,73 @@ -MIT License - -Copyright (c) 2026 Don M. Feeney Jr. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +PolyForm Noncommercial License 1.0.0 + + + +Acceptance + +In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses. + +Copyright License + +The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to Distribution License and make changes or new works based on the software according to Changes and New Works License. + +Distribution License + +The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by Changes and New Works License. + +Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with Required Notice: that the licensor provided with the software. For example: + +> Required Notice: Copyright (c) 2026 Don M. Feeney Jr. + +Changes and New Works License + +The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose. + +Patent License + +The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software. + +Noncommercial Purposes + +Any noncommercial purpose is a permitted purpose. + +Personal Uses + +Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose. + +Noncommercial Organizations + +Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding. + +Fair Use + +You may have "fair use" rights for the software under the law. These terms do not limit them. + +No Other Rights + +These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses. + +Patent Defense + +If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +Violations + +The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately. + +No Liability + +***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.*** + +Definitions + +The licensor is the individual or entity offering these terms, and the software is the software the licensor makes available under these terms. + +You refers to the individual or entity agreeing to these terms. + +Your company is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +Your licenses are all the licenses granted to you for the software under these terms. + +Use means anything you do with the software requiring one of your licenses. diff --git a/Makefile b/Makefile index 784bbc2..377e191 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# Licensed under the PolyForm Noncommercial License 1.0.0 + CXX = g++ CXXFLAGS = -std=c++17 -O2 -Wall -Wextra -pthread INCLUDES = -I src diff --git a/README.md b/README.md index 9f95a99..0df80b4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AI-Optimized Intravenous Therapy Control System (AI-IV) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) +[![License: PolyForm Noncommercial 1.0.0](https://img.shields.io/badge/License-PolyForm_Noncommercial_1.0.0-orange.svg)](https://polyformproject.org/licenses/noncommercial/1.0.0) ![Language: C++17](https://img.shields.io/badge/C%2B%2B-17-blue.svg) ![Status: Pre-Clinical](https://img.shields.io/badge/Status-Pre--Clinical-orange.svg) ![Version](https://img.shields.io/badge/version-v5.0.0-blueviolet) @@ -29,7 +29,7 @@ AI-IV demonstrates how **real-time physiological telemetry**, **predictive state - Future regulated medical device development > **Important:** -> This software is **not a clinical device**. It is intended for **research, simulation, and pre-clinical development**, and is released as open-source under the **MIT License**. +> This software is **not a clinical device**. It is intended for **research, simulation, and pre-clinical development**, and is released under the **PolyForm Noncommercial License 1.0.0**. --- @@ -320,6 +320,13 @@ I would like to acknowledge **Microsoft Copilot**, **Anthropic Claude**, **Googl ## License -This project is open-source and released under the **MIT License**. +This project is licensed under the **PolyForm Noncommercial License 1.0.0**. -You may use, copy, modify, distribute, sublicense, and/or sell this software under the terms of the MIT License. See [LICENSE](LICENSE) for full details. +For full details, please see the [LICENSE](LICENSE) file or visit [PolyForm Noncommercial License 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0). + +### Short Summary of Non-Commercial Terms +Under this license, you are free to use, modify, copy, and distribute this software for any **non-commercial** purpose, including: +* **Personal & Hobbyist Uses:** Private study, personal hobby projects, research, experimentation, and testing for public knowledge. +* **Non-commercial Organizations:** Use by educational institutions, charitable organizations, public research organizations, public safety/health/environmental protection organizations, and government institutions. + +**Commercial use, resale, or distribution of this software is strictly prohibited** without a separate commercial license from the copyright holder. diff --git a/dashboard/ai_iv_dashboard.html b/dashboard/ai_iv_dashboard.html index fcdc781..284cd48 100644 --- a/dashboard/ai_iv_dashboard.html +++ b/dashboard/ai_iv_dashboard.html @@ -506,7 +506,7 @@

⚕️ AI-IV Control System Dashboard

diff --git a/examples/rest_api_client.py b/examples/rest_api_client.py index 874773d..3f58573 100755 --- a/examples/rest_api_client.py +++ b/examples/rest_api_client.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# Licensed under the PolyForm Noncommercial License 1.0.0 + """ Simple REST API client example for AI-IV Therapy Control System Demonstrates real-time monitoring of telemetry and system state diff --git a/iv_extensions/flow_adjustment_plugin.cpp b/iv_extensions/flow_adjustment_plugin.cpp index d8df79c..d8116ad 100644 --- a/iv_extensions/flow_adjustment_plugin.cpp +++ b/iv_extensions/flow_adjustment_plugin.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "flow_adjustment_plugin.hpp" #include #include diff --git a/iv_extensions/flow_adjustment_plugin.hpp b/iv_extensions/flow_adjustment_plugin.hpp index ad970e3..3678975 100644 --- a/iv_extensions/flow_adjustment_plugin.hpp +++ b/iv_extensions/flow_adjustment_plugin.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "../iv_logic/ailee_decision_engine.hpp" diff --git a/iv_extensions/simulation_metrics_observer.cpp b/iv_extensions/simulation_metrics_observer.cpp index cbd54bd..db309ff 100644 --- a/iv_extensions/simulation_metrics_observer.cpp +++ b/iv_extensions/simulation_metrics_observer.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "simulation_metrics_observer.hpp" #include #include diff --git a/iv_extensions/simulation_metrics_observer.hpp b/iv_extensions/simulation_metrics_observer.hpp index 903f81c..5180167 100644 --- a/iv_extensions/simulation_metrics_observer.hpp +++ b/iv_extensions/simulation_metrics_observer.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include diff --git a/iv_logic/ailee_decision_engine.cpp b/iv_logic/ailee_decision_engine.cpp index 34beb7c..1867f65 100644 --- a/iv_logic/ailee_decision_engine.cpp +++ b/iv_logic/ailee_decision_engine.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "ailee_decision_engine.hpp" #include diff --git a/iv_logic/ailee_decision_engine.hpp b/iv_logic/ailee_decision_engine.hpp index c1b4bd1..4d0c551 100644 --- a/iv_logic/ailee_decision_engine.hpp +++ b/iv_logic/ailee_decision_engine.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include diff --git a/iv_logic/vital_signal_generator.cpp b/iv_logic/vital_signal_generator.cpp index a98afea..5d878b5 100644 --- a/iv_logic/vital_signal_generator.cpp +++ b/iv_logic/vital_signal_generator.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "vital_signal_generator.hpp" #include #include diff --git a/iv_logic/vital_signal_generator.hpp b/iv_logic/vital_signal_generator.hpp index dc74c36..73424ab 100644 --- a/iv_logic/vital_signal_generator.hpp +++ b/iv_logic/vital_signal_generator.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include diff --git a/src/AdaptiveController.cpp b/src/AdaptiveController.cpp index 6d3a8b9..9cfa5d1 100644 --- a/src/AdaptiveController.cpp +++ b/src/AdaptiveController.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "AdaptiveController.hpp" #include "Utils.hpp" #include "config_defaults.hpp" diff --git a/src/AdaptiveController.hpp b/src/AdaptiveController.hpp index 8662b71..1c7ab90 100644 --- a/src/AdaptiveController.hpp +++ b/src/AdaptiveController.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "iv_system_types.hpp" diff --git a/src/NeuralStateEstimator.hpp b/src/NeuralStateEstimator.hpp index 129722c..26d73ce 100644 --- a/src/NeuralStateEstimator.hpp +++ b/src/NeuralStateEstimator.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + /* * NeuralStateEstimator.hpp * diff --git a/src/SafetyMonitor.cpp b/src/SafetyMonitor.cpp index bfbc32f..86e5288 100644 --- a/src/SafetyMonitor.cpp +++ b/src/SafetyMonitor.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "SafetyMonitor.hpp" #include "config_defaults.hpp" #include diff --git a/src/SafetyMonitor.hpp b/src/SafetyMonitor.hpp index 32be05f..f844315 100644 --- a/src/SafetyMonitor.hpp +++ b/src/SafetyMonitor.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "iv_system_types.hpp" diff --git a/src/StateEstimator.cpp b/src/StateEstimator.cpp index f27b336..04ea3e4 100644 --- a/src/StateEstimator.cpp +++ b/src/StateEstimator.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "StateEstimator.hpp" #include "Utils.hpp" #include diff --git a/src/StateEstimator.hpp b/src/StateEstimator.hpp index 328b268..299d545 100644 --- a/src/StateEstimator.hpp +++ b/src/StateEstimator.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "iv_system_types.hpp" diff --git a/src/SystemLogger.cpp b/src/SystemLogger.cpp index d47e239..fd57708 100644 --- a/src/SystemLogger.cpp +++ b/src/SystemLogger.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "SystemLogger.hpp" #include "Utils.hpp" #include diff --git a/src/SystemLogger.hpp b/src/SystemLogger.hpp index 838b98a..af16870 100644 --- a/src/SystemLogger.hpp +++ b/src/SystemLogger.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "iv_system_types.hpp" diff --git a/src/Utils.hpp b/src/Utils.hpp index 60a9ad8..c663d66 100644 --- a/src/Utils.hpp +++ b/src/Utils.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include diff --git a/src/adaptive_iv_therapy_control_system.cpp b/src/adaptive_iv_therapy_control_system.cpp index 4460714..7739c57 100644 --- a/src/adaptive_iv_therapy_control_system.cpp +++ b/src/adaptive_iv_therapy_control_system.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + /* * AI-Optimized Intravenous Therapy Control System * Enhanced with Full Energy Transfer Model from White Paper Section 4.1 diff --git a/src/config_defaults.hpp b/src/config_defaults.hpp index 8f754e7..9e57f14 100644 --- a/src/config_defaults.hpp +++ b/src/config_defaults.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once /* diff --git a/src/domains/metabojoint_domain.hpp b/src/domains/metabojoint_domain.hpp index 6f298dd..5981203 100644 --- a/src/domains/metabojoint_domain.hpp +++ b/src/domains/metabojoint_domain.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include diff --git a/src/iv_system_types.hpp b/src/iv_system_types.hpp index ee36177..960a47c 100644 --- a/src/iv_system_types.hpp +++ b/src/iv_system_types.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + /* * iv_system_types.hpp * diff --git a/src/precision_spine/PrecisionSpine.cpp b/src/precision_spine/PrecisionSpine.cpp index 4ee3068..c43272b 100644 --- a/src/precision_spine/PrecisionSpine.cpp +++ b/src/precision_spine/PrecisionSpine.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "PrecisionSpine.hpp" #include "../Utils.hpp" #include diff --git a/src/precision_spine/PrecisionSpine.hpp b/src/precision_spine/PrecisionSpine.hpp index 5016452..cb9b713 100644 --- a/src/precision_spine/PrecisionSpine.hpp +++ b/src/precision_spine/PrecisionSpine.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "TreatmentFlow.hpp" diff --git a/src/precision_spine/TreatmentFlow.hpp b/src/precision_spine/TreatmentFlow.hpp index b1d2fde..1ae644b 100644 --- a/src/precision_spine/TreatmentFlow.hpp +++ b/src/precision_spine/TreatmentFlow.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "../iv_system_types.hpp" diff --git a/src/replay_logger.hpp b/src/replay_logger.hpp index 05ae9fc..b31a8ed 100644 --- a/src/replay_logger.hpp +++ b/src/replay_logger.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once /* diff --git a/src/rest_api_server.cpp b/src/rest_api_server.cpp index 0608794..e643297 100644 --- a/src/rest_api_server.cpp +++ b/src/rest_api_server.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + /* * REST API Server Implementation */ diff --git a/src/rest_api_server.hpp b/src/rest_api_server.hpp index 2a87263..d76506c 100644 --- a/src/rest_api_server.hpp +++ b/src/rest_api_server.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + /* * REST API Server for AI-IV Therapy Control System * Provides global network access to system telemetry, status, and control data diff --git a/src/simulation_engine.cpp b/src/simulation_engine.cpp index c364e45..779a08a 100644 --- a/src/simulation_engine.cpp +++ b/src/simulation_engine.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "simulation_engine.hpp" #include diff --git a/src/simulation_engine.hpp b/src/simulation_engine.hpp index 9f48790..8e9e1a2 100644 --- a/src/simulation_engine.hpp +++ b/src/simulation_engine.hpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #pragma once #include "iv_system_types.hpp" diff --git a/tests/test_neural_estimator.cpp b/tests/test_neural_estimator.cpp index cceeee4..812655f 100644 --- a/tests/test_neural_estimator.cpp +++ b/tests/test_neural_estimator.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "../src/NeuralStateEstimator.hpp" #include #include diff --git a/tests/test_safety_monitor.cpp b/tests/test_safety_monitor.cpp index 6809a98..357a767 100644 --- a/tests/test_safety_monitor.cpp +++ b/tests/test_safety_monitor.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "../src/SafetyMonitor.hpp" #include #include diff --git a/tests/test_state_estimator.cpp b/tests/test_state_estimator.cpp index fe556b2..e0fe768 100644 --- a/tests/test_state_estimator.cpp +++ b/tests/test_state_estimator.cpp @@ -1,3 +1,5 @@ +// Licensed under the PolyForm Noncommercial License 1.0.0 + #include "../src/StateEstimator.hpp" #include #include diff --git a/tools/train_sensor_fusion_model.py b/tools/train_sensor_fusion_model.py index d8396e8..ce35a4a 100644 --- a/tools/train_sensor_fusion_model.py +++ b/tools/train_sensor_fusion_model.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# Licensed under the PolyForm Noncommercial License 1.0.0 + """ Train and export the AI-IV sensor fusion neural network. From 513eef4c180e51c9f1bdcf17e0da74fdb6aeaf4f Mon Sep 17 00:00:00 2001 From: "Don Michael Feeney Jr." Date: Wed, 5 Aug 2026 05:49:11 -0400 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0df80b4..34b6dc6 100644 --- a/README.md +++ b/README.md @@ -329,4 +329,4 @@ Under this license, you are free to use, modify, copy, and distribute this softw * **Personal & Hobbyist Uses:** Private study, personal hobby projects, research, experimentation, and testing for public knowledge. * **Non-commercial Organizations:** Use by educational institutions, charitable organizations, public research organizations, public safety/health/environmental protection organizations, and government institutions. -**Commercial use, resale, or distribution of this software is strictly prohibited** without a separate commercial license from the copyright holder. +**Commercial use, resale, or commercial distribution of this software is strictly prohibited** without a separate commercial license from the copyright holder.