R94 Check text you sent against the file you sent it from

Off by default

Repealed.

When you check text you passed through a shell, compare what arrived with the file you passed it from.

Reason

A shell that changed the text produces text that still reads well: a value replaced, a code span gone. Reading back only what arrived passes whether or not the text changed, so it does not check that it arrived intact (Art. VII §2); a comparison with the file it came from catches every change.

Verification

The file is the one rule 93 has the agent write, kept until the check is done. The comparison is a diff, or another comparison of every character, between that file and the text as the receiving side holds it, such as the body of the pull request as the host returns it.

Violated when an agent states that text it passed through a shell arrived intact, or was checked, without such a comparison.

Provisions of the constitution it cites

Relations

Parent
R13 Security
Requires
R93 Pass text through a shell only from a file written with a quoted heredoc
Conflicts with
none

Metadata

ID
94
Revision
4
Kind
rule
Status
repealed
Slug
check-sent-text-against-its-file
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh