Skip to content

fix(ci): repair full release validation regressions - #117447

Merged
vincentkoc merged 3 commits into
mainfrom
fix-release-validation-main-20260801
Aug 1, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix-release-validation-main-20260801

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

Repairs three deterministic release-validation failures found by the full release pipeline on exact main SHA 355295bfef4abadeb94286dce2b911d12531b98b:

  • classify an initialized-but-unborn Git repository as an invalid agent workspace before attempting git worktree add
  • give the memory-wiki agent-isolation test measured shard-contention headroom without changing any product performance threshold
  • replace the iOS queued-approval test's two-second hot yield loop with a bounded ten-second sleep-backed wait

Failure evidence

Parent release validation: https://github.com/openclaw/openclaw/actions/runs/30702049252

Validation

  • node scripts/run-vitest.mjs src/gateway/server.sessions.create.test.ts src/agents/worktrees/service.test.ts
  • focused post-rebase gateway and worktree cases
  • node scripts/run-vitest.mjs extensions/memory-wiki/src/agent-vault-isolation.test.ts (234.13s cold; 152.51s warm)
  • ./node_modules/.bin/oxfmt --check on changed TypeScript files
  • targeted oxlint on changed TypeScript files
  • swiftformat --lint apps/ios/Tests/NodeAppModelInvokeTests.swift --config config/swiftformat
  • git diff --check
  • autoreview: clean, no actionable P0 findings

Direct SwiftLint on the existing large iOS test file reports 29 pre-existing file/type length and existing-line violations; this patch introduces none of them.

Release notes

No changelog entry: these are release-validation and test-harness repairs with no user-visible behavior change.

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 1, 2026 14:39
@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios gateway Gateway runtime agents Agent runtime and tooling extensions: memory-wiki size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 10:44 AM ET / 14:44 UTC.

ClawSweeper review

What this changes

Repairs full-release validation by rejecting agent workspaces with no Git commit before worktree creation, extending a contention-prone memory-wiki test timeout, and replacing an iOS test’s busy yield loop with a bounded sleep-backed wait.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this member-authored, maintainer-labeled PR open for normal maintainer merge handling. The patch correctly distinguishes a Git directory without a commit from a usable worktree source, and its two remaining changes are bounded test-stability repairs; the exact-head release matrix is still running.

Priority: P2
Reviewed head: ca9d3986b17b5a46b94b4541ad93a2278cf2959b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed release-validation repair with a targeted regression test and no concrete correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a MEMBER-authored PR, so the external-contributor real-behavior gate does not apply; its body nevertheless links the failing release jobs and focused validation runs.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a MEMBER-authored PR, so the external-contributor real-behavior gate does not apply; its body nevertheless links the failing release jobs and focused validation runs.
Evidence reviewed 5 items Repository-boundary repair: The PR adds a commit-object verification immediately after Git root discovery, classifying an unborn repository as a repository error before later worktree operations can call Git with an invalid HEAD.
Gateway response mapping: The session-create handler maps that specific repository-validation failure to INVALID_REQUEST while preserving UNAVAILABLE for other provisioning failures; this catches both the early repository-resolution call and later create call because they share the enclosing try/catch.
Focused regression coverage: The branch adds a gateway regression test that initializes an empty Git repository and asserts the stable INVALID_REQUEST response; the other two changes only alter bounded test waits/timeouts.
Findings None None.
Security None None.

How this fits together

Gateway session creation can provision a managed Git worktree from an agent workspace and returns a structured response to the connected client. The worktree service resolves and validates the source repository before a session is created, while the iOS and memory-wiki tests exercise release-validation paths around that runtime.

flowchart LR
  A[Agent workspace] --> B[Git checkout preflight]
  B --> C[Repository validation]
  C --> D[Managed worktree provisioning]
  D --> E[Gateway session response]
  F[Release test shards] --> G[Bounded waits and timeouts]
  G --> H[Full release validation]
Loading

Before merge

  • Resolve merge risk (P1) - The full release matrix for the exact PR head was still in progress in the supplied check state, so merge confidence depends on those remaining platform and release-validation jobs.
  • Complete next step (P2) - The author association and maintainer label require explicit maintainer handling; no discrete repair finding needs an automated follow-up.
Agent review details

Security

None.

PR surface

Source +14, Tests +22, Other 0. Total +36 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 16 2 +14
Tests 2 23 1 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 2 0
Total 5 41 5 +36

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Let the exact-head release validation complete, then merge this narrow repair if it confirms the unborn-repository response and the two stabilized test paths without new failures.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Let the exact-head release validation complete, then merge this narrow repair if it confirms the unborn-repository response and the two stabilized test paths without new failures.

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

Yes—source-reproducible. An initialized repository without a commit passes the .git-entry preflight but cannot satisfy the worktree service’s required HEAD^{commit}; the PR adds a focused gateway regression case for that exact state, although this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The patch records the invalid repository state at the repository resolver, maps only that known condition to the established client error class, and keeps the remaining changes constrained to bounded test synchronization rather than product thresholds.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 40cc08e08d31.

Labels

Label changes:

  • add P2: This is a bounded repair for deterministic release-validation regressions and a gateway error classification, with limited user-facing blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER-authored PR, so the external-contributor real-behavior gate does not apply; its body nevertheless links the failing release jobs and focused validation runs.

Label justifications:

  • P2: This is a bounded repair for deterministic release-validation regressions and a gateway error classification, with limited user-facing blast radius.
  • 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 is a MEMBER-authored PR, so the external-contributor real-behavior gate does not apply; its body nevertheless links the failing release jobs and focused validation runs.

Evidence

What I checked:

  • Repository-boundary repair: The PR adds a commit-object verification immediately after Git root discovery, classifying an unborn repository as a repository error before later worktree operations can call Git with an invalid HEAD. (src/agents/worktrees/service.ts:189, ca9d3986b17b)
  • Gateway response mapping: The session-create handler maps that specific repository-validation failure to INVALID_REQUEST while preserving UNAVAILABLE for other provisioning failures; this catches both the early repository-resolution call and later create call because they share the enclosing try/catch. (src/gateway/server-methods/sessions-create.ts:377, ca9d3986b17b)
  • Focused regression coverage: The branch adds a gateway regression test that initializes an empty Git repository and asserts the stable INVALID_REQUEST response; the other two changes only alter bounded test waits/timeouts. (src/gateway/server.sessions.create.test.ts:1408, ca9d3986b17b)
  • Current-main provenance: The surrounding worktree resolver, gateway session path, and related release-test files on current main trace to the same feature-introducing commit, making Josh Avant the strongest history-based routing candidate for this surface. (src/agents/worktrees/service.ts:180, 07b7d6446ca1)
  • Security and scope check: The exact branch diff changes five existing test/runtime files only; it adds no dependencies, workflow permissions, package metadata, download path, or generated third-party code. git diff --check reported no whitespace errors. (ca9d3986b17b)

Likely related people:

  • joshavant: Current-main blame and the feature-introducing commit connect this person to the resolver, session-create path, iOS test, and memory-wiki isolation test touched by the PR. (role: introduced the current worktree/session and release-test surface; confidence: high; commits: 07b7d6446ca1; files: src/agents/worktrees/service.ts, src/gateway/server-methods/sessions-create.ts, src/gateway/server.sessions.create.test.ts)

Rank-up moves

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

  • Allow the exact-head full-release matrix to finish 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.

@vincentkoc
vincentkoc enabled auto-merge (squash) August 1, 2026 14:54
@vincentkoc
vincentkoc merged commit 7cc2e6d into main Aug 1, 2026
179 of 195 checks passed
@vincentkoc
vincentkoc deleted the fix-release-validation-main-20260801 branch August 1, 2026 14:55
vincentkoc added a commit that referenced this pull request Aug 1, 2026
…up-ownership-20260801

* origin/main:
  fix(ci): repair full release validation regressions (#117447)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* fix(worktrees): reject repositories without commits

* test(memory-wiki): allow agent isolation runtime

* test(ios): await queued approval retry
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
…up-ownership-20260801

* origin/main:
  fix(ci): repair full release validation regressions (openclaw#117447)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: ios App: ios extensions: memory-wiki gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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