Documentation
¶
Overview ¶
Command copycheck is the gate behind a rule that used to be a sentence: code of a copyleft reference (ffmpeg, FAAD2...) may be READ to understand, never copied or translated, and its tables never copied verbatim.
A repository declares what it read in .provenance.yml: name, URL, pinned revision, SHA-256 of the extracted tree, SPDX licence, and a role (studied, oracle, tables-from, ported-from). copycheck fetches each reference into a cache outside any repository, REFUSES a hash that differs, REFUSES a role the licence does not allow, and then looks for our code in theirs in two ways that do not depend on the language: runs of numeric literals (a table survives being retyped) and the shape of the code (a C function survives being translated into Go). See internal/copycheck for how, and the README for the thresholds and the control they were tuned on.
Exit status: 0 clean, 1 findings, 2 the question could not be answered (a reference unreadable, a hash mismatch, a bad manifest). An unreadable reference is never clean.