Skip to content

feat: opt in to human creators for delegated work - #169139

Closed
roboclaw-bot wants to merge 21 commits into
mainfrom
openclaw/human-creator-delegated-sessions-crons
Closed

roboclaw-bot wants to merge 21 commits into
mainfrom
openclaw/human-creator-delegated-sessions-crons

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

People need an opt-in way to retain their creator identity on new work delegated to an agent, without changing who executes it or weakening its isolation.

User Impact

Off by default: Settings → Labs → Human creator attribution controls agents.defaults.experimental.delegatedCreatorAttribution. Enabling it attributes new delegated sessions, subagents, realtime/meeting consults and agent-created cron jobs to the verified human requester, or a retained causal task creator. Off/omitted retains each creation path’s pre-feature attribution behavior. Direct human creation is unchanged.

The setting applies without a Gateway restart to subsequent creations. Already-admitted operations keep their captured config; existing sessions/jobs and scheduled runs are not restamped. Execution agent, live requester checks, private isolation identity, required-sandbox restrictions and assignment remain independent. Reassignment does not transfer creator/admin archive or public-publishing authority.

Public links remain explicitly opt-in and anonymous/read-only. No auto-publication, URL change or private isolation disclosure.

Downgrade is NOT cleared by this switch. Turning it off does not undo stored attribution or private isolation/ACP metadata. Pre-PR binaries reject the unknown config and can misinterpret same-schema feature-written state; schema equality is not sufficient proof. Transparent retained-state downgrade to an unmodified incompatible binary remains unqualified. Restoring a pre-upgrade backup discards post-backup work and is not a substitute for the requested downgrade. The proposed non-lossy guard uses the existing shared/agent database admission owner to refuse incompatible activation while retaining current state; a semantic schema-floor change requires accepted design, and running an older generation with these rows requires a compatible backport. Neither is implemented or certified here.

Why This Change Was Made

The existing creator selector consumes the explicit-true Labs setting at native, visible Gateway, ACP, cron and consult creation owners. This reuses the config schema, Labs registry and hot-reload owner—no toggle framework, restart hook, table/version or historical backfill. Consult-created task causality also survives follow-on delegation.

Private immutable sandboxProvenance continues to carry the pre-feature execution identity separately from the public creator. ACP rollover retains spawnedByAgentId for cleanup. Public projections strip private fields; permissions, routing, quotas, model accounts and runtime agent identity are not gated by the Lab.

Evidence

Current candidate: 71b0bfb7d41cdfa01fc7dea1532d84065ebe6a62, tree 343b21fc6463871282515792910dadd829a5155d. This head integrates pinned main 8197f6f8cf48 to resolve actual GitHub conflicts, preserves the new memory-only session owner, and corrects enabled autonomous voice-consult attribution. Current-head broad CI passed as recorded below; older reviews do not certify this head.

  • Current-head hosted CI: run38461251574, attempt1 completed successfully at20:45:52UTC on October13 for exact head 71b0bfb7d41cdfa01fc7dea1532d84065ebe6a62: all91jobs settled (71success,20skipped,zero failed/cancelled/pending). CI tested merge bc7ee6c7f230e92c75a89df141731a0b88e9d7a0 against actual base 7c1bf0c537ce4cd8cf2d84590640cd55676eeaaf using Node24.21.0. Both CI-gate surfaces, dependency review and security-sensitive review are successful. The full exact-head check inventory at20:49 contains149checks (100success,48skipped,1neutral), none failing/pending. The failure-classification reporter timed out its optional comparison, but the complete CI inventory contains no failures to classify. This clears current CI, not the separate retained-state downgrade/latest-stable compatibility gaps. Current-head ClawSweeper revision21 reviewed this exact head at21:08:16.555UTC on October13 (source revision ba13bd14a61e07240919df082947d6704eb08b2dd8bee63b4cc348cd93b0d699): zero actionable code findings, previous cron blocker resolved, real behavior and screenshot proof sufficient. The durable verdict remains needs-human / hold=blocked, not approval: two before-merge items remain—accept the non-lossy schema-admission-floor/backport compatibility design and qualify latest-stable upgrade plus actual retained-state historical activation or refusal. The accepted re-review receiver38467384069 and terminal-finalization38468522830 both completed successfully; neither green CI nor successful review execution settles those compatibility boundaries.
  • Real Gateway + built UI: keyboard off→on→off succeeded through config.patch; PID3823257 and one WebSocket stayed unchanged, zero closes, both replies requiresRestart:false, no restart field/signal/recovery scheduling. Toggle state persisted after UI reload. Subsequent creations followed the setting; prior creators and required private isolation remained exact. UI test passed (13.59s test; 105.06s build/fixture wrapper). A separate real-Gateway test pauses an admitted creation across the patch: it retains the old config while the next creation uses the new value.
  • Public-link production boundary: actual HTTP server/token/store/projection covers unpublished404, signed and canonical URLs, 20 concurrent anonymous readers per route, excluded system/thinking/tool/private fields, future transcript updates/validators, revocation during image read, disabled-link404, re-enable with a new token and unchanged canonical URL, and retired-token rejection. Actual sharing handlers reject assignee-only publishing/disable and stale creator generations. No public-route production code changed.
  • Creation/isolation: native visible/hidden, ACP, cron, visible trusted requester, required/non-required consult and follow-on cases cover both modes and unchanged isolation. Consult completeness was reproduced and repaired; 34 consult cases pass. Schema validation and 64 Labs UI cases pass. The final captured-config/visible/cron/hot-reload run passes all 152 tests (158.97s wrapper). The actual HTTP test separately passes in the overlapping 153-case run (106.26s wrapper); counts are not additive. Final full-delta AutoReview reports no actionable P0/P1/P2 findings (confidence 0.89); this is static review, not executed proof. A subsequent fixture-only repair gives Voice Call its own closed/removed session stores and fixes FaceTime mock/lifecycle setup; no production source changed after review. Core production, UI production, UI E2E and extension production/test types pass, scoped typed lint, all changed-file formatting, whitespace and schema/i18n/assertion/size/mock guards also passed. That earlier local type selection missed two fixture errors subsequently found by CI; the repair and broader owner-graph verification are recorded below. Full build and new-head remote gates are reported separately below.
  • Retained realtime callers: a paused meeting-consult regression first reproduced stale startup config, then passed with the existing runtime-bound reader. Meeting (6), consult unit/storage (34), Voice Call (25) and FaceTime (14) cases pass; these overlap prior consult totals. Both new calls and calls paused across a toggle retain the correct captured config. The first extension run exposed test-owned setup defects (shared /tmp store, non-Promise mock, wrong cleanup method); the fixture owner was repaired, without touching the unknown shared database or weakening assertions. Final FaceTime wrapper: 29.95s; final Voice Call wrapper after common-fixture consolidation: 32.21s (26.70s test).
  • Build scope: the all-package pnpm build attempt reached its 900-second execution limit during package declaration emission, without a compiler diagnostic; it is not a pass. Its task-owned process group was confirmed stopped. Broad package/declaration checks remain assigned to PR CI. The separate canonical pnpm build:runtime passed on exact committed head93571c29fa3d in 97.5s, including runtime/plugin assets, CLI bootstrap checks and the built Control UI. This is runtime-build proof, not a completed full packaging/declaration build.
  • CI fixture repair: head935 CI38435098891 failed in six substantive lanes plus its aggregate. The current commit explicitly enables intended attribution fixtures while preserving separate off-mode containment, prepares and releases asynchronous source authorization, fixes both typed fixtures and regenerates both canonical config-baseline artifacts. All 65 tests in the four affected files pass (247.44s wrapper); canonical other, gateway-methods and services-cron type graphs pass (13.2s/16.1s/14.9s). Config baseline, scoped typed lint, format and whitespace pass. Six-file AutoReview has no actionable P0/P1/P2 findings (0.87); final equivalent cleanup spelling was inspected and its focused case passes (40.53s wrapper). No production defaults or authorization checks were changed. The environment-count annotation is a warning, not a failing lane. Cheap selector/inheritance contract tests are retained to distinguish absent legacy actors, source kinds, omitted/false/on settings and independent private identity without booting extra Gateways; production-boundary coverage remains in place.
  • Cron CI diagnosis and repair: prior-head CI38439500677, attempt1, remains terminal failure (93 jobs:70 success,21 skipped, cron shard plus aggregate failed). The unchanged exact merge cohort passed66files/487tests in152.45s under CI Node24.19.0, but that pass alone did not establish causality. A later deferred gate before catch-cleanup worker-scope acquisition reproduced the exact missing-running-marker assertion on BOTH pre-feature base 838c6ada7dc9 and CI merge 04dd8edba0ad. Both traces show shutdown drain finishing before catch cleanup; removing the SQL fault after early caller rejection allows the retained cleanup to clear the marker. This establishes an inherited test fault-lifetime defect, not a production-isolation regression or a recovered hosted trace. The scoped repair keeps the fault until the real launch queue settles and requires the failed-recovery warning; it preserves the original durable-marker assertion. No production or shared scheduler helper changed. The final whole file passes all11cases on exact merge plus repair (16.14s wall;10.78s Vitest) and current branch (91.84s wall;84.11s Vitest). Typegraph, typed lint, formatting and whitespace pass; fresh narrow AutoReview has no actionable P0/P1/P2 findings. An earlier broader helper approach was rejected after caller inspection and is not included. The test repair is published and the subsequent actual conflicts were resolved by the current candidate; current-head broad CI passed in the separate run recorded below. Prior red CI is not relabeled green. Historical ClawSweeper revision20 cleared all four code findings on prior e6 but retained downgrade/latest-stable/cron proof holds. Current revision21, recorded above, clears the cron item and retains only the compatibility decision/proof boundaries; no merge approval is claimed.
  • Reviewed main-conflict integration and voice correction: the retired incognito projection files stay removed; complete memory-owned entries carry private provenance through the existing immutable installer and public projection. Independent read-only cutover review found no likely P0/P1/P2 regression. The full feature-delta AutoReview found one real P2: an ordinary operator-created required parent incorrectly supplied its human creator to an enabled autonomous consult. The corrected existing storage assertion first failed with exactly that wrong actor; the minimal fix now uses the requesting agent for enabled fallback while retaining legacy off-mode attribution and the independent private sandbox identity. All 34 voice storage/unit cases pass (34.85s Vitest,108.37s canonical wrapper including worker build), including on/off, fork/isolated, cross-agent and locked-parent cases. The resolved reset/memory-runtime/cron boundaries also pass33cases (191.16s wrapper); relevant typegraphs and typed lint/format/whitespace pass. The post-fix broad type selector was deliberately stopped after the relevant other graph and three additional graphs passed; the interrupted remainder is not claimed green and belongs to CI. The review finding is resolved with red/green boundary proof, not described as a zero-finding review. These are focused local results, not new-head remote qualification.
  • Rollback-owner repair and retained rows: all nine earlier owner failures were reproduced and diagnosed at the actual caught boundary: incomplete synthetic service environments erased isolated HOME/scratch routing, causing private SQLite snapshot staging to fail. The two fixtures now preserve the complete isolated environment; no production fallback, security guard or schema was changed. The final focused run passes 11 cases / 37 unselected in 75.13s (about 197s including isolated build/preparation), covering all nine failures plus two new durable-row cases. The new cases close and reopen actual session/cron SQLite owners around production rollback admission: compatible schema selects the prior package callback, incompatible newly created agent schema refuses it, and both preserve exact creator/private isolation/parent metadata. Package identities and switching remain synthetic; this is not historical-binary or filesystem package-swap proof. Owner typegraph, typed lint, format and whitespace pass. Independent AutoReview found one assertion gap; exact empty-isolation and exact persisted-entry equality resolve it, and the final run includes that fix. Prior 37 baseline passes are older-input evidence, not a new all-48 run. Added-case local test costs are 3.285s/2.468s; CI costs are pending. The initial two new cases failed on an invalid timestamp expectation and were corrected to compare against canonical persisted output; failed evidence is retained.
  • Retained-state compatibility decision: old same-schema consumers lack private provenance projection filters, separate isolation identity and the ACP parent-agent namespace. The existing rollback owner does not guard those same-schema semantics. Minimal non-lossy protection would use shared and agent schema admission floors while preserving row bytes; it must prove the deferred shared-schema marker cannot be dropped while incompatible rows remain. This would reject pre-feature binaries even with the Lab off. Per the storage design checkpoint, a schema-version bump needs accepted design. No such bump has been made. To actually run a historical generation on retained rows instead of refusing it, a compatible backport must carry the readers, immutable persistence, private projections, parent namespace and applicable physical-schema/config support, followed by real package-swap/cold-reopen proof; publishing that artifact requires separate release authority. Metadata showing released state20/agent24 versus candidate22/26 is not real-binary rejection proof. Latest-stable v2026.10.3 proof is blocked at actual isolated installation, not passed: exact OpenClaw/AI archives are integrity-verified, but pnpm12.9 rejects @openclaw/[email protected] under the retained seven-day strict maturity policy. Its exact version was introduced on the release branch (121ca6d3c156), not pinned main (08f856074937), so it does not meet the human-authorized first-party/already-upstream-main exception. The already-qualified eight fs-safe0.24.2 exclusions remained exact; no new AI or third-party waiver was applied. The rejected install and disposable exception config were removed. The candidate package build was stopped after this prerequisite failed and ten minutes without package-declaration progress; no artifact/build success is claimed. A separate exact-version AI10.3 exception or natural admission is required, alongside retained-state downgrade qualification.

Before

Before: existing Labs settings

After

After: default-off Human creator attribution Lab

Actual Control UI, dark, 1440×1000; new row off, synthetic profiles. Fixture footer is not a build identifier; Gateway/process receipts bind behavior.

Historical pre-Lab implementation and released-upgrade evidence (head78e and earlier)

The following proof predates this Lab follow-up. It establishes original isolation/upgrade repairs on its named sources, not reverse compatibility or current-head CI.

October 13 rebase candidate: 78e169c13dc032440bbbe057406de3279f9d027d, tree c9789b964bd2e784748a581e4e017ac7fd639631, rebased onto pinned main 969f0dc24f6871aed94c62081e3b3b3a1b79c24e. Authored merge topology and manual resolutions were preserved; the consult repair replay is patch-equivalent, and the upstreamed fixture commit is retained as an empty commit with its original author and credit. No execution-policy relaxation or historical creator rewrite was introduced.

New composition proof: the initial focused run passed 95 cases and exposed two guest-fixture assertions still calling the retired synchronous sandbox reader. Both failed at that assertion after actual child launch; after migrating to the async owner, both pass (42.01s wrapper). The other four persisted-session assertion consumers were migrated without weakening their assertions. Final consult, cron persistence/isolation and ACP rollover proof passed all 42 cases across three shards (192.84s). Core production types, six affected test graphs, scoped typed lint/format and size/database/assertion/mock ratchets pass. ACP input types moved verbatim into a type-only sibling to satisfy the current line cap; its executable body is unchanged. Independent boundary review and final six-file AutoReview have no unresolved actionable P0/P1/P2 findings. The exact committed runtime build passed in 90.4s.

Historical remote gates for head78e (October 13): CI run 38401493167, attempt 1, passed for head 78e169c13dc032440bbbe057406de3279f9d027d: 89 jobs (67 successful, 22 skipped, none failed or pending). Both CI-gate surfaces plus dependency and security-sensitive review are successful. CI tested merge 7f9c29c8ceae083ba29885a3dbf0c5839657d963 with main df8c7ddb5d68e07ea70f787815a4e2bd44d46ba0, using Node 24.21.0. ClawSweeper revision 18 reviewed this exact head and the new upgrade evidence at 15:03:18 UTC on October 13: ready for maintainer review, with no findings and no before-merge items. It explicitly confirms that the packaged upgrade evidence resolves the prior compatibility hold. The machine verdict remains needs-human / hold=not_opted_in because this is a maintainer-authored PR, not because of an actionable code/proof blocker. No merge, auto-merge or deployment was performed.

Actual released-to-candidate upgrade: passed (October 13). The integrity-verified published OpenClaw 2026.10.2 package (source b8952d477f0c932d8ddc6da5c89cab5a169b6ff1) ran its production SDK/storage and ACP manager in a disposable, clean-environment named profile. It created six sessions across profile/channel/agent/system/unknown creators, five disabled cron jobs, twelve Unicode transcript messages and one ACP metadata record. All producer processes/workers stopped before a byte-inventoried 14-file backup. The exact-head candidate package then ran doctor --fix --non-interactive, opened the same state in a new process, rewrote the existing entries through its public SDK, and reopened new ACP parent-agent namespace state in another process. Original creator/owner/settings JSON, all original cron payload/state JSON, transcript payload bytes and all original ACP columns remain exact. Recorded schema transition: shared 20→22, agent 24→26, from already-upstream migrations—not a schema change introduced by this PR.

Private isolation survives the packaged cold reopen. Three additional candidate cases create required sessions through the actual packaged host-core writer: different public creator/private profile, agent isolation actor, and explicit empty provenance. Public SDK replacement attempts cannot change the creator or private identity; SDK reads omit the private field. A separate process classifies the persisted sessions through the async storage owner: all remain required and sandboxed even with configured mode off, read-write workspace access is capped to read-only, and profile/session isolation subjects are correct. This proves stored identity and classification, not container startup.

Narrow expected upgrade additions and negative controls. Doctor materializes exactly two disabled system heartbeat monitors for the fixture’s explicit 0m agents; both rows are checked against doctor-heartbeat-cadence-migration.ts / heartbeat-monitor.ts and thereafter compared exactly. Schema22 adds only the two ACP resume columns derived exactly from original identity JSON, as owned by openclaw-state-db-schema-v22-columns.ts. These owners are unchanged from the rebase base. Ten mutation controls reject legacy creator/private-field changes, old or new cron changes, unexpected cron additions, ACP identity/derived-column changes, transcript-byte changes and user-setting changes. The earlier comparator self-test also passes six negative/two positive controls; those are observer checks, not substitutes for the runtime transition.

Explicitly authorized, task-local dependency-age exceptions. @VACInc authorized exact first-party packages already upstream in main. Disposable pnpm12.9.0 configuration retained the seven-day strict maturity rule, third-party checks, integrity checks, exotic-subdependency blocking and existing build policy, adding only @openclaw/[email protected], its seven exact 0.24.2 platform companions, and @openclaw/[email protected]. All nine registry ownership/integrities and exact-version upstream inclusion were verified: fs-safe introduction 5d4484b6ba69caecde9b78f868829b2fbd09697f is an ancestor of pinned main f9cb55fd00c4630b9a533d164d30e350fd974aed, with all companion entries/integrities in its lockfile; the AI package/version is in that main snapshot’s first-party manifest. Published application source b8952d is not used as main-ancestry evidence. The trusted OpenClaw tarball lifecycle scripts were explicitly selected using the supported exact-file build-policy key. No wildcard OpenClaw waiver, repository/host/shared config edit or third-party exception was used. This test did not pass the original unchanged age policy; it used this human-authorized conditional exception.

Independent proof review: no product or preservation regression found. A read-only reviewer independently matched 11,828 stable and 12,728 candidate payload files, checked the 14-file stopped backup and original row/transcript/config preservation, and verified the nine-entry exception delta and upstream-owner allowances. The reviewer used retained GitHub ancestry evidence because the local repository is shallow; the lead had verified that ancestry live. The separate three-case isolation lane adds new rows without changing any original row. The disposable install, caches/store, synthetic state and exception configuration were removed after verifying no task processes remained.

Artifact/runtime binding and limits. Actual runtime: Node26.8.2, pnpm12.9.0. Published archive SHA256 d1c979c9ff6c5fb600a4582a7d777e0ef5264f5a570d2e822323a8c508d744fe; candidate SHA256 f458cb20b69c5c50bdcacc94756c09c4581d4f1ad258755386849b61eacc95b2. Installed package/entrypoint/dist bytes were compared to their archives; candidate build-info names exact head78e169c13dc0. Canonical packaging and package-integrity checks pass after generating the SDK declarations absent from the earlier runtime-only build. Initial fixture attempts exposed the expected heartbeat/schema additions, a missing standalone runtime-config preparation call, and an undefined-vs-null missing-row assertion; those failures remain recorded and were corrected without product-source changes or reseeding the upgrade specimen. This is trusted local synthetic-state execution, not network/container isolation, live Team data, a real model or external ACP process. The new-field reset/rollover/parent-cleanup paths retain the earlier separately qualified production-owner tests; this packaged leg covers storage/Doctor/rewrite/cold-reopen, not the updater’s package swap or transparent downgrade.

Earlier implementation proof, failure attribution, and compatibility limits
  • The later ClawSweeper review found a real missed consult consumer: public SDK reads and patch preparation each stripped private isolation provenance. The actual transcript-fork regression failed with the public creator namespace instead of the retained isolation subject. After the owner cutover, all 26 consult unit/storage cases passed (60.22s wrapper), covering real persisted fork/isolated/cross-agent namespace classification, locked-source refusal, public callback omission, cancellation, and memory-audience siblings. Four corrected native/visible/rollover cases passed (146.85s); their old assertions conflated autonomous creator identity with retained containment. Four rollover mocks now preserve real module exports rather than suppressing the ratchet. Final affected-path and six-file AutoReview found no actionable P0/P1/P2 findings.

  • Five passing scheduled-boundary cases traverse the real agent automation tool, Gateway capture, CronService persistence/update/reopen, synthetic role change, scheduled preparation, sandbox context, and file-bridge I/O. An allowed read succeeds; an outside-root read and read-only write are refused with files unchanged. Cases cover ordinary autonomous A, B acting in A’s ordinary/delegated/cron context, and required-source precedence after role relaxation. Old-head and wrong-namespace negative controls fail.

  • 66 contract tests passed: legacy/empty/profile/channel/agent/system provenance, required continuation, incognito projection, namespace selection, immutable convergence/reopen, and public cron omission.

  • Complete native spawn, ACP authority, and SQLite persistence files: 61 tests passed. Complete hosted-child and live-human sandbox files: 30 passed, including source revocation after acceptance, inherited containment, creator/admin controls, and autonomous visible follow-on work after a creator role change. The visible-role regression failed before the consumer repair.

  • Gateway validation/reset stage: 185 tests passed, including private create/update input rejection, public reset omission with stored/reopened provenance retained, and qualified/global cross-agent ACP cleanup. Overlapping hosted tests were subsequently rerun with the visible fix; counts are not additive.

  • The persisted ACP rollover regression retains real initialization, durable reread, lineage, and runtime-namespace assertions. Focused extraction and plugin privacy checks pass, including the exported public type and actual plugin entry/patch projection. Independent reviews found and closed the private-projection omission and remaining visible-creation consumer; required AutoReview and final affected-path reviews report no actionable P0/P1/P2 findings.

These are isolated production-owner tests with synthetic identities/state and controlled inference/backend transport—not live Team jobs, a real provider, or Docker containment/escape proof. Current-source persistence/reopen/reset proof is not a shipped latest-stable upgrade. The published 2026.10.2 application artifact was acquired through the repository’s integrity-verified first-party route and matched its registry digest and application commit b8952d4; no dependency-age policy was changed. The configured isolated executor initially returned HTTP 502; its later preflight recovered, but the actual Testbox allocation queued and was stopped under the immediate-allocation rule. The wrapper failed before a clean execution/artifact receipt; native status is stopped and workflow 38312254046 is cancelled. Supported cleanup was reconciled successfully. No baseline state was produced and no packaged upgrade/cold-reopen transition executed. No provider fallback or live-state substitute was used. Subsequent candidate packaging was interrupted by a Gateway restart after the successful runtime build; it is not counted as a pass. An initial combined reply-suite run hit a database-lock cascade. After isolating the new regression in its own fixture, the complete reply suite (87), extracted rollover (1), and scheduled I/O matrix (5) completed together on frozen inputs: 93 tests passed in 95.84s. The earlier cascade was not reproduced; no unrelated production lock fix is claimed. Core production types, all eight affected test graphs, scoped typed lint, formatting, and size/schema guards pass.

Prior CI classification: run 38289836110 tested merge 1b31e0a837c0 over main eca3c36. All four failure signatures were reproduced on that exact main base and merge with Node 24.19.0 and matching dependency/harness inputs: fallback accounting (2), heartbeat completion (2), skill-library reads (3), queued collector (1 plus the same abort). This is inherited-failure evidence, not green CI; new-head checks must be observed separately.

Earlier exact-base comparison: Eight controlled Node 24.19.0 runs compared CI’s actual base 5559404 with merge 1be040601ba527878d12091c7de1de0bb748f8e5 using matched private dependency/harness inputs. All 12 cron-history/session-list/session-resolve failures reproduced on both; every normalized failure body matched CI. Two additional consult-storage creator failures passed on base and failed on the merge, confirming the repaired consult mismatch was PR-induced. This distinguishes inherited failures from our defects; it is not green-CI evidence.

