Repository navigation
feat: attribute delegated work to the initiating human - #178493
Conversation
Co-authored-by: VACInc <[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 maintainer review before merge. What this changesNew delegated sessions and automations retain the initiating human as creator while preserving execution identity, sandbox isolation, and assigned ownership. Example: Alice requests a task, the agent selects Bob’s execution identity, and Carol becomes the assigned owner.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides useful, maintainer-approved creator attribution absent from current main; no actionable findings remain at the reviewed head, and exact-head CI is pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAuthenticated requester facts enter agent-tool and delegation owners, which persist immutable creation attribution consumed by discovery, sharing, archive, and profile projections. flowchart TD
A[Authenticated human request] --> B[Requester origin]
B --> C[Session and automation creation]
D[Selected execution authority] --> C
C --> E[Immutable creation record]
E --> F[Creator controls and discovery]
E --> G[Original sandbox identity]
Technical reviewBest possible solution: Retain causal attribution in the existing immutable creation record and consume it through shared creator projections while preserving original isolation identity. Do we have a high-confidence way to reproduce the issue? Current main records the agent or selected execution actor without the separate causal-creator representation; source inspection establishes the missing capability, and no target code was executed during this review. Is this the best way to solve the issue? The change uses existing requester, creation-stamp, authority, and projection owners without introducing a parallel attribution store or configuration surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 13c25be3c713. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +276, Tests +1008, Docs +30. Total +1314 across 59 files. Added test files: 4. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 HistoryReview history (8 earlier review cycles)
Reviewed October 20, 2026, 8:17 PM ET / October 21, 2026, 00:17 UTC (Revision 9). |
Apply opt-in causal creator attribution to operator-tool session creation without changing the selected execution identity or live authority checks. Prove creation, creator effects, and revocation through the authenticated Gateway. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review Head: Both reported CI fixture defects are repaired; the duplicate mocked Labs assertion is removed, retaining browser coverage. 20 focused tests pass. Lint/format pass; all 29 selected compiler graphs pass. The type wrapper remains nonzero on inherited root-count limits reproduced on exact base Published latest-stable upgrade qualification remains explicitly incomplete: its disposable install requires the previously requested exact first-party package-age exception. Same-schema source upgrade/downgrade/reopen and selected rollback-owner proof remain available but are not substituted for released-binary upgrade proof. No merge or deployment requested. |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
Integrate upstream 92477a7. Regenerate configuration baseline artifacts through their owner; preserve the opt-in core setting and upstream plugin additions. Real Gateway creator controls and provenance tests pass. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review — head 24a9ba9 integrates main 92477a7 after an actual merge conflict. Only the generated config hash conflicted; canonical generation/check passes and retains the one-field core opt-in plus upstream plugin additions. Feature-owned production/tests are unchanged from your cleared 0bcbb67 head; 9 real Gateway creator-control/provenance tests passed again, including Lab off/on and live revocation. Updated body keeps earlier upgrade proof and incomplete CI scoped to their actual revisions. |
|
🦞👀 Re-review progress:
|
Integrate c909114 and resolve the overlapping completion-test repair with upstream's equivalent release-before-readiness ordering. The full five-test fixture and generated config baseline check pass with the refreshed frozen dependencies. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review please. Current head |
|
🦞👀 Re-review progress:
|
Remove the unshipped Labs toggle and experimental config. Preserve execution authority and the original isolation identity while applying causal creator attribution to new delegated work. Exercise default behavior and capture authentic requester facts in guest boundary fixtures. Co-authored-by: VACInc <[email protected]>
Integrate 598e945 after GitHub reported a conflict. Removing the setting eliminated the generated-config overlap; no manual merge resolutions were required. Frozen dependency install, config baseline, and 11 real Gateway/cron/provenance tests pass. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review Please review exact head 3f0e121 of this VACInc-requested creator-attribution change. Your revision 8 cleared 715efea. The only new change is a three-file test-fixture repair after CI39515202388 exposed eight failures, all reproduced locally: explicit authenticated requesterOrigin for human-initiated hosted/input fixtures, and agent causal-attribution expectations for autonomous cron callers while retaining original isolation provenance. Scheduled/unidentified callers remain without human origin. No production code or permission checks changed. All 202 selected tests in six files, scoped type-aware lint/format, and independent P0-P2 review pass. The Lab and config remain removed; attribution is ordinary default behavior. The body preserves prior exact-head proof and compatibility limits. Review only; no merge request to ClawSweeper. The human has authorized native landing only after current-head green CI and your clearance. |
Repair the inherited check-lint-core-2 failure from #178767 without changing creator attribution. Bind the direct HealthCheck repair method to its check so it retains the pre-progress receiver. A new regression fails before this fix; 11 Doctor tests and type-aware lint pass. Independent P0-P2 review found no actionable issues. Co-authored-by: VACInc <[email protected]>
|
🦞👀 Re-review progress:
|
Supply authenticated request origins in human-initiated creation fixtures and retain agent attribution for autonomous cron calls without changing runtime permissions. Co-authored-by: VACInc <[email protected]>
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Repair the stale creation-notice fixture after #178493 without changing production provenance or authorization policy. Exercise autonomous agent creation, human isolation without a human requester, and explicit causal-human attribution. Preserve exact stored identity and required-sandbox assertions. Full file and provenance siblings pass on Node; the affected file passes on Bun. Co-authored-by: VACInc <[email protected]>
PR #178493 (3097cee) separated the public causal creator from the stored isolation actor. A human isolation identity alone no longer proves that a human initiated a spawned session. This single-file test hunk mirrors PR #178485 byte-for-byte. Cover agent creation, human isolation without a human initiator, and retained causal human attribution while preserving exact storage and sandbox assertions. Production code is unchanged. Proof: repository wrapper, one worker, passes under both Bun and Node. Targeted Gateway test types, typed lint, formatting and independent P2 review pass.
* feat: attribute delegated work to the initiating human Co-authored-by: VACInc <[email protected]> * fix: retain initiating creator for agent-created tasks Apply opt-in causal creator attribution to operator-tool session creation without changing the selected execution identity or live authority checks. Prove creation, creator effects, and revocation through the authenticated Gateway. Co-authored-by: VACInc <[email protected]> * test: repair creator branch CI fixtures Observe native receipts before waiting for retirement readiness, and assert agent-resolution context through the existing error message. Co-authored-by: VACInc <[email protected]> * test: await transcript indexing in PostgreSQL fixture Queue the fixture transcript explicitly after broad synchronization so an in-flight memory-only watcher pass cannot leave the lexical transcript assertion racing the session debounce. Co-authored-by: VACInc <[email protected]> * fix: give initiating humans creator controls by default Remove the unshipped Labs toggle and experimental config. Preserve execution authority and the original isolation identity while applying causal creator attribution to new delegated work. Exercise default behavior and capture authentic requester facts in guest boundary fixtures. Co-authored-by: VACInc <[email protected]> * fix(doctor): preserve repair method receiver during progress Repair the inherited check-lint-core-2 failure from openclaw#178767 without changing creator attribution. Bind the direct HealthCheck repair method to its check so it retains the pre-progress receiver. A new regression fails before this fix; 11 Doctor tests and type-aware lint pass. Independent P0-P2 review found no actionable issues. Co-authored-by: VACInc <[email protected]> * test: distinguish causal creators in gateway fixtures Supply authenticated request origins in human-initiated creation fixtures and retain agent attribution for autonomous cron calls without changing runtime permissions. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]>
PR openclaw#178493 (2f32b4a) separated the public causal creator from the stored isolation actor. A human isolation identity alone no longer proves that a human initiated a spawned session. This single-file test hunk mirrors PR openclaw#178485 byte-for-byte. Cover agent creation, human isolation without a human initiator, and retained causal human attribution while preserving exact storage and sandbox assertions. Production code is unchanged. Proof: repository wrapper, one worker, passes under both Bun and Node. Targeted Gateway test types, typed lint, formatting and independent P2 review pass.
Related: #169139 (closed predecessor), #157806 (upstream requester identity plumbing).
What Problem This Solves
Agent-delegated sessions and automations can appear agent-created even when a verified human initiated the work, leaving that human without creator-only management controls.
User Impact
New sessions created through agent tools, native/visible/ACP delegations, and agent-created automations retain the verified initiating human as creator. This is normal behavior, not a Lab. No configuration change is required. The previously proposed toggle and experimental setting have been removed.
Why This Change Was Made
Build on the existing requester-provenance path from #157806 rather than treating assignment or selected execution identity as evidence of who initiated the work. Creator attribution is retained inside the immutable creation record; the original actor remains available to isolation owners and compatible older readers. No database schema/version change is introduced.
The creator/admin archive rule is retained. No Labs UI or configuration-schema delta remains against main. Documentation lives in the normal sessions guide.
Requested by and developed with @VACInc.
Work sessions
Evidence
Latest head: 3f0e121.
Default-attribution fixture repair: CI39515202388 exposed eight stale fixture/assertion failures across hosted session scopes, independent input transfer, and cron validation. All eight were reproduced locally. Human-initiated test callers now explicitly carry their authenticated request origin; scheduled/unidentified callers remain un-attributed. Autonomous cron expectations retain the original isolation actor and separately expect agent creator attribution. No production permission or creator logic changed in this repair. All 202 selected tests across six files pass (32 hosted/read/real-Gateway + 170 input/cron/transport); three-file type-aware lint and formatting pass. Independent P0–P2 review is scoped-clean. Exact-head CI39519573314 passed on attempt1 (73 jobs successful, 24 skipped, none failed/pending). ClawSweeper revision9 cleared this head with no findings or before-merge items.
Inherited CI repair: the preceding run exposed typescript(unbound-method) in src/flows/doctor-repair-flow.ts, introduced upstream by #178767. The extracted callback lost the direct check's receiver. This revision binds that callback to the check; it does not alter creator attribution. The new regression failed on the unchanged implementation, then passed with all 11 selected Doctor tests (38.23s Vitest duration; approximately 0.6s test time), type-aware lint, formatting, and independent P0–P2 review. ClawSweeper revision 8 cleared that exact 715efea head with no findings; its CI subsequently exposed the fixture failures repaired above.
Earlier integration 194ab6d incorporates main 598e945 after GitHub reported a conflict; removal of the setting eliminated the generated-config overlap, so no manual merge resolution was needed.
Retained compatibility evidence and limits
Published OpenClaw 2026.10.5 (build 1b58cb9) created synthetic state through released production writers. After producer processes stopped, the original four state/config files were backed up and byte-compared; SQLite integrity checks passed. Candidate Doctor, SDK writes, and fresh-process cold reopen passed on earlier head 48aef8b.
Original creators, assigned owners, settings, two crons, all six transcript events, dedicated ACP metadata, and required isolation namespaces were preserved. New causal-human and autonomous sessions/crons survived reopen. Earlier same-schema baseline → candidate → baseline-write → candidate proof preserved three sessions and three crons. Six selected automatic-rollback owner scenarios passed, including refusal to discard post-migration writes.
This removal does not change the persisted representation, but those historical runs are not claimed as exact-current-head full upgrade tests. These are isolated stored-state and controlled rollback-owner proofs, not production deployment, live external model inference, container startup, complete updater package swapping, or cross-schema downgrade. No production settings/state were changed. Exact first-party package-age exceptions used for disposable historical installs did not relax third-party, integrity, or global policy.