Skip to content

chore(ci): inventory Gateway model catalog worker lifecycles - #206251

Merged
vincentkoc merged 1 commit into
mainfrom
ci/gateway-model-catalog-worker-lifecycles
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
ci/gateway-model-catalog-worker-lifecycles

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The Gateway process lifecycle registry leaves out two model catalog worker entry points. The lifecycle check has no declared ownership or retirement policy to preserve for these workers.

User Impact

Maintainers can see what starts each catalog worker, who owns it, and when it retires. No user action or runtime change.

Why This Change Was Made

Record request-driven and startup catalog reads, lean shared hosting, and the shared and owner-scoped prepared catalogs. Startup modes reuse their ordinary pools. Catalog credential writes already run through the agent database executor.

Evidence

  • Traced the startup, request, and refresh paths alongside retirement, failure, and shutdown behavior.
  • Validated the six declarations against the tracked owner files and unchanged manifest. Existing registry entries are preserved.
  • Per-mode worker heap is unmeasured.
  • CI and CodeQL passed on 6086355cfb9. The baseline ratchet job confirmed the runtime process lifecycle declarations against the CI base.

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

clawsweeper Bot commented Nov 27, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 00:33
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 27, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR inventories six existing launch modes for the Gateway’s model catalog workers.

Example: CI checks the pluginModelCatalogRead entrypoint.

  • Before: The lifecycle registry contains no declaration for this entrypoint.
  • After: The registry records pooled reads, lean hosting, and startup publication with their owners and retirement policies.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported maintenance change with successful exact-head CI and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Only CI inventory metadata changes; source tracing supports the declarations and the exact-head lifecycle ratchet passed, so shipped runtime proof is unnecessary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot inspect or preserve lifecycle declarations for the two catalog worker entrypoints through the existing CI registry.
Reason: The maintainer-authored addition closes a concrete inventory gap using the established checker without changing runtime behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds useful, source-consistent lifecycle declarations missing from current main, with no actionable findings.

Reviewed head: 6086355cfb934210a6af8aceb3489deb3aacc282

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI lifecycle checker compares the runtime entrypoint manifest and lifecycle registry against a Git base, validates declarations, and reports ownership or budget regressions.

flowchart LR
  A[Runtime entrypoint manifest] --> C[Lifecycle checker]
  B[Lifecycle registry] --> C
  D[Git base declarations] --> C
  E[Tracked owner files] --> C
  C --> F[CI validation result]
Loading

Technical review

Best possible solution:

Merge the focused inventory addition while keeping runtime lifecycle decisions with their existing owners.

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

Source inspection confirms the inventory omission on current main; no runtime bug is claimed or reproduced.

Is this the best way to solve the issue?

Extending the existing registry is the smallest complete change and introduces no competing lifecycle owner or test scaffolding.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Runtime lifecycle inventory keeps the original intent (29446a2: Record ownership, activation, retirement, and memory expectations for core runtime entrypoints while leaving launch behavior with existing owners.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 45ba297 adds scripts/runtime-process-lifecycle.json:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 45ba29794949; files: scripts/runtime-process-lifecycle.json)

PR surface

Other +40. Total +40 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 40 0 +40
Total 1 40 0 +40

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 26, 2026, 7:55 PM ET / November 27, 2026, 00:55 UTC.

@vincentkoc
vincentkoc merged commit f25b6ed into main Nov 27, 2026
167 of 168 checks passed
@vincentkoc
vincentkoc deleted the ci/gateway-model-catalog-worker-lifecycles branch November 27, 2026 03:40
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit '7df6cb759f9e604921536a700e2f527c5516e7de': (185 commits)
  docs: clarify what telemetry OpenClaw sends and how to opt out
  refactor(ui): remove retired stream-follow test seams (#206316)
  fix: distinguish missing command results from unknown outcomes (#206313)
  fix(build): reuse stamps after identical pnpm installs (#206282)
  chore(ci): inventory Gateway model catalog worker lifecycles (#206251)
  fix: keep failed image inspections inside chat activity (#206283)
  fix: clarify sent-message labels and chat activity icons (#206048)
  fix(cron): use the service's free memory for extra automation runs (#206322)
  test(android): reuse the shared TLS fixture (#206280)
  fix(ui): restore New Session recovery during startup (#206319)
  test(macos): align new Gateway URL expectations (#206281)
  feat: let doctor --fix tell when its startup repairs have nothing to do (#206246)
  fix(android): pause idle gateway discovery without blocking consumers (#196209)
  fix(ci): prepare the Android SDK for scheduled CodeQL scans (#203843)
  fix(memory): read delegated cgroup pressure from the mapped leaf (#206308)
  improve(config): reuse plugin metadata during auto-enable (#206289)
  improve: copy only the selected model for agent completions (#206287)
  fix(pr): refresh tooling before preparing reviewed incoming PRs (#206236)
  fix: keep Gateway ready while plugins drain after updates (#206299)
  fix(crabbox): keep unused prepared mirrors reusable (#206267)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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