Skip to content

feat: add integrity sign-backfill command#546

Merged
dollspace-gay merged 4 commits intodevelopfrom
feat/integrity-sign-backfill
Apr 1, 2026
Merged

feat: add integrity sign-backfill command#546
dollspace-gay merged 4 commits intodevelopfrom
feat/integrity-sign-backfill

Conversation

@dollspace-gay
Copy link
Copy Markdown

@dollspace-gay dollspace-gay commented Apr 1, 2026

Summary

  • Adds 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 commits
  • Uses a separate crosslink-backfill namespace and backfill@crosslink principal to clearly distinguish human attestation from original agent signatures
  • Updates verify_entry_signatures to recognize backfill-signed entries via fallback principal check, so they count as verified in the audit

Test plan

  • cargo build — clean, no warnings
  • cargo test — all 4,623 tests pass
  • Dry-run verified: crosslink integrity sign-backfill correctly found 391 unsigned entries (182 V1 inline + 209 V2 standalone)
  • Run with --confirm on a test repo to verify signing + commit + push flow
  • Run crosslink sync after backfill to verify unsigned count drops to 0

Closes #645

🤖 Generated with Claude Code

…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>
@dollspace-gay dollspace-gay self-assigned this Apr 1, 2026
dollspace-gay and others added 3 commits April 1, 2026 15:42
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>
@dollspace-gay dollspace-gay merged commit 67a9b0a into develop Apr 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant