Crossweft / Updates / v0.4.0
UPDATE · v0.4.0 ·

The map now shows what broke, and asks for an alarm on every seam

crossweft report draws the check's findings on the map; with meta.signals every link, service and flow needs an alarm, and crossweft signals lists the rules.

Two new commands, a check that the map is watched in production, and fixes found by an independent review before the release.

Why. The map knew which service talks to which, but a failing check was a list of lines, and the map said nothing about what happens when a seam breaks in production. A link can be correct in the code and still fail at night with nobody told.

crossweft report. The map page with what the check found on it. Links and blocks with a failing problem are red, and a click names the file and the line. A Routes tab lists every route from the map, the server and the client, with the check's verdict per row. A Buttons tab draws each control's chain: control, dispatch table, handler, route, with the break in red. render stays the model alone, so the committed map carries no check state.

Signals. Add meta.signals (who gets the alarm, and an always-firing watchdog), and check asks for an alarm on every seam:

  • an HTTP link: requests, errors and latency;
  • a queue link (new transport queue): depth, the age of the oldest message, and its dead-letter queue;
  • a running service or site: a health check, or a heartbeat for a background worker;
  • a flow: a synthetic probe that walks the whole chain from outside.

An entry without one fails, unless it says why with skip. The check also reads the code: a heartbeat names the code that sends it, a GET /path health check must be a route the server registers, and with trace_header both ends of an HTTP link must pass the trace header on. crossweft signals turns the same map into a catalog of alarm rules, with default thresholds you can override per entry. The map draws a bell on every watched block and link.

Smaller changes. A join that disagrees is now reported at the side that was edited, not at whichever file came second. pairs take "compare": "tokens", so a formatter run no longer asks for a new attestation. crossweft doctor names the crossweft installs on the machine and which one runs.

Fixed before release. An independent review found that a note containing <!--<script could blank the whole map page, and that tokens mode could miss a statement pulled into a line comment. Both are fixed, tokens mode is refused for languages where indentation is syntax, and each fix has a test that fails on the old code.

After upgrading, run crossweft render once: the viewer template changed.

Source: v0.4.0 · CHANGELOG.md

← v0.3.0v0.5.0 →