docs(prompt): align precedence docs with system prompt runtime - #34137
Closed
WadydX wants to merge 1 commit into
Closed
docs(prompt): align precedence docs with system prompt runtime#34137WadydX wants to merge 1 commit into
WadydX wants to merge 1 commit into
Conversation
- Replace outdated linear ordering in prompt-assembly guide with current stable/context/volatile tier contract from system_prompt.py - Clarify where memory/profile snapshots live versus skills guidance - Document that pre_llm_call context is user-message injection, not cached system-prompt mutation - Update architecture guide wording to reference system_prompt.py + prompt_builder.py tiered assembly Closes NousResearch#34118
Contributor
Author
|
Superseded by upstream mainline commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR makes the state/preference ordering docs match the actual prompt runtime contract.
What changed
website/docs/developer-guide/prompt-assembly.mdsystem_prompt.pytier model:stable→context→volatilepre_llm_callcontext is appended to the current user message at API-call time (not written into the cached system prompt).website/docs/developer-guide/architecture.mdsystem_prompt.py+prompt_builder.pyand the tiered assembly contract.Why
Issue #34118 identified ambiguity around precedence between memory, skills, and hook-injected context. The previous developer docs described an ordering that no longer matched runtime behavior.
This PR is docs-only and intentionally avoids changing runtime behavior.
Runtime sources referenced
agent/system_prompt.pystable,context,volatile)stable→context→volatile)agent/conversation_loop.pypre_llm_callcontext injection path (user-message append at API-call time)Scope / risk
Closes #34118