Skip to content

fix(ci): restore runtime module line limits - #190630

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-runtime-module-line-limits-20261102
Nov 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-runtime-module-line-limits-20261102

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The runtime lint gate rejects three current modules for exceeding its 700-line limit. Failing check.

User Impact

Restores the CI lint gate without changing runtime behavior or the existing read-only session API. No migration or operator action is required.

Why This Change Was Made

Move the read-only session view type, pure tree projection, and database-path lookup into their existing owning modules. Session navigation, startup admission, and the facade type export retain their existing contracts.

Evidence

  • Reproduced all three lint errors on the baseline (705, 701, and 708 lines); the same targeted check passes after the change.
  • All 37 existing tests pass on Node 24.22.1: session transaction rollback, database paths, and Gateway startup preparation.
  • Focused type checking of the changed modules and existing read-only API consumer passes, along with formatting and git diff --check.
  • The configured import-graph guard reproduced the initial type-cycle regression and now passes with zero cycles; the final change adds no module dependency edges.
  • Fresh local ClawSweeper review of the exact committed range found no actionable defects and cleared security review.

@vincentkoc vincentkoc self-assigned this Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 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: S labels Nov 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 1, 2026 19:46
@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. labels Nov 1, 2026
@vincentkoc
vincentkoc force-pushed the fix-ci-runtime-module-line-limits-20261102 branch from 8e4ebf7 to e820fdf Compare November 1, 2026 20:00
@vincentkoc
vincentkoc enabled auto-merge (squash) November 1, 2026 20:06
@clawsweeper clawsweeper Bot added 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 Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Moves session tree projection, the read-only session type, and database-path membership lookup into existing modules to satisfy runtime line limits.

Example: CI lints src/agents/sessions/session-manager.ts.

  • Before: The lint gate rejects 705 counted lines against its 700-line limit.
  • After: The unchanged read-only API is re-exported from the core module, and exact-head lint checks pass.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, contract-preserving repair with verified lint results and supporting test evidence, but no demonstrated shipped-runtime exercise.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored maintenance PR is outside the ordinary contributor proof gate; exact-head lint checks validate the stated CI repair, while reported existing tests support runtime equivalence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository changes cannot clear the runtime lint gate because three modules exceed its configured line limit.
Reason: The maintainer-authored direction restores an existing gate through narrow responsibility moves while preserving runtime behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a verified lint failure with focused extractions that preserve existing contracts; no actionable defects were found.

Priority: P2
Reviewed head: e820fdf88978b117388194be30c97e784ce0de19

Before merge

None.

Findings

None.

Agent review details

How this fits together

The session manager projects transcript entries into navigation trees and exposes a read-only extension API; database startup uses filesystem identity matching to classify inspected database paths.

flowchart TD
  A[Transcript entries] --> B[Session manager core]
  B --> C[Session codec tree projection]
  C --> D[Session navigation consumers]
  E[Database startup admission] --> F[Database path matching]
  F --> G[Inspection classification]
Loading

Technical review

Best possible solution:

Retain these focused extractions and land through the existing CI gates once they complete.

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

GitHub annotations establish all three line-limit failures, and fetched main retains the same affected source; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The smallest complete repair moves existing responsibilities into existing owners while preserving callers and public types, without raising limits or introducing parallel implementations.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session tree projection and public read-only facade keeps the original intent (refactor(agents): split session manager internals #107822: Separate session-manager responsibilities while retaining its stable facade; subsequent changes retained canonical navigation and persistence contracts.)
  • Database startup path membership keeps the original intent (3f6c1d3: Classify configured database paths for startup admission while leaving uncertain sibling failures to their own inspection.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit fd578cb adds src/agents/sessions/session-manager-core.ts:539 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fd578cb8a62c; files: src/agents/sessions/session-manager-core.ts)
  • Vincent Koc: Raw commit a1ffc5b adds src/agents/sessions/session-manager-codec.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a1ffc5b76504; files: src/agents/sessions/session-manager-codec.ts)

PR surface

Source +17. Total +17 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 81 64 +17
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 81 64 +17

Labels

Label changes:

  • add P2: Repairs a verified repository lint gate failure without changing user-facing runtime behavior.
  • 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: Repairs a verified repository lint gate failure without changing user-facing runtime behavior.
  • 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 November 1, 2026, 3:15 PM ET / 20:15 UTC.

@vincentkoc
vincentkoc merged commit d532017 into main Nov 1, 2026
150 of 151 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-runtime-module-line-limits-20261102 branch November 1, 2026 20:25
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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