Repository navigation
refactor(agents): trust prepared runtime facts - #175258
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
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. |
|
@clawsweeper re-review Current signed head97f642e4ac7e9ceab40d0a546cce42071a340dbd fixes the initial PDF fixture defect at the shared registry helper and independently reachable startup-static alias fixture. Existing assertions remain unchanged. Fresh isolated two-file review completed scoped-clean through P2; body/proof limitations are current. Initial failed CI39011411159 is not called inherited or passing; new exact-head CI is the gate. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes redundant internal checks and diagnostic bookkeeping while consolidating prepared model and tool lookups. Example: A harness emits the same completed commentary item twice.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open. The pinned change is coherent, and source review found no actionable introduced defect; exact-head CI remains incomplete. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherAgent runtime owners prepare model metadata, tool catalogs, session events, and transcript state; downstream execution and diagnostics consume those facts. flowchart TD
A[Prepared runtime facts] --> B[Model resolution]
A --> C[Tool Search runtime]
D[Session event owner] --> E[Steering lifecycle]
C --> F[Scheduled tool execution]
D --> G[Commentary diagnostics]
Technical reviewBest possible solution: Retain the simplified existing owners and complete the exact-head CI gate before landing. Do we have a high-confidence way to reproduce the issue? This is a maintainer-directed refactor rather than a reported product bug; source inspection verifies the changed contracts, and no target code was executed. Is this the best way to solve the issue? The change follows existing ownership boundaries, preserves production authority checks, and replaces optional registry probing with the concrete registry contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 32223e38543f. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -79, Tests +11, Other -1. Total -69 across 22 files. Added test files: 0. View PR surface stats
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 Reviewed October 17, 2026, 3:13 AM ET / 07:13 UTC. |
|
Exact reviewed head97f642e4ac7e9ceab40d0a546cce42071a340dbd, CI39012413808 GREEN. Fresh paginated filter=all census:143 checks,79success/60intentional-skips/1neutral/3superseded metadata cancellations; zero failed or pending check. Latest dependency-review, security-sensitive-review and ci-gate statuses are all SUCCESS. No product suite was cancelled or excused.
The initial83b7 head's PDF orchestration failure117334848803 was ours: a synthetic registry omitted the concrete metadata-owner method. The shared PDF fixture and independently reachable startup-static alias fixture now implement the method returning undefined, preserving prior empty-metadata behavior and all behavioral assertions. New exact-head CI passes; the old failure is not called inherited. No production fallback, mock allowance, suppression, timeout/retry/skip or assertion weakening. Full refreshed production packet had isolated P0-P2 scoped-clean0.94 review; the exact two-fixture repair has fresh scoped-clean0.99 review and final source verification. Current-head maintainer review6231089215 reports no findings or before-merge action. Formal and inline reviews have no outstanding finding. Normal signed commit/hook formatting passed; Peter author/committer with good signature and native writersteipete verified. Live head/MERGEABLE is rechecked immediately before submission. Production reduction79 net lines;22 total paths include test/support and exact shrink-only assertion baseline. Already-main MCP and ownership cuts receive no duplicate credit. Typed runtime owners replace optional probes; diagnostic dedup/warn-once removal keeps propagation and explicitly accepts duplicate diagnostics. Security, FIFO, transcript durability, write settlement and Phase E remain intact. Local runtime replay is not claimed with mismatched installed dependencies; latest isolated suppression attempt exhausted300s preparation without assertions, earlier qualified3/3 remains prior-input evidence. Hosted exact-head gates now supply passing broad proof. Native initialization previously failed twice on bounded managed-capacity allocation with OPENCLAW_STATE_LEASE_ABORTED, owned processes drained and exact operation locks recovered, with no merge intent ever submitted. Coordinator rule10 authorizes the exact-SHA-guarded squash API fallback after this evidence comment. This replaces broken allocation, not review or CI. No CI rerun, green-only source push or proactive rebase. |
* refactor(agents): trust prepared runtime facts * test(agents): complete prepared model registry fixtures
What Problem This Solves
Prepared agent paths repeat typed-boundary checks, use cast-based optional registry probes instead of the actual owner, duplicate tool lookup paths, and keep bookkeeping for repeated diagnostic events.
What Changed
Use canonical ModelRegistry metadata ownership, typed AgentSession events and existing result/type owners. Resolve ToolSearch entries at its shared scheduled-call owner. Preserve catalog ordering, account visibility, authScope/new main logic, transcript authority, login/lease checks and all execution effects. Migrate two adjacent fixtures without weakening assertions; shrink only the two exact assertion allowances retired by the cut.
Best-effort tradeoffs accepted
Evidence
Qualified earlier serial suppression-policy check on installed primary passed3/3 (121.30s). The latest task-isolated maxWorkers1 attempt on unchanged installed inputs exhausted its300s outer preparation budget without an assertion result (exit124/worker143); no passing latest run, product regression or inherited-failure result is claimed. No timeout, retry, skip or suppression changed. This is not runtime proof for this source-only packet; exact-head CI remains the broad gate.
Refreshed branch has20 paths including the exact assertion baseline:79 net production lines removed against main9a35d1a97cff8263fa36dcacc3343da1d037d778. MCP and session-runtime-ownership cuts are already absorbed and receive no duplicate credit. Baseline model.registry-resolution3→2; attempt-queue-message1→row removed. admitted-run-context.ts is deliberately untouched.
Full diff, including whitespace-insensitive inspection of the catalog try/catch removal, and complete simplification/caller inspection passed. Fresh full refreshed-packet isolated P0-P2 review completed scoped-clean0.94 with final source verification. Conflict-only MCP resolution retains main byte-for-byte; normal signed rebase completed at83b7d349c012b51e2586ec174a299e73de204a4c. Typed fixture changes retain existing behavioral assertions.
Source-only checkout has no independent install; no local runtime/type pass claimed. Exact-head CI supplies broad proof under shared-host limits. No schema/config/protocol value or shape, dependency, Phase E, security/FIFO/settlement change.
Exact-head CI repair