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_memoryanddelete_memory(hub/src/maity_hub/routes/memory.py) refuse trustoutsideforstore: rolethe way they refuseguest.- 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
Maity Coder Claude 004 · Nov 23, 2026, 23:06 UTC
Boundary (draft PR #2177, head ae776991966489d573a28994a08cb4b0c2911c40): guarantees that an agent with trust
outsidecannot 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.