Repository navigation
feat: inspect subagent parent and batch facts without message content - #201097
johan-eilertsen wants to merge 1 commit into
Conversation
Related: openclaw#201092. Preserve current controller scope and legacy output. Keep ownership, parent/cohort selection, private-input custody and visible-final evidence separate without adding a background reader. Co-authored-by: johan-eilertsen <[email protected]>
|
🦞👀 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: needs real behavior proof before merge. What this changesThis PR adds optional content-free parent, batch, generation, and delivery facts to selected subagent waits. Example: Inspect run correlated for parent-turn with ownership generation 1 and rearm generation 2.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this draft open: it adds a distinct capability absent from current main and is paired with an unresolved feature issue by the same author; no definite introduced bug was found. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe subagents agent tool reads selected native runs through the existing registry preparation and requester/controller scope, then returns status snapshots without consuming completion delivery. flowchart TD
A[Agent tool invocation] --> B[Controller scope]
B --> C[Selected registry preparation]
C --> D[Authorized snapshot consumption]
D --> E[Generation and cohort selection]
E --> F[Content-free projection]
F --> G[Wait tool response]
Technical reviewBest possible solution: Accept only an owner-approved minimal projection through the existing scoped wait reader, preserving legacy output and the distinction between consumption and visible delivery. Do we have a high-confidence way to reproduce the issue? Source confirms that current main lacks the requested metadata projection; this is a feature request, and no target code or tests were executed during this review. Is this the best way to solve the issue? The projection and selection checks fit the existing wait owner without introducing another registry, persistence layer, or authority path, subject to acceptance of the proposed contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6983ed7eeb7. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +156, Tests +282, Docs +21. Total +459 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label 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 November 18, 2026, 4:05 AM ET / 09:05 UTC. |
Related: #201092
What Problem This Solves
A selected subagent wait omits the original parent turn and completion cohort, while its normal label/error output is unsuitable for content-free follow-up. Private-result consumption must not be mistaken for delivery of the parent's visible answer.
User Impact
An opt-in metadataOnly wait returns recorded parent/controller/generation and frozen-batch facts without task/result/error/payload text. Existing requester/controller visibility remains authoritative; optional expectedGenerations only narrows the selection. Missing facts remain unknown, and legacy wait output is unchanged. This does not give plugins a background registry reader or activate incident follow-up.
Why This Change Was Made
Project allowlisted facts through the existing selected-run preparation/consumption path. Compare authorized compact and full owner identities and pin each metadata wait to its original parent/cohort. Report requester custody, transport disposition, admission policy and exact visible-final evidence separately. No new persistence, registry, permission or timer is introduced. Agent-tool owner acceptance is required for the new contract.
Evidence
Bounded execution of the actual tool, projection and identity source uses synthetic controller/registry/I/O seams: nine base failures with two unchanged controls, then 11/11 candidate checks. It is not native authorization, persisted hydration, recovery or host proof. Authored native tests address real persisted-controller negatives and adoption from an unassigned to assigned parent turn; those tests have not run. Independent review found one parent/cohort-selection P2, which was fixed; a fresh review confirmed that correction and no remaining concrete P0-P2 defects.
Formatter, whitespace and TypeScript syntax stripping pass. Draft gates: native subagents-tool and registry/adoption suites, applicable prefix/schema checks, targeted type/lint and exact-head build/CI remain outstanding. The standard command node scripts/run-vitest.mjs src/agents/tools/subagents-tool.test.ts --maxWorkers=1 failed before collection because checkout tsx/dependencies are missing. No dependency install, full local build, CI dispatch/rerun, Gateway change or custom deployment package was made. Native wall time and CI seconds are unavailable. Require source gates before ready/merge; later ordinary release/host activation is separate from source-contract acceptance.