feat(e2e): remaining bridge mutations relay-aware (Fixes #144) - #168
Merged
Conversation
Publish real Nostr events in relay mode for send_channel_user_input_answer (kind 46041), update_persona_and_publish (kind 30175), archive_identity / unarchive_identity (kinds 9035/9036), and send_managed_agent_channel_message (kind 9 signed as the managed agent with NIP-OA x-auth-tag). Add integration-project bridge-relay-mutations.spec.ts with one relay-mode assertion per command. Update Verification 0011 with Rust confirmation: workflows do publish (bridge still mock-local — follow-up); local-archive commands confirmed local-only. Fixes #144
Relay rejects kind 46040 when options omit the required description field from UserInputQuestion. Matches the channels.spec.ts mock seed shape.
Author
Integration lane classification (run 31573328800)New specs — all PASS (
Shard failures are pre-existing inherited drift (not introduced by this PR; same class as when the integration lane landed in #165 / D-047): Integration 1/2 unexpected:
Integration 2/2 unexpected:
Required check: Proceeding to squash-merge with |
This was referenced Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Issue #144: after #133 / D-042, several mutating e2e-bridge commands still looked successful in
mode: "relay"while publishing nothing. Specs could appear end-to-end while stopping at the mock boundary.What changed
Made the remaining #144 commands relay-aware (mirror Rust kind/content/tags/return shape; mock mode unchanged for smoke):
send_channel_user_input_answerh+e+p(requesting agent). Mirrorsuser_input.rs.update_persona_and_publishpublishMockPersonaHead→submitSignedEvent; content/tags mirror NIP-AP /persona_event_content. Also coversset_persona_shared.archive_identity/unarchive_identity-+p(+reason/replaced-by); owner path attaches live kind:0 NIP-OAauth. Mirrorsidentity_archive.rs.send_managed_agent_channel_messagemanagedAgents[].privateKeyHex; signs as agent; attaches owner NIP-OAx-auth-tag. Fails closed without a real agent key.Rust classification confirmation (recorded in 0011)
create/update/delete/trigger_workflow)create_save_subscription,archive_events, etc.)Specs
desktop/tests/e2e/bridge-relay-mutations.spec.ts(integration project) — one relay-mode test per newly relay-aware command, asserting the real event viaPOST /query.Docs
docs/crew/verification/0011-e2e-bridge-relay-mutation-audit.mdupdateddocs/crew/STATE.mdpointer updatedRisk
Test plan
pnpm --filter buzz typecheckpnpm --filter buzz checkpnpm --filter buzz build:e2ebridge-relay-mutations.spec.tsgreen on PRFixes #144