Skip to content

Add Alert and verify the multi-agent run and chat experience - #8

Merged
asim merged 2 commits into
mainfrom
codex/alerts-and-health
Nov 2, 2026
Merged

asim merged 2 commits into
mainfrom
codex/alerts-and-health

Conversation

@asim

@asim asim commented Nov 1, 2026

Copy link
Copy Markdown
Member

Monitoring previously depended on systemd, so the normal micro run experience could not monitor its own services. This adds RPC health checks and a persistent Alert service, with a tested failure and recovery journey across all five agents.

  • micro.json starts Support, DevOps, Release, Monitor and Alert. Separate stores avoid file locking between processes; shared registry configuration works across them.
  • Monitor checks each registered instance. Alert records repeated failures, sends one notification per incident and reports recovery. Notifications go to the local log or an operator-configured webhook, with persistent receipts and retries. Delivery is at least once; webhook receivers can deduplicate using the stable notification ID.
  • DevOps reads local micro run logs when systemd units are not configured. Release starts in inspection-only mode until a workflow is configured.
  • Installation and deployment documentation use the existing CLI and systemd template.

Validation: go test -race ./..., go build ./..., go vet ./... and the full CLI journey passed locally. The journey starts an isolated NATS registry, runs all five agents, delegates through one micro chat, stops and restores Support, verifies failure/recovery notifications, and restarts Alert to verify persisted delivery history. It is also included in CI.

The model and webhook are local fixtures. Default mDNS, live model quality and deployment to a production host were not validated here. Repair remains manual; Monitor and Alert are single-instance services in this milestone.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T18:55:13.924294Z 1c18fd1 PR opened
ℹ️ 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: 1c18fd14a1

ℹ️ 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 thread services/monitor/monitor.go Outdated
Comment on lines +108 to +109
if m.probe != nil {
state = m.probe(ctx, name)

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 Keep full sampling rounds within Alert's freshness window

With 16 configured services whose registered replicas consume the five-second probe deadline, this sequential loop takes about 80 seconds, making the first observations roughly 75 seconds old before the snapshot is published. Alert.poll rejects the entire response whenever any observation is older than one minute, so every snapshot in this supported configuration is discarded: actual service failures and recoveries never reach incident detection, and operators receive only a stale-monitoring incident. Bound the full sampling round, for example with concurrent probes, so published observations remain within Alert's freshness window.

Useful? React with 👍 / 👎.

@asim
asim merged commit 71cc4f7 into main Nov 2, 2026
4 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