Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes two internal Gateway helpers private, runs existing refresh tests against the rendered script, and removes an obsolete suppression-baseline entry. Example: A contributor runs the max-lines ratchet on the current source tree.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is maintainer-authored, repairs concrete gate failures still present on fetched main, and introduces no identified code defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway renderer turns public conversation data into HTML and its lifecycle script; live-probe helpers build validation prompts, while repository gates enforce export and suppression contracts. flowchart TD
A[Public conversation request] --> B[Gateway response owner]
B --> C[Public document renderer]
C --> D[HTML and lifecycle script]
D --> E[Refresh lifecycle tests]
F[Source exports and baseline] --> G[Repository gates]
Technical reviewBest possible solution: Land this focused cleanup once the existing CI gates are resolved. Do we have a high-confidence way to reproduce the issue? Current-main source retains unused exports and a stale baseline record that the existing ratchet explicitly rejects; execution was excluded by the read-only review scope. Is this the best way to solve the issue? The patch fixes the owning source declarations and obsolete record directly while preserving existing lifecycle coverage and runtime bytes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 06cf159ba182. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +16, Other -1. Total +15 across 4 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 10, 2026, 3:13 AM ET / 07:13 UTC (Revision 2). |
|
Thanks @RomneyDa, the diagnosis here was right. All three fixes have since landed on
On |
What Problem This Solves
Local required changed gates fail on current main despite unrelated release-tooling changes: the public reader exposes its lifecycle script solely for a test, the live-probe module exports its locally consumed Claude-family predicate, and the max-lines suppression baseline retains an entry whose suppression was removed by a main-branch test cleanup.
Discovered while verifying Batch 3: #168266, #168267, #168271 and #168280. Merged #168241 registers a different dormant SQLite-fence entry; inspection confirms it does not repair this export.
Why This Change Was Made
PUBLIC_SESSION_ENTRY_SCRIPTis consumed inside its renderer and imported only by the refresh test. It is not an external SDK or public API. Keep it private; exercise the script actually emitted byrenderPublicSessionDocument, matching the existing operator-handoff test's rendered-document boundary. All four refresh lifecycle regressions remain, now protecting document-to-script wiring too. No replacement production seam or duplicate script is introduced.isClaudeLikeLiveAgenthas only its ownbuildLiveCronProbeMessagecaller; keep that predicate private too. Existing live-probe tests protect the Claude-style and other-agent retry wording through the public prompt builder.The baseline change is shrink-only required maintenance: remove exactly
src/commands/doctor-memory-search.test.ts, which no longer declares a max-lines suppression. No assertion, threshold, failure policy, or active exception is weakened.User Impact
None. The lifecycle script, rendered page, CSP hash, authentication, refresh, revocation and copy behavior are unchanged. The local gate can inspect real production exports without keeping a test-only export alive. No configuration option, database change, runtime state, release mutation, or Gateway mutation.
Evidence
6d3f75a1baa71ea5f51db7150ba1eb2d6f067be1retains that export. The first native gate on this base also fails the stale max-lines baseline entry before later checks.node scripts/run-vitest.mjs src/gateway/control-ui-public-session-refresh.test.ts src/gateway/control-ui-public-session-render.test.ts src/gateway/control-ui-public-session-entry.test.ts: 42 tests passed, including conditional ETag reads, visibility fencing, revocation, Retry-After and operator handoff siblings. No new duplicate tests.3c6411a368a54dd4f90c4e660384a2381dd04a9fdfa502cd800bb68230a71a44. This is behavior-neutral internal export removal, not a user-visible UI change; no live Gateway was changed.node scripts/check-changed.mjs -- src/gateway/control-ui-public-session-render.ts src/gateway/control-ui-public-session-refresh.test.ts src/gateway/live-agent-probes.ts config/max-lines-baseline.txt. Formatting, all core/root test type shards, all three export scans, scoped production/test/script lint, architecture/schema/database-first guards and runtime import-cycle checks passed. No gate skip or failure-policy change.Ownership and scope
Renderer:
src/gateway/control-ui-public-session-render.ts; real caller:src/gateway/control-ui-public-session-response.ts. Refresh test runs the emitted script with the existing controlled VM transport/timers; existingcontrol-ui-public-session-entry.test.tsexercises the rendered operator handoff. History:8787ee08687eintroduced the public entry path,45ec7dc8ba50added copy controls. Script bytes were not modified. Ratchet owner:scripts/check-max-lines-ratchet.mts; only an obsolete baseline record is removed.Related live PR search found mentions of these blockers in other work, including #168289, but no open implementation for these owner files. No merges.