Agent prompts don't mark forge text as untrusted data #1976

Open
opened 2026-11-14 07:35:09 +00:00 by sam · 1 comment
Owner

taskPromptBlock (internal/domain/workflow/steps.go) and renderReviewUnitMission (internal/domain/workflow/remediate.go) wrap issue and review text in tags but say nothing about it being data rather than instructions. Only the issue_list tool result carries that notice.

Done when every prompt that embeds forge-authored text carries the untrusted-data notice from a file in internal/prompts.

taskPromptBlock (internal/domain/workflow/steps.go) and renderReviewUnitMission (internal/domain/workflow/remediate.go) wrap issue and review text in tags but say nothing about it being data rather than instructions. Only the issue_list tool result carries that notice. Done when every prompt that embeds forge-authored text carries the untrusted-data notice from a file in internal/prompts.
sam added the bugmedium labels 2026-11-14 07:35:13 +00:00
Author
Owner

Landed in a8d1de8b5: added shared untrusted-forge-data prompt instruction via internal/prompts, wired into forge-backed taskPromptBlock, renderReviewUnitMission, PR review prompt templates (ai-score, anatomy, lens), and issue_list notice while keeping task.title raw for git commit messages. Verified with go fix -diff ./... and task check (golangci-lint, go test -short ./..., build, UI build and tests). Leaving open pending deployment (services and agent image) and live verification.

Landed in a8d1de8b5: added shared untrusted-forge-data prompt instruction via internal/prompts, wired into forge-backed taskPromptBlock, renderReviewUnitMission, PR review prompt templates (ai-score, anatomy, lens), and issue_list notice while keeping task.title raw for git commit messages. Verified with go fix -diff ./... and task check (golangci-lint, go test -short ./..., build, UI build and tests). Leaving open pending deployment (services and agent image) and live verification.
sam added the deferred label 2026-11-15 17:26:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1976