Skip to content

fix(ci): include CLI invocation in focused boundary checks - #173663

Merged
steipete merged 1 commit into
mainfrom
ci/fix8-boundary-bootstrap-coverage
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix8-boundary-bootstrap-coverage

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: CI's root-executable coverage check fails after the new CLI bootstrap module lands.

User Impact

There is no user-visible change. CI applies the existing focused boundary guards to the new bootstrap owner.

Why This Change Was Made

The bootstrap-safe cli-invocation.mjs added by #173154 was omitted from both focused boundary-guard aliases. Add it at the package-script owner, keeping the aliases identical and retaining every assertion. Runtime and rendered output are unchanged.

Evidence

The two affected tooling files pass 30/30 tests with --maxWorkers=1 after reproducing both main failures. The actual focused boundary command and targeted tooling/UI-component type graphs pass. Isolated P2 review is clean. The separate avatar-reference failure is already fixed by main commit 35039a47e23f; that exact hunk was dropped from this change. The retained package patch and boundary proof inputs are unchanged across rebases.

This CI-only fix uses the PR fallback after four direct pushes raced other main updates. No workflow was dispatched or manually rerun. Release-note context: restore CI guard coverage for the CLI bootstrap; no product behavior change.

Exact-head CI run 38841030186 has two inherited Codex router failures: turn-router-lifecycle.test.ts (exact terminal receipt after physical closure) and turn-router.test.ts (concurrent traffic routing), both missing the expected completedTurn.itemsView: full. The same files reproduce locally with 37 passed / 2 failed. CI's actual baseline and tested merge have identical Codex, runtime, SDK, runner, and fixture trees; the complete merge delta is the two lint aliases. These failures remain unresolved and are recorded for native inherited-failure admission; failed CI is not claimed green.

The bootstrap-safe cli-invocation.mjs added by #173154 was missing from
both focused guard aliases. Include it at the package-script owner so the
existing root-executable coverage regression passes and the new bootstrap
owner receives the same guards as the other root entrypoints.

Focused tooling proof: 30/30 across the boundary and type-shard files;
the separately landed avatar reference repair is 35039a4. The actual
focused boundary command and targeted tooling/UI-component types pass.
Independent P2 review is clean. Coverage assertions and runtime behavior
are unchanged.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 02:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-16T02:35:07.153417Z 9bcbb1a Draft marked ready
ℹ️ 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds cli-invocation.mjs to both focused boundary-check package scripts.

Example: CI checks root JavaScript coverage after cli-invocation.mjs is added.

  • Before: The bootstrap module is omitted from both guard commands, violating the existing coverage assertion.
  • After: Both identical commands include the module and retain all existing guard rules.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A precise, source-supported repair with passing focused CI; direct command output was not supplied, and the aggregate CI failure remains unclassified.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored tooling repair is outside the ordinary contributor proof gate; the body reports the actual focused command passing, and exact-head CI independently reports the additional-boundaries lane passing.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Repository CI rejects the incomplete root-executable coverage list.
Reason: The maintainer-authored repair restores an existing enforced contract without expanding product scope or changing defaults.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs a current-main coverage omission without weakening the guards or changing runtime behavior. No introduced defect was found; the failing CI gate still needs classification.

Priority: P2
Reviewed head: 9bcbb1a859cae5ffd7300fef3d5426c0407fdb21

Before merge

None.

Findings

None.

Agent review details

How this fits together

Package scripts supply source paths to the existing Oxlint boundary runner, which reports violations to the CI boundary-check lane.

flowchart LR
  A[CI boundary lane] --> B[Package script]
  B --> C[Oxlint runner]
  D[Root JavaScript files] --> C
  E[Boundary rules] --> C
  C --> F[Diagnostics and exit status]
Loading

Technical review

Best possible solution:

Land the narrow script repair once the existing CI gate is resolved or its failure is handled through the repository’s supported exception path.

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

Source inspection establishes the failure: the coverage test includes every root JavaScript file, while current-main command arguments omit cli-invocation.mjs; no target code was executed during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete repair at the package-script owner and follows the previously established launcher-coverage approach.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 387ebd69dfd3.

Provenance checked

  • Focused boundary-check command aliases keeps the original intent (4375c93: Include shipped root launchers in both equivalent focused commands while retaining the existing coverage assertion and scanner rules.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The pinned introduction diff adds only cli-invocation.mjs to the two existing command strings; neither assertions nor lint rules change. (package.json:1896, 9bcbb1a859ca)
  • Existing coverage contract: The existing test enumerates root JavaScript files, requires all of them in the focused command, and requires the second alias to equal the first. (test/scripts/run-additional-boundary-checks.test.ts:248, 9bcbb1a859ca)
  • Current-main omission: Fetched main still omits cli-invocation.mjs from both focused aliases. (package.json:1896, 387ebd69dfd3)
  • Prior intent and feature ownership: Commit 4375c93 previously added gateway-prewarm.mjs to these same aliases specifically to satisfy root coverage while preserving scanner rules, establishing the precedent this repair follows. (package.json:1896, 4375c939e05c)
  • CI result and unresolved attribution: The exact-head additional-boundaries check passed. The aggregate gate reports a failed test shard; its annotations identify Codex turn-router expectations for itemsView: full. No base comparison established whether those failures are inherited. An earlier PR-body check failed, while a later check with the same name passed. (extensions/codex/src/app-server/turn-router.test.ts:337, 9bcbb1a859ca)
  • Inspection limits: Older package-history searches reached unavailable promisor blobs; available history established the relevant prior intent. Actions log downloads were blocked by the storage-host allowlist, so CI attribution used GitHub job metadata and annotations.

PR surface

Config 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 2 2 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 2 0

Labels

Label changes:

  • add P2: Repairs a concrete CI coverage contract with a narrow tooling-only change and no runtime impact.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs a concrete CI coverage contract with a narrow tooling-only change and no runtime impact.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Establish whether the failing Codex turn-router assertions also fail on the base before selecting the appropriate CI resolution.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 15, 2026, 10:50 PM ET / October 16, 2026, 02:50 UTC.

@steipete
steipete merged commit 7577373 into main Oct 16, 2026
304 of 310 checks passed
@steipete
steipete deleted the ci/fix8-boundary-bootstrap-coverage branch October 16, 2026 03:19
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…173663)

The bootstrap-safe cli-invocation.mjs added by openclaw#173154 was missing from
both focused guard aliases. Include it at the package-script owner so the
existing root-executable coverage regression passes and the new bootstrap
owner receives the same guards as the other root entrypoints.

Focused tooling proof: 30/30 across the boundary and type-shard files;
the separately landed avatar reference repair is 06249c0. The actual
focused boundary command and targeted tooling/UI-component types pass.
Independent P2 review is clean. Coverage assertions and runtime behavior
are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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