feat(devin): support Enterprise personal ACU cycles - #3833
Draft
jeanroloff wants to merge 5 commits into
Draft
jeanroloff wants to merge 5 commits into
jeanroloff wants to merge 5 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. ClawSweeper will not retry this unchanged revision. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
Optional enterprise host switches Devin to the personal-analytics endpoint and imports the browser session from that origin. Chrome's LevelDB keeps several versions of the same auth0 key, so the scan could return a stale or cross-origin token and usage flip-flopped to "session expired"; pick the freshest token by JWT expiration instead.
Keep Enterprise credentials origin-bound and preserve Standard Devin auth priority. Refs steipete#3603
jeanroloff
force-pushed
the
feature/devin-enterprise
branch
from
September 21, 2026 14:44
ded3a68 to
852678c
Compare
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
Extends the existing Devin provider with optional support for dedicated Devin Enterprise deployments. When an Enterprise host is configured, CodexBar imports the browser session for that origin and reads the signed-in user's personal monthly ACU cycle. Leaving the field empty preserves existing standard Devin behavior.
Why
Closes #3603
Dedicated Devin Enterprise deployments use a separate host and personal monthly ACU cycle, rather than the organization Daily/Weekly quota shape currently supported by the standard provider.
Implementation
your-team.devinenterprise.com./api/personal-analytics/usage-limitand maps the monthly cycle to the primary sharedUsageSnapshotwindow, with shared ACU detail rows.Security / privacy
Enterprise support is opt-in. Credentials are scoped to the configured, validated HTTPS origin, and no Enterprise host is contacted while the setting is empty. The provider queries only the signed-in user's personal analytics and does not log tokens. Standard Devin behavior remains unchanged.
Validation
make check: PASS (formatting and lint clean).swift build -c release: PASS.Opened as a Draft to make the implementation and scope available for concrete review before moving to Ready for Review.
Scope