Repository navigation
Description
Why
Agents read tickets through devstack's upstreams (linear__get_issue, ADR-0069). A ticket's description often holds the personal data of the people it is about: names, phone numbers, screenshots. Whatever the tool returns is in the model's context. The only place where the description can be redacted before an agent reads it is between the upstream and the agent: in the hub.
veilq 0.1.0 has the piece that decides (veilq mark, veilq ADR-0024): it reads a body, hands it on as it is when its first line is a matching veilq: cleaned <hash> / veilq: pass <hash> or an exempt prefix (an agent's own note), and otherwise redacts it, replaces images by a note and returns the marked body to write back. It makes no network call; reading from and writing to the tracker stays with the caller.
{"state": "cleaned", "text": "veilq: cleaned 0a755c45\nBitte \\<PERSON\\> zurückrufen …", "write": "veilq: cleaned 0a755c45\n…", "report": {…}}Proposal
A filter on an upstream tool's result, run by the hub before the result goes to devstack mcp:
- The hub reads a field of the tool's result (the issue's
description), runs a local command with it on stdin (veilq mark -), and returns the result with the field replaced by the command'stext. - When the command answers with
write, the hub writes it back through the same upstream (linear__save_issuewith the issue's id anddescription = write), with the user's token. The next read finds the marker and costs nothing. - Fail closed: the command missing, failing, or answering something that is not the expected JSON makes the tool call fail with an error; the raw content is never returned.
Draft review card
| # | Category | Point | Beats | Reversing costs |
|---|---|---|---|---|
| 1 | trust | The hub may rewrite an upstream tool's result through a local command (amends ADR-0069, which left rewriting content out of scope). If wrong: a filter misconfigured to pass content through looks like protection. | An agent asked to run veilq itself (it has read the content by then) | Medium: an addendum, filters configured by users |
| 2 | trust | Filters are configured per user in the hub's settings, never by a pool or a stack file: they run a command, and a pool runs no command on a member's machine (ADR-0094). | A pool handing out filters | Low: a pool could offer one for acceptance later |
| 3 | contract | A filter names the upstream, the tool, the field (a JSON path in the result), the command, and optionally a write-back (tool and arguments built from the result and the command's write). |
A veilq-specific switch | Medium: the format has users |
| 4 | concept | Fail closed: no command, an error, or an unexpected answer is an error of the tool call. A failed write-back still returns the filtered text, and logs. | Passing the raw result on an error | Low |
| 5 | concept | Images behind URLs are out of scope here: veilq mark replaces them by a note. Fetching, redacting (veilq redact) and uploading them is a later step. |
Doing everything at once | Low: additive |
Not in this issue
Keeping an agent from reading the tracker through another connector. Comments: they can be filtered the same way, but not written back (only a comment's author can edit it).
🤖 Generated with Claude Code
Activity