feat(dgw): add a TASK token for background tasks - #2006
Draft
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 3 commits into
Draft
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 3 commits into
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 3 commits into
Conversation
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/ai-crate
branch
from
September 28, 2026 20:33
cc6204e to
cdf5901
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/task-token
branch
from
September 28, 2026 20:33
aea0b39 to
01e8e3c
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/ai-crate
branch
from
September 29, 2026 20:14
cdf5901 to
6b803b0
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/task-token
branch
from
September 29, 2026 20:14
01e8e3c to
67f12c5
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Remove the `jet_task_reuse` claim from the Gateway, the .NET `TaskClaims`, and tokengen. The token cache now rejects any second use of a TASK token. Reuse can come back later as an optional claim without breaking anyone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Add a `TaskKind` struct with a JSON converter, in the same style as `RecordingOperation`, with `AiLog` serialized as "ai-log". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/ai-crate
branch
from
September 30, 2026 03:01
6b803b0 to
5d955a5
Compare
irvingouj@Devolutions (irvingoujAtDevolution)
force-pushed
the
feat/task-token
branch
from
September 30, 2026 03:01
67f12c5 to
24840da
Compare
This branch has not been deployed
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.
New
TASKtoken so DVLS can ask Gateway to run a background task on one target. Claims:jet_tk(task kind, onlyai-logtoday) + the kind's target (jet_aidforai-log), and the usualjet_gw_id/nbf/exp/jti. Always single use: consumed as soon as Gateway receives it.The token never carries the AI key; that goes in the request body, same as
provision-credentials. Also adds thegateway.tasks.readscope for polling,TaskClaims.ForAiLog(...)with a typedTaskKindin the .NET utils, andtokengen sign task.Tested: token lib tests 11/11,
dvls_compatibility24/24, .NET utils tests 32/32.Stacked on #2005.
🤖 Generated with Claude Code