Appearance
Running system analysis
Admin only
Analysis reads your code and attached documents and builds what you explore and chat with: the structure of each System, plain-language explanations of each part, and business-process models linked back to the code they came from. Nomain analyzes each repository on its own, and each System follows its repositories: when a repository's analysis finishes, every System built from it is brought up to date. As an administrator you decide when analysis runs, follow each run, and retry or cancel its steps.
Starting a run
Analyzing a repository
On a repository's page, click Analyze and choose an action:
| Action | What it does |
|---|---|
| Analyze | Processes only what changed since the last run. |
| Full re-analysis | Processes the whole repository again. |
Full re-analysis asks you to confirm before it starts. It repeats all analysis work already done on the repository and is rarely needed: Analyze is enough for regular updates. Click Start full re-analysis to go ahead, or Cancel to start nothing.
You see "Repository analysis started." or "Full repository analysis started." When the run finishes, every System built from the repository is brought up to date.
Analyze is unavailable while an analysis of the repository is queued or running. Hover the disabled button to see the reason.
Refreshing a System
On a System's detail page, click Refresh System and choose an action:
| Action | What it does |
|---|---|
| Refresh | Brings the System up to date: each of its repositories is analyzed for what changed, and the System follows. |
| Full refresh | Repeats all analysis work already done on every repository in the System. |
| Dead Code (Incremental) and Dead Code (Full) | Check the System's repositories that have unused code detection on. See Dead-code detection. |
| Extract business processes | Draws a process diagram for each of the System's business process documents that does not have one yet. |
Full refresh asks you to confirm before it starts. It is rarely needed: Refresh is enough for regular updates. Click Start full refresh to go ahead, or Cancel to start nothing.
You see "System refresh started." If a refresh is already under way, you are told "A refresh is already in progress. Please try again later."
Extract business processes shows "Business process extraction started."
Refresh System and Archive are unavailable while the System is Running, Queued or Waiting, and once it is archived. Hover the disabled button to see the reason.
Automatic re-analysis
A repository can be analyzed automatically, so its Systems stay current without anyone clicking Analyze. One choice is active at a time:
| Choice | When the repository is analyzed |
|---|---|
| Daily | Every day at 02:00 UTC. |
| Weekly | Every Saturday at 02:00 UTC. |
| Auto | When new commits reach the repository's default branch. Nomain checks every 15 minutes. Git repositories only. |
You can choose when you add the repository, and change it at any time on its Settings tab, in the Auto-analysis card. Under the repository's name, the header reads Auto-analysis daily, Auto-analysis weekly, Auto-analysis on code changes, Auto-analysis on (a schedule that is none of these) or Auto-analysis off. Click it to open the tab.
To change it as an administrator:
- Open the repository's page and choose the Settings tab.
- In Auto-analysis, turn Analyse automatically on or off. The card shows Enabled or Disabled.
- When it is on, choose Daily, Weekly or Auto.
Turning it on selects Weekly. Turning it off removes the choice that was active.
The card says what the choice does:
- Daily and Weekly: "Every day at 02:00 UTC" or "Every Saturday at 02:00 UTC", followed by the same time in your own time zone when it differs, and the Next run.
- Auto: "When new commits reach the repository's default branch" and "Checked every 15 minutes". Below them, "Not checked yet" until the first check, then "Last checked …" with how long ago, and either "Last change found …" with the date or "No change found yet".
A schedule set some other way earlier reads Custom schedule, with its next run, until you pick Daily, Weekly or Auto. When the card is Disabled and a System uses the repository, it reads "This repository is analysed only when someone starts an analysis." Members see the card without the controls.


A repository on Auto that was never analyzed gets its first analysis at its first check, within about a minute of choosing Auto. Two things to know about it:
- No change found yet does not always mean the code is unchanged. The card also reads it when Nomain cannot reach the repository, and when a change was found while an analysis of that repository was already running.
- Auto analyzes when the code changes, so improvements to Nomain's analysis reach a repository on Auto only when its code changes or someone starts an analysis. Daily and Weekly analyze again on their schedule regardless.
Systems and auto-analysis
A new repository starts with auto-analysis off, unless you turn it on when you add it. Creating a System, or adding a repository to one, never changes a repository's auto-analysis. Repositories that already have a schedule keep it, and a schedule set on a System earlier has moved to its repositories.
A System has no schedule of its own: its header reads Follows its repositories' schedules. Every System built from a repository follows each automatic analysis of it. Runs started by a schedule or by Auto are labelled Automatic, and runs you start yourself are labelled Manual. Job history lists every kind of run.
Following progress
A running analysis shows a progress bar and a count such as "3/10 jobs": how many of the run's steps have started or finished out of the total. The status badge of the repository or System reads Running while work is happening.
You do not need to reload the page. The job history and the status badge update on their own, including for runs that start automatically.
Job history
The Job history tab on a repository's page and the Job History section on a System's detail page lists each run as an expandable row, for example "Automatic Incremental analysis · Today 09:15", with its status, timing and job count.
Each run is named by who started it and what it does:
- Automatic means nobody started it by hand: a schedule, a code change, or Nomain itself, keeping a System up to date after one of its repositories was analysed.
- Manual means a person started it, with Analyze or Refresh System, or with an action such as uploading a document, changing a System's repositories, turning unused code detection on, or changing the analysis scope. A run Nomain had queued but not yet started becomes Manual when a person asks for the same run.
- What it does reads as Full analysis, Incremental analysis, summary, unused code check or relations update. On a System it can also read document classification, process model extraction, document summaries, BPMN mapping or layout calculation. Keeping a System up to date counts as an analysis. Full names read like "Automatic summary", "Manual unused code check" or "Automatic relations update".
With automatic analysis turned off, you may still see Automatic runs. They keep a System current with what its repositories already hold: its analysis, summaries, unused code results and relations. They never re-analyse a repository's code.
Runs from before this naming read as Manual, even when nobody started them. They are still named for what they do.
A run's timing has two parts, so a run that had to wait does not look slow:
- Run time is the time the run was working.
- Queue time is the time it waited to be picked up, with no work in progress.
The row shows the run time, followed by the queue time when the run waited, for example "8m 41s · queued 2h 3m". Both update while the run is in progress. A run recorded without a queue time shows its duration alone.
- Expand a run, or use Expand all / Collapse all, to see both timings spelled out and the run's steps.
- Filter by status and by Trigger, which groups runs the same way (Automatic or Manual).
- Export the run history to CSV. The export has a Name column with each run's name, and a Run Time and a Queue Time column.
Click any step to open its side panel, with its timing and its Job Log. A step that was stopped before it finished also shows Why it stopped, which names the reason and what to do next.
| Status | Meaning |
|---|---|
| Completed | Finished successfully. |
| Running | Work is in progress. |
| Queued or Pending | Not started yet. A run that has not started reads "Waiting to start". |
| Failed | Did not complete. The step's panel shows the reason. |
| Degraded | Finished, but part of one step's work did not complete. The step can be retried on its own. |
| Cancelled | Stopped before it finished. |
| Alert | The step finished and nothing was blocked, but it needs a look. Some of its items failed, secret scanning found and masked secrets, or some of a repository's or a System's statistics could not be refreshed. The rest of the analysis carries on. |
On an analysis after a repository's first, the step that explains code writes its progress to the Job Log while it is still reading the repository. The line leads with how much of the repository it has checked, for example "Checked 23% of the repository: 352 nodes to explain found so far, 340 of them explained". The refining step writes its line this way on every analysis of a repository, the first included, for example "Checked 61% of the repository: 40 nodes to refine found so far, 12 of them refined". The number of nodes can still grow, so read the percentage to tell how far along a long step is. When Nomain cannot read the size of the repository, the line starts with "Checking the repository" instead of a percentage.
When the whole repository has been read, the log says so once, for example "Checked the whole repository: 352 nodes to explain in all", and the line takes its usual form from then on, for example "Explained 340/352 nodes (97%)". On a first analysis and a full re-analysis, the explaining step shows the usual form from the start.
While a step runs, its Job Log can also show lines that start with Advisory. They name what is slowing the step down and what to check. If one stays, ask whoever runs your deployment to look at it.
A step that works through many items, such as explaining code, shows Alert when a few of them failed. Its Job Log lists them, and its last line says how many, for example "ExplainNodes completed with 3 of 1,200 nodes failed; they are listed in this job log". Above it, one more line counts the failed items by cause, for example "Failed nodes by cause: 12 truncated, 3 provider error, 1 unparseable response". Read it to tell items the AI could not answer usably (such as truncated) from items where the call failed (such as throttled, when the AI provider stayed at its usage limit). The run itself still reads Completed.
A run that reads Completed but has a step in Alert shows an orange Alert badge beside Completed on its row, so you see it without expanding the run. Hover it for the count: "1 step to review. Expand the run to see it." or "N steps to review. Expand the run to see them." Everyone who can see Job History sees the badge.
The Calculate Repository Statistics step ends in Alert when it cannot refresh some of the repository's statistics. The analysis still completes and publishes, and the run reads Completed. Its Job Log names the figures, for example "WARNING: Connection figures could not be recomputed in this run and keep the values of the previous analysis." Those figures keep the values from the previous analysis. On a repository's first analysis there are no earlier values to keep, so the line reads "... could not be computed in this run, so the repository's statistics appear after its next analysis." and its statistics stay empty until then. Search and chat are not affected. Use Retry step on it to refresh the figures without a new analysis; if they still cannot be refreshed, the step ends in Alert again and the figures stay as they were. The next analysis refreshes them too.
The Calculate Stats step of a System's analysis ends in Alert the same way when it cannot refresh some of the System's statistics, and the run reads Completed. The figures that could not be refreshed keep the values of the System's previous analysis, and the rest are from this run. The Job Log reads "WARNING: Connection figures could not be recomputed in this run and keep the values of the previous analysis." On a System's first analysis there is nothing to keep, so the line reads "WARNING: Connection figures could not be computed in this run, so the System's statistics appear after its next analysis." and the System shows no statistics until then.
For a secret-scanning Alert, the step's Job Log lists each finding by rule, file and line, never the secret value.
Items can also fail when the AI provider stays at its usage limit for longer than the analysis can wait. They appear in the Job Log like any other failed item and trigger the Alert, and retrying the step picks them up.
When some explanations failed and the repository's code has not changed since, the next analysis of that repository tries them again, once. The step that fetches the code then logs "Source unchanged but 3 explanation(s) failed last time; retrying them". If they fail again, later analyses leave them until the code changes, and Retry step still retries them. Explanations the AI provider's content filter blocked, or that the AI declined to write, do not cause this retry on their own, because they would fail the same way.
The Report Unresolved References step's Job Log lists the programs, copybooks and other entities your code refers to that Nomain could not find in the System, each with the likely reason: outside this System when another System has it, no source in any System, which includes mainframe utilities, and otherwise that the source was delivered but did not produce that entity. Use it to find what is missing from a delivery.
When Nomain cannot read a repository's credentials from the credentials vault, the step that fetches the code fails and the analysis stops at that repository. The step's reason reads "Download failed for repository <id>: ...", followed by one of these:
- "The credentials of this repository are missing from the credentials vault. Enter them again in the repository settings." Use Edit connection on the repository's page, then retry the step.
- "The saved credential this repository uses is missing from the credentials vault. An administrator must rotate it on the Credentials tab of the Repositories page." Rotate the credential, then retry the step.
- "Access to the credentials vault was denied. An administrator of this deployment must give Nomain access to the vault."
- "The credentials vault could not be reached. Try again later. If it keeps failing, an administrator of this deployment must check the network path to the vault."
For the last two, ask whoever runs your deployment, then use Retry step.
Retrying a step
When a step fails or ends Degraded, Cancelled or in Alert, open its side panel and use Retry step. The run resumes from that step, so you do not restart the whole analysis. Choose:
- Incremental, to retry only the work that is left, such as the items that failed.
- Full, to re-run the whole step.
Retrying a secret-scanning step in Alert runs the scan again. Retrying Calculate Repository Statistics refreshes the repository's statistics when the retry completes, unless a newer analysis of the repository has finished since: its statistics are kept.
You can also retry a step of a run that started before an update to Nomain, as long as the update left that step unchanged and the rest of the run can still finish.
If a retry is refused, the notification says why, for example that another step of the run is still finishing, or what the update changed. When the update is the reason, start a new analysis.
Retry step is unavailable on a System's runs that analysed its code directly. Its repositories analyse that code now, so those steps are not retried. The step's panel shows Retry unavailable with the reason, and hovering the disabled button shows the same. Use Refresh System to bring the System up to date. Runs started from Refresh System (Refresh, Full refresh, Dead Code and Extract business processes) and repository analyses keep Retry step.
The step's panel names the cause of the failure, and for a step that was stopped before it finished, Why it stopped also says what to do next, so you can judge whether a retry is likely to help. If a run is interrupted, it carries on by itself or stops with a reason you can retry from.
Cancelling a run
Open the side panel of the running step and click Cancel execution, next to Running for. A step that has not started offers the same button next to In queue for.
The run's status becomes Cancelled straight away, and steps that have not started never will. The step that was in progress can show as Running for a few more moments before it too reads Cancelled.
Analysis insights
Analysis insights shows administrators how analysis performs across all your Systems. Open it from Analysis insights under Administration in the left sidebar, pick a time range, and optionally narrow it to one System.


The page shows how many runs finished and how many succeeded, how many tokens analysis consumed, what is running right now, and analysis time per million lines of code, which makes a small System and a large one comparable. Tables below break the same figures down per step, per System and per analysis type. Export saves them as CSV.
Every user also gets a smaller version: the Analysis card on a System's detail page summarizes that System's last 30 days.
Dead-code detection
Nomain flags code that appears to be unused, and checks it against every repository you have added, not only the repositories of one System. Detection is a setting of each repository, off by default: see Unused code detection. For a repository that has it on, the results update with each analysis and show in three places:
- Unused code on a repository's page, under Overview, and Unreferenced units, under Insights. Unreferenced units are the parts of the repository that no other connected repository refers to, with a line such as "No reference in the 4 connected repositories · as of …".
- The Unused Code figure on the page of every System built from the repository, with how many repositories the check covered, for example "over 12 repositories", or Off for N of M repositories when some have detection off.
- The Dead Code Analysis tab in the details panel.
The Dead Code actions on a System run the check again on the System's repositories that have detection on.
Check for callers outside Nomain before deleting code
The check sees only the repositories you have added to Nomain. A caller in code you have not added is invisible to it, so its target can look unused. Add that repository and run the check again before you delete anything.
Related
- Systems: what analysis produces, and a System's statuses.
- Repositories & sources: the code analysis reads, and a repository's page.
- Document management: documents uploaded to a System, read shortly after upload.