Skip to content

feat(e2e): workflow bridge mutations publish real relay events (Fixes #172) - #176

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/e2e-bridge-workflow-relay-mutations-1c6c
Aug 12, 2026
Merged

feat(e2e): workflow bridge mutations publish real relay events (Fixes #172)#176
cursor[bot] merged 1 commit into
mainfrom
cursor/e2e-bridge-workflow-relay-mutations-1c6c

Conversation

@oscarlehuu

Copy link
Copy Markdown

Summary

Gives the four e2e bridge workflow commands real relay branches under D-042, fixing the mock-boundary trap recorded in audit 0011 during #144 / PR #168.

Confirmed against Rust (desktop/src-tauri/src/commands/workflows.rs + events.rs):

Command Kind Tags / content Return (relay)
create_workflow 30620 d + h, YAML content flattened WorkflowSaveWire (+ optional webhook_secret from response:)
update_workflow 30620 same d + prior h flattened wire, no webhook secret
delete_workflow 5 a=30620:owner:id void
trigger_workflow 46020 d { event_id } (Rust shape)

No kind 30625 exists in Rust or the repo (issue title hypothesis only). Mock mode is unchanged for smoke.

Related issue

Fixes #172

Testing

  • Aligned event shapes with Rust workflows.rs / events::build_workflow_* (kinds/tags above).
  • pnpm --filter buzz typecheck — pass
  • pnpm --filter buzz check — pass (pre-existing optional-chain warning in archive path only)
  • CI=true pnpm --filter buzz build:e2e — pass
  • Integration: extended desktop/tests/e2e/bridge-relay-mutations.spec.ts with create → update → trigger → delete assertions against POST /query. Local Docker/relay stack was not available in this cloud agent VM, so the integration project was not executed here. Covered by advisory Desktop E2E Integration when CI runs (not part of required NuncioCrew Gate).
  • Docs: moved workflow commands from misclassified local-only → relay-aware in docs/crew/verification/0011-e2e-bridge-relay-mutation-audit.md; updated docs/crew/STATE.md pointer.

Notes

  • Relay trigger return is { event_id } to match Rust; mock mode still returns the smoke-oriented { run_id, workflow_id, status } shape.
  • Does not expand into hold epics or unrelated bridge work.
Open in Web Open in Cursor 

Publish create/update/delete/trigger_workflow through submitSignedEvent in
relay mode (kinds 30620 / 5 / 46020), matching Rust workflows.rs. Extend
the bridge-relay-mutations integration spec and update audit 0011.

Fixes #172

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: oscarlehuu <oscarlehuu@users.noreply.github.com>
@oscarlehuu
oscarlehuu marked this pull request as ready for review August 12, 2026 15:25
@cursor
cursor Bot merged commit bdecaf3 into main Aug 12, 2026
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e bridge: workflow commands misclassified local-only — publish real relay events (30620/30625/46020) in relay mode

2 participants