Skip to main content
Version: 0.2 (next)

The simple view

The simple view is Infrared for people who are not engineers: someone who runs an app or a site, asks for changes in their own words, and decides what their customers get. It has three places, Products, Changes and You, and says everything in plain words. The full view is the rest of Infrared, every page and rail item, as engineers see them.

Both views show the same Products and the same requests, at the same addresses. A view changes what you are shown, never what you may do: your roles decide that, in either view.

Choose your view​

You, at the foot of the rail, opens on How Infrared looks for you. It says which view you see, and whether that is your own choice or the install's default: "It is this install's default until you choose." Switch to the simple view, or Switch to the full view, changes it at once. Switch back at any time, from You in either view.

Your choice is kept on your profile in the org you have open, your entry on Workforce → People, so it holds in every browser you sign in from. If you have no profile in the org, switching makes one, named as you signed in. Where Infrared has no name for you, You asks you to make your profile first.

The install's default​

Anyone who hasn't chosen sees the install's default view. An install that sets nothing shows the full view, so people pick the simple view in You until you change the default. To make the simple view the default, set defaultView in the install configuration, in your gitops repo:

infrared-core:
api:
flags:
defaultView: simple

The value is simple or full; empty, or anything else, means full. Someone who has chosen keeps their choice, whatever the default. Darkshift's hosted environments set simple.

What it shows​

The rail​

Products, then Changes with the number of requests that wait for you, and You at the foot. The org switcher shows only for someone in more than one org. There is no Settings on the rail and no theme button: the theme is set in You. On a narrow screen the rail is a bar across the top.

Every other page stays at its address. A link to one, from a simple page, opens it in the full view.

Products​

The simple view's home: a card for each Product, with what Production looks like now, its Pre-production and Production in plain words, what waits for you there, and its last change. With one Product, Products opens that Product's page. See Products in the simple view.

Changes​

"What you asked for, across your Products": your requests, with Waiting for you first, then In progress, Done and Stopped. See Requests in the simple view.

The number beside Changes counts what waits for you: your own requests that need your answer or your OK, or are ready to publish. If your role in the org is above viewer, it also counts a Change nobody asked for, such as a bot's pull request or a scheduled run, that waits in the same way.

Your requests are yours by your profile in the org. The simple view makes one for you the first time you use it in an org, named as you signed in, but never for a platform admin.

You​

In the simple view, You holds what the rail leaves out that you still need:

  • How Infrared looks for you: the two views, the one you see marked Now, and the switch.
  • Plan, where the org has limits: how many Products and people it holds, of how many it may, and whether its environments may be public.
  • Anthropic key: whether the org has one and how it is doing, such as "Set, and it works: Infrared's agents use it for your requests." An org admin gets Set it in Settings or Replace it in Settings; anyone else, while the org has none, reads that an org admin sets it. Where the org's agents run on Amazon Bedrock, it says no key is needed.
  • Appearance: the theme, Same as this device, Light or Dark, kept in this browser.
  • Sign out.

Plain words​

Each word keeps one icon and one colour wherever it shows. The full view keeps the original word: Argo CD's status for an environment, or the AgentWorkflowRun's phase for a request.

Environments​

WordWhat it meansWhen
WorkingPeople can use itArgo CD reports it Healthy and Synced, and a version runs there
UpdatingA change is going outProgressing, or Healthy while OutOfSync
Not workingPeople can't use all of itDegraded, or Missing once a version was published there
PausedStopped on purposeSuspended
Not published yetNothing has been published to it yetNo version has been published there
UnknownInfrared can't tellAnything else

Requests​

WordWhat it means
Planned, Building, CheckingInfrared's agents are planning it, building it or checking it
On its wayInfrared is taking it to Pre-production, or to Production once it is published
Needs your answerInfrared's agents need a decision from you
Needs your OKBuilt and checked: look at it, then approve it
Ready to publishIn Pre-production, not yet in Production
LiveIn Production. Only a request that reached Production is Live
DoneFinished, with nothing to publish
DeclinedA check said no, so nothing was changed
StoppedIt stopped before it was finished
CancelledA person stopped it

