Repository navigation
feat(core,cli,web): release provenance, signed tags and dg release verify (E5) - #381
Merged
Merged
Conversation
…rify Each release's page gets a Provenance card built from the chain: what the tag pointed at when the release was first published and who pushed it, every later move or deletion, asset changes since the first publish, the tag's signature, and whether tags are protected. It is red when the tag moved, was deleted or races, or the assets changed; the release list marks such releases. dg release verify prints the same and exits E504. Shared rules with vectors: release_provenance (baseline from the tag's history at publish, or the release's own recorded commit, so a later release.targetOid plugs in), and verify_tag_signature (git verify-tag's split, the commit verifier's keys and rules). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A tag deleted or racing at the first publish is no late tag, so a later push reads as a move instead of a new baseline. A release's pin counts only when the tag named nothing at publish (an annotated tag's ref names a tag object, not the pinned commit). Sealed drafts are not publishes. dg release verify reads signing keys only for a signed tag object here, and a failed read leaves the signature unchecked instead of failing the command. The list chip skips never-pushed tags; asset names sort by code point on both sides; the tag-signature row no longer shows a stale or premature state. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (43)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Brings #372's review fixes and master. rules.rs keeps the protection runner beside master's repo-name and mirror runners; tag_signature stays routed to the signature runner. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
rules.rs declares both provenance and master's ref_collision. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The summary says what it checks and when it fails, in under 40 words; how it checks moves to the details. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
conformance.test.ts imports both verifyTagSignature and master's key-handoff helpers (#375). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 5, 2026
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.
Epic E5, release provenance. Stacked on #372 (D6 default protection). Until #372 merges, this diff includes its commits. The commits that belong to this PR are
fb790bc7,23bdd86dand37d6ff8a.What it adds
release_provenance. Rust is incrates/forge-core/src/rules/provenance.rsand TS inforge-web/lib/rules/releaseProvenance.ts. Both are checked against the vectorsrelease_provenance__*. The rule works out what a release's tag pointed at when the release was first published, from on-chain tag history:resolve_refover the updates written up to then.targetOid, or a laterrelease.targetOid) is judged against that record only when the tag named nothing at publish.split_signed_tagandverify_tag_signaturereuse the feat(signatures): Verified badges on signed commits from profile keys (P1-7, 2/2) #348 signature code and verify against members' profile keys. Vectors aretag_signature__*and the fixture key isforge-contracts/fixtures/signing/t.pub.dg release verify <repo> <tag>prints the same checks (--jsonsupported). It exits with E504 when the tag moved, was deleted, races or was never pushed, or when the assets changed. Inside a clone that holds the tag object, it also checks the tag's signature.RepoService::ref_historyreturns one ref's full update history plus the config timeline.docs/errors.md(E504),docs/guides/collaborating.md.Review fixes (
37d6ff8a)deleted_at_publish_is_not_late.pin_yields_to_tag_history.pinned_by_releasenow covers a late tag.dg release verifyreads signing keys only for a signed tag object present in local git. A failed key read now leaves the signature "not checked" instead of failing the whole command.assets_sorted_by_code_point.Not in this PR
The brief's "force-pushed" and "protection lifted/restored" badges in a branch/ref timeline are not here. The web app has no branch or ref timeline to put them in; PR timelines already say "force-pushed". That needs a new ref-history view and is left for a follow-up.
Evidence
Live on devnet sakura:
dash-forge-qa/evidence/p0/release-provenance/live-e5-a2.txt(scriptlive-e5.sh):Verified.Screenshots (light, and dark at 390 px):
e5-provenance-v0.1.0-*.png(moved),e5-provenance-v0.3.0-*.png(signed, unchanged),e5-releases-list-*.png(chip).Gates
cargo fmt --check,cargo clippy -D warnings, andcargo testfor forge-core rules and dg releasetsc,eslint, and vitest forlib/rules(845 tests) and release-provenance🤖 Generated with Claude Code