Repository navigation
test(qa): add memory redaction boundary coverage - #118916
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 4:20 PM ET / 20:20 UTC. ClawSweeper reviewWhat this changesAdds a memory-core Vitest boundary test and QA scenario covering secret redaction before dreaming ingestion plus rejection of contaminated or untrusted candidates before durable memory writes. Merge readinessThe PR adds focused regression coverage at the existing memory-core owner boundaries and no source-level correctness defect was found. It should remain open for maintainer review because it is maintainer-authored/labeled and the exact head still has a failed Priority: P2 Review scores
Verification
How this fits togetherMemory-core ingests active session transcripts into a dreaming corpus, then may promote recalled memory candidates into durable flowchart LR
A[Interactive session transcript] --> B[Transcript redaction]
B --> C[Dreaming corpus]
C --> D[Promotion candidate]
D --> E[Contamination and provenance gates]
E --> F[Durable MEMORY.md]
E --> G[Rejected candidate]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +230, Other +29. Total +259 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused regression coverage, resolve the exact-head security gate, and land it after normal memory-core maintainer review without changing the existing production redaction or promotion flows. Do we have a high-confidence way to reproduce the issue? Not applicable as a new defect report: this PR adds coverage for existing behavior. The submitted test targets the real dreaming and promotion entrypoints, though this read-only review did not execute it. Is this the best way to solve the issue? Yes. Exercising the real transcript-ingestion and promotion-apply boundaries is a more maintainable regression check than adding test-only guards or changing production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f73a7809a5e6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
df1373d to
de4ccaf
Compare
|
ClawSweeper rank-up move disposition:
No re-review requested. |
de4ccaf to
45d1517
Compare
|
ClawSweeper rank-up move resolved:
Proceeding through the mandatory repo-native prepare and pinned squash flow. No re-review requested. |
|
Merged via squash.
|
* commit 'efcced7207baa0b1b1db5e8e1836673a24212657': test(agents): prove process control roundtrip (#118843) test(qa): add memory redaction boundary coverage (#118916) fix(kilocode): model discovery overstates the usable context window (#118868) fix(media): isolate generated-provider text from delivery directives (#118780) test(gateway): add node control-plane QA coverage (#118784) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) fix(ci): keep Matrix chunk tests aligned with inventory (#118917) fix(tts): preserve hidden speech answers when synthesis fails (#118690)
…-worker-update-20260803 * origin/main: (48 commits) test(ui): add shell and PWA primary QA proof (#118788) test(qa): cover CLI distribution workflows (#118948) chore(i18n): refresh native locales (#118883) test(qa): prove plugin tool ownership in gateway flow (#118958) docs: correct onboarding risk flags and Google Chat credential shapes (#118936) fix(imessage): honor explicitly enabled accounts during startup (#118944) test(gateway): cover client transport defaults (#118798) fix(signal): normalize accounts during noninteractive setup (#118932) fix(msteams): enable channels for federated environment credentials (#118931) fix(openai): enforce final transcript bounds before callback delivery (#118928) test(tasks): cover plugin-managed flows (#118919) test(agents): prove process control roundtrip (#118843) test(qa): add memory redaction boundary coverage (#118916) fix(kilocode): model discovery overstates the usable context window (#118868) fix(media): isolate generated-provider text from delivery directives (#118780) test(gateway): add node control-plane QA coverage (#118784) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) ...
Summary
Adds focused executable proof for two memory-core secret-handling boundaries:
Problem
security.redaction-dreamingandsecurity.redaction-promotionhad no primary executable QA coverage.Owner boundary
The proof stays in the existing memory-core product boundary: one focused Vitest file invokes the real dreaming phase and promotion apply entrypoints, and one native QA scenario registers the evidence. No production path changes.
Assertions
OPENAI_API_KEY=sk-...value, and persistsOPENAI_API_KEY=***in the dreaming corpus.MEMORY.mdcontains the clean text and canonical promotion marker, with no contaminated marker/text, untrusted text, raw secret, or redacted secret placeholder.Coverage
Primary IDs:
security.redaction-dreamingsecurity.redaction-promotionThis does not claim general PII redaction or broader dreaming, provenance, memory retrieval, or credential-hygiene coverage.
Validation
45d1517e1d818cc3f6b77ead5f58f3c94b9d4f5ef73a7809a5e6d8c55427aa746a9ae0551ac3c5cc24.18.0, pnpm11.15.1test/scripts/test-projects.test.tsandtest/scripts/test-extension.test.tsgit diff --check: passedoxfmtcheck on both changed files: passedoxlintcheck: passeddf1373da2cdf10a2f2436798696b0380c33da601memory-core-redaction-boundariesfast-uri <4.1.2andundici <7.29.0; current-main commit25aa29d7a15updates both, the current lock audits clean, and hostedsecurity-fastpasses on the prepared merge ref. This PR has no dependency or lockfile delta.{ "head": "45d1517e1d818cc3f6b77ead5f58f3c94b9d4f5e", "scenario": "memory-core-redaction-boundaries", "providerMode": "mock-openai", "entries": 1, "status": "pass", "primaryIds": [ "security.redaction-dreaming", "security.redaction-promotion" ], "runner": "vitest", "scenarioWallTimeMs": 14056 }Proof routing: Blacksmith Testbox failed provider readiness before dispatch because its CLI was unauthenticated. The documented trusted-source fallback used a disposable clean normal clone, then removed it after copying the complete proof bundle to
.artifacts/qa-e2e/security-memory-redaction.The branch was refreshed after the Matrix inventory repair became relevant CI evidence. Later current-main dependency maintenance does not touch
extensions/memory-core,packages/memory-host-sdk, or this QA scenario, so no second age-only rebase is needed; fresh hosted CI validates the exact head against the prepared merge ref.Scope
extensions/memory-core/src/redaction-product-boundaries.test.tsqa/scenarios/security/memory-core-redaction-boundaries.yaml