Scope
Confirm permanently covered positions 4012–4014 and port Bun corpus position 4015, js/third_party/jsonwebtoken/header-kid.test.js.
Acceptance criteria
keyidsigning options accept only strings, including explicit-undefined rejection.- Valid key IDs populate the JWT
kidheader for object, Buffer, and string payloads; omitted key IDs leave the header absent. - Key-ID signing failures retain code, algorithm/operation metadata, original cause, and operation-aware cause stacks.
- Focused, adjacent JWT, and permanent diagnostics pass.