Skip to content

chore(webhook-runtime): harden for multi-persona reuse#55

Merged
khaliqgant merged 2 commits intomainfrom
chore/webhook-runtime-multipersona
Apr 25, 2026
Merged

chore(webhook-runtime): harden for multi-persona reuse#55
khaliqgant merged 2 commits intomainfrom
chore/webhook-runtime-multipersona

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Apr 25, 2026

Summary

W4 of the cf-runtime bundle. Small audit-driven fixes to @agent-assistant/webhook-runtime so the new cloudflare-runtime package can reuse it cleanly across sage / nightcto / future personas.

Scope is intentionally tiny — audit-driven patches only. See AUDIT-04.md on the branch for the full list.

Test evidence

  • npx vitest run in packages/webhook-runtime/ — all green (8 files, 31 tests).
  • VERDICT-04.md: KEEP.

Order

Independent of W1/W2/W3 — any merge order is fine.


Open in Devin Review

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b0d0f6803

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +4 to +7
export {
SlackEventDedupGate,
getSlackDeduplicationKey,
} from "@agent-assistant/surfaces";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Build surfaces before running webhook-runtime tests

This re-export introduces a runtime dependency on @agent-assistant/surfaces, but the webhook-runtime pretest script still only builds harness and specialists; on a clean workspace install where local packages are symlinked, @agent-assistant/surfaces resolves to packages/surfaces/dist/index.js, so npm test -w @agent-assistant/webhook-runtime can fail before tests run if surfaces has not been built yet. Please add surfaces to the pretest build chain (or another guaranteed build step) to keep package-level tests reproducible.

Useful? React with 👍 / 👎.

Small surgical fixes from the cf-runtime audit (AUDIT-04.md) so the new
@agent-assistant/cloudflare-runtime package can reuse parseSlackEvent and
types without sage-specific coupling.

No API breaks. Patch release.
@khaliqgant khaliqgant force-pushed the chore/webhook-runtime-multipersona branch from 8b0d0f6 to 2a4791a Compare April 25, 2026 06:50
devin-ai-integration[bot]

This comment was marked as resolved.

@miyaontherelay
Copy link
Copy Markdown
Collaborator

Addressed the valid surfaces workspace-range review comment on the current PR head.

Fix:

  • updated packages/webhook-runtime/package.json to depend on @agent-assistant/surfaces ^0.3.0 instead of ^0.2.25
  • refreshed package-lock.json so webhook-runtime now resolves the local workspace surfaces package instead of pulling the stale 0.2.25 registry tarball

Validation:

  • npm install
  • npm test --workspace @agent-assistant/webhook-runtime
    • 8 files passed / 31 tests passed

Pushed:

  • $(git rev-parse --short HEAD)fix(webhook-runtime): align surfaces workspace range

@khaliqgant khaliqgant merged commit 576a32d into main Apr 25, 2026
1 check passed
@khaliqgant khaliqgant deleted the chore/webhook-runtime-multipersona branch April 25, 2026 07:38
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.

2 participants