diff options
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 35 |
1 files changed, 34 insertions, 1 deletions
@@ -30,7 +30,8 @@ built-in settings. Examples in `examples/`. Spec: Cloud models (2026-10-23): `[[cloud]]` providers in `config.toml`, keys from `key_cmd`, ids `provider:model`, chosen per chat and stored on the -conversation. Only tools with `cloud = true` go to a cloud chat. Spec: +conversation. Only tools with `cloud = true`, or `cloud` naming the provider +(`["hetzner"]`), go to a cloud chat. Spec: `docs/superpowers/specs/2026-10-23-cloud-models-design.md`. Run: `python3 assistant.py` (`--test` for the self-check), or @@ -296,6 +297,38 @@ at the user's choice. - Every call is an admin login, which Foldergram rate limits; untested under repeated questions. +### Redact tool, live check (2026-11-09) + +`redact` (`examples/tools/redact.py`): a copy of an attached PDF or image +with personal data blacked out, `<name>-redacted.<ext>` beside it, opened +for review. Regex for emails, phones, IBANs, card numbers and 16-character +codes (codice fiscale); the model adds names and addresses as items. +Output PDFs are page images only. `cloud = ["hetzner"]`: a tool's `cloud` +may name trusted no-retention providers. Attachment blocks now carry the +file's path, images included. Spec: +`docs/superpowers/specs/2026-11-09-redact-tool-design.md`. + +- tesseract had no language data; the standard `ita` and `eng` (16.0 and + 23.5 MB) are in `/usr/share/tessdata/`, copied by hand. +- ImageMagick's policy forbids writing PDF: the script writes it itself. +- Through a second daemon on a scratch socket, config and data dir, with + made-up documents. A text PDF ("Redact the personal data in this."): + the right path, name and address as items, 5 boxes (email, IBAN, + phone, 2 items), no text layer left; tool call at 14.7 s, reply at + 17.6 s (Gemma). The same in a Hetzner chat: same call at 7.2 s. +- An image ("Togli i dati personali da questa immagine."): name and + address as items, email found, but the codice fiscale stayed visible. + tesseract read `80` as `E0`, the strict layout failed, and the model + had not listed it, trusting the description's "always found". The rule + is now any 16-character code with 3+ letters and 3+ digits, and the + description asks for these in items on scans too. Second run: 4 boxes, + the code included. The model still did not list it. +- Review findings fixed before the live check: content outside the + CropBox leaked into the output, `/Rotate` pages were stretched, + letter-spaced text was not matched. +- The model calls the found items "the 2 items you provided": they were + its own. + ### Cloud models, live check (2026-10-23) Hetzner's inference API (`https://inference.hetzner.com/api/v1`, |
