AppWrenv0.10.1
GitHub

Running the program

This guide is for the portfolio team and for administrators. It covers who may do what, who sees what, the program and how to shape it, upgrading, the dashboard and data quality, portfolio snapshots, scheduled work and email, the history, appearance, and backing up. How the portfolio keeps itself current (reminders, confirmations, campaigns, and tasks) is in Keeping current.

Two kinds of authority#

AppWren keeps judgment and administration apart.

Roles and scope#

Everyone who can sign in is a member. The other six roles are given under Admin → People, or from the identity provider (see Single sign-on).

RoleScopeMay
MemberTheir own applicationsRead the catalog, scores, recommendations, and decisions; keep, assess, and confirm the applications they are named on, and contest their scores
StewardA unit and everything beneath itAdd, edit, import, assess, and confirm its applications, and hand on who is accountable; record their interfaces, deployments, and cost lines; add contracts; run campaigns over it
LeaderA unit and everything beneath itSee it, read its sensitive fields, cost lines, and contracts, record decisions for its applications, and run portfolio reviews of it
ArchitectThe whole organization, or a unitKeep capabilities, technologies and their releases, vendors, hosting platforms, and funding sources; import support dates; add, edit, import, and assess applications in scope; answer contests of their scores
ManagerThe whole organization, or a unitEverything a steward and an architect may do, in scope; record decisions and run portfolio reviews; for the whole organization, take portfolio snapshots, make leadership reports, shape the program, and pass on what someone holds
AuditorThe whole organizationRead everything, including every sensitive field, contract, and restricted application, and the whole history; change nothing
AdminThe installationAccounts, roles, units, sign-in, appearance, scheduled work and email; connectors and push keys; API tokens and webhooks; shape the program; pass on what someone holds

"In scope" means the application's unit is the role's unit or beneath it. A person may hold several roles, each with its own unit.

Two rules hold whatever the role:

Who sees what#

The catalog is open. Every application, component, interface, deployment, capability, technology, hosting platform, funding source, and vendor is visible to everyone signed in, with each application's scores, recommendation, and decision. A portfolio is useful in proportion to how many people can find what already exists: a researcher looking for an approved tool, an engineer checking who else runs a database, a team about to buy what another department already has.

Two things narrow that.

Sensitive fields. By default annual cost, the sign-in method, backup, and the last restore test are sensitive. They are visible to the people named on the application, to stewards, leaders, architects, and managers in scope (a manager of a unit sees them only within it), and to managers of the whole organization, auditors, and administrators. To everyone else they are withheld: left out of the record, its list columns, its filters, and its exports, and out of the working of any score that would reveal them. The record says that something is withheld. A person who may not see a sensitive field may not send a value for it, and its changes appear in the history as withheld.

Only someone who sees every application's sensitive fields may filter or sort a list by one: a manager or an architect for the whole organization, an auditor, or an administrator. Anyone else is refused, even a steward who sees the field on every application in their unit.

Scores are not sensitive: a member can see that an application is recommended for Modernize without seeing what it costs. On the portfolio chart, where bubble size would reveal cost, the bubbles are drawn the same size.

Cost in detail. What says more about cost than annual cost does is withheld with it:

Restricted applications. An application marked restricted, with its components, deployments, and interfaces, is known only to the people named on it, its creator, the stewards, leaders, architects, and managers whose scope includes it, auditors, and administrators. To everyone else it does not exist: not in lists, counts, charts, searches, pictures, or exports. An interface to a restricted application is hidden even from someone who keeps the application at its other end.

One function decides each of these, and every page, list, figure, and export calls it, so they always agree.

Shape the program#

The program is everything the portfolio team configures, kept in the database rather than in a file on the server:

PartWhat it holds
VocabulariesLifecycle stages, sourcing, purpose, pace, domains, tiers, hosting, sign-in methods, monitoring, backup, funding, data classes and their sensitivity, kinds of component, vendor, technology, platform, and unit, the radar's rings, the roles people hold on an application, the kinds of people who use an application (audiences), link kinds, interface methods and frequencies, environments, cost categories, the states of a data agreement, other systems, the kinds and stages of an initiative, and the dispositions
FieldsThe organization's own fields, each in a section of the application's form
What each stage requiresThe fields and records an application needs at each lifecycle stage
Sensitive fieldsWhich fields are withheld from people without a part in the application
Decision rulesWhether an application's accountable owner may record its decision, and whether the stage gates are on
The definitionWhat counts as an application, with examples of what does and does not
The capability mapThe capabilities, in areas
The question bankThe questions, their five levels and the definition of each, and which applications each is asked of
The scoring modelIts profiles, their factors, weights, bands, and floors; the thresholds; the rules, guardrails, and flags; the cadence: how long an assessment stays current and how often a record is confirmed, for each tier, what a stale record costs, when reminders go, and how far ahead tasks are raised; and the engineering maturity levels and their checks

The default program described in The portfolio is a reasonable start for most organizations. The engine sets out every factor, weight, band, rule, and flag in it.

Shape it in the app#

Admin → Program is for managers of the whole organization and for administrators. Every change is checked by the same rules a pack is, and kept in the history.

Admin, Program: the scoring model's thresholds, weights, and cadence, with what a change would do before it is publishedAdmin, Program: the scoring model's thresholds, weights, and cadence, with what a change would do before it is published

The recommendation rules, guardrails, and flags, and which questions there are, name other parts of the model by key, so they are changed together with a pack.

Or change it with a pack#

Whoever runs the server can change the whole program as a file: export it, edit it, check it, and load it.

uv run appwren program export -o program.json
# edit program.json
uv run appwren program import program.json --dry-run
uv run appwren program import program.json

The whole pack is checked before anything is loaded, and nothing is loaded unless all of it can be: every vocabulary a field names, every fact a rule reads, every weight in a profile. --dry-run says what would change and changes nothing.

A starter program can be loaded the same way over a program already in use, by its key: uv run appwren program import starter-company --dry-run. Its lists and settings replace yours, and its capabilities are added beside yours. See Start from a program shaped like yours.

An application can carry its identifier in another system: a configuration item, a ticket queue, a repository. To have each shown as a link, give the system an address pattern in the external_systems vocabulary of the pack, with {id} where the identifier goes:

{"key": "repository", "label": "Repository", "url": "https://code.example.org/{id}"}

A pattern must begin https://. A pack with any other pattern is refused. The Lists tab changes only a value's label, description, order, and whether it is retired; a url pattern is set in a pack or through PUT /api/v1/program/vocabularies/external_systems.

How a record stands elsewhere#

An application's record in another system of record (an AI-use review, a risk register entry, a security assessment) has a standing there: approved, open, closed. Where that system answers in JSON, give it a standing_url, and AppWren reads linked records' standings every six hours and shows each beside its link:

{"key": "governance_record", "label": "AI-use review",
 "url": "https://reviews.example.org/r/{id}",
 "standing_url": "https://reviews.example.org/api/r/{id}",
 "standing_field": "review.state", "key_env": "APPWREN_REVIEWS_TOKEN"}

standing_field says where in the answer to look, as a dotted path (status if left out). key_env names an environment variable holding a key, sent as a bearer token; it may not be one of the server's own variables. A change of standing is kept in the application's history, under Standings; a read that fails says why beside the link, and changes nothing else. A run reads at most 500 linked records, those never read first and then those read longest ago, so with more than 500 each is read less often than every six hours. Nothing is read until a system has a standing_url. Only an administrator sets standing_url, standing_field, and key_env, in a pack or through PUT /api/v1/program/vocabularies/external_systems, since they make AppWren reach out to another system with a key. The Lists tab does not show them.

Versions#

The question bank and the scoring model are versioned. A version in use is never changed: publishing in the app, or loading a pack that changes either, makes a new version, and the old one stays, marked superseded. Every assessment names the version of the questions it answered, and every snapshot names the version of the model it used, so a decision made last year still shows exactly what its maker saw.

Changing the scoring model changes every application's scores at once, the next time they are read. The preview in the app says which. Take a portfolio snapshot first if you want a record of the portfolio as it was.

What an upgrade does to the program#

uv run appwren db upgrade adds whatever is new in the default program and never overwrites what you have shaped.

Read the dashboard#

Reports → Dashboard shows the whole portfolio, or one unit and everything beneath it, or one domain.

The dashboard: applications by recommendation and decision, lifecycle, sourcing, flags, and confidenceThe dashboard: applications by recommendation and decision, lifecycle, sourcing, flags, and confidence

Every figure is a link to the list it counts. A figure and its list are worked out by the same function from the same rows, so the number on the dashboard is always the length of the list it opens, and the list can be exported.

The list behind a figure: the applications in service whose data confidence is lowThe list behind a figure: the applications in service whose data confidence is low

Home#

