Repository navigation
Commit 2944a88
Eva
fix(bench): mention the orchestrator by pubkey when posting the task
The harness posts each trial's task via `buzz messages send`, relying on
`@<orchestrator-id>` name resolution. Task text is untrusted payload:
when it contains @-tokens of its own — TB 2.1's large-scale-text-editing
task embeds Vim macros like `:%normal! @a` — the CLI's mention resolver
rejects `@a` as an unknown channel member and refuses to send, killing
the trial with RuntimeLaunchError before the agent ever saw the task.
Pass the orchestrator's pubkey as an explicit --mention instead. The CLI
demotes unresolved @-tokens in the text to presentation-only when any
explicit identity is supplied, so delivery still targets exactly the
orchestrator and every @-token in the task statement becomes inert.
Live repro on the relay confirmed both halves: a fenced `@a` without
--mention still hard-fails (the resolver is not markdown-aware); the
same content with an explicit --mention sends clean.
- benchmarks/harbor-buzz-orchestra: full pytest suite, 35 passed
(34 baseline + new test), ruff clean — validated against origin/main
769ac70 with this patch applied
- testbed: full pytest suite, 23 passed / 1 skipped, ruff clean
Originating Buzz thread:
buzz://message?channel=c3252dd2-0142-4e01-88c7-a2183c3960a5&id=74a65a0990fd2197882b66b5ea2707169d4a3dbd2020d1610c45150fb99f140b
Co-authored-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz>
Signed-off-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz>
(cherry picked from commit e1953e2)1 parent 1cf841a commit 2944a88
2 files changed
Lines changed: 52 additions & 6 deletions
File tree
- benchmarks/harbor-buzz-orchestra
- src/harbor_buzz_orchestra
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
369 | 374 | | |
370 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
371 | 379 | | |
372 | 380 | | |
373 | 381 | | |
| |||
1223 | 1231 | | |
1224 | 1232 | | |
1225 | 1233 | | |
1226 | | - | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
1227 | 1240 | | |
1228 | | - | |
1229 | | - | |
| 1241 | + | |
1230 | 1242 | | |
1231 | 1243 | | |
1232 | | - | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1233 | 1248 | | |
1234 | 1249 | | |
1235 | 1250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
918 | 949 | | |
919 | 950 | | |
920 | 951 | | |
| |||
0 commit comments