Add sync_enabled entitlement and /v1/licenses/entitlements endpoint - #1
Merged
Conversation
Lays the groundwork for Sentinel-Sync-Service (self-hosted Command Center's cloud data-sync tier): a license can now opt into cloud data-sync independently of its Sentinel AI entitlement, and other services can validate a key's entitlements without writing into the check-in audit trail. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
sync_enabledboolean entitlement toLicense, independent of the existing Sentinel-AI validity — a self-hosted license can opt into cloud data-sync separately from Sentinel AI.GET /v1/licenses/entitlements(Bearer key), deliberately separate from/check-inso a high-frequency validator (e.g. the new Sentinel-Sync-Service, checking on every push) doesn't write into the check-in audit log or fight Command Center's own check-in loop for rate-limit headroom.sync_enabledis also included in/check-in's response, so Command Center's existing 15-min check-in loop picks it up for free.manage_license.py --enable-sync/--disable-syncto actually operate the new flag.Why
Lays the groundwork for Sentinel-Sync-Service — self-hosted Command Center's new opt-in cloud data-sync tier.
Test plan
ruff check .clean🤖 Generated with Claude Code