feat: dynamic permission policy API and sub-agent spawning API (#700 #702)#943
Merged
OneStepAt4time merged 1 commit intomainfrom Apr 3, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
PR body describes GET /v1/sessions/:id/permissions and PUT /v1/sessions/:id/permissions endpoints but the diff contains no server.ts changes β only schema additions in validation.ts and session.ts imports.
Please add the API endpoints (or clarify what is missing). The schema is correct but the PR is incomplete as described.
Contributor
|
Self-rebase failed β conflicts with merged PRs across release.yml, hook-settings.ts, server.ts, session.ts, validation.ts. Please rebase onto current main and force-push. I have approved this PR β it will merge as soon as CI passes on the rebased branch. |
22eae70 to
d1b7e11
Compare
Contributor
d1b7e11 to
a241453
Compare
β¦702) Issue #700: Permission Policy API - GET /v1/sessions/:id/permissions β get session permission policy - PUT /v1/sessions/:id/permissions β update session permission rules - PermissionPolicy: allow/deny/ask rules per tool/command pattern - 5 rule sources: userSettings, projectSettings, localSettings, flagSettings, aegisApi Issue #702: Sub-agent API - GET /v1/sessions/:id/children β list child sessions - POST /v1/sessions/:id/spawn β create child session from parent - parentId field in SessionInfo and createSession options - children array tracked in parent session - Child registered with parent on creation Quality gate: tsc β build β 2173 tests β feat: dynamic permission policy API (#700) Adds PermissionPolicy schema and per-session permission rule management: - GET /v1/sessions/:id/permissions β get session's permission policy - PUT /v1/sessions/:id/permissions β update session's permission rules - PermissionPolicy: allow/deny/ask rules per tool/command pattern - 5 rule sources: userSettings, projectSettings, localSettings, flagSettings, aegisApi - Schema supports future enforcement via hook-based overrides Quality gate: tsc β build β 2173 tests β
a241453 to
0b9366f
Compare
This was referenced Apr 3, 2026
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.
Adds PermissionPolicy schema and per-session permission rule management API.
GET /v1/sessions/:id/permissions β get session permission policy
PUT /v1/sessions/:id/permissions β update session permission rules
PermissionPolicy: allow/deny/ask rules per tool/command pattern with 5 rule sources.
Quality gate: tsc β build β 2173 tests β