Would you merge this checkout change?
A shop lowers its free-shipping threshold from EUR 75 to EUR 50, inclusive. The proposed change still charges a customer EUR 4.99 on a cart worth exactly EUR 50. Guard checked both versions against the same three carts.
| Cart subtotal | Expected shipping | First change | One-line fix |
|---|---|---|---|
| EUR 49.99 | EUR 4.99 | EUR 4.99 | EUR 4.99 |
| EUR 50.00 | Free | EUR 4.99 - failed | Free - passed |
| EUR 50.01 | Free | Free | Free |
See the hosted failure · Compare the one-line fix · See the hosted pass
The first version tested whether the subtotal was greater than 5,000 cents. The fix included equality. Tiny Moon Labs submitted both versions to hosted Dengel Guard. Each record gives the exact commit, check command, verdict and charge. Both candidates used the same check. The fix reached human review. Inspect a separate example of a human-approved delivery and its signed receipt.
The local failure and local pass also show the fee returned for each cart. The replay uses copies of the shipping code and the same check from the hosted runs.
Replay both checks
With Git and a POSIX shell installed, run:
git clone https://git.dengel.dev/tiny-moon-labs/guard-free-shipping.git
cd guard-free-shipping
sh replay.sh
The first check exits 1 at EUR 50.00. The second exits 0 with all three carts passing. The replay command succeeds when it observes both expected results. It uses temporary directories and leaves your checkout on its current branch. No account, packages or credits are needed.
Try Guard on your own repository
- Open a Git project with Guard enabled in your Dengel workspace. If you need a hosted repository, start with Create a repository.
- Choose a rule your users rely on and write a check that exits nonzero when it breaks. Use your project's own build or test command. In Code > Checks > Edit checks, review and approve that command against the base before opening a proposal.
- In a fresh clone of that Dengel repository, make a small change on a branch. Commit it, push it under a new
candidate/branch and select Propose for review in Code. - On the proposal, confirm the commit, review the displayed quote and select Run checks. On failure, inspect the output and submit the fix as a fresh candidate. A passing check makes the change eligible for human review. You decide whether to merge.
