-
Notifications
You must be signed in to change notification settings - Fork 0
Flatten write interpretation prompt context into labeled sections #77
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
PR #76 moved the interpretWriteTurn user message payload from a single JSON blob to labeled line-oriented sections — but priorPendingWriteOperation is still dumped as raw JSON.stringify(…, null, 2).
Problem
-
priorPendingWriteOperation— nested JSON the LLM has to parse, inconsistent with the rest of the prompt format. Should be flattened into labeled fields (operation kind, target, resolved fields, unresolved fields). -
Potential redundancy across context sections — now that
entityContextprovides known entities, focus, active proposals, and open clarifications, some of the information inconversationContextandpriorPendingWriteOperationmay overlap. Audit all three sections for redundant or contradictory signals:- Does
conversationContextduplicate whatentityContextalready tells the LLM? - Does
priorPendingWriteOperation.targetRefduplicate the focused entity fromentityContext? - Are there fields in the pending write op that the LLM doesn't actually use for interpretation?
- Does
Expected outcome
- All sections use consistent labeled-text format (no raw JSON)
- Redundant fields between sections are consolidated or removed
- The prompt is as lean as possible without losing signal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request