An inquiry answered with an end-of-turn report
When ticket_create prompted for a shorter title ("Shorter title, at most 60 characters?"), the inquiry model returned a 2,235-character plain-text report of the turn's work inside the structured answer field, ending with "A 44-character title would work: …". ticket_create rejected the oversized answer, and the primary turn model then retried ticket_create with a valid title.
The conversation was running the rfd-implementor persona, whose instructions require ending every turn with a summary report (the user had requested plain text instead of the default Markdown sections).
Why the persona instruction reaches the inquiry
build_inquiry_backend(crates/jp_cli/src/cmd/query/turn_loop.rs) builds the inquiry system prompt fromconversation.inquiry.assistant, which inherits unset fields fromassistant([RFD 034]), including the active persona'sinstructions. This workspace runs inquiries onhaiku.LlmInquiryBackend::inquire(crates/jp_cli/src/cmd/query/tool/inquiry.rs) appends the inquiry question as a new turn (events.start_turn), matching the persona instruction's trigger ("End every turn with...").inquiry_promptasks for "only the answer to this question", competing directly with the system prompt instruction.Question::textcannot express a maximum length in JSON Schema, so the schema is{"answer": {"type": "string"}}and the 60-character limit exists only in the question text.
Mitigations in this workspace
.jp/config.tomldefinesconversation.inquiry.assistant.instructions, overriding the persona'sinstructionsduring inquiries instead of appending to them.ticket_createtruncates rejected title answers in its error message to the first line (up to twice the character limit).
Host options
- Clarify in
inquiry_promptthat answering a tool inquiry is not the end of a conversation turn, so end-of-turn reporting instructions do not apply. - Add an optional length bound to
jp_tool::AnswerType::Textso the host can includemaxLengthin the inquiry JSON Schema and validate the response before re-running the tool. This requires a plugin protocol update;ticket_createwould set the limit. - Stop inheriting
assistant.instructionsintoconversation.inquiry.assistantby default while still inheritingsystem_prompt_sections(partially reversing [RFD 034]).
Option 2 enforces length constraints at the schema and host level; option 1 is a low-cost prompt guard for unconstrained text questions.