Skip to content

fix(ci): stabilize release validation assertions - #117377

Merged
vincentkoc merged 2 commits into
mainfrom
fix-release-baseline-regressions-20260801
Aug 1, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix-release-baseline-regressions-20260801

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves two failures found while running the full release validation suite against main: the provider auto-enable test still expected the pre-snapshot call shape, and the LanceDB agent-gating test coupled enablement coverage to a low-level store mock that flakes under the full extension-memory shard.

Why This Change Was Made

The provider assertion now verifies the prepared manifest registry carried by the activation path. The memory test now proves enabled recall and capture independently at the embedding boundary; the dedicated auto-capture test continues to own storage and agent-scope behavior.

User Impact

No user-visible runtime change. Release validation no longer fails on stale or cross-layer test assertions.

Evidence

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added the extensions: memory-lancedb Extension: memory-lancedb label Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@vincentkoc
vincentkoc force-pushed the fix-release-baseline-regressions-20260801 branch from 42705c4 to ff1ca32 Compare August 1, 2026 11:31
@vincentkoc
vincentkoc marked this pull request as ready for review August 1, 2026 11:33
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 7:39 AM ET / 11:39 UTC.

ClawSweeper review

What this changes

The PR updates provider auto-enable and LanceDB memory tests so release validation asserts the current activation metadata and separates agent enablement from persistence behavior.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking patch defect found. This maintainer-authored, protected PR repairs two stale release-validation assertions: provider activation now receives prepared manifest metadata, and LanceDB enablement coverage no longer doubles as storage-scope coverage; leave it open for the queued exact-head CI gate.

Priority: P3
Reviewed head: ff1ca326b157bc609adc24760e1da13095c21a4a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned test repair with no blocking findings; exact-head CI completion remains the normal merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only PR is exempt from the external real-behavior-proof gate; the PR body nevertheless reports focused test and Testbox-shard results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored test-only PR is exempt from the external real-behavior-proof gate; the PR body nevertheless reports focused test and Testbox-shard results.
Evidence reviewed 6 items Provider assertion matches the activation contract: Current activation passes the prepared manifest registry and discovery information into plugin auto-enable; the old exact-object test assertion omitted the registry and therefore no longer matched the real call shape.
Auto-enable accepts manifest metadata: The public auto-enable contract explicitly accepts an optional manifest registry and uses it in its prepared-metadata execution path, so asserting its presence is the correct boundary-level regression check.
LanceDB enablement gates both hooks: Both the prompt-time recall hook and agent-end capture hook resolve the enabled agent before embedding or storage. The proposed test keeps that shared gate covered while avoiding an unrelated storage assertion.
Findings None None.
Security None None.

How this fits together

Provider activation converts configuration plus a prepared plugin manifest registry into enabled runtime providers. The LanceDB plugin uses each agent's memory setting to gate both recall before prompts and capture after an agent run, with embeddings and storage downstream.

flowchart LR
  A[Plugin configuration] --> B[Prepared manifest registry]
  B --> C[Provider activation]
  C --> D[Enabled provider runtime]
  E[Agent memory setting] --> F[Memory enablement gate]
  F --> G[Recall before prompt]
  F --> H[Capture after agent run]
  H --> I[Embedding and LanceDB storage]
Loading

Before merge

  • Resolve merge risk (P1) - The exact-head openclaw/ci-gate check is still queued; merge only after it completes successfully.
  • Complete next step (P2) - No actionable repair remains from this review; the PR needs its normal exact-head CI completion and maintainer merge decision.
Agent review details

Security

None.

PR surface

Tests +5. Total +5 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 12 7 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 12 7 +5

Review metrics

None.

Stored data model

Persistent data-model change detected: vector/embedding metadata: extensions/memory-lancedb/index.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the boundary-level provider assertion and the separated LanceDB gate assertion, then merge after the exact-head CI gate confirms the reported release-validation stability.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the boundary-level provider assertion and the separated LanceDB gate assertion, then merge after the exact-head CI gate confirms the reported release-validation stability.

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

Yes, from source: activation passes manifestRegistry into auto-enable while the old exact matcher excluded it, and the LanceDB hooks share the same enabled-agent gate. The PR body also supplies focused commands and a successful extension-memory shard, though this read-only review did not rerun them.

Is this the best way to solve the issue?

Yes. The provider test now checks the prepared-metadata contract, while the LanceDB test keeps enablement coverage at the embedding boundary and leaves storage payload behavior to the dedicated auto-capture test.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a84302cd73aa.

Labels

Label changes:

  • add P3: This is a narrow test-only release-validation repair with no claimed user-visible runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored test-only PR is exempt from the external real-behavior-proof gate; the PR body nevertheless reports focused test and Testbox-shard results.

Label justifications:

  • P3: This is a narrow test-only release-validation repair with no claimed user-visible runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored test-only PR is exempt from the external real-behavior-proof gate; the PR body nevertheless reports focused test and Testbox-shard results.

Evidence

What I checked:

  • Provider assertion matches the activation contract: Current activation passes the prepared manifest registry and discovery information into plugin auto-enable; the old exact-object test assertion omitted the registry and therefore no longer matched the real call shape. (src/plugins/activation-context.ts:175, a84302cd73aa)
  • Auto-enable accepts manifest metadata: The public auto-enable contract explicitly accepts an optional manifest registry and uses it in its prepared-metadata execution path, so asserting its presence is the correct boundary-level regression check. (src/config/plugin-auto-enable.apply.ts:150, a84302cd73aa)
  • LanceDB enablement gates both hooks: Both the prompt-time recall hook and agent-end capture hook resolve the enabled agent before embedding or storage. The proposed test keeps that shared gate covered while avoiding an unrelated storage assertion. (extensions/memory-lancedb/index.ts:500, a84302cd73aa)
  • Dedicated capture test retains persistence coverage: The existing auto-capture test independently proves the agent-end hook reaches embeddings, vector search, and one LanceDB add with the expected stored memory payload. (extensions/memory-lancedb/index.test.ts:2109, a84302cd73aa)
  • History provenance: Blame attributes both original stale test assertions to the current-main commit that introduced the surrounding activation and memory-hook test coverage; the PR branch then updates only those assertions. (src/plugins/providers.test.ts:434, 475ea69f2c35)
  • Patch scope and reported validation: The branch contains only the two test assertion changes. Its PR body reports focused provider and LanceDB tests plus a successful 1,857-test extension-memory Testbox shard; the linked run could not be independently opened in this read-only environment. (extensions/memory-lancedb/index.test.ts:1967, ff1ca326b157)

Likely related people:

  • Peter Steinberger: Current-main blame ties the prior provider assertion and LanceDB gate assertions to the same broad refactor that established the surrounding activation and memory-hook paths. (role: original test and runtime-path contributor; confidence: high; commits: 475ea69f2c35; files: src/plugins/providers.test.ts, extensions/memory-lancedb/index.test.ts, src/plugins/activation-context.ts)
  • Sasan: Recent history identifies the prepared plugin-metadata reuse work immediately preceding this assertion alignment, making this a relevant routing contact for activation-registry behavior. (role: recent prepared-metadata contributor; confidence: medium; commits: 13a52c59cf3b; files: src/plugins/activation-context.ts, src/plugins/providers.ts)

Rank-up moves

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

  • Let the queued exact-head openclaw/ci-gate complete successfully before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit 11239da into main Aug 1, 2026
160 of 162 checks passed
@vincentkoc
vincentkoc deleted the fix-release-baseline-regressions-20260801 branch August 1, 2026 11:40
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

chenyangjun-xy pushed a commit to chenyangjun-xy/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  refactor(doctor): unify legacy auth migration ownership (openclaw#117361)
  fix(plugins): surface actionable doctor warnings (openclaw#117357)
  fix(ci): use corrected Kova release evaluator (openclaw#116920)
  fix(ci): stabilize release validation assertions (openclaw#117377)
  refactor(memory): use sqlite transcript identities (openclaw#117334)
  fix(plugins): require tracked owners for targeted updates (openclaw#117333)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* test(plugins): align auto-enable metadata assertion

* test(memory): isolate agent enablement coverage
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main:
  refactor(doctor): unify legacy auth migration ownership (openclaw#117361)
  fix(plugins): surface actionable doctor warnings (openclaw#117357)
  fix(ci): use corrected Kova release evaluator (openclaw#116920)
  fix(ci): stabilize release validation assertions (openclaw#117377)
  refactor(memory): use sqlite transcript identities (openclaw#117334)
  fix(plugins): require tracked owners for targeted updates (openclaw#117333)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: memory-lancedb Extension: memory-lancedb maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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