Stages​

A request moves through up to six stages: Asked, Planned, Building, Checked, Your OK and Live. Each step of its AgentWorkflow belongs to one of them:

  • planning and triage to Planned;
  • the build, and the steps that tidy or fix it, such as lint, CI and tests, to Building;
  • the reviews to Checked;
  • the human approval to Your OK;
  • everything after your OK to Live: resolving merge conflicts, the merge, the promotions and any check that runs in Pre-production.

A request shows only the stages its AgentWorkflow has, so a Change with no approval in it promises no OK. A declined or cancelled request ends at the stage where it stopped. A stopped one keeps the stages after it, since trying again can carry it on.

Infrared's agents​

The simple view names the agents once, as a group: Infrared's agents, with their mark where they did the work. It never shows an AgentRole's name, a model, tokens or cost. The full view has them all.

Show details​

Every simple page ends with Show details, which opens the same page in the full view: for a request, every step, check and log, as engineers see them. A full page you reach from the simple view, by Show details or by a link, has a band at the top, "The full view: every step, check and log, as engineers see them", and Back to the simple view.

What takes a full page​

In the simple view you ask, answer, approve, send back, publish, try again and cancel. These are done on a full page, which Show details or a link opens:

  • Rejecting a request at its approval, which the simple view leaves to Send back with a note, and retrying an approval someone rejected.
  • Moving a request to another repo, or choosing its repo at triage.
  • Approving something that isn't a Change, such as the posts an announcement drafted. The simple view says what waits, and leads to the full page where you read it and approve it.
  • An org admin's work around requests: switching an AgentWorkflow off or on, replacing the model key in Settings, retrying a failed deployment that no request owns, a zone's environment variables, and API tokens.

For admins and engineers​

Declined requests​

Since 0.1.26 a request the org's policy forbids ends Declined on every install: see How a request ends. To keep the old handling for now, set the chart value under infrared-core: in your values file (Values of your own):

infrared-core:
operator:
declinedOutcomes: false

Then the step that would decline a request stops it instead, as a BLOCK does, and the request waits for a person. The value is deprecated: a later release removes it, and Declined is then the only handling.

The API and ir​

The simple view uses the same API as the rest of Infrared. Your install's own reference, at /api/docs once you are signed in, has every operation (API reference):

OperationWhat the simple view uses it for
create-product-issue, POST /v1/orgs/{org}/products/{name}/issuesAsking. triage: agent says the person asking has already said to build it, so the Change's triage step passes by itself, decided by them. askFirst: true labels the issue infrared:ask-first, and planning asks its questions first unless the request is small and clear. idea: true, for the first request of a Product started from an idea, labels it infrared:idea: planning records the answers as the app's brief, and the builder writes docs/brief.md and puts the person's likes and dislikes in AGENTS.md
list-agentworkflowruns, GET /v1/orgs/{org}/agentworkflowrunsrequestedBy=me lists the runs you asked for
act-on-agentworkflowrun-step, POST /v1/orgs/{org}/agentworkflowruns/{name}/steps/{step}/{action}send-back, with guidance, for a human step that waits for approval: the run goes back to the step's returnTo, the builder, on the same branch, with the note. retry, with or without guidance, for Try again
list-shipped-pull-requests, GET /v1/orgs/{org}/products/{name}/shipped-pull-requestsWhat each version of a Product shipped
list-product-run-issues, GET /v1/orgs/{org}/products/{name}/run-issuesThe issue of every run of a Product, open or closed, so a request keeps its title once its issue closes
get-my-human, set-my-human, /v1/orgs/{org}/me/humanYour view, kept as spec.preferences.view on your Human

With ir, ir run send-back <run> --step <step> --note "<what to change>" sends a waiting human step back, and ir run get <run> shows how a run ended (ir command reference).

An AgentWorkflowRun records who asked for it, spec.requestedBy, and how it ended, status.outcome; a Human records its view, spec.preferences.view (CRDs).