Skip to content

chore(macos): pin final Peekaboo source - #126243

Merged
steipete merged 1 commit into
mainfrom
codex/peekaboo-f221-final-pin
Aug 19, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/peekaboo-f221-final-pin

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS app still compiled against Peekaboo d1217a9f… instead of the terminal reviewed source f22109e7…, so subsequent Peekaboo fixes were absent from future OpenClaw macOS builds.

Why This Change Was Made

Pins the macOS Swift package manifest to exact Peekaboo commit f22109e7e7810fb655000615e6c86856bdb77701 and lets SwiftPM regenerate the matching lockfile originHash. No other Swift dependency changed, and packaging, signing, notarization, installation, or release work is outside this PR.

User Impact

Future OpenClaw macOS builds compile the final reviewed Peekaboo source. There is no standalone runtime or UI change until a later build is produced through the normal release process.

Evidence

  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer swift package --package-path apps/macos resolve
  • Exact manifest and resolved-pin assertions both passed for f22109e7e7810fb655000615e6c86856bdb77701.
  • Full lockfile comparison showed only the Peekaboo revision changed; SwiftPM regenerated originHash and all other 16 pins remained unchanged.
  • Focused package/source-stamp/elevation proof: 3 files, 173 tests passed.
  • pnpm check:changed: dependency pin guard, Swift lint, and 7 macOS CI shards passed (483 tests).
  • pnpm test:changed: no additional test targets.
  • Autoreview: clean, no accepted/actionable findings.

AI-assisted: yes. I reviewed the two-file change and understand the exact pin and lockfile update.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XS maintainer Maintainer-authored PR labels Aug 19, 2026
@steipete
steipete marked this pull request as ready for review August 19, 2026 07:35
@steipete
steipete force-pushed the codex/peekaboo-f221-final-pin branch from 87dbee0 to 4a80303 Compare August 19, 2026 08:19
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The prior review lease expired without replacing its started placeholder. The branch was mechanically rebased onto current main; the two-file diff is unchanged and the current head is 4a8030397594bf8d3fe47054b988959d0db131d4. Local changed gates and autoreview are clean, and exact-head CI is pending only runner capacity for macos-node.

@clawsweeper

clawsweeper Bot commented Aug 19, 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:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 5:06 AM ET / 09:06 UTC.

ClawSweeper review

What this changes

Updates the macOS app’s Peekaboo source revision from d1217a9f… to f22109e7… and refreshes SwiftPM’s matching resolution metadata.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for protected maintainer handling. The manifest and resolution pin agree, and the exact-head macOS Swift build/test check passed, but this updates source embedded in a privileged local automation bridge; direct inspection of the selected upstream commit was unavailable and macos-node is still queued.

Priority: P3
Reviewed head: 4a8030397594bf8d3fe47054b988959d0db131d4
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The two pins are internally consistent and the macOS Swift lane passed, but independent upstream review of the privileged dependency source is still missing.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored package-metadata PR is exempt from the external-contributor proof gate; the supplied check rollup nevertheless shows the exact-head macOS Swift build/test lane passed.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored package-metadata PR is exempt from the external-contributor proof gate; the supplied check rollup nevertheless shows the exact-head macOS Swift build/test lane passed.
Evidence reviewed 8 items Consistent source selection: The PR changes the manifest’s exact Peekaboo revision to f22109e7…; the matching lockfile pin uses the same revision.
Runtime consumer: The OpenClaw executable directly links PeekabooBridge and PeekabooAutomationKit, so this revision controls compiled macOS runtime code.
Security-relevant owner boundary: The bridge runtime is configured with trusted team and bundle allowlists before being started as the GUI-hosted local automation service.
Findings None None.
Security Needs attention Inspect the new privileged bridge source before merge: The changed pin supplies the bridge runtime that accepts configured trusted local clients; upstream source retrieval was unavailable, so its authorization and API changes could not be independently audited.

How this fits together

The macOS application depends on Peekaboo’s bridge and automation libraries through Swift Package Manager. The package manifest selects the source revision, the lockfile records it, and release packaging stamps the compiled revision into the app artifact.

flowchart LR
  A[Package manifest] --> B[Swift Package Manager]
  B --> C[Resolved lockfile]
  C --> D[OpenClaw macOS build]
  D --> E[Embedded automation bridge]
  E --> F[Signed local automation client]
Loading

Decision needed

Question Recommendation
May the privileged Peekaboo bridge revision merge on the existing package/CI evidence, or should direct upstream source review be completed before merge? Verify upstream source and complete CI: Inspect the f22109e7… upstream diff for bridge/API and authorization-boundary changes, then wait for exact-head macos-node to finish.

Why: The dependency is directly embedded in the signed local automation bridge, but the selected commit could not be read from its upstream repository during this review.

Before merge

  • Resolve security concern: Inspect the new privileged bridge source before merge - The changed pin supplies the bridge runtime that accepts configured trusted local clients; upstream source retrieval was unavailable, so its authorization and API changes could not be independently audited.
  • Resolve merge risk (P1) - The new source revision is compiled into a bridge that serves signed local automation clients; its upstream diff was not independently inspectable in this environment.
  • Resolve merge risk (P1) - The exact-head macos-node check is queued, so the full required macOS CI set is not complete.

Findings

  • [medium] Inspect the new privileged bridge source before merge — apps/macos/Package.swift:25
Agent review details

Security

Needs attention: No vulnerability was identified, but this uninspected source revision is compiled into the privileged local automation bridge.

PR surface

Other 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 3 0
Total 2 3 3 0

Review metrics

Metric Value Why it matters
Production versus test delta production manifest +1/-1; generated lockfile +2/-2; tests 0 The only executable-selection change is the source revision; the lockfile update is the paired SwiftPM resolution record.

