Skip to content

fix(ci): accept file paths in extension packing fixtures - #149726

Merged
steipete merged 1 commit into
mainfrom
codex/fix-ci-packing-file-target
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-ci-packing-file-target

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #149665

What Problem This Solves

Two extension-packing tests fail after the planner began resolving ownership from full test-file paths. Their mock still expects an extension root, so it throws before reaching the packing assertions.

User Impact

Restores the existing CI packing checks. There is no runtime product change.

Why This Change Was Made

Read the synthetic extension ID from either a root or file path, matching the resolver contract. Unknown fixture IDs still fail, and all cost, shard-count, grouping, and budget assertions stay unchanged.

Evidence

  • Node 24.20.0 reproduces both original failures at the fixture lookup.
  • The corrected full test file passes all 160 cases in original order.
  • Root-test types, targeted typed lint, formatting, and git diff --check pass. Independent review through P2 reports no findings.
  • The actual CI planner selects the changed tooling test plus the standard boundary and TUI groups. It does not select the separately failing Goal/config-session tests.

Exact-head hosted CI passed at 71caf685c75494740643f097ce9af2e1fda69039.

@steipete steipete self-assigned this Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 05:17
@vincentkoc

Copy link
Copy Markdown
Member

Coordinating the canonical fixes: #149722 addresses the Goal four-versus-three read regression. Its small fixture scope correction has passed source review and fresh whole-patch review and is awaiting publication.

Our exact b013f2559df1aa03bc7f9d9318a4e6fbc932d1ad CI job also hits the two tail-exchange fixture failures repaired here. We will reuse this PR rather than duplicate its test fix.

I see your current body says the selected planner scope excludes the separately failing Goal tests. Is your existing lane handling native landing once its required CI passes? That would let this prerequisite land first, then we can incorporate it into the Goal repair. If the actual run does reveal a dependency on the Goal fix, please point us to that gate so we can coordinate the order. Your branch and ownership remain unchanged.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 1:24 AM ET / 05:24 UTC.

ClawSweeper review

What this changes

Updates the CI packing test fixture to recognize plugin IDs in both directory roots and full test-file paths.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary on inspected main and preserves the existing packing checks. No actionable defect was found; maintainer discussion supports retaining this PR as the coordinated fixture repair.

Priority: P2
Reviewed head: 71caf685c75494740643f097ce9af2e1fda69039

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, correct fixture repair with relevant reported validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; its reported 160-case run directly covers the changed test behavior, with no production owner changed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; its reported 160-case run directly covers the changed test behavior, with no production owner changed.
Evidence reviewed 6 items Introduced change preserves assertions: The verified merge-base-to-head diff changes only the fixture lookup. Both tail cases retain their shard counts, six-group inventory, shard arguments, serial execution, total-cost conservation, and 240-second budget assertions.
Production caller requires file-path support: The planner resolves configs for both extension roots and individual test files. For extensions/packing-fixture-0/index.test.ts, the old fixture searches for packing-fixture-0/index.test.ts in an array containing only plugin IDs; the replacement correctly extracts packing-fixture-0.
Existing resolver contract: The resolver explicitly accepts an extension root or test file and extracts the first two path segments after checking exact database-worker ownership. The patch repairs a synthetic fixture without replacing production routing or depending on a Codex runtime contract.
Findings None None.
Security None None.

How this fits together

The CI planner groups plugin tests into jobs using estimated execution costs. This fixture supplies synthetic plugins and checks that packing preserves every group while respecting the job budget.

flowchart LR
  A[Synthetic plugin roots] --> C[Fixture config lookup]
  B[Synthetic test-file paths] --> C
  C --> D[CI job packing]
  E[Estimated test costs] --> D
  D --> F[Group and budget assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -3. Total -3 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #149726
Summary: This PR owns the fixture repair; the linked planner change and Goal repair do not replace it.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the synthetic fixture aligned with the existing resolver contract while retaining all packing and budget assertions.

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

Yes, from source: both packing cases pass full file paths into a mock that previously accepted only roots, causing the fixture lookup to throw. Tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes. Extracting the synthetic plugin ID repairs the mock contract without altering production behavior, adding another implementation, or weakening assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Repairs a concrete CI fixture failure with a narrow scope and no product runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; its reported 160-case run directly covers the changed test behavior, with no production owner changed.

Label justifications:

  • P2: Repairs a concrete CI fixture failure with a narrow scope and no product runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored fixture repair is exempt from external-contributor runtime proof; its reported 160-case run directly covers the changed test behavior, with no production owner changed.

Evidence

What I checked:

  • Introduced change preserves assertions: The verified merge-base-to-head diff changes only the fixture lookup. Both tail cases retain their shard counts, six-group inventory, shard arguments, serial execution, total-cost conservation, and 240-second budget assertions. (test/scripts/ci-changed-node-test-plan.test.ts:1289, 71caf685c754)
  • Production caller requires file-path support: The planner resolves configs for both extension roots and individual test files. For extensions/packing-fixture-0/index.test.ts, the old fixture searches for packing-fixture-0/index.test.ts in an array containing only plugin IDs; the replacement correctly extracts packing-fixture-0. (scripts/lib/ci-changed-node-test-plan.mts:394, 71caf685c754)
  • Existing resolver contract: The resolver explicitly accepts an extension root or test file and extracts the first two path segments after checking exact database-worker ownership. The patch repairs a synthetic fixture without replacing production routing or depending on a Codex runtime contract. (scripts/lib/extension-test-plan.mts:393, 71caf685c754)
  • Inspected main still needs the repair: Fetched main retains the root-only fixture lookup. The planner and resolver match the reviewed checkout. Release-file inspection was unavailable, so no shipped-fix claim is made. (test/scripts/ci-changed-node-test-plan.test.ts:1289, db1d5d2dccbc)
  • Validation and coordinated ownership: The captured PR body reports both original failures and all 160 cases passing afterward on Node 24.20.0. Vincent Koc's comment explicitly reuses this fixture repair for the separate Goal work: fix(ci): accept file paths in extension packing fixtures #149726 (comment). These are reported results; this read-only review did not execute tests. (71caf685c754)
  • Area history: Current-main history identifies prior work by Peter Steinberger, Jason (Json), and Vincent Koc on the planner and its tests. Exact source-line attribution could not be completed because historical objects were unavailable; routing below does not claim introduction. (test/scripts/ci-changed-node-test-plan.test.ts, db1d5d2dccbc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Yes, this lane owns native landing of #149726 once its required CI passes. Native review is validated at 71caf685c75494740643f097ce9af2e1fda69039; the current run has no failures, with the baseline-ratchet and CI-routing jobs still running. Its selected test groups exclude Goal operations.

I also found the active #149722 while checking these comments. I will preserve that ownership. Draft #149740 is a further simplification: management-only Goal edits preserve identity, so it removes both identity snapshots and reuses the authoritative entry already read inside write admission. Isolated owner/RPC proof passed 22 tests, with 4→2 session-row reads and 199,114→66,771 returned text bytes for the same 64 KiB synthetic prompt. I will keep it draft and reconcile it after #149722, retaining your distinct Matrix-key coverage, rather than race the active repair.

@steipete
steipete merged commit fbf926a into main Sep 16, 2026
118 checks passed
@steipete
steipete deleted the codex/fix-ci-packing-file-target branch September 16, 2026 05:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@vincentkoc

vincentkoc commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

@steipete, the freeze request above is withdrawn: #149697 already landed the canonical Goal and renderer repairs at 08584b3d34c526ad438b39b32931a64a6c61a992, with verified required CI. Our alternative #149722 is closed as superseded.

The diagnostics and GC work will use actual main ancestry, so our coordination no longer asks your lane to hold #149740 draft. Its scope and timing remain yours. We retained an additional real SQLite regression for case-distinct Matrix sibling identities, including unchanged sibling rows and no false identity events, if useful for your future owner repair. I’ll still send the promised single closeout notification when our diagnostics/GC chain finishes.

fuller-stack-dev added a commit that referenced this pull request Sep 16, 2026
* fix(active-memory): keep recall scoped to admitted request

Rebuild the request-boundary fix against current main while preserving Codex projection behavior and existing timeout semantics.

* fix(active-memory): retain admitted requests through runtime refresh

Keep one recorder-owned input representation through prompt rebuilds, preserve no-recorder behavior, and separate deterministic recall reuse by admission identity. Handle lazy recorder resolution and message-less host refresh continuations without expanding plugin parameters.

* test: preserve refresh assertions during integration

* fix(sessions): reuse the selected Goal entry for identity snapshots

* fix(ci): repair reply callback and planner fixture contracts

Reuse the existing reply callback when clearing its target and normalize the packing fixture resolver input before selecting its synthetic config.

* test(ci): align extension packing fixture with canonical repair

Adopt the canonical resolver mock from PR #149726 while retaining all packing assertions.

* test: retain canonical Goal and UI CI repairs

---------

Co-authored-by: Sergio <[email protected]>
Co-authored-by: Jason (Json) <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…149180)

* fix(active-memory): keep recall scoped to admitted request

Rebuild the request-boundary fix against current main while preserving Codex projection behavior and existing timeout semantics.

* fix(active-memory): retain admitted requests through runtime refresh

Keep one recorder-owned input representation through prompt rebuilds, preserve no-recorder behavior, and separate deterministic recall reuse by admission identity. Handle lazy recorder resolution and message-less host refresh continuations without expanding plugin parameters.

* test: preserve refresh assertions during integration

* fix(sessions): reuse the selected Goal entry for identity snapshots

* fix(ci): repair reply callback and planner fixture contracts

Reuse the existing reply callback when clearing its target and normalize the packing fixture resolver input before selecting its synthetic config.

* test(ci): align extension packing fixture with canonical repair

Adopt the canonical resolver mock from PR openclaw#149726 while retaining all packing assertions.

* test: retain canonical Goal and UI CI repairs

---------

Co-authored-by: Sergio <[email protected]>
Co-authored-by: Jason (Json) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

2 participants