Add check_sovereignty_license — 30-day node emission gate#111
Draft
Add check_sovereignty_license — 30-day node emission gate#111
check_sovereignty_license — 30-day node emission gate#111Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/c96b0375-4d84-45d7-ac7f-200fea8f2714 Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add check for sovereignty license expiration
Add Apr 7, 2026
check_sovereignty_license — 30-day node emission gate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces license-window enforcement for nodes emitting the Robert Engine: a node is disabled once the current time exceeds 30 days from its
start_date.Changes
api/sovereignty_license.py— new module exposingcheck_sovereignty_license(node_id, start_date):Truewhile within the 30-day windowFalseafter expiry (STATUS: LICENSE_EXPIRED → DISABLE_NODE)tests/test_sovereignty_license.py— 6 unit tests covering: valid on day 0, valid mid-window, expired past day 30, boundary edge, future start date, and node-ID independence.