Repository navigation
Prompt node type with PromptAssembler service and graph-override layering - #1053
Merged
Merged
Conversation
…layering (#1049) Phase 2 of ADR-030: Store prompts as first-class graph nodes with a purpose-built assembler that layers graph overrides on top of hardcoded defaults. - Register prompt node behavior (validates priority, template_syntax, source) - Add prompt core schema (priority, template_syntax enum, source enum) - Add prompt to MCP tool schemas node_type enum - Implement PromptAssembler: hardcoded base + graph overrides + Minijinja templates - Event-driven cache invalidation via NodeService broadcast channel - Content boundary markers for user-authored prompts (injection safety) - Seed prompt nodes for first-run migration (tool strategy, response rules, etc.) - 200+ Rust tests passing across both crates, 3918 frontend tests passing Co-Authored-By: Claude <[email protected]>
…t validation Review findings addressed: - Remove unused cache infrastructure (YAGNI - CachedPrompt struct, event listener, clear_cache method were never populated or read during assembly) - Sanitize </user-content> closing tags in user content to prevent boundary escape in prompt injection - Add non-empty content validation to PromptNodeBehavior - Log warning on deserialization failures in fetch_prompt_overrides - Document intentional auto-escaping disabled in minijinja - Make render_template a static method (no &self needed) - Add user_content_boundary_escape test Co-Authored-By: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Jun 22, 2026
…ring (#1053) * Add prompt node type with PromptAssembler service and graph-override layering (#1049) Phase 2 of ADR-030: Store prompts as first-class graph nodes with a purpose-built assembler that layers graph overrides on top of hardcoded defaults. - Register prompt node behavior (validates priority, template_syntax, source) - Add prompt core schema (priority, template_syntax enum, source enum) - Add prompt to MCP tool schemas node_type enum - Implement PromptAssembler: hardcoded base + graph overrides + Minijinja templates - Event-driven cache invalidation via NodeService broadcast channel - Content boundary markers for user-authored prompts (injection safety) - Seed prompt nodes for first-run migration (tool strategy, response rules, etc.) - 200+ Rust tests passing across both crates, 3918 frontend tests passing Co-Authored-By: Claude <[email protected]> * Address PR review: remove dead cache, fix boundary escape, add content validation Review findings addressed: - Remove unused cache infrastructure (YAGNI - CachedPrompt struct, event listener, clear_cache method were never populated or read during assembly) - Sanitize </user-content> closing tags in user content to prevent boundary escape in prompt injection - Add non-empty content validation to PromptNodeBehavior - Log warning on deserialization failures in fetch_prompt_overrides - Document intentional auto-escaping disabled in minijinja - Make render_template a static method (no &self needed) - Add user_content_boundary_escape test Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
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.
Closes #1049