Integration Health & Credit Efficiency

Production monitoring — 7-day observation window

Today's Credit Status — Mon 26 Oct

Observed Integration Calls

0

External Integration Calls

0

GREEN

Base44 Workspace Credits

Not available from application code

7-Day Average

0

credits/day

GREEN: ≤ 30 credits/day
AMBER: 31–40 credits/day
WARNING: 41–50 credits/day
RED: > 50 credits/day
7-Day Daily Credit Summary
DateObserved CallsEst. CreditsActual CreditsAIEmailDriveQBAutoFailedRetriesCachedDupes PreventedTop Consumer
Tue 20 Oct00
GREEN
N/A000000000—
Wed 21 Oct00
GREEN
N/A000000000—
Thu 22 Oct00
GREEN
N/A000000000—
Fri 23 Oct00
GREEN
N/A000000000—
Sat 24 Oct00
GREEN
N/A000000000—
Sun 25 Oct00
GREEN
N/A000000000—
Mon 26 Oct00
GREEN
N/A000000000—

7-Day Average

0 credits/day

Highest Day

0

Lowest Day

0

Mon 26 Oct

Circuit Breaker Events

0

Top 5 Credit Consumers (7-Day)

No integration credit usage recorded yet.

Cache Savings (7-Day)

0

external calls avoided by caching

Duplicates Prevented (7-Day)

0

duplicate calls blocked by idempotency

30-Day Integration Summary

Total Calls

0

Successful

0

Failed

0

Cached/Skipped

0

Retries

0

Per-Integration Breakdown

Attempts, successes, failures, and skipped calls by integration type

No integration calls recorded in the last 30 days.

Per-Integration Summary (7-Day)
IntegrationCalls TodayCalls 7 DaysFailuresEst. CreditsStatus
AI / InvokeLLM0000
Idle
Resend0000
Idle
Google Drive0000
Idle
Google Sheets0000
Idle
Google Calendar0000
Idle
QuickBooks0000
Idle
Stripe0000
Idle
PayPal0000
Idle
Companies House0000
Idle
Address Lookup0000
Idle
WhatsApp0000
Idle
Automation Runs0000
Idle

Credit figures are application-level estimates based on call count × per-type cost. Not authoritative billing.

AI Verification Requests (7d)

0

AI Actually Executed (7d)

0

Cache Hits (7d)

0

Cache Hit Rate (7d)

0%

AI Function Activity (7-Day)

No AI function activity recorded yet. Records appear automatically as functions execute.

AI Cost Control
Normal

All approved AI features operate normally. Document verification, profile verification, and optional AI assistants all run as configured.

Mode Details:

  • Normal: All AI functions operate as configured. Default.
  • Essential Only: Only document & profile verification. Blocks optional AI (matching, scheduling, rates).
  • Manual Only: No AI runs automatically. Admin must manually trigger each function.

Note: This setting does NOT disable AI functions entirely — it only prevents automatic execution. Admins can always manually trigger AI functions regardless of mode.

Integration Call Log — Today

Total Calls

0

Successful

0

Failed

0

Cached/Skipped

0

Retries

0

Potential Waste Detection

No waste patterns detected in the logged period.

Cache Savings Breakdown (7 days)

AI Cache Skips

0

Email Dedup

0

Drive Hash Skips

0

Address Cache

0

These calls were served from cache or prevented by idempotency checks — zero external API credits consumed.

Internal Integration Call Budgets

Nursewell internal guardrails — NOT Base44 remaining credits. Set daily limits for external integration calls.

AI Calls
NORMAL
0 / 20 calls today
Email Calls
NORMAL
0 / 50 calls today
Drive Uploads
NORMAL
0 / 30 calls today
Address Lookups
NORMAL
0 / 10 calls today
QuickBooks
NORMAL
0 / 10 calls today
Companies House
NORMAL
0 / 5 calls today
PayPal
NORMAL
0 / ∞ calls today
Stripe
NORMAL
0 / ∞ calls today

Note: Payment APIs (Stripe, PayPal) use idempotency-based protection, not rate limiting. Set to 0 for no limit.

Top Consumers (by Function)

No integration call logs recorded yet.

Integration & Automation Health

No integration health records yet. Records appear automatically as functions execute.

Failed Email Reconciliation

Historical failed transactional emails. No email is resent automatically — each entry requires explicit admin action.

Total Failed

0

Resend May Be Required

0

No Longer Relevant

0

Superseded

0

Requires Review

0

No failed transactional emails found.

No emails are resent from this report. Each "Resend May Be Required" entry should be reviewed manually — the underlying shift data may have changed since the original failure.

Total Functions Audited

170

Fully Unprotected

160

Fully Protected

5

Cloud Offload Savings

~1120/mo

A — Critical Financial

14 functions · 12 unprotected

B — Critical Business

33 functions · 29 unprotected

C — Operational Notifications

64 functions · 62 unprotected

D — AI Functions

30 functions · 30 unprotected

E — External API / Drive

29 functions · 27 unprotected

Cloud Offloading Assessment
Function-Level Credit Inventory
FunctionClassIntegrationsCreditsCBLogDedupCacheRLRetryAI CtrlRecommendation
processStripePayment
A
stripe3FULLY PROTECTED — idempotency + logging active
capturePayPalPayment
A
paypal2Add idempotency logging + circuit breaker
createPayPalOrder
A
paypal1Add idempotency + logging
createStripePaymentIntent
A
stripe1Add idempotency + logging
createStripeCheckoutSession
A
stripe1Add idempotency + logging
confirmStripePayment
A
stripe1Add idempotency + logging
generatePayroll
A
email1Add email dedup + logging
generatePayrollInvoices
A
email,drive,external_api4Add circuit breaker + logging + drive dedup
autoRunWeeklyBACSPayroll
A
email1Add email dedup + logging
generateRTIFPS
A
email1Add email dedup + logging
generateAndSubmitRTIFPS
A
email1Add email dedup + logging
generateHMRCFPS
A
email1Add email dedup + logging
autoGenerateRTIFPSOnPayroll
A
email1Add email dedup + logging
exportHMRCPayroll
A
email1Add email dedup + logging
verifyDocumentWithAI
B
ai,email,drive3FULLY PROTECTED — circuit breaker + AI hash cache + cost control
verifyRightToWork
B
ai,drive3Add circuit breaker + AI hash cache + logging
verifyRightToWorkWithPDF
B
ai,drive3Add circuit breaker + AI hash cache + logging
verifyDbsUpdateService
B
external_api1Add circuit breaker + caching + logging
generateAndSendBillingCycleInvoice
B
email,drive,external_api3Add circuit breaker + email dedup + drive dedup + logging
sendInvoiceToAccountsPayable
B
email,drive,external_api4Add circuit breaker + email dedup + drive dedup + logging
sendInvoiceEmail
B
email,external_api3Add circuit breaker + retry logic
sendInvoiceToClient
B
email,external_api2Add email dedup + logging
generateInvoicePDF
B
drive1Add drive content hash + logging
generateAndSendInvoicePDF
B
email,drive,external_api3Add circuit breaker + email dedup + drive dedup + logging
autoAttachInvoicePDFOnSent
B
drive1Add drive content hash + logging
generateClientContract
B
email,drive2Add email dedup + drive dedup + logging
generateClientContractWithSignature
B
email,drive2Add email dedup + drive dedup + logging
generateSignedContract
B
drive1Add drive content hash + logging
generateSubcontractorAgreementPDF
B
drive1Add drive content hash + logging
sendSubcontractorAgreement
B
email1Add email dedup + logging
sendContractEmail
B
email1Add email dedup + logging
handleDocumentApproval
B
email3Add email dedup + logging
backupCriticalRecordToDrive
B
drive,external_api2FULLY PROTECTED — content hash + circuit breaker + retry
sendPayslipEmails
B
email1Add email dedup + logging
uploadPayslipToDrive
B
external_api,google_api3Add drive content hash + circuit breaker + logging
checkExpiringComplianceDocuments
B
email4Add email dedup + logging
sendOverdueInvoicePaymentReminders
B
email2Add circuit breaker + retry logic
checkOverdueInvoices
B
email1Add email dedup + logging
checkOverdueInvoicesAndRemind
B
email1Add email dedup + logging
sendPaymentReminders
B
email1Add email dedup + logging
sendPaymentReminder
B
email1Add email dedup + logging
markInvoiceAsPaid
B
email1Add email dedup + logging
sendShiftAssignmentEmail
C
email1Add email dedup + logging
sendShiftReminders
C
email1Add email dedup + logging
sendUpcomingShiftReminders
C
email1Add email dedup + logging
sendUpcomingShiftNotifications
C
email1Add email dedup + logging
sendShiftNotifications
C
email1Add email dedup + logging
sendTimesheetReminders
C
email1Add email dedup + logging
sendDraftTimesheetReminder
C
email1Add email dedup + logging
sendOnboardingReminders
C
email1Add email dedup + logging
sendOnboardingProgressUpdate
C
email1Add email dedup + logging
sendProfileCompletionReminder
C
email1Add email dedup + logging
sendStaffAvailabilityReminder
C
email1Add email dedup + logging
sendAvailabilityReminders
C
email1Add email dedup + logging
sendTrainingExpiryNotifications
C
email1Add email dedup + logging
sendDocumentExpiryReminders
C
email1Add email dedup + logging
sendExpiryReminders
C
email1Add email dedup + logging
sendComplianceReminderEmails
C
email1Add email dedup + logging
sendComplianceExpiryNotifications
C
email1Add email dedup + logging
sendReferenceRequestsForStaff
C
email,external_api3Add circuit breaker + retry logic
sendSingleReferenceRequest
C
email,external_api2Add email dedup + logging
sendReferenceReminders
C
email1Add email dedup + logging
sendReferenceChaseReminders
C
email1Add email dedup + logging
sendInvoiceReminders
C
email1Add email dedup + logging
sendInvoicePaidThankYou
C
email1Add email dedup + logging
sendShiftInvoiceEmail
C
email1Add email dedup + logging
sendBulkInvoices
C
email1Add email dedup + logging
sendOverdueInvoiceReminders
C
email1Add email dedup + logging
scheduledInvoiceReminders
C
email1Add email dedup + logging
sendMessageNotification
C
email1Add email dedup + logging
sendVerificationEmail
C
email1Add email dedup + logging
notifyInvoiceStatusChange
C
email1Add email dedup + logging — 1,366 historical failures
notifyShiftChanges
C
email1Add email dedup + logging — 34,530 historical failures
notifyStaffNewShifts
C
email1Add email dedup + logging — 1,145 historical failures
notifyMatchingStaffNewShift
C
email1Add email dedup + logging — 1,039 historical failures
notifyClientNewApplication
C
email1Add email dedup + logging
notifyClientShiftActivity
C
email1Add email dedup + logging
notifyClientShiftApproval
C
email1Add email dedup + logging
notifyAdminDocumentIssue
C
email1Add email dedup + logging
notifyAdminOnboardingMilestone
C
email1Add email dedup + logging
notifyAdminsOnboardingComplete
C
email1Add email dedup + logging
notifyShiftAssigned
C
email1Add email dedup + logging
notifyShiftAssignment
C
email1Add email dedup + logging
notifyShiftCancelled
C
email1Add email dedup + logging
notifyShiftCreated
C
email1Add email dedup + logging
notifyShiftResponse
C
email1Add email dedup + logging
notifyShiftStatusChange
C
email1Add email dedup + logging
notifyTimesheetStatusChange
C
email1Add email dedup + logging
notifyUpcomingShift
C
email1Add email dedup + logging
notifyStaffUnavailability
C
email1Add email dedup + logging
notifyMatchingJobs
C
email1Add email dedup + logging
notifyMatchedStaff
C
email1Add email dedup + logging
notifyNewShiftsAvailable
C
email1Add email dedup + logging
notifyEligibleStaffNewVacancy
C
email1Add email dedup + logging
notifyShiftChange
C
email1Add email dedup + logging
notifyShiftInvitation
C
email1Add email dedup + logging
notifyContractRenewalsAutomation
C
email1Add email dedup + logging
sendContractRenewalReminders
C
email1Add email dedup + logging
emailStaffProfileToClient
C
email1Add email dedup + logging
emailStaffProfilesToClient
C
email1Add email dedup + logging
emailReferenceCopy
C
email1Add email dedup + logging
sendRefereeLoginLink
C
email1Add email dedup + logging
sendWhatsAppReferenceNotification
C
whatsapp1Add dedup + logging
sendCustomInvitation
C
email1Add email dedup + logging
aiShiftSchedulingAssistant
D
ai3Add circuit breaker + AI hash cache + cost control + logging
aiComplianceAutomation
D
ai,email2Add circuit breaker + AI hash cache + cost control + logging
aiComplianceMonitor
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiProactiveComplianceMonitor
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiProactiveComplianceCheck
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiComprehensiveProfileVerification
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiDocumentReviewer
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiMatchStaffToShift
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiSuggestStaffForShift
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiSuggestShiftsForStaff
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiTimesheetApprovalAssistant
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiShiftRateCalculator
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiGenerateInvoiceFromTimesheets
D
ai1Add circuit breaker + AI hash cache + cost control + logging
aiGenerateInvoices
D
ai1Add circuit breaker + AI hash cache + cost control + logging
generateAIInvoice
D
ai1Add circuit breaker + AI hash cache + cost control + logging
generateAISchedule
D
ai1Add circuit breaker + AI hash cache + cost control + logging
generateStaffReviewSummary
D
ai1Add circuit breaker + AI hash cache + cost control + logging
detectTimesheetAnomalies
D
ai1Add circuit breaker + AI hash cache + cost control + logging
analyzeReferenceResponse
D
ai1Add circuit breaker + AI hash cache + cost control + logging
extractDocumentData
D
ai1Add circuit breaker + AI hash cache + cost control + logging
extractAccountsFromFile
D
ai1Add circuit breaker + AI hash cache + cost control + logging
extractShiftsFromFile
D
ai1Add circuit breaker + AI hash cache + cost control + logging
extractTimesheetData
D
ai1Add circuit breaker + AI hash cache + cost control + logging
extractFormFields
D
ai1Add circuit breaker + AI hash cache + cost control + logging
extractClientInfo
D
ai1Add circuit breaker + AI hash cache + cost control + logging
searchCareHomes
D
ai,external_api2Add circuit breaker + AI hash cache + cost control + logging
getPersonalizedOnboardingGuidance
D
ai1Add circuit breaker + AI hash cache + cost control + logging
predictStaffingShortages
D
ai1Add circuit breaker + AI hash cache + cost control + logging
calculateJobMatch
D
ai1Add circuit breaker + AI hash cache + cost control + logging
lookupAddress
E
address1FULLY PROTECTED — postcode cache + rate limit + retry
lookupCompanyAddress
E
companies_house1Add caching + circuit breaker + logging — CLOUD OFFLOAD candidate
geocodePostcode
E
external_api1Add caching + circuit breaker + logging — CLOUD OFFLOAD candidate
getUKBankHolidays
E
external_api1FULLY PROTECTED — bank holiday cache
syncFormSubmissionToDrive
E
external_api,google_api5Add circuit breaker + drive dedup + logging — CLOUD OFFLOAD candidate
archiveUserToGoogleDrive
E
external_api,google_api4Add circuit breaker + drive dedup + logging — CLOUD OFFLOAD candidate
autoBackupToGoogleDrive
E
external_api4Add circuit breaker + drive dedup + logging — CLOUD OFFLOAD candidate
syncDocumentToGoogleDrive
E
external_api,google_api3Add circuit breaker + drive dedup + logging — CLOUD OFFLOAD candidate
exportToGoogleDrive
E
external_api2Add circuit breaker + drive dedup + logging
exportPayrollToGoogleSheets
E
external_api,google_api2Add circuit breaker + logging — CLOUD OFFLOAD candidate
syncShiftPlannerToSheets
E
external_api,google_api2Add circuit breaker + logging — CLOUD OFFLOAD candidate
syncShiftToCalendar
E
external_api1Add circuit breaker + logging
syncShiftToGoogleCalendar
E
external_api,google_api2Add circuit breaker + logging
syncStaffShiftsToGoogleCalendar
E
external_api1Add circuit breaker + logging
saveOnboardingPDFToDrive
E
external_api,google_api3Add circuit breaker + drive dedup + logging
generateInvoiceFromUpload
D
ai1Add circuit breaker + AI hash cache + cost control + logging
generateStaffProfilePDF
E
drive1Add drive content hash + logging
generateStaffSummaryPDF
E
drive1Add drive content hash + logging
generateAppGeneratedProfilePDF
E
drive1Add drive content hash + logging
generateReferencePDF
E
drive1Add drive content hash + logging
generateReferencePDFReport
E
drive1Add drive content hash + logging
downloadReferencePDF
E
drive1Add drive content hash + logging
generateStatementPDF
E
drive1Add drive content hash + logging
generateFormSubmissionPDF
E
drive1Add drive content hash + logging
generateWeeklyInvoicePDF
E
drive1Add drive content hash + logging
generateTimesheetPDF
E
drive1Add drive content hash + logging
generateAndStoreTimesheetPDF
E
drive1Add drive content hash + logging
syncInvoiceToAccounting
E
quickbooks1Add circuit breaker + logging — CLOUD OFFLOAD candidate
syncPayrollToAccounting
E
quickbooks1Add circuit breaker + logging — CLOUD OFFLOAD candidate
syncPayrollWithQuickBooks
E
quickbooks1Add circuit breaker + logging — CLOUD OFFLOAD candidate
sendViaResendAPI
C
email1Add circuit breaker + retry logic
prepareBulkWhatsAppMessages
C
whatsapp1Add dedup + logging
generateStaffPayslips
B
email1Add email dedup + logging
savePayrollRecord
B
email1Add email dedup + logging
exportTimesheetsToPayroll
B
email1Add email dedup + logging
automatePayrollFromTimesheets
B
email1Add email dedup + logging
generatePayrollInvoices
B
email,drive2Add email dedup + drive dedup + logging

