reference deployeradministratorintegratorsecurity-reviewer

Plain Vocabulary — every canonical term in one human sentence

Why this file exists. The project’s vocabulary is fixed by Overview v4 (CLAUDE.md Rule 2 forbids synonyms), but a fixed term is not an excuse for an unexplained one. Principle: « Ce qui se conçoit bien s’énonce clairement, et les mots pour le dire arrivent aisément » (Boileau) — what is well conceived states itself clearly. Any automation surface addressed to a human (escalation questions and their titles, issue bodies, Telegram pages, digests, review packets) must gloss a canonical term on first use. Copy the gloss from here; do not invent new phrasings per surface.

Format: term — plain one-liner. Example.

Rules (the 7 rule types — how a requirement is checked)

  • acceptance rule (code: acceptable value condition / substantial_criteria) — the pass/fail test a submitted value must meet, built from one or more of the 7 rule types below; a requirement can also carry none at all, which is a legitimate choice for a field that only needs to be present. “Age” needs an acceptance rule (“must be ≥ 18”); “Business notes” doesn’t need one — any text is accepted.
  • a check that cannot decide (code: fails open) — the check ran but could reach no verdict, because the answer and the check cannot be compared at all: amounts in two different currencies, a format that is not a valid format, a date that is not a date. It is neither a pass nor a fail, and it must never become a refusal — the applicant did nothing wrong. An external register returns 50,000 US dollars; the check is written in Somali shillings, and the platform never converts. (Today such a check stays silent and the answer passes as checked: docs/specs/2026-08-16-a-check-that-cannot-decide.md.)
  • comparison — the answer is checked against a threshold. Capital must be ≥ 10 000.
  • membership — the answer must be one of an approved list. Business type must be one of SARL, SA, EI.
  • existence — something must simply be present. A tax identification number must be provided.
  • pattern — the answer must match a format. Phone number must look like +254 7XX XXX XXX.
  • cross_field — two answers are checked against each other. End date must be after start date.
  • temporal — a date-based check. The certificate must be less than 90 days old.
  • counted date (code: submitted_on) — the calendar day a filing counts as: the moment of submission (recorded as a universal UTC instant) rendered in the country’s own time zone, written onto the application at submission and never recomputed. Every date-based check that refers to the filing day uses this stored day, so which side of UTC the country sits can never change a deadline verdict. An applicant in Guatemala files at 22:00 on the closing day; in UTC it is already 04:00 the next morning — the filing still counts as the closing day, because that is the day the applicant lived.
  • working day — a day the country’s offices are open: a weekday in the country’s working week that is not a named non-working day. Somalia’s working week is Saturday to Thursday; Friday is not a working day.
  • calendar day — every day, offices open or not.
  • non-working day — a dated public holiday the administrator named, with a label; entered per year, never computed.
  • working week — the weekdays the country works, ticked once in Country settings › Working days.
  • composite — several of the above combined. Either a TIN exists, or a registration receipt is less than 30 days old.

