Skip to content

fix(ci): pin iOS screenshot evidence to workflow revision - #136334

Merged
vincentkoc merged 5 commits into
mainfrom
fix/ci-watch-screenshot-family
Sep 3, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
fix/ci-watch-screenshot-family

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where a Full Release Validation run targeting an older commit could package iOS screenshot evidence with the target commit's parser even though screenshot-family ownership came from the newer workflow revision. When Watch capture moved from the iPhone shard to the iPad shard, that split-SHA mismatch made valid evidence fail topology validation.

Failure evidence: https://github.com/openclaw/openclaw/actions/runs/33627219129

Why This Change Was Made

The workflow revision now owns the screenshot evidence parser and its direct runtime dependency through .ci-harness, alongside the existing workflow-owned actions. Both same-revision and split-revision platform/Linux checkout paths materialize those exact files, while the candidate workspace remains unchanged.

The shard collector and Linux reducer execute the workflow-owned parser. Target-side parser invocations are removed.

User Impact

Maintainers can run Full Release Validation against historical tags or SHAs without screenshot evidence being interpreted by stale target-side topology rules.

Evidence

  • Red-before proof on pre-fix main: the focused split-revision checkout cases and iOS workflow assertion fail because the harness does not own the evidence parser.
  • Green-after proof: 75 passed across:
    • test/scripts/ci-platform-checkout.test.ts
    • test/scripts/ios-release-fastlane-gates.test.ts
  • actionlint .github/workflows/ci.yml
  • oxfmt --check on all three changed files
  • git diff --check origin/main...HEAD
  • Exact-head autoreview: scoped clean at P1
  • scripts/check-workflows.mts reached its Python tool bootstrap but the configured package mirror does not yet provide pre-commit==4.6.2; no workflow validation defect was reported.

Architectural owner: workflow-revision checkout harness.

Sibling coverage: both platform and linux-node, same-revision index export and split-revision sparse fetch.

LOC: workflow/tooling +14/-10 (net +4); tests +65/-11 (net +54).

@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc vincentkoc self-assigned this Sep 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 2, 2026 13:47
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 2, 2026, 11:30 PM ET / September 3, 2026, 03:30 UTC.

ClawSweeper review

What this changes

The PR makes iOS screenshot-evidence collection and reduction use a parser copied from the workflow revision into the CI harness, with coverage for same- and split-revision checkouts.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this maintainer-authored PR open: it fixes a real current-main split-revision gap, and the patch uses the narrow workflow-owned harness boundary with focused coverage. No blocking correctness finding was identified; the remaining merge blocker is the in-progress exact-head CI required by the prior review cycle.

Priority: P2
Reviewed head: e2c5a7a91550d7e24649b93d5056bbd8f10e58e5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with appropriate split-revision coverage and no identified correctness defect; exact-head CI completion remains required before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal CI reliability repair is exempt from the external-contributor proof gate; the supplied focused real-Git split-revision fixture directly exercises the checkout owner, while exact-head CI remains the merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal CI reliability repair is exempt from the external-contributor proof gate; the supplied focused real-Git split-revision fixture directly exercises the checkout owner, while exact-head CI remains the merge gate.
Evidence reviewed 7 items Current-main gap: Before this PR, the shard and reducer invoked the target-workspace parser, so a historical target could apply obsolete family-topology rules despite the workflow supplying WORKFLOW_SHA.
Canonical harness owner: The checkout owner adds the parser and its sole relative runtime import to both same-revision index export and split-revision sparse checkout for platform and Linux-node jobs.
Direct import closure: The evidence parser imports only Node built-ins plus scripts/lib/direct-run.mjs, matching the two explicitly materialized harness files.
Findings None None.
Security None None.

How this fits together

Full Release Validation can execute a newer CI workflow against an older target checkout. The CI harness supplies workflow-owned tooling to iOS screenshot capture and evidence reduction, which produce the validation manifest consumed by the release workflow.

flowchart LR
  A[Workflow revision] --> B[CI harness checkout]
  C[Historical target checkout] --> D[iOS screenshot capture]
  B --> E[Workflow-owned evidence parser]
  D --> E
  E --> F[Validated screenshot manifest]
Loading

Before merge

  • Resolve merge risk (P1) - This changes the shared CI checkout owner: a sparse-path mistake would prevent screenshot collection or reduction in historical-target validation. The exact-head check set is still in progress.
  • Resolve merge risk (P1) - Logical production and CI source growth is net +1 after counting the generated owner projection once; the added explicit closure is justified because the parser has one non-builtin relative import that must be available in the workflow-owned harness.
  • Complete next step (P2) - Wait for the in-progress exact-head CI checks to complete successfully before merging.
