Factory Lens
See where the work on your delivery line waits, and where to invest next. Marshal is where you build and run a software factory. Factory Lens is the page that shows you how that factory is flowing: seven stations from spec to release, the one that holds everything back, and a ranked list of what to fix first.
Owners and admins open it with Factory Lens in the Admin section of the sidebar. Other members do not see the item. The page replaces Impact: the old Impact addresses land here, and the Impact cards sit at the top of this page, and Repos and Activity are tabs beside Line.
What you can do with it
- Find the station that holds the line. The first sentence of the Line tab names it, for example “Review is where work waits.” Everything else on the page backs that sentence up.
- Decide what to improve first. Where to invest ranks the changes worth making by the hours of waiting each would free.
- Hand a fix to an agent. Each recommendation copies as a ready task you paste into your agent of choice.
- Compare agents and people. Switch any station between changes written by agents and changes written by people, or put them side by side.
The Line tab
The Line tab reads the pull requests, reviews, CI runs and deploys of the repositories in the line you picked, over the last 13 or 26 weeks. Choose the range next to the line picker.
The whole line
Cards across the top give the numbers for the whole line: PRs merged a week, Open to merge, Start to production, the share of pull requests agents wrote, and the median PR size. A count is the average week. A time is the median of the items. Arrows compare each number with the same number of weeks before the window, and the charts dim the weeks before it.
The stations
The line shows seven stations from left to right: Spec, Code, CI, Verify, Review, Merge and Release. A change moves through them in that order. Each station has a grade:
| Grade | Meaning |
|---|---|
| Flowing | The station is not holding work back. |
| Watch | It holds a fifth or more of the hours changes spend on the line, a fifth or more of its items failed or went back, or its median wait got worse. |
| Strained | It holds two fifths or more of the hours, or two fifths or more of its items failed or went back. The constraint is always strained. |
| Too little data | Too few items to grade. |
| Not connected | Marshal cannot measure this station yet. It says why, and shows no number. |
Select the i next to The line to read how grading works.
Drill into a station
Pick a station to open its panel. It says what the station does, why it got its grade, and which recommendations belong to it. Below that, every number the station has is a chart with its definition on the i, the items that have stood longest in its queue, and The numbers, week by week as a table.
Changes written by switches the panel between Everyone, Agents, People and Agents vs people. The last option shows each number for agents beside the same number for people.
Who reviewed
The Review station adds Who reviewed: of the changes merged in the window, how many were reviewed by people only, by people and agents, by agents only, or had no review seen.
Where to invest
Where to invest lists recommendations, most valuable first. Each one shows the hours of waiting a week it would free, how sure the rule is, the numbers it read, a link to the practice behind it, and the changes it is about. Select a station name on a recommendation to open that station. The same recommendations appear in the box Where to invest here inside each station panel.
Copy for an agent
Select Copy for an agent on a recommendation to put a ready task on your clipboard. Marshal confirms with Copied. The task is plain markdown and holds:
- the title of the recommendation, and the station and rule it comes from
- the line name and the dates and weeks of the window
- when the rule fires
- why it fired now, and the evidence: the numbers the rule read
- the changes involved, each as its key and, when it has one, its link
Paste it into Claude Code or any agent, and it has what it needs to propose the fix. The task never holds author names or pull request titles. If your browser does not allow copying, the same text opens in a box with everything selected, so you can copy it by hand.
How reviews count
Reviews by people and by agents both count at the Review station. Marshal recognises an agent review from the reviewer’s bot account, and from the disclosures known tools such as Gemini, Copilot and Claude Code add to their reviews. A change reviewed only by an agent therefore counts as reviewed.
If you want the review station to measure human attention only, choose People only. Only a review by a person then counts, and Who reviewed still shows what the agents did.
- For one line: open Manage lines, edit the line and choose Reviews that count.
- For the built-in line: the built-in line, All tracked repos, is shared by your organization. Use the Reviews menu on its row in Manage lines to choose people and agents or people only for the whole organization.
A line that counts people only says so under the first sentence of the page.
Lines
A line is a named set of repositories. All tracked repos is built in and covers every repository Marshal reads, so the page is never empty. Choose Manage lines to create a line such as “Platform”, pick its repositories, and edit or delete it later. Deleting a line does not touch its repositories.
Set up Lens storage
Factory Lens keeps its finished reports and weekly data in a bucket in your own cloud account. An owner or admin sets it up once, under Settings > Lens storage.
- Choose a provider: Amazon S3 (or an S3-compatible store such as MinIO), Google Cloud Storage or Azure Blob Storage.
- Enter the bucket name. For Amazon S3, also enter the bucket’s region. For an S3-compatible store, enter its endpoint as a full URL with no path.
- Leave Path prefix as
lens, or give Lens its own folder in a bucket you share. - Add credentials, or leave them empty to use your cloud’s built-in identity (an IAM role, workload identity or managed identity).
- Select Test connection. Marshal checks that it can reach the bucket with the settings on the form, and shows Connection OK or the reason it could not.
- Select Save & enable.
Give the account Lens uses read, write, delete and list access on the bucket. The page shows the exact permissions for your provider.
Credentials are write-only. After you save them the page shows that credentials are saved and never shows the values again. To change them, enter new values. To keep them, leave the fields empty when you save. Remove saved credentials deletes them.
To switch Lens storage off, choose Disabled and select Disable Lens storage. Your settings stay, and selecting Save & enable turns it back on.
Saving, enabling, disabling and testing Lens storage are recorded in the audit log. Credentials are never part of it.
Until storage is set up and enabled, the Line tab shows Lens storage is not configured with a Set up Lens storage button that opens Settings > Lens storage.
When there is nothing to show yet
The page always says why it is empty and what to do:
| You see | What it means | What to do |
|---|---|---|
| Connect GitHub to see your delivery line | No repository is tracked yet. | Select Connect GitHub. A repository joins once a Marshal run opens a pull request in it. |
| This line has no repositories yet | A line you made is empty. | Add repositories under Manage lines, or pick All tracked repos. |
| Marshal can’t read your repositories on GitHub | Repositories are tracked but GitHub refuses the read. | Select Fix the GitHub connection and follow the remedy shown. |
| Lens storage is not configured | Your organization has no enabled Lens storage. | Select Set up Lens storage and follow Set up Lens storage. |
| Reading your repositories | The first read of the last 26 weeks is running. | Wait. The page refreshes by itself. |
| No changes merged in the last N weeks | Marshal reads the repositories, but nothing merged in the window. | Pick a longer range. |
| The last build failed. It will try again around a time | Lens could not finish its latest report. | Wait. Lens tries again by itself and shows the new report when it is ready. |
The GitHub permissions it reads
Factory Lens needs read access to pull requests and reviews, which Marshal’s GitHub App already has. For the CI, Verify and Release stations it also reads workflow runs and deployments, which takes read-only Actions and Deployments permissions.
- Marshal’s GitHub App: when a permission is waiting for approval, the Line tab shows the notice “Allow read access to Actions and Deployments to measure CI, verify and release”, and the stations stay Not connected until an owner of your GitHub organization approves it in GitHub.
- Your own GitHub App: apps created from Marshal already ask for them. For an App you built earlier, add them once. See Let Factory Lens read workflow runs and deployments.
Marshal checks again within the hour, and the other stations keep their numbers meanwhile. Author names never appear on the page or in a copied task.