Catalogs and fields

  • catalog — a reusable list an agency maintains, used to fill dropdowns and membership rules. The “Business types” catalog holds SARL, SA, EI.
  • saved rule (code: named rule) — a check written once, given a name, and attached to many fields in the same procedure; editing it updates every field that uses it at the next publish. “Capital ≥ 10 000”, saved once, attached to 12 fields.
  • requirement — one thing the applicant must provide or satisfy. “Company name” or “Proof of address”.
  • question position (code: sort_order) — where a question sits in the form: the order the applicant meets it in, and the order the published version records. “Trading name” is asked before “Contact email” because it holds the earlier position.
  • procedure — the full set of requirements and steps for one public service. “Register a limited company”.
  • legal basis (code: legal_basis) — the law, regulation or decree that authorizes a public service, recorded on the procedure itself; changing it sends the procedure back to draft, because the published copy names the law applicants were judged under. “Companies Act 2024, section 12”.
  • legal citation (code: rule_citations) — the law, the article and the official text that a registrar attaches to one check. A citation can be public or internal. A citation from the drafting assistant stays unverified until a person marks it verified. Only a public, verified citation reaches an applicant. The staff note, the review reason and the provision key stay with agency staff. “Companies Act, Section 20” on the turnover check. (R3, spec 2026-11-14.)
  • section (code: Requirement.section, per-language companion section_labels) — the heading a registrar groups a block of questions under on the form, written on each question in the block rather than as a thing of its own; renaming it renames it on every member question at once. “Identity”, “Company details”, “Members”.
  • condition (code: Requirement.condition) — a rule for when a question appears at all. “Minimum capital” is asked only when business type = SARL. (The word filter is retired by D58, proposed: what a filter did is now a qualification’s “then also ask for” list.)
  • question short name (code: field_name) — the one-word name the platform mints for itself when a question is created, by turning the question’s label into a slug and appending a number or _copy if that slug is already taken; stored rules refer to a question by it, and a registrar never types it and should never be shown it. A registrar writes “Date of incorporation”; the platform records date_of_incorporation_copy_2 and keeps that to itself.
  • status token (code: the pending_<role> values of a published status_vocabulary) — the short machine word the published document uses for one state a field can be in while a review role checks it, minted by turning that role’s name into a slug of Latin letters, digits and underscores; it names the role that is verifying, and a reader of the register, the portal or the approval workspace sees it. “Legal reviewer” mints pending_legal_reviewer; a role written in Arabic must still mint a token that names or numbers it, never a bare pending_.
  • shared catalog — an official list saved once and available in every registration the agency runs; editing it updates the fields that use it at each next publish, with a notice. “Counties of Kenya”, saved once, used in 3 registrations. (Proposed: D15.)
  • dependent catalog — a list whose entries depend on a choice made in another list. Pick “Kenya” → the county list shows Kenya’s 47 counties. (Proposed: D15.)
  • field type — what kind of answer a question takes, which decides how it is asked and checked: text, number, date, a date with a time, an amount of money, a country, a list to pick from, yes/no, a document to upload, email, phone, address, a catalog entry, or a repeating table of rows. “Proof of address” is a document upload; “Capital” is a number.
  • date and time (code: datetime) — a field type whose answer is a specific day and a specific time, not just a day. “Inspection at” records “14 March 2026, 09:41”, not just “14 March 2026”. (D31.)
  • money (code: money, a field type) — a field type whose answer is one amount bound to its currency, asked and checked as a single answer, never as a separate number field and currency field. “Declared fee: 1 500 KES” is one answer — a rule can never compare it to a dollar figure without saying so. (D31.)
  • country (code: country, a field type) — a field type whose answer is one country, picked from the platform’s own built-in, translatable list, never typed or hand-maintained per procedure. “Country of incorporation” offers Kenya, Uganda, Tanzania… from one shared list, the same list every procedure in every deployment uses. (D31.)
  • selection (list) (code: enum, a field type) — a field type whose answer is one choice from a short list the agency writes itself on the question. Each choice carries a name people read and a separate code the platform stores and compares against, so a rule that names the choice must name the code. “Company type” offers “Sole Proprietorship” and stores sole_prop.
  • field variation (code: variant / adaptive data group) — the same question asked differently depending on who is applying; you pick the context (country, business type, applicant category) and say what changes for it. “Tax number” is free text everywhere, but a scanned certificate for applicants in Ethiopia.
  • label by answer (code: label_variants) — other words for one question, chosen by an earlier answer. The portal shows the first words whose condition is true. Otherwise it shows the usual words of the question. The answer and its field name stay the same. “Number of actions” reads “Number of parts” when the legal form is SARL. (Spec 2026-09-16-conditional-labels.)
  • repeating group — a table of rows in a form: the same questions asked once per person or item, one row each; every row keeps its own stable identity even when rows are added or removed. One row per company director, each with name and KRA PIN. (Adopted and built: D17; pending concept-owner review.)
  • row id (code: _row_key) — the permanent name a table row keeps for its whole life, so a decision about “row r_1a2b” still points at the same person after rows are added or removed; never the row’s position. Director row r_1a2b stays Jane’s row even when she becomes row 1.
  • row field (code: child_field) — which question inside a repeating-group row a decision is about, paired with the row id so a claim reads “director row r_1a2b — full name” instead of collapsing every director’s claims onto one undifferentiated question. An objection to director row r_1a2b’s “full name” leaves r_9f3e’s own full name untouched.
  • same-row check — a rule comparing two answers within one row of a repeating table: a director’s date of birth must fall before that same director’s appointment date. A rule can never reach another row — there is no one answer to compare against when a company registers eight directors. A column’s rule may also name an answer given once for the whole form; inside a nested table it may name that table’s own columns only. (Issue #1484; spec docs/specs/2026-09-05-row-scoped-rule-comparison.md.)
  • table identity check (code: row_identity) — a live check on an identity-number column of a repeating table. It asks a register whether the number belongs to the name in the same row. The civil register compares a director’s national ID number with that same director’s full name, never with another director’s. (Spec docs/specs/2026-10-20-row-identity-checks.md.)
  • nested table — a table inside one row of another table: the same questions asked once per item within a person or thing. Tables stop at two levels — a table inside a table, never deeper. Each member of a company lists the people they act for. (Built 2026-08-28, spec docs/specs/2026-08-27-nested-repeating-groups.md.)
  • row path (code: row_key holding r_outer/inner_table/r_inner) — the permanent address of a row inside a nested table: the outer row, the inner table, the inner row, joined with slashes. Shown to people only as words — “row 2 (Palesa) › People they act for › row 1 (Mokoena)” — never as the address itself. A flat table’s row keeps its plain row id. An objection to Palesa’s beneficiary Mokoena stays on that one row, even after Palesa becomes row 1.
  • answer shape (code: answer shape) — the form a stored answer takes, which decides which checks can read it: plain text, a number, a date, a date with a time, an amount bound to a currency, a code picked from a list, yes/no, an uploaded document, or a table of rows. Several field types share one shape — email, phone and address are all plain text — and a check declares which shapes it can read, so the editor can say in advance which checks fit a question and which could never work on it. “Registered capital” is an amount bound to a currency, so a “within 30 days” check can never read it — the editor greys that check and says why. (D41.)
  • paused check (code: paused rule) — a check already published against a question it can never read, recorded in the published version as explicitly inert so consuming systems see something switched off rather than something that looks enforcing and quietly is not. A date check published years ago against an amount is marked paused, and the editor shows the agency how to repair it. (D41.)
  • registration data dictionary (code: RDD, catalog: semantic group) — a shared catalog of field definitions that already have a standard label, format, and meaning, drawn from international frameworks (EU Core Vocabularies, NIEM, UN/CEFACT), so an agency can reuse a standard field instead of inventing one from scratch. “Given Name” already exists in the Individual Identity group — pick it instead of typing a new field.
  • how applicants answer (code: boolean_display) — for a yes/no question, whether the applicant ticks a box or must pick Yes or No explicitly. The box is the default. “Reserve the name first?” as a Yes / No choice, so silence is not taken as no.
  • dropdown options (code: allowed_values) — the choices a selection-list question offers, each with a name people read and a code the platform stores. “Sole proprietorship”, “Limited company”.
  • default currency (code: money.currency) — the currency an amount-of-money answer is stated in unless the applicant picks another; one of the country’s accepted currencies. “Declared capital” defaults to the Somali shilling.
  • whole numbers only (code: integer_only) — a number question that refuses decimals. “Number of employees” cannot be 12.5.
  • catalog source (code: substantial_criteria.catalog) — where a catalog question’s choices come from: values the agency proposes, an uploaded file, an API, or a shared list. “County” comes from the shared list “Counties of Kenya”.
  • world-model link (code: world_field) — which shared fact of the world model a question fills, so every procedure that asks it writes the same fact. “Date of incorporation” fills the company’s one incorporation date.
  • procedure-local answer (code: world_field: {"local": true}) — an answer that the author marks as used by this procedure alone. It fills no shared fact of the world model, and note 9 permits it only for an answer that is genuinely local. “Do you accept the terms?” is procedure-local. A premises floor area is not.
  • AI rule drafter (code: AiRuleDrafterModal) — an optional editor helper that reads a law or a form and proposes questions. Each proposal carries its proofs and rules, and the editor saves nothing until a registrar adds it (D64 ruling C1). A registrar pastes Article 6 of a licence act and gets a “Premises floor area” card.
  • version stamp (code: revision) — a hidden stamp on one stored authoring record. The server changes the stamp on each edit so an older browser tab cannot overwrite newer saved work. Two registrars open “Capital” at once. The second Save sees a newer stamp and opens a side-by-side comparison instead of overwriting.
  • save action handle (code: SaveActionHandle) — a server record that tracks one authoring write attempt across dropped connections. Retrying the same handle returns the original result instead of creating a duplicate item. Wi-Fi drops after the registrar clicks “Add fee”. Reopening the editor recovers the saved fee instead of adding a second one.
  • rule identity sidecar (code: RuleIdentitySidecar, QualificationRuleSidecar) — an authoring-only record mapping visual rule cards to stored rule places. It never changes the published version. Reordering two condition cards keeps each card’s identity across Canvas, Outline and Form.
  • writer compatibility mode (code: writer_mode, OPENGOV_SMARTRULES_AUTHORING_WRITER_MODE) — the server setting (legacy, atomic or enforced) that rejects older browser tabs once visual authoring turns on. An older tab tries an unprotected save in enforced mode and receives a plain prompt to reload in the current editor.
  • the rule drafter (code: AIInferenceService.extract_requirements) — the optional AI helper that reads a law or an application form and proposes requirements. The button “Draft from law or form” in the editor opens it. Each proposal can carry a source excerpt: a short quote from the law that supports it. The registrar ticks the proposals to keep, and nothing saves before that (D64, ruling C1). A registrar pastes Article 12 of a restaurant law. The drafter proposes “Floor plan of the premises” with the quote “The applicant shall attach a floor plan of the premises”.

What you qualify for (qualifications — D58)

  • what you qualify for (code: qualification, table smartrules_qualifications) — something an applicant’s own answers make them eligible for, which the agency discloses while they are still filing and which may add questions to the form or change what they pay; never the decision on their file, which stays registered, refused or rejected. Capital under 5 000 000 → small-investor relief, which adds a tax clearance and removes one fee line.
  • appears to apply (code: indicated) — the answers given so far meet the rule, said as a hedge because nobody has checked them yet; while a needed answer is blank, the panel names it instead. “Small-investor relief — appears to apply, based on what you have entered.” / “We still need your answer to Capital.”
  • does not apply (code: not_indicated) — the rule was decided against, and the sentence names the answer that decided it, including when that question was never put to this applicant. “Small-investor relief — does not apply: your capital is above the limit.” / "…does not apply: this is only asked of SARLs."
  • paused until you correct it (derived: an open object on one of the answers the rule reads) — an officer has objected to an answer the qualification rests on, so it is neither granted nor withdrawn until that answer is fixed; never written as a refusal, because an objection is always correctable. “Small-investor relief — paused until you correct Capital.”
  • confirmed by the agency (code: confirmed, derived from the claims, never stored) — every answer the qualification relies on has been asserted by the officer who checks it, with no open objection; written with “by the agency” because confirmed alone reads as the decision on the file. “Small-investor relief — confirmed by the agency.”
  • check what applies to you (no code: derived from the qualification rules) — the short set of questions the portal asks before the form itself, made of exactly the questions the qualification rules read, so an applicant can see what they qualify for before filling anything. Always skippable; the answers carry into the form. Two questions — capital and sector — then “Small-investor relief: appears to apply”.
  • visible to the agency only (code: visibility: agency) — a qualification the agency evaluates but never shows the applicant, with a written reason; it may add questions but may never select a fee line. “Enhanced due diligence when the country of funds is on the watch list.”

Actions and flow (what officers do, and where the file goes next)

  • assert — the officer confirms a claim is satisfied. “The address checks out.”
  • object — the officer flags a problem the applicant can fix; a written reason is required. “The certificate is expired — upload a current one.”
  • suggest — the officer proposes a value without deciding. “The registry shows a different address — consider it.”
  • clarification question (code: ClarificationRequest) — a question an officer asks the applicant about one answer, without an objection. The applicant answers in the portal. The question can have an expiry date, and it closes as expired when nobody answers by then. “Is your capital 50,000 or 500,000?” (D5.)
  • officer’s question (clarification) (code: eapproval_clarifications, D5) — a typed question that an officer asks the applicant about one answer. It is not an objection: it grants no decision and moves no step. “Is your share capital 50,000 or 500,000?”
  • follow-up condition (code: condition subsequent) — a commitment the applicant owes after an approval step, by a deadline counted from that step. The approval goes ahead on the strength of the promise. Do not confuse it with a question’s condition, which decides whether the platform asks the question at all. “Approved — the Certificate of Title must follow within 90 days.”
  • reject — the definitive no, with no way to fix it; a written reason is required, and only designated roles (can_reject) may use it. “The clearance is forged.” (Adopted and built: D20.)
  • rejectFinality: field / application — how far a rejection reaches: only that one answer (field, the default) or the whole application (application). A forged ID ends the application; a wrong plot number ends only that field.
  • refused (an application status, like registered and rejected) — the closed state a filing reaches when one of its answers was definitively refused and every remaining review step has finished: it can never be approved, and the file is over. Distinct from rejected, which is the whole-application reach of the same decision closing the file at once. “The plot belongs to someone else” — once the other desks finish, the filing closes as refused. (Issue #2564; spec 2026-08-27-refused-filing-closure.)
  • claim scope: field / block — a decision can cover one answer or one whole section at once; a section-wide decision is recorded on every field inside it. “Approve the whole Address block in one click.”
  • traffic lights — the per-field state made visible: grey pending · green asserted (and locked) · orange suggested · red objected (fix it) · red barred rejected (definitive). The applicant sees his own form with the same lights.
  • resubmission counter (①②③) — how many times a field came back corrected. A ② on “Capital” means it was fixed twice.
  • edge triggers (assert / object / reject / bot_failed) — the events that can send a file from one step to the next; an application-wide reject closes the application directly. “When this step objects, route back to the applicant.”
  • DAG node types (verification / automation / convergence) — a step where a human checks (verification), a step where a bot acts (automation), or a meeting point where parallel branches rejoin (convergence).
  • dual control (double contrôle; code: requires on a published transition, capability guarded_transitions) — when two reviewers check the same field in parallel, it is final only once both have approved; one approval records itself and waits for the other. The capital figure is checked by the tax desk and by the field visit; neither alone can register it.
  • fallback step (code: dag.fallback_steps) — a step that only an objection, a rejection or a failed automatic check can open. On an application with none of these, it never opens. A fallback step that never opened and that leads back only to the main path holds nothing for a question that a different step decided. The design of 2026-10-14 (docs/specs/2026-10-14-one-rule-for-when-a-step-opens.md, issue #4003) extends the rule to a step that only fallback steps lead to. Publication refuses a question that only fallback steps check, whatever they lead to. “Legal review” opens only on an objection at “Reviewer”, so “Activity” must also go to a step that runs for each application. (Issue #3948.)
  • fallback arrow — an arrow with the trigger object, reject or bot_failed. It fires only on an objection, a rejection or a failed check. An assert arrow opens the next step on an acceptance. The objection arrow from “Reviewer” to “Legal review” fires only when “Reviewer” objects. (Spec 2026-10-14, one rule for when a step opens.)
  • arrived / can still arrive / can never arrive — the three states of an earlier step towards a later step. Arrived: the earlier step finished, so its arrow fired. Can still arrive: the earlier step is open, or it can still open. Can never arrive: the earlier step can no longer do what its arrow needs on this filing. Only an objection of “Reviewer” opens “Legal review”. “Reviewer” accepts, so “Joint approval” no longer waits for “Legal review”. (Decided 2026-10-13 and 2026-10-14, issue #4130.)
  • condition before a step (code: condition precedent) — a condition that an officer attaches to an acceptance. It names a later step, and that step cannot go on until an officer marks the condition as met. Do not confuse it with a follow-up condition, which the applicant owes after a step. “Applicant must provide Fire Approval from JFB before Board review.” (Overview v4 §4.)
  • a step’s outputs (code: producible_output_types) — the kinds of result that one review step may record with its decision. The four kinds are a recommendation, conditions, a commission decision and a risk assessment. The agency ticks them on the step in the editor. The server refuses a recommendation, conditions or a risk assessment that the agency did not tick. The “Legal Services Unit” step may record a recommendation but no conditions. (Overview v4 §4.)
  • output template — the description of what one kind of step output holds. The template of a recommendation says that it is approve, approve with conditions, reject or defer. SmartRules defines the templates, and the approval tool records values that fit them. A board decision may be “defer”, and a condition due after a milestone needs a deadline. (Overview v4 §4 and §8.)
  • review step (code: Role) — one desk or one bot that checks part of an application. The review steps of a procedure, and what each one waits on, make its approval flow. “Name check” and “Registrar approval” are the two review steps of “Business name registration”.
  • approve arrow (code: RoleEdge) — a line from one review step to the next, with the trigger assert. It opens the next step when the first step accepts. A procedure imported from a service catalogue keeps its whole step order as approve arrows. The approve arrow from “Name check” to “Registrar approval” makes Registrar approval wait for Name check.
  • what a step waits on (code: precondition_ids) — the other review steps that must finish before this one may begin; the platform works the whole flow out from these, so it is a set of steps and never an order the author typed. “Final approval” waits on the tax desk and the field visit, in no particular order.
  • gate — one step of the approval flow for one application; it opens when the file reaches it and completes when its role has decided each question it owns. The “Health inspection” step for application #1042.
  • administrative closure — an administrator closes a step that can never be verified (the office no longer exists), with a mandatory written reason; every screen shows who closed it and why — it is never shown as “passed”. “Closed by J. Doe — post abolished 2026.” (Proposed: D16.)
  • acting officer — an officer temporarily assigned to check a step in place of a vacant role; the verification still genuinely happens. A supervisor reviews the file while the post is vacant. (Proposed: D16.)
  • verification method — the named way a step gets checked, picked from a short list the agency maintains: four come with the platform and an agency adds its own. The name chosen at publish time is copied into that published version and read by the officer’s workspace and by every system consuming the published API. “Desk review” · “On-site inspection”.
  • evaluation criteria — the written checklist an officer works through when checking one thing, each line saying what “correct” looks like. For a filing fee: “the receipt number matches the payment record” · correct = the two numbers are identical.
  • fee — one named amount the applicant owes for a procedure; like any other requirement it says how the payment is proven and what the officer checks. “Filing fee, 1 500 KES, proven by the provider’s payment confirmation.” (Adopted: D23.)
  • payment timing (code: payment_collection) — when a procedure’s fees are collected, chosen once for the whole procedure from four options: at the counter for information only, online before the applicant submits, online before a decision, or online when the certificate is issued. It is not a display preference — the applicant’s runtime reads it out of the published version and holds the filing, or the decision, until the money is confirmed. Changing it sends the procedure back to draft. A registry joins the national payment gateway and moves its filing fee from “At the counter” to “Online, before approval”.
  • who else is here (code: presence) — the live list beside a filing showing which other officers have it open right now; it is held only in the server’s own memory, forgotten after two minutes of silence, and nothing in the platform depends on it. “M. Otieno is also viewing this file.”
  • All activity (the audit view of D5) — one list of all that happened on a filing, in time order. Each decision has the tag formal. Each comment, internal note and clarification has the tag conversational. The list keeps a note that its writer deleted, and marks it deleted. An auditor sees that the objection to the company name came after a question that the applicant answered. (D5 conversation-layer spec, section 3. Designed, not built.)

Automatic decisions (when a machine completes a step — D66)

  • automatic step (code: a role with node_type automation) — a step of a service that the platform completes with no officer: it accepts the answers it can prove and hands the rest to a person. The share-capital step accepts 50,000 against the rule “at least 1,000” in seconds.
  • own-word answer — an answer whose proof is self_assertion and which carries no published rule: the agency chose to accept it on the applicant’s statement alone, with nothing to check it against; an automatic step accepts it as the agency’s choice and never calls it proved. A trading name, typed and accepted as given.
  • issuer-confirmed document — a document whose issuer, reached through a connection the country registered, returns the same values and a current status; never an address printed on the document itself. The tax office’s connection confirms clearance 2026-1187 is valid and in the applicant’s name.
  • hold — an automatic step sending one file to a person instead of accepting it. When a rule or register caused the hold, the officer sees which; when a model caused it, the officer is told nothing and the file arrives among randomly picked ones. “Held: the register returned a different address.”
  • decision receipt — the written record sent to the applicant after an automatic decision: that a machine decided, which rules and registers were used, which answers were taken on the applicant’s own word, the tool and its version, and when. “Accepted automatically on 2 October 2026 by rule check v4; the trading name was taken on your word.”
  • undo window (code: none yet) — the period, set by the country administrator, during which an officer may undo an automatic registration for a stated reason after hearing the holder; fraud has no time limit. A registry sets 120 days; an address found false on day 90 can be corrected.
  • revocation and batch recall (code: revoke_application, recall_procedure_version) — the two ways an agency undoes a registration inside the undo window. A revocation undoes one registration. A batch recall undoes every registration that one faulty version of the rules judged. In both, one officer proposes and a different officer confirms. An audit finds one bakery’s address false: revocation. The address rule of version 4 accepted any text: batch recall of version 4.
  • recall by rule version (code: POST /procedure-versions/{id}/recall) — the undo of each registered filing of one rule version at once (D66 R4.5). The reason is a fault in the rule itself. One officer proposes the recall, and a different officer confirms or declines it. A recall for fraud suspends each signed record at once. A wrong seating rule in version 1 of “Restaurant Licence” brings a recall of the 40 licences of that version.
  • back-office role — the named people who receive what an automatic step sends to a person: held files, contested correction requests, re-check picks and undo cases. A service with no person on its path must name one. “Registry back office — 3 officers.”

Proof (how a claimed fact is backed)

  • self_assertion — the applicant’s word is enough. “I declare I am over 18.”
  • applicant_document — the applicant uploads a document. A scanned diploma.
  • agency_document — another government agency already holds the document. A permit issued last year by the licensing agency.
  • agency_api — another government agency’s system confirms it live. The tax authority API confirms the TIN.
  • third_party_document — a document from a non-government organisation. A bank letter.
  • third_party_api — a non-government organisation’s system confirms it live. A credit bureau confirms the score.
  • value_origin — separate metadata saying how the value got into the form (typed by the applicant, extracted from a document, fetched from an API, computed). Not a proof mode.
  • docRef — lets one uploaded document also satisfy another field’s proof, so the applicant is not asked to upload the same paper twice. A “Business License” upload also proves “Registration Number” — the author ticks it in the “This document also proves…” checklist. Inside a repeating table the link stays within the row: a director’s uploaded ID card also proves that director’s full name and date of birth — never another director’s, and never a field outside the table.
  • prerequisite (code: prerequisite_procedure_id) — another procedure whose result an applicant must hold first (set on an agency_document or agency_api proof). The publish check refuses a loop of prerequisites, because no applicant can finish a loop. “Food permit” needs a “Trade licence”, so the applicant gets the licence first.
  • preferred mode / fallback order — when a field accepts more than one proof, which one is tried first, and what to try next if it is unavailable — a fact set independently of the order the modes happen to be listed in. A live registry check is preferred; a document the agency already holds is the fallback if the check is down.

Publishing and modules

  • catalog heading (code: Procedure.category, per-language companion category_labels) — the word a registrar files a public service under, printed as a section heading on the portal’s front page so citizens can find services by subject rather than by name. Optional: a procedure with no heading is simply not grouped. “Register a business” and “Change a company’s directors” both sit under “Business Registration”.

  • published version — the frozen, machine-readable copy of a procedure that portals and other systems consume; editing the procedure never silently changes an already-published version.

  • single-window procedure (code: Procedure.is_single_window, D78) — one service that a coordinating agency publishes to join the procedures of several agencies. The applicant fills in one form, and each agency still reviews its own filing. “Start a company” joins company registration, tax registration and employer registration.

  • dossier (code: SingleWindowDossier, D78) — the one file that an applicant follows for a single-window procedure. It holds one filing for each agency. It stays on the version of the service that was live when the applicant submitted it. An entrepreneur follows the dossier for “Start a company”, and the tax office reviews its own filing inside it.

  • what a version changed (code: changes_since_previous, on the public read of a published version) — the questions a published version added, removed, or reshaped compared with the version right before it, worked out fresh each time it is read; a first version has nothing to compare against and says so. A reshaped question is one that stayed but became required or optional, or changed field type — never one whose wording was corrected, so a consuming system can tell a cosmetic republish from one that alters what it must send. Version 6 dropped “Fax number” and made “Tax clearance certificate” required; version 5 fixed a spelling and reports nothing.

  • version signal (code: version_signal) — one word, “breaking” or “safe”, that tells a consuming system whether it must act on a published version. The public read of the version carries it. Publish compares the version with the version right before it and records the word once. A first version has no signal. Version 6 made “Tax clearance certificate” required and says “breaking”. Version 5 fixed a spelling and says “safe”.

  • version signal (code: version_signal) — one word that publish writes on each new published version, “breaking” or “safe”. The platform works it out and the registrar never chooses it. “Breaking” tells a consuming system that it must adapt before it moves to the new version. Version 6 adds a required “Tax clearance certificate” question and says “breaking”. Version 7 corrects a spelling and says “safe”. (Decision 12a.)

  • required question (code: is_required) — a question the applicant cannot leave blank; an optional one may be skipped. Making an optional question required is a change every consuming system must act on, so a published version reports it. “Tax identification number” is required; “Trading name” is optional.

  • back to draft (procedure status: draft) — saving any content of a live procedure marks it “Draft” again, because the frozen copy applicants are judged against can never be edited in place; the edit only reaches applicants when a new version is published. Not the applicant’s own half-finished form, which the portal also calls a draft. A registrar renames a question on a live procedure and the header switches from “Published” to “Draft” until she republishes.

  • retire / restore a procedure (code: archive / unarchive, procedure status archived) — retiring takes a procedure off the lists that registrars pick from, and the procedure stays readable for audit; restoring brings it back as a draft or as published. An office retires “Trade licence” at the end of the season and restores it the next year.

  • public spec (code: the published OpenAPI document) — the single file a publish puts online for anyone to read, with no sign-in; today it carries both the applicant-facing part (fields, rules, fees) and the internal part (the name of each checking role and the order they check in). A journalist can read that “Registrar” checks the capital before “Legal” does. (Splitting it into a public file and a government-only file is designed, not built: D22.)

  • the public rules feed (code: the routes under /api/public/v1) — the sign-in-free address that hands out each published procedure and its OpenAPI document. A portal, an assistant or a command-line tool reads it without an account. A neighbouring ministry’s portal reads this country’s rules from it without asking anyone.

  • discovery document (code: GET /.well-known/smart-rules) — the sign-in-free page that lists each service a deployment publishes. It gives the addresses that a machine needs to use each service. An outside assistant reads it first. An assistant reads it and finds “Restaurant licence” and the address of its rules.

  • service short name (code: slug, in the discovery document) — the short word that the discovery document gives each service. A machine names the service by it in an address, for example in the eligibility check. It is not the question short name. “Restaurant Licence” gets restaurant-licence.

  • eligibility check (code: POST /api/v1/published/procedures/{slug}/eligibility/evaluate) — a sign-in-free check of the published rules of one service. Before a person applies, it tells them if their answers meet those rules. It keeps nothing. An assistant sends a seating area of 88 square metres and learns that the applicant is eligible.

  • result definition (code: Procedure.output_format, published as output_template; D24) — what a procedure hands the applicant once everything reaches registered: the registration number always, plus a certificate and a QR code when the agency selects them; authored on the procedure’s Output tab and rendered by the platform on completion — never by an officer pressing a button. “Register a business” completes, and the applicant’s portal page shows the registration number with a downloadable certificate.

  • certificate wording (code: output_format["content"], published as output_template.content; D24) — the agency’s own clause on a certificate — a legal citation, a signing officer, a sentence of standing — typed into the wording box on the Output tab beside the documents the agency selected, and printed verbatim on the certificate the applicant receives. Optional to the renderer: a certificate with no wording still prints. “Issued under the Companies Act 2011.”

  • capability refusal — an older portal meeting a form it cannot display is told so in plain words and shown nothing, instead of quietly showing the form with parts missing. “This form uses repeating tables (the same questions asked once per person or item). Your portal version cannot display them yet — it needs an update before this form can be shown.”

  • SmartRules / eApproval / SmartLink / eRnext — the four tools: where agencies define rules · where officers process applications · where external databases are checked and updated · the applicant portal.

  • Smart Rules / applicant assistant / approval assistant (working names) — the names that a presentation to a country uses, for now. They name SmartRules, eRnext and eApproval, in that order. The approval assistant includes the checks against other registers that SmartLink makes. The concept owner chose these generic working names on 2026-11-11, and the final names are not decided. Code, module names and technical documents keep the four tool names. A slide says “the approval assistant checks the tax number against the tax register”, and the runbook for that connection says SmartLink.

  • applicant assistant (name clash) — the working name is for the full applicant tool, eRnext: the portal and the help it gives. It is not the assistant of the section “A door for assistants”, which is a program that a person authorises to act for them. A text that can mean one or the other must say which one it means.

  • SmartLink (name clash) — OpenGov’s SmartLink module shares its name with a different product: eRegistrations SmartLink (Spring Boot + Camel), which also has its own MCP server, mcp_eregistrations_smartlink. Any doc, tool name, or package that could be confused between the two must say which product it means. An assistant told to “use SmartLink” on an OpenGov deployment must never reach for the eRegistrations server of the same name. (Proposed: spec 2026-08-27.)

  • connector / operation (SmartLink) — a configured link to one external system (connector: “Kenya Business Registry”) and one callable action on it (operation: “look up a company by number”).

  • test page of an action (code: OperationPlayground) — the SmartLink page where an administrator runs one operation by hand and reads the answer. It shows the address that the platform calls. Its “Copy cURL” button copies the same request as a terminal command. The administrator types the PIN A123 and sees the address for it.

  • connector code (code: Connector.code, surfaced as provider_name on the notifications-health widget) — the short identifier the platform files a connector under: its own filing reference, not the outside service’s name. Operator screens may show it as-is; screens an agency author works on carry the service’s name instead, and fall back to the code only when they have no name for it. sendgrid-v3 is the filing reference; “SendGrid” is what the registrar reads.

  • external connector (code: Connector.external) — a connector that reaches a system outside the agency’s own IT estate (another agency’s API, a national system), as opposed to one the agency hosts itself; a stricter set of save-time checks applies to any event binding that uses one. The licensing database’s own internal API is not external; the customs authority’s API is.

  • OpenGov Mesh / mesh connection (code: Connector.fetch_compatibility = 'mesh') — a way of reaching another institution’s register through a companion service that runs beside this platform and owns the connection together with the trust it rests on. OpenGov hands the question to that companion and waits for the verified answer; it never dials the outside system itself and puts no sign-in details on the wire, so a mesh connection is always saved with its sign-in method set to none. The partner revenue register is reachable only through the mesh; the companion service holds the credentials, not us.

  • mesh holder (code: mesh_holder) — the door this deployment opens to the companion service beside it, so another government body’s verified question about somebody’s records can be answered here. It is the inbound half of the same arrangement: a mesh connection is this platform asking, the mesh holder is this platform answering. It takes questions from that companion service and from nowhere else, and refuses a question about a person that arrives without the person’s own consent evidence. The companies register asks whether this person sits on our own register; the answer leaves through that door and no other.

  • event binding (code: EventBinding) — a rule an agency author sets up so that when an application reaches a certain step (a gate transition), SmartRules automatically sends data to an external system through a connector. “When Legal approves, notify the licensing database.”

  • stand-in message (save rehearsal) (code: _sample_envelope) — the invented message that SmartLink uses to test an event binding’s template before the save. It must look like the real message of the moment that the binding waits for, status words included. The save refuses a template that leaves a required field of the receiving system empty in the stand-in. On the approval of “Commerce review”, the stand-in must give the company name pending_commerce_review, as the real message does.

  • cleared to leave the platform (code: Requirement.exposable_to_event_bindings) — the per-question switch that says an applicant’s answer may be included in what an event binding sends to an outside system; everything else is left out of that payload, even when the connection’s message names it. The switch does not narrow the finished record that a procedure pushes to an existing database. That record carries every field mapped to a column there. The switch belongs to the question on the procedure the sending step sits on, so a bundle’s other procedures never clear anything on its behalf. “Proposed company name” is cleared for the business-names register; the applicant’s tax number, which no send references, is not.

  • delivery guarantee (code: EventBinding.recipient_idempotency) — the binding’s recorded answer to “if the same application is sent twice, does it create two records?”, together with how that answer was reached: not checked yet, checked automatically, confirmed by an administrator, or not supported by the receiving system. It decides whether a send that fails is retried up to six times or given up on after one. “Checked automatically” buys six attempts; “not supported by the receiving system” buys one.

  • conformance check (code: the recipient-idempotency probe) — the machine test that earns the “checked automatically” answer: it deliberately sends the receiving system the same message twice under one key and watches whether one record appears or two. Distinct from the trial request on a paused connection, which asks a different question (“is the other side back?”). One message sent twice; two records means the recipient cannot be trusted to ignore a repeat.

  • role filter (code: filter.role_ids) — which of a procedure’s checking roles must complete a step before an event binding fires; left empty, the binding fires for every role instead of a chosen few. A role filter of just “Registrar” fires only when the registrar’s own step completes, not every role’s.

  • operation kind (code: operation_type: lookup / verify / send) — whether a SmartLink operation only reads a fact from the external system (lookup, verify) or pushes/changes data there (send). “Check tax registration status” only reads; “Submit tax registration” writes.

  • pass/fail rule (code: Operation.success_condition) — the one expression an admin authors on a SmartLink operation to say whether the other institution’s answer counts as a pass. “Answered valid: true” is a pass; anything else is a failed check.

  • answer-reshaping expression (code: Operation.response_transform) — the expression that renames and trims the other institution’s answer into the shape OpenGov stores and shows. The revenue authority answers taxpayer.name; the platform files it as name.

  • answer mode (code: Operation.execution_mode: sync / poll / callback) — how a SmartLink operation gives its answer. It answers at once, in the same call (sync), or later (poll, callback). With poll, the platform asks the register again. With callback, the register sends the answer by itself. A table identity check needs an operation that answers at once. “Find person” answers at once, and “Find death record” answers the next day.

  • callback receiver (code: the SmartLink webhook endpoint) — the address OpenGov gives an institution whose system cannot answer on the spot, so it can post its answer minutes or days later. The registry replies “working on it”, then calls back when the search finishes.

  • key changeover overlap (code: ROTATION_OVERLAP_DAYS) — after an administrator replaces the shared secret an institution signs its messages with, the platform keeps accepting the old key for a fixed grace period, so the institution is not cut off the moment the button is pressed. The date that period ends is the only deadline the institution is ever given. New key today, old key still accepted for thirty days.

  • paused integration (code: Connector.is_active / Operation.is_active) — a connector, or one operation on it, that is switched off: no applicant traffic runs through it — automated checks stop and its sends wait — and it must not be offered as a fresh pick. An administrator can still rehearse it in the rehearsal workspace (a rehearsal is a person at the screen, not applicant traffic), which is also how an imported proposal — which arrives switched off — is confirmed before going live. The connection page carries the Pause/Resume switch and a plain “Paused” chip. Different from a connection pause, which the platform switches on by itself after repeated failures, and from a paused check, which is a rule that can never fire. The revenue authority migrates to a new API; an administrator pauses the old connection, and it stays paused until someone resumes it.

  • connection pause (code: circuit_breaker) — the safety valve that stops the platform hammering an outside system that keeps failing: after ten failures in a row it switches on, holds everything bound to that connector and operation for thirty seconds, then lets exactly one trial request through to see whether the outside system has recovered. The tax registry goes down; rather than pile up thousands of doomed calls, the platform waits and tries one.

  • connection health check (code: health_check_all_connectors) — the platform asking each switched-on connector’s outside system, on its own and on a regular beat, whether it still answers, and recording the answer on the connection: healthy, degraded, unreachable, or “not checked yet” when nobody has asked. It is the automatic counterpart of the Test button an administrator presses by hand, and different from a connection pause, which reacts to real requests failing. Every five minutes the platform pings the revenue authority’s register; when the register stops answering, its connection turns unreachable without anyone pressing Test.

  • parked check (code: the status stalled in the query log) — a check that the platform recorded and did not send. The query log is the record of each call. The platform parks a check from an automatic step or a live lookup when its connection says degraded or unreachable. The automatic step sends its parked check again after the register answers, but nothing sends a parked live lookup again. Not the same as a parked (a request), which is a pull request of the factory. The revenue authority’s register stops at 22:00, so the platform parks the tax-number check of an applicant and sends nothing.

  • sign-in token (SmartLink) (code: AuthCache) — a short-lived pass that an outside register gives to a SmartLink connection at sign-in. Only the sign-in methods token and oauth2 get one. SmartLink keeps the pass and sends it with each check until its time limit ends, so each check does not sign in again. The revenue authority’s gateway gives a pass for one hour, and each check of that hour carries it.

  • trial check (code: smartlink/trial.py) — the first check that a waiting automatic step sends to a degraded register, at most once in each five-minute cycle. The platform picks the step of the oldest parked check of a live filing that only reads a fact (a lookup or verify operation). A trial that passes, or that gets a refused answer such as a 404, ends the wait at once for each parked check. Each other trial that fails waits again as a parked check, and the connection stays degraded, even if the health check gets a good answer. Not the same as the trial request of a connection pause. The tax register answers again at 08:10, the trial check passes, and the 19 other filings go on.

  • refused answer (code: smartlink/refusals.py) — an answer in which the register refuses the data of one filing, for example with a 404. It shows that the register answered, so it neither adds to nor resets the failure count, and it ends the wait of a trial check. After refused answers for 10 different filings in a row with no pass between them, the platform sends one warning. A gateway can answer this way while the register behind it is down. Not the same as a refused filing, which a person turned down. Twelve filings in a row carry a mistyped tax number, the register answers 404 to each, and the connection keeps its word.

  • live filing (code: eapproval.service.steps_that_can_run_again) — a filing whose automatic step the platform can still run again. Its status is one of submitted, in review or waiting for corrections, and its step waits for an outside register. Only a check of a live filing can be a trial check. A rejected, refused or registered filing is not live. Not the same as a live lookup, which is a check that a person starts in the portal. A person rejects Amina’s filing at 09:00, so her parked tax-number check stays parked but is never a trial.

  • captured reply (code: golden_snapshot) — the one real answer from an outside institution that a SmartLink administrator keeps as a rehearsal case’s sample, so every later check is written and re-run against what that institution actually sent. Until one is kept, the case builds against whatever the last rehearsal run happened to return. “Use this run as the sample” turns today’s rehearsal reply into the captured reply.

  • rehearsal workspace (code: the SmartLink Integration Studio, smartlink_integrations) — where a SmartLink administrator tries out one outside institution’s system before any applicant depends on it: bind a practice connection, write checks, run them all, and only then ask to go live. “Business registry lookup” is rehearsed against the registry’s practice system for a week before it is switched on.

  • success check / failure check (code: a test case whose kind is positive / negative) — the two kinds of check in a rehearsal: one proves a good request works, the other proves a bad request is refused. “A valid taxpayer number returns the taxpayer” is a success check; “An unknown taxpayer number is refused” is a failure check.

  • reply check (code: an assertion of a rehearsal case, Assertion.expression) — one condition that the reply of the outside institution must meet. The administrator builds it in the check builder as a field, a condition and a value. The builder saves it as an expression and shows it again as the same sentence. “Registered on is after 31/01/2020” is one reply check of the case “The registry finds the company”.

  • Advanced (check builder) (code: AdvancedJsonataDisclosure, the MonoChip fallback in CheckRow.tsx) — the view of a reply check as raw expression code. It is for a check that the builder cannot show as a sentence, such as two levels of “any of these”. There, the administrator can only delete the check or edit the code. A hand-written check with nested groups opens in Advanced.

  • the institution this integration talks to (code: Integration.counterpart) — the outside body whose system is being rehearsed against, named in plain words on every screen and on the report shared with them. “Lesotho Revenue Authority”.

  • cleared for the live system (code: lifecycle_state sandbox_passing) — what a rehearsal whose every check passed earns: the platform will now let an administrator go live. Written by the platform after a run, never chosen by hand. A fully green rehearsal against the real system counts too (a live-only imported proposal has no practice copy; rehearsing a send there first requires the administrator’s typed test value). A rehearsal with one red check leaves the integration a draft, and the go-live button stays refused.

  • proposed connection (code: Integration.origin imported) — a connection a service import created rather than a person: the outside system as the incumbent’s configuration named it, its actions, and the sends the captured steps imply — all switched off, credentials never copied. The workspace says so in one banner: this is the real system, check the address, nothing is sent yet. “GDB business-names register — proposed from your imported service. 3 automated steps send applicant answers here once you go live.”

  • held send (code: integration_events.state held) — a send whose step already passed while its connection had not gone live: the record is written and kept, never dispatched and never lost; going live releases it to the queue. Read “held” as “not live yet”, never as an error. Ten applications pass the name-reservation step before the GDB connection goes live; the moment it does, the ten reservations go out.

  • going live (code: studio promote) — the confirmation that switches things on: the live connection and exactly the rehearsed actions (an action no passed check exercised stays off), after the administrator answers the checklist in plain words — sign-in, “if the same application is sent twice, does it create two records?” (that answer decides whether a failed send is retried), and the unencrypted-address confirmation where it applies. Going live never switches anything off, and it releases the connection’s held sends. Two actions rehearsed, one not: going live switches on two and says so.

  • trial request (code: the half-open probe) — the single call let through after a connection pause’s wait, whose answer decides whether the pause lifts or is set again. One call answers the only question that matters: is the other side back?

  • readiness check — the standing list of what still stands between a procedure and being published, sorted into what blocks it, what is merely advisable, and what is just worth knowing. “This fee is set in KES but online payment collects in USD” blocks publishing until the two match.

  • fix-it pass (code: FixItPass) — the guided walk through the readiness check. It opens each problem in turn on the panel where the registrar makes the fix. It also says how many problems remain. “Fixed. 3 to go” — and the next step opens on “When it starts”, where its arrows are.

  • pre-send checklist (code: the notification preflight report) — the short list the platform fills in beneath a message an agency has written, saying what still stands between that wording and a test copy the author can send herself: is an e-mail provider connected, does every stand-in for a real value still name a question on the form, does the form ask the applicant’s permission to write to them, and how many people the message would actually reach. It exists so the “send test” button is never a false green light. “Recipient resolves — 3 users” beside a notice addressed to the registrar’s desk.

  • per-locale authoring (code: labels / descriptions — a locale map) — every piece of text an agency writes can be typed once per language, under an “Other languages” panel beside the field; the procedure is defined once and the applicant reads it in their own language. A role named “Immigration Officer” also carries “Agent d’immigration” and “ضابط الهجرة”.

  • authored-text registry (code: REGISTRY, in src/opengov/platform/i18n/authored.py) — the platform’s one list of each phrase that an agency author types and another person reads. A build check fails when a listed phrase has no place for other languages, or when it does not reach the published form. A phrase that is not on the list is invisible to both checks. A field’s help text is on the list, so a build check fails if its Arabic wording stops reaching the published form.

  • the browser’s language list (code: the Accept-Language header) — the ranked list of languages a browser sends with every request; never a single language. de, ar;q=0.9, en;q=0.8 reads “German first, then Arabic, then English”, the numbers being the reader’s own order. A reader whose first language a country does not offer has still said which of the offered ones they want. It is the reader’s own order, and the country language list below only applies once the reader’s is exhausted.

  • country language list (code: deployments.supported_locales, ordered) — the languages a beneficiary country has decided its deployment offers, in preference order; the order is also the fallback order. Somalia sets [so, ar, en]: try Somali, then Arabic, then English.

  • a language’s own name (code: LanguageInfo.endonym, the endonym) — how a language names itself, written in its own script, which is how every picker and tab in the platform names it to a person; never the filing code the platform stores it under. The Somali tab reads “Soomaali”, not “SO”.

  • agency content vs product chrome — the two kinds of words on a screen: what an agency wrote (a question, a fee name, help text) and what the software itself says (buttons, status labels, error banners). They are translated by different machinery and are worth naming apart. “Tax Identification Number” is agency content; “Submit” is product chrome.

  • chrome bundle (code: frontend/<app>/src/i18n/<namespace>.<locale>.json) — the file holding the product’s own words in one language for one part of an app, packed into the app when it is built and never fetched while it runs. A ministry with no outside connection still sees “Submit” in French.

  • status wording code (code: message_code, for example application_status.revoked.v1) — the server’s name and version for the standard words of one status. The portal shows its own translated words for that status only when it knows the name. Otherwise it shows the server’s words, which are English. A change to the standard words gets a new version and a translation review. The portal knows application_status.rejected.v1, so a French reader sees « Demande rejetée ».

  • source language (code: SOURCE_LOCALE) — the language the software’s own words were first written in, English; the last fallback when a reader’s language has no chrome bundle, and a statement of fact rather than a preference. A Somali page whose buttons exist only in English shows English buttons — the decision is recorded (is_substitute), but no surface tells the reader so yet; a substitute-chrome notice is a later, undecided task.

  • language decision (code: LocaleDecision, from the negotiator) — the answer to “which language does this reader get?”, worked out once from the country’s list, the reader’s preference, and which languages actually have text — and returned as a decision rather than a bare string, so the page also knows whether it had to substitute. A reader asking for Arabic on a Somali-only form gets chosen: so, is_substitute: true.

  • substitute language — text shown in a language the reader did not ask for, because their language was never written; always disclosed, never passed off as the official wording. “This form is not yet available in Arabic. The questions are shown in Somali.”

  • the applicant’s language (code: Application.applicant_locale) — the language the applicant was reading in, written down on the application when they submit, so everything they keep afterwards — the certificate, the emails — speaks it too. An applicant who applied in Arabic receives their certificate in Arabic.

  • wording-only republish — correcting a translation after publish mints a new version limited to wording changes, and offers in-flight applications an explicit move to it; a published version is never edited in place, so the rules an applicant is judged against never change underneath them. Fixing an Arabic typo cannot alter a fee threshold.

  • text direction (code: dir) — whether a language reads left-to-right or right-to-left; derived from the language, never configured. Arabic reads right-to-left, so the whole layout mirrors — not just the words.

  • world model — the deployment’s shared, cross-procedure facts (a company’s incorporation date, a person’s national ID) defined once and reused by any requirement that needs them, instead of every procedure re-describing the same fact. “Incorporated on” is one world-model fact; every procedure that asks for it points at the same definition.

  • grandfathered binding — a world-model link a procedure already published before a new publish-time check existed; the check lets it keep publishing with a warning instead of blocking it, so work already live never breaks retroactively. A binding published last month under the old rules still republishes today — with a warning, not a refusal.

  • a detail one step further out — a column in a repeating table can name a detail that belongs to something the row’s subject holds, rather than to the subject itself. A director’s date of birth is on their identity record, not on the director; their ID card is a document they hold. One step only, and the table must also ask for whatever identifies that record.

  • registry mode (code: registry_mode) — whether SmartRules creates and manages this procedure’s own submissions database (“New registry”), or the agency’s existing database is used instead, with each requirement mapped to one of its columns (“Use existing system”). Per-procedure, and left unset means the choice has not been made yet — distinct from the platform-wide company register below (D26), which every approved application feeds regardless of this choice. An agency picks “New registry” for a brand-new licence, “Use existing system” for a procedure with a decades-old permits database already in place.

  • record contract (code: registry_column) — the part of a published procedure that tells an outside system what database column to build for one question: its name, what kind of value it holds, how long it may be, and whether it may be left empty. A country standing up its own register builds its tables from this, so it must describe what the platform will really send. “Company name” publishes as a text column of at most 255 characters that may never be empty.

  • what this publish changes (code: build_publish_diff, the publish confirmation’s change list) — the list the editor shows before a publish, one line per edited item, naming each setting that changed in the words of the panel it was edited in. “Company type — Dropdown options, Acceptance rules.”

  • proof requirements (code: formal_criteria) — which of the six proof modes a question accepts, in which order, and how each is obtained: the document’s name, who issues it, the live check that fetches it. “Tax number: a live check with the revenue authority first, a stamped certificate if the check is down.”

  • other question settings — the publish confirmation’s word for a change to a question setting the platform has not yet given a name of its own; it still tells the author that something on that question changed. Expected only for a setting that shipped without a test.

Registry (the company register — D26)

  • typed-entity registry — the platform’s own company register: real database tables (one row per company, one per director) written the instant an application is approved, so statistics are ordinary counting — never a search through form answers. “Companies registered per day” is one simple query. (Ratified and built: D26; pending concept-owner review.)
  • materialize — copy the approved application’s answers into the register’s typed tables, in the same breath as the approval itself. Approval at 14:03 → the company row exists at 14:03.
  • witnessed event fact — something the platform saw happen and can vouch for (this company was approved here, on this date); opposite of current state owned by an outside system (whether it is still active today), which the register deliberately does not copy. A company approved via a legacy-registry connection is counted, but its “active/struck-off” status stays blank here — the agency’s own register remains official.
  • public directory — anyone can look up a company by registration number or name without signing in; only the columns the type catalog marks public come back, so a private answer (a tax ID, a director’s national ID) can never appear on this route. Anyone can confirm “Acme Ltd” is registered; nobody outside the agency sees its tax ID.
  • reconciliation check — a nightly comparison between what applications say was registered and what the register’s tables actually hold; a difference is reported for a human to look at, never silently patched. A missed register hook shows up in tomorrow’s alert, not a quietly corrected row.
  • overflow field (code: Tier-2) — a country-specific answer with no standard home; it is saved with the record and shown in exports, but does not appear in dashboards until promoted. Lesotho’s “number of branches”. (D26.)
  • promotion — the governed step that turns an overflow field into a real, chartable register column: a reviewed change, with the accumulated values cleaned on the way in and failures reported. Six months of “branches” answers become a dashboard dimension. (D26.)
  • type catalog — the reviewed, versioned file that declares which entities and columns the register has; changing it is how the register’s shape evolves — a person edits the catalog, the system generates the database change for review. Never a live edit to a running database. (D26.)
  • private answer (code: pii: private) — a register column marked as personal data about a real person, so it never leaves through the public directory. A director’s national ID or home address, as opposed to the company’s name. (D26.)
  • encrypted at rest — the value is stored scrambled in the database itself, readable only by the application that holds the key; a stolen backup or a direct database read shows nothing usable. A director’s national ID is unreadable in a database dump. (Decided for register private answers, not yet built: D30.)
  • current board — what the register holds right now for one company’s repeating group (its directors, its shareholders), each row with its row id. Shown only to an officer whose body handles the procedure, or to the filer who created the company — and to nobody else. “Change of director” opens with Amina Yusuf and Omar Farah already listed. (Executes the D17 registry-prefill slice over D26; spec 2026-08-16-register-amendment-safety.)
  • started from the register (code: seeded) — a filing whose table was loaded from the current board before the filer touched it; only the rows it was shown can it remove, and a filing that never loaded the board can add and update people but never remove anyone on its own — unless an officer marks departures on the approval screen (see removal notice). A filing that names only Yasmin, without loading the board, adds Yasmin — Amina and Omar stay. (Spec 2026-08-16-register-amendment-safety.)
  • removal notice — the sentence on the officer’s screen naming everyone a filing removes from the register, shown before approval and only to officers, never to the filing’s applicant. “This filing removes 2 directors from the register: Omar Farah (SO-ID-1002), Khadija Ali (SO-ID-1003). They stay on the register unless you approve.” (Spec 2026-08-16-register-amendment-safety.)
  • change filing (code: amendment) — a filing against a company already on the register, identified by the registration number the filer types; it updates the company’s row and, if it started from the register, may remove rows it was shown. An annual return, or a change of director, against SO-REG-001. (D26; spec 2026-08-16-register-amendment-safety.)

Studio Guide (question-at-a-time authoring — S4)

  • Guide — the Studio screen that asks about one thing’s fields one question at a time, instead of a diagram or a spreadsheet; every answer lands in the same document, so the Map, the Table, and Preview change with it. “What is this detail called, in plain words?”
  • walkthrough — going through one thing’s Guide questions in order, from its name to how it reads back, with no skipping ahead. “Walking through · Company” — Step 2 of 4.
  • field sentence — the Guide’s read-back line for one detail, built from the same answers already given: its name, its kind, whether it identifies the thing, and who may see it. “The company’s Registration number is an Official number — required — Everyone may see it.”

Applicant portal (drafts, and answers already on record)

World model (Registers & Datasets, note 9)

  • property graph — a way of describing data as things plus named connections between them, where both the things and the connections carry their own details. It is a shape, not a product: the world model is a property graph stored in ordinary PostgreSQL tables. “Company” and “Person” are things; “holds shares in” is a connection carrying the share count.

  • graph database — a database product built to store that shape natively and follow long chains of connections quickly (Neo4j and similar). Considered and refused for OpenGov on 2026-08-01 — see docs/specs/2026-08-01-graph-databases-and-the-world-model.md. Refused because it would be a second database holding a copy of truth the first one already holds.

  • triple store — a database that holds every fact as a subject-predicate-object statement, the storage form used by the Resource Description Framework (RDF). A schema-optional store, so note 9’s “no EAV, ever” verdict rules it out. “company-42 · registered-in · Kenya” as one stored row.

  • world model — the deployment’s shared map of real-world things (people, companies, permits) and how they connect, resolved from the country’s entity/relationship files; SmartRules selects from it when authoring a requirement, never authors it. “Company”, “Person”, “Permit issuance” are entities and relationships in the world model.

  • Registers Studio (code: frontend/studio) — the screens where the people who keep the world model change it and review the proposals for it. A registrar who misses a fact proposes it, and the proposal waits in the Studio queue. A registrar proposes “premises floor area” for “Company”.

  • privacy level (code: pii_level) — an optional note on a field of the world model. It says how sensitive the personal data is, for policy reports. It never decides who can read the field: the public/private mark does that. “National ID number” is private, with the privacy level high.

  • promotion map (code: promoted_from) — a list on a field of the world model. It names the old procedure answers that the nightly backfill copies into the field. “Director ID number” in “Register a company” fills the person’s “National ID number”.

  • past-date read (code: as_of) — the question “what did the register show on this date?”. The platform answers it from the change history, where each change to a register record leaves a copy of the record. A bank asks whether Jane Doe was a director of Acme on 1 April.

  • staged import (code: wm_catalog_import_staging) — a long list of rows for one official list, loaded in parts and then proposed once. The platform checks all the rows and writes a short report, and a second steward approves that report. 2,000 legal forms, loaded in two parts, one approval.

  • register — a relationship on the world model that says one accountable agency vouches for a slice of it, plus the details that exist only because of that bond (a registration number, a status). The agency does not own the things it registers; it owns the bond with them. The Companies Register says the companies registrar stands behind every company on the map.

  • registrar — the one accountable agency a register names; a real agency from the world map, never a free-typed name, so “accountable” means something. A typo’d agency key would make the bond fictional — nobody really stands behind it.

  • dataset (code: datasets/<key>.yaml) — a named, public selection of fields from one table of the world model, which anybody may read. Only fields marked public may enter it. The “Company directory” dataset publishes each company’s name, registration number and county.

  • quarantine (register write) (code: quarantined) — what the register write does with an answer that does not fit its column. It stores an empty value, records the reason, and completes the registration. One bad answer never stops the whole registration. Not the factory’s quarantine (fix-forward), which takes an eval out of rotation. The company joins the register, and “not an ISO date” shows beside its date of incorporation. (D26 spec 2026-07-19, null-quarantine policy.)

  • multi-agency register (code: registrar: "*") — a register that any government body on the org chart may keep, so it names no single registrar. Every ministry records the permits it issues in one shared permits register.

  • seen in the agency’s own system (code: source = connector) — a register record that one of our procedures saw during a filing. The procedure has the setting registry_mode: connector (connector mode), and the agency’s own system stays the official record. OpenGov keeps only the facts that it saw. It keeps no status, because the agency’s system owns that state (D26). The ministry’s system suspends a licence, and no OpenGov page can still call it registered.

  • AI rule drafter (code: AiRuleDrafterModal, ruling C1) — the optional editor tool that proposes draft questions from a law or an old paper form. Each proposal holds a question, its proof modes and its acceptable-value rules. The drafter sends the AI model a list of world-model fields. A field that a register keeps carries a hint that names the registrar by its key. A registrar pastes the old company form and gets a draft question “Company registration number”. The hint lets the AI model propose a live check at the registrar of companies as the proof.

  • government system — a computer system of a government body, outside this platform, that sends records to a register through an API. It is not a person. It gets a token from the identity server, and it never signs in. It has no outside identity and no sign-in level. The company system of the Ministry of Trade. (Proposed, D68, spec 2026-10-16-register-writes-by-government-systems.)

  • system credential (code proposal: an identity-server client with a key pair) — the proof of which government system calls. It belongs to the system and never to a person. The ministry keeps the private key. The platform keeps only the public key. (Proposed, D68.)

  • systems realm (code proposal: a third realm) — the login settings that hold only government systems. It has no users, no outside identities and no browser sign-in. TradeReg is one client in it. (Proposed, D68.)

  • system authorization (code proposal: wm_system_authorizations) — the record that lets one government system write to one register. It has an end date and a daily limit. A person grants it, and a person can end it. Not a D70 link, which is for a person. TradeReg may create and change records in the Company register until 16 October 2027. (Proposed, D68.)

  • sent by a government system (code proposal: source = system) — the mark on a register record that a government system wrote last. The record page names the system. Not seen in the agency’s own system (source = connector), which one of our procedures saw during a filing. The directory shows 5,000 companies from TradeReg with this mark. (Proposed, D68.)

  • write receipt (code proposal: the wm_system_write_* tables) — the record of one batch from a government system. It says which system, when, which records, and the values before and after. One audit entry worldmodel.system_write chains it. Not a decision receipt, which goes to an applicant. Batch tradereg-2026-10-20-002: 4,870 created, 130 changed. (Proposed, D68.)

  • withdraw a batch (code proposal: a batch state withdrawn) — a person puts each record of one batch back to its earlier state. Exists only if the owner allows it (D68 spec, Q6). Fatima withdraws the batch with 300 wrong company names. (Proposed, D68.)

  • relationship (bond) — one connection the world model tracks between two entities, e.g. a person holding a permit; a relationship can carry its own details in addition to the two things it connects. The “Permit issuance” relationship links one person to one permit.

  • end of a connection (code: endpoint, the from: / to: block) — one of the two sides of a connection: the kind of thing it starts from, and the kind of thing it points at. Each end names one kind and says whether it allows one or many. In “Permit issuance”, the from end is a person and the to end is a permit.

  • shared starter vocabulary (code: the seed) — the ready-made kinds of thing and connections that ship with the platform, so a country describes what makes it different instead of re-describing a person and a company from nothing. A country borrows from it and never edits it. “Person”, “Company”, “Address” arrive already defined; Kenya adds “Business permit”.

  • adopt (code: adopts: seed:<key>) — a country’s explicit, visible decision to bring one kind of thing from the shared starter vocabulary into its own model, keeping the fields it wants and adding its own; adopting a kind creates a register table for it. Never a side effect of anything else a country does — drawing a connection to a starter-vocabulary kind does not adopt it, so an unadopted kind stays exactly what it is: read-only vocabulary with no table of its own. Kenya writes adopts: seed:company to bring the shared “Company” kind into its own model; a connection that merely points at “Company” without that line is refused, in words that say what to do instead. (#1647.)

  • general kind (code: abstract: true) — a heading that groups several specific kinds so they can share the same details; it keeps no records of its own and nothing can be stored against it. “Legal entity” is the heading over “Person” and “Company” — a company is filed, a “legal entity” never is.

  • relationship attribute — a detail that belongs to the connection itself, not to either side of it — e.g. who issued a permit, distinct from a detail of the person or the permit. “Issuing authority” is a detail of the permit bond, not of the person or the permit.

  • natural key — the field (or fields) that names a real-world thing well enough to say “this record and that record are the same thing” — a national ID for a person, a registration number for a company. Two filings carrying national ID 12345678 update ONE person, never two.

  • surrogate (identity) — a stand-in identifier the platform mints when the real one was never captured, derived the same way every time so re-runs converge on the same stand-in; it says “someone”, never “who”. A 2009 share record with no holder ID gets a surrogate person — honest about what the old register never knew.

  • encrypted envelope — storing a private value locked (encrypted), so reading the database, a backup, or a disk shows only the locked form; the platform unlocks it only for readers entitled to see it. A director’s date of birth in a stolen backup is unreadable.

  • blind index — a separate scrambled column computed from a private value so the database can MATCH on it (“same national ID?”) without being able to READ it; it is computed the same way every time, which is exactly what makes matching work. The register finds the person with ID 12345678 without any table storing 12345678 in the clear.

  • reference-data catalog — a steward-maintained list of official values (agencies, currencies, country codes) that a world-model field or relationship attribute can be bound to, so the author picks from the governed list instead of typing free text. “Issuing authority” bound to the “agency” catalog offers only real government agencies. (RD7.)

  • steward — the institution or role accountable for keeping a reference-data catalog’s entries correct and current. Naming one is required, not optional: a list nobody owns is a list nobody may change, so an unowned catalog narrows to the governance roles until someone is named. The Ministry of Interior stewards the list of registered government agencies.

  • catalog badge — the label the field picker shows next to a catalog-bound field or relationship attribute (“catalog: ”) so the author sees it is steward-governed vocabulary, not a free-text answer. “Issuing authority — catalog: issuing agency” tells the author not to type a name by hand. (RD7.)

  • shareholding — one holder owning shares of a company, recorded as a bond rather than a name in a box, so ownership can be followed from either end. The holder may be a person or another company. Follow “Alpha Holdings owns 60% of Beta Ltd” onward to whoever owns Alpha Holdings.

  • beneficial owner — the real person who ultimately owns or controls a company, after every company in between has been followed through. Anti-money- laundering rules exist to answer exactly this; a company can never be the answer. Beta Ltd is owned by Alpha Holdings, but the beneficial owner is the person who controls Alpha Holdings.

  • basis of control — how a person’s ultimate control over a company arises, in the order the rules test it: shares, votes, control by other means, or — only when no owner can be identified at all — the senior managing official. Someone with 10% of the shares but a veto over every decision is a beneficial owner through control by other means.

  • concept — a unit of meaning in the world model: a company, or the number a registrar assigns a company. It is what stays the same when the words for it change. Not to be confused with the concept set or the concept owner, which are the vision documents and the person who ratifies them. “A company” is a concept; the file company.yaml describes it.

  • term — a set of words used for a concept. One concept can have many terms: a machine-facing key, a human-facing label, and one label per language. A country editing its copy of the vocabulary changes terms, never concepts. “Registration number”, “Registration no.” and “Numéro d’immatriculation” are three terms for one concept.

  • concept address (code: concept_address) — a web address written once, by the platform, next to a concept in the starter vocabulary it ships; it never changes, and it travels into a country’s copy when the country adopts the entity, so two countries that have since edited their copies apart can still be shown to have started from one meaning. A country never types one and never sees one. Kenya’s “Company registration number” and Lesotho’s “Registration no.” are two terms for one concept, and both carry https://sharedvocabulary.org/company/registration_number. It names the concept, not the term — an address that named a term would have to change whenever the wording did, which is the opposite of what it promises. Deliberately not called a “permanent name” — that phrase already belongs to the row id and the unit code above. The code key is concept_address and not a bare concept, because a concept is a company or a registration number, and because the editor’s selection pickers already use “concept” in that sense (/world-concepts, /registry-concepts). (D40.)

  • a field’s meaning (code: Field.meaning) — one sentence a steward writes beside a field on the country’s map, saying what it is for in the words a registrar would use at a counter. Free text the platform never reads and never acts on: it is written for the next person to open the map, not for the machine. Distinct from the concept address above, which is the platform’s own name for what the field means, and from the field’s short explanation, which describes the field rather than its purpose. “The day the company legally came into existence — the date on the certificate, not the day the file arrived.”

  • shared definition (code: shared_definition) — what a country did with the platform’s definition of a field it took from the shared starter vocabulary: followed — it did not change what kind of value the field holds, so a reader may rely on the shared type and allowed values; changed — it changed the field’s shape, so a reader must not; or null — no shared definition stands behind this field at all. Published beside the concept address on the public dataset API and answering a different question: the address says what the field means, this says what the country did with it. This country replaced the shared list of legal forms with free text: legal_form keeps its address and reads changed; its own county reads null.

    The wording is deliberately neutral, and that is a decision, not an accident. A country may change a field to fit a sensible local practice or to match a poor one, and the platform cannot tell which — so it reports what happened and grades nothing (concept owner, 2026-08-02). adapted was rejected for quietly approving, custom for quietly disapproving, and kept for claiming more than is true: a country may relabel or translate a field it followed, because local wording is exactly what a country is free to change. Also deliberately not origin alone, which would sit next to the existing value_origin above (how an answer reached the platform) and be read as the same thing. (D40.)

  • what a dataset is about (code: about) — the kind of thing a public dataset’s rows are, given as the concept address of the entity behind the table, plus how many of that shared definition’s fields this country’s copy uses and how many it leaves out. Matching columns only means something once a reader knows the rows are the same kind of thing. This country’s person descends from the shared person and keeps not one of its fields — every column reads null, yet both countries’ people are the same kind of thing, which only the entity’s own address can say. The counts describe the take-up, not its quality: leaving fields out is the intended way to adopt. (D40.)

Government bodies and who acts for them (institutions)

  • redundancy report (code: /redundancy in the Registers Studio) — the list of facts that many procedures ask for again. It also lists rules that disagree about one fact. The right “View model usage” opens it. Three agencies ask a company for its tax number, and the report shows that question once, with the three agencies.
  • org chart — the country’s list of its own government bodies and which sits inside which, kept as governed data so everything else can point at it instead of each part keeping its own spelling. Ministry of Trade → Business Registration Department → One-Stop Centre, each a row naming its parent.
  • four-eyes — a change one person proposes and a different person approves, so no single account can alter the record alone. A steward proposes retiring a ministry; a second steward approves before anything moves.
  • unit code — the short, permanent name a government body is known by across the whole system; it never encodes where the body sits, so moving a department between ministries changes the parent and nothing else. obfc stays obfc after the One-Stop Centre moves to a new ministry.
  • seat — one person’s place in one government body. A person may hold several, and each carries its own work; nothing is inherited from the body above. A registrar holds a seat in the Business Registration Department and another in the Appeals Committee, and sees both queues.
  • staff list (code: platform_institution_members) — the roster of people who act for one government body; being on it is what lets that body’s work be assigned to you, and it is not one of the rights the People page grants. It is kept over an administered interface with no screen of its own, so the only place a person meets it in the editor is the Rights log, which records every addition and removal. “Amara removed Thabo from the Companies Registry’s staff list.”
  • alias catalog — the governed list that says which old, freely-typed body name means which body on the org chart, decided by a person and recorded with their name. Old published procedures are never edited; the translation happens when they are read. “OBFC” and “One-Stop Business Facilitation Centre” both resolve to the same body.
  • explicitly unresolved — a decision, recorded like any other: the country looked at an old body name and decided it matches no body on the org chart, with the reason written down. Different from “not yet looked at” — one is a reviewed answer, the other is work still to do. “Registrar of companies” has no modern equivalent, so the operator sets it aside with a note, and the report counts it as decided.
  • migration report — the one screen that shows how much of the move to the org chart is left: how long the grace period still runs, which old body names are still waiting for a decision, and on which procedures. “87% of old names are decided; three remain, all on draft procedures.”
  • identity carrier — where the system looks to answer “which body does this officer act for”. Answering from the database on every request means a transfer or a dismissal takes effect on that person’s very next action, which no login-token copy can promise. An officer moved on Monday morning loses the old queue on their next click, not an hour later.
  • work queue — one officer’s own desk list: the filings waiting for a review step their body holds, and only those. Narrower on purpose than what the officer may open — they can read a whole filing to do their part of it, while the desk list stays the work that is actually theirs. A revenue officer’s queue holds the revenue step of twelve filings, not all thirty-six steps those filings carry. Distinct from the background queue below, which is machine work.
  • scoped visibility — the rule that an officer only sees the filings, work-queue rows, or kept-list proposals that belong to a government body they are seated at. A trade-ministry officer does not see a health-ministry filing; a body with nobody seated at it is visible only to an administrator.
  • board decision (code: commission decision) — the one formal answer a board or committee gives on a filing, worked out from the votes its members cast rather than typed in by anyone: grant, grant with conditions, refuse, or defer. Five members of a licensing board vote; the platform reads the votes and the file records “grant with conditions”.
  • quorum — the smallest number of members who must vote for a board’s sitting to count at all; below it the platform records no decision and the filing simply waits for the next sitting. A board of seven with a quorum of five: four votes decide nothing.
  • quorum of a review step — the same number, used for a different count: the members who accepted each answer of the step. A member who refuses counts for the quorum of a sitting. That member does not count for the step (divergence entry D67). A board of five with a quorum of three: two members accept and one refuses. The sitting counts, and the step stays open.
  • simple majority — more than half of the votes actually cast, which is what a board needs for its answer to be the board’s decision. An answer that merely leads the count is not one, and a board that has not reached it defers. Three grant, two refuse, two defer is no majority: the board defers.
  • acting institution — the government body under whose authority an officer records a decision or writes to a register; it is read from the staff list on every request and recorded on the audit entry. When Alice corrects the companies register, the ledger names both Alice and the registrar of companies as the body she acted under.

Applicant portal (drafts)

  • draft — an applicant’s half-finished form, saved so they can continue later. 30 answers filled, nothing submitted yet.
  • draft filing (code: an eapproval_applications row with status draft) — a filing that eApproval keeps but that nobody has sent yet. The portal makes one when the applicant presses Submit, and an applicant’s assistant makes one when it prepares a filing. It is not the vault draft, which keeps only the answers. An assistant prepares an import-licence filing with a company certificate, and the filing waits for the applicant’s approval.
  • draft purge (code: purge_stale_draft_applications, setting eapproval_stale_draft_ttl_days) — the daily job that deletes an unchanged draft filing and its documents. Each deployment sets the retention days (D33). A draft filing that nobody changed since March is gone in September.
  • embed form (code: EmbedProcedureForm) — the application form of the portal that an agency puts on its own website, inside a frame. The applicant fills it in and sends it on that website. The Companies Registry shows “Register a Company” on its website, and Thabo applies from that page. (#4870.)
  • deferred document (code: collection_stage: before_step) — a file that the agency asks for after the first send, before a named review step. The form does not ask for it at the first send. The review step stays locked until the applicant uploads the file. The agency asks for “Signed company particulars” before the step “Review Company”. (Spec 2026-10-30.)
  • decision model — a model that writes no text. It gives a probability for a yes or no question, or picks one option from a list. So it cannot invent a value. Asked “which of these documents is this?”, it picks “certificate of incorporation”.
  • document note — a line that the portal shows the applicant before sending, when a decision model doubts an uploaded document. It never blocks, it is not a decision, and no officer sees it. “This may not be a certificate of incorporation.”
  • look — a test of the document check on filings that the agency already accepted. It covers one procedure in one language, before applicants see any note. An officer judges each note. Twenty accepted filings give two wrong notes: the look passes, and the procedure shows notes.
  • measured model — a model name that the project tested on real documents before any applicant sees a note from it. Only a measured name gives a check. clef is a measured name. clef:latest is not, so it gives no check.
  • model copy — one installed package of a model. Its digest is a code that names that exact copy of the model, and a new copy under the same name has a new digest. The server installs a new copy of clef. The health report then asks the operator to repeat the look.
  • the lock of the picture process — a limit that the picture process puts on itself before it reads a document. The picture process draws the first page. After the lock, it can open no file, make no network connection and start no program. A host that cannot give the lock gets no picture, and the document reads “not checked”. A new base image removes a system call that the lock needs. The health report then shows the row picture_lock as down.
  • fingerprint of the document texts — a code of 16 characters for the document labels and descriptions of a procedure. It covers one language. A change of a label or a description changes it. A change of a fee does not. The agency renames “PIN certificate”. The fingerprint changes, and the notes stop until a new look.
  • document check list (code: OPENGOV_DOCUMENT_CHECK_LIST) — the operator setting that names each procedure and language that shows notes, with the fingerprint of its look. An empty list shows no note anywhere. One entry: 8f2c…7a11:en:3f9c0a17b2d4e851.
  • right note / wrong note — the officer’s verdict on one note of a look. A note is right when the document is a different one, or when its picture cannot be read. It is wrong on a cover page, or on the right document. Two wrong notes in 20 filings: the look passes.
  • create-dedup key (code: idempotency_key) — a token the portal mints once per draft and sends with every Submit, so that a Submit resent after a dropped connection is recognised as the same attempt rather than filed twice. Carrying over answers and starting over each mint a fresh one; staying on the same published version keeps the one already in hand. She taps Submit again on a dead line and gets her one filing back, not a second. (D19.)
  • start over (portal button: “Start fresh”) — discarding a draft and answering the form from scratch. It is the only door left open when the agency has republished the form since the draft was saved, because resuming answers written against the superseded version is unsafe. The Ministry updated the import licence; “Resume” is closed off and “Start fresh” is all she can press. (D19.)
  • carry-over (code: carryOver) — the move of an applicant’s answers from one published version of a form to a newer version. It runs only when the applicant chooses it. An answer goes over when its question keeps its id and its type, under the new name of the question. The portal names each answer that does not go over before she moves. Version 5 renames “Fax” to “Fax number”, and her answer goes over. (D19.)
  • vault — the applicant’s personal encrypted storage on the government server; only the applicant can ever read it, never reviewing officers. (Home for drafts: D19.)
  • device copy — the applicant’s draft as the portal keeps it in the browser’s storage on one device. A lost connection then loses no answer. The vault stays the home of the draft. The portal removes the copy at sign-out, when another account signs in, at submission, at “Start fresh”, and after 30 days. Her telephone loses the network on the bus. The portal keeps her eighteen answers on the telephone and sends them when the network returns. (D71.)
  • session check (code: GET /api/v1/platform/session) — the question that the portal asks the server after a sign-in: which applicant does this sign-in belong to? The answer gives the applicant’s account identifier, and the portal shows the signed-in pages only after it. With no connection, the question gets no answer. Amina signs in at 09:00. The server answers the session check, and her saved forms appear. (D71.)
  • single-window service (also joint service, portal label “Single-window joint service”) — one form for the procedures of several agencies. The applicant fills it one time. Each agency still makes its own registration. “Start a company” sends one form to the company registry, the tax office and the social security fund. (D78.)
  • change (of a draft) (route: PATCH /api/v1/vault/drafts/{procedure_id}) — a save of a draft that sends only its change. The change is a short list of edits since the last save. The vault applies the edits to the stored draft and keeps the last change of each answer. A change that does not fit the stored draft gives one read and at most one whole save. Thabo types his telephone number. The portal sends one edit of about 330 bytes, not the whole form. (2026-10-12, docs/specs/2026-10-12-vault-draft-changes.md.)
  • carry over — when a form is updated, moving the applicant’s saved answers into the new form where the fields are unchanged — always the applicant’s explicit choice, shown field by field. 29 of 30 answers survive; the changed field is asked again. (D19.)
  • card — the vault’s record of one person or business the applicant keeps details about: themselves, a child in their care, or a business they file for. Each card is a separate drawer inside the applicant’s own vault. An accountant filing for four companies holds four cards. (D32.)
  • answers already on record — answers an approved filing recorded with the state, kept in the applicant’s vault so the next form does not ask for them again. Kept at approval, never at submit, so what is stored is what the state accepted. The company name and registration number the registrar approved in March. (D32.)
  • offer — one answer already on record, shown beside the question it answers, saying when and in which filing it was recorded, and removable in one tap. It becomes part of the form only when the applicant accepts it. “Recorded March 2026, in Business Registration.” (D32.)
  • withdraw consent — an applicant taking back their permission for the vault to keep and offer back what it holds on a card. The record of storing it stays — nothing is deleted — but a later form is never offered it again. Alice withdraws consent for her company card; the next filing for it asks every question fresh, even though the old answers are still on the audit log.
  • start keeping my answers again (code: re-grant consent) — an applicant deliberately gives back, for one card, the permission they withdrew. From then on the wallet keeps the answers of later filings and offers them again. It is a separate action the applicant takes on purpose, never the per-filing “keep my answers” tick. The consent ledger records it as its own entry. Alice withdrew consent for her company card in April. In June she asks the wallet to start keeping answers for it again.
  • the keep-my-answers choice — whether an applicant lets the vault keep the answers one filing recorded, asked once per filing. Answering it again does not erase the earlier answer: both stay on record, and the most recent one is the one that counts. She ticks “keep” on Monday, changes her mind on Tuesday — both replies are kept; Tuesday’s is the one the vault acts on.
  • wallet signing key (code: key binding, KB-JWT) — the secret used to prove that the person showing a record is the person it belongs to, not someone with a copy. Without it, a copied certificate works as well as the original.
  • key kept for you (code: custodial) — the office holds the wallet’s signing key on the applicant’s behalf. Works on any phone; every record shown says the office was the one signing.
  • key on your device (code: device_bound) — the signing key can only be used on a phone or laptop the applicant unlocks. Not built yet.
  • passkey — the phone or laptop’s own unlock — fingerprint, face, or PIN — used instead of a password; the secret never leaves the device.
  • assurance level (code: loa) — how confident a receiving agency may be that the person showing a record is the person it belongs to. The applicant sees two names, Basic (code: low) and Verified (code: substantial). Verified is the top: there is no level above it here (D34, 2026-07-29). Write Basic and Verified on any screen — the code names are for code. A record may also carry no level, which is not the same as Basic — see below.
  • no assurance level (code: loa is null) — the record makes no claim about how strongly it can be tied to its holder. Distinct from Basic, which is a claim. A record with no level is not more trustworthy than one marked Basic, and any surface showing it must not imply otherwise — today the record card shows no badge at all in this case, which reads as cleaner rather than as unstated.
  • outside identity (code: identity provider, brokered identity) — a way to sign in that another organization runs, such as a national electronic identity card. The applicant links it to the applicant account and can then sign in with it instead of a password. Amina links her national identity card. Next week she signs in with the card, and her account and her forms are the same. (D70.)
  • provider — the organization that runs an outside identity. It is the organization, never its server or its settings in the identity server. The national identity agency is the provider of the national identity card. (D70.)
  • link (of an outside identity) (code: federated identity) — the record in the identity server that joins one outside identity to one applicant account. The applicant makes it while signed in, and can remove it. One outside identity has at most one link. Amina’s card is linked to amina@example.org. (D70.)
  • unlink — the applicant removes one link. The account, its applications and its vault stay the same. Amina unlinks the card and still signs in with her password. (D70.)
  • first provider sign-in (code: first broker login flow) — what the identity server does when a sign-in through an outside identity matches no link. In OpenGov it refuses and makes no account. Bongani signs in with a card that nobody linked. He sees “This card is not linked to an account”. (D70.)
  • Ways to sign in (portal page) — the portal page where an applicant links an outside identity. From it, the applicant opens the account page to see or remove a link. The portal shows it only when the country offers an outside identity. (D70.)
  • sign-in level (code: acr) — how strongly one sign-in proved who the person is. It belongs to the sign-in, not to the account and not to a record. A password sign-in has a low level. A card sign-in has the level that the card’s provider states. It is not the assurance level of a record. (D70.)
  • step-up — the platform asks a person who is already signed in to sign in again with a stronger way, before one sensitive action. Before the vault erases a signed record, it asks for the second factor again.
  • issuer signature — the office’s own signature on a record, proving the record is genuine. Different from the wallet signing key, which proves who is showing it.
  • erase my data (portal button: “Erase my data”) — the applicant removes everything that the vault holds about them, at once. The applications they sent and the records in a register stay. Mpho erases. Her two unfinished forms, her company card and its eleven answers are gone. (D74.)
  • erase time — the time of an applicant’s newest erase. The vault refuses each thing that is older. Mpho erased on 10 October. The vault refuses a draft copy of 8 October from her old phone. (D74.)
  • remove a card — the applicant removes one card that is not their own, with the answers and the unfinished forms of that card. Mpho removes the card of the company that she sold. (D74.)
  • download my data (portal button: “Download my data”) — the applicant receives one file with everything that the vault holds about them. The file lists her cards, her answers and her unfinished forms. (D74.)
  • sealed value — a stored value that an encryption key protects. Each sealed value carries its key version, the number of the key that sealed it. The name on a card is a sealed value of key version 1. (D74.)
  • vault encryption key (code: KEK, OPENGOV_VAULT_KEK_V<n>) — the key that seals each stored value of the vault. An operator changes it with the key-change runbook. Each old key stays necessary while a value or a backup needs it. (D74.)
  • key store (code: KMS, HSM) — a separate service or hardware device that keeps a key and signs with it. The application never reads the key. Today the vault encryption key is a server setting, and a person who reads the settings reads the key. With a key store, the server sends the data and receives only the signature. (GovStack roadmap item R13. Not built.)
  • restore with a lost list — a restore of a backup that could not read which applicants erased their data after that backup. The vault alone closes until an operator acknowledges it. The disk failed. The operator restores the bundle of Monday and cannot read the erasures of Tuesday. (D74.)
  • repeat an erasure — after a restore of a backup, the application erases again what an applicant erased after that backup. It also removes again each card that the applicant removed. Mpho erased on Tuesday. The operator restores the bundle of Monday. At its next start, the application erases her data again. (D74.)
  • the carry — the list of erasures that the restore script writes into the new database, before it loads the backup. The vault is closed while a carry exists. The script copies the erasure of Mpho into the carry. The application reads it at its next start. (D74.)

Telling the applicant (notices and whether they arrived)

  • correction notice — the message sent to the applicant when an officer objects, listing the fields to fix. “Your tax ID does not match the registry — please correct it.”
  • correction sheet (code: build_correction_sheet) — the list the portal shows the applicant after an objection: each answer an officer objected to, with the officer’s reason. The applicant corrects those answers and sends the filing back. “Company name — the name does not match the certificate.”
  • correction round (code: max_correction_depth, the editor box “Correction rounds”) — one trip of a filing back to the applicant. An officer objects to one or more answers. The applicant fixes them and sends the filing again. The registrar sets the most rounds that a filing may take. A limit of 3 lets an applicant go back three times. Four answers sent back in one review use one round. (Claim 5.4.)
  • delivery state — how far a notice got on its way out: still sending, accepted by the email provider, failed, or never sent at all. Six values: queued · attempting · delivered · failed_transient · failed_permanent · suppressed.
  • delivered (accepted by the provider) — the email service took the message off our hands. It is not proof the applicant received or read it; nothing in the platform can prove that today. A 250 from the mail server, and nothing more.
  • a send with an unknown outcome (code: uncertain) — the platform wrote the whole message to the mail service. Then it lost the answer of the service. Nobody knows if the service took the message, so the applicant may already have it. The network drops after the message goes out and before the mail server says “accepted”.
  • suppressed — the platform deliberately did not send: the applicant never consented, or sending is switched off for this deployment. No consent on file → nothing goes out, and the officer must be told.
  • the country’s notification legal basis (code: deployment_notification_policy.legal_basis, one of contractual or consent) — one country-wide answer to a single question: may this country write to applicants about their own files without asking each one first? Contractual says yes and rests on the country’s own legal advice; consent says each applicant must agree first. Recorded once for the whole country, alongside the sign-off that backs it — who signed, when, and against which document (the data protection officer, the person legally accountable for how the country handles people’s personal data). Not the same thing as a legal basis on a procedure, which is the law that authorizes that one public service. “Lesotho writes to applicants without asking each one; the sign-off is dated 4 March 2026.”
  • the emergency stop (code: platform_notification_kill_switch) — one switch per country and channel that halts every outgoing notice on that channel at once, pulled by an operator when the mail service is misbehaving. It is re-read at the last moment before each send, so a notice already queued when the stop is pulled is still blocked. Flipping it back on does not resend what was blocked; those notices are recorded as suppressed. The provider starts bouncing; the operator stops all e-mail until it recovers.
  • the sending allowance (code: notification_rate_limits, a “send slot”) — how many messages one country may hand its mail provider in a short window, counted one slot at a time so several workers cannot overshoot it together. A message that runs out of allowance is not lost — it waits for the next window. Fifty messages every ten seconds, shared by every worker draining the queue.
  • no notice on record — nothing was ever queued for this correction, usually because the agency authored no message for it. Silence, not success. The officer objected; the applicant was told nothing.
  • append-only — once a row is written, nothing may ever change or remove it — the database itself enforces this, not just a promise in the code. A consent record’s “withdrawn” entry can be added to, but never quietly rewritten back to “granted.”
  • the consent switch (code: published/consent.py) — the routes a portal calls about one channel, such as email. They read, give or take back the applicant’s permission. Each change adds one entry to the consent record. A portal’s “Stop emails” button asks the consent switch to withdraw consent for “email”.
  • the send check (code: check_dispatch_eligibility) — the one test the platform runs before each notice, and again just before sending. It asks: is the channel on, is a provider connected, did the applicant agree, is the address good? The applicant withdrew consent for email this morning, so the send check stops this afternoon’s notice.
  • intent to notify (code: notification_events) — a one-line record saying “this happened to this application, somebody should be told”, written in the same breath as the officer’s decision and before any email is prepared. It exists so a decision never depends on whether an email renders (D46). The officer rejects; the intent is stored; the e-mail is somebody else’s problem a moment later.
  • the drain — the background worker that runs about once a minute, picks up each intent to notify, and turns it into the actual message. A message that has not reached the applicant’s inbox yet may simply be waiting for the next drain.
  • the health refresh job (code: refresh_notification_health_snap) — the background job that recomputes the figures of the Health sub-view, about every five minutes. It writes one row for each email provider and one row for each published version of a procedure. The editor shows the newest row and does not count anything itself. The card “Deliveries · Last 24h” is only as recent as the last run of this job.
  • audience by role (code: recipient_kind='role_user') — a notice aimed at whoever currently holds a job, rather than at one named person. “Tell the legal officers”, not “tell Amina”.
  • the answer a notice is addressed to (code: recipient_kind='applicant_field') — a notice sent to whatever the applicant themselves wrote in one named question on their form, rather than to a desk inside the agency. The agency picks the question; the address is whatever that applicant gave. “Send it to whatever they wrote under Applicant email.”
  • message (code: notification_templates) — the wording an agency writes for one kind of notice, in each language it offers, on the procedure’s Messages tab. Wording lives outside the frozen published copy on purpose, so a typo can be corrected without republishing the procedure (D18). “We have received your application”, written once and sent every time a file arrives. A message belongs to the procedure, so it is still there after the next publish (issue #2565).
  • previous wording (code: notification_templates.archived_at set) — the older text of a message that an upgrade kept beside the newest version’s, when two published versions had said different things. Readable on the message, never put back with a button — to use it again, copy it across (ruling on #2565, 2026-09-04). Version 3’s “Your file has arrived” sits under version 5’s “We received your application”.
  • a notice the applicant must acknowledge (code: notification_templates.requires_acknowledgement) — one yes/no answer on a message, saying that what it carries is legally binding: a correction deadline, a consent confirmation. For those the platform refuses to mark the notice read just because it was on the applicant’s screen. The answer sits on the message itself, not on the rule that fires it, so every moment that sends it inherits the treatment (Phase 2E §16.3). “You have 14 days to correct your documents” — having it on screen is not the same as having read it.
  • place of a consent (code: notification_consent_events.ui_surface) — where the applicant agreed to receive notices, or took that agreement back. There are five places: the application form, the portal preferences, an SMS reply “STOP”, an entry by an administrator, and an import of older records. The “Citizen consent” page names the place in the reader’s language and never shows the stored code word. “Portal preferences” on the row “E-mail, withdrawn”.
  • stand-in for a real value (placeholder) (code: {{...}} token, placeholders.py) — a marker an agency drops into a message where a real value belongs, replaced with that value when the notice is actually sent. The agency writes one wording; every applicant reads their own details. “Dear {{applicant.name}}, we have received application {{application.reference_number}}.”
  • rehearsal copy of a message (code: test_send_to_author) — the one check an agency author gets before a message goes live: the platform renders the wording and e-mails a single copy to the author’s own inbox. Nothing is written to any applicant’s record, and no applicant is sent anything. She reads it herself, then publishes.
  • the address applicants reach the portal on (code: settings.portal_public_url) — the web address a country’s applicant portal answers on, set once per deployment; every link the platform puts in a message is built from it. Not the same thing as the deployment code (tst-dep, ma), which is an internal identifier and opens nothing in a browser. Links read https://portal.example/applications/…, never https://portal.tst-dep/….
  • the rule that fires a message (code: notification_triggers) — the pairing an agency sets between a moment in the procedure and the message to send then. Written on the same screen as the message itself. “When an application arrives, send the acknowledgement.”
  • the step a message rule is about (code: notification_triggers.target_role_code) — for the moments that belong to one reviewing step rather than to the whole filing — a step approving its part, a step sending the file back — the step the rule watches. The author names it by its short code, the same word they use to say whose desk receives a notice. Not the same thing as what a desk is called for measurements, which is keyed by the step’s internal identifier. “When the registrar approves her part, tell the legal officers” — the rule names REG.

Payments (how an application gets paid)

  • payment intent — one application’s bill: what is owed, in which currency, and how much has arrived so far. One intent per application; a second “Pay now” click reuses it.
  • IPN / payment notification — the message the payment platform sends our server the moment money moves. “Invoice X received 1 500 KES.”
  • payment-detail mapping (code: projection) — the table that says which field of a payment notification carries each payment detail. One row names the field for the amount paid. A SmartLink administrator edits it under “Payment details”. When the notification address is live, a change needs a written reason, because it applies to the next payment. The provider renames amount_paid to paid_amount, so the row for the amount paid must change.
  • duplicate rule (code: dedup on an InboundEndpoint) — the setting that tells the platform which payment notifications are repeats of one that it already has. A repeat gets the first answer again and adds no new row. The rule must read a detail that changes from one notification to the next, never the invoice reference alone. Two part-payments of 50 and 100 for invoice INV-9 are two notifications, not one notification and a repeat.
  • observed vs confirmed ledger (two-ledger quarantine) — money is counted twice: what notifications claim arrived (observed) and what the provider confirms when we ask it directly with a signed query (confirmed). Only confirmed money advances the application, so a forged notification can never mark a file as paid.
  • signing key (code: signing credential) — a secret that SmartLink keeps for one outside system. SmartLink uses it to sign a request to that system, or to check a notice from it. Each key carries a tag, sandbox or live, and a live call uses only a key tagged live. Not the wallet signing key. The provider issues a new secret, and the administrator replaces the value of the key.
  • Live payments (code: an enabled live PaymentProviderBinding) — the switch that lets real applicants pay through the provider. While it is on, the platform refuses to delete a signing key or notification address that real payments use. “Disable Live payments first.”
  • notification token (per-intent) — a secret ticket printed on one invoice’s callback address; a notification that does not show that invoice’s own ticket cannot be booked against it. A leaked address for invoice A is useless against invoice B.

Registration steps (how a procedure’s registrations are performed)

  • single-window service (code: is_single_window, with its plan in single_window_plan) — one joint form that a coordinating agency publishes for the procedures of several agencies. The applicant answers once, and each member agency receives its part. “Start a Business” joins the company registration and the taxpayer registration. (D78.)
  • registration step — one step per administration whose register the procedure writes: that administration records the registration — by its own computer system or by an officer at our screen, both normal — and returns the reference. A single-window service has several. Company registry records the company → tax registers it → social security registers it as an employer. (D28; v1 builds the closing one.)
  • closing registration step (short: the closing step) — the last registration step, fired when every check is green; the only one that gates the applicant’s certificate. The final register is written and the certificate comes out. (D28.)
  • registration delivery — the message that carries the verified record to the administration’s system; on failure it retries patiently (~7¼ hours) and every attempt is logged. The registration data is sent to the tax API; five retries across the afternoon. (D28.)
  • delivery channel — who performs a registration step: their system, our screen, or their system first with our screen as the planned fallback. “Their system first; our screen if it fails.” (D28.)
  • conversion (to the human channel) — the planned move of a registration step from the API to an officer’s desk when the administration’s system stays down, cannot safely accept a resend, or an operator declares a long outage. Each desk row says why in plain words: “their system did not answer for 7 hours” · “their system cannot safely accept a resend” · “they have no system” · “confirm the registration reference” · “moved to the desk by an operator: [reason]”. The ministry announces a week of downtime; new registrations go straight to the officers’ list. (D28.)
  • registration desk — the officers’ work list of registration steps waiting to be done by hand, each row showing the exact data to register in the administration’s own column names. Tuesday: 40 rows; 12 registered by phone; Monday’s re-send skips those 12. (D28.)
  • done by hand (code: resolved_manually) — a registration step completed by an officer outside the system — by phone, paper, or their own back-office — with the registration reference recorded and who/when/why kept forever; a later bulk re-send skips it, always. “Registered by phone with the tax office — reference TA-2026/441.” Never “closed by hand” — one phrasing only (Rule 7.2).
  • claiming a registration — an officer taking a desk row so nobody else works on it: while claimed, the machine stops retrying it and no other officer can pick it up. It is a promise to act, not proof of having acted. Amina claims 3 rows before phoning the tax office. (D28.)
  • registration reference — the number the administration’s register gives back, by API or read out over the phone; when that register is the one of record, this is the number the applicant’s certificate carries. “RCS Paris B 517 403 572.” (D28; §5.1.)
  • withdrawing a hand-completion (code: manual_completion_revoked) — undoing a registration recorded by hand, when the reference typed in was wrong; the row goes back to the officers’ list to be completed again with the right number. A digit was transposed; the completion is withdrawn and redone. (D28; §4.1.)

Keeping the browser honest (what a page is allowed to do)

  • content policy (code: Content-Security-Policy) — a header the server sends telling the browser which scripts, styles and network destinations a page may use, so an injected script simply does not run. “Scripts only from this site, and none written into the page.”
  • cross-origin reading (code: CORS, Access-Control-Allow-Origin) — a browser rule. A page on one website may read answers from another website only when that website names it in a header. The server sends the body either way, and the browser withholds it from the page when the header is missing. The rule binds browsers only, so a server, a script or an assistant reads the same address with no such check. The feed names the platform’s own portal and not a partner ministry’s portal, so the partner page cannot read the public rules feed.
  • Trusted Types — a browser feature that refuses to let code write raw HTML into a page unless the text came from a named, registered cleaner. Supported in Chromium browsers; Firefox and Safari ignore it, so it is a second layer, never the only one.
  • raw-HTML write (code: dangerouslySetInnerHTML, innerHTML) — putting a string into a page as markup rather than as text, so any tags inside it become real elements. A notification body containing <script> would otherwise become a real script.
  • service worker (code: sw.js) — a script that the browser keeps for one site, which answers that site’s requests when the server cannot. The applicant portal uses one to open with no connection. The procedure that Amina opened yesterday opens again on the bus, from the copy the worker stored. (D71.)
  • sanitize — strip the dangerous parts out of a piece of HTML before showing it. The <script> is removed; the bold text survives.
  • fail open — when a check cannot run, allow the thing anyway. A validation rule that errors lets the answer through — the opposite of fail closed, and the reason a silently broken check is worse than a loudly broken one.
  • characterization test — a test written to record what code does today, so a rewrite can be proved not to have changed it. Written before the rewrite, and expected to pass both before and after.
  • transport security (code: Strict-Transport-Security) — a header telling the browser to reach this site only over an encrypted connection from now on, for a stated length of time. It also removes the “proceed anyway” button a citizen would otherwise get on an expired certificate — deliberately, for a service handling identity documents.
  • preload — asking browser makers to ship the rule above built into the browser, so it applies even on a first visit. Effectively irreversible for months, and it binds every deployment sharing the domain — which is why this platform does not use it.
  • registrable domain — the part of a web address someone buys, below which subdomains are handed out. A domain several deployments share, should countries ever run under one.

Standing up a country (who does what, before anyone can use it)

Two different jobs, done by two different people, in this order. The rule that tells them apart: provisioning acts on machinery; onboarding acts on a party.

  • provisioning — the technical work of getting one country’s copy of the platform onto a server and running: hosts, secrets, the login service, the first administrator account. Done by an operator, from a terminal, before anyone from the country signs in. “The sandbox was provisioned on Tuesday; nobody has configured it yet.”
  • country onboarding — what a country’s own administrator does after provisioning to make the platform fit to use: naming the currencies amounts may be stated in, and later other country-wide settings. It is a state, not a wizard — the platform runs throughout, and what is not yet named is reported rather than refused. “Somalia’s onboarding starts by naming USD and SOS as accepted currencies.” (Not to be confused with SmartLink’s onboarding of an outside authority — that is a party too, so the same word is right there.)
  • country administrator — the person holding the admin role who onboards and then runs the country’s platform: people, rights, government bodies, integrations, and country settings. Not an operator: works in a browser, has no server or repository access. “Ask your administrator to name an accepted currency.”
  • domain steward — the person who governs the registers: they propose changes to the shared picture of the world the registers are built on, and approve one another’s. Not an administrator — a steward never grants or removes anybody’s rights. “A steward proposed adding a company type; a second steward approved it.”
  • operator — the person who provisions and maintains the machinery: the server, the release, backups, secrets. Usually a country’s govtech team after handover. An operator can restart the platform; only an administrator can decide what it accepts.
  • accepted currency — a currency this country allows amounts to be stated in and fees to be charged in. The country’s administrator names them in Country settings; agencies pick from that list and never edit it. The one at the top is offered first. “Somalia accepts the US dollar and the Somali shilling.” (D49.)
  • Country settings — the screen where a country’s administrator sets what the whole country accepts, starting with its currencies. Distinct from an agency’s own settings, which govern one agency’s procedures. “Ask your administrator to name an accepted currency in Country settings.”
  • country clock — the calendar day it is where the country the deployment serves lives, used to judge deadlines and validity windows. Never the server’s own clock: the platform runs on universal time, which is a different day from the country for part of every day. A filing at 22:30 the country’s own time, on the last day a window is open, must count as on time — even if the server’s clock already reads tomorrow. (#2562, #2637.)

Releases (how a deployment learns about, and adopts, a newer version)

  • release channel — a named line of releases a deployment follows: stable for countries, edge for the sandbox. Not the D28 delivery channel, which is about who performs a registration step. A country follows stable and is told when a new release appears on it. (D48.)
  • validation snapshot — one immutable source selection with its approved execution context. The approved design uses separate snapshots while main continues advancing. Implementation remains pending.
  • promotion — the decision to make a qualified snapshot available on a release channel. Stable requires full validation and a person’s signature. Implementation remains pending.
  • operational revision — the approved factory code, policies and instructions that control execution. Product changes cannot select their own operating authority. Implementation remains pending.
  • recovery checkpoint — captured deployment state with evidence that the operator can restore it. Migrations require this checkpoint before deployment. Implementation remains pending.
  • release manifest — the small signed file a channel publishes: which version, which commit, which images, and the oldest version an upgrade has been tested from. The deployment checks the signature before believing any of it. The manifest says v0.3.0; the deployment refuses a checkout that does not match its commit. (D48.)
  • the daily check’s answer (code: the release status file’s state; its three values are ok, refused and unreachable) — one of three words a deployment writes down after asking its channel whether a newer release exists. Cannot reach means nothing was fetched, and is a reported state, never a failure: losing contact with us must not degrade a running deployment. Refused means something arrived and was rejected, so it names a fault in what arrived — on a signature it is the design’s tampering alarm. Not the refused application status of Section 5, which is about one person’s filing. Nothing was read this morning, so the answer is “cannot reach”, not “refused”. (D48, §A-4.)
  • sequence (of a release manifest) — the number every publication on a channel carries, one higher than the last one published. It is what stops an old manifest being served again as if it were current. Because two people may sign stable and either may publish alone, two manifests carrying the same number with different content are a collision a deployment reports rather than chooses between. #7 arrived twice naming two different releases: that is an alarm, not a decision. (D48.)
  • image store (code: the self-hosted registry) — the server a deployment pulls finished images from, run on the deployment’s own machine because the container orchestrator cannot build. It has no password by design, so anything running on that machine can write to it — which is why a release is decided by a signed announcement rather than by what the store currently holds. Not the agency registry of Sections 2 and 5, which is a record of companies. The sandbox pulls from a store on its own host; every country builds from source instead. (D48.)
  • digest — an image’s content fingerprint: name the image by its digest and you name exactly those bytes, because a digest cannot be repointed the way a tag can. opengov-app@sha256:9f2c… is one specific build; opengov-app:main is whichever build was pushed last. (D48.)
  • trust set — the committed folder of public keys a deployment accepts signatures from, split by claim: one folder for “we built this” (machines sign), one for “fit for a country to run” (a person signs). Adding a key is routine; deleting one revokes everything it signed. Rotating a key no longer breaks older releases. (D48.)
  • release signing key — the private half a person keeps off GitHub and uses to sign a release as fit for a country to run. Not the wallet signing key, which proves who is showing a record. Its public half must be in the trust set before a deployment will accept anything it signed. The key is on the holder’s own machine; the repository only ever holds its public half. (D48.)
  • lead time (of a key) — the wait between committing a new key’s public half and first signing with it: at least one release a deployment has actually applied. A deployment verifies with the trust set it already has, never the one arriving in the release being checked, so a key that skips the wait signs releases nobody can accept. Commit the key, let one release carry it out to the countries, then start signing with it. (D48.)
  • hold — the operator’s local stop: stay on the current version and stop counting newer ones as actionable, until the operator lifts it. During an election week, the registry does not change. (D48.)
  • automatic upgrade (code: on_new_release: apply) — the deployment upgrades itself, unattended, inside a maintenance window the country chose: back up, check the release is genuine, upgrade, health-check, and on red put itself back and hold. Opt-in; the default is to say so and do nothing. At 02:00 the machine does what an operator would have done at 09:00. (D48.)
  • maintenance window (code: release.window) — the stretch of night a country agrees to be offline, written as two times in that country’s own timezone. An unattended upgrade may only start inside it; outside it the deployment waits for tomorrow. 02:00-04:00 means a country’s operations team accepted two hours, not three. (D48.)
  • backup (the bundle) — the one file taken before an automatic upgrade, holding the database and the folder that carries the domain model. It is not optional and not a setting: it is the only way back if the new release does not come up healthy, so an upgrade that cannot take one does not start. A year of uploaded documents lives in the database, so the bundle — and the time it takes — grows with use.
  • how many bundles are kept (code: OPENGOV_BACKUP_KEEP) — the number of backups a deployment host holds, fourteen by default. Old ones go by count, never by age: a host whose schedule has been broken for a month would lose its last good backup to an age rule. The surplus is removed at the end of the very run that writes tonight’s bundle. A host at fourteen writes a fifteenth and is back to fourteen before the run ends.
  • the nightly schedule — the once-per-host command that installs the backup timer, switches it on, and takes one backup straight away so the operator learns there and then whether the schedule works. Safe to run again whenever the units change. An installer that reports success without running what it scheduled is how a host ends up believing it has backups.
  • restore — putting a deployment back the way a backup found it: the database and the folder holding the domain model, both replaced from one bundle. It refuses to run while the application is up, because replacing that folder under a live publish causes exactly the damage a restore exists to repair. Stop the application, restore last night’s bundle, start it again.
  • upgrade script (code: an alembic migration under migrations/versions/) — one numbered, reviewed step that changes the shape of a deployment’s database. A country’s database is whatever the whole numbered series, applied in order, produced; the test suite instead builds its database straight from the code, so the two can silently disagree. A country runs the scripts; a test run never does.
  • value rule (code: a named check constraint, ck_…) — the database’s own list of which values a column will accept, refusing anything else outright. Widening the list in the code without an upgrade script means the screen offers a value the deployment’s database rejects. “declined” is offered in the drop-down and refused by the database.
  • advisory window (code: scripts/ci/advisory_window.py) — the 72 hours after a security advisory is published, when a pull request that did not introduce the flagged version can still land. A person is told at once, and a stable release refuses the version. An advisory appears at 23:00 on Friday, and a change to one screen can land until 23:00 on Monday.
  • security alert — one entry on GitHub’s list of known weaknesses in a repository. Dependabot raises one when a library version has a published flaw. CodeQL raises one when it finds a risky pattern in our own code. Alert #84 says that the code scanner’s environment holds a flawed version of the mcp library.
  • alert reconciler (code: scripts/ci/security_alerts.py) — the hourly job that reads every open security alert. It gives each alert one state and a deadline, and sends it to whoever can act on it. An alert with a fix waiting in a pull request goes to the merge train. An alert with no fix goes to a person.
  • accepted alert (code: ci/accepted_security_alerts.yaml) — a security alert that a named person decided to live with, for a stated reason, until a stated date. On the day after that date, the alert opens again. The owner accepts the mcp flaw until 2027-02-04, because the scanner never starts the part of mcp that has the flaw.
  • database-enforced rule (code: a Postgres trigger, and the function it calls) — a rule the database applies by itself the moment a row is written, with no application code involved. It is how a guarantee survives somebody going round the application: the audit log’s refusal to be edited or erased is one. Like a value rule, it reaches a country only if an upgrade script installs it, and unlike a value rule nothing compares what the code declares against what a deployment actually has. The application can be bypassed; the rule inside the database cannot.
  • drift gate (tests/migrations/test_model_migration_drift_gate.py) — the test that builds a database from the whole series of upgrade scripts and compares it against what the code declares, so a shape the scripts never create fails the build instead of a deployment. It caught the missing column class; it is meant to cover value rules too.

Writing (how the project writes its own texts)

  • writing standard — the rules for each sentence of an engineering text: a short sentence, the active voice, one name for each thing. Engineering text is text that a person follows or keeps, or that a machine reads. The rules come from Simplified Technical English, the controlled English of aircraft maintenance manuals. A description has a maximum of 25 words. Write “the train removed the label”, not “the label was removed”. (Rules: docs/reference/writing-standard.md.)

Bringing an existing service in (the importer)

  • the importer (code: import_service_catalog) — the one-go route a registrar uses to bring a service a country already runs into OpenGov, instead of retyping it question by question. It is the on-ramp for every new service, so whatever it drops is dropped once per service, forever. Concept note 6: it must carry the questions, the certificate and the fees.
  • the import receipt (code: ImportResult.warnings) — the short summary handed back when an import finishes, including plain-language notices about anything in the source service the import could not represent. A thing left behind silently is indistinguishable, to the registrar, from a thing that was never there. Today it reports tables nested inside tables.
  • question key (code: the form’s key) — the short machine name of a question. The editor shows it as “Key” under Advanced. A published question keeps it as the name of its column. applicantFullName2 is the key of the question “Full name”.
  • working title (code: working_label_for_field) — a temporary title that the importer gives to a question. It does this when the old title holds a placeholder and the service file gives no real title. The importer makes it from the question key or from the old title. Publishing waits until an author confirms or replaces it. The key applicantFullName2 gives the working title “Full name”.
  • text pattern (code: regular expression, re) — a rule that finds parts of a text and changes them. A badly made pattern can take a very long time on long text, because it tries many ways to match before it stops. The pattern that removes the digits at the end of a key.

Measuring the product against reality

  • Fit Ledger (docs/traceability/fit-ledger.md) — the published answer to “how much of a real government service can OpenGov express?”, measured by importing services countries actually run rather than by counting features we listed ourselves. A country’s own form is the exam paper; we don’t get to write it.
  • substantive fidelity — of everything on a form or in a workflow that carries an answer, the share OpenGov expresses with nothing lost. The headline number. 89.5% across the first four services.
  • everything-counted — the same share, but counting layout as a failure too. Published beside the headline so nobody can say the flattering denominator was chosen in private. Always lower, and misleading on its own.
  • furniture (code: chrome) — the parts of a form that ask nothing: columns, panels, tab strips, headings, buttons. Dropping them is the importer working, not failing. 507 of 535 dropped fields in the first corpus.
  • no home (code: no_target) — a construct a real service uses that OpenGov has nowhere to put. Every one is named in the ledger; a counted gap that isn’t named is a statistic, not a report. A shareholder list has no home — that’s divergence D17.
  • repeating group (code: editgrid / datagrid in the incumbent system) — one question asked many times over, once per person or item. “List every shareholder: name, ID, share %” — the single largest thing OpenGov cannot yet express.
  • corpus — the exact set of services a fidelity number was measured over. A percentage without its corpus is not comparable to anything, including its own past self. Adding a harder service lowers the number without anything having got worse.
  • captured service map (code: service_ai_map) — the machine-readable dump of one real government service, taken out of the system that runs it today: its form, its workflow, its roles and its automated steps. The corpus is built from these files, saved to disk and re-read every time the ledger is regenerated; nothing hand-authored enters. One file per service, kept beside the importer.

Measuring the product against GovStack (an outside set of specifications)

GovStack is not in the ground truth hierarchy of OpenGov. These are GovStack’s names for GovStack’s things. Keep them as they are, and keep the Rule 2 names for OpenGov’s things.

  • Building Block — GovStack’s name for one reusable function of a government service. Each one has a written specification, and a reviewer can measure a software product against it. Payments, Registration and Digital Registries are three Building Blocks.
  • cross-functional requirement — a GovStack requirement that applies to all software, whatever its function: how it is built, deployed, secured and documented. “Transport security is enforced” applies to a payments product and to a registration product in the same way.
  • GovMarket — GovStack’s catalog of software products. GovStack gives the compliance label there, to a product that meets each REQUIRED requirement of the cross-functional set and of its Building Block. Our audit is a self-assessment that prepares a GovMarket submission. It does not give the label.

Checking uploaded documents for viruses

  • virus scanning — before a document an applicant uploaded is stored, a separate program looks at it for known malware. The platform OpenGov replaces already does this, so not doing it would be a step backwards. Spec: docs/specs/2026-08-10-upload-virus-scanning.md.
  • the scanner (code: ClamAV) — the open-source program that does the looking. It runs as its own container beside the application, not inside it, because it holds millions of virus signatures in memory. Roughly 3.6 million signatures on a first download.
  • signatures — the scanner’s list of known malware, refreshed from the internet. Stale signatures are the quiet failure: the scanner still answers, it just no longer recognises anything new. A ministry behind a firewall may never be able to refresh them.
  • the test file (code: EICAR) — a short harmless string that every virus scanner in the world is required to flag. Asking the scanner to find it is how we tell a working scanner from one that merely answers. A version number proves nothing; finding the test file proves something.
  • refuse on failure (a.k.a. fail-closed) — when the scanner cannot answer, the upload is not accepted. The opposite would let an unchecked file reach an officer, and would turn “the scanner broke” into “we quietly stopped checking”. The applicant’s attempt is recorded with its time, so our outage is not their missed deadline.
  • the operator’s lever (code: OPENGOV_VIRUS_SCAN=off) — a deliberate, time-limited switch letting an agency keep accepting documents while the scanner is broken. It expires by force, says so in the health report, and marks every file accepted during it “not checked”. Not a boolean, because a switch with no expiry never gets flipped back.
  • a country’s own rules (code: YARA) — detection rules a country adds itself, often from its national computer emergency team, each describing a suspicious file by the patterns inside it. The scanner reads them beside its virus signatures; they add to the signatures and never replace them. A national team warns of a fake-invoice PDF aimed at its ministries; the country drops that rule in, and the next such upload is refused.
  • caution — a finding that does not refuse the file but warns the officer about it, such as a PDF that contains a script. It exists because some legitimate government forms contain scripts, and refusing them would turn an applicant away for using the state’s own form. The officer reads “no virus found — this PDF contains a script”.
  • all-match scanning (code: the ALLMATCHSCAN command) — asking the scanner to report every problem it finds in a file, not only the first one. Without it, a harmless-looking match found first could hide a virus in the same file. A PDF with a script and a virus is refused, not accepted with a caution.
  • the scan spool — a small folder shared by the application and the scanner. The application puts each upload there for the seconds the scan takes, then deletes the file. On Compose and Swarm the folder is in memory. On Coolify it is a disk folder. A file that the application deletes within seconds is usually never written to the disk. A stuck scan, or several large uploads at once, can put it there.
  • the proof — the most recent time the scanner found both the test file (EICAR) and our canary rule. Uploads are refused if the proof is missing or too old. Checked every 30 seconds; older than 90 seconds counts as missing.
  • not checked (code: virus_check = 'not_checked') — the mark on a stored file that was never scanned: accepted while the operator’s lever was on, stored before scanning existed, or the country’s own emblem. The officer reads “Not checked” on it.
  • the canary rule — one harmless rule shipped with the platform, matching a harmless string of ours, that the scanner is asked to find on a timer. It is the test file’s counterpart for the country’s own rules: finding it proves the scanner still reads rules at all. It cannot prove that a country’s own rule file loaded.

Signing in (the identity server every deployment runs)

  • identity server (code: Keycloak) — the separate service each deployment runs that holds staff and applicant logins and checks passwords; the platform itself never sees a password. It is named oidc in the compose files, after the protocol it speaks — the protocol has its own row below. A registrar signs in there, and the platform is handed a token saying who they are.
  • login settings (code: the realm) — a set of accounts and sign-in rules managed by the identity server: which accounts exist, which roles they hold, how long a session lasts, and what happens after a wrong password. Today’s deployment uses keycloak/opengov-realm.json; a separate applicant realm is proposed in docs/specs/2026-10-01-applicant-realm.md. Staff and applicants can have independent accounts and sign-in rules.
  • applicant account — the login a person uses to apply for a public service, whether they are a citizen, resident, foreigner, or organizational representative. Creating an account does not prove eligibility for the service.
  • token issuer (code: iss) — the identity server address named in a signed login pass, used to decide which configured account population issued it. A pass from the applicant realm cannot carry staff authority.
  • account subject (code: OIDC sub) — the identity server’s identifier for one account within its issuer. Equal identifiers from different realms do not mean the same account.
  • application actor ID (code: applicant_actor_id, which fills the authenticated context’s sub) — the platform’s account identifier used for ownership and permission checks. The proposed applicant identifier includes a reserved namespace derived from the verified issuer and account subject.
  • caller class — the account population a verified login belongs to, used before checking what it may do. An applicant remains an applicant even if their token contains a staff role name.
  • token audience (code: aud) — the API a signed pass is intended for. A login identity token intended for the browser is not an API access pass.
  • signing key set (code: JWKS) — the public keys the platform uses to check passes from one configured identity server. Each realm has its own keys and cache.
  • login throttle (code: bruteForceProtected and its escalating-delay figures) — making each wrong password cost more time than the last, so guessing a registrar’s password stops being worth doing. After ten wrong tries the wait grows a minute at a time to a quarter of an hour. It slows an attacker to nothing without ever locking the real registrar out for good — a permanent lockout would turn a known email address into a weapon.
  • closing drift (code: the boot-time reconcile) — the step that runs on every start and brings a deployment that has been running for months back into line with what this repository now says. It exists because the login settings file is read only once, when a deployment is first created. Whatever it does not cover, a long-lived country never receives.

Limiting how fast one caller can hit the platform

  • rate limit — a ceiling on how many requests one caller may make in a minute. Its whole purpose is to stop scripts, so a real applicant or officer meeting one is a bug, not a defence working. Spec: docs/specs/2026-08-10-request-rate-limiting.md.
  • what the count is kept against (code: the limiter’s key) — whose budget a request spends. For signed-in traffic it is the account. For anonymous traffic it is the network address, which is far blunter: a whole ministry, or a whole country, can share one. Counting a signed-in officer against their office’s address would let one busy colleague lock out everyone else.
  • the trusted-proxy allowlist (code: OPENGOV_TRUSTED_PROXIES) — the list of machines a deployment agrees to believe when they add a note to a request saying who it really came from. A country runs the platform behind its own reverse proxy, which strips off the encryption and passes the request on with such notes attached — who the original caller was, and whether they arrived securely. Nothing about those notes proves who wrote them, so they count only when the machine handing the request over is on the list. An empty list means no note is vouched for, and a caller who writes one about themselves must not be believed.
  • the integrating system — another government system, or an AI assistant, reading OpenGov’s published requirements automatically. Its traffic looks exactly like scraping because reading machines is what the platform is for. The user most at risk of being blocked by a limit meant for someone else.
  • watching only (a.k.a. observe-only) — the limiter counts and reports but refuses nothing, so real traffic can be measured before any ceiling is chosen. A limit set from a guess either catches real officers or catches nobody.
  • publishing the budget (code: RateLimit-* headers) — telling every caller how much of its allowance is left, so a well-behaved system can slow down on its own. Hiding the ceiling does not stop a scraper, which measures it in a minute; it only stops the honest client from being polite.
  • fingerprint (code: ETag) — a short code standing for one exact answer, handed out with that answer, so a caller can later ask “is what I hold still current?” without downloading it again. Two answers with the same fingerprint are the same answer.
  • asking whether it changed (code: a conditional request — If-None-Match) — a caller returning the fingerprint it holds instead of asking for the document afresh. The platform owes it either the new document or “nothing has changed” (code: 304 Not Modified), an answer with no body at all. This is the whole saving: the integrating system stops re-paying for a document it already holds.
  • what the answer depends on (code: the Vary header) — the platform naming, in the answer itself, which things about the request chose this particular answer — the reader’s language, for instance. Anything sitting between the platform and the reader that keeps a copy is then obliged to keep one copy per value, instead of handing everybody the first reader’s. An answer that varies by language but does not say so gets handed to the next reader in the wrong one.
  • shared cache — a machine, such as a proxy, that keeps copies of the platform’s answers for its readers. It gives a kept answer to the next reader of the same address. It keeps a separate copy for each value only of the request parts that the answer names (what the answer depends on). It saves the platform work, but it gives one reader’s answer to the next reader when the answer does not say what it depends on.

Limiting how large one request can be

  • ceiling (code: Ceiling, the answer request_too_large) — the largest request body that one route accepts, in bytes. The platform refuses a larger body before it reads it and before it checks the sign-in. A form above the ceiling of its route gets the answer 413 and one sentence.
  • depth limit (code: MAX_JSON_DEPTH) — the largest count of levels that a JSON request body can have. Each list and each object is one level. A real form is far below the limit, and a body above it gets the answer 400 and one sentence.

Reading a deployment’s own numbers

  • measurement (code: metric) — one count or gauge the platform already keeps, such as how many emails failed to send. Recording a measurement is not the same as anyone being able to read it. Spec: docs/specs/2026-08-12-metrics-exposition.md.
  • the count sheet (code: the exposition, served at /metrics) — a plain-text page listing every measurement’s current value, generated fresh on each request. Never served on the platform’s public web address — see “the internal doorway” below. A country’s own monitoring reads this page the way a browser reads a web page — by asking for it.
  • collecting (code: scrape) — a country’s own monitoring periodically asking for the count sheet and keeping a history of the values over time. This platform does not collect its own numbers; it only makes them available to whatever a country chooses to run for that. Nothing here requires Prometheus or Grafana to be installed.
  • the internal doorway (code: the metrics listener, metrics_server.py) — a small extra doorway each running program opens, separate from the one applicants and officers use, reachable only from inside the deployment’s own private network — never from the public internet. It answers with no login required, which is exactly why it must never be reachable from outside. Two doorways exist, one per running program, because most of the interesting numbers are counted in the background worker, not the web app.
  • dead-letter backlog (code: failed_permanent) — notifications the platform gave up retrying. A rising count means messages are stuck, unseen by anyone, until an operator looks. Reference: docs/reference/metrics-scrape-contract.md.
  • route shape (code: the route template, route label) — the pattern an address matches, with the identifiers written as blanks: /api/v1/eapproval/applications/{application_id}, never .../abc-123. Counting by shape says which part of the platform is busy; counting by address would keep a record of which specific file somebody opened. The address is never kept, in the log line or in a measurement.
  • status class (code: the status label on the traffic counter) — the family an answer belongs to rather than its exact code: 2xx for “it worked”, 4xx for “the caller asked wrongly”, 5xx for “we broke”. An operator alerts on what fraction is failing; the exact code is in the log line for whoever debugs it.
  • saturation — how close a deployment is to running out of something it needs: database connections, memory, disk. Unlike a failure, saturation gives warning before anything breaks. The connection pool below is the piece this platform exhausts first, and it is now measured; memory and disk still rely on the free process_* readings the measurement library adds.
  • connection pool (code: opengov_db_pool_*) — the small, fixed set of open database connections one running program hands out to whatever needs one; when they are all in use, the next piece of work simply waits. Each program keeps its own pool, so the two programs’ readings describe different things and must never be added together. A deployment that feels slow with nothing in the logs is usually a full pool.
  • the background queue (code: opengov_background_queue_*, the job runner’s procrastinate_jobs table) — the list of slow work waiting to be done behind the scenes: automated checks, notices to send, an application to release once its fee clears. Depth alone cannot tell a busy queue from a stuck one, so the age of the oldest job still waiting is published beside it. A deep queue that is draining is fine; a shallow one whose oldest job has waited twenty minutes is not. Distinct from an officer’s work queue, which is people’s work, not machine work.
  • check against an outside register (code: a SmartLink connector execution, smartlink_external_check*) — one call this platform makes to another institution’s system to confirm something an applicant claimed. Asking the tax authority whether a taxpayer number exists. What is published is the outcome, the reason a check failed, and how long the other institution took — never which applicant or which document was involved.
  • parked for a person (code: needs_attention, payments_intents_needing_attention) — a payment the platform cannot settle by itself and has set aside for someone to look at, rather than guessing. A fee paid in the wrong currency, or a provider that keeps disagreeing with its own notifications.
  • gave up asking (code: payments_confirmation_failed_total) — the platform stopped trying to establish whether a fee arrived. It does not mean the money was lost: this platform only ever knows whether it managed to ask the provider; whose books hold the money is the provider’s answer. Eight failed status queries over a day, then the platform stops and says so.
  • distinct accounts (code: eapproval_distinct_applicants) — how many separate sign-ins filed at least one application inside a rolling window of a day, a week or a month. Accounts, not people: one person holding two accounts counts twice. A counter cannot answer this — adding up submissions counts one person filing ten times as ten people.
  • gave up on a job (code: opengov_background_jobs_finished_total{outcome="gave_up"}) — a piece of background work failed and nothing will attempt it again. The work never happened and nobody was told. Distinct from retrying, where the work may still happen, and from aborted, which is simply a worker being shut down mid-job by an ordinary redeploy. The background queue cannot show this: a job that has given up leaves every state the queue counts, so the queue reads healthier at the moment work is lost.
  • how stale a desk is (code: eapproval_work_queue_oldest_filing_age_seconds) — how long the longest-waiting filing now sitting on one officer’s queue has been with the agency. The companion to queue depth, which says how many are waiting and never for how long. Ten filings at a desk that clears them hourly is fine; two that have sat since Tuesday is not. The clock starts when the filing reached the agency, not when it reached that desk — nothing records the second.
  • one visit to a step (code: eapproval_step_duration_seconds) — how long a single stint at one step lasted, from the step opening to it being completed. A filing sent back for corrections and returning starts a fresh visit, because that is a second stint of work. Reported by the kind of step — a person deciding, a bot deciding, or a meeting point where branches rejoin — never by the individual step. Answers “are the human steps or the automated ones slow?” without opening the database.
  • what a desk is called (code: eapproval_role_info) — the name agency staff gave an officer step, published beside the id every other step measurement is keyed by. Without it a chart of “which desk has the biggest queue” answers with a string like 8239a268-11ce-41b0-…. Kept apart from the numbers on purpose: renaming a step would otherwise start a fresh series and orphan everything recorded under the old name.

Whether a deployment is working (/health)

  • the background worker — the second running program every deployment starts alongside the website, in its own container, with no web address of its own. It picks up the work the website hands off and does not do itself: recomputing an officer’s review queue after a claim, running automated checks, sending notices. “The drain” (above) is one specific job this worker runs; the worker itself is the program that runs that job and every other deferred one. When it is down, an officer’s action is recorded but nothing follows from it — the claim sits exactly where it landed. Spec: docs/specs/2026-08-09-health-component-contract.md.
  • heartbeat — a line the background worker writes to the database every ten seconds, purely to say “I am still running”. The website cannot call the worker directly, so this line is the only trace of it the website can see. A heartbeat older than two minutes means the worker has stopped, even though the database answering questions normally would otherwise look fine.
  • gave no answer (code: unknown) — a check for this part exists, it ran, and it produced nothing to judge. On a part that stops people doing something, that is an outage: silence is never read as fine. Distinct from the next entry, and confusing the two is the single most consequential mistake a country’s alerting can make here.
  • no check written yet (code: not_checked) — nobody has written a check for this part at all. A known, declared gap; never a reason to wake anyone. Reported honestly rather than hidden, because a part that quietly vanished from the answer is exactly the bug this design replaced.
  • who is blocked (code: the blocks label, cannot_submit / cannot_review / none) — what a person cannot do while a part is broken. This, and not which subsystem failed, is what decides whether a deployment reports an outage. A background queue being down is reported and wakes nobody; the database being down stops citizens submitting.

What a deployment writes down about itself (the operational log)

  • operational log — the running commentary of what the software did: a request arrived, a background job ran, something failed. Written by both the website and the background worker, one line of structured data per event. An engineer reads it after an incident; nobody reads it day to day.
  • audit log — deliberately not the same thing, and the distinction is the whole reason the two have different rules. The audit log is the record of official acts: who decided what about an application, when, and whether it was altered afterwards. It is kept indefinitely and holds the identifiers the operational log deliberately does not. When you want to know what happened to Mrs Otieno’s application, you want the audit log; when you want to know why the server answered slowly at 3am, you want the operational log.
  • tamper check of the audit log (code: the hash chain, AuditLog.verify_chain) — the check that nobody altered the audit log by hand. Each audit entry keeps a fingerprint of the entry before it, so the entries make one chain. The check walks the chain. It reports each entry that does not name the entry before it. An edit to one old line breaks the chain at that line, and the check names it.
  • hash chain and tamper check (code: entry_hash and prev_hash, checked by AuditLog.verify_chain) — each entry of the audit log stores a code. The platform computes that code from the contents of the entry and from the code of the entry before it. The tamper check computes each code again. An entry that somebody changed behind the platform’s back no longer matches its code, and the check names it. The check sees only a change to what the code covers. A person edits the actor of an old entry, and the tamper check names that entry.
  • request identifier — a short code the platform invents for every request and sends back in a response header, so somebody whose application failed can quote it and the platform can find the request without having stored anything about them. “It failed and the page showed 4f8c…” is enough to find the line.
  • retention window — how many days a country keeps its own operational log files before the platform deletes them itself. Declared in that country’s deployment configuration; a value outside 7 to 400 days refuses the boot rather than being quietly adjusted. It governs the copy the platform owns; a copy a country forwards to its own log collector is that collector’s to keep.
  • redaction — replacing anything shaped like a person’s details — an email address, a phone number, a network address, a credential, an identifier with dashes — with a marker, before the line is written, and counting how many were replaced so the scrub is never silent. A line that says nothing was replaced is different from a line that never checked.
  • bridge line — the one line written at the moment the website hands work to the background worker, naming the request identifier and the job identifier together. It is what lets a reader follow a request into the job it created, in one hop, without the identifier having to travel inside the job itself.

A door for assistants (machine callers — Proposed, spec 2026-08-27)

Every row in this section is Proposed (spec 2026-08-27) — the terms enter with docs/specs/2026-08-27-embedded-mcp.md and firm up with its first slice. The catalogue tool names were the owner’s choice (that spec’s question 3, settled 2026-08-28).

  • MCP (Model Context Protocol) — the open standard AI assistants use to call tools on other systems. OpenGov’s server is embedded in the deployed platform, one per country stack — never installed on an operator’s machine. An assistant helping a registrar connects to the country’s own deployment, not to a copy on a laptop.

  • tool (the assistant-callable sense) — one named action an MCP server offers an assistant, with a described input and output. Not “tool” in the four-tools sense (SmartRules, eApproval, SmartLink, eRnext). whoami is a tool; SmartRules is one of the four tools.

  • bearer token (code: the Keycloak JWT in the Authorization header) — the signed pass a caller presents on every request; whoever holds it is treated as the person it names, which is why it is short-lived. The assistant presents the registrar’s own pass, so it can do exactly what the registrar can — nothing more.

  • OpenID Connect (OIDC) — the sign-in protocol the identity server (Keycloak) speaks; it is what turns a login into the signed pass above. One browser login, one short-lived pass.

  • OpenID Connect (OIDC) — the sign-in protocol the identity server (Keycloak) speaks; it is what turns a login into the signed pass above. One browser login, one short-lived pass.

  • OAuth — the web’s open standard for granting a caller limited access without handing over a password; OIDC builds on it. The “where do I sign in” notice an MCP endpoint serves before any identity is proven is OAuth’s discovery metadata.

  • PKCE — a proof-of-possession step in the sign-in redirect that stops a stolen redirect from being replayed by someone else. Even intercepted, the sign-in hand-off is useless without the secret the real client generated at the start.

  • function (code: a FastAPI route — a verb plus an address pattern, GET /api/v1/procedures/{procedure_id}) — one thing the platform can be asked to do, named so an assistant can ask for it by name; every button in the browser ends in one. Function on the wire, route in the code; never operation (SmartLink’s word) or endpoint (the world model’s). An assistant lists the functions a registrar can reach and reads one procedure with the registrar’s own pass.

  • the catalogue triple (code: list_functions / describe_function / call_function) — the three generic MCP tools: what can I reach, what does one function need and return, call it as the signed-in person. Derived from the live route table at boot, so it cannot fall behind. What a caller sees is filtered by their rights; what a caller may do is decided only by the real handler. The assistant sees fewer functions than the administrator does — and calling one it cannot see gets the platform’s own refusal, not a silent gap.

  • permission to make changes (code: the opengov:write scope on the assistants client) — what an assistant must have asked for, when its person signed in, before it can change anything. Separate from what that person is allowed to do, which is unchanged and still decides everything. An administrator’s assistant that was connected to read only still cannot file a claim — and is told to reconnect, not that it is forbidden.

  • offline credential (code: the offline_access scope; Keycloak calls the result an offline session) — the kind of pass an assistant holds, which keeps working after its person closes the browser. An ordinary browser pass expires 30 minutes after it goes idle, which would make an assistant ask its person to sign in several times a day. She connects her assistant on Monday and it is still working on Friday; if she does not use it for a fortnight, it asks her to sign in again.

  • interactive write scope — a marking on a token that only a human-consent sign-in flow can mint; the platform refuses any state-changing call from a token without it, fail-closed. A machine credential’s token can read; only a person’s freshly consented token can act.

  • the assistants door (code: /mcp) — the one web address where an AI assistant acts for the person who signed it in. Two switches control the door, and it serves only when both say yes. An assistant pointed at the door asks its person to sign in once, then does only what that person can do.

  • the operator’s stop (for assistants) (code: OPENGOV_MCP_ENABLED) — the operator’s half of the two switches on the assistants door. The operator sets it from a terminal and keeps it for emergencies. The country administrator’s half is the switch on Country settings, section AI assistants. Off from either half shuts the door. During an incident, the operator shuts the door from a terminal, with no browser session.

  • mandate (code: ApplicantMandate, table eapproval_applicant_mandates) — a time-bounded permission that an applicant gives to one external assistant for one procedure or draft. The applicant can revoke it at any time. The applicant gives the assistant a 30-day mandate for a Restaurant Licence draft.

  • consent receipt (code: KantaraConsentReceipt, KI-CR-v1.1.0) — the signed record that the platform issues when an applicant grants, revokes, or confirms a mandate or submission. The receipt names the service, the data categories, and the payload digest.

  • signed record (code: VaultCredential) — the digital copy of a permit that the vault signs and gives to the holder. The vault makes it at registration, in the sd_jwt_vc format. A receiving party checks it against the status list. A bank reads the signed record of a restaurant licence, and the status list tells the bank that the licence is still active.

  • status list (code: statuslist+jwt, table vault_status_lists) — a signed, compressed list of 4-bit status codes (0 active, 1 revoked, 2 suspended) for issued digital credentials. A relying party checks whether a credential is still valid without asking the issuer per holder. A verifier downloads the signed status list once and checks index 42 offline.

Who may do what on this deployment (platform rights)

  • platform right (code: a realm role — admin, verifier, …) — one thing a person is allowed to do across the whole deployment, such as authoring procedures or reviewing claims. Shown as a labelled chip on the People and Person screens, with the plain sentence of what it lets someone do beside it. Rights are additive: adding one never removes another.
  • sign-in role (code: a realm role carried on the login token) — a platform right as it travels on a person’s login token, such as admin, verifier or registrar, which is what decides staff access while database authority is off. A screen that reads it admits or refuses by the role’s name alone. Kofi’s token says verifier; the door that asks for verifier lets him in, and the button that asks for admin stays grey.
  • staff permissions (code: database authority) — rights that the platform stores for each person. When a country switches them on, these rights decide what staff may do. Before that, the sign-in role decides. Before activation, the role registrar lets a person read the model, and the server refuses that person’s draft save.
  • the baseline right (code: the applicant role, called the floor in the rights spec) — the right to submit applications, which every registered person already holds from the moment their account exists. It is the one right an administrator can neither give nor take away: giving it would mean nothing, and taking it would lock someone out of their own applications. Everyone stands on it; nobody is granted it.
  • taking a right away (code: revoke) — an administrator removing a platform right from one person, with a reason recorded in the rights log. The reason is not optional — the log has to be able to answer “why” months later.

Proving the platform refuses the wrong person (pentests — Phase 1 built, spec 2026-09-12)

  • pentest (short for penetration test) — an attack on the running product by someone playing an adversary, to find what a scanner reading the code cannot. Here the “someone” is a test suite, a nightly scanner with a login, or a hired person. A second applicant tries to open the first applicant’s file; the platform must refuse, and the pentest is what checks that it does.
  • audience (code: one value per route in tests/pentest/route_audience.yaml) — the set of people a route answers: everyone, anyone signed in, the owner of the thing and the agency handling it, the person who filed it alone, that agency’s staff only, holders of one platform right, holders of one database grant, or the administrator alone. A route with no declared audience cannot merge. The route that returns an application answers its owner and the handling agency: audience owner.
  • stranger test — calling a route as every identity its audience excludes, and requiring a refusal each time; for a route that changes something, also checking that the refusal wrote nothing to the audit log. A reviewer from agency B asks to reject an application handled by agency A and must be refused.
  • database authority (code: platform_permission_authority_state.active) — the country-wide switch that moves staff access from sign-in roles to permissions stored in the database. It stays off until a country turns it on, and it is off in the attacker suite. While it is off, a route that will one day check a database grant still checks the caller’s role instead.
  • legacy-roles branch (code: PermissionBranch(caller_class="legacy_roles")) — the old role check a permission gate keeps running while database authority is off, so a country that has not yet turned the switch on keeps working exactly as before. A route gated on staff.rights_read still admits admin while the switch is off, because its legacy-roles branch says so.
  • database grant — a permission given to one person and stored in the database, which decides that person’s access once database authority is switched on. Nobody in the attacker suite holds one yet, so a route that answers only to a database grant refuses everyone in the suite, the administrator included. Once a country turns database authority on, granting someone staff.grant is what lets them hand out further permissions — a role name no longer does it.
  • authority grant (code: a grant, platform_permission_grants under D59) — a recorded decision that one staff member may use certain actions, and may pass some of them on, for one area: the whole country or one named unit. Every grant names the grant it was issued from; revoking one is final, and every grant issued from it stops working at the same moment. “Registry administrator · For the country” is one grant; the four desk officers she equipped each hold their own, issued from hers.
  • passing authority on (code: delegation) — a staff member issuing part of their own grant to somebody else, within the area and actions their grant allows. What was passed on stays attached to the grant it came from: revoke that grant and the passed-on grants end too, and giving the person a fresh grant later does not bring them back. Amina passed procedure editing on to four officers; revoking Amina’s grant ends theirs, and regranting Amina does not restore them.
  • root grant (code: a grant with no parent grant, made by bootstrap_root) — the first authority grant of a country. No other grant issued it, and each other staff permission comes from it. Only the audited first-administrator command of the operator makes one. The command reads an input file with an operation id, so a second run of the same file is safe. The operator names Amina in the file. The command gives her the root grant, and she then equips the other administrators.
  • procedure caseload (code: the action procedure.caseload_read, “View procedure caseload”) — the applications received for a procedure, including how many are still in progress. Reading it is a permission of its own, separate from publishing. Thabo may publish the company registration, but without this permission the count of applications in progress is not his to see.
  • filing conversations (code: the action filing.conversation_read, “View filing conversations”) — the comments and the clarifications on one filing. Reading them is a permission of its own, separate from “View assigned filings” (filing.read). So a staff member can open a filing and still not read the discussion on it. A records officer opens the business licence filing but cannot read the reviewers’ notes on it.
  • live update stream (code: GET /api/v1/events/stream) — the open connection that pushes each change on a filing to a browser. The screen then changes without a refresh. The reviewer’s screen shows the applicant’s new answer the moment it arrives.

Runner hosts (the machines that run our automated checks)

  • service container — a helper container, almost always a test database, that GitHub Actions starts beside one CI job and removes when the job ends. The ports: line under it in the workflow file decides who else can reach it. The backend test job gets its own Postgres this way.

  • loopback address (code: 127.0.0.1) — the address a machine uses to talk to itself; a port bound there answers programs on the same machine and nobody else. A test database published as 127.0.0.1::5432 serves the job’s own steps but not a stranger on the internet, firewall or no firewall.

  • rootless Docker — Docker run by an ordinary user instead of root, so a container cannot touch root-only files on the host. The CI runner pool uses it. It also decides whether the host firewall applies: a port rootless Docker publishes is filtered by ufw; one published by root Docker skips it. ufw blocks a port a CI job publishes, but not one a Coolify app publishes.

  • rollback timer — a change to a remote server’s firewall that is scheduled to undo itself after a few minutes unless someone cancels it, so a mistake cannot lock everyone out for good. If the new rules cut off SSH, wait ten minutes and log in again.

  • base image — the image that a FROM line of the Dockerfile names. Our app image is the base image plus our code. The Python inside it is the Python the app runs on. The Dockerfile names two base images: a builder that installs the libraries and a runtime that runs the app.

  • the lock (uv.lock) — the one file that names an exact version, with hashes, of every Python library. The app, the tests and the test box install from it. Only a pull request changes it, and the tests run on the new list before it lands. Not the JavaScript lockfile of a frontend project. A Dependabot pull request changes one line of the lock. The full suite then runs on that library version before it lands.

Changing the encryption key

The platform seals personal values with an encryption key. An operator changes that key with docs/runbooks/vault-key-rotation.md. These eight words are in that runbook and in the output of its commands.

  • sealed value — a stored value that the encryption key protects. Each one carries its key version. The name on a card in the vault is a sealed value.
  • key version — the number of the key that sealed a value. The active version is the key version that seals each new value. After one key change, each older value has key version 1 and each new value has key version 2.
  • re-encrypt — to open a sealed value with its old key and seal it with the active key. The content does not change. After a key leak, the operator re-encrypts each older value. The leaked key then opens no value of the live database.
  • forget a key version — to remove the row of an old version from the table platform_kek_versions. The start then no longer asks for that key. When no value has key version 1, the operator forgets version 1 and removes its key.
  • verified value — a sealed value in a column that the code declares as sealed. Only a verified value moves at a re-encrypt, and only a verified value is in a total of the count. The name on a card in the vault is a verified value.
  • orphan match — a sealed value in a table or in a column that the code does not declare. The table belongs to the vault or to the registers. No command can move it, and its key cannot go. The JSON output of the count gives these matches under the key orphan. An earlier register model left a table with sealed values. Each one is an orphan match.
  • unverified match — text with the form of a sealed value, in each other place. No command opens it, writes it or counts it. A person typed text with that form into a note. The count shows it as an unverified match.
  • blind column — a column that the code declares as sealed, with a database type that the count does not read. The count does not know what it holds, so no key can go. The JSON output of the count gives these columns under the key blind. A sealed column of the database type jsonb is a blind column.