CB = Circuit Breaker | Log = Integration Logging | Dedup = Idempotency/Dedup | Cache = Caching

RL = Rate Limiting | Retry = Exponential Backoff Retry | AI Ctrl = AI Cost Control

Classification: A = Critical Financial (Stripe/PayPal/RTI) | B = Critical Business (Invoices/Contracts/Compliance) | C = Operational Notifications (Email) | D = AI Functions | E = External API / Drive

Note: Only functions with integration calls are shown. Entity-only functions (database reads/writes) are not counted.

Cloud Offload: Stateless functions that don't require the Base44 SDK can be externalized to Cloudflare Workers or Supabase Edge Functions to eliminate integration credit consumption entirely.

Production Runtime Validation
Awaiting Credit Reset (2026-09-09)

0

Tests Passed

20

Tests Pending

0

Tests Failed

Integration credits are exhausted until 2026-09-09. Runtime validation cannot begin until credits reset. All static validation has passed. No integration-credit-consuming tests will be run until credits are available.
Integration Consumption
Calls Today

0

7-Day Total

0

Projected Monthly

—

Baseline Monthly

—

Credit estimates are based on IntegrationCallLog data. Actual Base44 billing credits may differ.

Per-Category Breakdown (7-Day)
Email

0

AI

0

External APIs

0

Drive

0

Google API

0

WhatsApp

0

Prevented Credit Waste (7-Day)
Duplicate Emails Prevented

0

Cache Hits (AI + API)

0

Circuit Breaker Skips

0

Rate Limited

0

Failures

0

Retries

0

Daily Metrics
No integration call data available yet. Data will appear after runtime validation begins.
Top 20 Credit Consumers
No function call data available yet.
Baseline Comparison
No historical baseline found in SystemSettings (key: integration_credit_baseline). The baseline should be set from Phase 1/Phase 2 pre-hardening data for comparison.

Historical baseline is preserved and not overwritten. Post-hardening data is computed from IntegrationCallLog + IntegrationCreditLog.

Protection Coverage (Reconciled)
100%
PHASE 2 FROZEN

173

Protected Functions

173

True Integration Functions

33

Reclassified as Internal

Email
104 / 104
100%
AI
32 / 32
100%
External APIs
17 / 17
100%
Drive / UploadFile
13 / 13
100%
Google API
6 / 6
100%
WhatsApp
1 / 1
100%
Inventory Reconciliation
Internal CSV/XML Generators

19

Local Accounting Prep

2

Delegating Functions

5

Internal-Only

6

Inbound Webhooks

1

Total Reclassified

33

These functions were originally counted as integration consumers but code inspection proved they perform only local computation, delegate to an already-protected function, or receive inbound traffic without initiating outbound calls.

