Skip to content

perf(agents): release completed attempt transcript references - #174236

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-prompt-prefix-signature-retention-20260919
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-prompt-prefix-signature-retention-20260919

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes retained session history after completed agent attempts when async tool callbacks remain reachable. Historical prompt checkpoints and reasoning signatures can otherwise stay in the Gateway heap after cleanup.

User Impact

Completed attempts can release their in-memory transcript payloads. Active replay and durable transcript bytes remain unchanged; no configuration or migration is required.

Why This Change Was Made

The attempt resource owner now transfers its original bag to cleanup and replaces its own reference before cleanup awaits. Tool-search and yield callbacks release their session references after accepted tool work finishes. Prompt-admission commits capture only the prompt state and route, rather than the input transcript array.

The frozen provider prefix and latest rendered prompt can differ after instruction refresh, so both logical values remain necessary. Identical strings already share the existing 8 MiB bounded pool. Valid historical reasoning signatures remain available for provider replay; this change releases their owners instead of modifying messages.

Production code grows by 8 lines to transfer cleanup ownership and clear retained callbacks; it adds no cache, timer, config, or parallel cleanup path. Simplification removes the separate review-only live reference in favor of one resource owner.

Evidence

Both retention regressions failed on the base: retaining a completed resource owner kept 5 payloads instead of 1, and retaining a prompt-admission commit kept its input history alive.

Synthetic Linux main-isolate measurement using the exact resource-owner function (Node 26.8.2, forced GC): 5,000 metadata rows, 305 retained attempt owners, 305 prefix pairs (201 share one string), and 10,705 signatures. Post-cleanup heap used fell from 145,165,920 to 9,522,080 bytes (138.4 → 9.1 MiB). Retained history graphs fell from 305 to 0, releasing 133,388,720 synthetic string bytes (127.2 MiB). Loaded heap was essentially unchanged: 145,157,776 versus 145,255,200 bytes. The benchmark isolates ownership; it is not a full Gateway throughput or end-to-end heap measurement.

Full Gateway comparison on an isolated Linux rig (Node 26.8.1) used the same synthetic fixture: 5,000 sessions, 25,655 transcript messages, 6,000 retained runs, and a 4.32 GiB agent database. Each revision completed 20 warmup turns and five cohorts of 20 concurrent agent turns, with all 100 measured code-mode calls and tool results verified. After ten idle seconds and forced main-isolate GC, base → head heap used was 684,505,016 → 679,776,880 bytes (652.8 → 648.3 MiB, 0.69% lower). Workload heap growth was 137,643,280 → 134,168,168 bytes. Deduplicated string backing bytes reachable from the selected prompt/signature properties were 1,243,592 → 1,205,944; thinkingSignature bytes were 345,400 → 307,720. Prefix and rendered-prefix retention were unchanged.

This single paired Gateway measurement is neutral to small, with no observed regression; it does not establish a significant production heap or throughput gain. The driver used a synthetic loopback provider and real code-mode reads. Head used the full build profile and base the supported sourcePerformance profile, both running the generated native Gateway entry. The isolated ownership regression above demonstrates collection of the specific retained graph; this short Gateway workload does not reproduce all long-lived production retainers.

Focused tests: 56 passed across session-prompt-state.test.ts, session-manager-codec.test.ts, and run/attempt-session-settle.test.ts via node scripts/run-vitest.mjs <files> --maxWorkers=1 (157.11 s total wall time, including compiler preparation; codec subprocess 18.54 s, cleanup tests 0.15 s). Both regressions were first observed failing on the unchanged production code. Changed-file format, core-config lint of the six changed files, and git diff --check passed. Autoreview and GitHub code review: clean, with no actionable findings. All required checks passed on 2a5f5347fdbf3f4ede1c3e058d3bb1d81c707617, including PR CI run 38906382623. No Testbox lease was allocated.

@clawsweeper

clawsweeper Bot commented Oct 16, 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 the agents Agent runtime and tooling label Oct 16, 2026
@steipete
steipete marked this pull request as ready for review October 16, 2026 13:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T13:18:01.469552Z 2a5f534 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR releases completed attempts’ transcript references from resource owners, tool callbacks, and prompt-admission callbacks.

Example: The reported synthetic benchmark retains 305 completed attempt owners.

  • Before: Post-cleanup heap usage is 138.4 MiB, with 305 history graphs retained.
  • After: Post-cleanup heap usage is 9.1 MiB, with no history graphs retained.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused ownership repair is correct on inspection and supported by targeted retention regressions; synthetic helper measurements limit confidence in the overall Gateway memory effect.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its Linux Node measurements exercise the resource-owner function and garbage collection, with focused regression results, rather than a shipped Gateway entry point.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Completed agent attempts can leave historical transcript payloads in Gateway memory while callbacks remain reachable.
Reason: The maintainer-authored direction repairs a demonstrated retention mechanism with a small change and preserves active replay and durable history.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a current-main retention defect with a focused ownership fix; no actionable introduced defects were found.

Priority: P2
Reviewed head: 2a5f5347fdbf3f4ede1c3e058d3bb1d81c707617

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied synthetic ownership measurements do not demonstrate completed-attempt memory release through a shipped Gateway run.
Agent review details

How this fits together

The embedded agent runner prepares sessions and tool callbacks, executes an attempt, and transfers session resources to cleanup while separately preserving accepted background work.

flowchart TD
  A[Gateway turn] --> B[Embedded attempt]
  B --> C[Session resource owner]
  C --> D[Active transcript]
  D --> E[Durable history]
  C --> F[Session cleanup]
  B --> G[Retained tool callbacks]
  G --> C
Loading

Technical review

Best possible solution:

Transfer completed session resources to the existing cleanup owner and release callback references without changing replay bytes or accepted-work settlement.

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

Current-main source retains the original resource bag and captures prompt-preparation params containing transcript entries; the author reports failing baseline retention regressions, which were inspected but not executed during this read-only review.

Is this the best way to solve the issue?

The patch fixes ownership at the retaining producers, preserves the existing cleanup lifecycle, and avoids changing messages, prompt formats, caches, or configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 95a27d0779d1.

Provenance checked

  • Session-resource ownership and review callbacks keeps the original intent (3a8abe6: Release completed prompt state and callback-held history while retaining durable evidence and cleanup settlement.)
  • Prompt-admission callback keeps the original intent (46ab36a: Pin the provider prefix and commit admitted prompt updates while preserving route, restart, and checkpoint behavior.)
  • Tool-search and yield callback references keeps the original intent (feat: add core tool search #79823: Tool search delegates through the attempt executor; yield callbacks retain late-bound session operations, whose cooperative-yield history also appears in commit 3fa91cd.)
  • Prompt-pool retention test support keeps the original intent (4919373: Verify shared prompt-prefix storage across append and restoration without changing prompt bytes or the persisted two-field contract.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3a8abe6 adds src/agents/embedded-agent-runner/run/attempt-session-settle.ts:74 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3a8abe6955cc; files: src/agents/embedded-agent-runner/run/attempt-session-settle.ts)

PR surface

Source +8, Tests +39. Total +47 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 25 17 +8
Tests 3 44 5 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 69 22 +47

Review metrics

Metric Value Why it matters
Production versus test LOC Production +25/-17; tests and test support +44/-5 The eight-line net production increase implements ownership transfer and callback release; the test growth adds a distinct garbage-collection regression.

Labels

Label changes:

  • add P2: Completed-attempt transcript retention can increase long-lived Gateway memory usage, without evidence here of an urgent outage or crash loop.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Completed-attempt transcript retention can increase long-lived Gateway memory usage, without evidence here of an urgent outage or crash loop.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 16, 2026, 9:30 AM ET / 13:30 UTC.

@steipete
steipete merged commit 9b841fd into main Oct 16, 2026
219 of 220 checks passed
@steipete
steipete deleted the steipete/perf-micro-prompt-prefix-signature-retention-20260919 branch October 16, 2026 13:39
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...

# Conflicts:
#	scripts/plugin-sdk-surface-report.mts
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'ad851536ea160d43294fb35e3e3cb9a7011d3873': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'c99bc43bffb351d0e37d72b2f4aa89f7d4fd116b': (157 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit 'ad851536ea160d43294fb35e3e3cb9a7011d3873': (157 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…157148)

* feat: describe decision capabilities in model catalogs

Keep task, protocol, modalities, reasoning, grounding, probability semantics,
abstention and route billing distinct without changing chat Model types.

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

* fix: apply shared plugin model policy to decisions

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

* feat: support plugin-owned model credentials

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

* feat(decisions): preserve richer answers with versioned data codecs

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

* chore(sdk): record approved Decision V2 data allowance

Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception.

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

* fix(models): retain decision facts on their declared routes

Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build.

* feat(decisions): enforce shared plugin model policy

Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch.

Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build.

Original PR: #156621

* fix(models): include inference metadata in extracted tooling

* chore(models): include metadata tooling closure repair

* commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301':
  fix(models): include inference metadata in extracted tooling

* feat(auth): integrate plugin-owned model credentials

Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior.

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

* fix(models): preserve decision policy on current main

* merge: integrate current model policy into plugin auth

Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged.

* feat(decisions): integrate versioned data codecs on shared auth

Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion.

* fix(decisions): preserve explicit owner-agent selection

* merge: preserve decision owner selection in plugin auth

Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains.

* fix(decisions): carry owner-bound policy repair into data stack

Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification.

* merge: reconcile plugin auth with landed model policy

Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy.

* chore(decisions): reconcile data stack with published auth ancestry

Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner.

* fix(auth): retain plugin credential authority through dispatch

* chore(decisions): integrate canonical auth authority fix

* fix(decisions): distinguish plain record validation

* test(auth): preserve health probe exports in lifecycle fixture

* chore(auth): integrate repaired main for credential lifecycle gates

* chore(decisions): integrate repaired auth authority

* chore(auth): integrate current main for landing

* chore(decisions): integrate current auth authority

* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (#174249)
  perf(agents): release completed attempt transcript references (#174236)
  refactor(ui): bind board frames through Solid refs (#174180)
  fix: stop repetitive output from small models (#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (#174241)
  refactor(ui): remove transcript virtualizer controller registry (#174231)
  fix(ai): surface bounded response errors before cancellation settles (#174238)
  refactor(test): reuse descendant-death waits (#174240)
  refactor: consume existing channel and SDK type owners (#174010)
  refactor(ui): bind sidebar session classes directly (#174229)
  fix(logging): omit content from AI transport diagnostics (#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (#174224)
  feat(build): support selected standalone plugins (#173794)
  refactor(ui): bind browser input through viewport refs (#174138)
  refactor(ui): simplify multi-select callback ownership (#174225)
  refactor: simplify settings input ownership (#174222)
  refactor(ui): pair popup and hovercard listener teardown (#174209)
  ...

# Conflicts:
#	scripts/plugin-sdk-surface-report.mts

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…penclaw#157148)

* feat: describe decision capabilities in model catalogs

Keep task, protocol, modalities, reasoning, grounding, probability semantics,
abstention and route billing distinct without changing chat Model types.

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

* fix: apply shared plugin model policy to decisions

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

* feat: support plugin-owned model credentials

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

* feat(decisions): preserve richer answers with versioned data codecs

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

* chore(sdk): record approved Decision V2 data allowance

Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception.

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

* fix(models): retain decision facts on their declared routes

Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build.

* feat(decisions): enforce shared plugin model policy

Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch.

Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build.

Original PR: openclaw#156621

* fix(models): include inference metadata in extracted tooling

* chore(models): include metadata tooling closure repair

* commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301':
  fix(models): include inference metadata in extracted tooling

* feat(auth): integrate plugin-owned model credentials

Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior.

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

* fix(models): preserve decision policy on current main

* merge: integrate current model policy into plugin auth

Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged.

* feat(decisions): integrate versioned data codecs on shared auth

Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion.

* fix(decisions): preserve explicit owner-agent selection

* merge: preserve decision owner selection in plugin auth

Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains.

* fix(decisions): carry owner-bound policy repair into data stack

Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification.

* merge: reconcile plugin auth with landed model policy

Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy.

* chore(decisions): reconcile data stack with published auth ancestry

Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner.

* fix(auth): retain plugin credential authority through dispatch

* chore(decisions): integrate canonical auth authority fix

* fix(decisions): distinguish plain record validation

* test(auth): preserve health probe exports in lifecycle fixture

* chore(auth): integrate repaired main for credential lifecycle gates

* chore(decisions): integrate repaired auth authority

* chore(auth): integrate current main for landing

* chore(decisions): integrate current auth authority

* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits)
  fix(update): compare each recovery manifest once during cleanup confirmation (openclaw#174249)
  perf(agents): release completed attempt transcript references (openclaw#174236)
  refactor(ui): bind board frames through Solid refs (openclaw#174180)
  fix: stop repetitive output from small models (openclaw#173844)
  fix(update): stop listing missing recovery originals as cleanup candidates (openclaw#174241)
  refactor(ui): remove transcript virtualizer controller registry (openclaw#174231)
  fix(ai): surface bounded response errors before cancellation settles (openclaw#174238)
  refactor(test): reuse descendant-death waits (openclaw#174240)
  refactor: consume existing channel and SDK type owners (openclaw#174010)
  refactor(ui): bind sidebar session classes directly (openclaw#174229)
  fix(logging): omit content from AI transport diagnostics (openclaw#174217)
  test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (openclaw#173137)
  fix(ci): drop orphaned exports and copy cli-invocation into the package harness
  refactor(ui): derive login drafts and share native input bindings (openclaw#174223)
  refactor(ui): own chat locale and clock lifetime in Solid (openclaw#174224)
  feat(build): support selected standalone plugins (openclaw#173794)
  refactor(ui): bind browser input through viewport refs (openclaw#174138)
  refactor(ui): simplify multi-select callback ownership (openclaw#174225)
  refactor: simplify settings input ownership (openclaw#174222)
  refactor(ui): pair popup and hovercard listener teardown (openclaw#174209)
  ...

# Conflicts:
#	scripts/plugin-sdk-surface-report.mts

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Vincent Koc <[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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

1 participant