Problems¶
Emakin detects operational problems from System Statistics and keeps one problem record for each of them, however often the failure repeats. Detection follows fixed rules and does not use artificial intelligence. It never changes processes, jobs or settings.
Detected Problems¶
| Problem | Detected when, in the last 15 minutes |
|---|---|
| Repeated failure | The same kind of error occurs at least 5 times (3 for authentication errors), and at least three times more often than usual |
| Blocked process | A work item process, work item evaluate, work item deadline, task evaluate or process signal job fails and is not retried automatically, or uses up its retries. One failure in the last 30 minutes is enough, and the severity is at least High |
| Failure rate increase | At least 20 executions and 5 failures, and the failure rate is far above its usual level |
| Performance degradation | The 95th percentile duration is at least twice its usual value and at least 500 ms longer |
| Queue congestion | Jobs wait over a minute and three times longer than usual, or over 10 minutes when there is no history |
| Integration unavailable | At least 5 calls fail and none succeeds |
A condition must be present in at least two of the three five-minute windows, except for blocked processes. Usual values come from similar hours of the last 7 days, then the last 24 hours, then the last 28 days. Periods of known problems are left out. When a problem lasts so long that no other history is left, it is compared with its last known usual values, and other problems of the same work with the whole history. Failure rate and performance problems are not detected without enough history.
Test mode instances are not measured. Error messages, stack traces and credentials are not stored in problems.
Where Problems Are Shown¶
- Problems of a process are shown on the Problems tab of its page to users who may run it.
- Problems without a process, and all others when selected, are shown in the problem screen of the administration menu. This screen requires the
problemsscope. - The users who may run the process are notified in the application. Administrators are notified about problems that have no such users.
The problem page links to the process, its version and the failed jobs with their work items. It shows them to users who may change the problem. At most 20 of the latest jobs are listed in their current state; job details require jobs_write.
Automatic Analysis¶
When the domain has an AI provider, a problem is analyzed in the background after it is detected, and again when it escalates, returns, affects many more executions, or when an intervention did not help. Problems of blocked processes are opened and analyzed seconds after the job fails. While such a problem is open, more of the same failure does not start another analysis; a return, a failed intervention or an overdue verification does. The analysis finds the probable cause and proposes solutions. It does not change anything, and it does not decide the severity, the recovery or the closing of a problem. A problem is managed as usual when its analysis fails.
The analysis requires:
- an AI provider,
- an available AI quota.
The result is added to the activities of the problem:
- findings with references to the jobs, work items, process versions and measurements they are based on,
- probable causes with their confidence (Confirmed, High, Medium, Low, Unknown). The confidence is limited by the references, whatever the model states,
- recommendations with their risk and how to verify them.
The problem page shows the latest analysis to the users who may change the problem: what happened, its impact, why it happened, the steps to take with their current state, and what is not known yet. It is written for process owners and does not describe internal operations. Other users see its summary in the activities.
For a problem of a process, the analysis reads only the definition, measurements and execution summaries of that process, the form data and the steps of its work items, and the rows of the organization database. The schemas the process uses and HR are suggested to it; they do not limit what it reads. Only named columns are read, at most 20 rows at a time; permissions of schemas and tables apply to the system user. Data is never changed, and each of these reads is recorded in the audit log without values. For other problems it reads the health of the domain and the latest failed jobs of the last 7 days, at most 25 and limited to the worker of the problem when it has one. It never counts or searches all jobs. For every problem it can search the product documentation and the whole audit log of the domain, at most 25 entries at a time; these searches are not recorded in the audit log. It never reads other domains or the configuration.
The analysis also receives short summaries of at most 3 similar problems that were closed in the last 91 days and analyzed. For a problem of a process, these are problems of the same process with the same error, step or type; for other problems, those of the same type with the same worker or integration. Their causes are hints that the current evidence has to prove. Corrections made outside of the recommendations are not recorded, so their success is unknown.
Secrets that can be recognized by field names or in texts are removed before they are sent to the model; other values, including personal data, are sent as stored. The model is instructed to mask personal data in the analysis; e-mail addresses and long numbers are also removed from it automatically.
Warning
Definitions, scripts, error messages, audit entries, and values of forms and tables, including personal data, are sent to the AI provider of the domain. Set Analysis Enabled to false when this is not allowed.
Recommendations and Interventions¶
Ema tells the assignee about a finished analysis, otherwise the responsible users of the process, otherwise those of the domain. Users without the personal assistant receive a notification. When the problem recovers or a user closes it, Ema tells the users it told about the problem, except the user who closed it. When the problem or its process is deleted, its messages are also deleted from the personal assistant.
Ask Ema about a problem for its details, or to apply or reject a recommendation. The users who may change the problem can do this.
- Ema can only retry failed background jobs that the recommendation names, at most 20. Other recommendations are carried out by people.
- The change is shown and the user approves it for that single recommendation. The user needs the
jobs_writescope, and actions must be allowed in the conversation. - The state of the jobs is checked again before the change. Each recommendation is executed at most once.
- The operation runs with the rights of the user who approved it, and is recorded in the audit log.
- A recommendation expires when the problem ends, or after 7 days. A new analysis replaces recommendations that are not decided.
After an intervention only the recovery rules decide whether it succeeded. When the problem did not recover within the target time, the verification is overdue and users are notified. When it is still detected, at least an hour after the intervention, the verification fails and the problem is analyzed again. Ema does not close problems.
E-mail Notifications and Reminders¶
By default, the assigned user receives an e-mail when a problem is assigned, and a reminder every day. The Notifications command of a problem list changes these settings:
- The list of a process changes the settings of that process. It requires the security permission of the process or the
problemsscope. - The problem screen of the administration menu changes the settings of the domain. Processes use them unless they have settings of their own.
Access¶
| Operation | Who |
|---|---|
| List problems of a process | Users who may run the process, users with problems |
| List problems of the domain | Users with problems |
| Open one problem from its link and add activities | Any signed-in user of the domain (scopes activity_read and activity_write) |
| Reject a recommendation | Users who may change the problem |
| Apply a recommendation | Users who may change the problem and have jobs_write |
| Close, reopen, prioritize, assign | Users who may run the process, users with problems, the assignee |
Note
The link of a problem is enough to view it. Share it only with people who may see its measurements and analyses.
A problem can be assigned only to users who may run its process or have problems. Problems are never available in other domains.
Life Cycle¶
- The technical status (active, recovery candidate, recovered, unknown) is independent of whether the record is open.
- A problem recovers after healthy measurements for 30 minutes. Missing measurements are never treated as a recovery; after one day without measurements the status is unknown. Windows that a node measured only partly (start, shutdown, dropped measurements) do not prove a recovery either.
- A blocked process recovers sooner when the failure was in a work item job: when the last failed job of the problem runs again and completes, the record is closed within about a minute. A new failure reopens it. A job that is still waiting, running or in error keeps the problem open while its work item waits for it; scheduled evaluations and starts run again as new jobs and do not. A failed process signal keeps it open until its job is retried or aborted. An aborted job, or one that was only marked as completed, is no proof; then the problem recovers by its measurements or is closed by a user. The same applies when the problem was detected from measurements or has more than 50 failed jobs.
- While measurements fluctuate, the recovery candidate is published once per day for each occurrence.
- A problem that returns reopens the same record.
- A problem closed by a user while it continues is not reopened for 24 hours, unless its severity rises significantly.
- The severity rises at once, but falls at most once per day.
- Users are notified about the detection, a rise to High or Critical, a return, the recovery, and an overdue or failed verification, at most 5 times per day for each problem. Further events appear only in its activities.
- Priority follows the severity until a user changes it.
At most 20 problems are opened for a domain in one run. The most severe ones are opened first.
Configuration¶
Detection requires statistics collection. It runs on one node at a time, every 10 minutes, plus up to Agent:Workers:Interval (10 minutes by default) on an idle node. Failures of blocked processes do not wait for it; when the node stops meanwhile, it finds them.
The Problems section of the domain configuration is managed in Edit Domain under Problem Management, or with the Admin MCP:
| Setting | Default | Description |
|---|---|---|
Enabled | true | Detects problems in the domain |
ManualCloseSuppressionDuration | 1.00:00:00 | How long a problem closed by a user stays closed while it continues; at most 90 days |
Analysis Enabled | true | Analyzes problems |
Analysis MinimumSeverity | Problems below this severity (Low, Medium, High, Critical) are not analyzed | |
Analysis ReanalysisCooldown | 01:00:00 | Shortest time between two analyses of a problem. An escalation to Critical and a failed intervention do not wait |
Analysis MaximumAnalysesPerProblemPerDay | 3 | Analyses of a problem in 24 hours |
Analysis MaximumConcurrentAnalyses | 2 | Analyses of the domain that are queued or run at the same time |
Verification CriticalTarget, HighTarget, MediumTarget, LowTarget | 00:15:00, 01:00:00, 04:00:00, 1.00:00:00 | Target time of the recovery after an intervention |
An analysis is also limited to 30 tool calls, 5 minutes and 2 retries. Its tokens count for the AI quota and the MCP token limits of the domain.
When the analysis or the detection is disabled, a running analysis is finished and queued analyses do not start. The Administration MCP mode of the host does not affect the analysis.
The state of the detection is part of the system health of the Admin MCP.