Skip to content

Implement registry verification and consent version binding#292

Merged
Emeka000 merged 2 commits into
Healthy-Stellar:mainfrom
oche2920:feature/registry-consent-fixes
Apr 29, 2026
Merged

Implement registry verification and consent version binding#292
Emeka000 merged 2 commits into
Healthy-Stellar:mainfrom
oche2920:feature/registry-consent-fixes

Conversation

@oche2920
Copy link
Copy Markdown
Contributor

  • Add actor verification with caching for domain contracts
  • Fix provider-registry and insurer-registry contracts
  • Bind clinical trial enrollment to current consent version
  • Prevent sensitive writes without registry verification

Closes #213
Closes #241

- Add actor verification with caching for domain contracts
- Fix provider-registry and insurer-registry contracts
- Bind clinical trial enrollment to current consent version
- Prevent sensitive writes without registry verification

Closes Healthy-Stellar#213, Healthy-Stellar#241
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@oche2920 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

Problem A: Structured evidence capture for severe incidents
- Add incident tracking module with severity levels
- Support multiple evidence types (error logs, state snapshots, stack traces, context)
- Implement incident lifecycle: capture -> attach evidence -> resolve
- Max 100 evidence entries per incident to prevent storage bloat
- Integrate with allergy-management contract for troubleshooting
- New contract methods: capture_incident, attach_incident_evidence, resolve_incident
- Event: IncidentCaptured for monitoring

Problem B: Report job resource management to prevent CPU/memory starvation
- Add resource management module with job queuing
- Implement resource quotas: CPU units, memory units, timeout
- System-wide limits: concurrent job limit, total budget, throttle threshold
- Job priority levels: Low, Normal, High, Critical
- Throttling mechanism: defer jobs when 80% of budget consumed
- Track actual resource usage per job completion
- Integrate with healthcare-analytics contract
- New contract methods: request_report, execute_next_report, complete_report
- Admin controls: set_resource_limits for dynamic adjustment
- Events: report_job, exec_job, job_done for monitoring

Both features include:
- Comprehensive documentation in INCIDENT_AND_RESOURCE_MANAGEMENT.md
- Privacy-preserving evidence storage (hash-based)
- Proper authorization checks via require_auth()
- Storage-efficient indexed lookups
@Emeka000 Emeka000 merged commit 84a25cd into Healthy-Stellar:main Apr 29, 2026
1 check 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.

Add consent-version locking and re-consent workflows in clinical trials Enforce cross-contract identity and actor-type validation

2 participants