Agent review details

Security

None.

PR surface

Tests +55, Config +8, Other -3. Total +60 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 67 12 +55
Docs 0 0 0 0
Config 2 25 17 +8
Generated 0 0 0 0
Other 3 3 6 -3
Total 7 95 35 +60

Review metrics

Metric Value Why it matters
Logical production vs. tests logical production/CI +17/-16; duplicated generated owner projection +11/-7 excluded; tests +67/-12 The small net production increase is the explicit two-file workflow-owned parser closure; test growth covers split-revision and ownership invariants.

Merge-risk options

Maintainer options:

  1. Complete exact-head validation (recommended)
    Keep this PR unmerged until the in-progress exact-head CI checks finish successfully, repairing any observed sparse-harness materialization failure at the checkout owner.
  2. Pause if the historical path fails
    If the exact-head workflow exposes a remaining historical-target failure, pause this branch and preserve the focused fixture evidence while the checkout boundary is corrected.

Technical review

Best possible solution:

Retain the single workflow-owned parser closure, rather than broadening the harness or retaining target-side parser execution, and merge only after the exact-head workflow validates sparse materialization.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main runs the target-side parser while the current parser enforces workflow-defined screenshot topology, and the focused real-Git fixture constructs divergent workflow and candidate revisions. This review did not execute the fixture because the review checkout is read-only.

Is this the best way to solve the issue?

Yes: the workflow revision owns screenshot topology, while the target checkout remains the captured artifact source; materializing the parser and its only relative import in the existing harness is narrower than copying a broader repository snapshot or weakening validation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3100ba535f1d.

Labels

Label justifications:

  • P2: This is a bounded release-validation automation repair with limited operator-facing blast radius.
  • merge-risk: 🚨 automation: The shared CI checkout and screenshot evidence paths can fail historical validation if sparse materialization is incomplete.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored internal CI reliability repair is exempt from the external-contributor proof gate; the supplied focused real-Git split-revision fixture directly exercises the checkout owner, while exact-head CI remains the merge gate.

Evidence

What I checked:

  • Current-main gap: Before this PR, the shard and reducer invoked the target-workspace parser, so a historical target could apply obsolete family-topology rules despite the workflow supplying WORKFLOW_SHA. (.github/workflows/ci.yml:4908, 3100ba535f1d)
  • Canonical harness owner: The checkout owner adds the parser and its sole relative runtime import to both same-revision index export and split-revision sparse checkout for platform and Linux-node jobs. (.github/actions/git-owner/owner.py:364, e2c5a7a91550)
  • Direct import closure: The evidence parser imports only Node built-ins plus scripts/lib/direct-run.mjs, matching the two explicitly materialized harness files. (scripts/ios-screenshot-evidence.mjs:7, e2c5a7a91550)
  • Workflow call sites: Both macOS shard collection calls and the Linux reducer now execute the harness copy while retaining target checkout inputs and workflow SHA provenance. (.github/workflows/ci.yml:4912, e2c5a7a91550)
  • Split-revision regression coverage: The real-Git fixture makes candidate parser bytes differ from workflow bytes, then verifies platform and Linux-node harnesses materialize workflow-owned parser bytes and the exact non-cone sparse paths without altering the candidate workspace. (test/scripts/ci-platform-checkout.test.ts:236, e2c5a7a91550)
  • Generated-owner contract: A sibling test requires the inline CI owner projection to remain byte-identical to .github/actions/git-owner/owner.py, so the duplicated workflow owner cannot silently diverge. (test/scripts/ci-git-owner.test.ts:442, e2c5a7a91550)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Allow the in-progress exact-head CI checks to finish successfully before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (7 earlier review cycles)
  • reviewed 2026-09-02T13:54:20.404Z sha dc1faef :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T15:10:00.285Z sha b40aa84 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T15:43:01.309Z sha f6e3b84 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-03T01:17:22.381Z sha 7acfc985da651136013e5fc58a6224c6c09bdbbf :: blocked before merge. :: none
  • reviewed 2026-09-03T01:34:24.088Z sha 7acfc985da651136013e5fc58a6224c6c09bdbbf :: blocked before merge. :: none
  • reviewed 2026-09-03T01:57:26.507Z sha 7544125db8a47a2945ff04521cf607f664eae416 :: blocked before merge. :: none
  • reviewed 2026-09-03T02:51:07.667Z sha b132412 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 2, 2026
