Skip to content

Add check_sovereignty_license — 30-day node emission gate#111

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-sovereignty-license-check
Draft

Add check_sovereignty_license — 30-day node emission gate#111
Copilot wants to merge 2 commits intomainfrom
copilot/add-sovereignty-license-check

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

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 exposing check_sovereignty_license(node_id, start_date):
    • Returns True while within the 30-day window
    • Returns False after expiry (STATUS: LICENSE_EXPIRED → DISABLE_NODE)
from sovereignty_license import check_sovereignty_license

check_sovereignty_license("node-75009", "2026-03-01")  # True  (within window)
check_sovereignty_license("node-75009", "2026-01-01")  # False (expired)
  • 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.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-pilot Error Error Apr 7, 2026 1:48pm

Request Review

Copilot AI changed the title [WIP] Add check for sovereignty license expiration Add check_sovereignty_license — 30-day node emission gate Apr 7, 2026
Copilot AI requested a review from LVT-ENG April 7, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants