feat: add integrity sign-backfill command#546
Merged
dollspace-gay merged 4 commits intodevelopfrom Apr 1, 2026
Merged
Conversation
…signed entries Adds `crosslink integrity sign-backfill [--confirm] [--key PATH]` which retroactively signs unsigned hub entries with a human's SSH key. This attests that missing signatures were a system error, not unapproved commits. - Dry-run by default; --confirm to apply signatures - Uses separate "crosslink-backfill" namespace to distinguish from original agent signatures - Registers human key in allowed_signers as backfill@crosslink - Updates verify_entry_signatures to recognize backfill signatures via fallback principal check - Handles both V1 inline comments and V2 standalone comment files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crosslink integrity sign-backfill [--confirm] [--key PATH]— retroactively signs unsigned hub entries with a human's SSH key as attestation that missing signatures were a system error, not unapproved commitscrosslink-backfillnamespace andbackfill@crosslinkprincipal to clearly distinguish human attestation from original agent signaturesverify_entry_signaturesto recognize backfill-signed entries via fallback principal check, so they count as verified in the auditTest plan
cargo build— clean, no warningscargo test— all 4,623 tests passcrosslink integrity sign-backfillcorrectly found 391 unsigned entries (182 V1 inline + 209 V2 standalone)--confirmon a test repo to verify signing + commit + push flowcrosslink syncafter backfill to verify unsigned count drops to 0Closes #645
🤖 Generated with Claude Code