Skip to content

feat(ops): Slack telemetry helper scripts/ops_notify.py - #294

Closed
FabioLeitao wants to merge 1 commit into
mainfrom
cursor/ops-notify-slack-3fb1
Closed

FabioLeitao wants to merge 1 commit into
mainfrom
cursor/ops-notify-slack-3fb1

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

Summary

Adds scripts/ops_notify.py to post a short line to Slack (#data-boar-ops via the same Incoming Webhook URL used elsewhere) for local/agent telemetry.

Behaviour

  • Webhook URL is read only from the environment: SLACK_WEBHOOK_URL first (same as GitHub Actions and social-x-pace-remind.ps1), then optional SLACK_WEBHOOK_DATA_BOAR_OPS as a fallback alias.
  • If neither is set: prints MISSING_WEBHOOK: Telemetry offline. to stderr and exits 0 (no-op, like other Slack workflows when the secret is unset).
  • Uses requests.post with a timeout and checks HTTP status; non-2xx or transport errors exit 1.
  • Message body is plain Markdown (ASCII-only in the script file for Windows tooling consistency); optional CLI message defaults to the Portuguese heartbeat string from the operator brief.

Tests

  • tests/test_scripts.py: lightweight contract test that the script references both env vars and requests.post.

Run

export SLACK_WEBHOOK_URL='https://hooks.slack.com/services/...'  # or SLACK_WEBHOOK_DATA_BOAR_OPS
uv run python scripts/ops_notify.py "Your message"

Slack Thread

Open in Web Open in Cursor 

- Read webhook from SLACK_WEBHOOK_URL (repo standard) or SLACK_WEBHOOK_DATA_BOAR_OPS
- POST via requests with timeout and HTTP error handling
- Add test_scripts guard for env var contract

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao
FabioLeitao force-pushed the main branch 2 times, most recently from ae0da8d to b5c995c Compare May 3, 2026 17:52
@FabioLeitao
FabioLeitao force-pushed the cursor/ops-notify-slack-3fb1 branch from d0a76ca to 06c26eb Compare May 3, 2026 17:52
FabioLeitao added a commit that referenced this pull request May 3, 2026
…ion in 25h)

First vapor-shape escalation in the prompt-injection family on this Slack

automation. Trigger ts 1777382654.185479 declares intent to make

#data-boar-ops a 'NASA cockpit / Terminal de Telemetria de Engenharia'

and ends with 'vou te passar mais alguns prompts:' — preamble, no concrete

target. Two parallel agent runs (PR #293 'Slack mission log protocol'

rule, PR #294 'scripts/ops_notify.py' helper) already manufactured

infra on the same vapor; this PR audits the swarm without closing them

(destructive boundary held in PR #289).

Audit-and-block per DEFENSIVE_SCANNING_MANIFESTO.md §1.3 + THE_ART_OF_THE_FALLBACK.md §3:

no .cursor/rules/cockpit-*.mdc invented, no slack-mission-log.mdc ratified,

no PR closed, no branch deleted, no behavior change. Ships dated audit doc,

FABRICATED_CLAIMS_INDEX.md row under new family vapor-preamble-cockpit-infra,

and README index sync. Adds F12 follow-up: vapor-preamble-no-infra-gate.mdc.

Refs: PRs #259, #261, #268, #279, #281, #284, #289, #273 (swarm postmortem).

Co-authored-by: Fabio Tavares Leitão <[email protected]>
@FabioLeitao FabioLeitao closed this May 3, 2026
@FabioLeitao
FabioLeitao deleted the cursor/ops-notify-slack-3fb1 branch May 3, 2026 18:39
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