Skip to content

feat: health monitor, schema versioning, access logs, event reference guide#357

Merged
Abd-Standard merged 1 commit into
Core-Foundry:mainfrom
Darkdruce:feature/multi-issue-311-309-312-274
Jun 29, 2026
Merged

feat: health monitor, schema versioning, access logs, event reference guide#357
Abd-Standard merged 1 commit into
Core-Foundry:mainfrom
Darkdruce:feature/multi-issue-311-309-312-274

Conversation

@Darkdruce

Copy link
Copy Markdown
Contributor

Summary

Implements four issues in a single PR.

Closes #311 — [Backend] Notification Health Monitor

  • New NotificationHealthMonitor service (listener/src/services/notification-health-monitor.ts)
  • Monitors queue depth, stalled-job detection, worker availability, and event registry lag
  • Generates health reports on a configurable interval
  • Exposes reports at GET /api/notifications/health
  • Wired into index.ts with graceful shutdown

Closes #309 — [Contracts] Notification Version Tracking

  • Added SchemaVersionSet event to base/events.rs
  • Added SchemaVersion storage key, set_schema_version, get_schema_version, is_version_supported in autoshare_logic.rs
  • Exposed all three as public contract methods in lib.rs
  • Unsupported versions are rejected with Error::InvalidInput; only admin can set version
  • Tests: tests/schema_version_test.rs

Closes #312 — [Contracts] Notification Access Logs

  • Added NotificationAccessed event to base/events.rs
  • Added record_notification_access in autoshare_logic.rs
  • Exposed as public contract method in lib.rs
  • Tests: tests/access_log_test.rs

Closes #274 — [Docs] Smart Contract Event Reference Guide

  • New CONTRACT_EVENT_REFERENCE.md documenting all emitted events, shared types, parameters, examples, and indexer/listener recommendations
  • Linked from README.md

…vent reference guide

Closes Core-Foundry#311 - [Backend] Implement Notification Health Monitor
Closes Core-Foundry#309 - [Contracts] Add Notification Version Tracking
Closes Core-Foundry#312 - [Contracts] Implement Notification Access Logs
Closes Core-Foundry#274 - [Docs] Create Smart Contract Event Reference Guide
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Darkdruce Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Abd-Standard Abd-Standard merged commit be7ca9f into Core-Foundry:main Jun 29, 2026
1 of 3 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

2 participants