Skip to content

[do not merge] live test: shadow Codex selection - #159649

Closed
steipete wants to merge 2 commits into
steipete/codex-ci-test-selection-9200affrom
steipete/codex-selection-live-test
Closed

steipete wants to merge 2 commits into
steipete/codex-ci-test-selection-9200affrom
steipete/codex-selection-live-test

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Temporary stacked live test for the shadow Codex selector in #159576. Do not merge. The base is the selector branch, not main.

User Impact

None: this branch will be closed and deleted after collecting CI evidence. The full deterministic plan still runs.

Why This Change Was Made

The first commit renames a local variable in normalizeE164 without changing behavior. Its broad import reachability exercises a large narrow Node plan and the selector's bounded preflight transport.

A second, deliberately failing commit will remove the leading + from the normalized phone value. The existing src/config/sessions.test.ts normalized per-sender key case exercises that behavior through a depth-three import chain outside the deterministic floor. The experiment records whether shadow selection retains that failing file and whether reporting survives fail-fast cancellation.

Evidence

The original source blob matches the earlier locally validated probe: all 20 session tests passed before mutation; the mutation produced 1 failed / 19 passed (1555 received, +1555 expected). Independent review of both temporary changes found no actionable issues within this deliberate experimental scope. Hosted run evidence will be recorded in #159576.

No merge, auto-merge, release, or workflow dispatch is requested.

Temporary stacked live-test commit only; never merge. Rename the local variable without changing normalization behavior.
@clawsweeper

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

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 9:11 AM ET / 13:11 UTC (Revision 2).

ClawSweeper review

What this changes

The branch makes OpenClaw’s shared phone normalizer return digits without the leading plus, creating a failing case for shadow CI test selection.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this temporary probe open while the linked selector PR is being evaluated. Its new negative-control commit deliberately breaks the established phone-number contract, so this head must not merge.

Priority: P3
Reviewed head: 2a33ef70238282bf7c7049a755cf5beb80eec592

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🌊 off-meta tidepool Not applicable: The shared phone normalizer is the changed production owner. The captured body reports a local session-test failure of 1555 versus +1555, but supplies no completed hosted selector classification for this head. This temporary maintainer probe has no external-contributor after-fix proof gate and changes no stored-data format.
Patch quality 🧂 unranked krab (1/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The shared phone normalizer is the changed production owner. The captured body reports a local session-test failure of 1555 versus +1555, but supplies no completed hosted selector classification for this head. This temporary maintainer probe has no external-contributor after-fix proof gate and changes no stored-data format.
Evidence reviewed 10 items Introduced negative control: The pinned introduced diff replaces the plus-prefixed return with raw digits. The verified test merge carries the same change.
Current main contract: Current main returns + followed by digits for nonempty phone-like input.
Existing session expectation: The per-sender case expects chat:+1555 to normalize to +1555; the proposed return yields 1555.
Findings 1 actionable finding [P1] Preserve the leading plus in normalized phone identities
Security None None.

How this fits together

OpenClaw’s phone normalizer turns phone-like sender IDs into values used by session and channel plugins. This stacked PR changes that helper so the proposed CI selector can classify a failing Node test.

flowchart LR
  A[Phone-like sender ID] --> B[Shared phone normalizer]
  C[PR source change] --> B
  B --> D[Session and channel IDs]
  D --> E[Messaging and approvals]
  C --> F[Node test planner]
  F --> G[Shadow Codex selector]
  G --> H[CI classification report]
Loading

Before merge

  • Preserve the leading plus in normalized phone identities (P1) - The new return removes + from every nonempty phone result. Existing session, utility, and WhatsApp target tests expect plus-prefixed values, and plugin consumers receive this helper through the public SDK. Keep this intentional negative control out of a production merge.
  • Resolve merge risk (P1) - Merging this head would change the public plugin SDK normalizer from plus-prefixed E.164 values to digits-only values, breaking existing callers and configured identities.
  • Resolve merge risk (P1) - Signal replies derive recipients from normalized sender IDs, while channel target tests expect plus-prefixed phone values; delivery could fail after merge.
  • Complete next step (P2) - Keep this negative-control head unmerged; record its hosted classification on the linked selector PR, then close the probe.
  • Improve patch quality - Address the highest-priority review finding and re-run the changed-surface validation.

Findings

  • [P1] Preserve the leading plus in normalized phone identities — src/utils.ts:51
Agent review details

Security

None.

PR surface

Source 0. Total 0 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: adjacent_distinct
Canonical: #159576
Summary: This temporary negative-control branch tests the open selector PR; it does not implement the selector.

Members:

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

Merge-risk options

Maintainer options:

  1. Finish and close the probe (recommended)
    Keep this negative-control head unmerged, carry its CI result to the selector PR, then close the temporary branch.

Technical review

Best possible solution:

Preserve plus-prefixed normalization in production, record the hosted selector result on the linked selector PR, and close this disposable probe after the experiment.

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

Yes. The current head deterministically returns 1555 for chat:+1555 while an existing per-sender test expects +1555; this read-only review did not run tests.

Is this the best way to solve the issue?

No. The failing mutation serves as a disposable selector probe, but preserving the shared normalizer is the maintainable production outcome.

Full review comments:

  • [P1] Preserve the leading plus in normalized phone identities — src/utils.ts:51
    The new return removes + from every nonempty phone result. Existing session, utility, and WhatsApp target tests expect plus-prefixed values, and plugin consumers receive this helper through the public SDK. Keep this intentional negative control out of a production merge.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The introduced return value breaks an existing public plus-prefixed phone-normalization contract.
  • add merge-risk: 🚨 message-delivery: Signal uses normalized phone IDs as reply recipients, so digits-only output can affect targeting.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The shared phone normalizer is the changed production owner. The captured body reports a local session-test failure of 1555 versus +1555, but supplies no completed hosted selector classification for this head. This temporary maintainer probe has no external-contributor after-fix proof gate and changes no stored-data format.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P3: This is a controlled internal CI experiment with no intended user-facing release.
  • merge-risk: 🚨 compatibility: The introduced return value breaks an existing public plus-prefixed phone-normalization contract.
  • merge-risk: 🚨 message-delivery: Signal uses normalized phone IDs as reply recipients, so digits-only output can affect targeting.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The shared phone normalizer is the changed production owner. The captured body reports a local session-test failure of 1555 versus +1555, but supplies no completed hosted selector classification for this head. This temporary maintainer probe has no external-contributor after-fix proof gate and changes no stored-data format.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-27T12:47:34.693Z sha 4b4bf6a :: blocked before merge. :: none

Temporary failing stacked probe only; never merge. Exercise the existing depth-three session-key test outside the deterministic floor by returning 1555 instead of +1555.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Sep 27, 2026
@steipete steipete closed this Sep 27, 2026
@steipete
steipete deleted the steipete/codex-selection-live-test branch September 27, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS 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