Skip to content

test(qa): close external app SDK proof gaps - #118978

Merged
vincentkoc merged 2 commits into
mainfrom
qa-app-sdk-composed-gaps-20260803
Aug 4, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
qa-app-sdk-composed-gaps-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The source-internal preview App SDK lacked scenario-owned composed proof that an external packed consumer can stay on the exported @openclaw/sdk entrypoint, inject a custom transport, and exercise Gateway-backed run, event, artifact, and environment contracts. The SDK environment list type also omitted the optional worker profile summaries already returned by the Gateway schema.

Why This Change Was Made

This adds dedicated App SDK QA scenarios and focused E2E files so each scenario owns its assertions. The composed proof validates real Gateway run-result and artifact behavior, dispatches environment RPCs through the owner handlers, validates protocol traffic against Gateway schemas, and checks normalized event delivery through both app-wide and per-run streams. The preview SDK type now exposes optional { id, providerId } environment profile summaries.

Both scenario-owned packed-consumer tests remain independent. Their mutable shared SDK build, staging, packing, and tarball-validation phase is serialized with the canonical cross-process file lock on a checkout-local ignored .artifacts target; each consumer keeps its own private tarball root and performs its own registry install and assertions after the lock is released.

The package remains 0.0.0-private; this PR proves the repository's exported preview entrypoint and does not claim a published public package.

User Impact

No stable-package or end-user behavior is being announced. Maintainers get accurate preview SDK typings plus reproducible QA coverage for these eight A2 contracts:

  • app-sdk.app-plugin-boundary
  • app-sdk.custom-transport
  • app-sdk.event-stream
  • app-sdk.event-envelope
  • app-sdk.run-results
  • app-sdk.artifact-resources-artifacts
  • app-sdk.environments
  • app-sdk.schema-alignment

The existing A1 app-sdk.sdk-entrypoints claim remains owned by its package-entrypoint scenario.

Evidence

  • Exact head: 43d3b8a34d65a320c3ea34c4b21eb7463125e5ac
  • Eight-path manifest: 4520af02db53e56c11ba62959fa0241bfc6de574e83425373f4fdd3e95e0ebc3
  • run_db532217909d: final exact-head direct-AWS proof on cbx_62e20d9a88b4 passed. The attested 43d3b8a34d65 tree ran all four focused SDK E2E files (4/4 files, 8 passed, 1 intentional skip), SDK DTS build, scenario catalog 47/47, A1 QA evidence exactly app-sdk.sdk-entrypoints, and A2 QA evidence exactly the eight assigned primary IDs. Lease cleanup completed.
  • run_05d1ea419e2e: fresh direct-AWS exact-tree proof. The required two-worker packed-consumer command passed three bounded iterations in 26.84s, 24.66s, and 25.39s; packed tests stayed around 12-14s, comfortably within their 240s timeouts. pnpm --filter @openclaw/sdk build and scenario catalog 47/47 also passed.
  • run_8900dfc8a9d9: separate QA Suite evidence passed. A1 contains exactly app-sdk.sdk-entrypoints; A2 contains exactly the eight primary IDs listed above and excludes the A1 claim.
  • run_64bf5934ac62: exact-manifest scoped changed gate classified all eight PR paths correctly and passed every check through package-patch guard. It stopped only at the known unrelated src/config/** dead-export baseline.
  • run_a5fd7be44cdc: the required skip-deadcode continuation was attempted once and stopped before later lanes because the synthetic checkout lacked the root typescript link. This is lease dependency plumbing, not a patch verdict.
  • Fresh origin/main touched-path and merge-tree checks were clean at a492eb90684a1990a0eba4b89433051be3a1ff6a.
  • Exact-branch autoreview: clean, no accepted or actionable findings.

Hosted merge-tree CI is authoritative for current-main drift and the remaining changed-gate lanes.

AI-assisted: yes. The implementation and evidence are being independently reviewed before merge.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 8:43 PM ET / August 4, 2026, 00:43 UTC.

ClawSweeper review

What this changes

Adds packed-consumer and Gateway-backed App SDK QA scenarios, serializes their shared package-build phase, and exposes optional worker profile summaries in the preview SDK environment-list type.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer review of exact head 43d3b8a34d65a320c3ea34c4b21eb7463125e5ac. Current main still omits a Gateway-returned environment-profile field from the private App SDK type, and this branch aligns that type while adding focused A2 QA coverage; no actionable patch or security finding was identified.

Priority: P3
Reviewed head: 43d3b8a34d65a320c3ea34c4b21eb7463125e5ac

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong supplied exact-head proof and a contract-aligned patch with no actionable review finding.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body nevertheless supplies exact-head direct-AWS and hosted-CI evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body nevertheless supplies exact-head direct-AWS and hosted-CI evidence.
Evidence reviewed 6 items Current Gateway contract: Gateway protocol permits optional environment profiles with exactly id and providerId, and the handler returns them when configured.
Current-main SDK gap: Current EnvironmentsListResult exposes only environments, despite the Gateway profile projection.
Exact-head alignment and coverage: The reviewed head adds the optional profile type and assertion, and exercises Gateway handler/schema behavior plus a real local Gateway path.
Findings None None.
Security None None.

How this fits together

External applications use the App SDK to call OpenClaw Gateway RPCs and receive normalized events and resource results. This change verifies that the packed SDK preserves those Gateway contracts for runs, artifacts, environments, and custom transports.

flowchart LR
  Consumer[External app consumer] --> SDK[Public App SDK]
  SDK --> Transport[Custom or Gateway transport]
  Transport --> Gateway[Gateway RPC and event stream]
  Gateway --> Resources[Runs, artifacts, environments]
  Resources --> Proof[Packed-consumer and Gateway QA proof]
Loading

Before merge

  • Complete next step (P2) - This MEMBER-authored, maintainer-labeled PR needs the normal human merge decision; no concrete repair is identified.
Agent review details

Security

None.

PR surface

Source +425, Tests +472, Other +65. Total +962 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 425 0 +425
Tests 3 886 414 +472
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 65 0 +65
Total 8 1376 414 +962

Review metrics

Metric Value Why it matters
Production versus QA/test LOC production +7, QA/test +1,304/-414, scenario YAML +65 The only production growth is the additive preview SDK type/export that matches an existing Gateway response; the remainder consolidates and expands proof coverage.

Technical review

Best possible solution:

Land the preview-SDK contract alignment and scenario-owned proof after the normal maintainer merge decision; keep the existing private-package boundary and Gateway schema as the canonical contract.

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

Yes—current source proves the mismatch: Gateway returns optional profiles while the SDK list-result type omits them. A typed consumer accessing that existing response field exposes the gap.

Is this the best way to solve the issue?

Yes. Aligning the SDK declaration with the existing Gateway schema and handler is narrower and safer than changing the Gateway contract or introducing an adapter.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1aea2df93519.

Labels

Label justifications:

  • P3: This is private preview-SDK typing and QA coverage work with no stable end-user behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body nevertheless supplies exact-head direct-AWS and hosted-CI evidence.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Recent current-main work introduced the Gateway environment-profile projection and related App SDK/Gateway QA paths. (role: recent App SDK and Gateway contract contributor; confidence: high; commits: 6ab556919e79, c6d99779021e; files: packages/gateway-protocol/src/schema/environments.ts, src/gateway/server-methods/environments.ts, packages/sdk/src/package.e2e.test.ts)
  • Peter Steinberger: History identifies the initial SDK package and durable worker-profile work as antecedents of this contract. (role: SDK and worker-profile architecture origin; confidence: medium; commits: 43f6c8b01aa7, 90e465833b30; files: packages/sdk, src/gateway/worker-environments)
  • NVIDIAN: History associates the original Gateway environment-discovery RPC with this owner surface. (role: environment-discovery contributor; confidence: medium; commits: 63de304102fa; files: src/gateway/server-methods/environments.ts)

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 (3 earlier review cycles)
  • reviewed 2026-08-03T22:14:24.971Z sha 44a17ab :: needs changes before merge. :: [P1] Serialize shared SDK package builds
  • reviewed 2026-08-03T23:04:26.867Z sha d9b9bfab543bf3088dcfc334a8ac5a457c186060 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T23:16:39.934Z sha d9b9bfab543bf3088dcfc334a8ac5a457c186060 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the qa-app-sdk-composed-gaps-20260803 branch from 44a17ab to d9b9bfa Compare August 3, 2026 22:41
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Repaired head: d9b9bfab543bf3088dcfc334a8ac5a457c186060.

The two scenario-owned packed consumers now serialize their mutable SDK build, staging, packing, and tarball-validation phase with the canonical cross-process file lock. Three exact two-worker iterations passed on direct AWS; A1/A2 QA evidence ownership is exact; SDK DTS build, scenario catalog, formatting, and autoreview are clean.

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Review exact repaired head d9b9bfab543bf3088dcfc334a8ac5a457c186060. The prior command dispatch was cancelled while the old-head review lease was active; that lease has now expired. The shared mutable SDK build/pack phase is serialized with the canonical cross-process file lock, and exact-head two-worker, SDK build, scenario catalog, QA ownership, and autoreview evidence is in the verified PR body.

@clawsweeper

clawsweeper Bot commented Aug 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 repository_dispatch).
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: 🐚 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 23:09
@vincentkoc
vincentkoc force-pushed the qa-app-sdk-composed-gaps-20260803 branch 2 times, most recently from 25f70a4 to 6646e46 Compare August 3, 2026 23:20
@vincentkoc
vincentkoc force-pushed the qa-app-sdk-composed-gaps-20260803 branch from 6646e46 to 43d3b8a Compare August 3, 2026 23:20
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Review final exact head 43d3b8a34d65a320c3ea34c4b21eb7463125e5ac.

The prior hosted check-dependencies and check-lint findings were repaired mechanically: PackedSdkConsumer is module-private, and both Promise executors use block bodies. Final direct-AWS proof run_db532217909d attested manifest 4520af02db53e56c11ba62959fa0241bfc6de574e83425373f4fdd3e95e0ebc3 and passed the four focused SDK E2E files, SDK build, 47/47 scenario catalog, and exact A1/A2 QA ownership. Fresh exact-head autoreview is clean.

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Review final exact head 43d3b8a34d65a320c3ea34c4b21eb7463125e5ac.

The prior exact-head lease expired without a durable verdict. Final direct-AWS proof run_db532217909d attested manifest 4520af02db53e56c11ba62959fa0241bfc6de574e83425373f4fdd3e95e0ebc3 and passed the four focused SDK E2E files, SDK DTS build, 47/47 scenario catalog, and exact A1/A2 QA ownership. Exact-head hosted CI run 30861934901 completed successfully, including openclaw/ci-gate; the only non-success rollup entries are superseded cancelled duplicate pull_request_target jobs.

@clawsweeper

clawsweeper Bot commented Aug 4, 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 repository_dispatch).
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 merged commit e928762 into main Aug 4, 2026
113 of 116 checks passed
@vincentkoc
vincentkoc deleted the qa-app-sdk-composed-gaps-20260803 branch August 4, 2026 01:00
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main: (54 commits)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  test(qa): prove gateway chat RPCs (#118988)
  test(ui): cover Control UI auth transports (#118866)
  fix(auth): do not admit ambient environment credentials behind declared profiles (#118458)
  test(ui): cover operator administration flows (#118836)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* commit '25e3b6c9b79dadb912195d86fbff968602d58798': (54 commits)
  fix(cli): honor local port in gateway call (#119046)
  fix(gateway): honor external status target context (#119015)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* test(qa): close external app SDK proof gaps

* test(qa): close external app SDK proof gaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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