Downgrade limitation: older binaries do not understand separate isolation identity or the ACP parent-agent namespace. JSON readability is not transparent rollback. No lossless historical downgrade is certified, and stale-backup restoration is not treated as one. No merge, auto-merge, or deployment is authorized or performed.

Prior candidate (October 12): 75d3d71 (tree d9e56ef6e367dbc214e8d08015b7169509884647). Exact clean runtime build passed (101.1s); current corrective tests, production/affected test types, typed lint, format and size/mock/assertion guards passed. The five upstream-corrected fixture files passed all 84 cases (185.40s), with upstream authorship retained.

Prior CI was not green: run 38312892706, attempt 1 finished with 91 settled jobs: 63 successful, 22 skipped, five failed test lanes and the failed aggregate gate. Actual checkout aaecb6f76f72409fbe22ba15317fca8970cd829b used main 655d575 and Node 24.19.0. The remaining six Copilot cases were executed on that exact base and merge: both produced six failures/twelve passes, and all normalized failure bodies match CI (65.35s/59.37s). They are inherited runtime-config fixture failures, not a creator regression. The twelve visibility failures and two fallback-accounting failures repeat the earlier source-bound reproductions described above; those earlier tests are not relabeled as current-base reruns. The fallback correction subsequently landed upstream in 4944a6d; this does not make the observed PR run green.

Prior exact-head ClawSweeper review: reviewed this head at 2026-10-12T22:09:59.771Z, source revision da27f187adce1fe89a0e40b5d9c57e9f130aebbda74b7bc3609f4b34ad99ee04. Both previous code findings were resolved; findings and security concerns are now none. At that earlier review, readiness was blocked on compatibility evidence and the Copilot classification; the later exact-base execution supplied the latter. This is not a claim that ClawSweeper has cleared this later evidence update.

Last observed compatibility gap (October 12): verified published OpenClaw 2026.10.2 and its sealed sibling AI archive are available. A trusted local named-profile installation, outside checkout dependency ancestry, used the repository's packed-install owner with both immutable artifacts and unchanged dependency policy. It then failed before application execution because the separately published pinned dependency @openclaw/[email protected] is excluded by the existing seven-day guard (published 2026-10-07T04:50:36.473Z). The configured Testbox alternative had queued and was stopped. No baseline rows were produced and no released-to-candidate Doctor/cold-reopen transition is claimed. No age-policy override, unsupported artifact substitution, historical restamping, or live-state workaround was used. All task-owned attempted runtime installations and the lease were cleaned up. That attempt did not complete compatibility proof. It is superseded by the genuine released-runtime transition reported above, without a blanket no-regressions guarantee.

Worked on by

  • @VACInc — requested and co-authored this change.

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 11, 2026 13:54
Preserve admitted requester attribution across native, visible and ACP creation and scheduled follow-on work without deriving identity from the assignee or changing execution scopes. Keep required sandbox provenance and retain ACP parent agent lineage separately.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: a094b4bb-1f4d-43bf-b4e5-43c8fb692e4e
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot requested a review from a team October 11, 2026 13:55
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: M labels Oct 11, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 11, 2026 13:56
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR adds a default-off Labs switch that preserves human creator attribution for new delegated work while retaining execution isolation separately.

Example: Profile creator-requester delegates a child of a required-sandbox session created by creator-parent.

  • Before: The child retains creator-parent as its creator.
  • After: With the Lab enabled, creator-requester becomes the creator while the parent's private isolation identity remains unchanged.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation and current CI are credible, with meaningful production-boundary coverage; latest-stable upgrade and historical-runtime compatibility prevent a readiness pass.
Proof confidence 🦐 gold shrimp (3/6) ✨ media proof bonus Sufficient (screenshot): The inspected UI images and supplied real-Gateway off/on/off results exercise configuration publication and subsequent creation; executed production-owner boundary results cover allowed and forbidden mutations, queued revocation before provider/transcript effects, sandbox file I/O denial, and public-link revocation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: People delegating work can lose their creator attribution even when they are the verified requester.
Reason: Maintainer authorship establishes the feature direction, and default-off behavior preserves existing attribution choices.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this maintainer-authored PR open: the reviewed head has no new actionable code findings, but retained-state downgrade still needs a maintainer decision.

Priority: P2
Reviewed head: 71b0bfb7d41cdfa01fc7dea1532d84065ebe6a62
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should incompatible retained-state downgrade be prevented through shared and agent schema admission floors, or supported through a compatible older-runtime backport?
  • Recommendation: Approve non-lossy admission floors: Accept the storage design, then implement and prove refusal of incompatible activation without changing retained rows, including the deferred shared-schema marker lifecycle.
  • Why: The requested downgrade preserves post-upgrade work, while existing numeric-schema admission does not establish compatibility with the new private isolation and ACP metadata; no accepted floor design or compatible backport is recorded.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: The latest-stable 2026.10.3 upgrade and cold-reopen preservation run, plus actual retained-state historical package activation or refusal, remain unqualified.
Agent review details

How this fits together

Gateway, subagent, cron, and consult creation owners consume captured configuration and trusted requester facts, then persist creator attribution and separate private isolation facts.

flowchart TD
  A[Settings Labs] --> B[Gateway configuration owner]
  B --> C[Delegated creation owners]
  D[Live requester authority] --> C
  C --> E[Shared creator selector]
  E --> F[Session and cron persistence]
  F --> G[Private sandbox classification]
  F --> H[Public session projections]
Loading

Technical review

Best possible solution:

Retain the shared creator/isolation separation and qualify a non-lossy compatibility path before shipping the feature.

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

This is an opt-in feature rather than a current-main bug; source inspection confirms main's existing attribution policy, and supplied production-boundary results exercise the proposed alternative.

Is this the best way to solve the issue?

Using the existing creator selector, persistence owners, Labs registry, and configuration publication is coherent; stored-state reverse compatibility needs its own accepted and tested contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 169edb6620aa.

Provenance checked

  • Required-child creation and isolation changes intended behavior with a stated reason (076b7b5: Record creator provenance at every producer and preserve required-parent containment across role changes.)
  • Visible-child assignment keeps the original intent (00f7785: Assign a visible child to the verified requester only when the requester matches the parent's effective human owner.)
  • Agent-created cron attribution changes intended behavior with a stated reason (37a3270: Reuse the exact authenticated caller session's immutable creator so automation runs appear in that person's Activity history.)
  • Labs configuration publication keeps the original intent (052d26e: Apply Labs settings through the existing reload owner without interrupting active work.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
New configuration option 1 optional Boolean agents.defaults.experimental.delegatedCreatorAttribution requires explicit true and reuses the existing Labs and hot-reload owners.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • remove status: ⏳ waiting on author: Current PR status no longer selects a status label.

Label justifications:

  • P2: This is a default-off attribution feature with useful shared-Gateway behavior and no established urgent current-main regression.
  • merge-risk: 🚨 compatibility: Older binaries can reject the saved setting or misinterpret feature-written isolation and ACP metadata despite matching numeric schema versions.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the latest-stable upgrade and cold-reopen preservation scenario once its installation prerequisite is authorized or naturally admitted.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (20 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-12T20:55:37.866Z sha 2ed8916 :: blocked before merge. :: [P1] Carry private isolation through realtime-consult creation
  • reviewed 2026-10-12T21:25:21.658Z sha 50e836f :: blocked before merge. :: [P1] Carry private isolation through realtime-consult creation | [P2] Migrate the remaining native and visible spawn contract tests
  • reviewed 2026-10-12T22:09:59.771Z sha 75d3d71 :: blocked before merge. :: none
  • reviewed 2026-10-12T22:29:44.018Z sha 75d3d71 :: blocked before merge. :: none
  • reviewed 2026-10-13T14:11:03.878Z sha 78e169c :: blocked before merge. :: none
  • reviewed 2026-10-13T15:03:18.306Z sha 78e169c :: needs maintainer review before merge. :: none
  • reviewed 2026-10-13T17:18:36.323Z sha 93571c2 :: blocked before merge. :: [P2] [P2] Enable the Lab in the cron isolation fixture | [P2] [P2] Give hosted-child attribution cases an explicit Lab setting | [P2] [P2] Prepare source authorization through the async owner | [P2] [P2] Regenerate the config baseline for the new setting
  • reviewed 2026-10-13T17:55:06.869Z sha e6bdd95 :: blocked before merge. :: none

Reviewed October 13, 2026, 5:08 PM ET / 21:08 UTC (Revision 21).

roboclaw-bot and others added 2 commits October 11, 2026 14:07
Exercise allowed and unrelated-profile archive requests through the real Gateway dispatcher, preserving storage on denial. Verify revoked requester creation refusal and persisted human creator attribution across real CronService revocation scenarios.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 82110b81-8532-47e5-9acb-3d9fa8c55d28
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 11, 2026
roboclaw-bot and others added 4 commits October 11, 2026 14:22
Retain the account-scope and live revocation assertions while expecting agent attribution when no human requester authority or delegated task provenance exists.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: c04c53ef-e254-473a-abe8-ea835f56f677
Integrate main through 2899226 to repair the exact hosted UI production/test type failures. The creator feature patch remains identical (stable patch ID 222c77cbd66af7f2e1f7481fddcf0d41f0f97d91); no conflict resolution or feature edits were needed. Reuse completed creator reviews. Production core/UI/plugin types, affected test types and both full creator boundary suites pass.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 7f5a2de3-531c-4d84-89fb-7b7cef76f263
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review exact head 2996f2362ebbabb6595858be1fcfe6ebde307d0f. The P2 Cron expectations were corrected and the complete transport file passes 12/12; the full two creation/authority suites pass 37/37 after integration. Your accepted real-dispatch/CronService proof is unchanged.

The inherited UI type error is repaired by main commit 2899226120bf, now integrated; all production typechecks pass locally. The new remaining panel-canvas failure is independently present in main job https://github.com/openclaw/openclaw/actions/runs/38147604740/job/114494370832 and PR job https://github.com/openclaw/openclaw/actions/runs/38148133700/job/114495978625 (same chat-panel-layout.e2e.test.ts:379, locator, hidden 560x312 canvas, and 30-second timeout). The PR body records the attribution and exact proof. This is a review request only, not merge authorization.

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Current-head check-test-types-core-3 is now attributed in the PR body. Job 114496218885 checked merge aa979783 into main ebdc7d54c084; it fails TS2339 at test/scripts/managed-child-process.windows.test.ts:83 because that main commit exports testing.stopWindowsGatewayProcess while the unchanged test calls testing.stopGatewayProcess. The Windows test blob is identical in both trees (cd4374321c209f711f485bd20d6a4e0412286e28), and this PR changes neither the test nor its helper.

This addresses revision 4’s remaining inspection request. Exact-head CI is still red from this inherited mismatch and the independently reproduced main panel-visibility regression. No checks were waived and no merge was requested.

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 13, 2026
Keep creator selection separate from execution containment across native, ACP, cron, and realtime consult creation. Preserve public-link behavior and capture each operation's hot configuration once.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot roboclaw-bot changed the title fix: keep human creators for delegated sessions and automations feat: opt in to human creators for delegated work Oct 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: voice-call Channel integration: voice-call app: web-ui App: web-ui plugin: facetime FaceTime plugin labels Oct 13, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review exact head 93571c29fa3db84aa4209b50554b687fdc65199a (tree 9372ad655be9b61004e8f1875f987fcb4175e17a) for the requested default-off, hot Human creator attribution Lab. The updated body includes real Gateway + built UI off/on/off proof (same PID/WebSocket, no restart), captured in-flight configuration, public-link HTTP/revocation/exclusion proof, consult and retained realtime caller fixes, scoped tests/types/lint and the successful exact-head runtime/UI build. Before/after images are embedded. The full packaging/declaration build timed out; new-head CI is pending.

Please keep the remaining downgrade contract explicit: the flag does not erase stored private isolation/ACP identity, and an unmodified pre-PR binary can misinterpret same-schema feature-written state. No transparent downgrade, actual automatic package rollback or restored-Gateway recovery is claimed. The documented matching-backup recovery contract and required compatibility decision remain open; historical released-to-head78e upgrade proof is labeled historical. This request is review only, not repair or merge.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Prepare and release real fixture authorization, retain explicit off-mode containment coverage, and regenerate the canonical config baseline. Fix the two new typed fixture diagnostics.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review exact head e6bdd958c26578f99707a4ddeca8f0169d4c1dac. All four revision19 code/fixture/config-baseline findings and both CI fixture type errors were repaired, independently reviewed and published. The four affected files pass65 tests; current CI has cleared those lanes but records one new scheduled cleanup failure, still being attributed.

The body retains precise no-restart/public-link/UI evidence and explicit limitations. Downgrade/recovery remains an unresolved maintainer decision, not silently waived. The latest-stable10.3 install genuinely rejects AI10.3 maturity; that exact version is release-branch-only rather than already upstream main, outside the existing conditional exception. No guard was weakened. Existing rollback-owner proof is37/46 with9 unexplained config-restoration fixture failures, not a historical-binary success. Please distinguish resolved patch concerns from these still-open compatibility gates.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Oct 13, 2026
roboclaw-bot and others added 2 commits October 13, 2026 19:31
Preserve the complete isolated service environment in rollback fixtures and cover retained creator, isolation, and parent-agent metadata through admitted and refused schema rollback.

Co-authored-by: VACInc <[email protected]>
Join launch cleanup after the stop snapshot before removing the injected storage fault. Reproduce the marker-clearing failure on exact base and merge; retain the original durable-state assertion and require the failed-recovery warning.

Co-authored-by: VACInc <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Oct 13, 2026
Resolve main conflicts using the complete memory-owned session entry and retain private isolation. Correct enabled autonomous voice consult fallback without changing legacy attribution or sandbox identity.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review current head 71b0bfb7d41cdfa01fc7dea1532d84065ebe6a62 and the updated proof. Exact-head CI 38461251574 is complete: 71 successful jobs, 20 skipped, none failed or pending; both CI-gate surfaces and dependency/security reviews pass.

Since revision20, this branch diagnoses and repairs the rollback fixture failures with real retained-row owner proof, repairs the cron fault-lifetime defect reproduced on both exact base and merge, resolves the actual memory-owner conflicts, and fixes the independently reviewed autonomous voice-creator fallback with red/green storage-boundary proof. The body distinguishes executed current evidence from historical results.

Retained-state downgrade is still explicitly unqualified: the non-lossy schema-admission-floor design needs acceptance, actual historical execution needs a compatible backport and package-swap proof, and the exact AI2026.10.3 isolated-install age exception remains unapproved. Please keep those unresolved compatibility decisions separate from repaired code/test findings and green CI. No merge or deployment requested.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 13, 2026
@RomneyDa
RomneyDa deleted the openclaw/human-creator-delegated-sessions-crons branch October 22, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: voice-call Channel integration: voice-call cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: facetime FaceTime plugin proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants