gabriel / musehub public
feat patch release recon/musehub-114-signed #3 / 9
AI Agent gabriel · 13 days ago · Nov 4, 2026 · Diff

feat(release): gate report bound to the exact artifact, gate runner and packaging checks (musehub#114 Phase 6)

verify_report recomputes the decision, requires every gate (packaging, install, runtime) present with exit 0, freshness, and the artifact's real sha256 and version. Missing/malformed/stale/mismatched evidence raises GateError. run_gates records nonzero exits, timeouts and missing commands as failures; interruption writes no report. release_checks.py: reproducible sdist (content-level), version agreement, dependency metadata, installer_contract agreement.

Reconstructed-from: sha256:d72c8367cdb2ce406aeaf190deead02351e50ccf7b33044f7511125c5d841de4 Original-committed-at: 2026-11-02T23:12:40.206380+00:00

sha256:5c8cb67657bbffc367d7e4b74e9fd7dea32dada487ae1ef893d2d5abfa0447e1 sha
+102 symbols
3 changed · 1129 in snapshot files
sha256:0c49fda58b45f435bbfba92a306d11d7f858017bd597aa3c8936975327656c09 snapshot
+102
symbols added
3
files changed
1129
files in snapshot
0
dead code introduced
Semantic Changes 102 symbols
~ deploy/release_checks.py .py 23 symbols added
+ CheckFailed class class CheckFailed L28–29
+ _members function function _members L39–48
+ _pkg_info function function _pkg_info L51–57
+ _read_member function function _read_member L60–65
+ _version_of function function _version_of L32–36
+ dependency_metadata function function dependency_metadata L92–106
+ InvalidRequirement import import InvalidRequirement L24–24
+ Path import import Path L22–22
+ Requirement import import Requirement L24–24
+ Version import import Version L25–25
+ annotations import import annotations L12–12
+ parser import import email.parser L14–14
+ hashlib import import hashlib L15–15
+ re import import re L16–16
+ subprocess import import subprocess L17–17
+ sys import import sys L18–18
+ tarfile import import tarfile L19–19
+ tempfile import import tempfile L20–20
+ tomllib import import tomllib L21–21
+ main function function main L119–134
+ manifest_contract function function manifest_contract L109–116
+ reproducible function function reproducible L68–78
+ version function function version L81–89
~ deploy/release_gate.py .py 41 symbols added
+ Candidate class class Candidate L71–75
+ DEFAULT_MAX_AGE variable variable DEFAULT_MAX_AGE L44–44
+ GateError class class GateError L66–67
+ GateResult class class GateResult L79–82
+ REPORT_SCHEMA variable variable REPORT_SCHEMA L43–43
+ REQUIRED_GATES variable variable REQUIRED_GATES L47–63
+ Runner variable variable Runner L212–212
+ _CLOCK_SKEW variable variable _CLOCK_SKEW L45–45
+ _cwd_for function function _cwd_for L268–269
+ _parse_candidate function function _parse_candidate L163–177
+ _parse_gates function function _parse_gates L192–207
+ _parse_time function function _parse_time L180–189
+ _passed function function _passed L85–86
+ build_report function function build_report L89–111
+ default_gate_commands function function default_gate_commands L246–265
+ Any import import Any L39–39
+ Callable import import Callable L35–35
+ Mapping import import Mapping L35–35
+ Path import import Path L38–38
+ ReleaseSelectionError import import ReleaseSelectionError L41–41
+ Sequence import import Sequence L35–35
+ annotations import import annotations L26–26
+ argparse import import argparse L28–28
+ dataclass class import dataclass L36–36
+ datetime import import datetime L37–37
+ json import import json L29–29
+ os import import os L30–30
+ platform import import platform L31–31
+ sha256_file import import sha256_file L41–41
+ subprocess import import subprocess L32–32
+ sys import import sys L33–33
+ tempfile import import tempfile L34–34
+ timedelta import import timedelta L37–37
+ timezone import import timezone L37–37
+ validate_sha256 import import validate_sha256 L41–41
+ validate_version import import validate_version L41–41
+ main function function main L294–324
+ run_gates function function run_gates L215–243
+ run_release_gates function function run_release_gates L272–280
+ verify_report function function verify_report L114–160
+ write_atomic function function write_atomic L283–291
~ tests/test_release_checks.py .py 38 symbols added
+ TestDirStorage class class TestDirStorage L162–172
+ test_create_only_and_replace method method test_create_only_and_replace L163–172
+ TestPackagingChecks class class TestPackagingChecks L36–77
+ test_cli_exits_nonzero_on_failure method method test_cli_exits_nonzero_on_failure L74–77
+ test_good_sdist_passes_metadata_checks method method test_good_sdist_passes_metadata_checks L37–38
+ test_manifest_contract_mismatch_fails method method test_manifest_contract_mismatch_fails L66–72
+ test_missing_all_extra_fails method method test_missing_all_extra_fails L40–42
+ test_no_requires_dist_fails method method test_no_requires_dist_fails L44–46
+ test_non_canonical_version_fails method method test_non_canonical_version_fails L59–64
+ test_version_must_agree_across_filename_pkginfo_and_pyproject method method test_version_must_agree_across_filename_pkginfo_and_pyproject L48–57
+ TestS3Storage class class TestS3Storage L136–159
+ test_any_unexpected_backend_error_is_unavailable_never_missing method method test_any_unexpected_backend_error_is_unavailable_never_missing L152–159
+ test_create_only_put_is_conditional_and_refuses_overwrite method method test_create_only_put_is_conditional_and_refuses_overwrite L137–143
+ test_exists_read_list method method test_exists_read_list L145–149
+ _Body class class _Body L80–85
+ __init__ method method __init__ L81–82
+ read method method read L84–85
+ _FakeS3 class class _FakeS3 L88–133
+ __init__ method method __init__ L91–94
+ _err method method _err L96–99
+ _maybe_fail method method _maybe_fail L101–103
+ delete_object method method delete_object L130–133
+ get_object method method get_object L111–115
+ head_object method method head_object L105–109
+ list_objects_v2 method method list_objects_v2 L125–128
+ put_object method method put_object L117–123
+ DirStorage import import DirStorage L13–13
+ ObjectExists import import ObjectExists L13–13
+ S3Storage import import S3Storage L13–13
+ StorageUnavailable import import StorageUnavailable L13–13
+ annotations import import annotations L3–3
+ io import import io L5–5
+ pathlib import import pathlib L6–6
+ pytest import import pytest L10–10
+ rc import import rc L12–12
+ tarfile import import tarfile L7–7
+ textwrap import import textwrap L8–8
+ sdist function function sdist L16–33
Files Changed
+3
1129 in snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:5c8cb67657bbffc367d7e4b74e9fd7dea32dada487ae1ef893d2d5abfa0447e1 --body "your comment"