Files
stack/agents/dewey/work/queue-177/r2/mut/M1-thread-owner-human.patch
jason.woltje 6bad02612a lead: commit dewey's untracked evidence (721 files: queue-124-review queue-143 queue-149 queue-165-review queue-170 queue-175 queue-177 queue-184 queue-191)
Unclaimed files left in the canonical checkout. Inventory: canonical-cleanup-inventory.md (commit-as-evidence groups). detect-secrets scan clean on 2026-11-02: hits are sha256 pins, git object ids, test sentinels already in tracked tests and unit-file lines.
2026-11-02 15:05:14 -06:00

12 lines
663 B
Diff

--- /home/jwoltje/dewey-scratch/b177-r2/mut/.bak.umskXb/packages/bus/src/broker.mjs 2026-10-19 21:53:43.196497046 -0500
+++ packages/bus/src/broker.mjs 2026-10-19 21:53:43.212936087 -0500
@@ -350,7 +350,7 @@
const t = this.#store.get('SELECT * FROM threads WHERE id=? AND business=?', identifier(id), s.business);
if (!t) fail('thread-not-found');
// REQ-USER-2: a user reaches only their own threads.
- if (t.owner !== this.#owner(s)) fail('thread-not-owned');
+ if (t.owner !== s.human) fail('thread-not-owned');
return t;
}
// Row 177 (#1675): who owns the threads a session makes. A tester's are `tester`'s, never the human's.