Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/features/agent-harness/kit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ describe("harnessKit.conversation", () => {
await kit.conversation(delivery({ type: "mention", event }), "thread"),
).toBeUndefined();
const workflow = message("3", "@Ampy go", {
pubkey: mallory,
tags: [
["h", channel],
["buzz:workflow", "w"],
Expand All @@ -187,6 +188,13 @@ describe("harnessKit.conversation", () => {
"thread",
),
).toBeUndefined();
// A marker alone neither grants authority nor revokes the owner's own.
expect(
await kit.conversation(
delivery({ type: "mention", event: { ...workflow, pubkey: alice } }),
"thread",
),
).toBeDefined();
expect(
await kit.conversation(
delivery({
Expand Down
2 changes: 1 addition & 1 deletion src/features/agent-harness/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export type HarnessPrompt = Readonly<{
export type HarnessKit = Readonly<{
/** The conversation a mention or a wake goes to. Undefined when the
* harness must not act on it: another trigger, a mention that is not the
* owner's own or attested by them (a workflow's never is), no channel, or a
* owner's own or attested by them, no channel, or a
* wake with no conversation to go to. */
conversation(
delivery: Delivery,
Expand Down
Loading