Skip to content

feat: [doppel_alert_takedown] add alert and takedown workflow actions - #1070

Merged
adulau merged 2 commits into
mainfrom
codex/enrich-doppel_alert_takedown
Oct 30, 2026
Merged

adulau merged 2 commits into
mainfrom
codex/enrich-doppel_alert_takedown

Conversation

@adulau

@adulau adulau commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Explicit workflow actions create a Doppel alert or request takedown of an existing alert through the V1 API. Takedown requests read existing state before sending queue_state=actioned; actioned or resolved alerts are not updated again. Server environment credentials, response acknowledgements, bounded requests and uncertain submission outcomes are documented and tested.

Includes a usage guide and focused adapter tests.

Validation: 10 passed, 1 warning in 0.12s with pytest -q tests/test_doppel_alert_takedown.py; flake8 passed for the module. The combined enrichment regression check passed 389 tests.

Authenticated provider API validation remains pending. Tests use sanitized fixtures; no provider credentials are included.

Review updates: Retrieve queue state after creation and return the provider-supplied alert deep link.

Updated validation: 11 passed, 1 warning in 0.10s; module lint passed. Combined regression validation passed 409 tests.

@adulau
adulau marked this pull request as ready for review October 29, 2026 22:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T22:12:53.608738Z a894cf7 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-29T22:14:56.642272Z a894cf7 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: a894cf7e41

ℹ️ 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".

"data": {
"action": action,
"alert_id": data["id"],
"queue_state": data.get("queue_state"),

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 Fetch the queue state before returning it

For create_alert, data is the direct POST response, but the documented V1 submission response only provides the alert identity, entity, deep link, and activity timestamp; Doppel directs clients to GET /v1/alert to read queue_state. Consequently normal creation responses return "queue_state": null, despite the module's documented output contract. Fetch the created alert before constructing the result, or stop advertising this field for creation. See the Doppel submission response.

Useful? React with 👍 / 👎.

"action": action,
"alert_id": data["id"],
"queue_state": data.get("queue_state"),
"link": "https://app.doppel.com/alerts/" + data["id"],

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 Return Doppel's supplied deep link

Successful responses supply doppel_link using the documented Doppel Vision route (for example, https://vision.doppel.com/drp/ACM-1234), but this discards it and invents an unrelated https://app.doppel.com/alerts/... URL. Workflow consumers following the returned link therefore do not receive the provider's supported alert destination. Preserve the response's doppel_link instead. See the documented response shape.

Useful? React with 👍 / 👎.

@adulau
adulau merged commit 41b6d99 into main Oct 30, 2026
7 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.

1 participant