Repository navigation
test(qa): close external app SDK proof gaps - #118978
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 8:43 PM ET / August 4, 2026, 00:43 UTC. ClawSweeper reviewWhat this changesAdds 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 readinessKeep open for normal maintainer review of exact head Priority: P3 Review scores
Verification
How this fits togetherExternal 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +425, Tests +472, Other +65. Total +962 across 8 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
44a17ab to
d9b9bfa
Compare
|
@clawsweeper re-review Repaired head: 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. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review Review exact repaired head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
25f70a4 to
6646e46
Compare
6646e46 to
43d3b8a
Compare
|
@clawsweeper re-review Review final exact head The prior hosted |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review Review final exact head The prior exact-head lease expired without a durable verdict. Final direct-AWS proof |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* 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) ...
* 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) ...
* test(qa): close external app SDK proof gaps * test(qa): close external app SDK proof gaps
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/sdkentrypoint, 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
.artifactstarget; 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-boundaryapp-sdk.custom-transportapp-sdk.event-streamapp-sdk.event-envelopeapp-sdk.run-resultsapp-sdk.artifact-resources-artifactsapp-sdk.environmentsapp-sdk.schema-alignmentThe existing A1
app-sdk.sdk-entrypointsclaim remains owned by its package-entrypoint scenario.Evidence
43d3b8a34d65a320c3ea34c4b21eb7463125e5ac4520af02db53e56c11ba62959fa0241bfc6de574e83425373f4fdd3e95e0ebc3run_db532217909d: final exact-head direct-AWS proof oncbx_62e20d9a88b4passed. The attested43d3b8a34d65tree 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 exactlyapp-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 in26.84s,24.66s, and25.39s; packed tests stayed around12-14s, comfortably within their240stimeouts.pnpm --filter @openclaw/sdk buildand scenario catalog47/47also passed.run_8900dfc8a9d9: separate QA Suite evidence passed. A1 contains exactlyapp-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 unrelatedsrc/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 roottypescriptlink. This is lease dependency plumbing, not a patch verdict.origin/maintouched-path and merge-tree checks were clean ata492eb90684a1990a0eba4b89433051be3a1ff6a.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.