Skip to content

fix: surface Codex input prompts across runtimes - #126387

Merged
steipete merged 5 commits into
mainfrom
steipete/kind-gates-3a9113
Aug 19, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/kind-gates-3a9113

Conversation

@steipete

@steipete steipete commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

AI-assisted: yes. I reviewed the complete change, its runtime ownership, upstream contracts, and proof results.

What Problem This Solves

Fixes an issue where Codex could ask for structured user input but OpenClaw would either decline ordinary MCP forms or silently return empty answers in ACP sessions. Native app-server handling only routed approval-shaped elicitations, while ACPX did not advertise or forward elicitation and the manual sessions_spawn(runtime="acp") path omitted the handler even after channel auto-reply dispatch had one.

Why This Change Was Made

This adds one generic, bounded structured-input compiler/executor under the agent harness and keeps the native Codex and ACP adapters protocol-thin. Requests retain exact request/session/turn correlation, share one per-turn interactive queue, fence late answers after cancellation, keep explicitly secret fields out of durable Gateway question records, and produce visible unsupported outcomes instead of empty answers.

Both ACP owners now pass the same turn-owned handler: channel auto-reply dispatch and manual-spawn ACP execution. The Codex plugin also consumes the published ACPX elicitation contract from openclaw/acpx#508, released as v0.13.1. The obsolete duplicate Codex-local secret claim/steering path is removed.

Raw production growth is +2,375/−282 (net +2,093); the judged production delta is net +2,079 after discounting 14 formatting-only lines from moving shared types into the boundary leaf. It is justified by the new generic bounded structured-input capability, current native/ACP protocol adapters, the missing manual-spawn owner boundary, and the explicit suppression-free control/invisible-character validator. Tests/support are +1,823/−260 (net +1,563), docs are +70/−12 (net +58), tooling is +6/−2 (net +4), and the dependency diff is net zero.

User Impact

Operators can answer supported Codex and ACP form or URL requests through transient Gateway questions. Standard primitive fields, bounded choices, multi-select, defaults, validation, explicit secrets, and literal HTTP(S) URL confirmation work consistently across native and ACP runs. Malformed, unsupported, expired, or cancelled requests now report a visible, explicit outcome rather than silently yielding empty answers.

Evidence

Live before and after

  • Native app-server through a real authenticated Codex provider created a Gateway question bound to the exact run/session. Resolving Red produced exactly COLOR:Red.
  • Before the final owner fix, sessions_spawn(runtime="acp") reproduced the defect: no Gateway question appeared and the turn ended with exactly FLAVOR:.
  • After the fix, real Codex ACP through published [email protected] created a Gateway question bound to the ACP child session. Resolving Chocolate produced exactly FLAVOR:Chocolate.
  • The isolated Gateway and static Control UI assets loaded, but the browser remained at “Control UI did not start” / “Loading chat”. No misleading screenshot or video is attached. The operator-facing question.list / question.resolve surfaces and persisted transcripts were inspected instead.
  • All isolated Gateway processes, temporary state, credentials, and launch helpers were removed after proof.

Local validation

Before the final rebase, the final focused rerun passed 242 tests and the combined elicitation rerun passed 881 tests. The broader suites included native Codex 472 passed, ACP handler/dispatch/control-plane 140 passed, ACPX extension 253 passed, and shared structured input 16 passed. The real-process ACP request_user_input test returned non-empty answers.

After rebasing onto current main, these exact focused commands passed on the elicitation head:

node scripts/run-vitest.mjs extensions/codex/src/app-server/attempt-steering.test.ts extensions/codex/src/app-server/bounded-turn.test.ts extensions/codex/src/app-server/client.test.ts extensions/codex/src/app-server/elicitation-bridge.test.ts extensions/codex/src/app-server/run-attempt.test.ts extensions/codex/src/app-server/run-attempt.turn-watches.test.ts extensions/codex/src/app-server/side-question.test.ts extensions/codex/src/app-server/turn-router.test.ts extensions/codex/src/app-server/user-input-bridge.test.ts extensions/codex/src/app-server/user-input-bridge.elicitation.test.ts
node scripts/run-vitest.mjs src/acp/control-plane/manager.test.ts src/agents/agent-command.live-model-switch.test.ts src/auto-reply/reply/dispatch-acp.test.ts src/auto-reply/reply/acp-elicitation-handler.test.ts
node scripts/run-vitest.mjs extensions/acpx/src/runtime.test.ts extensions/acpx/src/service.test.ts extensions/acpx/src/runtime-elicitation.process.test.ts
node scripts/run-vitest.mjs packages/acp-core/src/runtime/types.test.ts src/agents/harness/gateway-question.test.ts src/agents/harness/structured-input.test.ts src/agents/harness/structured-input-execution.test.ts

Results on the rebased head: native Codex 474 passed; ACP handler/dispatch/control-plane 263 passed; ACPX extension 124 passed; shared structured input 28 passed (889 total). A stale sibling assertion was updated after this rerun exposed the generalized pending-input owner; its focused rerun passed 27 tests. Protocol-specific helper names were then adjusted for current main's coercion-helper guard, and the directly affected native/ACP/Gateway rerun passed 22 tests.

ClawSweeper's old-head review then identified that structured input was attached as undocumented properties on an existing public SDK function. The final head 3e3c144ef4549abef2650cb0d4d0b79c5b5a5efa replaces that accidental shape with one named, frozen agentHarnessStructuredInput contract on the existing documented runtime subpath. The harness guide and subpath reference document its ownership and outcomes; runtime and subpath contract tests cover it; the public SDK surface budget accounts for the single export.

Additional exact gates:

node scripts/check-changed.mjs -- src/acp/control-plane/manager.test.ts src/acp/control-plane/manager.turn-runner.ts src/acp/control-plane/manager.types.ts src/agents/agent-command.live-model-switch.test.ts src/agents/command/acp-execution.ts src/auto-reply/reply/acp-elicitation-handler-lazy.ts src/auto-reply/reply/acp-elicitation-handler.test.ts src/auto-reply/reply/acp-elicitation-handler.ts src/auto-reply/reply/acp-elicitation.ts src/auto-reply/reply/dispatch-acp.test.ts src/auto-reply/reply/dispatch-acp.ts
node scripts/check-changed.mjs -- extensions/codex/src/app-server/elicitation-input.ts src/auto-reply/reply/acp-elicitation.ts src/agents/harness/gateway-question.test.ts
node scripts/run-vitest.mjs src/plugin-sdk/agent-harness-runtime.test.ts src/plugins/contracts/plugin-sdk-subpaths.test.ts extensions/codex/src/app-server/user-input-bridge.elicitation.test.ts
pnpm plugin-sdk:surface:check
node scripts/check-changed.mjs -- docs/plugins/sdk-agent-harness.md docs/plugins/sdk-subpaths.md extensions/codex/src/app-server/elicitation-input.ts extensions/codex/src/app-server/user-input-bridge.ts scripts/plugin-sdk-surface-report.mts src/plugin-sdk/agent-harness-runtime.test.ts src/plugin-sdk/agent-harness-runtime.ts src/plugins/contracts/plugin-sdk-subpaths.test.ts
pnpm check:changed
pnpm check:docs
pnpm build
git diff --check
$HOME/.claude/skills/autoreview/scripts/autoreview --mode local

The final owner-fix changed-file gate passed. Full pnpm check:changed passed on the complete pre-rebase diff; the post-rebase changed gate also passed with current main's additional guards. The final SDK contract rerun passed 44 focused tests, the Plugin SDK surface check passed at 4,336 public exports, the complete changed gate passed, pnpm build passed, and pnpm check:docs checked 6,532 links with zero broken. git diff --check was clean. Fresh full-bundle Codex autoreview reported no accepted/actionable findings (confidence 0.98), the post-rebase adjustment review was clean (confidence 0.99), and the final SDK-boundary review was clean (confidence 0.98).

Exact-head CI on the prior head exposed two static gates that the initial focused set did not include. pnpm deadcode:unused-files identified the process fixture as a dynamic executable root; it is now registered in the ACPX Knip workspace and the exact scan passes. pnpm check:architecture identified a type-only Madge cycle; shared structured-input types now live in the lower boundary leaf and the exact architecture suite reports zero cycles. After those repairs, 58 cross-surface focused tests and 27 structured-input tests passed, the complete changed gate passed, pnpm build passed again, and final autoreview was clean (confidence 0.99).

The next exact-head Node shard found the original eslint/no-control-regex suppression was outside the closed production suppression inventory. No allowlist entry was added: the validator now uses an explicit code-point check with the same rejected ranges. The exact lint-suppression and structured-input tests pass (14 tests), the changed gate passes, and the final autoreview is clean (confidence 0.99).

Contract inspection

Direct source inspection used current sibling Codex HEAD d65d315939: codex-rs/protocol/src/approvals.rs:353-398, codex-rs/protocol/src/mcp.rs:12-20,64-80, codex-rs/app-server-protocol/src/protocol/v2/mcp.rs:313-328,330-367,679-777, codex-rs/app-server/src/bespoke_event_handling.rs:720-823,1632-1777, codex-rs/app-server/src/outgoing_message.rs:142-153,295-360,463-511, codex-rs/app-server/src/request_processors/initialize_processor.rs:70-77, codex-rs/app-server/tests/suite/v2/mcp_server_elicitation.rs:160-273,309-469,663-684,761-813,1121-1241, and codex-rs/app-server/tests/suite/v2/request_user_input.rs:126-176.

Those contracts establish the separate native requests, nullable turn correlation for MCP elicitation, string-or-integer outer request IDs, typed form/openai-form/URL payloads, exact response actions, capability negotiation, thread-scoped pending-request cancellation, and end-to-end answer shapes used here.

@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 docs Improvements or additions to documentation agents Agent runtime and tooling extensions: acpx extensions: codex size: XL maintainer Maintainer-authored PR labels Aug 19, 2026
Codex structured input now reaches bounded Gateway questions in native and ACP runs, with exact turn ownership, explicit unsupported outcomes, and cancellation fencing. Consume the published ACPX elicitation support.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 19, 2026, 3:47 PM ET / 19:47 UTC.

ClawSweeper review

What this changes

Adds bounded structured-input prompts for Codex native and ACP runs, using Gateway questions and turn-scoped response handling.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked by patch quality or review findings - 11 items remain

Keep open: this PR exposes secret schema defaults in prompt text and can collide with retained Gateway question IDs during ACP recovery retries. Likely related people: steipete (low-confidence routing from exact-head blame).

Priority: P1
Reviewed head: 3e3c144ef4549abef2650cb0d4d0b79c5b5a5efa
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The stated real behavior proof is strong, but the patch has a sensitive disclosure and an ACP retry correctness defect.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body records after-fix authenticated Codex and real ACPX runs with a Gateway question and non-empty returned answer; that proof does not cover the two newly found edge cases.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body records after-fix authenticated Codex and real ACPX runs with a Gateway question and non-empty returned answer; that proof does not cover the two newly found edge cases.
Evidence reviewed 6 items Secret-default disclosure: The compiler always adds a field default to presentation text before marking the same field secret; a secret default therefore reaches the prompt payload.
Secret prompt delivery: Secret prompts are formatted and sent through the block-reply/partial-reply delivery path, so the rendered default can reach a channel or manual-run status event.
ACP retry collision: Question IDs derive only from request correlation and outer run inputs, while the ACP manager retries a recoverable pre-output failure and Gateway retains terminal IDs for a grace period.
Findings 2 actionable findings [P1] Do not render defaults for secret fields
[P2] Make ACP retry question IDs attempt-safe
Security Needs attention Secret defaults reach channel or status text: The structured-input compiler renders defaults without checking context.secret; secret prompts are then delivered as text, allowing a supplied secret default to be disclosed outside the protected answer path.

How this fits together

Codex and ACP runtimes can request operator input during an agent turn. The adapters compile supported requests into Gateway questions or transient secret prompts, then return answers to the originating runtime.

flowchart LR
  A[Codex or ACP runtime] --> B[Turn-owned input adapter]
  B --> C[Structured input compiler]
  C --> D[Gateway question or secret prompt]
  D --> E[Operator response]
  E --> F[Lifecycle and cancellation fence]
  F --> G[Protocol response]
Loading

Decision needed

Question Recommendation
After the two source fixes land, does the responsible owner accept the direct acpx 0.13.1 and Codex protocol-contract review required for this secret-bearing input path? Require fixes and contract review: Repair both concrete defects, add regressions, and obtain direct dependency/Codex contract evidence before merging.

Why: The review environment could not inspect the authoritative dependency or sibling Codex sources, while this PR advertises new protocol capabilities and handles secret-marked fields.

Before merge

  • Do not render defaults for secret fields (P1) - A secret-marked field can carry a default, and this line inserts it into question.question before the field is delivered through the secret text-reply path. That exposes the value in a channel or manual ACP status event despite avoiding durable Gateway records; suppress or reject secret defaults and cover both Codex and ACP adapters.
  • Make ACP retry question IDs attempt-safe (P2) - A recoverable ACP exit before text/tool output reruns the same elicitation closure, but this ID excludes the manager attempt. After the first prompt is answered, Gateway retains its terminal record for 15 seconds and rejects the retry with QUESTION_ID_IN_USE; generate an attempt-specific ID or reuse the completed answer, with a recovery regression.
  • Resolve security concern: Secret defaults reach channel or status text - The structured-input compiler renders defaults without checking context.secret; secret prompts are then delivered as text, allowing a supplied secret default to be disclosed outside the protected answer path.
  • Resolve merge risk (P1) - A marked-secret default is rendered into channel/status prompt text, defeating the intended secret-input boundary.
  • Resolve merge risk (P2) - A recoverable ACP retry after an answered elicitation can fail with QUESTION_ID_IN_USE during Gateway’s terminal-record grace period.
  • Resolve merge risk (P1) - The acpx 0.13.1 and Codex protocol contracts could not be independently inspected in this environment; dependency/security-owner review remains required.
  • Complete next step (P2) - The two repair targets are concrete, but the protected maintainer item also needs security/dependency-owner contract review before any merge path.
  • Improve patch quality - Prevent secret defaults from reaching any prompt or status payload and add Codex/ACP regressions.
  • Improve patch quality - Prove an answered elicitation followed by fresh-handle ACP recovery does not collide or lose the answer.
  • Improve patch quality - Provide direct acpx 0.13.1 and Codex contract evidence to the dependency/security owner.

Findings

  • [P1] Do not render defaults for secret fields — src/agents/harness/structured-input-schema.ts:403
  • [P2] Make ACP retry question IDs attempt-safe — src/auto-reply/reply/acp-elicitation-handler.ts:85-93
  • [high] Secret defaults reach channel or status text — src/agents/harness/structured-input-schema.ts:403
Agent review details

Security

Needs attention: A secret-marked schema default is exposed in visible prompt text.

PR surface

Source +2246, Tests +1410, Docs +58, Config 0, Other +4. Total +3718 across 61 files.

View PR surface stats
Area Files Added Removed Net
Source 28 2528 282 +2246
Tests 23 1670 260 +1410
Docs 6 70 12 +58
Config 1 1 1 0
Generated 0 0 0 0
Other 3 11 7 +4
Total 61 4280 562 +3718

Review metrics

Metric Value Why it matters
Judged production versus test growth production net +2,079; tests/support net +1,563 (reported in PR body) The new shared SDK/runtime capability is substantial enough that its secret and retry invariants need complete boundary proof.

Stored data model

Persistent data-model change detected: serialized state: extensions/acpx/test/fixtures/codex-app-server.mjs, serialized state: extensions/codex/src/app-server/client.test.ts, serialized state: src/auto-reply/reply/acp-elicitation-handler.ts, serialized state: src/auto-reply/reply/acp-elicitation.ts, unknown-data-model-change: src/agents/harness/structured-input-schema.ts, vector/embedding metadata: src/agents/harness/structured-input-boundary.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Repair the disclosure and retry path (recommended)
    Suppress or reject secret defaults before presentation, make recovery question IDs safe, and add focused boundary proof before merge.
  2. Pause until protocol review is available
    Keep the PR unmerged if direct acpx and Codex contract inspection cannot be completed for the dependency-backed behavior.

Technical review

Best possible solution:

Make secret defaults non-disclosing, make ACP recovery reuse an answer or generate attempt-safe question IDs, add boundary regressions for both paths, then complete direct acpx and Codex contract review before merge.

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

Yes, from source: a secret field with a default reaches the delivery formatter, and an answered ACP elicitation followed by a recoverable pre-output retry deterministically reuses its retained question ID. These paths were not executed because this review is read-only and the needed dependencies are absent.

Is this the best way to solve the issue?

No: the shared owner boundary is appropriate, but secret-default presentation and retry identity must be repaired before this is a safe solution.

Full review comments:

  • [P1] Do not render defaults for secret fields — src/agents/harness/structured-input-schema.ts:403
    A secret-marked field can carry a default, and this line inserts it into question.question before the field is delivered through the secret text-reply path. That exposes the value in a channel or manual ACP status event despite avoiding durable Gateway records; suppress or reject secret defaults and cover both Codex and ACP adapters.
    Confidence: 0.99
  • [P2] Make ACP retry question IDs attempt-safe — src/auto-reply/reply/acp-elicitation-handler.ts:85-93
    A recoverable ACP exit before text/tool output reruns the same elicitation closure, but this ID excludes the manager attempt. After the first prompt is answered, Gateway retains its terminal record for 15 seconds and rejects the retry with QUESTION_ID_IN_USE; generate an attempt-specific ID or reuse the completed answer, with a recovery regression.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5eda48ed9996.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P1: A default value explicitly marked secret can be sent in operator-facing channel or status text.
  • merge-risk: 🚨 compatibility: The PR adds a public agent-harness runtime surface and upgrades the ACPX dependency contract.
  • merge-risk: 🚨 session-state: A manager retry can rerun an input request with an ID retained from the prior terminal attempt.
  • merge-risk: 🚨 security-boundary: Secret-marked defaults can cross from protocol input into visible prompt delivery.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The PR body records after-fix authenticated Codex and real ACPX runs with a Gateway question and non-empty returned answer; that proof does not cover the two newly found edge cases.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records after-fix authenticated Codex and real ACPX runs with a Gateway question and non-empty returned answer; that proof does not cover the two newly found edge cases.

Evidence

Security concerns:

  • [high] Secret defaults reach channel or status text — src/agents/harness/structured-input-schema.ts:403
    The structured-input compiler renders defaults without checking context.secret; secret prompts are then delivered as text, allowing a supplied secret default to be disclosed outside the protected answer path.
    Confidence: 0.99

What I checked:

Likely related people:

  • steipete: The available exact-head blame and commit metadata attribute the touched input-routing and ACP wiring to this revision; parent history was unavailable locally. (role: recent area contributor; confidence: low; commits: 3e3c144ef454; files: src/agents/harness/structured-input-schema.ts, src/auto-reply/reply/acp-elicitation-handler.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 (4 earlier review cycles)
  • reviewed 2026-08-19T17:57:34.797Z sha e3cb51e10cb345f51e17e4289b083025ca5052d4 :: found issues before merge. :: [P1] Formalize the structured-input Plugin SDK contract
  • reviewed 2026-08-19T18:31:46.103Z sha 3644ed2 :: found issues before merge. :: [P1] Formalize the structured-input Plugin SDK contract
  • reviewed 2026-08-19T19:02:46.600Z sha 42879ed :: needs maintainer review before merge. :: none
  • reviewed 2026-08-19T19:31:55.119Z sha 50d9ab1 :: needs maintainer review before merge. :: none

Use protocol-specific helper names required by current main and update the reservation regression to the generalized input owner.
@steipete
steipete force-pushed the steipete/kind-gates-3a9113 branch from e3cb51e to 3644ed2 Compare August 19, 2026 18:23
@steipete
steipete marked this pull request as ready for review August 19, 2026 18:24
@steipete
steipete requested a review from a team as a code owner August 19, 2026 18:24
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/acpx/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 3e3c144ef4549abef2650cb0d4d0b79c5b5a5efa
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

Expose one documented, frozen agent-harness structured-input contract with runtime and subpath coverage, replacing the accidental function-property API.
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 19, 2026
@steipete

steipete commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready proof

Current head: 3e3c144ef4549abef2650cb0d4d0b79c5b5a5efa.

The root cause is repaired at one shared owner: native Codex and ACP protocol adapters translate into the bounded structured-input compiler/executor; ACP channel dispatch and manual sessions_spawn(runtime="acp") both install the same admission-bound handler. Approval-shaped MCP forms still classify first. The obsolete duplicate Codex secret steering/claim path is deleted.

ClawSweeper's August 19 finding and both Rank-up moves: are addressed. The accidental function-property SDK API is replaced by one named, frozen, documented agentHarnessStructuredInput contract with runtime/subpath tests and an explicit one-export surface budget. Direct dependency review used installed [email protected], installed codex-acp, and current sibling Codex source; exact citations remain in the PR body and review artifact. No redundant re-review was requested because the review is fresh and changes were limited to its finding plus CI repairs.

Proof

  • Rebased elicitation groups: native Codex 474 passed; ACP handler/dispatch/control-plane 263 passed; ACPX 124 passed; shared structured input 28 passed (889 total).
  • Follow-up owner/guard groups passed 27 and 22 tests. SDK contract/runtime/Codex proof passed 44 tests.
  • CI repair proof passed 58 cross-surface tests and 27 structured-input tests.
  • pnpm deadcode:unused-files passes after registering the process fixture as an ACPX workspace executable root.
  • pnpm check:architecture passes with zero runtime and Madge cycles after moving shared types into the boundary leaf.
  • node scripts/run-vitest.mjs src/agents/harness/structured-input.test.ts test/scripts/lint-suppressions.test.ts passes 14 tests after replacing the rejected production lint suppression with an explicit code-point validator.
  • pnpm plugin-sdk:surface:check passes at 4,336 public exports.
  • Final complete changed gates, pnpm build, and git diff --check pass.
  • pnpm check:docs checked 6,532 links with zero broken.
  • Final autoreview: no accepted/actionable findings, confidence 0.99.

Exact-head pull-request CI is green: run 32294264125.

OPENCLAW_TESTBOX=1 scripts/pr prepare-run 126387 completed with GATES_MODE=hosted_exact_or_recent_parent, reusing the green hosted exact-head gate. No separate Testbox was launched, so there is no Testbox lease or run ID. Prepared head and PR head both equal 3e3c144ef4549abef2650cb0d4d0b79c5b5a5efa.

Live behavior

  • Native app-server through a real authenticated Codex provider created an exact-session Gateway question; resolving Red produced exactly COLOR:Red.
  • Before the final ACP owner fix, manual ACP produced no Gateway question and exactly FLAVOR:.
  • After the fix through published [email protected], the ACP child question resolved Chocolate and produced exactly FLAVOR:Chocolate.

The isolated Control UI remained at “Control UI did not start” / “Loading chat”, so no misleading screenshot/video is attached. The live question.list / question.resolve surface and persisted transcripts were inspected instead.

Review and risk state

Production LOC is raw +2,375/−282 (net +2,093), judged net +2,079 after discounting type-relocation formatting; tests/support +1,823/−260; docs +70/−12; tooling +6/−2; dependency net 0. The production growth is the generic bounded capability, native/ACP adapters, missing manual-spawn owner, and suppression-free hostile-input validation.

The required openclaw-secops review for pnpm-lock.yaml is still pending. Merge remains blocked until that CODEOWNERS approval is present; it will not be bypassed.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 19, 2026
Register the real-process ACPX fixture as an executable test root and move shared structured-input types into the boundary leaf to keep Knip and Madge clean.
@socket-security

socket-security Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​acpx@​0.13.19910010097100

View full report

Preserve the rejected control and invisible-character ranges with an explicit code-point check so the production suppression inventory stays closed.
@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Aug 19, 2026
@clawsweeper clawsweeper Bot added the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Aug 19, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@openclaw/openclaw-secops — could someone review the current head for the required CODEOWNERS approval?

The lockfile change only moves the bundled ACPX plugin to published [email protected]; dependency/security CI and the full exact-head gate are green. The PR is prepared through OPENCLAW_TESTBOX=1 scripts/pr prepare-run and will not be merged without this approval.

Land-ready evidence and the ClawSweeper finding/rank-up disposition are recorded above: #126387 (comment)

@steipete
steipete merged commit 7e0b599 into main Aug 19, 2026
236 checks passed
@steipete
steipete deleted the steipete/kind-gates-3a9113 branch August 19, 2026 22:25
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix: surface Codex input prompts across runtimes

Codex structured input now reaches bounded Gateway questions in native and ACP runs, with exact turn ownership, explicit unsupported outcomes, and cancellation fencing. Consume the published ACPX elicitation support.

* chore: align elicitation helpers with current guards

Use protocol-specific helper names required by current main and update the reservation regression to the generalized input owner.

* fix: formalize structured input SDK surface

Expose one documented, frozen agent-harness structured-input contract with runtime and subpath coverage, replacing the accidental function-property API.

* fix: satisfy elicitation architecture gates

Register the real-process ACPX fixture as an executable test root and move shared structured-input types into the boundary leaf to keep Knip and Madge clean.

* fix: remove structured input lint suppression

Preserve the rejected control and invisible-character ranges with an explicit code-point check so the production suppression inventory stays closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: acpx extensions: codex 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. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL 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