Regional availability¶
Use mise run uptime to open a local monthly availability report from GitLab service
incidents. The tool calculates a first pass automatically, trusting the maintained
timeline. Operators can inspect or correct the result without a mandatory review step.
This is an incident-record calculation, not continuous monitoring or an SLA assessment.
Run¶
Authenticate glab for GitLab.com and sign in to the Codex CLI. The default run sends
the collected incident descriptions, comments and native timelines to Codex for analysis.
Use an account authorised to process that evidence. No GitLab records are changed.
The default project is evenergi/develop. The default month is the previous UTC calendar
month. Regions are Australia (ap-southeast-2), UK (eu-west-2, also called Europe),
Canada (ca-central-1) and US West (us-west-1). Override with --project or
--regions Australia UK Canada "US West"; --model selects a Codex model.
The tool reads every accessible incident, including closed incidents and retrospective filings, and follows pagination for comments and native timelines. Collection and Codex analysis run before the browser opens and may take several minutes. Linked external evidence is not fetched. Insufficient evidence remains unresolved.
# Explore synthetic examples without GitLab or Codex access.
mise run uptime --demo --month 2026-10
# Collect evidence, then review manually or use ChatGPT.
mise run uptime --prepare --month 2026-10
# Reopen a previously downloaded report without external calls.
mise run uptime --input /path/to/availability-2026-10.json
Use --no-browser to print the local URL without opening it. --port selects a port;
otherwise the operating system assigns one. Keep the URL's session token private.
The server binds only to 127.0.0.1. Stop it with Ctrl+C.
Calculation and review¶
Any qualifying customer impact counts as downtime for the entire affected region. Details retain the specific customers, product and capability affected. This is a conservative regional measure; it does not imply every customer was affected.
Downtime follows the customer-task test in the public status operating guidance. Find that guidance through the BetterFleet Knowledge Base. An essential supported task must be unable to complete when needed without a practical workaround. For this tool's first pass, native timeline Start time and End time tags define the downtime interval. Their event timestamps take precedence over incident descriptions, comments and event-note wording, including claims that recovery times or workflow checks are unconfirmed. Python applies this rule to both automatic Codex output and imported AI analysis; conflicting prose does not block the percentage.
Codex identifies the affected regions, customers, products and capabilities. A complete tagged interval counts as downtime for those regions even when an AI interpretation of the description would exclude it. The UI displays the recorded timeline window and keeps the contextual notes. Missing customer names do not block a known region's calculation.
If no start/end tags exist, Codex uses explicit timeline impact/recovery events, then description/comment timing as a fallback. The assessment explains that fallback. Missing, invalid, reversed or multiple distinct start/end tags remain unresolved; the tool does not silently substitute creation, mitigation or closure dates for a broken tagged interval.
- Clip impact to the UTC month and count overlapping intervals once per region, across products and customer groups. Use actual month length, including leap years.
- Calculate
100 Γ (reporting seconds β union of downtime seconds) / reporting seconds. Display percentages to three decimal places, rounding down to avoid rounding an outage up to 100%. Retain full precision in the calculation. - For a current month, stop at evidence collection and label the report as partial. Explicitly ongoing impact stops at that same snapshot time. Missing recovery is not automatically ongoing impact.
- Genuinely missing impact times or uncertain classification suppress the affected region's percentage. Unknown region blocks every region unless the incident is explicitly excluded or evidenced outside the reporting period.
- Collection failures suppress percentages and block review. Recollect the evidence; do not turn an unreadable timeline into an empty timeline.
-
An empty incident list can produce first-pass 100% from recorded incidents. It does not establish that no outage occurred or that the account could access every record.
-
Read the regional first-pass percentages. No manual signoff is required to display, download or print them. Open an incident to inspect its timeline window and actual affected customers.
- Optionally use Edit assessment to correct classification, regions, affected customers and ISO-8601 timestamps with timezone offsets. Add intervals for distinct impact periods. Keep uncertain facts explicit; explain exclusions and retain supporting links.
- Select Save assessments to validate and recalculate. Failed validation preserves the last saved report. Any save or AI import clears the previous review.
- To record an optional review, confirm incident-record coverage, enter the reviewer name and select Mark reviewed. This records a local review, not approval of an SLA claim or proof of monitoring coverage.
- Download report to retain the evidence and assessments. Reopen it with
--input. Print includes every region's figures, evidence status and actual affected-customer details, regardless of the on-screen region filter. Printing preserves the filter and expanded/collapsed incidents when returning to the report.
Edits live only in the running process. Downloads contain internal incident and customer
details: retain them in approved controlled storage, not Git or repository scratch folders.
Reopened reports keep their original collection time and do not refresh from GitLab.
Run a fresh collection to incorporate source changes. --input uses the saved month and
regions; other selection flags do not override that snapshot.
Existing downloaded reports retain their assessments. Reports collected before timeline
tags were included need a fresh collection to use the tagged timing rule. Manual edits
are preserved when saving or reopening; a new AI import reapplies the timeline-first rule.
Codex and ChatGPT¶
Automatic analysis uses Codex non-interactive mode with a JSON output schema, a temporary working directory, a read-only sandbox, disabled shell/app/multi-agent/hook features, no user configuration and no persisted session. It uses the existing CLI authentication. An installed CLI must support those flags. AI output must account for every incident; it cannot replace the collected source evidence or mark a report reviewed. Temporary analysis files are removed when the invocation ends.
For ChatGPT or an existing Codex conversation, run --prepare, then select
Download AI analysis pack. Give the pack to the assistant and request JSON matching
its schema. Use Import AI analysis to load that response into the same report session.
Import produces a first pass and validates all incident IDs and assessments before changing data.
Keep the pack under the same access controls as the source evidence.
If Codex fails, the UI still opens with unresolved assessments and the manual/import path. If GitLab incident discovery fails, the command exits without presenting an empty report.
Verification¶
The owning tests are tests/uptime_test.py. Run them with the harness pytest environment.
They cover interval arithmetic, missing evidence, source pagination, model-result validation,
review transitions, local HTTP access and downloaded-report reopening.
Browser verification uses synthetic data; it does not require the Manage application stack.
The print regression check also needs Playwright, its Chromium browser and pypdf: