Skip to content

fix(agents): prepare runtime config before standalone ingress - #171209

Merged
steipete merged 4 commits into
mainfrom
dbasync/redmain-ingress-runtime-config
Oct 13, 2026
Merged

steipete merged 4 commits into
mainfrom
dbasync/redmain-ingress-runtime-config

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A built one-shot ingress turn with workspace skills exits with Runtime config is not prepared. Await captureRuntimeConfigAsyncReader()() first. The original E2E fails in CI run 38435429012.

#169714 (7e48efba10479f90496438e3edf3e0d0121e34c7) made getRuntimeConfig a prepared-only reader but left the async agent config owner calling it before preparation. Await the existing async reader at that owner. It reuses published runtime config when available. Keep the existing SecretRef resolution, activation, and command authority checks. Update four config mocks to expose the same async API, document their existing in-memory isolation, and remove their four obsolete mock-baseline entries. Assertions and the built E2E remain unchanged.

Evidence

Changed-file formatting, lint, and git diff --check pass. Two isolated Codex reviews through P2 are scoped-clean: the owner change and the incremental fixture cutover. No local test or build was run under compute conservation. Ordinary exact-head CI 38440220398 is green. Pinned-source focused CI 38442419805 passes the original built one-shot ingress case (13,288 ms; Vitest 55.62 s) and all four complete command fixtures (69 cases; 328.23 s). A separate pinned-base run 38437637112 reproduced the original config-not-prepared failure. Aggregate T1 stays 452 to 452 (compatibility 9 to 9); dialect deltas and Madge/runtime cycles are zero. All ordinary CI and required aggregate gates are green. Pinned-source integrated static proof 38442756242 passed the original dependency, unused-file, and export scans, with every candidate source blob verified and unchanged.

No schema, plugin loading, updater, public SDK API, or service-lifecycle change. This repairs an existing async command entry point; no synchronous fallback or parallel owner is added. No paranoid or security checks removed. No warmed SQL/request reduction claimed; no harness run. T1 and dialect results come from CI.

The first final-head check found missing mock-isolation annotations; this follow-up documents the existing fixtures and shrinks the exact baseline. No additional execution path changed.

LOC: six files, +10/−6. Direct emergency pushes were previously rejected with GH006; use the authorized READY PR and head-pinned squash fallback.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T17:41:28.416865Z 9dff140 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations agents Agent runtime and tooling size: XS labels Oct 13, 2026
steipete added a commit that referenced this pull request Oct 13, 2026
## What Problem This Solves

Scheduled main CI run [38432046450](https://github.com/openclaw/openclaw/actions/runs/38432046450), dependency job 115417046598, found three static-analysis regressions after two ownership moves.

- #171103 (`e454b2b80ca03e55b9ff58f924d1216552def9d5`) moved the Canvas builder into root scripts. Knip now attributes `@solidjs/web` and `solid-js` to the root workspace, although the builder resolves both through `extensions/canvas/package.json`, which declares them.
- #170685 (`0873425a1ef2a1c36e5296ba648dd51958768f77`) moved plugin metadata reads to the worker kernel but retained an unused facade re-export.
- The same change added a native dependency fixture launched by file path. The full-tree scan needs that subprocess entrypoint declared so it follows the fixture's dependencies.

## Change

Document the two Canvas-owned dependency exceptions alongside the existing compiler exception. Remove only the unused facade re-export; keep the local import, kernel export, and worker implementation. Declare the exact subprocess fixture as an audited Knip entrypoint.

No runtime behavior, database calls, dependency versions, public SDK surface, schema, migration, update, or service lifecycle changes. No checks are removed and no new concurrency edge cases are accepted. This patch makes no warmed SQL/request or T1 reduction claim; no SQL harness is warranted.

## Evidence

Changed-file formatting, syntax-only lint, and `git diff --check` pass. One isolated Codex P0–P2 review passed with no findings. Exact-source [CI proof 38436526162](https://github.com/openclaw/openclaw/actions/runs/38436526162/job/115431841520) passes all three original commands: dependency, unused-file and export scans, with no findings. Ordinary CI [38435429012](https://github.com/openclaw/openclaw/actions/runs/38435429012) passes lint, types, source contracts, Madge and database ratchets.

The ordinary CI failure in the unchanged one-shot ingress E2E is independently reproduced on the exact main base `5415a05cd1ec5d5ce70bfd145bdfdf604bf19fde`: [base run 38437637112](https://github.com/openclaw/openclaw/actions/runs/38437637112/job/115435700602) has the same workspace-skills case, rejected-vs-fulfilled assertion and `Runtime config is not prepared` stack through `resolveAgentRuntimeConfig`. The source remained unchanged during both proof runs. Land under the authorized inherited-failure exception; the separate owner repair is #171209. No PR-caused static failure is waived.

LOC: tooling +5/−0; production +0/−1; three files. No tests added or changed.

Direct emergency pushes were previously refused by repository protection (GH006). This repair uses the authorized PR and head-pinned REST squash fallback.
@steipete
steipete merged commit 39ff0ae into main Oct 13, 2026
154 of 155 checks passed
@steipete
steipete deleted the dbasync/redmain-ingress-runtime-config branch October 13, 2026 18:12
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…w#171194)

## What Problem This Solves

Scheduled main CI run [38432046450](https://github.com/openclaw/openclaw/actions/runs/38432046450), dependency job 115417046598, found three static-analysis regressions after two ownership moves.

- openclaw#171103 (`7ac851a8faa004550f9f5906464352aa17ab42a7`) moved the Canvas builder into root scripts. Knip now attributes `@solidjs/web` and `solid-js` to the root workspace, although the builder resolves both through `extensions/canvas/package.json`, which declares them.
- openclaw#170685 (`31c7ade62123d4fadedee50d7ad5e688397d9f23`) moved plugin metadata reads to the worker kernel but retained an unused facade re-export.
- The same change added a native dependency fixture launched by file path. The full-tree scan needs that subprocess entrypoint declared so it follows the fixture's dependencies.

## Change

Document the two Canvas-owned dependency exceptions alongside the existing compiler exception. Remove only the unused facade re-export; keep the local import, kernel export, and worker implementation. Declare the exact subprocess fixture as an audited Knip entrypoint.

No runtime behavior, database calls, dependency versions, public SDK surface, schema, migration, update, or service lifecycle changes. No checks are removed and no new concurrency edge cases are accepted. This patch makes no warmed SQL/request or T1 reduction claim; no SQL harness is warranted.

## Evidence

Changed-file formatting, syntax-only lint, and `git diff --check` pass. One isolated Codex P0–P2 review passed with no findings. Exact-source [CI proof 38436526162](https://github.com/openclaw/openclaw/actions/runs/38436526162/job/115431841520) passes all three original commands: dependency, unused-file and export scans, with no findings. Ordinary CI [38435429012](https://github.com/openclaw/openclaw/actions/runs/38435429012) passes lint, types, source contracts, Madge and database ratchets.

The ordinary CI failure in the unchanged one-shot ingress E2E is independently reproduced on the exact main base `cdd2bfe7cccca0c6c1cc21890ff202f2eec288af`: [base run 38437637112](https://github.com/openclaw/openclaw/actions/runs/38437637112/job/115435700602) has the same workspace-skills case, rejected-vs-fulfilled assertion and `Runtime config is not prepared` stack through `resolveAgentRuntimeConfig`. The source remained unchanged during both proof runs. Land under the authorized inherited-failure exception; the separate owner repair is openclaw#171209. No PR-caused static failure is waived.

LOC: tooling +5/−0; production +0/−1; three files. No tests added or changed.

Direct emergency pushes were previously refused by repository protection (GH006). This repair uses the authorized PR and head-pinned REST squash fallback.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…aw#171209)

## What Problem This Solves

A built one-shot ingress turn with workspace skills exits with `Runtime config is not prepared. Await captureRuntimeConfigAsyncReader()() first.` The original E2E fails in [CI run 38435429012](https://github.com/openclaw/openclaw/actions/runs/38435429012/job/115429366143).

openclaw#169714 (`5dbf2157dc8325fff25f79abddd7a2d2bc11e798`) made `getRuntimeConfig` a prepared-only reader but left the async agent config owner calling it before preparation. Await the existing async reader at that owner. It reuses published runtime config when available. Keep the existing SecretRef resolution, activation, and command authority checks. Update four config mocks to expose the same async API, document their existing in-memory isolation, and remove their four obsolete mock-baseline entries. Assertions and the built E2E remain unchanged.

## Evidence

Changed-file formatting, lint, and `git diff --check` pass. Two isolated Codex reviews through P2 are scoped-clean: the owner change and the incremental fixture cutover. No local test or build was run under compute conservation. Ordinary exact-head CI 38440220398 is green. Pinned-source [focused CI 38442419805](https://github.com/openclaw/openclaw/actions/runs/38442419805/job/115452119740) passes the original built one-shot ingress case (13,288 ms; Vitest 55.62 s) and all four complete command fixtures (69 cases; 328.23 s). A separate pinned-base run 38437637112 reproduced the original config-not-prepared failure. Aggregate T1 stays 452 to 452 (compatibility 9 to 9); dialect deltas and Madge/runtime cycles are zero. All ordinary CI and required aggregate gates are green. Pinned-source [integrated static proof 38442756242](https://github.com/openclaw/openclaw/actions/runs/38442756242/job/115453266259) passed the original dependency, unused-file, and export scans, with every candidate source blob verified and unchanged.

No schema, plugin loading, updater, public SDK API, or service-lifecycle change. This repairs an existing async command entry point; no synchronous fallback or parallel owner is added. No paranoid or security checks removed. No warmed SQL/request reduction claimed; no harness run. T1 and dialect results come from CI.

The first final-head check found missing mock-isolation annotations; this follow-up documents the existing fixtures and shrinks the exact baseline. No additional execution path changed.

LOC: six files, +10/−6. Direct emergency pushes were previously rejected with GH006; use the authorized READY PR and head-pinned squash fallback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant