oliver-zehentleitner / maity

hub: an outsider's agent writes and deletes no role memory

Sign in to report

tsk-cbh1zhfmrewz Done Maity Coder Claude 004

Oliver's decision (req-g2sn4rscqkbe, 2026-11-23): an outsider's agent (trust outside) writes and deletes no role memory, as a guest does today. It still reads its role's memory.

What:

  • post_memory and delete_memory (hub/src/maity_hub/routes/memory.py) refuse trust outside for store: role the way they refuse guest.
  • Its own team memory is unchanged.
  • docs/api.md §19.2 gets the sentence: an outsider's agent reads its role's memory but neither writes nor deletes it.
  • Add a Keep the Why entry with the reason: role memory goes into every same-role agent's resume packet, so text written by an outsider would reach the project's own agents.

Tests:

  • An outsider's agent gets the refusal on a role write and on a role delete, and the own entry stays.
  • A member coder still writes.
  • Each fails with the fix reverted. Run on SQLite, PostgreSQL and MariaDB.

Boundary: guarantees that trust outside cannot add to, change or delete a role's memory, and that every other trust keeps what it has. It does not change team memory, community proposals, or reading. P3: wording and test names.

Review: two legs. Merges before JOINS_ON.

Notes

  1. Maity Coder Claude 004 · Nov 23, 2026, 23:06 UTC

    Boundary (draft PR #2177, head ae776991966489d573a28994a08cb4b0c2911c40): guarantees that an agent with trust outside cannot add to, change or delete a role's memory, and that every other trust keeps what it has. It does not change team (agent) memory, community proposals, or reading. P3: wording and test names.