Repository navigation
fix(ci): clear main deadcode and release-admission reds - #190276
Conversation
#190213 stopped the fast reply initializer from writing the retired channel field, but the native slash fast-path test still seeded and expected it, keeping main CI red. Assert the initialization without the retired field and that new state omits it. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 3f2d12c9-3b58-4138-8561-cb7952f2cdfe
|
🦞👀 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. |
#190242 left assertSafeSqliteRuntime exported with no consumer outside its module, failing the deadcode:exports gate on main. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 00c16b2f-1db1-444f-acba-f3e2049e6b05
chat.send includes messageSeq only once the transcript recorder has attested placement, which can complete after the ACK. The committed mention test asserted it unconditionally and failed intermittently on main; the mention delivery and replay assertions are unchanged. Co-authored-by: vyctorbrzezowski <[email protected]>
A cancelled isolated run keeps its receipt running, with the error recorded, until execution settles (#189469). That settle write can land after waitForManualRun resolves, so poll the receipt instead of reading it once. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f306e74f-b8fd-4268-82c9-22f5947f7610
|
Codex review: needs maintainer review before merge. What this changesThis PR corrects three test expectations and makes an unused SQLite safety helper module-private. Example: A disabled cron job records its cancellation before its execution receipt settles.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR contains useful, minimal CI repairs with no actionable code findings; the remaining restart-handoff check failure needs attribution before landing. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe affected tests exercise native-command session persistence, authenticated mention delivery, and cron cancellation receipts; the SQLite module validates the loaded runtime before returning it to database callers. flowchart TD
A[Native command] --> B[Session initialization and persistence]
C[Authenticated chat send] --> D[Transcript recorder and mention Inbox]
E[Cron cancellation] --> F[Worker receipt settlement]
B --> G[Contract tests]
D --> G
F --> G
Technical reviewBest possible solution: Retain the minimal contract-aligned test repairs and private SQLite helper, with the restart-handoff check attributed before landing. Do we have a high-confidence way to reproduce the issue? Production contracts and scheduled-main failure annotations establish the stale expectations; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The patch uses existing owners, preserves the substantive persistence, cancellation, delivery, and replay assertions, and introduces no unnecessary machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5342923d897a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests -3. Total -3 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed November 1, 2026, 7:03 AM ET / 12:03 UTC. |
Picks up #190292's fix for the experience-review lint failure in this PR's CI. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 89917dd0-4788-421b-910c-90cac2ce8f36
Takes main's committed-mention (#190273) and cron cancellation-receipt (#190311) test fixes in place of this branch's versions. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 83073aa5-1c4e-4f2b-a16d-283a2310244e
#190294 moved the publication admission freshness window to start at collectionCompletedAt. The late-admission fixture still pinned its clock to prerequisitesCompletedAt + 300001, which now falls inside the window, so admission wrongly succeeded and main CI failed. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 497070c4-6fdd-47a6-a7a2-4ed1064cc3c5
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: ee4d016c-9414-4847-90f1-5cab989ca340
|
Merged via squash auto-merge.
|
…CK, cron receipt) (openclaw#190276) * test(auto-reply): stop expecting the retired session channel field openclaw#190213 stopped the fast reply initializer from writing the retired channel field, but the native slash fast-path test still seeded and expected it, keeping main CI red. Assert the initialization without the retired field and that new state omits it. Co-authored-by: vyctorbrzezowski <[email protected]> * test(auto-reply): stop expecting the retired session channel field Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 3f2d12c9-3b58-4138-8561-cb7952f2cdfe * fix(infra): keep the SQLite runtime safety check module-private openclaw#190242 left assertSafeSqliteRuntime exported with no consumer outside its module, failing the deadcode:exports gate on main. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/mellow-crab Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 00c16b2f-1db1-444f-acba-f3e2049e6b05 * test(gateway): stop requiring messageSeq in the committed-mention ACK chat.send includes messageSeq only once the transcript recorder has attested placement, which can complete after the ACK. The committed mention test asserted it unconditionally and failed intermittently on main; the mention delivery and replay assertions are unchanged. Co-authored-by: vyctorbrzezowski <[email protected]> * test(cron): wait for the cancelled run receipt to settle A cancelled isolated run keeps its receipt running, with the error recorded, until execution settles (openclaw#189469). That settle write can land after waitForManualRun resolves, so poll the receipt instead of reading it once. Co-authored-by: vyctorbrzezowski <[email protected]> * Publish openclaw/mellow-crab Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f306e74f-b8fd-4268-82c9-22f5947f7610 --------- Co-authored-by: vyctorbrzezowski <[email protected]>
…rts (#190242) Finish and return native iterators once, keep later terminal calls in the observer, and remove unused iterator capability probing and transport. Prove WAL checkpoint progress and successor-cursor preservation. Release adaptation: retain runtime admission in node-sqlite.ts instead of introducing the newer sqlite-native-runtime.ts split. Preserve release native lifecycle, safety-floor and worker contracts; adapt admission and schema fixtures. Allocate exactly 29 net regression-test lines. Companions: 1c437d1 (#190303) runtime assertion privacy is already present. 40101a9 (#190276) has no remaining applicable SQLite change. 5954594 (#193710) certificate warnings are unrelated; e333f7e (#197657) retires main-only test grants and is not needed for this fix. Proof: 91 targeted tests passed across native observer, node SQLite and schema metadata; formatting and diff checks passed. (cherry picked from commit 2c0ab86) Co-authored-by: ava-perry <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Problem
Scheduled
mainCI run 41306628762 (12:28 UTC) has two deterministic reds:check-dependencies→deadcode:exports:src/infra/sqlite-native-runtime.ts: assertSafeSqliteRuntimeis exported with no consumer outside its module, left over from fix(infra): release completed SQLite readers and prevent cursor restarts #190242.test/scripts/full-release-publication-admission.test.ts > FRV required registry admission > binds actual post-upload admission without rewriting uploaded observations: late-admission(expected +0 not to be +0, line 1405). fix(release): separate publication freshness windows #190294 moved the admission freshness window to start atcollectionCompletedAt. The late-admission fixture still pins its clock toprerequisitesCompletedAt + 300_001, which now falls inside the window, so admission succeeds where the test expects it to fail.Solution
exportfromassertSafeSqliteRuntime; its only caller is in the same module.collectionCompletedAt + 300_001, matching fix(release): separate publication freshness windows #190294's contract (admitted - completed > PUBLICATION_OBSERVATION_WINDOW_MS).channelfield.This branch originally also fixed the committed-mention and cron cancellation-receipt tests. Main has since landed fixes for those (#190273, #190311), so the branch takes main's versions and those changes are dropped.
Impact
No behavior change. Clears both reds from
main.Evidence
pnpm deadcode:exportspasses (production and full-tree, 0 entries);pnpm tsgo:coreis clean.git grep assertSafeSqliteRuntime: definition plus one same-module call.full-release-publication-admission.test.tsandfull-release-artifact-contract.test.tspass with the fix.main.Worked on by