Repository navigation
refactor(gateway): simplify lifecycle mutation contracts - #110583
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 5:34 AM ET / 09:34 UTC. Summary PR surface: Source +31, Tests +43. Total +74 across 25 files. Reproducibility: yes. in source, with medium confidence: configure a loaded and running gateway service whose installed command metadata has a version, port, or program-path mismatch, then run Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Add redacted real-run evidence for an already-running gateway whose installed definition has drifted, showing the warning in normal and JSON output while confirming the service is neither repaired nor restarted. Do we have a high-confidence way to reproduce the issue? Yes in source, with medium confidence: configure a loaded and running gateway service whose installed command metadata has a version, port, or program-path mismatch, then run Is this the best way to solve the issue? Yes, conditionally: preserving strict idempotence while surfacing actionable drift is narrower than repairing or restarting an already-running service. The remaining requirement is direct proof that the emitted text and JSON warning are useful and stable in a real service setup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 75b1ac12df1e. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +31, Tests +43. Total +74 across 25 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
bcecd2e to
f39897e
Compare
|
Merged via squash.
|
…0583) * refactor(gateway): simplify lifecycle mutation contracts * refactor(cli): unexport internal emitDaemonActionMessage
…0583) * refactor(gateway): simplify lifecycle mutation contracts * refactor(cli): unexport internal emitDaemonActionMessage
Summary
Post-landing cleanup of the gateway lifecycle surface from #110323 / #110497 — scar tissue from the start-stopped-delegating-to-restart evolution, plus contract tightening. No behavior change except one new warning.
start()completes synchronously; the branch and its restart-worded response were fossils.start()contracts are now completed-only.GatewayLifecycleMutationModeunion replaces stringly-typed audit modes (29 literals now compile-checked); drop the never-suppliedpidfield; one shared best-effort mutation reporter (service-mutation.ts) so observer exceptions can never interrupt service control on any path.warnings[]) instead of silently swallowing it; still strictly idempotent — no repair, no restart.ServiceRecoveryResulttypes (start recovery can no longer claim "stopped").label/$5plumbing.run.ts;forceFreePort()reuseskillPids.Proof
daemon-cli.coverageandlifecycle-core.config-guard.tsgo:core+tsgo:test:srcgreen (Blacksmith Testbox); targeted oxlint clean; max-lines ratchet OK.Release-note context:
gateway startnow warns when the already-running service's installed definition has drifted and needsgateway restartto apply.