Prevented Credit Waste
Duplicate Emails Prevented

0

AI Calls Prevented

0

API Calls from Cache

0

Drive Uploads Prevented

0

Circuit Breaker Skips

0

Rate Limited

0

Estimated Credits Saved

Last 7 days

~0

Credit savings are estimated from prevented external calls. Actual Base44 billing credits may differ.

Automation Review
16 active

74

Total Automations

16

Active & Healthy

58

Archived (replaced/fixed)

Previously High-Failure Automations (all archived):

notifyShiftChanges
34530 failures
ARCHIVED — payload incompatibility fixed via automationPayload.ts
notifyInvoiceStatusChange
1366 failures
ARCHIVED — payload incompatibility fixed via automationPayload.ts
notifyStaffNewShifts
1145 failures
ARCHIVED — payload incompatibility fixed via automationPayload.ts
notifyMatchingStaffNewShift
1039 failures
ARCHIVED — replaced by deterministic notifyEligibleStaffNewVacancy
initiateStaffOnboarding
49 failures
ARCHIVED — payload incompatibility fixed via automationPayload.ts
weeklyComplianceExpiryReport
5 failures
ARCHIVED — replaced by checkExpiringComplianceDocuments
autoBackupToGoogleDrive
5 failures
ARCHIVED — replaced by event-driven backupCriticalRecordToDrive
aiComplianceAutomation
5 failures
ARCHIVED — replaced by deterministic complianceEvaluator.ts
alertUnfilledShifts
5 failures
ARCHIVED — high-frequency polling replaced by event-driven logic
Validation Status
Static Code Inspection
STATIC_VALIDATION_PASSED
Import Validation
STATIC_VALIDATION_PASSED
Schema Validation
STATIC_VALIDATION_PASSED
Dependency Analysis
STATIC_VALIDATION_PASSED
Frontend Call-Site Validation
STATIC_VALIDATION_PASSED
Automation Configuration Review
STATIC_VALIDATION_PASSED
Idempotency Key Validation
STATIC_VALIDATION_PASSED
Permission Checks
STATIC_VALIDATION_PASSED
Syntax/Build Validation
STATIC_VALIDATION_PASSED
Circuit Breaker Configuration
STATIC_VALIDATION_PASSED
Retry Classification
STATIC_VALIDATION_PASSED
Content Hash Duplicate Prevention
STATIC_VALIDATION_PASSED
Runtime Validation
Credits reset 2026-09-09 — test matrix prepared (20 tests)
RUNTIME_VALIDATION_PENDING
7-Day Observation
Starts after runtime validation passes
RUNTIME_VALIDATION_PENDING
Inventory Reconciliation (170→173)
170 + 43 discovered − 40 reclassified = 173
STATIC_VALIDATION_PASSED

External Integration Calls = actual external API calls made (AI, email, Drive, QuickBooks, Stripe, etc.)

Base44 Workspace Credit Totals are controlled by Base44 and may differ from Nursewell's internally recorded external-call counts. Check the Base44 billing dashboard for authoritative usage figures.

Note: Ordinary entity/database reads and writes are NOT counted as integration calls. Only external API calls are tracked.