feat(BA-6892): add kernel scheduling-history adapter and REST v2 endpoints#12870
Draft
jopemachine wants to merge 1 commit into
Draft
Conversation
This was referenced Jul 15, 2026
Merged
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 15, 2026 09:40
db1b59b to
6d7ebbc
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 15, 2026 09:40
b9b9a37 to
8c13791
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 15, 2026 09:56
6d7ebbc to
e8ce7ad
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 15, 2026 09:56
8c13791 to
28b1894
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 15, 2026 10:17
e8ce7ad to
b8a7aaa
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 15, 2026 10:17
28b1894 to
3db2ec3
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:10
b8a7aaa to
01a65ec
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:10
3db2ec3 to
610dd75
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:22
01a65ec to
e23c1a9
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:28
610dd75 to
24c5225
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:41
e23c1a9 to
320012c
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:41
24c5225 to
9207228
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:47
320012c to
564c862
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:47
9207228 to
6163a98
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:55
564c862 to
c3289f0
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:55
6163a98 to
164383b
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 05:05
c3289f0 to
8d1124c
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 05:05
164383b to
942cb3a
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 05:18
991d5fa to
dc6cdba
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 05:30
22ab654 to
1861c7a
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 05:31
dc6cdba to
82de9f8
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 05:40
1861c7a to
6a55238
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 05:40
82de9f8 to
96bed41
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 05:46
6a55238 to
f2a0d5a
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 05:46
96bed41 to
d65ae59
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
2 times, most recently
from
July 20, 2026 05:55
b39e38d to
d1f2894
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 06:07
f2a0d5a to
217d6c3
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 06:07
d1f2894 to
43fee26
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 06:16
217d6c3 to
ac0ef89
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 06:16
43fee26 to
425e498
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 06:38
ac0ef89 to
d347c7a
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 06:38
fa25689 to
17d286a
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 06:59
d347c7a to
a4f9d28
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 06:59
f05a631 to
d889ad0
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:04
a4f9d28 to
e2857a0
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:04
15b568a to
93a89e1
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:13
e2857a0 to
1b11978
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:13
93a89e1 to
03bd499
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:26
1b11978 to
ae6f600
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:26
03bd499 to
d956d23
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:41
ae6f600 to
0b3351f
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:41
d956d23 to
bc9dfe8
Compare
…oints Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:50
d1cf2de to
642d2ed
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.
📚 Stacked PRs
BA-6887fix: kernel history conditions reference the real status columns ✅BA-6889models: kernel query conditions and orders ✅BA-6890repository: kernel search scope and scoped search ✅BA-6891DTO + service: kernel v2 DTOs and search actionsBA-6892adapter + REST v2: kernel endpoints ← you are hereBA-6893SDK + CLI: kernel commandsMerge in order, bottom-up. Each PR is based on the one above it, so its diff shows only its own layer.
What
The adapter and the two REST v2 endpoints:
POST /v2/scheduling-history/kernels/searchsuperadmin_requiredPOST /v2/scheduling-history/kernels/scoped/searchauth_requiredTwo deliberate departures from the existing slices
Both follow the forward direction documented in
api/rest/v2/AGENTS.mdandclient/v2/AGENTS.md, which the session / deployment / route slices predate.1. The scope is a request body field, not a path param. A kernel query is scoped by
session_id,kernel_id, or both, and an empty scope must be rejected — none of which a path param can express.api/rest/v2/AGENTS.mdnames this exact shape as the forward direction:Hence
/kernels/scoped/searchand thescoped_handler prefix, rather than/kernels/{kernel_id}/search.2. The scoped route uses
auth_required, notsuperadmin_required.api/rest/v2/AGENTS.mdstates that all scoped search routes useauth_required, and BA-6882's acceptance criteria require a non-admin scoped search.superadmin_required, which appears to defeat the purpose of a scoped search (a superadmin needs no scope). That looks like a bug in those routes, but changing them is out of scope here — flagging it for a separate decision.Review notes
_convert_kernel_filteris the bulk of the diff and mirrors_convert_session_filteraxis for axis. Tests cover filter conversion per axis,ORconjunction collapsing to one condition, order direction, and data→DTO conversion including null statuses.The SDK and CLI that call these endpoints are #12866.
🤖 Generated with Claude Code
📚 Documentation preview 📚: https://sorna--12870.org.readthedocs.build/en/12870/
📚 Documentation preview 📚: https://sorna-ko--12870.org.readthedocs.build/ko/12870/
📚 Documentation preview 📚: https://sorna--12870.org.readthedocs.build/en/12870/
📚 Documentation preview 📚: https://sorna-ko--12870.org.readthedocs.build/ko/12870/