Skip to content

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

Closed
steipete wants to merge 1 commit into
steipete/codex-ci-test-selection-9200affrom
steipete/codex-selection-live-test
Closed

steipete wants to merge 1 commit into
steipete/codex-ci-test-selection-9200affrom
steipete/codex-selection-live-test

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Temporary live validation of the shadow Codex test selector on a large narrow Node plan. Do not merge. This PR will be closed and its branch deleted after two observed runs.

User Impact

No product change is intended to land. Commit 1 only renames a local variable in phone normalization. Commit 2 will deliberately remove the leading + from normalized phone numbers to exercise selection and failure reporting outside the deterministic floor.

Why This Change Was Made

The selector PR itself selected only 17 Node rows and one prunable file. A stacked PR isolates a normal source edit so the selector can run in shadow mode after the complete Node test plan, including after pr-fail-fast cancellation.

Evidence

The mutation target is src/config/sessions.test.ts, whose normalized per-sender session-key assertion observes the phone-normalization result through sessions.test.ts → config/sessions.ts → config/sessions/session-key.ts → utils.ts (import depth 3). It is outside the changed file's directory and is not a direct importer. Local prepare results and both hosted runs will be recorded in the parent PR's Live test section.

Commit 1 local prepare: ready, 109 Node rows, 14,938 candidates, 3,055 floor, 11,883 prunable; src/config/sessions.test.ts is a candidate outside the floor. All 20 session tests pass with the harmless rename (59.22 s wall, including compiler preparation). Independent review is clean.

Live result and closeout

CI run 36314985952, head ea375fe4e2cb23920f3eb87e801afdd07ba7b9db: preflight selected 103 Node rows. check-dependencies repeated the parent PR's unlisted codex binary failure and pr-fail-fast canceled the run.

The codex-test-selection job was admitted after cancellation but failed immediately: OPENCLAW_CI_SELECTION_MATRIX was 275,546 bytes (context 7,790 bytes), and GitHub could not spawn Bash or Node: Argument list too long. Checkout failed; prepare and Codex were skipped; finalization, reporting, and upload also failed at process startup. No selector artifact, hosted selection counts, or report was produced. The only run artifact was startup-memory. The selector job ran from 11:20:18 to 11:20:26 UTC on 2026-09-27, with no finalization stall.

Stopped under the requested repeated-failure rule. Commit 2 was not committed or pushed. Its mutation was proven locally: the session-key case returned 1555 instead of +1555, with 1 failed / 19 passed in 43.14 s wall; the mutation was then removed. Independent review of the intended temporary mutation was clean.

Closed without merging; the temporary remote and local branch have been deleted. The parent PR records the remaining integration fixes and the large-matrix environment transport defect.

Temporary stacked live-test commit only; never merge. The local variable rename preserves normalization behavior. All 20 session tests pass; independent review found no actionable issues.
@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: 🐚 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 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 27, 2026, 7:21 AM ET / 11:21 UTC.

ClawSweeper review

What this changes

Renames a local variable in phone-number normalization to provide a source change for shadow Codex test selection without changing the normalized result.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this temporary probe open while the planned hosted runs are recorded. Its parent selector PR is still open, and the author explicitly says this branch must not be merged.

Priority: P3
Reviewed head: ea375fe4e2cb23920f3eb87e801afdd07ba7b9db

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The submitted edit is narrow and behavior-preserving for its temporary CI-probe purpose.
Proof confidence 🌊 off-meta tidepool Not applicable: This temporary member-owned probe changes only a local name in the phone-normalization owner; the session-key assertion still expects the same output. The PR claims a local prepare result, while its two hosted selector observations are pending on the parent PR. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This temporary member-owned probe changes only a local name in the phone-normalization owner; the session-key assertion still expects the same output. The PR claims a local prepare result, while its two hosted selector observations are pending on the parent PR. No stored-data contract changes.
Evidence reviewed 9 items Declared temporary purpose: The PR body says not to merge this branch, describes two planned hosted runs, and says their results will be recorded in the parent PR.
Introduced patch: The pinned PR delta changes only the local name from digits to phoneDigits; the regular expression and leading-plus return expression remain equivalent.
Current main behavior: Current main strips non-digits and prefixes nonempty results with +, matching the submitted branch's observable behavior.
Findings None None.
Security None None.

How this fits together

OpenClaw normalizes sender phone numbers before deriving per-sender session keys. The stacked CI experiment uses this source edit to observe which tests its shadow selector would retain.

flowchart LR
A[Incoming sender number] --> B[Phone normalization]
B --> C[Per sender session key]
C --> D[Session bucket]
E[Source edit] --> B
E --> F[Shadow test selector]
F --> G[Selection report]
Loading

Before merge

  • Complete next step (P2) - Keep this branch out of merge; after the two hosted runs are recorded in the parent PR, close this PR and delete its branch.
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.

Technical review

Best possible solution:

Keep the leading-plus phone contract intact and consolidate both hosted selector observations in the parent CI PR.

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

Not applicable: this is an operational CI probe rather than a bug report. The reviewed snapshot describes the hosted runs as pending.

Is this the best way to solve the issue?

Yes for the stated experiment: the rename supplies a source change while preserving phone output. Its value depends on recording the planned selector runs, not landing the edit.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a temporary operational validation probe with no intended product 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: This temporary member-owned probe changes only a local name in the phone-normalization owner; the session-key assertion still expects the same output. The PR claims a local prepare result, while its two hosted selector observations are pending on the parent PR. No stored-data contract changes.

Label justifications:

  • P3: This is a temporary operational validation probe with no intended product 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: This temporary member-owned probe changes only a local name in the phone-normalization owner; the session-key assertion still expects the same output. The PR claims a local prepare result, while its two hosted selector observations are pending on the parent PR. No stored-data contract changes.

Evidence

What I checked:

  • Declared temporary purpose: The PR body says not to merge this branch, describes two planned hosted runs, and says their results will be recorded in the parent PR.
  • Introduced patch: The pinned PR delta changes only the local name from digits to phoneDigits; the regular expression and leading-plus return expression remain equivalent. (src/utils.ts:50, ea375fe4e2cb)
  • Current main behavior: Current main strips non-digits and prefixes nonempty results with +, matching the submitted branch's observable behavior. (src/utils.ts:50, 4f227c5c76a6)
  • Session consumer and test: The session-key owner calls normalizeE164 for direct senders, and the per-sender test expects +1555 from chat:+1555. (src/config/sessions/session-key.ts:27, 4f227c5c76a6)
  • Existing regression assertion: The checked-out session test directly asserts the normalized per-sender value used as the proposed future mutation target. (src/config/sessions.test.ts:90, ea375fe4e2cb)
  • Parent experiment: The open parent PR at ci: add shadow Codex test selection #159576 adds the shadow CI selector and explicitly identifies this stacked PR as its live test. (e7be2ad4e8cf)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • morluto: 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 steipete closed this Sep 27, 2026
@steipete
steipete deleted the steipete/codex-selection-live-test branch September 27, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

1 participant