Feat/fix discord untrusted boundary - #143
Open
ArnabChatterjee20k wants to merge 5 commits into
Open
Conversation
mark_answered stores the classified intent (COALESCE keeps prior); get_routing_intent reads it back.
DAT-2304: in ClaudearOnly mode emit a trusted structural marker from the stored intent (fallback [Claudear: prior answer]) instead of the generated answer body, closing the trust-boundary bypass. Full mode still includes the body for grounding.
ArnabChatterjee20k
force-pushed
the
feat/fix-discord-untrusted-boundary
branch
from
August 16, 2026 10:53
7b15ba7 to
d660d2c
Compare
Greptile SummaryThis PR prevents generated Discord answer bodies from being reintroduced into intent-classification transcripts, replacing them with a persisted routing-intent marker.
Confidence Score: 5/5The PR appears safe to merge with no concrete actionable failures identified. The persisted label is derived from a fixed intent enum, legacy rows have a safe generic fallback, and classification transcripts no longer reintroduce generated answer text while trusted grounding retains the full answer. Important Files Changed
Reviews (1): Last reviewed commit: "fix(engine): stop re-injecting answer bo..." | Re-trigger Greptile |
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.
What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)