Skip to content

Add explicit prompt source trust controls - #17

Merged
dermatthes merged 1 commit into
mainfrom
feat/prompt-source-trust
Sep 17, 2026
Merged

dermatthes merged 1 commit into
mainfrom
feat/prompt-source-trust

Conversation

@dermatthes

Copy link
Copy Markdown
Collaborator

Summary

  • add allowInstructions: bool = false to content prompt types
  • render explicit external/untrusted data vs instruction-enabled source policies
  • keep direct string prompt shorthand instruction-enabled for backwards-compatible task prompts
  • treat PromptFile bodies as instructions while keeping references untrusted unless allow_instructions: true
  • document the trust model in PromptType PHPDoc and .ai-usage-info.md
  • add regression coverage for defaults, opt-in rendering, and PromptFile references

Validation

  • branch is rebased onto current main and squashed to one commit
  • GitHub Actions test workflow should validate the PHPUnit suite on this PR

@dermatthes
dermatthes merged commit 3615f78 into main Sep 17, 2026
1 check passed
@dermatthes
dermatthes deleted the feat/prompt-source-trust branch September 17, 2026 12:34
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