Skip to content

refactor(agents): consolidate reads and remove payload logging - #172992

Merged
steipete merged 2 commits into
mainfrom
deslop/y09-agents-rest-20261015
Oct 15, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/y09-agents-rest-20261015

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #85049

What Problem This Solves

Agent runtime paths repeat already-owned work, maintain speculative cache-freshness machinery, and still write tool argument previews to logs despite the credential-exposure report in #85049.

User Impact

The affected tool-failure, malformed-read and elevated-exec log messages no longer include supplied payload previews or command text. Errors, operator hints, execution results, authorization, approvals and settlement remain intact. Display-only Git suggestions may lag external changes by up to their existing 30-second refresh window; actual worktree creation still validates the selected ref.

Why This Change Was Made

Keep one owner for auth-reader cleanup, synchronous/asynchronous local-update policy, and native read-result details. Carry the reader's existing discriminated result through wrappers instead of erasing and reconstructing it. Retain image resizing/omission diagnostics, line/cursor continuation, optional misses, input validation and model budgets.

Keep bounded performance caches but remove repeated model projection, recursive Git metadata fingerprints and display watchers. The standalone session-memory backend is untouched. No config, protocol, dependency, SQLite schema, durability, retention or permission change.

Net production delta: 383 added / 929 removed = 546 lines removed, including the new cleanup helper; tests, fixtures, test support, generated files and declarations excluded.

Best-effort tradeoffs accepted

Structural-only cuts retain the canonical public-boundary credential clones, cleanup/error classification and native read schemas; they accept no additional edge case. The read adapter predates the canonical producer (#110395 versus #126262/#140689), and only obsolete legacy-result fixtures are removed.

Evidence

Confirmed-conflict rebase

GitHub reported the original published head as conflicting. The branch was rebased only for that conflict, onto main 72422c4007bff81a5d0b55b56e8439d7f83892e3; current signed head is 975d3dc40e113fb0201cc4b24d57fcb6773eac6c. The sole textual conflict was in the impossible-clock tests: main had already deleted one. Main's web-response consolidation, new same-source auth catalog path and Code Mode regressions were retained. Range-diff confirms every production hunk is unchanged, so the existing clean independent review is reused.

Rebased-head proof passed: core production types, agents-tools test types, the SDK consumer type graph, runtime cycles 0, madge cycles 0, all 15 web-shared tests, formatting, and the canonical SDK export inventory check (no files changed). The rebased lint-suppression test failed only on untouched UI rows: the panel-hosted-tabs entry is stale and two cold-load helper files contribute three unlisted rule entries. Those UI files and the test are byte-identical to the pinned main base; this diff adds no suppression directives. A separate isolated replay of node scripts/run-vitest.mjs test/scripts/lint-suppressions.test.ts on main ea7a17310184df1c3d9de9534240375d280a2d53 reproduced all four UI row differences (and an additional unrelated extensions/oc-path/src/oc-path/emit.ts suppression mismatch): 1 failed, 2 passed. Two initial replay setup failures (missing UI dependency link and omitted sparse config directory) were corrected before this actual assertion reproduction. No allowlist growth or suppression was added to hide the failure.

CI repair and baseline attribution

CI run 38715767016 completed the planned jobs on head 975d3dc40e113fb0201cc4b24d57fcb6773eac6c. Two non-aggregate jobs failed: checks-fast-baseline-ratchets (job 116358804666) caught two modified closed-mock fingerprints, and checks-node-changed-compact-small-19-1 (job 116358806391) failed the untouched auth reader assertion at src/agents/auth-profiles.sqlite-read-pool.test.ts:91. The aggregate gate failed downstream. All other planned jobs passed; intentionally unplanned jobs were skipped.

Signed repair head 3828e1b58f69614297a1c4c318466d4b4772d20a deletes the two obsolete lifecycle-log mocks entirely and shrinks their exact inventory entries. Tests now use the real pure error-metadata helper; no assertion, timeout, skip, suppression, or production code changed. The mock ratchet passes (9,581 factories), formatting/diff checks pass, and independent P0-P2 review is scoped-clean. The two focused subagent files passed all 5 tests, including final settlement and worker cleanup. Production proof above is reused because this repair changes tests/inventory only. Required lint-suppression replay again reproduced the same UI-only mismatch (1 failed, 2 passed).

The auth assertion passed in the local head replay (1 selected test). A direct probe reproducing the exact writer/schema registration, write, close, and capture sequence under CI's Node 24.19.0 passes on the PR head but fails on pinned main ea7a17310184df1c3d9de9534240375d280a2d53, returning the same { userVersion: 0, store: "table", state: "missing" } rather than undefined. This establishes the main-only schema-close regression; the PR does not modify the admission/schema owners. The full main test replay did not reach assertions: missing workspace dependency views, then an omitted sparse workflow input stopped its worker build. Those setup failures are not counted as main reproduction or passing tests. Exact repair-head hosted CI remains the broad gate.

Repair-head CI run 38719147562 is complete. Its only non-aggregate failure is the same schema-close assertion in job 116369913087; gate 116375168829 fails downstream. All other planned jobs, including baseline ratchets and independent security-fast, passed. Landing uses the authorized inherited-only CI exception, not a claim of green CI. Actual checkout d85d0161ca13ce462765206c08334c6bfec8673e has ordered parents main ef3de8bcd99f59dde41eb143cee7a1bc5a132b56 and this PR head; its tree matches their derived merge. All ten recorded failure-input files match both the reproduced-main revision and the CI baseline, and are unchanged by the PR merge. Cancelled advisory jobs have successful replacement runs on the same head. No CI rerun or green-seeking push was made.

Coverage log

Discovery started with the last three days of additions, then fourteen-day history, then largest owners, with independent second passes. Kept mechanisms were evaluated alongside removal candidates:

Area Retained boundary / decision
Auth profiles OAuth single-use refresh ownership (#26322), credential/source authority, explicit-root isolation, public-boundary clones, FIFO writes and shutdown settlement stay. Consolidate reader cleanup and sync/async policy only.
Models/context Keep measured catalog/runtime caches (#167454), native credential readiness, request-config precedence and cooperative warmup. Remove passive re-projection/reentrancy/supersession machinery only.
Worktrees/sandbox Keep shared fetch borrowers (#170626), in-flight registry publication (#168025), destructive cleanup authority, mount/path validation and Stop/checkpoint settlement (#172723/#172800).
Subagents Keep persisted-row parsing, incarnation/receipt authority, ordinary concurrent completion delivery, terminal cleanup and FIFO. Registration metadata whitelist was examined and retained.
Read tools Complete native-producer cutover; preserve original schemas, exact content, model budgets, cursor/line paging, optional misses and sanitized image diagnostics.
Other tools Keep external-input validation, remote-host/frame authority, media completion settlement and bounded caches. Remove only impossible-clock cache guards and no-longer-used log preview machinery.
MCP Keep request cancellation bridges: dependency abort-listener retention makes their cleanup necessary during normal use. No changes.
Sessions Keep write verification backed by the human Ubuntu report #67136; keep public extension overloads and every Phase E component. No session-memory backend changes.
Loop/hook recovery Keep distinct detector semantics and whole-batch/FIFO settlement; human #141743 and #166770 demonstrate real unknown-tool loops and false watchdog aborts. No detector removal.
Workspace/prompts Keep generated-template retirement, onboarding/durable-state recovery, prompt-byte stability, real skill-delivery coalescing and permission/containment checks.

Prior-head local proof: core production types; agents-root, agents-other, agents-tools and agents-sessions test type graphs; scoped typed lint of all 52 candidate TypeScript files; formatting and diff-check; runtime value cycles 0 and madge cycles 0. The four initial root-graph errors were the same test helper annotated as read-only while wrapping write/edit tools; making that helper generic resolved them without changing fixtures, assertions or runtime code. Final combined independent P0-P2 review completed scoped-clean with no actionable findings. The focused runner passed unit-fast (2 files / 20 tests), lint-suppressions (1 file / 3 tests), and managed-worktree Gateway coverage (1 file / 7 tests). The later selected invocation recorded passing assembled-read, authority and worktree-settlement cases, then was interrupted (143) for the confirmed-conflict rebase before a final config verdict. These are partial results, not a full selected-suite pass; hosted CI remains the broad proof.

The actual tool-definition adapter negative control logs the synthetic payload on the unmodified base and fails the no-payload assertion; the candidate omits that payload and passes while preserving the same tool failure result. Elevated-command and malformed-read payload-omission regressions remain in the focused suite. No claim is made that arbitrary exception messages cannot contain third-party content.

The full frozen-revision Plugin SDK API comparison was interrupted (143) for the confirmed-conflict rebase and produced no verdict. Current-head SDK proof uses the canonical export inventory check plus the SDK consumer type graph; no full-surface comparison pass is claimed. createReadTool retains its existing structured result type, and AnyAgentTool adds a defaulted details parameter; runtime result shapes, input schemas and exported names are unchanged.

The staged changed-check ran for 31 minutes, then its owned process tree was stopped (143) after the whole-core SQLite analysis alone consumed 1,128.85 seconds without a verdict. Conflict markers and line-cap passed; its coupled environment count failed inherited as detailed below, and assertion safety correctly requested the shrink from 8 to 4. That exact inventory shrink is included and its canonical replay passed (2,695 files / 6,295 grandfathered assertions). Later checker stages are unrun, not passing; focused proof and exact-head PR CI remain the gates. No timeout, retry, skip, suppression or budget was relaxed.

All local runtime checks use task-owned HOME/OpenClaw/XDG paths. No remote lease or live Gateway/state access. Final test/type/inventory results and hosted head proof will replace these pending notes before landing.

The staged changed-check invocation found an inherited environment-name budget mismatch: clean base 9e3e16c224697b9a5cb24e7ede12ac4992a97a87 has 455 names against 454. This diff adds no environment names. Upstream #172887 (9d5724ca724) already fixes it; fresh main a8a67b01e4ff9e03935baac8f029256c6dc7ad01 counts 454/454 with the same canonical source-path filter. No budget was raised and no main update/rebase was requested merely to obtain local green.

Component benchmarks on the saturated host (not production/Gateway latency or memory claims):

  • Context owner, 500 configured models and 1,000 passive lookups per sample: before 1.519/1.075/0.357/0.594/1.330 seconds; after 0.047/0.028/0.085/0.199/0.002 seconds. Process RSS was 347,848,704 versus 517,324,800 bytes; there is no memory-improvement claim. The deterministic change is eliminating full-row projection on warm reads.
  • Branch owner, synthetic Git repository with 1,001 refs, admitted worker environment and 20 warm reads per sample: before 1.711/2.050/2.085 seconds and 20,340 lstat calls each; after 0.036/0.300/0.286 seconds and zero lstat calls. RSS was 229,539,840 versus 229,818,368 bytes. Real native Git commands were used, but this does not measure Gateway/worker transport. An earlier unadmitted direct-reader run did not enable caching and is not used as comparison evidence.

The existing managed-worktree documentation at docs/concepts/managed-worktrees.md:361,741 describes the former immediate-fingerprint behavior. Documentation is outside this lane's write scope; the coordinator follow-up is to describe bounded suggestion refresh without changing creation authority.

@clawsweeper

clawsweeper Bot commented Oct 15, 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 agents Agent runtime and tooling size: XL labels Oct 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates agent read handling, simplifies passive caches and bookkeeping, and removes tool payload previews from logs.

Example: An edit call supplies path="private-notes.txt" but omits required edits.

  • Before: The failure log includes the supplied path in raw_params.
  • After: The log retains the parameter error and recovery hint without the supplied path.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful simplification with coherent owner consolidation and focused reported validation; the strongest supplied behavioral evidence is in-process, and one low-priority documentation defect remains.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body reports adapter negative controls, focused runtime tests, and real-Git component benchmarks without claiming full CLI or Gateway coverage.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Agent runtime preparation repeats work, and some operational logs still include supplied tool payloads.
Reason: The maintainer author records the direction and accepted recoverable freshness tradeoffs, while the diff preserves execution authority and removes unnecessary work.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-authored PR provides useful runtime simplification and removes remaining tool-payload logging; one documentation correction remains.

Priority: P2
Reviewed head: 242eed9f2d2d99d3537912355cab6352be64f347

Before merge

  • Update the documented branch refresh behavior (P3) - After a branch list is cached, an external branch creation or HEAD change now remains invisible until the 30-second expiry. The public managed-worktree guide still says ref and HEAD metadata are checked on every request and changed refs force fresh validation. Update https://docs.openclaw.ai/concepts/managed-worktrees to describe bounded suggestion refresh while preserving its explanation of selected-ref validation; the PR body already acknowledges this mismatch.
  • Complete next step - Resolve the merge conflict GitHub reports for the reviewed head while preserving the accepted runtime simplifications.

Findings

  • [P3] Update the documented branch refresh behavior — src/agents/worktrees/branches.runtime.ts:105-107

Tests

  • Missing end-to-end proof: The supplied evidence reports focused production-owner checks and component benchmarks, but does not show the changed behavior through a shipped CLI or Gateway entry point.
Agent review details

How this fits together

The agent runtime prepares credentials, model metadata, filesystem tools, worktree suggestions, and subagent lifecycle operations, producing tool results and operational logs.

flowchart TD
  A[Agent request] --> B[Runtime preparation]
  B --> C[Credential and model owners]
  B --> D[Filesystem and worktree tools]
  D --> E[Native structured results]
  E --> F[Tool adapter]
  F --> G[Model result]
  F --> H[Operational logs]
Loading

Technical review

Best possible solution:

Retain the consolidated owners and payload omission, with the managed-worktree documentation updated to describe bounded suggestion freshness.

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

Current-main source directly shows supplied tool parameters reaching failure logs; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Removing payload logging at its sink and carrying native read details through existing wrappers is simpler and more reliable than maintaining serializers and reconstructing already-owned results.

Full review comments:

  • [P3] Update the documented branch refresh behavior — src/agents/worktrees/branches.runtime.ts:105-107
    After a branch list is cached, an external branch creation or HEAD change now remains invisible until the 30-second expiry. The public managed-worktree guide still says ref and HEAD metadata are checked on every request and changed refs force fresh validation. Update https://docs.openclaw.ai/concepts/managed-worktrees to describe bounded suggestion refresh while preserving its explanation of selected-ref validation; the PR body already acknowledges this mismatch.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.84

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Tool failure payload logging changes intended behavior with a stated reason (192484e: Log malformed tool parameters to diagnose failures; the later exec-specific repair retained safe correlation metadata.)
  • Native read-result adaptation keeps the original intent (b9c5c7c: Expose filesystem results through Code Mode; the current native producer now supplies the discriminated details that the old adapter reconstructed.)
  • Auth local-update read policy keeps the original intent (00be453: Await stored credential preparation; the candidate preserves synchronous compatibility and asynchronous captured reads while sharing their policy.)
  • Auth reader cleanup keeps the original intent (418f32e: Prepare synchronous SQLite SDK retirement; the shared helper retains reader disposal, original failures, and cleanup failure classification.)
  • Branch metadata fingerprints changes intended behavior with a stated reason (5c78dc3: Reuse branch inventories while detecting ref changes; the maintainer explicitly accepts bounded suggestion staleness and preserves selected-ref validation.)
  • Workspace Git display observation changes intended behavior with a stated reason (3ac0c05: Retain boot filesystem facts with external invalidation; the candidate replaces display watchers with bounded lazy refresh and explicit owned initialization invalidation.)
  • Optional context warmup supersession changes intended behavior with a stated reason (a6b34a1: Keep optional context publication coordinated with refresh; the PR explicitly accepts overlapping warmups publishing older passive metadata.)
  • Model view registry checks changes intended behavior with a stated reason (cd3835f: Share prepared catalog views across model pickers; the candidate deliberately uses one captured identity policy for each view.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the introduced parent-to-head diff; the checkout matches the original PR head and remained clean. (242eed9f2d2d)
  • Current main still logs supplied payload previews: Fetched main retains describeToolFailureInputs and appends raw_params to tool-failure logs; elevated execution also still logs command text. (src/agents/agent-tool-definition-adapter.ts:262, bf90074c33e2)
  • Payload sink removed: The candidate removes input serialization from failure logging while preserving operator hints, error results, and private result provenance. (src/agents/agent-tool-definition-adapter.ts:120, 242eed9f2d2d)
  • Prior security repair credited: SpaceWorkspace reported credential exposure; Josh Avant's merged exec-specific repair deliberately preserved non-exec parameter logging, which this PR now removes more broadly. (src/agents/agent-tool-definition-adapter.ts:184, 221f5349b512)
  • Accepted direction and complete discussion: Read the complete live PR body and comments, including the previously omitted tail. The maintainer author explicitly accepts bounded display freshness and other listed simplification tradeoffs; SDK declaration comparison and some validation remain described as pending. (242eed9f2d2d)
  • Documentation contradicts the new cache behavior: The managed-worktree guide promises ref and HEAD metadata checks on every request and immediate refresh for changed refs; the candidate reuses suggestions until the existing 30-second expiry. Public docs: docs/concepts/managed-worktrees.md. (docs/concepts/managed-worktrees.md:361, 242eed9f2d2d)

PR surface

Source -546, Tests -76, Other 0. Total -622 across 53 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 33 383 929 -546
Tests 19 176 252 -76
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 53 560 1182 -622

Labels

Label changes:

  • add P2: Useful runtime simplification and logging hardening with limited immediate user disruption.
  • add merge-risk: 🚨 compatibility: The patch changes exported tool type declarations and intentionally relaxes passive cache freshness; the maintainer records these choices, and existing runtime result schemas and exported names remain intact.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Useful runtime simplification and logging hardening with limited immediate user disruption.
  • merge-risk: 🚨 compatibility: The patch changes exported tool type declarations and intentionally relaxes passive cache freshness; the maintainer records these choices, and existing runtime result schemas and exported names remain intact.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 15, 2026, 5:44 AM ET / 09:44 UTC.

@steipete
steipete force-pushed the deslop/y09-agents-rest-20261015 branch from 242eed9 to 975d3dc Compare October 15, 2026 09:48
@steipete
steipete marked this pull request as ready for review October 15, 2026 09:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T10:20:49.740201Z 3828e1b New commits
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 15, 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: 3828e1b58f69614297a1c4c318466d4b4772d20a
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/auth-profiles/paths.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/reader-cleanup.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/runtime-read.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/runtime-snapshots.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/source-check.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/store-read.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/store.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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3828e1b58f

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +22 to 23
// Suggestions may lag repository changes until the next bounded refresh.
// Creation still validates the selected ref through Git before changing any checkout.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update docs for bounded branch refresh

When a ref, HEAD, Git configuration, or object changes during the cache window, this code can now return the previous inventory for up to 30 seconds, but docs/concepts/managed-worktrees.md:361 and :741 still say metadata is checked on every request and changed metadata refreshes the inventory. Update those paragraphs in the same cutover so operators and UI consumers are not promised freshness the implementation no longer provides.

AGENTS.md reference: AGENTS.md:L50-L53

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

Inherited-only CI exception evidence for exact head 3828e1b58f69614297a1c4c318466d4b4772d20a, CI run 38719147562, attempt 1.

All exact-head check runs were enumerated. The current CI attempt has one failed test job and its downstream aggregate:

Job Attribution and proof
checks-node-changed-compact-large-19 / 116369913087 Inherited schema-close assertion at src/agents/auth-profiles.sqlite-read-pool.test.ts:91: expected undefined, received { userVersion: 0, store: "table", state: "missing" }. An isolated Node 24.19.0 probe using the actual registration/write/close/capture owners reproduces the identical failure on main ea7a17310184df1c3d9de9534240375d280a2d53; the head control passes. All ten recorded test/schema/admission input files are identical through CI base ef3de8bcd99f59dde41eb143cee7a1bc5a132b56 and unchanged by the PR merge. The failure table says unknown solely because no matching scheduled-main shard exists; this independent reproduction supplies the missing attribution.
openclaw/ci-gate / 116375168829 Downstream of that single failed job. All other planned CI jobs passed, including baseline ratchets and independent security-fast.

Actual CI checkout d85d0161ca13ce462765206c08334c6bfec8673e was fetched and inspected. Its ordered parents are the recorded main base and exact PR head; tree 315b09e2fe3ac52c3db41c1f27df7a062e57ea9d matches a fresh merge of those parents, preserving unrelated main work.

Two cancelled advisory jobs are superseded, not called main-red: PR context job 116369098438 has successful exact-head replacements 116369157362 and 116370817331; dispatch job 116369098131 has successful exact-head replacements including 116369157663 and 116370817911. No planned CI test job was cancelled or left without proof. ClawSweeper dispatch is advisory.

The earlier PR-caused closed-mock ratchet miss was repaired in the current signed head: two obsolete mocks and their exact inventory entries were deleted. The ratchet now passes, both focused files pass all 5 tests with cleanup joined, and incremental P0-P2 review is clean. Production remains the reviewed 546-line net reduction. Local lint-suppression inventory failure independently reproduces on pinned main; no allowlist was grown. Full main-test attempts stopped in sparse worker-build setup and are not represented as a completed main test replay.

Proceeding under the standing inherited-only landing exception, subject to native live authority, review, security and policy verification. CI remains red; no CI rerun or green-seeking repush was used.

@steipete
steipete merged commit 6814b9e into main Oct 15, 2026
168 of 173 checks passed
@steipete
steipete deleted the deslop/y09-agents-rest-20261015 branch October 15, 2026 11:07
@steipete

Copy link
Copy Markdown
Contributor Author

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

steipete added a commit that referenced this pull request Oct 15, 2026
Complete the consumer migrations from #172887, #172992, #172771 and #172989. Keep local schemas and callback types private and remove redundant barrel exports. Session sharing authority remains in its policy owner and is still enforced by production callers.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…law#172992)

* refactor(agents): consolidate reads and remove payload logging

* test(agents): remove obsolete lifecycle log mocks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
Complete the consumer migrations from openclaw#172887, openclaw#172992, openclaw#172771 and openclaw#172989. Keep local schemas and callback types private and remove redundant barrel exports. Session sharing authority remains in its policy owner and is still enforced by production callers.
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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant