Skip to content

fix(prompt): trim two runtime prompt lines back under the size contract - #7454

Merged
itismyfield merged 1 commit into
mainfrom
fix/prompt-size-contract-1027
Oct 27, 2026
Merged

itismyfield merged 1 commit into
mainfrom
fix/prompt-size-contract-1027

Conversation

@itismyfield

Copy link
Copy Markdown
Owner

무엇

main의 issue_4313_prompt_policy_contract 시험이 실패하고 있습니다. 고정 Full 프롬프트가 3,053바이트 기준선보다 작아야 하는데 3,071바이트입니다(#7450 CI worker 4).

원인은 CI 없이 머지된 문구 수정 두 건입니다. #7447이 +30바이트, #7451이 +18바이트를 늘렸습니다. 기준선은 올리지 않고 같은 뜻의 짧은 문구로 줄입니다.

  • prompt_builder/mod.rs: 'The user sees tool cards, not tool output; put needed results in your text.' (−22바이트)
  • prompt_builder/layer_rendering.rs: 'do not query the DB directly' (−8바이트)

줄인 뒤 크기는 3,041바이트로 계산됩니다. 문자열만 바꿨고 분기·로직 변화는 없습니다. 머지 뒤 CI Main이 시험을 다시 판정합니다.

🤖 Generated with Claude Code

#7447 and #7451 grew the fixed Full prompt to 3,071 bytes; the contract
test requires it to stay under the 3,053-byte baseline. Same meaning,
30 bytes shorter (3,041).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@itismyfield
itismyfield merged commit 45fb94f into main Oct 27, 2026
itismyfield added a commit that referenced this pull request Oct 27, 2026
## 무엇
#7454 뒤에도 `issue_4313_prompt_policy_contract`가 계속 실패할 상태라서 고칩니다. 이 테스트는
고정 Full 프롬프트가 3,053바이트보다 작아야 통과합니다.

- #7451 머지 커밋(`7c4eb8aef8`)의 CI Main 실측값은 3,089바이트입니다. #7447(+30)과
#7451(+18)이 모두 들어간 값입니다.
- #7454는 #7447만 들어간 3,071을 기준으로 30바이트를 줄였습니다. 그래서 main은 3,089 − 30 =
3,059바이트로 여전히 기준을 넘습니다. 그 사이에 프롬프트를 바꾼 커밋은 #7454뿐입니다.
- 이번에 `[ADK API Usage]` 문구를 26바이트 더 줄여 예상 크기는 3,033바이트입니다(여유 20바이트).
문자열만 바꿨습니다.
- 테스트가 확인하는 문구(`inspect \`GET /api/docs\`` 1회, `docs override guessed
CLI/source patterns`, `one standalone \`API_FRICTION: {...}\`
final-response line`)는 유지합니다.

이번에는 PR CI에서 이 테스트가 통과한 것을 확인한 뒤 머지합니다.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant