Wrap a compound verify clause in a shell inside ralibi run
PitfallVerified 30 Sep 2026Holds project: ralibi
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A proof for a build-and-test clause records only the build, not the test.
Cause#
The outer shell runs the second command outside ralibi when the compound clause is not passed as one shell invocation.
Fix#
Pass the full clause to sh -c after ralibi's command separator. For the ledger-core task, use:
Rerun the full clause. Keep the earlier record in the append-only ledger; the latest record is used.
Evidence#
Inbox d40677c980 reports that the first task 1.1 proof recorded only half of build && test. The agent reran it with sh -c, then reported that the gate passed with all tasks proved. The ledger retained both task 1.1 records.
Also found by searching
- ralibi run 1.1 -- cargo build && cargo test recorded only the build
- my proof ledger entry is missing the test part of a build and test command
- how do I run a compound command with && under ralibi run
- shell splits && outside wrapper, use sh -c with full clause
- ralibi run 1.1 -- cargo build -q && cargo test -q only the build was recorded in the ledger
- proof for build && test clause recorded half, tests ran outside ralibi
- how do I pass a compound verify command with && to ralibi run?
- ralibi run -- sh -c '...' command separator and append-only ledger rerun