Crossweft / Updates / v0.3.0
UPDATE · v0.3.0 ·

Every fallback is now the owner's decision

A new fallbacks check finds every place the code carries on after a failure and fails on any the owner has not approved: AI agents propose, the owner decides.

One new check, a channel for reports about Crossweft itself, a new example, and docs that match the code.

Why. An AI coding agent that hits a failing step under pressure makes it "work": it catches the error and goes on, reads a setting with a default, silences a command. Each of these changes what the program does when something breaks, and nobody decided it. The tests stay green because the failure no longer shows.

fallbacks. With a fallbacks section in crossweft.json, Crossweft finds every place where the code carries on after a failure:

  • an error caught and not raised again: Python except, Go if err != nil, catch in JS/TS, C#, C/C++ and PowerShell;
  • Python contextlib.suppress;
  • an environment variable read with a default;
  • PowerShell SilentlyContinue.

Each one is checked against the owner's decisions in seams/fallbacks.json. check fails on a fallback the registry does not list, a refused one still in the code, an agreed one whose code changed, and an entry whose site is gone. Proposed ones are the queue of decisions, counted on every run; with "strict": true they fail too, for CI or a release gate.

Agents propose, the owner decides. An agent registers a site with crossweft fallbacks propose, saying what happens and why. The owner reads the map (crossweft fallbacks, or --md PATH for a Markdown page) and runs crossweft fallbacks decide FB-0003 approve or reject. A refused fallback must leave the code; an agreed one may not change without a new proposal. A comment fallback: FB-0001 ties a site to its entry, and a helper that hides a fallback is registered as a wrapper and listed with all its calls.

Signed decisions. Without fallbacks.signers, anyone who can edit the registry, an agent included, can approve an entry, and check says so. With it, a decision counts only with the owner's SSH signature. That holds against an agent when the key asks for a touch and a PIN (a FIDO2 key) and the list of trusted keys lives outside the repository.

Limits. Crossweft reads patterns, not data flow: a fallback written in a shape not listed above is not found, and in Go only if <error variable> != nil blocks are read.

feedback. Set feedback in crossweft.json to your own channel, and a failing check or actions and the agent hook messages about seams add one line with it, naming the part involved.

examples/decision-ledger. Agreed settings kept in a signed, append-only ledger: a later chat that changes the code, the decisions file, an old entry, the signer file or the bound guard fails check or the example's validator. The repository carries no signatures: python tools/ledger.py demo --key <your key> builds the signed ledger from decisions/demo.json with your own key.

Docs. The README and docs now describe what the tool does: the stop hook runs the incremental check, ui_actions is the fourth guard, and the natively scanned routers, gone, validators --incremental and exclude, hazards and the features above are all covered.

After upgrading, run crossweft agents again: the skill now tells agents to propose fallbacks and never decide them.

Source: v0.3.0 · CHANGELOG.md

← v0.2.10v0.4.0 →