Skip to content

fix(ci): clear main deadcode and release-admission reds - #190276

Merged
roboclaw-bot merged 15 commits into
mainfrom
openclaw/mellow-crab
Nov 1, 2026
Merged

roboclaw-bot merged 15 commits into
mainfrom
openclaw/mellow-crab

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Scheduled main CI run 41306628762 (12:28 UTC) has two deterministic reds:

  1. check-dependencies → deadcode:exports: src/infra/sqlite-native-runtime.ts: assertSafeSqliteRuntime is exported with no consumer outside its module, left over from fix(infra): release completed SQLite readers and prevent cursor restarts #190242.
  2. 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 at collectionCompletedAt. The late-admission fixture still pins its clock to prerequisitesCompletedAt + 300_001, which now falls inside the window, so admission succeeds where the test expects it to fail.

Solution

  1. Drop the export from assertSafeSqliteRuntime; its only caller is in the same module.
  2. Test-only: pin the late-admission clock to collectionCompletedAt + 300_001, matching fix(release): separate publication freshness windows #190294's contract (admitted - completed > PUBLICATION_OBSERVATION_WINDOW_MS).
  3. Also add one assertion to the native slash fast-path test (fixed on main by fix(ci): remove retired channel from native slash fixture #190278): persisted state omits the retired channel field.

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

  • (1) pnpm deadcode:exports passes (production and full-tree, 0 entries); pnpm tsgo:core is clean. git grep assertSafeSqliteRuntime: definition plus one same-module call.
  • (2) full-release-publication-admission.test.ts and full-release-artifact-contract.test.ts pass with the fix.
  • The branch merges cleanly with current main.
  • Autoreview (Codex, P1) on the earlier version of this branch: scoped-clean.

Worked on by

roboclaw-bot and others added 2 commits November 1, 2026 11:22
#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
@clawsweeper

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 1, 2026
roboclaw-bot and others added 2 commits November 1, 2026 11:35
#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
@roboclaw-bot roboclaw-bot changed the title test(auto-reply): stop expecting the retired session channel field fix(ci): clear two deterministic main reds (fast-path test, unused SQLite export) Nov 1, 2026
roboclaw-bot and others added 3 commits November 1, 2026 11:44
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
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Nov 1, 2026
@roboclaw-bot roboclaw-bot changed the title fix(ci): clear two deterministic main reds (fast-path test, unused SQLite export) fix(ci): clear current main reds (fast-path, unused export, mention ACK, cron receipt) Nov 1, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 1, 2026 11:53
@clawsweeper clawsweeper Bot added clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The test fails when it reads status "running" with error "Cron job disabled by operator.".
  • After: The test waits for status "error" while preserving the exact cancellation-error assertion.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The minimal patch is source-supported and has no actionable findings, while validation relies on focused harness results and incomplete CI failure attribution.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored maintenance patch is outside the ordinary contributor proof gate; supplied focused-test results and inspected production contracts support the corrections without establishing a new shipped-runtime behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Main CI rejects valid runtime behavior because tests require retired state or completion earlier than the owning contracts promise.
Reason: The maintainer-authored direction is established, and the remaining repairs restore useful CI signal without changing runtime policy.

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
Reviewed head: 2c01aa9c210884e5d82f3e2cd1bf139947793da1

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Native-command persistence fixture keeps the original intent (fix(sessions): avoid recurring Doctor warnings after native status #190213: Canonical delivery owns channel information; the initializer intentionally stopped writing the retired top-level field.)
  • Committed-mention ACK assertion changes intended behavior with a stated reason (3e517e9: The regression protected committed mention delivery and idempotency; production attests placement separately from the started ACK.)
  • Cron cancellation receipt assertion keeps the original intent (fix(cron): prevent overlapping retries after execution timeouts #189469: The receipt remains active until execution settles to prevent overlapping retries; terminal accounting can precede receipt settlement.)
  • SQLite safety helper visibility keeps the original intent (2c0ab86: The earlier repair retained loaded-library safety validation while removing superseded iterator probing; this patch preserves that validation and its only caller.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b0055b6 adds src/infra/sqlite-native-runtime.ts:109 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b0055b677826; files: src/infra/sqlite-native-runtime.ts)
  • Shakker: Raw commit 3e517e9 adds src/gateway/server.mentions-committed.test.ts:181 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e517e9eb12d; files: src/gateway/server.mentions-committed.test.ts)

PR surface

Source 0, Tests -3. Total -3 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 3 8 11 -3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 9 12 -3

Labels

Label changes:

  • add P3: The patch repairs CI expectations and an unused internal export without changing user-facing runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: The patch repairs CI expectations and an unused internal export without changing user-facing runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attribute the exact-head restart-handoff failure using complete diagnostics before deciding whether the remaining CI failure is inherited.

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 1, 2026, 7:03 AM ET / 12:03 UTC.

roboclaw-bot and others added 4 commits November 1, 2026 12:15
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
@openclaw-barnacle openclaw-barnacle Bot removed gateway Gateway runtime size: XS labels Nov 1, 2026
@roboclaw-bot roboclaw-bot changed the title fix(ci): clear current main reds (fast-path, unused export, mention ACK, cron receipt) fix(ci): drop the unused SQLite runtime export failing deadcode on main Nov 1, 2026
roboclaw-bot and others added 2 commits November 1, 2026 12:50
#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
@roboclaw-bot roboclaw-bot changed the title fix(ci): drop the unused SQLite runtime export failing deadcode on main fix(ci): clear main deadcode and release-admission reds Nov 1, 2026
roboclaw-bot and others added 2 commits November 1, 2026 12:54
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: ee4d016c-9414-4847-90f1-5cab989ca340
@roboclaw-bot
roboclaw-bot merged commit 40101a9 into main Nov 1, 2026
133 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/mellow-crab branch November 1, 2026 13:07
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…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]>
RomneyDa pushed a commit that referenced this pull request Nov 3, 2026
Backport only the publication-admission hunk of main 40101a9 (#190276).
The late-admission fixture must expire relative to collectionCompletedAt,
which the release's separated freshness windows (#190294) now measure.

(partial cherry pick from commit 40101a9)
RomneyDa added a commit that referenced this pull request Nov 14, 2026
…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]>
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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