feat: POST /api/assign (Asgard handshake, no LLM) - #9
Merged
Conversation
added 2 commits
August 18, 2026 22:54
Asgard #133 / Kit handshake. Bearer KIT_PEER_TOKEN. Board queued. Hallway ack only — never the Jordan DM. No DispatchKitWork yet.
5 tasks
There was a problem hiding this comment.
Ship it.
- Token check, upsert, catalog board_id, and hallway skip all match spec.
- Test coverage includes auth, required fields, happy path, and DM skip.
- One nit: line 79 double-assign is dead code; harmless but clean it up before merge.
No blocking issues. 28 tests green.
There was a problem hiding this comment.
Ship it.
- Endpoint wires the Asgard POST exactly as specified, with token auth, board upsert, and conditional hallway post.
- boardId correctly maps to catalog ids on brief/issue match; skips DM hallway per config.
- Tests cover auth failure, missing issue, happy path with mock, and DM skip.
- No dispatch or LLM paths touched; 28 tests pass.
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.
Door for Asgard #133 (`kit_assign`). Overnight builder #1108 will POST here.
```http
POST /api/assign
Authorization: Bearer KIT_PEER_TOKEN
{ "issue": "https://github.com/the-shit/bikes-v2/issues/12\", "chair": "kit", "brief": "rider stills" }
```
Not this PR: `DispatchKitWork` hops, `GitHubOpenIssue`.