When the worker adds missing checks to evidence it already published (`job.additive`, `attest run --push origin --ref-only`), attest both builds and pushes. Three weaknesses follow, none of which loses a published note or publishes for the wrong tree: - A push that fails after the notes were stored is recorded as a failed build. The stored notes are not retried on their own: after the backoff (15 minutes at first) the whole batch runs attest again. A ready change waiting on an added check waits that long for a transient push failure. - For a request, the same push failure marks the request spent for good though every check passed; the client must file a new attempt. - A batch stopped while its `git push` runs releases its destination when attest ends, and the push's git process, which gets no parent-death handling (`attest/git.go` `gitRemote`), can outlive it. Another batch for the same destination can start in that interval. Leases protect origin; duplicate work and a failed push remain possible. Outcome: adding to published evidence is a step the worker owns and can resume: stored additions are pushed again without rebuilding, a publication failure is told apart from a check failure (for requests too), and the destination is held until the publisher has ended.
No comments.