Skip to content

Review the hand edits. The mechanical changes come with proof.

When many agents change a repository, a reviewer needs to know which lines a person or model wrote and which a tool rewrote. Sailfork keeps that record and signs it at merge.

#452 Rename charge_total

sailfork pr ledger 452

Operations

  • LSP rename charge_total to order_total 14 files
  • ast-grep rewrite unwrap() to expect("order") 3 files

Residue

1 hand edit in src/totals.rs that no operation explains

Checks on the exact code of each commit

ci / test passed on the last commit

Review the residue. The operations are mechanical.

#458 Rename Session to AuthSession

Verified

  • Every changed file was written by a verified rename
  • No residue remains
  • A check ran clean on the last commit's code

Required approvals: 1 instead of 2

The merge rule refactorApprovals applies because a required CI check passes.

The check ran in the author's own sandbox. Proof tells a reviewer what the evidence is, not that nobody could forge it.

A verified rename needs fewer approvals.

When the ledger proves a pull request is only verified renames and a required CI check passes, the merge rule refactorApprovals replaces the normal approval count.

How proof works

Contract breaks are found without anyone asking.

A route gone from the API contract, a migration that is not additive, or a public Rust item removed while files still use it shows on the pull request.

What counts as a break

Contract breaks in #461

found automatically

  • route

    GET /api/orders/{id}/receipt is gone from the API contract

  • migration

    0042_drop_legacy_totals.sql drops a column

  • export

    pub fn legacy_total removed, still used by 6 files

Every merge is signed.

The attestation says which caissons and agents made the change, and carries the issues, operations, checks, proof state, contract breaks and risk score.

Commit 4e1d6a0

sailfork commit attestation 4e1d6a0

DSSE envelope

in-toto statement, SLSA provenance predicate, signed Ed25519

Made by
caisson c-4m1x, agent claude
Issues
#4121
Operations
1 LSP rename
Checks
ci / test passed
Proof
Verified
Contract breaks
none
Risk score
14

You can read every path

Full statement

Signature included

Some paths are hidden from you

Redacted copy

Signature dropped

A reader who cannot see some paths gets a redacted copy with the signature dropped. Verify the full one against the public key at /.well-known/sailfork/commit-signing-key.

Reading the record from the terminal

The ledger of a pull request, the ledger of a commit, then its attestation.

~/acme/shop
~/acme/shop $ sailfork pr ledger 452
Operations: LSP rename charge_total to order_total, ast-grep rewrite unwrap() to expect("order")
Residue: 1 hand edit in src/totals.rs
Checks: ci / test passed on the last commit
~/acme/shop $ sailfork commit ledger 4e1d6a0
Made outside a caisson: all residue
~/acme/shop $ sailfork commit attestation 4e1d6a0
DSSE envelope, in-toto statement, SLSA provenance predicate, signed Ed25519
~/acme/shop $ 

Limits

  • A pull request's proof is verified only when every changed file was written by a verified rename, no residue remains and a check ran clean on the last commit's code.
  • The merge rule refactorApprovals sets the required approvals for a verified-rename pull request with a required CI check passing, from 0 up to below the normal count.
  • An export break lists up to 20 files that still use the removed item.
  • A commit made outside a caisson is all residue.
  • Every merge records one attestation, signed with the server's commit signing key, which is public at /.well-known/sailfork/commit-signing-key.

Questions

Loading Sailfork