Merge-risk options

Maintainer options:

  1. Audit the pinned bridge source first (recommended)
    Review the upstream f22109e7… changes and wait for the queued exact-head macOS check before merging this runtime dependency update.
  2. Accept the reviewed-source assumption
    A maintainer may merge on the passed macOS Swift validation if they accept that this review could not independently retrieve the upstream source.

Technical review

Best possible solution:

Retain one exact manifest-and-lockfile pin, after a maintainer verifies the selected Peekaboo source revision and the exact-head macOS checks complete successfully.

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

Not applicable: this PR selects a dependency source revision rather than reporting a user-reproducible failure; the supplied exact-head macOS Swift check exercised the build and test path.

Is this the best way to solve the issue?

Unclear: updating the manifest and generated resolution record is the canonical selection mechanism, but the direct upstream contract review for the privileged bridge revision remains unavailable.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 94eb34fa7808.

Labels

Label changes:

  • add P3: This is a small macOS dependency-maintenance change with no demonstrated current user regression.
  • add merge-risk: 🚨 compatibility: The selected revision directly supplies two libraries compiled into the existing macOS application.
  • add merge-risk: 🚨 security-boundary: The updated dependency participates in the local automation bridge that configures trusted client identities.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored package-metadata PR is exempt from the external-contributor proof gate; the supplied check rollup nevertheless shows the exact-head macOS Swift build/test lane passed.

Label justifications:

  • P3: This is a small macOS dependency-maintenance change with no demonstrated current user regression.
  • merge-risk: 🚨 compatibility: The selected revision directly supplies two libraries compiled into the existing macOS application.
  • merge-risk: 🚨 security-boundary: The updated dependency participates in the local automation bridge that configures trusted client identities.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored package-metadata PR is exempt from the external-contributor proof gate; the supplied check rollup nevertheless shows the exact-head macOS Swift build/test lane passed.

Evidence

Security concerns:

  • [medium] Inspect the new privileged bridge source before merge — apps/macos/Package.swift:25
    The changed pin supplies the bridge runtime that accepts configured trusted local clients; upstream source retrieval was unavailable, so its authorization and API changes could not be independently audited.
    Confidence: 0.86

What I checked:

Likely related people:

  • steipete: Current author and the dominant contributor in the Package.swift history, including prior Peekaboo bridge and Swift compatibility updates. (role: long-running macOS package and Peekaboo integration contributor; confidence: high; commits: 4a8030397594, 596fb742fcbb, 66079161d72a; files: apps/macos/Package.swift, apps/macos/Package.resolved, apps/macos/Sources/OpenClaw/PeekabooBridgeHostCoordinator.swift)
  • vincentkoc: Recent macOS commits appear in the package-history pass and cover adjacent native-app behavior. (role: recent adjacent macOS contributor; confidence: medium; commits: 6176c0a79d9a, cba59e467401; files: apps/macos/Package.swift)

Rank-up moves

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

  • Inspect the upstream f22109e7… source diff with attention to bridge authorization and exported APIs.
  • Wait for exact-head macos-node to complete before merge.

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.

@steipete

steipete commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer owner decision: I completed the direct upstream audit of d1217a9f…f22109e7 and accept the pinned Peekaboo revision. I found no source-level blocker in the privileged Bridge path.

  • Peer admission is bound to the UNIX-socket audit token and kernel CDHash before and after static metadata lookup. Identifier, Team ID, and CDHash must agree with an Apple-anchored certificate identity; the server then enforces configured team/bundle allowlists and same-UID access on every request before operation access or dispatch. (identity binding, request ordering)
  • agentExecutionTrace requires protocol 1.31 signed operation semantics, the exact live authenticated CLI bundle boo.peekaboo.peekaboo, an enabled/advertised operation, and a socket-backed runner. Embedded runtimes cannot advertise it. (handler gate, embedded policy)
  • The host captures and repeatedly revalidates the authenticated CLI generation, resolved path, executable SHA-256, and CDHash. It launches that same binary suspended, waits for child lockdown, publishes a challenge-bound coordination receipt, validates a stable acknowledgement, rechecks peer/child/path authority, and only then releases the earliest-entry gate. (runner)
  • The attested contract fixes backgroundOnly=true, allowForeground=false, shellAvailable=false, and both Darwin process limits to zero. Output is capped at 16 MiB; timeout, cancellation, overflow, and wait-failure paths terminate and reap the exact retained child generation. (terminal validation, bounded runner)
  • Tests cover certificate/CDHash mismatch, forged or early acknowledgements, child identity substitution, release-gate bypass, timeout/cancellation/reaping, output bounds, process-creation denial, and signed exact-target transport. The root Swift package products and production targets are byte-for-byte unchanged; the public additions are trace request/receipt/result models.

The other ClawSweeper rank-up move also has exact-head proof. Manual exact-SHA run 32235975296 ran against 4a8030397594bf8d3fe47054b988959d0db131d4; macos-node and macos-swift both passed. Its two unrelated full-suite failures are not caused by this two-file pin: the same native-i18n and checks-node-core-tooling-1 jobs both pass on current main in run 32237055289. The original PR-attached Blacksmith queue entry never received a runner and was cancelled after 84 minutes; the bounded job rerun was assigned immediately, and macos-node plus the dependent exact-head CI gate passed before /prepare-pr and merge. The PR landed as 3587158a0e385f696e8162a7b1752c101143d3fc.

@steipete
steipete merged commit 3587158 into main Aug 19, 2026
264 of 269 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the codex/peekaboo-f221-final-pin branch August 19, 2026 09:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant