Docs / Use Caelo

Quality check

Before anything goes live, Caelo checks the staged build: every page for copied markup, broken links and page references, and Lighthouse with a target of 100 in every category. Every error blocks Publish live until it is fixed or a person accepts it.

What is checked

Every Stage is checked before it can go live. The check always looks at the staged build, the exact copy that Publish live puts online. There are two kinds of checks:

  • Page checks read every page of the staged build on every Stage. Caelo's core brings three: structure (the same markup on several pages instead of one module, two modules with identical templates, the same menu kept twice), links (every link, image, stylesheet, script, canonical and language link must be served by the build; redirect loops) and references (internal links to pages that were deleted, have no version in the page's language, or are still drafts at Publish live). Active plugins can add their own, see below.
  • Lighthouse rates Performance, Accessibility, Best Practices and SEO on a mobile viewport. The target is 100 in every category.

The target is the optimum: 100 in every category and zero findings. A 99 blocks as much as a 60. Whatever cannot be fixed comes to you as a decision.

Some rules run before every build: a published page without a meta description, a link to a deleted page or a page script that does not parse stops the Stage, and the message names the pages. How Stage and Publish live fit together is explained in Drafts, staging, publishing.

Checks from plugins

An active plugin can add page checks of its own. They read the same staged build, cannot change anything, and their findings land in the same report, with the same Fix and Accept options. A plugin check that fails, hangs or returns an invalid answer fails the whole check; it never counts as "nothing found". While an active plugin is not running, Publish live waits.

International Site is the first plugin that adds checks, starting with the next Caelo release. It warns when a menu, list, category or tag is not translated yet, when a menu entry points to a page that has no version in that language, and when a page's properties are not translated. These are warnings and do not block. A link to a page that has no version in the linking page's language is blocked by the core references check. See Multilingual sites.

When Lighthouse runs

Lighthouse runs after a Stage that can change how pages look or perform:

  • module HTML, CSS or JavaScript was created or changed;
  • a layout, template or the theme changed, or a live page moved to another template;
  • a new page goes live;
  • a plugin was activated, or plugin settings that render on pages changed;
  • it is the site's first Stage, or the previous check did not end clean.

A Stage that only changes texts and field values, moves existing modules, or edits SEO texts or redirects gets no Lighthouse run. The page checks still read every page.

Lighthouse covers up to five pages: the homepage plus up to four changed pages. Performance is the best of three runs. Before every check, Caelo measures the machine the runs happen on and sets the CPU slowdown so each run behaves like the same mid-range phone. The other categories are measured once. The result usually appears in the chat a minute or two after the Stage.

What blocks Publish live

A Stage is blocked when, on any checked page, and no acceptance covers it:

  • a Lighthouse category scores below 100;
  • a single Lighthouse audit scores below a perfect score (Lighthouse's own report shows scores from 0.9 in green; Caelo does not);
  • a page check reports an error.

Warnings and hints are shown, but never block. Findings caused by Caelo itself block too, and are reported as Caelo bugs.

Performance metrics

For every audited page, Caelo also records the numbers behind the Performance score: First Contentful Paint, Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift and Speed Index, plus the element that loads last and the elements that shift. These numbers never block on their own. Fixes are measured against them.

How it plays out in the chat

  1. You stage, or the assistant stages finished work. The result appears in the same chat.
  2. If there are problems, a card asks you first, with findings grouped by rule across pages, for example "Missing alt text (12 pages)". Nothing changes until you decide.
    • Fix all with AI fixes everything that can be fixed, then stages again, which checks again. It keeps going on its own as long as each round gets closer to the target; a round without progress, five rounds or 5 USD of AI cost stop it, and so does Stop.
    • Per group: Fix all, Accept all… (with a reason), or Pick pages to act on some pages only.
    • Not now leaves everything as it is. Publish live stays blocked.
    • Or type what you want instead.
  3. For anything that cannot be fixed, the chat explains why and offers one decision per group. A score below 100 is not presented as good enough, and accepting is not recommended.

Accepting findings

Some things cannot or should not be fixed: a third-party embed, a brand colour you want to keep. An editor can accept them, per group of findings, on all affected pages or on selected ones, with a reason.

An acceptance records the value measured at that moment. It blocks again when the page gets worse, and tightens when the page gets better. A Performance acceptance does not tighten; it stays until someone revokes it. For Performance only, a measured value may be up to 2 points below the accepted value before it counts as worse, because Performance varies a little between runs. That tolerance never applies against the target of 100.

When the check itself fails

If the check cannot produce a result, for example after a timeout or a browser crash, it never passes silently. Publish live stays blocked, with Retry check in the toolbar. If you must publish without a result, someone who may publish can choose Publish anyway… and give a reason. That decision is recorded with their name. The assistant can only propose it.

Automatic redeploys

A direct production build and the automatic redeploy follow the same rules. When only content changed since the last clean check, production is rebuilt directly. Otherwise the change is staged and checked first, and goes out only when the check is clean or every problem was accepted.

The quality view

Quality in the sidebar (/settings/quality) shows the gate of the current staged build and why it is open or blocked, recent checks with findings and metrics per page, all acceptances grouped by decision, and every "publish anyway". The Owner can revoke acceptances there. What was revoked blocks again at once.

Where it runs

The page checks run in the admin. Lighthouse runs apart from the editor's requests, so that other work does not distort the measurement. On Google Cloud every run gets its own short-lived container, all in parallel; that container reads only the staged build and writes its result, with no database access and no secrets. On your own server the runs happen one after another in a separate process of the admin, which also gets no database credentials or secrets. AWS and Azure have no Lighthouse runner yet; there the check counts as failed. The admin's memory setting (adminMemory) defaults to 2 GiB.

Something wrong or missing on this page? Open an issue on GitHub