[PR #22] [CLOSED] fix: reduce proxy-induced continuation bias in translated turns #17

Closed
opened 2026-02-27 15:47:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Quorinex/Kiro-Go/pull/22
Author: @edxeth
Created: 2/24/2026
Status: Closed

Base: mainHead: fix/proxy-continuation-bias


📝 Commits (1)

  • c7e7d9c fix: reduce proxy-induced continuation bias in translated turns

📊 Changes

4 files changed (+231 additions, -31 deletions)

View changed files

📝 proxy/handler.go (+79 -0)
📝 proxy/handler_test.go (+50 -0)
📝 proxy/translator.go (+36 -29)
📝 proxy/translator_test.go (+66 -2)

📄 Description

Summary

  • Remove translator behaviors that bias prompts toward continuation-style outputs by trimming assistant-prefill history and tightening conversation anchoring.
  • Add request-shape validation for both /v1/messages and /v1/chat/completions to reject assistant-prefill final turns and empty user-context payloads early.
  • Keep tool-result continuation explicit but neutral (Tool results:), and add regression tests for synthetic-anchor ID behavior and validator coverage.

Verification

  • go test ./...
  • go build ./...

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Quorinex/Kiro-Go/pull/22 **Author:** [@edxeth](https://github.com/edxeth) **Created:** 2/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/proxy-continuation-bias` --- ### 📝 Commits (1) - [`c7e7d9c`](https://github.com/Quorinex/Kiro-Go/commit/c7e7d9c1f56a25137240432d5b20e0861b38b006) fix: reduce proxy-induced continuation bias in translated turns ### 📊 Changes **4 files changed** (+231 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `proxy/handler.go` (+79 -0) 📝 `proxy/handler_test.go` (+50 -0) 📝 `proxy/translator.go` (+36 -29) 📝 `proxy/translator_test.go` (+66 -2) </details> ### 📄 Description ## Summary - Remove translator behaviors that bias prompts toward continuation-style outputs by trimming assistant-prefill history and tightening conversation anchoring. - Add request-shape validation for both `/v1/messages` and `/v1/chat/completions` to reject assistant-prefill final turns and empty user-context payloads early. - Keep tool-result continuation explicit but neutral (`Tool results:`), and add regression tests for synthetic-anchor ID behavior and validator coverage. ## Verification - `go test ./...` - `go build ./...` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:47:41 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Kiro-Go#17
No description provided.