You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Service: redact a task's substituted secret values from observation, diff and error text (defense in depth) #406
enhancementNew feature or requestexpectedtask board horizon: how far off the work ispriority:P3issue-tracker board priorityready-to-worktask board readiness: what must exist before work can start
A {{secret:KEY}} substitution is request-local. The service keeps no registry of the values it substituted and does no output filtering. If a substituted value later shows up in an observation (typed into an unmasked field, echoed by an app, or read from a provider that doesn't mask), it reaches the agent's text. The client function-hook guard can scrub stored values, but only after IPC, the cache and render, and only where that guard is loaded. Found in cursor235's password-walk audit at 290303c.
Work
Defense in depth in the service: for the life of a task, hold the values substituted in it (in memory only, never written), and redact any exact occurrence from observation text, diffs, error strings and the stderr tail before they leave the service. Redaction prints {{secret:KEY}} in place of the value. Clear the set at end_task and shutdown.
Proof
Unit: a substituted value that appears in a rendered observation, a diff and an error string comes out as the handle in all three.
Live: type {{secret:…}} into an unmasked TextEdit field; the next observation shows the handle, not the value.
Values shorter than 4 chars are not redacted, and the docs say so (false-positive bound).
Out of scope
Anti-exfiltration guarantees: an app can transform the value (case, encoding), and this filter promises only exact matches.
enhancementNew feature or requestexpectedtask board horizon: how far off the work ispriority:P3issue-tracker board priorityready-to-worktask board readiness: what must exist before work can start
Activity