feat(release): prove reproducible artifact identity - #55
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
@coderabbitai review Please review exact current draft head |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
repo='ContextualWisdomLab/pg-llm-batch'
head_sha='99ecff7aa98f8273490814d77b60e08ad799c958'
base_sha='27a2e6386e956986405ae6c7fb6ed9f615a433ae'
tmp_dir="$(mktemp -d)"
trap 'rm -rf "$tmp_dir"' EXIT
echo '== Commit identity and ancestry =='
git rev-parse "${head_sha}^{commit}"
git rev-parse "${base_sha}^{commit}"
git show -s --format='head=%H%nparents=%P%nsubject=%s' "$head_sha"
git merge-base --is-ancestor "$base_sha" "$head_sha" && echo 'base_is_ancestor=true' || echo 'base_is_ancestor=false'
echo '== Changed paths and whitespace =='
git diff --name-status "$base_sha" "$head_sha"
git diff --check "$base_sha" "$head_sha"
echo '== Exact-head implementation outline =='
git show "${head_sha}:pg_llm_batch/release_evidence.py" > "$tmp_dir/release_evidence.py"
ast-grep outline "$tmp_dir/release_evidence.py" --items all --type function,class
echo '== Exact-head verifier, workflows, packaging, and tests =='
for path in \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' \
'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py' \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
do
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" | nl -ba
done
echo '== Focused exact base-to-head diff =='
git diff --no-ext-diff --unified=45 "$base_sha" "$head_sha" -- \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' 'uv.lock' 'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py' \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
echo '== Exact-head control references =='
git grep -nE \
'uv==0\.12\.1|uv_build==0\.12\.1|SOURCE_DATE_EPOCH|PYTHONHASHSEED|TZ=|LC_ALL=|git archive|persist-credentials|permissions:|release-manifest|sha256|symlink|is_file|is_symlink|islice|SLSA v1\.2|stacked|stale|retarget' \
"$head_sha" -- \
'.github' 'pyproject.toml' 'Dockerfile' 'pg_llm_batch' 'tests' 'docs' || true
echo '== Exact workflow run provenance =='
for run_id in 31066416309 31066416323; do
gh api "repos/${repo}/actions/runs/${run_id}" \
--jq '{id,name,head_sha,event,status,conclusion,workflow_id,html_url,created_at,updated_at}'
done
echo '== Current pull request state, informational only =='
gh pr view 55 --repo "$repo" \
--json headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup \
--jq '{headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup:[.statusCheckRollup[]|{name,status,conclusion,headSha}]}'Length of output: 4900 🏁 Script executed: #!/bin/bash
set -euo pipefail
repo='ContextualWisdomLab/pg-llm-batch'
head_sha='99ecff7aa98f8273490814d77b60e08ad799c958'
base_sha='27a2e6386e956986405ae6c7fb6ed9f615a433ae'
print_file() {
path="$1"
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" | awk '{printf "%5d %s\n", NR, $0}'
}
echo '== Exact-head verifier, workflows, package configuration, and tests =='
for path in \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' \
'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py'
do
print_file "$path"
done
echo '== Exact-head documentation excerpts =='
for path in \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
do
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" |
grep -n -E -C 4 'stack|base|merge|retarget|head|stale|SLSA|artifact|manifest|uv|SOURCE_DATE_EPOCH|permission|pin|symlink' || true
done
echo '== Focused exact base-to-head diff =='
git diff --no-ext-diff --unified=45 "$base_sha" "$head_sha" -- \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' 'uv.lock' 'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py' \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
echo '== Exact-head control references =='
git grep -nE \
'uv==0\.12\.1|uv_build==0\.12\.1|SOURCE_DATE_EPOCH|PYTHONHASHSEED|TZ=|LC_ALL=|git archive|persist-credentials|permissions:|release-manifest|sha256|symlink|is_file|is_symlink|islice|SLSA v1\.2|stacked|stale|retarget' \
"$head_sha" -- \
'.github' 'pyproject.toml' 'Dockerfile' 'pg_llm_batch' 'tests' 'docs' || true
echo '== Exact workflow run provenance =='
for run_id in 31066416309 31066416323; do
gh api "repos/${repo}/actions/runs/${run_id}" \
--jq '{id,name,head_sha,event,status,conclusion,workflow_id,html_url,created_at,updated_at}'
done
echo '== Current pull request state, informational only =='
gh pr view 55 --repo "$repo" \
--json headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup \
--jq '{headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup:[.statusCheckRollup[]|{name,status,conclusion,headSha}]}'Length of output: 139160
I verified that the supplied base is an ancestor of the supplied head. I verified that Release Acceptance run I also verified the direct and nested manifest-parent symlink checks before The PR is a draft and has no GitHub-generated merge commit in the current PR state. I did not treat this stacked-base evidence or absent default-branch required workflows as final merge evidence. I did not submit approval. You are interacting with an AI system. |
|
@coderabbitai review Please review exact current draft head |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
repo='ContextualWisdomLab/pg-llm-batch'
head_sha='3660bb9edd6351a9c02d9507f08ed647ddbf0d3a'
base_sha='27a2e6386e956986405ae6c7fb6ed9f615a433ae'
tmp_dir="$(mktemp -d)"
trap 'rm -rf "$tmp_dir"' EXIT
echo '== Commit identity and ancestry =='
git rev-parse "${head_sha}^{commit}"
git rev-parse "${base_sha}^{commit}"
git show -s --format='head=%H%nparents=%P%nsubject=%s' "$head_sha"
git merge-base --is-ancestor "$base_sha" "$head_sha" && echo 'base_is_ancestor=true' || echo 'base_is_ancestor=false'
echo '== Base-to-head changed paths and whitespace =='
git diff --name-status "$base_sha" "$head_sha"
git diff --check "$base_sha" "$head_sha"
echo '== Python implementation outline =='
git show "${head_sha}:pg_llm_batch/release_evidence.py" > "$tmp_dir/release_evidence.py"
ast-grep outline "$tmp_dir/release_evidence.py" --items all --type function,class
echo '== Exact-head implementation, workflows, configuration, and tests =='
for path in \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' \
'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py'
do
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" | nl -ba
done
echo '== Exact-head docs: release boundaries and symlink semantics =='
for path in \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
do
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" |
rg -n -C 4 'stack|base|merge|retarget|head|stale|SLSA|artifact|manifest|uv|SOURCE_DATE_EPOCH|permission|pin|symlink' || true
done
echo '== Focused exact base-to-head diff =='
git diff --no-ext-diff --unified=55 "$base_sha" "$head_sha" -- \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' 'uv.lock' 'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py' \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
echo '== Exact workflow run provenance =='
for run_id in 31067011861 31067011832; do
gh api "repos/${repo}/actions/runs/${run_id}" \
--jq '{id,name,head_sha,event,status,conclusion,workflow_id,html_url,created_at,updated_at}'
done
echo '== Current pull request state, informational only =='
gh pr view 55 --repo "$repo" \
--json headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup \
--jq '{headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup:[.statusCheckRollup[]|{name,status,conclusion,headSha}]}'Length of output: 4856 🏁 Script executed: #!/bin/bash
set -euo pipefail
repo='ContextualWisdomLab/pg-llm-batch'
head_sha='3660bb9edd6351a9c02d9507f08ed647ddbf0d3a'
base_sha='27a2e6386e956986405ae6c7fb6ed9f615a433ae'
print_file() {
path="$1"
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" | awk '{printf "%5d %s\n", NR, $0}'
}
echo '== Exact-head verifier, workflows, configuration, and tests =='
for path in \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' \
'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py'
do
print_file "$path"
done
echo '== Exact-head documentation excerpts =='
for path in \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
do
printf '\n===== %s =====\n' "$path"
git show "${head_sha}:${path}" |
grep -n -E -C 4 'stack|base|merge|retarget|head|stale|SLSA|artifact|manifest|uv|SOURCE_DATE_EPOCH|permission|pin|symlink' || true
done
echo '== Focused exact base-to-head diff =='
git diff --no-ext-diff --unified=45 "$base_sha" "$head_sha" -- \
'pg_llm_batch/release_evidence.py' \
'.github/workflows/release-acceptance.yml' \
'.github/workflows/ci.yml' \
'pyproject.toml' 'uv.lock' 'Dockerfile' \
'tests/test_release_evidence.py' \
'tests/test_release_acceptance_workflow.py' \
'tests/test_container_packaging_contract.py' \
'tests/test_packaging_metadata.py' \
'tests/test_release_evidence_documentation.py' \
'docs/doctoring/reproducible-release-evidence.md' \
'docs/adr/0003-reproducible-release-evidence.md'
echo '== Precise control references =='
git grep -nE \
'uv==0\.12\.1|uv_build==0\.12\.1|SOURCE_DATE_EPOCH|PYTHONHASHSEED|TZ=|LC_ALL=|git archive|persist-credentials|permissions:|release-manifest|sha256|symlink|is_file|is_symlink|islice|count mismatch|exactly two' \
"$head_sha" -- \
'.github' 'pyproject.toml' 'Dockerfile' 'pg_llm_batch' 'tests' 'docs' || true
echo '== Exact workflow run provenance =='
for run_id in 31067011861 31067011832; do
gh api "repos/${repo}/actions/runs/${run_id}" \
--jq '{id,name,head_sha,event,status,conclusion,workflow_id,html_url,created_at,updated_at}'
done
echo '== Current pull request state, informational only =='
gh pr view 55 --repo "$repo" \
--json headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup \
--jq '{headRefOid,baseRefOid,isDraft,mergeCommit,statusCheckRollup:[.statusCheckRollup[]|{name,status,conclusion,headSha}]}'Length of output: 140961
The supplied base is an ancestor of the supplied head. The prior count-diagnostic finding is addressed. I also verified these controls:
Release Acceptance run The PR is still a draft. GitHub currently reports You are interacting with an AI system. |
Superseded by #57
Closed unmerged after live ancestry and security-boundary review proved that the unchanged final release-evidence head in #57 already contains this PR in full and should be reviewed as the only protected-main release slice.
Exact consolidation evidence:
49ef42cb93dd8b05e532f41638851cefb461b908is an ancestor of feat(release): deliver descriptor-pinned reproducible evidence #57 head6a6fac2a99134f2bf0271d0d550dffd36ddb6d9cby 18 commits and 0 behind;f6f328a8b9f7db57c5286be00c854fafc0b5bbf8, with that head as its merge base;All source history, RED/GREEN evidence, and prior CI/Release Acceptance runs remain available on this branch as development provenance. None transfers as final acceptance to #57 after its base change. #57 must reacquire all required exact-head/exact-base gates and independent approval before merge.