Skip to content

[WIP] Update the DECOMPOSE_SYSTEM_PROMPT constant in packages/chat-api/src/lin - #290

Closed
bamdadd wants to merge 1 commit into
mainfrom
lintel/feat/779ca43c-update-the-decompose-system-prompt-const
Closed

[WIP] Update the DECOMPOSE_SYSTEM_PROMPT constant in packages/chat-api/src/lin#290
bamdadd wants to merge 1 commit into
mainfrom
lintel/feat/779ca43c-update-the-decompose-system-prompt-const

Conversation

@bamdadd

@bamdadd bamdadd commented Apr 7, 2026

Copy link
Copy Markdown
Owner

⚠️ This is a draft PR created by Lintel after a pipeline failure.
The automated workflow could not complete successfully. An engineer should review the changes, fix any issues, and mark the PR as ready.

Summary

Extend DECOMPOSE_SYSTEM_PROMPT in decomposer.py with four structured instruction sections (sizing constraint, requirement traceability, interface-first ordering, agent-readiness) and add a parametrized unit test asserting all four anchor phrases are present.

Changes

  • Update DECOMPOSE_SYSTEM_PROMPT with four instruction sections
  • Add unit tests asserting all four instruction phrases are present in DECOMPOSE_SYSTEM_PROMPT

Context

Update the DECOMPOSE_SYSTEM_PROMPT constant in packages/chat-api/src/lintel/chat_api/decomposer.py to include four explicit instruction sections: (1) sizing constraint — each work item must be implementable in a single PR touching max 3 files; (2) requirement traceability — every numbered point in the user input must map to at least one work item; (3) interface-first ordering — protocols and abstractions must appear before concrete implementations; (4) agent-readiness — descriptions must specify the target package, key files to create/modify, API routes, events to emit, and acceptance tests. Acceptance: the updated prompt is present in the file and a unit test asserts all four instruction keywords/phrases appear in the prompt string.


Raised by Lintel 🤖

@bamdadd
bamdadd force-pushed the lintel/feat/779ca43c-update-the-decompose-system-prompt-const branch from a1a04f4 to b6440b1 Compare April 7, 2026 17:26
@bamdadd

bamdadd commented Apr 7, 2026

Copy link
Copy Markdown
Owner Author

Closing stub PR — implement stage failed, will retry with fix.

@bamdadd bamdadd closed this Apr 7, 2026
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