Repository navigation
refactor: bind private core seams to serving owners - #176657
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes private implementation selectors and moves forwarding logic into the existing serving owners. Example: An agent registers the PDF tool without an explicit PDF model.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this useful maintainer-authored refactor open. The earlier accounting finding is resolved, no actionable defect remains in the reviewed diff, and remaining exact-head CI checks are pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAgent tool assembly combines configuration, credentials, requester identity, and sandbox policy into executable tools that delegate to existing inference, dispatch, filesystem, and diagnostic owners. flowchart TD
A[Agent run] --> B[Tool assembly]
B --> C[Serving owners]
C --> D[Message dispatch]
C --> E[Sandbox filesystem]
C --> F[Inference selection]
C --> G[Diagnostic writer]
Technical reviewBest possible solution: Retain the private-owner consolidation and main’s unchanged settlement implementation, then let the remaining exact-head checks complete. Do we have a high-confidence way to reproduce the issue? This is an internal refactor; source comparison establishes removal of the earlier duplicate-accounting change, and no target code was executed locally. Is this the best way to solve the issue? The change follows existing owners, removes the replaced private paths, and preserves serving inputs and guards; the limited PDF discovery timing change is explicitly accepted by the maintainer author. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 64e9443af525. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -106, Tests -74. Total -180 across 50 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 18, 2026, 9:13 PM ET / October 19, 2026, 01:13 UTC (Revision 3). |
|
@clawsweeper re-review The repair preserves terminal publication gating but settles discarded/rejected item accounting, with held and settled accounting assertions in the existing three-outcome regression. Independent P0–P2 review, targeted native types, ordinary changed-file lint, formatting, and all 14 suppression tests passed. The four-file exec resolver slice is parked and exactly restored to base, so no OpenGrep exception is requested. The body records initial CI failures and current proof gaps; fresh exact-head CI remains the broad gate. |
|
🦞👀 Re-review progress:
|
Use canonical message boundaries, the singleton auth-row cache, direct exec resolution and concrete sandbox pin owner. Preserve effect authority, delivery receipts and settlement. Current focused types, ordinary lint, suppression suite and independent review pass. Preserve this reviewed checkpoint before the coordinator-required tooling rebase; runtime and cycle proof remain incomplete.
5c4fb7d to
c71b30d
Compare
|
@clawsweeper re-review Current head c71b30d rebases for the named nested-lifecycle CI failure and drops the overlapping local repair in favor of main's #176658. All three accounting/acceptance/regression files now exactly match main91e3716; main's exactly-once completion assertion and accepted-history presentation gates remain intact. The 50-path private-owner cleanup removes99 production lines, with no memory or public-contract change. Fresh rollback review is scoped-clean at P0-P2; targeted native types, typed lint, formatting and all14 suppression tests pass. Local focused runtime was incomplete at a cold worker prerequisite and remains explicitly unclaimed. The updated body records both old failed heads and the current proof; fresh exact-head hosted CI is the broad gate. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* refactor: bind private core seams to serving owners Use canonical message boundaries, the singleton auth-row cache, direct exec resolution and concrete sandbox pin owner. Preserve effect authority, delivery receipts and settlement. Current focused types, ordinary lint, suppression suite and independent review pass. Preserve this reviewed checkpoint before the coordinator-required tooling rebase; runtime and cycle proof remain incomplete. * fix(agents): settle discarded nested tool items * refactor(agents): use main nested lifecycle settlement owner Drop the overlapping local accounting repair after main 46dea10 (openclaw#176658) landed. All three files now match the fetched main owner exactly; its accepted-history publication gates and exactly-once completion regression remain intact.
What Problem This Solves
Core tool construction still carries private implementation selectors supplied only by tests, plus forwarding protocols whose only consumer is their concrete owner. That duplicates the production path and lets fixtures bypass the module boundaries used in serving assembly.
What changed
This is the core-area split of a wider private-owner cleanup under the campaign's area-split rule. The extension area is separate. Current main's session-controller injection cutover is preserved; superseded runner hunks are deliberately omitted. No public SDK exports, protocol/config/CLI contracts, dependencies, persisted schemas, security guards, or Phase E session-memory code change.
Best-effort tradeoffs accepted
Size
50 paths; 99 net production lines removed, 81 net test/support lines removed, 180 overall lines removed against main
91e371698fe01519a2c225dc3e9877f14692742b. Moved bodies are counted on both sides, not as gross deletions. The four-file exec resolver slice is parked and restored exactly to base, so its unrelated OpenGrep findings require no exception here. The overlapping three-file nested-item repair is dropped in favor of main's #176658; no credit is claimed for that fix.Evidence
Final signed head
c71b30d7ad454f06c0768951ce5319f43a2b3fbdhas completed successful exact-head CI39183655600; aggregate check117847401901succeeded. The complete paginated exact-head check-run census has no failed or running suite. Selected runtime, native typechecking, ordinary lint, architecture/boundary, baseline ratchets, PostgreSQL conformance, UI and security checks passed. CodeQL is neutral; nonselected lanes are skipped. Same-head PR metadata replacements succeeded. This is final-head hosted proof, not a claim that incomplete local runtime attempts passed. No CI rerun or green-seeking source push was used.The coordinator-required tooling refresh rebased the original patch onto main
48c6cfe1d17aa3598c2f99d191f0eb134b07b433, producing initial signed headdf495e5316f690c9745cd8c3f1676541928a0842. Its patch-identical rebase had no authored-file overlap with main's intervening changes. The repair below is new evidence and requires fresh exact-head CI.Initial CI and repair
Previous signed repair head:
5c4fb7d875109e197073383e7b0953f321d8f6cd. Its exact CI39181502103found three new failures in our added held-item assertions. This is an owned failure, not inherited proof: main independently landed #176658 (c5c558d96d4), settling semantic accounting before presentation acceptance. Rebased onto main91e3716for that named gate and restored all three overlapping repair files byte-for-byte to main, retaining its exactly-once regression and every accepted/rejected/superseded persistence/event/effect assertion. Main owns the simpler fix; this PR no longer changes those files. Fresh final-head CI remains required.Initial CI run
39179657055exposed two real failures:checks-node-changed-compact-small-5(117829843342), cancellation-ignoring work across awaited preparation, andchecks-node-changed-compact-small-9(117829843385), abort-ignoring work after snapshot expiry. Both retained assertions found one active item after completion instead of zero. The latter case also fails scheduled main39176649118/117820741610and39172446197/117808338668; neither assertion was weakened.Source tracing found the same cause in main's #176403: item accounting lived inside the deliberately gated presentation callback. Declining presentation or throwing during acceptance skipped that accounting. The initial local repair is now superseded by main's #176658, which separates completed semantic accounting from accepted presentation. Its original focused proof was 42/42 under both Node and pinned Bun; that is main's evidence, not a local pass for our final branch.
The initial OpenGrep finding (
39179656833/117829496993) concerned unchanged Git-parameter reads, also present in #167443's hosted scan. Its entire four-file exec cleanup slice was parked and restored exactly to base rather than requesting a scan exception. The initial PR-body heading failure was corrected in the body; same-head replacement117829498470succeeded. No CI job was rerun.Historical superseded-repair proof: native checking passed in 24.580s and 30.520s, ordinary typed lint passed in 138.060s, formatting in 2.341s, and all 14 suppression tests in 73.845s; independent review was scoped-clean (0.96). These do not erase its later hosted assertion failures.
After named-gate integration, frozen warm-store installation passed in 43.180s; the first targeted typecheck exposed only missing
fast-urifrom the pre-rebase install. With the current pinned dependencies installed, targeted native types passed in 24.284s. All 14 fresh suppression tests passed in 68.204s; three-file formatting passed in 0.668s. Fresh independent P0–P2 rollback review was scoped-clean, with no actionable findings (0.96). The normal signed commit hook passed in 85ms.The focused append-boundary runtime attempt was incomplete at a cold compiled-worker prerequisite and was stopped after 111.607s under the local build restriction; all seven owned descendants drained. No case verdict, retry, bypass, skip, or timeout change is claimed. Ordinary three-file typed lint passed in 129.424s. Current signed reconciliation head is
c71b30d7ad454f06c0768951ce5319f43a2b3fbd; exact final-head hosted CI supplies broad runtime and cycle proof.Initial-head proof retained for unchanged inputs:
tsrschecking (40.523s), through the repository wrapper atnice -n 10; no fallback or whole-graph command.Retained patch-identical prior-base evidence:
Review context limitation: optional unchanged command-secret modules were rejected by the review helper's sensitive-name policy. They were not renamed or copied to bypass it. All authored changes remain in review scope, with real turn, Gateway, action, inference, and bridge owner context supplied.