-
Notifications
You must be signed in to change notification settings - Fork 0
Stage strict prompt and output containment #1509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Chris0Jeky
wants to merge
11
commits into
main
Choose a base branch
from
issue-1323/prompt-rails-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fe816e3
Harden LLM capture triage containment
Chris0Jeky 48693f9
Document LLM triage prompt rails
Chris0Jeky 91340f3
Clarify untrusted task extraction prompt
Chris0Jeky a788356
Close prompt triage review gaps
Chris0Jeky e4e1100
Clarify proposed prompt containment controls
Chris0Jeky fdff894
Record proposed prompt containment tranche
Chris0Jeky a23bccd
Bound prompt containment evidence claims
Chris0Jeky 95a28a1
Fix LLM response containment rails
Chris0Jeky cc82517
Harden capture triage fallback validation
Chris0Jeky 6d90a2b
Document prompt containment review fixes
Chris0Jeky ca09aec
Close prompt containment review findings
Chris0Jeky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
50 changes: 50 additions & 0 deletions
50
backend/src/Taskdeck.Application/Schemas/capture-triage-output.llm-v2.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "$id": "https://taskdeck.dev/schemas/capture-triage-output.llm-v2.schema.json", | ||
| "title": "Taskdeck Capture Triage Output llm-v2", | ||
| "description": "Server-authored output of the strict LLM capture-triage path. The model response is limited to the tasks member; Taskdeck adds this versioned envelope after raw-JSON containment and ordinal source-evidence grounding.", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "version", | ||
| "promptVersion", | ||
| "tasks" | ||
| ], | ||
| "properties": { | ||
| "version": { | ||
| "type": "integer", | ||
| "const": 1 | ||
| }, | ||
| "promptVersion": { | ||
| "type": "string", | ||
| "const": "llm-triage.v2" | ||
| }, | ||
| "tasks": { | ||
| "type": "array", | ||
| "minItems": 1, | ||
| "maxItems": 20, | ||
| "items": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "title", | ||
| "evidence" | ||
| ], | ||
| "properties": { | ||
| "title": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "maxLength": 180, | ||
| "pattern": "^(?!\\s)(?!.*\\s$)(?!.*[\\u0000-\\u001F\\u007F-\\u009F\\u061C\\u200E\\u200F\\u2028\\u2029\\u202A-\\u202E\\u2066-\\u2069\\uFEFF]).+$" | ||
| }, | ||
| "evidence": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "pattern": "[^\\s\\uFEFF]", | ||
| "maxLength": 280 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.