Home is each person's page of what is waiting on them: applications they are named on that have not been assessed, whose assessment has expired, or whose record is due to be confirmed; their tasks; what a campaign asks of them; flags on their applications; and what their records lack. A steward or manager also sees the applications in scope that nobody is accountable for; a leader or manager, the applications in their units waiting on a decision; a manager or architect, contests waiting for an answer. See Keeping current.

Home for a steward: the applications that need something, with what each needsHome for a steward: the applications that need something, with what each needs

Data quality#

Reports → Data quality shows, unit by unit, how complete the records are: applications with nobody accountable, no capability, no assessment, an expired assessment, low confidence, a record not confirmed in time, or something missing that their stage requires. Each figure opens its list. Choose a unit to see only it and the units beneath it.

Data quality, unit by unit: each kind of gap, with its count as a linkData quality, unit by unit: each kind of gap, with its count as a link

A portfolio's recommendations are only as good as its records, and this page is how the work of keeping them is shared out: give each steward the row for their unit.

Portfolio snapshots#

A portfolio snapshot keeps every application's scores, recommendation, and working as they were on a day, under a name such as 2026 Q4. Managers for the whole organization take them from Portfolio → Decisions → Snapshots with Take a snapshot, typically before each portfolio review and before changing the scoring model. The scheduler also takes one each month by itself, named for the month, so there is always a record of how the portfolio stood.

A snapshot reopens unchanged after the applications or the program have changed. Its digest is recorded in the history, so a snapshot altered afterwards is detectable.

A list of portfolio snapshots, quarterly, with who took eachA list of portfolio snapshots, quarterly, with who took each

Every decision also keeps a snapshot of the one application it was made about.

Scheduled work and email#

AppWren does some work by itself, so that nobody has to remember to. Admin → Scheduled work shows each job, when it last ran and what it did, and can run it now or pause it.

JobHow oftenWhat it does
TriggersEvery hourRaises a task when a contract's notice date is near, a release nears its end of support, a grant nears its end, or an owner leaves; closes tasks whose cause is settled
RemindersEvery hourReminds people of what is nearly due or late, and tells stewards and leaders what stays late; closes campaign items whose thing has been done
EmailEvery minuteSends notices and daily summaries, where email is set up
Standings elsewhereEvery six hoursReads how each linked record stands in another system of record, where the program gives that system a standing address
WebhooksEvery minuteTells each webhook an administrator has registered of what it asked for, signed, and tries a failed delivery again later
ConnectorsEvery 15 minutesRuns each connector an administrator has switched on, when it is due
Monthly snapshotEvery six hoursTakes the month's portfolio snapshot, once
HousekeepingEvery dayRemoves records of runs older than 90 days, sign-ins that were never finished, and the words of the assistant's exchanges older than [assistant] keep_days (a year, unless set)
Admin, Scheduled work: each job, when it last ran and what it did, when reminders go, and whether email is set upAdmin, Scheduled work: each job, when it last ran and what it did, when reminders go, and whether email is set up

Each job is claimed by one process before it runs, so several servers on one database, or appwren jobs run from a scheduled task, run it once between them. What is due is worked out from the database and the clock, so a restart catches up. To run the jobs from a scheduled task instead of inside the server, see Configuration.

Email is optional. Without it, notices are read under the bell and nothing is sent. With a mail server named in the configuration file, each person chooses under Your account to have each notice as it happens, one summary a day, or none. Nothing written before email was set up is ever sent. The Email card on Admin → Scheduled work, for administrators, shows how email is doing (what is waiting, sent, and given up on, and the most recent problem) and has Send me a test message.

The history#

Every change to every record is written to an append-only history in the same transaction as the change: who, when, and each value before and after. Each event is hashed together with the one before it, and the database itself refuses updates and deletes on the history.

Reports, History: every change in one place, with who made it and whenReports, History: every change in one place, with who made it and when

Assessments and decisions are never edited. A new one supersedes the last, and all of them are kept.

Appearance#

Admin → Appearance makes the product yours, with a live preview:

When the look has to be exact (every color by day and after dark, the official logo files, the brand's typefaces) it is set in the configuration file instead: see [branding]. What the file sets is shown here, locked.

Each person chooses light, dark, or system mode and a palette for themselves, from the appearance button at the top right.

Admin, Appearance: names, logos, the palette, and how scores are colored, beside a live previewAdmin, Appearance: names, logos, the palette, and how scores are colored, beside a live preview

Back up and recover#

Describes AppWren 0.10.1. Apache License 2.0. Screenshots show an invented organization; every person and record in them is fictional.