Skip to content

Commit f88abbf

Browse files
steipetevincentkoc
andcommitted
fix(publication): prove supersession through the real publisher
Refresh against main, retain structured tuple evidence, reject unsafe or mixed results, and replace the fake apply CLI fixture with producer-to-publisher regression coverage. Co-authored-by: Vincent Koc <[email protected]>
2 parents b44bb38 + 9f343df commit f88abbf

243 files changed

Lines changed: 29872 additions & 5117 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/setup-codex/action.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ inputs:
2222
runs:
2323
using: composite
2424
steps:
25+
- name: Install trusted review scanner
26+
shell: bash
27+
run: bash "${{ github.action_path }}/../setup-review-tools/install.sh"
28+
2529
- name: Cache Codex CLI and npm downloads
2630
uses: actions/cache@v6
2731
with:

‎.github/actions/setup-openclaw/action.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ inputs:
1313
runs:
1414
using: composite
1515
steps:
16+
- name: Install trusted review scanner
17+
if: ${{ env.CLAWSWEEPER_RUNNER == 'openclaw' }}
18+
shell: bash
19+
run: bash "${{ github.action_path }}/../setup-review-tools/install.sh"
20+
1621
- name: Cache OpenClaw CLI and npm downloads
1722
if: ${{ env.CLAWSWEEPER_RUNNER == 'openclaw' }}
1823
uses: actions/cache@v6
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Only this official platform archive has been pinned and verified.
5+
if [[ "$(uname -s)" != Linux || "$(uname -m)" != x86_64 ]]; then
6+
echo "Trusted review scanner bootstrap supports Linux amd64 only." >&2
7+
exit 1
8+
fi
9+
10+
review_tools_root="$(mktemp -d "${RUNNER_TEMP:?}/clawsweeper-review-tools.XXXXXX")"
11+
case "$review_tools_root/" in
12+
"${GITHUB_WORKSPACE:?}/"*) echo "Review tools must be outside the checkout." >&2; exit 1 ;;
13+
esac
14+
chmod 700 "$review_tools_root"
15+
mkdir -m 700 "$review_tools_root/bin" "$review_tools_root/smoke"
16+
review_tools_ready=0
17+
cleanup() {
18+
rm -rf "$review_tools_root/smoke" "$review_tools_root/archive.tar.gz" "$review_tools_root/stdout" "$review_tools_root/stderr"
19+
if [[ "$review_tools_ready" != 1 ]]; then rm -rf "$review_tools_root"; fi
20+
}
21+
trap cleanup EXIT
22+
23+
curl --fail --show-error --silent --location \
24+
"https://github.com/trufflesecurity/trufflehog/releases/download/v3.97.1/trufflehog_3.97.1_linux_amd64.tar.gz" \
25+
--output "$review_tools_root/archive.tar.gz"
26+
printf '%s %s\n' \
27+
"f863ea3a8d786f7d097870496c977944cce7372a2fe1e56707d965016e543ece" \
28+
"$review_tools_root/archive.tar.gz" | sha256sum --check -
29+
tar -xzf "$review_tools_root/archive.tar.gz" -C "$review_tools_root/bin" trufflehog
30+
chmod 700 "$review_tools_root/bin/trufflehog"
31+
export PATH="$review_tools_root/bin:$PATH"
32+
version="$(env -i HOME="$review_tools_root" "$review_tools_root/bin/trufflehog" --version 2>&1)"
33+
[[ "$version" == "trufflehog 3.97.1" ]]
34+
printf 'A harmless review scanner installation check.\n' > "$review_tools_root/smoke/clean.txt"
35+
chmod 600 "$review_tools_root/smoke/clean.txt"
36+
if ! env -i HOME="$review_tools_root" TMPDIR="$review_tools_root" \
37+
"$review_tools_root/bin/trufflehog" filesystem "$review_tools_root/smoke" \
38+
--results=verified,unknown --fail --fail-on-scan-errors --no-update --json --no-color \
39+
> "$review_tools_root/stdout" 2> "$review_tools_root/stderr"; then
40+
echo "Trusted review scanner smoke failed; diagnostics withheld." >&2
41+
exit 1
42+
fi
43+
if [[ -s "$review_tools_root/stdout" ]]; then
44+
echo "Trusted review scanner smoke emitted unexpected output; diagnostics withheld." >&2
45+
exit 1
46+
fi
47+
echo "$review_tools_root/bin" >> "$GITHUB_PATH"
48+
review_tools_ready=1
49+
echo "Trusted TruffleHog 3.97.1 scanner installed and benign scan passed."

‎.github/actions/setup-state/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ inputs:
5454
required: false
5555
default: ""
5656
records-item-number:
57-
description: Hydrate only this canonical issue record instead of the complete repository snapshot.
57+
description: Hydrate only these comma-separated item tuples instead of the complete repository snapshot.
5858
required: false
5959
default: ""
6060
records-secret:

‎.github/workflows/ci.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,30 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24+
hosted-review-scan:
25+
name: Hosted native review scan smoke
26+
if: github.event_name == 'workflow_dispatch'
27+
runs-on: ubuntu-24.04
28+
timeout-minutes: 10
29+
steps:
30+
- uses: actions/checkout@v7
31+
with:
32+
persist-credentials: false
33+
- uses: ./.github/actions/setup-pnpm
34+
with:
35+
build-script: build
36+
- uses: ./.github/actions/setup-codex
37+
env:
38+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
39+
CLAWSWEEPER_INTERNAL_MODEL: ${{ secrets.CLAWSWEEPER_MODEL }}
40+
- name: Prove refusal then clean structured review
41+
run: node scripts/hosted-review-scan-smoke.mjs "$RUNNER_TEMP/hosted-review-scan-proof.json"
42+
- uses: actions/upload-artifact@v7
43+
with:
44+
name: hosted-review-scan-proof
45+
path: ${{ runner.temp }}/hosted-review-scan-proof.json
46+
if-no-files-found: error
47+
2448
check:
2549
name: pnpm check
2650
runs-on: ubuntu-latest

‎.github/workflows/repair-cluster-worker.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,10 @@ jobs:
663663
GH_TOKEN: ${{ steps.target_write_token.outputs.token }}
664664
CLAWSWEEPER_ALLOWED_OWNER: ${{ steps.target.outputs.target_owner }}
665665
CLAWSWEEPER_AUTOMERGE_SESSION_ID: ${{ inputs.automerge_session_id }}
666+
# OpenClaw agents intentionally use the CI-only Test Server lease capability directly.
667+
# Keep free-form repository skill access; do not replace it with a fixed proof runner.
668+
OPENCLAW_QA_CONVEX_SITE_URL: ${{ steps.target.outputs.target_slug == 'openclaw-openclaw' && secrets.OPENCLAW_QA_CONVEX_SITE_URL || '' }}
669+
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ steps.target.outputs.target_slug == 'openclaw-openclaw' && secrets.OPENCLAW_QA_CONVEX_SECRET_CI || '' }}
666670
run: pnpm run repair:execute-fix -- "$CLUSTER_JOB_PATH" --latest --defer-publication
667671

668672
- name: Renew target write token for post-flight

0 commit comments

Comments
 (0)