@vincentkoc
vincentkoc force-pushed the fix/ci-watch-screenshot-family branch from b40aa84 to 3a322a7 Compare September 2, 2026 15:29
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 3a322a7ed0b297de9670a788fa28b8fdfbf31729. This is a mechanical rebase of the previously reviewed invariant onto main e571ea3de4c2c99097a99e79927ab1ec4de3c715; subsequent main commit b3fcdf31620d5c829554f65566a494385823fed6 does not overlap the five touched files.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

Release-owner proof decision for exact head 3a322a7ed0b297de9670a788fa28b8fdfbf31729:

  • Do not run a full FRV campaign for this repair.
  • Accept the focused real-Git split-revision fixture plus exact-head CI as sufficient proof for the workflow-revision ownership boundary.
  • Accept automation/tooling +27/-17 (net +10) because the workflow-owned harness must carry the parser's complete two-file direct-import closure; tests are +65/-11 (net +54).

Fresh Sol/high autoreview is scoped-clean with no actionable P0/P1 findings. Exact-head CI run 33648931917 is still completing; landing remains gated on its terminal classification and the queued exact-head ClawSweeper review.

@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer proof-sufficiency decision for exact head f6e3b845f75ae64383a7015ce76aa168313d685b:

  • Accept the focused real-Git split-revision fixture plus exact-head CI as pre-merge proof.
  • Do not consume a separate full historical-target FRV campaign for this PR. The approved reliability program reserves one changed exact-main final qualification after all repairs land; that run will exercise the hosted collector/reducer without duplicating the full graph.
  • Accept the canonical workflow-owned harness boundary and its automation/tooling delta. The harness must carry the evidence parser's complete two-file direct-import closure.

This resolves the prior ClawSweeper proof-sufficiency and production-delta rank-up items. The latest attempted ClawSweeper publication produced no artifact or actionable finding and is classified as review infrastructure; its durable exact-head retry remains pending.

Main movements through cf59ce401fee23cace29732899f799e26a356c31 do not overlap the PR surface. A clean merge-tree preserves the branch's stable patch ID, so no mechanical rebase or CI restart is warranted.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 2, 2026
@vincentkoc
vincentkoc force-pushed the fix/ci-watch-screenshot-family branch from f6e3b84 to 7acfc98 Compare September 3, 2026 01:10
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the fix/ci-watch-screenshot-family branch 2 times, most recently from 7544125 to b132412 Compare September 3, 2026 02:44
@vincentkoc
vincentkoc force-pushed the fix/ci-watch-screenshot-family branch from b132412 to e2c5a7a Compare September 3, 2026 03:22
@vincentkoc
vincentkoc merged commit 5778f39 into main Sep 3, 2026
179 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-watch-screenshot-family branch September 3, 2026 11:07
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 3, 2026
* commit '13b1f71c7010baaf2394555198e2fc04bef03586': (283 commits)
  fix(ui): retire stale MCP feedback across context changes (#128490)
  fix(agents): clarify set-identity workspace output (#126320)
  fix(auth): preserve OAuth metadata during session SDK refresh (#127988)
  fix(agents): recover catalog worker after generation mismatch (#127712)
  fix(memory-wiki): reject out-of-range claim confidence (#125656)
  ci: remove redundant contract runs and costly test work (#137220)
  fix(release): assert the Codex CLI pin the candidate declares (#137136)
  test(voice-call): reuse shared guards and deferred gates (#137262)
  fix(cron): isolate scheduler-disabled shared-store writes (#131733)
  fix(telegram): surface allowed custom reactions in react guidance (#129817)
  test(infra): reuse the shared npm call presence guard (#137254)
  fix: generated images disappear after failed tool calls (#131226)
  fix(docs): match source anchor checks to published sections (#137157)
  fix(backup): preserve audit capture across slow snapshots (#130962)
  fix(release): preserve legacy gh log reads (#137016)
  fix(memory-core): make forget rewrites atomic (#131383)
  fix(agents): write settings atomically (#131431)
  fix(plugins): keep the memory indexing runtime with the selected slot owner (#131779)
  fix(ci): pin iOS screenshot evidence to workflow revision (#136334)
  test(logging): remove redundant stderr spy casts (#137238)
  ...

# Conflicts:
#	scripts/e2e/lib/codex-release-package-assertions.mjs
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…36334)

* fix(ci): pin iOS screenshot evidence harness

* fix(ci): update screenshot harness checkout owner

* fix(ci): register screenshot evidence entrypoint

* fix(ci): keep screenshot argument parser private

* test(ci): accept executable modes under restrictive umask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant