Protected personality files and secret redaction in logs

Offen
#178 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
backend, security

Rechercherichtung

Start with how skill changes already become pending diffs, then check whether the same approval path can cover writes from sentient/memory/workspace.py and the memory and files tools. Separately, find the logging setup in sentient/app.py and the keychain access in sentient/secrets.py to see where a redaction filter would attach. Done means an agent write to a protected file asks first, a known secret value never appears in logs or tool errors, and tests cover both. The issue leaves the approval mechanism unspecified, so confirm the design with a maintainer before coding.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: engine area: memory enhancement help wanted priority: P2 size: S

An injected instruction that rewrites SOUL.md or a skill persists forever. Secrets that leak into tool errors and logs end up in bug reports. Hermes v0.21.0 shipped protection for both.

Idea:

  • agent writes to SOUL.md, USER.md, MEMORY.md, skills and config always require approval
  • secrets (keychain values, tokens, keys) are redacted from tool errors, logs and checkpoints

Status in Sentient today: Partial. Skill changes already land as pending diffs, and secrets live in the keychain (sentient/secrets.py). Workspace file writes and log redaction are not covered.

Where: sentient/memory/workspace.py, sentient/tools/builtin/memory_tool.py, sentient/tools/builtin/files_tool.py, a logging filter set up in sentient/app.py, and sentient/secrets.py.

Done when:

  • an agent write to a protected file asks first
  • a known secret value never appears in logs or tool errors
  • tests cover both

Sources:

Roadmap ID: SAFE-16 · Priority: P2 · Size: S

Vorherrschende Sprache
Python
Sterne
716
Forks
132
Ø Merge
16 Std. 34 Min.
Gemergte PRs (30 T.)
215

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus existence-master/Sentient

Alle Issues in existence-master/Sentient

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.