Skip to content

test(qa): cover memory promotion safety - #119093

Merged
vincentkoc merged 1 commit into
mainfrom
qa-b3-memory-files-promotion-safety-20260804
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-b3-memory-files-promotion-safety-20260804

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The B3 QA portfolio had no primary product-boundary proof for durable memory-file promotion or memory-file artifact safety.

Why This Change Was Made

This promotes two existing scenarios instead of adding duplicate coverage. The dreaming sweep now derives the complete keyed HTML promotion marker from the actual promoted entry, requires that exact marker in promotedMemory, and exposes marker presence in evidence details. The redaction-boundary scenario becomes the primary artifact-safety owner.

User Impact

No runtime behavior changes. Maintainers gain deterministic primary coverage for:

  • session-memory.memory-files-promotion
  • session-memory.memory-files-artifact-safety

Evidence

  • Exact signed head: 861dfc21f321aa8707a5de28778544f8723854e9
  • Parent and current origin/main: 12beeb7b29476d0ac96590e51bbc14fff63fbe60
  • Scope: exactly two QA YAML files, +4/-2; production LOC: 0
  • Focused memory-core Vitest groups: 3 files, 143/143 tests passed
  • QA catalog and coverage Vitest groups: 2 files, 68/68 tests passed; both IDs have one unique primary owner
  • Committed-SHA mock QA suite:
    node scripts/run-node.mjs qa suite --provider-mode mock-openai --scenario memory-dreaming-sweep --scenario memory-core-redaction-boundaries --output-dir .artifacts/qa-e2e/b3-memory-files
    passed 2/2; both evidence entries record the exact head, the promotion marker is true, and both native redaction assertions passed
  • node scripts/check-changed.mjs -- qa/scenarios/memory/memory-dreaming-sweep.yaml qa/scenarios/security/memory-core-redaction-boundaries.yaml
    passed all guards, full tsgo, lint, and cycle checks in direct AWS run run_2f055c33b0f8
  • Fresh Sol/high autoreview: clean at 0.99 confidence; TruffleHog: clean
  • Retained local evidence:
    .artifacts/qa-e2e/b3-memory-files/qa-suite-report.md,
    .artifacts/qa-e2e/b3-memory-files/qa-suite-summary.json,
    .artifacts/qa-e2e/b3-memory-files/qa-evidence.json, and
    .artifacts/qa-e2e/b3-memory-files/vitest/memory-core-redaction-boundaries.log

Live collision searches on August 4, 2026 found no open PR matching either primary ID or either changed path.

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 04:02
@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 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 12:08 AM ET / 04:08 UTC.

ClawSweeper review

What this changes

The PR assigns two existing memory-safety coverage IDs to their real QA scenarios and requires the promoted memory file to contain the exact canonical marker for the promoted canary.

Merge readiness

✅ Ready for maintainer review

Keep open for normal maintainer handling: this is a focused, correct QA coverage improvement with no actionable review findings.

Priority: P3
Reviewed head: 861dfc21f321aa8707a5de28778544f8723854e9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused QA-only patch whose assertions match the current promotion and redaction contracts.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body also reports a successful two-scenario mock QA run.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body also reports a successful two-scenario mock QA run.
Evidence reviewed 6 items Taxonomy targets exist: The two added IDs are defined as Memory Files promotion and artifact-safety coverage targets.
Exact promotion contract: The scenario derives the promoted entry from doctor status and requires its exact canonical marker in MEMORY.md.
Runtime marker writer: Promotion writes the same key-bearing HTML marker asserted by the scenario.
Findings None None.
Security None None.

How this fits together

QA Lab runs scenario files against OpenClaw and publishes coverage evidence. This change connects durable-memory promotion and redaction checks to the taxonomy entries that select them for safety reporting.

flowchart LR
  A[QA scenario] --> B[Dreaming cron run]
  B --> C[Memory promotion]
  C --> D[Memory file marker]
  C --> E[Doctor memory status]
  D --> F[QA assertion]
  E --> F
  F --> G[Coverage report]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other +2. Total +2 across 2 files.

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

Review metrics

Metric Value Why it matters
Production vs QA LOC production +0/-0; QA scenarios +4/-2 The change strengthens existing QA ownership and assertions without altering runtime behavior.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/memory/memory-dreaming-sweep.yaml, unknown-data-model-change: qa/scenarios/memory/memory-dreaming-sweep.yaml. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Land the focused coverage update after the normal exact-head maintainer and CI gates, retaining the existing canonical promotion-marker contract.

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

Not applicable: this PR adds coverage ownership rather than repairing a reported user failure; the source contract and supplied QA-suite result directly support the scenarios.

Is this the best way to solve the issue?

Yes. Reusing the existing real promotion flow and redaction-boundary test avoids duplicate coverage while assigning the missing primary taxonomy owners.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a small test-coverage improvement with no runtime or user-facing behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body also reports a successful two-scenario mock QA run.

Label justifications:

  • P3: This is a small test-coverage improvement with no runtime or user-facing behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body also reports a successful two-scenario mock QA run.

Evidence

What I checked:

Likely related people:

  • steipete: Introduced the provenance-gated dreaming path and later maintained its consolidation neighborhood. (role: feature owner; confidence: high; commits: 28630a9a6501, ed6010ed54bb; files: extensions/memory-core/src/short-term-promotion-apply.ts, extensions/memory-core/src/short-term-promotion-stats.ts)
  • vincentkoc: Current-main blame attributes the marker, status, taxonomy, and QA scenario lines to this contributor; they also authored this focused PR. (role: recent area contributor; confidence: high; commits: 0758316883f5, 861dfc21f321; files: qa/scenarios/memory/memory-dreaming-sweep.yaml, qa/scenarios/security/memory-core-redaction-boundaries.yaml, extensions/memory-core/src/short-term-promotion-apply.ts)

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 5a1daf8 into main Aug 4, 2026
144 of 149 checks passed
@vincentkoc
vincentkoc deleted the qa-b3-memory-files-promotion-safety-20260804 branch August 4, 2026 04:17
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main:
  fix: preserve live updater failure diagnostics (#119096)
  fix: recover new-session models through Gateway startup (#119120)
  test(qa): cover instruction profile artifacts (#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (#119093)
  test(qa): prove overflow compaction pruning (#119033)
  fix(tool-search): preserve deferred MCP failures (#118363)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* 'main' of https://github.com/openclaw/openclaw:
  test(qa): cover sandboxed exec behavior (#119053)
  test(qa): prove shared-channel memory recall (#119111)
  fix(telegram): keep request deadlines through response bodies
  test(qa): cover gateway plugin approvals (#119128)
  fix(ai): keep OpenAI tool call id truncation UTF-16 safe (#110471)
  fix: preserve live updater failure diagnostics (#119096)
  fix: recover new-session models through Gateway startup (#119120)
  test(qa): cover instruction profile artifacts (#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (#119093)
  test(qa): prove overflow compaction pruning (#119033)
  fix(tool-search): preserve deferred MCP failures (#118363)
  fix(macos): keep setup activation within app checks
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* origin/main:
  fix: preserve live updater failure diagnostics (openclaw#119096)
  fix: recover new-session models through Gateway startup (openclaw#119120)
  test(qa): cover instruction profile artifacts (openclaw#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (openclaw#119093)
  test(qa): prove overflow compaction pruning (openclaw#119033)
  fix(tool-search): preserve deferred MCP failures (openclaw#118363)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* 'main' of https://github.com/openclaw/openclaw:
  test(qa): cover sandboxed exec behavior (openclaw#119053)
  test(qa): prove shared-channel memory recall (openclaw#119111)
  fix(telegram): keep request deadlines through response bodies
  test(qa): cover gateway plugin approvals (openclaw#119128)
  fix(ai): keep OpenAI tool call id truncation UTF-16 safe (openclaw#110471)
  fix: preserve live updater failure diagnostics (openclaw#119096)
  fix: recover new-session models through Gateway startup (openclaw#119120)
  test(qa): cover instruction profile artifacts (openclaw#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (openclaw#119093)
  test(qa): prove overflow compaction pruning (openclaw#119033)
  fix(tool-search): preserve deferred MCP failures (openclaw#118363)
  fix(macos): keep setup activation within app checks
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab 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