Skip to content

ci: inventory Gateway reader worker lifecycles - #204510

Merged
vincentkoc merged 1 commit into
mainfrom
ci/gateway-reader-lifecycle-inventory
Nov 26, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
ci/gateway-reader-lifecycle-inventory

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The runtime lifecycle registry omits the shared-state, session transcript, and cron readers. Maintainers cannot use the registry to see which reads keep a worker warm, which close it with the request, or when the transcript worker starts before its first history request.

User Impact

Maintainers get ten existing launch modes in the CI inventory, with an owner and a retirement rule for each.

Why This Change Was Made

The declarations cover normal and scoped reads, the PostgreSQL snapshot exporter, transcript prewarm on startup and operator connection, and endpoints hosted in a shared worker on qualified lean SQLite. Existing owners still manage execution. Per-mode heap values remain unknown because the available estimates describe executables and the whole shared host.

Evidence

A focused check against b0c098c22928 verified all ten modes, unchanged entrypoint mappings, the owner paths, and preservation of existing declarations. Scoped autoreview found no actionable P0–P2 issues. The change adds 66 registry lines. The lifecycle ratchet, PR CI, and CodeQL passed on the reviewed head.

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

clawsweeper Bot commented Nov 24, 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 24, 2026 08:43
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Nov 24, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR records ten existing cron, transcript, and shared-state reader launch modes in the CI lifecycle registry.

Example: A maintainer looks up sessionTranscript/startupPrewarm.

  • Before: The lifecycle registry contains no declaration for startup transcript prewarming.
  • After: The registry names its startup owner, activation conditions, and five-minute idle retirement policy.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported inventory increment with appropriate exact-head CI and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Only CI inventory metadata changes; source verification and exact-head baseline-ratchet CI are appropriate validation, with no shipped runtime behavior requiring demonstration.
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 consult the lifecycle registry for existing Gateway reader ownership, prewarming, and retirement behavior.
Reason: The maintainer-authored direction extends an established inventory contract and makes existing worker lifetimes easier to inspect at minimal maintenance cost.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR usefully extends the existing lifecycle inventory, matches the worker owners inspected, and has no actionable findings.

Priority: P3
Reviewed head: be7f46a40020dc1ea5721f1f27966ae5b44c4c43

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI lifecycle checker compares core runtime entrypoint mappings and lifecycle declarations against a Git base, then validates mode ownership and memory-budget requirements; runtime worker owners continue to control execution.

flowchart TD
  A[Core runtime manifest] --> C[Lifecycle checker]
  B[Lifecycle registry] --> C
  D[Git base declarations] --> C
  E[Worker owner paths] --> C
  C --> F[CI validation result]
Loading

Technical review

Best possible solution:

Merge the focused registry additions while leaving runtime lifecycle decisions with their existing owners.

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

This is inventory maintenance rather than a runtime bug; source comparison confirms the missing declarations without executing target code.

Is this the best way to solve the issue?

The additions are the smallest complete change: they extend the existing registry, preserve its previous entries, and add no competing owner or test scaffolding.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Core worker lifecycle registry keeps the original intent (29446a2: Require lifecycle declarations for new or retargeted core runtime entrypoints while preserving runtime launch ownership and explicitly unknown initial memory estimates.)
  • Incremental inventory coverage keeps the original intent (45ba297: Inventory existing retained worker launch modes and their cleanup owners without changing execution.)

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 45ba297 adds scripts/runtime-process-lifecycle.json:20 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 +66. Total +66 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 66 0 +66
Total 1 66 0 +66

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 P3: This is a low-risk CI inventory improvement with no runtime behavior change.
  • 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:

  • P3: This is a low-risk CI inventory improvement with no runtime behavior change.
  • 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 24, 2026, 4:06 AM ET / 09:06 UTC.

@vincentkoc
vincentkoc merged commit c81e5ab into main Nov 26, 2026
172 of 174 checks passed
@vincentkoc
vincentkoc deleted the ci/gateway-reader-lifecycle-inventory branch November 26, 2026 13:26
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

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: 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