Skip to content

[codex] refactor: add embedded runner directory barrel - #71224

Closed
100yenadmin wants to merge 2 commits into
openclaw:mainfrom
electricsheephq:contract-first/embedded-runner-aliases
Closed

100yenadmin wants to merge 2 commits into
openclaw:mainfrom
electricsheephq:contract-first/embedded-runner-aliases

Conversation

@100yenadmin

@100yenadmin 100yenadmin commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #71096 and RFC #71004. This PR adds the canonical src/agents/embedded-runner/ directory barrel without moving implementation files or breaking existing Pi-prefixed imports.

No runtime behavior changes.

RuntimePlan Package Context

This is the naming/observability cleanup rung, intentionally kept as an alias-only step. It gives maintainers and future PRs a neutral import target while preserving old Pi names until the runner split is stable.

flowchart TD
  RFC["#71004 RFC"] --> Base["#71096 RuntimePlan merged"]
  Base --> Transcript["#71223 transcript resolver split"]
  Transcript --> This["#71224 embedded-runner directory alias"]
  Base --> Harness["#71222/#71238 Harness V2 lifecycle"]
  Harness --> Outcome["#71239 shared terminal outcome classifier"]
Loading

Review package links: #71196, #71197, #71201, #71220, #71222, #71223, #71224, #71238, #71239.

Local Architecture

flowchart LR
  New["src/agents/embedded-runner/index.ts"] --> Neutral["src/agents/embedded-runner.ts"]
  Neutral --> Existing["existing embedded-agent exports"]
  Old["pi-embedded-runner compatibility paths"] --> Existing
Loading

Why This PR Exists

The runtime now dispatches both Pi and Codex-backed harness paths, so the old Pi-only package name is misleading. A pure alias step lets future code use the neutral path without a risky file move or import migration in the same PR.

What Changed

  • Added src/agents/embedded-runner/index.ts.
  • The new directory barrel re-exports the existing neutral embedded-agent API from src/agents/embedded-runner.ts.
  • Existing pi-embedded-runner and pi-embedded compatibility paths remain unchanged.

Maintainer Review Guide

  • Highest-signal file: src/agents/embedded-runner/index.ts.
  • Check that this is a pure barrel/alias change.
  • Check no implementation files moved and no compatibility imports were removed.
  • This PR is deliberately small because the risky rename/split work is deferred.

What Did Not Change

Verification

  • node --import tsx -e "import('./src/agents/embedded-runner/index.ts').then((module) => { if (typeof module.runEmbeddedAgent !== 'function') throw new Error('missing runEmbeddedAgent'); console.log('ok'); })"
  • ./node_modules/.bin/oxlint --tsconfig tsconfig.oxlint.core.json src/agents/embedded-runner/index.ts
  • git diff --check
  • pnpm check:architecture

Local broad pnpm check:changed has previously hit unrelated repository type/dependency drift; direct import smoke, lint, diff-check, and architecture checks are the intended merge signal for this alias-only slice.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Apr 24, 2026
@100yenadmin
100yenadmin marked this pull request as ready for review April 24, 2026 19:45
Copilot AI review requested due to automatic review settings April 24, 2026 19:45
@greptile-apps

greptile-apps Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds src/agents/embedded-runner/index.ts as a canonical directory barrel that re-exports the full public surface of the existing src/agents/embedded-runner.ts file — both values and types — without moving any implementation or touching existing import sites. The change is a pure structural addition with no runtime behaviour impact.

Confidence Score: 5/5

Safe to merge — the change is a one-file additive barrel with no behaviour impact.

All re-exported names and types in the new barrel match those in the source file exactly. The explicit .js extension avoids any TypeScript module-resolution ambiguity between the new directory and the sibling .ts file. No implementation was moved, no existing imports were changed, and there are no P0 or P1 findings.

No files require special attention.

Reviews (1): Last reviewed commit: "refactor: add embedded runner directory ..." | Re-trigger Greptile

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a canonical src/agents/embedded-runner/ directory barrel to expose the existing neutral embedded-agent API without moving implementation files or changing existing compatibility imports.

Changes:

  • Added src/agents/embedded-runner/index.ts as a directory barrel.
  • Re-exported the existing embedded-runner functions and types from src/agents/embedded-runner.ts via ../embedded-runner.js.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/agents/embedded-runner/index.ts Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@100yenadmin 100yenadmin changed the title refactor: add embedded runner directory barrel [codex] refactor: add embedded runner directory barrel Apr 25, 2026
@100yenadmin

Copy link
Copy Markdown
Contributor Author

Superseded by #71722, which consolidates the RuntimePlan/Harness package into one review PR and preserves this PR's commits via cherry-pick -x. Keeping this PR as review/history evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants