Skip to content

fix(test): module identity graph follows logger worker - #197724

Closed
roboclaw-bot wants to merge 2 commits into
mainfrom
openclaw/plaid-lobster
Closed

roboclaw-bot wants to merge 2 commits into
mainfrom
openclaw/plaid-lobster

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the admission module-identity fixture rejecting the real logger worker as an unexpected source import after asynchronous logging was introduced.

Related: https://github.com/openclaw/openclaw/actions/runs/43209070232/job/131152198779

User Impact

No user-visible or production behavior changes. This test-only repair keeps the existing session-ownership regression coverage; it remains a draft pending runtime and type-aware verification.

Why This Change Was Made

#197586 intentionally moved logging I/O to a lazy worker. The existing bundled host/SDK fixture must include that exercised worker rather than externalize it as source. Cleanup now flushes logging and drains the existing singleton lifecycle owner before deregistering the child import hook.

Every original native wait identity, admitted parent ownership, queued successor ownership/session ID, child exit-status-zero, and no-unexpected-source-import assertion is preserved. One fixture changes: eight additions and three deletions, net five test lines; production source is unchanged. No timeout, retry, skip, baseline, or allocation change.

Evidence

  • Saved baseline full run 43209070232, job 131152198779, head 0518869e94ee4ffe1b668e65b3aaeb7d9af90f35: the child import hook rejects nine imports of src/logging/logger-file-worker.ts.
  • Named-file formatting, TypeScript/embedded-child syntax parsing, and diff whitespace checks passed on the implementation candidate db64f92b49db1df1d12f439192d33d7857028cfe.
  • Fresh canonical independent P0–P2 review of the complete delta against b48d16bf6e98f0b9c1e110548fc46b3b35f2becd: scoped-clean, exit 0, no actionable findings. The reviewer inspected the fixture and logger/lifecycle/worker context; no substantive edit followed review.
  • Not run: runtime red/green, build, typecheck, and type-aware lint. No passing runtime result or completed worker-cleanup proof is claimed. These remain required before readiness/landing, using isolated remote proof or PR CI; production Team host restrictions were preserved.

Contributor credit: @obviyus and @steipete.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 12, 2026 12:23
Bundle the exercised async logger worker alongside the host and SDK fixture.
Flush queued logs before draining the existing singleton lifecycle owner so
its worker pool closes before the child releases its import hook.
Keep the admission, successor, child-status and unexpected-import assertions.

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

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: fdfd4955-792c-8414-aa0e-614d56b1d988
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Superseded by #197728, which retains the same reviewed fixture repair plus the cleanup-graph correction demonstrated by the real runtime test. The managed workspace refresh created a new draft instead of updating this one; only the corrected PR will proceed. Original source, review, and failure evidence are retained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant