Skip to content

perf(reply): overlap first-message diff capture - #169592

Merged
steipete merged 7 commits into
mainfrom
steipete/perf-micro-reply-init-skill-diff-levers-20260919
Oct 12, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/perf-micro-reply-init-skill-diff-levers-20260919

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

First-message reply initialization waits for a Git diff baseline even though the model request does not need it. In the synthetic Gateway fixture, this added 176 ms to a 304 ms one-way initialization.

User Impact

Start ordinary model preparation and requests while the session-owned baseline capture runs. Preserve attribution ordering before workspace effects: inline commands and skills, host tools, plugin callbacks, custom context-engine startup, sandbox setup, attachment staging, native harness dispatch, and legacy CLI launch all settle capture before acting.

Why This Change Was Made

Carry the existing capture completion through direct and queued turns. The existing reply baseline owner starts and drains the work; background settlement merges only baseline fields into the current session entry. Later runtime callbacks share the harness-selection barrier. Earlier callbacks and plugin workspace provisioning settle at their existing owners, with live authority rechecked after the wait. Native adapter and relay contracts are unchanged. Capture invalidation aborts the owning attempt rather than becoming a recoverable tool-policy error. The lane controller supplies the existing cancellation/lifecycle/source checks, and retained hook assertions use the existing request scope.

Production delta: +245 / -56 lines, net +189. This growth preserves the existing attribution contract across the execution boundaries after removing the unconditional early wait; it is callback propagation and effect gating, not another capture implementation. The existing sessions.diff contract requires that pre-existing dirty files stay excluded while tool, hook, command, and setup writes remain attributable. No new config, schema, dependency, or durable state. Skill-snapshot reuse is omitted because it showed no reliable measured gain.

Evidence

Blacksmith Testbox tbx_01m4pfs9g1feejwthvavh9pe24, profile openclaw-check, 16 vCPU, Node 24.19.0. Canonical pnpm openclaw gateway run, loopback synthetic Responses server, 2,000 project files, 128 workspace skills, 513 model entries, 128 sessions, and Code Mode. Each compared revision completed all 21 chat.send → agent.wait flows with exactly 21 primary model requests; sessions.diff excluded the pre-existing dirty file.

Phase 1-way before / after ms 20-way before avg / p95 ms 20-way after avg / p95 ms
Reply initialization 304 / 128 820.65 / 1195 729.9 / 1135
Workspace preparation 28 / 29 182.4 / 366 185.05 / 367
Session initialization 39 / 40 346.45 / 631 419.1 / 696
Diff capture (overlapping) 176 / 218 166.15 / 260 221.05 / 325
Skill snapshot (unchanged) 141 / 205 440.25 / 547 494.8 / 645
First model request 1778 / 1707 5295.9 / 5901 4992.9 / 5504

One-way initialization improves 2.38×; 20-way first-model p95 improves 6.7%. Parent/child spans overlap and must not be summed. P95 is the maximum of 20 samples. Baseline-to-baseline initialization varied materially (671–821 ms average), so the concurrent result is a bounded sample, not a demonstrated 1.5× gain. The <2 s initialization target was already met on this host. Gateway RSS after the wave was 2,314,320 KiB before / 2,300,508 KiB after; no allocation improvement is claimed. Measurements cover the builtin/no-hook flow and predate the attribution-boundary corrections; native/custom callbacks intentionally wait.

Proof

  • Final focused run: 52 tests passed across constructed tools (including tool-owned parameter preparation), catalog preparation, native/shared sandbox setup, attachment staging, and inline command/skill execution: 249.10 s total. A later signal/context rerun passed 21 cases in 136.11 s (overlapping the earlier tool coverage), including retired tool-generation cancellation. Negative controls reproduced the missing custom-engine/native-setup barriers and ordinary reply-hook dispatch after cancellation.
  • Earlier local focused owner suites: 58 tests passed across harness selection/real transcript hooks, context-engine selection, and before-agent-reply. Wall time 505.57 s on the loaded Mac, including cold compilation; test behavior uses deferred promises rather than sleeps.
  • Focused lint, formatting, diff whitespace, and line-count guards passed. CI caught two redundant default type arguments in the reply-hook regression; both are removed. The corrected file passes lint, all 9 tests (3.38 s wall time), and a clean incremental independent review. The CLI hook suite also passes all 19 tests in 19.21 s after updating its closed-authority expectation to the scoped request owner's error; that test-only correction has a clean independent review. The rebase preserves main's prompt-helper fixture changes and removes superseded lane-only tests.
  • Earlier AWS Crabbox cbx_710eb3813359: 259 focused tests, export-name collision guard, and 20 closure tests passed. Earlier local proof passed 43 inline-command/skill cases, 7 reply-routing cases, and 49 memory-runner cases (overlapping coverage). Earlier AWS cbx_19e6ee422c34: full build passed in 4m54s.
  • Final local gate: node scripts/check-changed.mjs --base 477826faf279b74cb8dbf2b2fb440031d6a4cfb5 passed all structural checks, production types, and 23 core test-type groups before stopping in agents-sessions. The only errors are TS2532 at lines 41 and 56 of unchanged src/config/sessions/session-entry-patch.authority.test.ts. Running node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.agents-sessions.json --incremental --tsBuildInfoFile .local/lane790/baseline-agents-sessions.tsbuildinfo on unchanged base 477826faf279b74cb8dbf2b2fb440031d6a4cfb5 reproduced both exactly. This PR does not change that fixture or its session-entry owner. Main subsequently fixed those expectations in 684874efa1c5; the PR merge CI includes that repair. Broad validation remains with exact-head PR CI.

The branch is rebased onto main including the type-suppression inventory fix 64f11ced. Independent review of the complete rebased candidate is clean through P2 (two completed evidence passes). A conflict refresh onto 9405010d01e3 preserves an identical added/deleted lane patch and main's workspace-readiness owner. The 38 affected reply, tool-preparation, and workspace-readiness tests pass in 96.76 s; focused lint passes. The full clean review and clean incremental test-correction reviews remain applicable. The generated-assets failure is independently reproduced on main run 38232649109, head 7ff232960ab65ed8d9498e42362342dbf245dca9, job 114755915461: the same ClawRouter, Workboard, and X plugin manifests differ from regenerated bytes. Main fixed that inherited drift in a2af18c6c14f; the required conflict rebase includes the fix. This PR changes none of those manifests or their browser build inputs. Final CI 38233281944, head 86e1b14970618fd999450a41bbd2063ad0672bcd: all 88 jobs are terminal. Build artifacts, production types, lint, security, and the affected reply/agent suites passed. The two remaining failing test shards are inherited: run.session-workspace-authority.test.ts fails the operator/managed cases identically on unchanged CI main parent 9c5bc4daaf4e (full file: 2 failures, 5 passes, 39.73 s; the same failures also reproduce on rebase parent 9405010d01e3), and the two wrapper-inventory cases fail identically on CI main parent 9c5bc4daaf4e (10.72 s focused run). The missing wrapper input is src/sessions/user-turn-transcript.message.ts. These failing inputs are byte-identical between that main parent and tested merge e182736d5dc904d31bbc2a2d51542994915f832a; this PR changes no cron or wrapper-inventory implementation. The automatic CI classifier used the older hourly main run 38226928416, so it reports the cron shard as unknown and the newer wrapper failure as new; direct baseline runs on the relevant main revisions establish the inherited classification. No CI was rerun or dispatched to chase green. Landing uses the authorized inherited-failure exception. No new remote leases were created for this continuation. Team was not accessed.

@clawsweeper

clawsweeper Bot commented Oct 12, 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 agents Agent runtime and tooling extensions: codex size: M labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR overlaps first-message workspace baseline capture with model preparation and moves capture waits to execution boundaries.

Example: Start a first built-in reply in the supplied 2,000-file Gateway fixture.

  • Before: Reply initialization takes 304 ms while awaiting baseline capture.
  • After: Measured initialization takes 128 ms with capture running concurrently.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful measured optimization with prior findings resolved, but one attribution defect and incomplete final-effect authority evidence remain.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: First replies wait for workspace scanning before model preparation can proceed.
Reason: The maintainer-authored direction supplies bounded Gateway measurements and reuses the existing capture owner without adding configuration or persisted formats.

Merge readiness

⛔ Blocked before merge - 6 items remain

This PR is a worthwhile maintainer-authored optimization, but async provider preparation still bypasses the attribution barrier; the prior hook and native-transcript findings are resolved.

Priority: P2
Reviewed head: 86e1b14970618fd999450a41bbd2063ad0672bcd

Before merge

  • Add real behavior proof - Authority-chain proof required: ordinary reply hooks now retain lane and scoped request assertions; show an allowed guarded network request and rejection before I/O after cancellation, reassignment, and scope completion. The supplied canonical Gateway runs establish hook-free overlap and dirty-file exclusion, while new authority cases use controlled handlers rather than final network effects; redact credentials and non-public endpoints from logs or terminal captures. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Settle capture before async provider model preparation (P1) - For a new local operator session with slow baseline capture and a dynamic provider model, removing this wait allows resolveEmbeddedRunModelSetup → resolveTieredModel → resolveModelAsync to invoke prepareProviderDynamicModel before capture settles. That supported async callback receives workspaceDir and may refresh persisted workspace metadata. If it writes provider-models.json during the pending scan, the file becomes part of the baseline and disappears from sessions.diff. The new setup.ts barrier covers before_model_resolve hooks, and the harness barrier runs later, so neither covers this callback. Carry the capture dependency to the async provider-preparation owner and recheck current authority after waiting.
  • Resolve security review attention item - The hook authority changes strengthen checks, but retained-capability rejection still needs proof at the guarded network effect.
  • Resolve merge risk - Show that a retained ordinary reply-hook capability cannot issue guarded network I/O after cancellation, session reassignment, or request-scope completion.
  • Complete next step - Inspect the failing cron workspace-authority scenarios in https://github.com/openclaw/openclaw/actions/runs/38233281944/job/114758250636 and classify them against the base before landing; annotations alone do not establish their cause.
  • Improve patch quality - Add final-effect proof that allowed ordinary reply-hook requests succeed and cancelled, reassigned, or completed-scope retained requests are rejected before network I/O.

Findings

  • [P1] Settle capture before async provider model preparation — src/auto-reply/reply/get-reply.ts:533-535

Tests

  • Missing end-to-end proof: Supplied Gateway measurements cover hook-free inference; final-effect authority evidence and a provider-preparation write during held capture remain absent.
Agent review details

How this fits together

Reply initialization starts the existing session baseline owner, then carries its completion through queued turns, tools, hooks, sandbox preparation, and native or CLI dispatch so session diffs exclude pre-existing changes.

flowchart TD
  A[First session message] --> B[Reply initialization]
  B --> C[Session baseline capture]
  B --> D[Model preparation]
  D --> E[Tools hooks and runtime dispatch]
  C --> E
  C --> F[Session diff filtering]
  E --> G[Reply settlement]
Loading

Technical review

Best possible solution:

Keep one capture owner and permit overlap only after every workspace-capable callback, including async provider preparation, joins its completion.

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

Source establishes the provider-callback bypass: a first local operator turn with pending capture and dynamic model preparation reaches the async provider callback before any capture wait; no reproduction was executed.

Is this the best way to solve the issue?

Moving waits to effect owners is reasonable, but the implementation must also cover async provider preparation to preserve the existing session-diff contract.

Full review comments:

  • [P1] Settle capture before async provider model preparation — src/auto-reply/reply/get-reply.ts:533-535
    For a new local operator session with slow baseline capture and a dynamic provider model, removing this wait allows resolveEmbeddedRunModelSetup → resolveTieredModel → resolveModelAsync to invoke prepareProviderDynamicModel before capture settles. That supported async callback receives workspaceDir and may refresh persisted workspace metadata. If it writes provider-models.json during the pending scan, the file becomes part of the baseline and disappears from sessions.diff. The new setup.ts barrier covers before_model_resolve hooks, and the harness barrier runs later, so neither covers this callback. Carry the capture dependency to the async provider-preparation owner and recheck current authority after waiting.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 84482abc0448.

Merge-risk options

Maintainer options:

  1. Prove retained hook authority at guarded I/O (recommended)
    Record an allowed ordinary reply-hook request and demonstrate that cancellation, reassignment, and completed request scope reject retained requests before network I/O.
  2. Separate the authority changes
    Keep existing hook authority behavior in this optimization and review the ordinary-run authority expansion separately with its own final-effect evidence.

Provenance checked

Testing

Proof path: shipped entry point.

Security

Needs attention: The hook authority changes strengthen checks, but retained-capability rejection still needs proof at the guarded network effect.

Evidence

What I checked:

  • Reviewed introduction and current main: The introduced merge-base-to-head diff removes the early capture wait; fetched main still awaits prepareReplySessionDiffBaseline before subsequent reply preparation. The verified test merge preserves the base-only files. (src/auto-reply/reply/get-reply.ts:533, 86e1b1497061)
  • Provider preparation bypass: resolveEmbeddedRunModelSetup calls resolveTieredModel before harness dispatch. Its async model resolver invokes prepareProviderDynamicModel with workspaceDir without consuming the new baseline callback; this callback expressly supports refreshing reusable metadata. (src/agents/embedded-agent-runner/model.ts:251, 86e1b1497061)
  • Prior findings addressed: Harness selection now includes before_agent_run and internal bootstrap listeners and settles capture before native transcript promotion. The commands mock has an explicit isolation annotation. Inspection of these corrections resolves the three projected prior findings. (src/agents/harness/selection.ts:313, 86e1b1497061)
  • Earlier maintainer decision: The maintainer closed fix(sessions): overlap diff baseline capture with inference #166797 after callback-safe overlap showed no measurable common-configuration gain. This PR supplies new, explicitly bounded Gateway measurements, but that discussion also identifies provider callbacks as part of the required attribution boundary.
  • Supplied behavior evidence: The complete PR body reports canonical Gateway chat.send-to-agent.wait runs, exactly 21 primary model requests per compared revision, and exclusion of a pre-existing dirty file. It explicitly limits the measurements to built-in, hook-free behavior before later boundary corrections. (86e1b1497061)
  • Scoped hook authority: Reply hooks now retain the request owner's scoped assertion, and ordinary embedded replies gain lane authority checks. Added tests exercise cancellation and retained assertions, but supplied evidence does not show allowed and revoked requests reaching the real guarded I/O boundary. (src/plugins/before-agent-reply.ts:104, 86e1b1497061)

PR surface

Source +189, Tests +988. Total +1177 across 47 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 33 245 56 +189
Tests 14 1014 26 +988
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 47 1259 82 +1177

Review metrics

Metric Value Why it matters
Production versus test growth Production +245/-56; tests +1014/-26 Most growth propagates one existing capture barrier and tests distinct effect boundaries; the provider-preparation boundary remains uncovered.

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: The changed retained reply-hook authority needs allowed and revoked final-effect evidence.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove merge-risk: 🚨 compatibility: Current PR review merge-risk labels are merge-risk: 🚨 session-state, merge-risk: 🚨 security-boundary.
  • remove status: ⏳ waiting on author: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P2: This improves first-turn latency in Git workspaces with a bounded affected workflow.
  • merge-risk: 🚨 session-state: An async provider callback can write during capture, hiding first-turn files from sessions.diff.
  • merge-risk: 🚨 security-boundary: The changed retained reply-hook authority needs allowed and revoked final-effect evidence.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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 (4 earlier review cycles)
  • reviewed 2026-10-12T04:07:16.271Z sha d1596d4 :: needs changes before merge. :: [P1] Gate built-in and ACP execution before removing the shared wait | [P2] Settle capture before invoking workspace-capable preparation callbacks | [P1] Preserve managed-only Codex execution during first-session capture | [P2] Keep baseline capture outside the native hook deadline
  • reviewed 2026-10-12T04:39:50.758Z sha ee48e6d :: needs changes before merge. :: [P1] Gate built-in and ACP execution before removing the shared wait | [P2] Settle capture before workspace-capable preparation callbacks | [P1] Preserve managed-only Codex execution during first-session capture | [P2] Keep baseline capture outside the native hook deadline
  • reviewed 2026-10-12T04:47:57.070Z sha ee48e6d :: needs changes before merge. :: [P1] Gate built-in and ACP execution before removing the shared wait | [P2] Settle capture before workspace-capable preparation callbacks | [P1] Preserve managed-only Codex execution during initial capture | [P2] Keep baseline capture outside the native hook deadline
  • reviewed 2026-10-12T06:37:47.753Z sha 59a2d6e :: needs changes before merge. :: [P1] Settle capture before the before_agent_run callback | [P1] Move native settlement ahead of transcript callbacks | [P2] Make the new commands mock satisfy the export ratchet

Reviewed October 12, 2026, 6:07 AM ET / 10:07 UTC (Revision 5).

@steipete
steipete marked this pull request as ready for review October 12, 2026 04:40
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: L and removed docs Improvements or additions to documentation extensions: codex size: M labels Oct 12, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Oct 12, 2026
@steipete
steipete force-pushed the steipete/perf-micro-reply-init-skill-diff-levers-20260919 branch from 59a2d6e to fc0b399 Compare October 12, 2026 09:34
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 86e1b14970618fd999450a41bbd2063ad0672bcd
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/workspace-sandbox.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

Start the existing capture alongside reply initialization and model preparation, and keep attribution ahead of native, bound, inline, queued, and CLI effects. Preserve current session metadata when the capture settles.

Synthetic Gateway proof: one-way initialization 304 ms to 128 ms; 20-way first-model p95 5901 ms to 5504 ms. Full current-base validation follows rebase over the inherited reactive UI type failure.
Move capture startup, pending selection, error handling, and final settlement into the existing reply diff-baseline module. Preserve behavior while keeping get-reply within its existing line allowance.
@steipete
steipete force-pushed the steipete/perf-micro-reply-init-skill-diff-levers-20260919 branch from 21c795e to 86e1b14 Compare October 12, 2026 09:57
@clawsweeper clawsweeper Bot added 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. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@steipete
steipete merged commit b247685 into main Oct 12, 2026
158 of 164 checks passed
@steipete
steipete deleted the steipete/perf-micro-reply-init-skill-diff-levers-20260919 branch October 12, 2026 10:20
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

@steipete

Copy link
Copy Markdown
Contributor Author

The remaining CI failures were reproduced without this PR on unchanged main 9c5bc4daaf4ec112b8de9d6623202d0ede220a9c:

  • src/cron/isolated-agent/run.session-workspace-authority.test.ts: the full file reproduces the operator and managed workspace failures (error instead of ok), with 2 failed and 5 passed in 39.73 s.
  • test/scripts/eager-import-closure.test.ts: both the PR-wrapper inventory and extracted-dependency cases fail because src/sessions/user-turn-transcript.message.ts is missing from the wrapper inventory. The focused baseline run has 2 failed and 15 skipped in 10.72 s.

Those inputs are byte-identical between that main parent and CI's tested merge e182736d5dc904d31bbc2a2d51542994915f832a. In run 38233281944, build artifacts, production types, lint, security and the affected reply/agent suites passed. The PR landed as b24768530f8efa3fa700d8ee731cbead1f301c32 through the authorized native inherited-failure exception; no full-CI success is claimed.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
* perf(reply): overlap first-message diff baseline capture

Start the existing capture alongside reply initialization and model preparation, and keep attribution ahead of native, bound, inline, queued, and CLI effects. Preserve current session metadata when the capture settles.

Synthetic Gateway proof: one-way initialization 304 ms to 128 ms; 20-way first-model p95 5901 ms to 5504 ms. Full current-base validation follows rebase over the inherited reactive UI type failure.

* refactor(reply): keep diff capture lifecycle in its owner

Move capture startup, pending selection, error handling, and final settlement into the existing reply diff-baseline module. Preserve behavior while keeping get-reply within its existing line allowance.

* test(reply): omit default deferred type arguments

* fix(reply): preserve attribution across execution boundaries

* fix(reply): fence attribution-dependent preparation

* test(reply): omit redundant deferred type arguments

* test(reply): expect closed hook request authority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant