Skip to content

fix: retain human co-author credit through delegation - #157268

Merged
steipete merged 15 commits into
mainfrom
codex/delegated-git-credit
Sep 24, 2026
Merged

steipete merged 15 commits into
mainfrom
codex/delegated-git-credit

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156978. Originally reported by Vincent Koc (@vincentkoc). Includes the focused existing-PR repair and real-Git regression from #157420, preserving its verified human co-author credit for @vincentkoc and @steipete.

What Problem This Solves

Delegating implementation to a child session dropped the originating humans from Git co-author credit because publication read only the child’s direct participants. Trusted delegation now carries bounded contributor provenance into the child, and the existing attribution owner resolves current verified GitHub identity and consent for prompts and publication.

User Impact

The snapshot retains at most 32 unique profile IDs, survives current-version session resets, and propagates through nested delegation. Creation joins already accepted participant writes before capturing it. Later source participants are excluded. Inherited credit remains separate from child activity, ownership, and access; private provenance is omitted from public session entries, and incognito sessions remain excluded.

Eligibility deliberately remains session-level: consenting, verified people already recorded in the source conversation are eligible, including earlier work in that conversation. A separate source conversation gives a separate contributor set. Task-specific causal attribution and unlinked channel-to-profile qualification are separate companion work. The real publication test intentionally credits an inherited-only earlier contributor alongside a direct child contributor, and excludes a late source participant and an opted-out profile.

Existing children are not backfilled. The field is optional and requires no database-schema migration or operator action. Current-version reset and upgrade preserve it. An older build without this feature can discard the new field during reset; that documented feature-version boundary is accepted for this scope, and existing session records remain readable.

Why This Change Was Made

Contributor reads use existing database workers and lifecycle-owned schema facts. Publication retains the existing profile owner’s authority through final commit, push, and PR dispatch. Canonical preference writes fence that owner before COMMIT; cosmetic preferences and rejected preference updates do not interrupt publication. Recovery refuses stale unpushed credit while retaining observed GitHub effects.

The existing publication-message owner now builds one canonical terminal Git footer independently of matching title/body text. Both adapters verify that footer’s exact request marker and current co-author set before resuming an unpushed commit. The repository API path acquires no Git executable dependency. This also fixes an allowed title equal to a co-author line suppressing the actual trailer. Reusing an already-published PR head reads Git-recognized trailers from that pinned commit and rechecks current consent after the read. Missing credit creates one forward-only commit with the same tree; historical commits stay intact. The real-Git regression also verifies repeat-request reuse, quoted examples, a Markdown separator, unavailable trailer reads, and no-current-human publication.

Evidence

  • Final CI run passed for 89e428539e09d7a74900a4c1136bb830fb28f7a1. Independent review and the current-head ClawSweeper review are clean. The native workflow merged that exact head as 1b66d30351da0d52041b882d2401da7eb000bff3, and GitHub recognizes @vincentkoc as a co-author.
  • Initial focused validation passed 441 cases across 23 files. Original creation and queued-participant negative controls failed for the intended missing-credit cause; candidates pass. Nested creation, reset, private projection, current identity/opt-out, alias deduplication and publisher exclusion are covered.
  • The final publication suites pass 11 and 21 cases. Real Git interpret-trailers --parse --no-divider verifies one recognized human trailer for the title-collision case. Replacing only the repaired message logic makes all three generation/recovery regressions fail for missing metadata or incorrect publication. Earlier guard-removal proof likewise made all seven mid-publication opt-out/recovery regressions fail.
  • The real merged-profile suite passes 5 cases: actual merge and committed async opt-out invalidate prepared credit, while cosmetic changes and rejected CAS preserve it. Joint creation/custody checks pass 39 cases after integrating current main’s workspace-adoption guard.
  • The existing-PR regression failed against the prior shortcut: publication returned success while Git recognized no human trailer. With the integrated repair, all 17 real-Git history cases pass (75.21s command wall); its new regression took 9.044s. After moving the trailer read to the existing Git transport owner and sharing the executor’s success-recording path, all four publication suites pass together: 92 cases, 199.94s command wall. The unchanged line cap passes, and fresh independent P2 review is scoped-clean.
  • Independent Codex review through P2 is clean for the integrated implementation and final follow-up. Core and test type graphs, formatting, lint, architecture and selected repository guards have passed. Required hosted checks remain the landing authority; pending or failed runs are not represented as successful proof.

Attribution/consent tests use synthetic Git/GitHub transport with real profile storage and publication owners. The history suite uses real Git and a local bare remote; its GitHub API transport remains synthetic. No live Gateway deployment or retrospective history rewrite is included. The original PR’s visible acknowledgment of Vincent was corrected separately.

CI investigations and scoped repairs
  • Predecessor run 36001823109 exposed an extra catalog freshness read and a reader-cleanup fixture omission. Admission now occurs only at native reader open; the unchanged five-read budget passes the original-order 605-case shard, with 47 schema/cleanup siblings passing. An earlier declaration cycle was repaired with a leaf worker reply type; runtime and Madge checks report zero cycles.
  • Release-manifest fixture failures were reproduced against their actual merge source. The canonical repair subsequently landed upstream as 3928d51bf8ee; this PR uses that test unchanged and removes its superseded helper. The upstream 64-case fixture passes and preserves actual artifact validation/sealing with synthetic transport.
  • Run 36010941397 had one unexplained yielded-session requester metadata failure. One original-order replay on exact merge aa9ed66d887f passed all 511 cases across nine files. That is non-reproduction, not a claimed fix; assertions and timeouts were retained.
  • Run 36015903204 failed the Android obsolete-row fixture because committed generated translations were still pending. Exact merge b937a720a32b reproduced 35 passing cases and one failure. The fixture now seeds the in-memory generated catalog before intentional obsolete drift, retaining every strict malformed/reference/missing-row assertion; all 36 cases pass. Actual translations were separately refreshed upstream in chore(i18n): refresh native locales #157337. The equivalent fixture repair subsequently landed in fix(ci): isolate obsolete Android localization fixture #157397; this PR now uses that canonical test unchanged.
  • Run 36023822699 exposed the extracted PR wrapper’s missing eager plugin-state contract. Its existing module is added to the canonical inventory (+1 line). Exact merge 549644721f87 reproduced both closure failures; 84 selected native cases pass after repair, including 75 main-refresh cases, with unchanged assertions and guards. Changed checks and independent P2 review pass. The exact inventory addition subsequently landed in fix(maintainer): restore cold PR worktree provisioning #157394; this PR now uses main’s complete inventory unchanged.
  • A separate command-lock fixture mixed real inspection time with a 15ms acquisition budget. It now controls the existing clock/sleep interfaces consistently and always settles the held run. The exact 15ms error and single-writer assertions remain. Its original 45-file shard passes 878 cases with 2 platform skips; the final focused file passes 128 with 1 skip. No production timeout changed.
  • Run 36036974175 on 35a2cf29da32 completed with exactly three failed jobs plus its aggregate gate. The newly added Android Access job omitted the existing release reservation and explicit sealing dependency. On exact merge 49d7bb5ad2b6, unchanged contract tests reproduced two failures; the two-line workflow repair passes 793 tests across five owner suites (12 existing skips), workflow lint/security checks, changed checks and independent P2 review. The sealing dependency was already transitive through ci-gate; this restores its required explicit workload inventory. Ubuntu/KVM labels, commands, matrix, permissions and deadlines remain unchanged.
  • Run 36045991157 passed the repaired workflow and Doctor lanes; the Android runner-contract file passed 11 tests with native Vitest duration 0.808s. Its sole failing job was a new main integration omission: the extracted PR wrapper lacked config-journal-snapshot.kernel.ts, introduced by fix(config): apply Gateway writes without waiting for file events #157372. The canonical one-row inventory fix landed upstream as 5b210a8eea75; this PR integrates it through main 056f6278dd99 rather than duplicating it. The original missing-module failure was reproduced, and the identical repaired closure/native-bootstrap/provisioning checks pass. On the integrated candidate, the full 15-case eager-closure suite, 11 publication-attribution cases and five profile cases pass (three wrapper shards, 100.14s), core types pass, and fresh full-candidate P2 review is clean. The accepted auto-merge request was retired through native recovery before this replacement head was published.
  • Run 36041813649 exposed the Android job-specific test’s literal runs-on comparison after the valid release-reservation wrapper was added. The test now uses the existing workflow evaluator and still requires the ordinary runner to resolve to ubuntu-24.04; APK, ABI, page-size and evidence assertions remain intact. Its original assertion failed with 10 sibling cases passing; the repaired Android/release-routing/sealing selection passes 60 cases, and the final Android file passes 11 cases in 4.16s command wall. Owning test-root types, exact-file lint, formatting and fresh P2 review pass. The broader changed sequence was deliberately stopped during an unrelated export scan; it is not represented as a completed gate. Production YAML is unchanged from the prior 793-case proof.
  • That run also exposed a Doctor fixture lifetime race: after consuming its single IPC message listener, its synthetic prompt had no referenced native input handle and could exit before SIGTERM arrived. The fixture now retains its parent-control channel through cancellation and disconnects in finally. The original 68-file baseline replay passed 873 cases locally, so this is an intermittent CI failure, not a claimed deterministic reproduction. The candidate passes the same 873 cases (186.16s) and all eight focused interruption cases (27.92s); signal/exit/event assertions and deadlines are unchanged, and independent P2 review is clean.
  • The integrated main context at e843a9a1d794 includes upstream boundary-parser repair ci: reduce Node fixture overhead and defer seven release matrices #157341 and the reviewed outbound-readiness repair 74b00d7de1b. That main-only fixture change replaced one-second polling with callback signals and guaranteed drain settlement; 78 files/1,273 cases, focused proof, changed checks and independent review passed.

Two local production builds passed on earlier attribution heads, including 61993b9093d3. They emitted unchanged UI budget warnings (startup 363.0/362.6 KiB gzip; isolated Mermaid 1555.8/960.0 KiB). A final-head local full build is not claimed. The final credit follow-up’s changed-file checks complete successfully, including all 25 core-test graphs, unused-export scans and zero runtime cycles. Earlier aggregate changed-check attempts stopped at findings that were corrected; the final follow-up’s scoped changed check completed successfully, including all 25 core-test type graphs, core/scripts lint, line limits and repository guards. It is recorded separately from those earlier attempts.

Measured test cost

Wall measurements use pnpm test <file> --maxWorkers=1 and include imports, worker compilation and cleanup. Some independent invocations overlapped. Initial-feature rows are retained evidence, not a claim that every file was rerun on every head; final follow-up rows are labeled.

Validated test file Passing cases Wall seconds
src/agents/cli-runner/helpers.system-prompt.test.ts 15 69.59
src/agents/embedded-agent-runner/run/run-attempt-dispatch.owner.test.ts 11 93.81
src/agents/git-coauthor-attribution.test.ts 9 62.49
src/agents/git-coauthor-prompt.test.ts 10 3.58
src/agents/runtime-prompt.test.ts 4 5.23
src/agents/subagents/spawn/acp-spawn.authority.test.ts 10 118.14
src/agents/subagents/spawn/acp-spawn.test.ts 93 86.00
src/agents/subagents/spawn/subagent-spawn-session-patch.test.ts 1 35.59
src/agents/subagents/spawn/subagent-spawn.test.ts 91 103.68
src/agents/subagents/spawn/subagent-spawn.workspace.test.ts 9 33.54
src/agents/system-prompt-params.test.ts 21 4.17
src/gateway/github-publication-attribution.test.ts (consent and terminal footer) 11 60.19
src/gateway/github-user-identity.oidc.test.ts 31 49.56
src/gateway/server-methods/sessions-create.child-custody.test.ts 23 137.66
src/gateway/server.sessions.reset-models.test.ts 15 73.12
src/sessions/session-participant-recording.test.ts 3 32.31
src/state/openclaw-state-db-read-connection.test.ts 18 36.98
src/state/user-profiles-multi-account.test.ts (final consent correction) 5 38.30
src/gateway/github-publication.test.ts (recovery/footer cases) 21 54.65
src/gateway/github-publication-history.test.ts (existing-PR trailer repair) 17 75.21
src/commands/agent-via-gateway.test.ts (deterministic lock fixture) 128 + 1 platform skip 49.21
src/commands/doctor-maintenance.interruption.process.test.ts (IPC lifetime fixture) 8 27.92
test/scripts/android-app-i18n.test.ts (isolated obsolete-row fixture) 36 9.00
test/scripts/android-access-workflow.test.ts (resolved runner contract) 11 4.16

Additional proof: original-order catalog 605 cases/184.41s; native reader/schema siblings 47 cases/30.95s; release-artifact with its original predecessor 164 cases/51.16s; Android final integrated file 36 cases/9.00s; selected native-wrapper repair 84 cases/751.76s. The queued-writer case took 1.253s. The command-lock fixture retains a virtual 15ms budget; its real focused wall time is the table measurement.

Hosted run 36015903204, checkout b937a720a32b, passed the earlier publication suites: attribution 9 cases totaling 13.987s of case execution, publication 20 totaling 14.468s, and multi-account 5 totaling 1.690s. These are case-duration sums, not file wall times. The unchanged upstream release-artifact file passed 64 cases with native Vitest file duration 2.863s. These preceding-head measurements are not claimed for the later added footer cases.

The GitHub run archive download was interrupted, but the cited timing members were recovered offline and validated by CRC32 and compressed/uncompressed sizes. No incomplete member supplied a measurement.

Contributor provenance for the integrated repair: original implementation session.

Capture bounded contributor provenance at trusted child creation and retain it across nested delegation and resets. Join accepted participant writes before the snapshot, and resolve current GitHub identities and credit preferences through existing read workers without changing participation or access.

Related: #156978. Existing delegated sessions are not backfilled; optional metadata requires no schema migration.
@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: XL labels Sep 24, 2026
@steipete
steipete marked this pull request as ready for review September 24, 2026 12:20
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 4:09 PM ET / 20:09 UTC (Revision 11).

ClawSweeper review

What this changes

The branch stores a bounded contributor snapshot in delegated child sessions and uses current identity and consent checks when agent prompts and GitHub publication add human co-author credit.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still derives co-author credit from a child session’s direct participants, so delegated work can lose the originating humans’ credit. This branch addresses that gap through the existing session and publication owners. The maintainer explicitly accepted session-wide eligibility and the older-build reset limit; this review found no remaining introduced blocker.

Priority: P2
Reviewed head: 89e428539e09d7a74900a4c1136bb830fb28f7a1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has strong owner-boundary and real-Git evidence, with simulated GitHub API effects keeping overall confidence at the normal good tier.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed child-creation and publication owners are exercised through in-process Gateway and SQLite paths plus real Git commits to a local bare remote. After the fix, Git recognizes inherited human trailers, late or opted-out people are excluded, and staged opt-outs stop before commit, push, or PR commands; GitHub API transport remains simulated. The optional stored field is readable alongside existing rows and survives current-version reset, so no migration is needed; the documented older-build reset limit was accepted.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed child-creation and publication owners are exercised through in-process Gateway and SQLite paths plus real Git commits to a local bare remote. After the fix, Git recognizes inherited human trailers, late or opted-out people are excluded, and staged opt-outs stop before commit, push, or PR commands; GitHub API transport remains simulated. The optional stored field is readable alongside existing rows and survives current-version reset, so no migration is needed; the documented older-build reset limit was accepted.
Evidence reviewed 9 items Current-main gap: The current attribution path reads direct participant records for the requested session; it has no inherited contributor snapshot.
Delegation owner: The introduced snapshot takes profile identities from the parent session, deduplicates them, and caps them at the existing participant limit.
Current consent at publication: The publication executor prepares attribution from the child session and rejects changed profile authority before its GitHub effects.
Findings None None.
Security None None.

How this fits together

Gateway session creation records contributor provenance when an agent delegates work. Agent prompts and GitHub publication read the child session and current profile preferences before producing commit and pull-request credit.

flowchart LR
  A[Source session participants] --> B[Delegation snapshot]
  B --> C[Child session metadata]
  C --> D[Current identity and consent]
  E[Direct child participants] --> D
  D --> F{Eligible for credit?}
  F -->|Yes| G[Commit and PR credit]
  F -->|No| H[No new human credit]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +667, Tests +817, Docs +6. Total +1490 across 66 files.

View PR surface stats
Area Files Added Removed Net
Source 38 875 208 +667
Tests 26 1099 282 +817
Docs 2 8 2 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 66 1982 492 +1490

Review metrics

Metric Value Why it matters
Production and test growth production +950/−208, net +742; tests +1024/−282, net +742 The PR body attributes the production growth to delegation persistence, worker-owned identity reads, and publication consent guards.

Technical review

Best possible solution:

Keep inherited credit bounded and private, resolve eligibility through the current profile owner before public effects, and handle task-specific or unlinked-channel qualification through their separate contracts.

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

Yes at the source boundary: current main reads only a child session’s direct participant records, so a delegated child without direct human records has no originating human to credit. This review did not execute current main.

Is this the best way to solve the issue?

Yes. Capturing provenance at trusted child creation and resolving current consent in the existing attribution owner is a narrow fit for the established publication path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fd0b79614de5.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed child-creation and publication owners are exercised through in-process Gateway and SQLite paths plus real Git commits to a local bare remote. After the fix, Git recognizes inherited human trailers, late or opted-out people are excluded, and staged opt-outs stop before commit, push, or PR commands; GitHub API transport remains simulated. The optional stored field is readable alongside existing rows and survives current-version reset, so no migration is needed; the documented older-build reset limit was accepted.

Label justifications:

  • P2: Delegated Git credit is a bounded user-visible attribution defect without evidence of broader runtime failure.
  • merge-risk: 🚨 compatibility: The optional stored session field survives current-version reset, while the maintainer explicitly accepted that an older build can discard it on reset.
  • merge-risk: 🚨 security-boundary: Inherited identity can become public Git metadata, so verified profile identity, consent, and final-effect guards are material to this merge.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed child-creation and publication owners are exercised through in-process Gateway and SQLite paths plus real Git commits to a local bare remote. After the fix, Git recognizes inherited human trailers, late or opted-out people are excluded, and staged opt-outs stop before commit, push, or PR commands; GitHub API transport remains simulated. The optional stored field is readable alongside existing rows and survives current-version reset, so no migration is needed; the documented older-build reset limit was accepted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed child-creation and publication owners are exercised through in-process Gateway and SQLite paths plus real Git commits to a local bare remote. After the fix, Git recognizes inherited human trailers, late or opted-out people are excluded, and staged opt-outs stop before commit, push, or PR commands; GitHub API transport remains simulated. The optional stored field is readable alongside existing rows and survives current-version reset, so no migration is needed; the documented older-build reset limit was accepted.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-24T13:15:12.521Z sha 61993b9 :: needs real behavior proof before merge. :: [P2] Revalidate co-author consent before public GitHub effects
  • reviewed 2026-09-24T14:19:01.305Z sha f0cb7b3 :: needs real behavior proof before merge. :: [P2] Recheck co-author consent before publishing
  • reviewed 2026-09-24T15:01:06.324Z sha a34af46 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-24T15:49:33.956Z sha 2c1b6c5 :: needs real behavior proof before merge. :: [P2] Check only recognized trailers before reusing a commit
  • reviewed 2026-09-24T16:06:09.707Z sha c8a74a1 :: needs real behavior proof before merge. :: [P2] Check Git's terminal trailers before reusing a commit | [P2] Keep unrelated parent participants out of child credit
  • reviewed 2026-09-24T17:33:01.484Z sha 9ae3b77 :: needs changes before merge. :: [P2] Verify terminal trailers on the existing-PR reuse path
  • reviewed 2026-09-24T17:57:38.300Z sha 35a2cf2 :: blocked before merge. :: [P2] Validate terminal trailers before reusing an existing PR
  • reviewed 2026-09-24T19:15:15.693Z sha 090dd4a :: needs maintainer review before merge. :: none

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 89e428539e09d7a74900a4c1136bb830fb28f7a1
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/git-coauthor-attribution.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/git-coauthor-prompt.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added 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. and removed 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 Sep 24, 2026
Integrate current main and repair the CI fixture boundary for authenticated artifact download and publish-input sealing. Keep real descriptor validation and sealing logic, with synthetic external transport and registry responses.
Bind prepared credit to profile authority through the final commit, push and pull request guards. Fence canonical credit preference writes before commit and reject stale credit on unpushed recovery commits while preserving observed public effects.
@clawsweeper clawsweeper Bot added 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. and removed 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 Sep 24, 2026
@roboclaw-bot

roboclaw-bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

The four release-artifact fixture failures also blocked release-repair PRs #157239 and #157318. We reproduced the exact failure on CI merge 3bd801e: the newer writer requires qualified npm preflight sealing, while the older fixtures supplied empty credentials. The author-head pass was not relevant proof.

I independently verified the exact two-file repair from a34af46: Node24, owned frozen dependencies, 164/164 ordered cases. Since then main landed canonical fixture correction 3928d51. We now consume that single mainline owner and have removed the temporary copied helper, rather than retaining a duplicate implementation. The canonical main fixture independently passed 164/164 on Node24 in 16.34 seconds.

PR157239 now carries conflict-resolved head 3366cfd with eight changed files and fresh ordinary CI/review required. No changes to this attribution-feature branch, production authentication, or sealing policy were made; its broader feature was not qualified or taken over here.

Seed the obsolete-row fixture from the current generated catalog before introducing the exact obsolete row. Pending post-merge translation refreshes no longer contaminate the strict validation case; malformed, referenced and missing-row assertions remain unchanged.
Resolve the Android fixture overlap with the upstream version and retain main’s complete wrapper inventory. These repairs are no longer duplicated in the PR; attribution and CLI lock changes retain their reviewed bytes.

Validation: 160 integration cases pass with one existing platform skip; core types and full-candidate P2 review pass.
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Sep 24, 2026
steipete and others added 2 commits September 24, 2026 11:24
Integrate the focused existing-PR repair from #157420. Parse the pinned
commit with Git before reusing its credit; missing recognized trailers
produce one forward-only commit with the same tree. Retain current
contributor-consent checks after the read and the request-owned recovery
footer guards.

The real-Git publication regression covers malformed historical credit,
unchanged tree/history, valid repeat reuse, no-current-human publication,
and a failed trailer read.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[email protected]>
Preserve both additive worker inventories while integrating current main.
Restore the Android Access job’s existing release reservation and explicit
sealing dependency, without changing its Ubuntu/KVM execution contract.
Retain the Doctor fixture IPC channel while its synthetic prompt awaits
SIGTERM and disconnect through cleanup.

Workflow baseline reproduced both contract failures;793 active owner tests
and workflow/changed checks pass. Doctor original-order873 cases and8
focused process cases pass; its owning test type graph and lint pass.
Both focused repairs passed independent review through P2.
Use the shared workflow evaluator to retain the ordinary Ubuntu runner
contract after release reservation routing. Preserve the existing Android
platform and packaged-evidence assertions. Add required braces to the
existing missing-report guard without changing behavior.

The original assertion failed against the valid reservation expression;
60 focused workflow cases, final Android 11 cases, types, lint and
independent P2 review pass. Production workflow bytes are unchanged.
@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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@steipete
steipete enabled auto-merge (squash) September 24, 2026 19:18
Integrate main through 056f627, including the canonical config
snapshot kernel inventory fix in 5b210a8. Preserve delegated-credit
behavior across the additive config diagnostic worker changes.

The complete extracted closure, publication attribution and profile
suites pass; core types and fresh full-candidate P2 review pass.
@steipete
steipete disabled auto-merge September 24, 2026 19:58
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 24, 2026
@steipete
steipete merged commit 1b66d30 into main Sep 24, 2026
225 of 227 checks passed
@steipete
steipete deleted the codex/delegated-git-credit branch September 24, 2026 20:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
* fix: retain human co-author credit through delegation

Capture bounded contributor provenance at trusted child creation and retain it across nested delegation and resets. Join accepted participant writes before the snapshot, and resolve current GitHub identities and credit preferences through existing read workers without changing participation or access.

Related: openclaw#156978. Existing delegated sessions are not backfilled; optional metadata requires no schema migration.

* test: keep nested admission and drain lifetimes explicit

* fix: resolve current contributor consent through a leaf worker contract

* fix: admit schema facts only when opening native readers

* fix: retain current contributor consent through publication

Bind prepared credit to profile authority through the final commit, push and pull request guards. Fence canonical credit preference writes before commit and reject stale credit on unpushed recovery commits while preserving observed public effects.

* fix(test): isolate obsolete Android locale fixture drift

Seed the obsolete-row fixture from the current generated catalog before introducing the exact obsolete row. Pending post-merge translation refreshes no longer contaminate the strict validation case; malformed, referenced and missing-row assertions remain unchanged.

* fix: preserve Git-recognized credit through publication

Build and verify the canonical terminal credit footer at the publication message owner. Title and body text cannot suppress or impersonate metadata; both recovery paths retain consent checks and reject malformed prepared credit. Document the existing session-level contributor boundary.

Complete the native PR wrapper runtime inventory and make the command-lock fixture clock deterministic without increasing its timeout or weakening assertions. Focused publication and CLI tests, negative controls, changed-file checks and independent P2 review pass.

* fix: verify Git trailers before reusing published credit

Integrate the focused existing-PR repair from openclaw#157420. Parse the pinned
commit with Git before reusing its credit; missing recognized trailers
produce one forward-only commit with the same tree. Retain current
contributor-consent checks after the read and the request-owned recovery
footer guards.

The real-Git publication regression covers malformed historical credit,
unchanged tree/history, valid repeat reuse, no-current-human publication,
and a failed trailer read.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[email protected]>

* test(ci): verify the resolved Android Access runner

Use the shared workflow evaluator to retain the ordinary Ubuntu runner
contract after release reservation routing. Preserve the existing Android
platform and packaged-evidence assertions. Add required braces to the
existing missing-report guard without changing behavior.

The original assertion failed against the valid reservation expression;
60 focused workflow cases, final Android 11 cases, types, lint and
independent P2 review pass. Production workflow bytes are unchanged.

---------

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: steipete <[email protected]>
roboclaw-bot added a commit that referenced this pull request Sep 26, 2026
* fix(release): restore PR checks after large validation pauses

Co-authored-by: steipete <[email protected]>

* fix(release): preserve independent PR checks during restore

Co-authored-by: steipete <[email protected]>

* fix(release): leave intentionally skipped CI runs alone

Co-authored-by: steipete <[email protected]>

* fix(release): revalidate deferred attempts before dispatch

Co-authored-by: steipete <[email protected]>

* test(release): reuse qualified manifest sealing fixtures

Reuse the fixture-only repair from #157268 (f0cb7b3), byte-identical to the two files at a34af46. Keep the actual writer and validation policy, with controlled external transport.

Co-authored-by: steipete <[email protected]>

* test(tooling): capture nested cleanup failure state

Record bounded failure-only process facts without changing the liveness predicate, assertion, deadlines or cleanup. This improves evidence for the unexplained CI failure; it does not claim a lifecycle fix.

Co-authored-by: steipete <[email protected]>

* fix(release): report skipped restore candidates in CLI output

Show run IDs and recovery guidance when dispatch revalidation declines a rerun. Keep cancellation labeling distinct and preserve JSON, selection, mutation counts and retry behavior. Cover the actual CLI with portable secretless transport fixtures.

Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…aw#157239)

* fix(release): restore PR checks after large validation pauses

Co-authored-by: steipete <[email protected]>

* fix(release): preserve independent PR checks during restore

Co-authored-by: steipete <[email protected]>

* fix(release): leave intentionally skipped CI runs alone

Co-authored-by: steipete <[email protected]>

* fix(release): revalidate deferred attempts before dispatch

Co-authored-by: steipete <[email protected]>

* test(release): reuse qualified manifest sealing fixtures

Reuse the fixture-only repair from openclaw#157268 (f0cb7b3), byte-identical to the two files at a34af46. Keep the actual writer and validation policy, with controlled external transport.

Co-authored-by: steipete <[email protected]>

* test(tooling): capture nested cleanup failure state

Record bounded failure-only process facts without changing the liveness predicate, assertion, deadlines or cleanup. This improves evidence for the unexplained CI failure; it does not claim a lifecycle fix.

Co-authored-by: steipete <[email protected]>

* fix(release): report skipped restore candidates in CLI output

Show run IDs and recovery guidance when dispatch revalidation declines a rerun. Keep cancellation labeling distinct and preserve JSON, selection, mutation counts and retry behavior. Cover the actual CLI with portable secretless transport fixtures.

Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants