Skip to content

feat(qa): retain evidence across repeated scenarios and retries - #147756

Merged
vincentkoc merged 25 commits into
mainfrom
feat/qa-evidence-occurrences-20260913
Sep 15, 2026
Merged

vincentkoc merged 25 commits into
mainfrom
feat/qa-evidence-occurrences-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Related: #141950

What Problem This Solves

Repeated scenario IDs, retries, and nested QA runs could overwrite evidence, select the wrong artifact, or hide incomplete child execution.

User Impact

QA reports retain each observed attempt and select its corresponding result and artifact. Historical v2 evidence remains readable. Unobserved runtime facts remain unknown, and explicit required/advisory proof declarations do not add a default release gate.

Why This Change Was Made

The invocation owner records immutable observations and selects the effective attempt. Suite, native, script, Docker, parity, gallery, scorecard, and workflow consumers use the canonical reader while retaining raw history. Artifact writers finish before cleanup, and nested evidence preserves its recorded identity and ownership.

Comparison retries now own their complete child evidence bundle, including partial evidence captured before an exception. A later passing comparison retires its predecessor through containment; it does not rewrite child rows or infer a predecessor from runtime labels. Each runtime invocation has an independent anchor. Launch and matrix identities share the same Node/Bun capture while preserving explicit identities, the separately observed target source, and unknown facts. A forced Node script child remains distinct from a Bun harness.

The named QA artifact format changes to v3 with a coordinated bundled producer/reader/workflow cutover. External v2-only consumers must upgrade alongside producers. No runtime configuration/default surface, new default release gate, or SQLite schema migration is added.

The change removes scenario-ID deduplication, unused exports, and consumer import cycles. Against frozen main 8618ee31b8b8f0ce9642d53136b0161f16a57827, production is +4,211/-1,341 (net +2,870), tests and test helpers +8,533/-1,135 (net +7,398), workflows net +51, and docs net +53. Production growth implements occurrence ownership, immutable receipts, nested selection, and the consumer cutover. The final shared identity/containment corrections account for net +64 production lines and +362 test lines.

Evidence

  • Current signed head: d4dbf74241e1881cf811554db310a4fac7025ee9, tree 466a9da342b10eac597e052dd5703b157cb3bdb6, directly follows 93993b1f34ce42f0b8e2c45985959e82dba48702. The sole new change adds three canonical expectations in src/plugins/contracts/registry.contract.test.ts, preserving Vincent Koc's original authorship and provenance from landed #148981, commit 2b8c9f1ad64afea117518b008b23ae5fcc20d9be. Production, manifest, dependency, build, and UI inputs are unchanged. Targeted formatting and diff checks passed. Current-head CI34968089986/a1 completed successfully: all 61 jobs terminal, 48 passed and 13 skipped, including the plugin-contract shard, core lint, test types, dependencies, and aggregate gate. Its sole watcher joined with exit 0 and closed streams; retained log 1,787 B, SHA-256 1cce20ded3556b17b813b6c255a380b2cc9b5bbf0af6f7750eb09c7d0167347d. Exact-head ClawSweeper Revision 7 is accepted below.

  • The separate native 28-case registry contract file and one-file lint attempt remain UNRUN. The native attempt stopped on an HTTP 429 while fetching the Testbox workflow, before source sync or command execution. It earns no test credit. The local child joined with exit 1; remote allocation custody remains unresolved. Its failure and bounded inventory receipts are retained; no resource retry or cleanup was performed. The successful current-head hosted contract and lint jobs supply qualification at job granularity; no standalone native case count is claimed. Native preparation used only the reviewed hosted-receipt route, with no new allocation or test/build execution. Remote allocation custody remains unresolved and is not cleared by CI.

  • Previous-head CI34961928856/a1 is terminal: 45 jobs passed, 13 skipped, and three failed (lint, test types, and the aggregate gate). Both source checks reported upstream duplicate credentialOnly/channelLogin keys on tested merge ae8b001ce8164b9420a5f816e973194623dcc8f8. Its watcher joined with exit 15 and closed streams; this is retained failure evidence, not proof for the new head.

  • The corrected main result is already present in landed #149038, commit 80936b0933a1b21bdb6097916cf69035a14dedc8: its registry test and manifest match the previously reviewed canonical correction. This branch already had the correct manifest values, so only the three missing test expectations from test(plugins): align Copilot auth-choice registry expectations #148981 were replayed. No broader main merge or duplicate manifest edit was needed.

  • Preceding owner-source qualification passed on tree 40716b918df78073d94d15d72a354c7ed6ee7b24 in native run 34960290566, Linux Node 24.19.0/pnpm 12.3.4 with the merged frozen install. It passed affected plugin-test types, three changed-fixture lint checks, matrix-script lint, 188 owner tests +2 matrix interruption tests +1 forced-Node script-child test (29 intentionally filtered skips), private QA build, all 154 SDK export checks, emitted API/containment assertions, and built QA CLI loading. Start/end source records matched all 19 guarded source/input hashes; the command and outer process joined with exit 0 and the Testbox stopped normally.

  • The final emitted QA API SHA-256 was 43bb5f027a50d3a218ef1cac420ad76d30141c3b58a7f8e6d0aee621279a0df5. Full/slim and v2/v3 checks preserved raw history, effective selection, unresolved attempts, coverage caps, and malformed-input rejection. Synthetic containment checks retained four raw rows (two child and two enclosing-command rows), with two effective rows beneath one enclosing root. The retained final native log is 164,365 B, SHA-256 86f664d9ce9c08dcb80c89059fab811ed65fe6061be5696dcccefd68358d6240.

  • The preceding 30c6bbea attempt passed all four type lanes (plugin production, scripts, plugin tests, and root tests), then stopped on fixture-only curly/max-lines lint errors. The final tree moves the new runtime-identity test into its adjacent focused file and braces one assignment; production is unchanged from that attempt. The final continuation refreshed affected plugin-test typing and the failed/unrun stages. Earlier successful type lanes retain that exact production/source binding.

  • The first integrated qualification passed on tree 5f007fdb90d9ea2e32a202fc19c2c36d68869caa in native run 34953679387: four type lanes, three lint cohorts, 148 selected tests, extension-boundary checks, private QA build, emitted API/containment checks, and built QA CLI loading. The selected tests covered runner/coverage/script/process handling, matrix normal/interrupted paths, renderer behavior, and QA/Mantis workflow readers.

  • That combined UI build measured 357,954 B startup JavaScript against the enforced 362,588 B threshold, with seven startup requests and no hard-budget violations. The threshold is inherited from main (362,012 B baseline +512 B growth +64 B variance); this PR does not edit it. CSS was 47,739 B: above the 46,080 B advisory, below the 51,200 B hard limit. UI, lock, build-budget, and boot-manifest inputs remain identical through the final identity/containment corrections, so this result keeps its exact source/input binding.

  • Historical qualification on 76d81b0c9141f55f2fea4757f80d298f263b6629 and the test-only 461aa5b7/597c5baf interruption fixes remain recorded. Both earlier hosted failures are preserved: startup JavaScript exceeded the former 361,938 B limit, and the signal fixture omitted its required argument before the one-line correction. The separate UI remediation has since landed and is included in the frozen main integration.

  • The 1d1af7ba native attempt stopped with exit 124 during source sync, before payload execution. It earns no test/build credit. Its raw failure log and capture remain retained. Current native results are attributed separately.

  • Historical proof archives lost during the earlier restart are not reconstructed or claimed to exist. Their earlier verification receipts remain historical evidence; the current native outputs and review reports are retained.

Before/after UI proof uses the same synthetic fixture and viewport, with each revision serving its own built UI and backend. Clicking the second duplicate-ID row previously displayed and downloaded the first attempt; the corrected row selects only the second attempt and returns its matching log. Both downloads returned HTTP 200 with expected bytes. Gallery/UI behavior is unchanged by the later identity and containment corrections.

Before (23b0cacfc5c74c1b611701c83527b5c5da8a3c1e):

Before: both duplicate-ID rows appear selected and the first attempt log is displayed

After (e2daa5d05cb57380471fd540867c0c781dc1163f, native UI run):

After: only the second row is selected and its matching attempt log is displayed

Maintainer Review Disposition

The current Revision 7 review, reviewed September 15 at 12:37:27 UTC, covers exact head d4dbf74241e1881cf811554db310a4fac7025ee9: no code/security findings, best-fix accepted, visual proof sufficient, and no Rank-up moves. Its three maintainer items are explicitly accepted above: coordinated v3 artifact/reader compatibility, no runtime configuration/default change, and no SQLite migration. Review backing run34969310905/a1 completed successfully. Earlier reviews retain their historical head bindings. Hosted-receipt-only native preparation completed successfully at 13:18:12 UTC, with its child and streams fully closed. It verified five successful exact-head hosted workflows, retained head d4dbf74241e1881cf811554db310a4fac7025ee9, and skipped the already-current push. Its 13 native receipts are retained outside the native checkout. A separate serial merge grant remains pending.

The earlier source autoreview reported one summary-count concern. Independent baseline/current review found a real difference in evidence-only fallback behavior but no established v3 contract requiring independent ownerless diagnostics to increment a scheduled-scenario count. Ordinary generated summaries carry complete counts/scenarios; failed rows already contradict a declared zero-failure aggregate. Scheduled cardinality and lower-level blocked producer detail are intentionally distinct. No count-policy patch was made. The subsequent exact-source autoreview on tree 40716b918df78073d94d15d72a354c7ed6ee7b24 completed both passes with zero actionable P0–P2 findings.

Named follow-up: ownerless diagnostic gating for v3 evidence-only summaries. Decide the intended independent-diagnostic gate separately, preserving v2 aggregate behavior, optional-skip policy, containment, and scheduled cardinality. Root-only evidence counting entered in 5f064797; c37ffd39 subsequently added optional-aggregate protection. The prepared diagnostic remains unrun because a synthetic difference cannot establish that missing policy.

These results do not establish actual Bun execution, live-provider/target-runtime behavior, or full-release qualification. Bun branch fixtures simulate the runtime identity; they do not claim a Bun process ran. Pre-existing UI follow-up: the Evidence Archive search toolbar clips at the right edge at a 1440px viewport in both captures.

@vincentkoc vincentkoc self-assigned this Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check could not safely complete for this revision.

ClawSweeper will not retry this unchanged revision.

Next step: No contributor action is requested. Maintainers should inspect the linked workflow run.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 8:37 AM ET / 12:37 UTC (Revision 7).

ClawSweeper review

What this changes

QA Lab retains repeated scenarios, retries, and nested observations separately, adds explicit proof declarations, and updates reports, galleries, and workflow readers to select the corresponding results and artifacts.

Merge readiness

⛔ Blocked before merge - 3 items remain

This remains useful, distinct work that current main does not implement. No actionable correctness or security findings remain; the latest test-only change preserves the reviewed implementation and accepted compatibility decision.

Priority: P2
Reviewed head: d4dbf74241e1881cf811554db310a4fac7025ee9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful implementation with direct visual proof, retained qualification, resolved prior findings, and an explicitly accepted format-compatibility tradeoff.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected paired built-gallery captures demonstrate selecting the second duplicate row and its matching log; the body records matching download bytes and native evidence-reader qualification. The latest head changes only registry assertions, leaving that production proof applicable; it does not establish live-provider or full-release qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected paired built-gallery captures demonstrate selecting the second duplicate row and its matching log; the body records matching download bytes and native evidence-reader qualification. The latest head changes only registry assertions, leaving that production proof applicable; it does not establish live-provider or full-release qualification.
Evidence reviewed 11 items Pinned re-review delta: The complete comparison with the previous reviewed head contains only three added Copilot registry expectations. Production, workflow, dependency, and UI files are unchanged.
Registry expectations match their producer: The manifest declares both credentialOnly values and the device channelLogin object; normalization preserves these fields and registry assembly forwards them. The registry test also matches fetched main. GitHub confirms the related test correction and manifest restoration merged at #148981 and #149038.
Central problem remains on main: Fetched main still selects gallery entries by their nonunique test ID and marks duplicate IDs selected together; it has no evidence-invocation module. This establishes remaining work independently of the overlapping Copilot and UI fixes.
Findings None None.
Security None None.

How this fits together

QA Lab collects observations and artifacts from automated scenarios. Its evidence readers feed the browser gallery, suite summaries, maturity scorecards, and workflow checks.

flowchart LR
  A[Scheduled scenarios] --> B[QA invocation owner]
  B --> C[Attempts and child runs]
  C --> D[Retained observations and artifacts]
  D --> E[Selected evidence reader]
  E --> F[Reports and workflow checks]
  D --> G[Evidence gallery]
Loading

Before merge

  • Resolve merge risk (P1) - External v2-only readers will reject newly generated v3 artifacts unless upgraded with producers; the PR explicitly accepts this coordinated rollout requirement.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Evidence format transition v3 output; v2 and v3 input The named artifact contract requires external readers to move with producers.
Production versus test growth Production net +2,870; tests and helpers net +7,398 The PR explains production growth through occurrence ownership, retained receipts, containment, and consumer cutover.

Stored data model

Persistent data-model change detected: database schema: extensions/qa-lab/src/mantis/run.runtime.ts, database schema: extensions/qa-lab/src/profile-evidence-sharding.ts, database schema: extensions/qa-lab/src/scorecard-evidence.ts, migration/backfill/repair: extensions/qa-lab/src/scorecard-taxonomy.ts, serialized state: extensions/qa-lab/src/test-file-scenario-script-evidence.ts, serialized state: scripts/qa/render-maturity-docs.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Use the accepted coordinated cutover (recommended)
    Roll out v3 producers with compatible readers while retaining v2 artifact input support, as explicitly accepted in the PR.

Technical review

Best possible solution:

Keep invocation-owned observations and shared selection readers, preserving historical v2 input support through the accepted coordinated v3 rollout.

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

Yes: current main selects duplicate gallery rows by test ID, so loading two matching IDs and selecting the second exposes the wrong selection; supplied before/after captures demonstrate that path. No local runtime reproduction was executed.

Is this the best way to solve the issue?

Yes: one invocation owner and shared reader address scheduling, retry selection, and artifact identity together; the latest registry correction preserves strict assertions against existing metadata.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ed264cc3ca59.

Labels

Label justifications:

  • P2: This improves QA evidence accuracy and artifact selection with a bounded tooling impact.
  • merge-risk: 🚨 compatibility: New v3 artifacts require coordinated upgrades for external consumers that currently accept only v2.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected paired built-gallery captures demonstrate selecting the second duplicate row and its matching log; the body records matching download bytes and native evidence-reader qualification. The latest head changes only registry assertions, leaving that production proof applicable; it does not establish live-provider or full-release qualification.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected paired built-gallery captures demonstrate selecting the second duplicate row and its matching log; the body records matching download bytes and native evidence-reader qualification. The latest head changes only registry assertions, leaving that production proof applicable; it does not establish live-provider or full-release qualification.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected paired built-gallery captures demonstrate selecting the second duplicate row and its matching log; the body records matching download bytes and native evidence-reader qualification. The latest head changes only registry assertions, leaving that production proof applicable; it does not establish live-provider or full-release qualification.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-14T02:59:07.164Z sha d5c9469 :: blocked before merge. :: [P2] Preserve assertion bindings when limiting nested coverage | [P2] Execute repeated Docker instances before recording separate observations
  • reviewed 2026-09-14T04:00:50.979Z sha e2daa5d :: blocked before merge. :: [P2] [P2] Preserve assertion bindings when limiting nested coverage | [P2] [P2] Execute repeated Docker instances before recording observations
  • reviewed 2026-09-14T05:27:36.777Z sha 461aa5b :: blocked before merge. :: none
  • reviewed 2026-09-14T06:00:01.410Z sha 597c5ba :: blocked before merge. :: none
  • reviewed 2026-09-15T11:20:16.882Z sha 93993b1 :: blocked before merge. :: none
  • reviewed 2026-09-15T12:14:09.309Z sha 93993b1 :: blocked before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 03:47
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 14, 2026
@clawsweeper clawsweeper Bot removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 14, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Current head: 597c5baffed7ce0b8b1018fef386af05d931e040. The only change since the reviewed 461aa5b7 head supplies the required SIGINT argument to the fixture’s private signal listener. The affected interruption test, scoped lint, formatting, and diff checks passed. Production bytes and the retained native/API/UI proof are unchanged. The PR body preserves the prior failures and the separately unresolved Control UI budget result; current-head CI remains pending.

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts extensions: qa-lab labels Sep 15, 2026
@vincentkoc
vincentkoc merged commit 9ccba21 into main Sep 15, 2026
130 of 131 checks passed
@vincentkoc
vincentkoc deleted the feat/qa-evidence-occurrences-20260913 branch September 15, 2026 13:30
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…claw#147756)

* feat(qa): retain invocation evidence and explicit proof ownership

* test(qa): require evidence in maturity attestation guard

* refactor(qa): document evidence assertion invariants

* fix(qa): preserve typed scenario grouping and nested evidence

* test(qa): use canonical direct conversation fixture

* refactor(qa): keep internal evidence definitions private

* refactor(qa): split evidence validation and command planning

* test(qa): remove unused planning mock import

* refactor(qa): preserve matrix evidence with explicit copying

* fix(qa): preserve invocation ownership across retained child evidence

* fix(qa): preserve immutable publication and artifact bases

* fix(qa): preserve continuation artifacts and selected outcomes

* fix(qa): retry observed outcomes while retaining selected evidence

* fix(qa): frame source evidence and preserve artifact test boundaries

* fix(qa): separate diagnostics from scenario proof

* fix(qa): evaluate rowless retry proof by selection

* fix(qa): retain unresolved maturity evidence

* fix(qa): preserve child coverage and repeated Docker lanes

* refactor(qa): keep evidence schemas independent of consumers

* test(qa): isolate matrix interruption from the test runner

* test(qa): pass the signal name to the interruption listener

* test(plugins): align Copilot auth-choice registry expectations (openclaw#148981)

(cherry picked from commit 2a19a12)
steipete added a commit that referenced this pull request Oct 15, 2026
#173065)

* refactor(browser,qa-lab): consolidate internal validation and capture

Keep external validation, navigation and credential authority, selected evidence
integrity, process settlement and public contracts. Trust canonical normalized
actions and fresh internal evidence instead of repeating their owners' work.
Stage bundled sources and compute their runtime host floor in one pass.

Best-effort tradeoffs accepted

- Internal child evidence changing completed/pending history: #147756/#168841 describe synthetic ownership foundations, not human mutation incidents. Keep the first captured facts; canonical publication still validates the graph.
- Invalid internal evidence selection/combination: duplicate preflights from #147756 are not external boundaries. Invalid snapshots fail at canonical publication instead of every adapter/select step.
- Fresh V3 snapshots or local taxonomy objects mutating between private calls: no external writer holds them. Use owner-held facts; path rebasing still copies because it mutates paths.
- Gallery roots/symlinks changing during one request: private consumers use the canonical ingress root. Actual artifact containment and download authorization remain at their boundaries.
- Gallery model rows not belonging to their own declaration list: impossible because those rows are created from that exact list. Actual arbitrary-path downloads keep the allowlist.
- Configured replacement Telegram skill returning malformed internal results: #133030 introduced a canonical leased-skill producer, not a human malformed-result incident. Canonical credential validation and effect-time lease health remain; malformed replacements fail at use.
- Local filesystem calls hanging during Mantis cleanup: #111051/#158313 provide synthetic timeout qualification, not a human uncancellable-local-FS incident. Await the OS; preserve Git deadlines, exact path/inode authority and process settlement.
- Mantis path replacement between consecutive ownership probes: preserve one precheck plus child-side pinned identity at destructive dispatch; a disappeared/replaced path fails safely.
- Typed log collector returning an impossible bad cursor: #137622 added the retirement mode as a review defense. Trust its paired owner; retain bounded rollover, redaction and legacy fallback.
- Fetch implementation ignoring AbortSignal: Matrix's removed outer timer defended fake-only behavior. Native request deadline/cancellation, parallel healthy-peer probes, response-body and loser cleanup remain.
- Artifact disappearing immediately after its successful own write: #92606/445317a38b1 add the redundant access check, with no human disappearance report. Real write failures propagate; actual readers detect later deletion.
- Private Browser leaves receiving unnormalized values: #63977 owns external /act normalization; extraction #113771 retained mirror checks. Keep external fill repair #131231 and all effect authority. Invalid internal calls may fail at Playwright rather than a second validator.
- Unnormalized oversized/deep batches reaching the private executor: restored executor 61d171a has no human bounds incident. Keep recursive ingress depth repair #120274 and total count bound #63977; remove duplicate executor depth plumbing.
- Abort firing between synchronous resetTransport checks: #126407 added synthetic lifecycle coverage. No async work intervenes, so keep entry and post-await invocation checks.
- Taxonomy file disappearing after successful parse: #91500/#92558 introduced reporting, not a human mid-report deletion incident. Finish with parsed facts; the next read notices deletion.

The named standalone session-memory backend and tests remain untouched.

Proof: fresh independent P0-P2 review scoped-clean after repairing a reproduced
false-coverage descendant-admission defect; targeted source graph types and
syntax-boundary lint pass; runtime/static cycles both zero; format/diff clean.
Browser focused owner/sibling cohort: 12 files, 194 tests pass.
Invocation/containment/staging: 3 files, 34 tests pass, including the reproduced
false-coverage regression. Both unchanged Gateway-child staging-cleanup cases
pass after retaining staging-directory creation before root metadata parsing.

Below-500 coordinator packet: 442 net production LOC removed (+198/-640).
No cleanup PR or merge claim. Full check-changed, type-aware package lint and
Telegram command-menu Gateway E2E remain unproven under host saturation.
The remaining full QA owner cohort was interrupted before assertions; not green.
Suppression inventory fails only on untouched UI rows, reproduced on clean main
45b463f; no suppression allowance changed.

* refactor(browser,qa-lab): remove test-only execution indirection

Publish Chrome MCP handles synchronously and wait only for transport readiness.
Keep process identity, close settlement, waiter sharing and effect authority.
Remove character-eval callback injection and private projection/type mirrors;
reuse canonical lifecycle cancellation and timer bounds.

Best-effort tradeoffs accepted

- Delayed asynchronous MCP factory handles existed only through the test seam (ea2b558/#104601; extracted by #113114). Linked #103784 is a forced Delay launch/source-proof matrix, not a human actual-use incident. Production constructs the handle synchronously; readiness remains asynchronous and cancellable, and exact owned process cleanup still settles before replacement.
- Same-tick lifecycle completion and abort now follow the canonical SDK Promise.race ordering rather than a private listener implementation (#127761/22e12267f68, synthetic lifecycle qualification). Shared work is not cancelled; synchronous pre-abort and effect authority stay intact.
- A private already-clamped timer no longer repeats the SDK maximum check (4abde61; centralized by 5f4fc75). The same canonical grace helper caps the result, with no timeout change.

Character-eval test callbacks were never supplied by its sole production CLI
caller (3101d81; #92606). Tests now mock the actual suite/manual-lane owners.
Six private pwAi projections had only test consumers; canonical session exports
remain. Port reservation accepts the actual node:net.Server instead of a mirror.

Full-branch production reduction: 610 net lines (+241/-851), excluding tests,
fixtures, test-support, generated files and declarations. No public/config/SDK,
storage, protocol or dependency contract changes. Phase E remains untouched.

* fix(qa-lab): drop unproven cleanup paths and type standalone restorer

Restore character-eval and CLI runtime byte-for-byte to the cleanup base after
exact-head CI found concurrent mock bypass and captured-taxonomy failures.
Keep every original behavioral assertion; no retry, timeout or skip changes.
The local character replay was inconclusive, so drop its whole cleanup cluster
instead of waiting for host capacity. Restore CLI snapshot capture as well.

Declare the imported credential-restorer's receiver-free function contract.
The canonical exported function never uses this; no runtime guard or credential
validation changes. This fixes the typed unbound-method lint finding.

Branch production reduction is now 568 net lines (+229/-797), tests/fixtures/
test-support/generated/declarations excluded. Prior full autoreview remains
valid for this strict restoration subset; independent repair review confirms
exact base blobs and the type-only correction. Source-graph types, focused
syntax-boundary lint, formatting and diff checks pass.

* refactor(qa-lab): split pending Telegram credential cleanup

Restore the two Telegram files to current main for #173065. Park their rewrite and receiver-free lint contract on deslop/y13-telegram-userbot-credential-20261015 pending Test Server userbot proof with Convex-leased credentials. Coordinator waives the floor for the remaining 474 net production lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
openclaw#173065)

* refactor(browser,qa-lab): consolidate internal validation and capture

Keep external validation, navigation and credential authority, selected evidence
integrity, process settlement and public contracts. Trust canonical normalized
actions and fresh internal evidence instead of repeating their owners' work.
Stage bundled sources and compute their runtime host floor in one pass.

Best-effort tradeoffs accepted

- Internal child evidence changing completed/pending history: openclaw#147756/openclaw#168841 describe synthetic ownership foundations, not human mutation incidents. Keep the first captured facts; canonical publication still validates the graph.
- Invalid internal evidence selection/combination: duplicate preflights from openclaw#147756 are not external boundaries. Invalid snapshots fail at canonical publication instead of every adapter/select step.
- Fresh V3 snapshots or local taxonomy objects mutating between private calls: no external writer holds them. Use owner-held facts; path rebasing still copies because it mutates paths.
- Gallery roots/symlinks changing during one request: private consumers use the canonical ingress root. Actual artifact containment and download authorization remain at their boundaries.
- Gallery model rows not belonging to their own declaration list: impossible because those rows are created from that exact list. Actual arbitrary-path downloads keep the allowlist.
- Configured replacement Telegram skill returning malformed internal results: openclaw#133030 introduced a canonical leased-skill producer, not a human malformed-result incident. Canonical credential validation and effect-time lease health remain; malformed replacements fail at use.
- Local filesystem calls hanging during Mantis cleanup: openclaw#111051/openclaw#158313 provide synthetic timeout qualification, not a human uncancellable-local-FS incident. Await the OS; preserve Git deadlines, exact path/inode authority and process settlement.
- Mantis path replacement between consecutive ownership probes: preserve one precheck plus child-side pinned identity at destructive dispatch; a disappeared/replaced path fails safely.
- Typed log collector returning an impossible bad cursor: openclaw#137622 added the retirement mode as a review defense. Trust its paired owner; retain bounded rollover, redaction and legacy fallback.
- Fetch implementation ignoring AbortSignal: Matrix's removed outer timer defended fake-only behavior. Native request deadline/cancellation, parallel healthy-peer probes, response-body and loser cleanup remain.
- Artifact disappearing immediately after its successful own write: openclaw#92606/a5445ce41eb add the redundant access check, with no human disappearance report. Real write failures propagate; actual readers detect later deletion.
- Private Browser leaves receiving unnormalized values: openclaw#63977 owns external /act normalization; extraction openclaw#113771 retained mirror checks. Keep external fill repair openclaw#131231 and all effect authority. Invalid internal calls may fail at Playwright rather than a second validator.
- Unnormalized oversized/deep batches reaching the private executor: restored executor 1034ccb has no human bounds incident. Keep recursive ingress depth repair openclaw#120274 and total count bound openclaw#63977; remove duplicate executor depth plumbing.
- Abort firing between synchronous resetTransport checks: openclaw#126407 added synthetic lifecycle coverage. No async work intervenes, so keep entry and post-await invocation checks.
- Taxonomy file disappearing after successful parse: openclaw#91500/openclaw#92558 introduced reporting, not a human mid-report deletion incident. Finish with parsed facts; the next read notices deletion.

The named standalone session-memory backend and tests remain untouched.

Proof: fresh independent P0-P2 review scoped-clean after repairing a reproduced
false-coverage descendant-admission defect; targeted source graph types and
syntax-boundary lint pass; runtime/static cycles both zero; format/diff clean.
Browser focused owner/sibling cohort: 12 files, 194 tests pass.
Invocation/containment/staging: 3 files, 34 tests pass, including the reproduced
false-coverage regression. Both unchanged Gateway-child staging-cleanup cases
pass after retaining staging-directory creation before root metadata parsing.

Below-500 coordinator packet: 442 net production LOC removed (+198/-640).
No cleanup PR or merge claim. Full check-changed, type-aware package lint and
Telegram command-menu Gateway E2E remain unproven under host saturation.
The remaining full QA owner cohort was interrupted before assertions; not green.
Suppression inventory fails only on untouched UI rows, reproduced on clean main
a7fbdc2; no suppression allowance changed.

* refactor(browser,qa-lab): remove test-only execution indirection

Publish Chrome MCP handles synchronously and wait only for transport readiness.
Keep process identity, close settlement, waiter sharing and effect authority.
Remove character-eval callback injection and private projection/type mirrors;
reuse canonical lifecycle cancellation and timer bounds.

Best-effort tradeoffs accepted

- Delayed asynchronous MCP factory handles existed only through the test seam (2f7b3f8/openclaw#104601; extracted by openclaw#113114). Linked openclaw#103784 is a forced Delay launch/source-proof matrix, not a human actual-use incident. Production constructs the handle synchronously; readiness remains asynchronous and cancellable, and exact owned process cleanup still settles before replacement.
- Same-tick lifecycle completion and abort now follow the canonical SDK Promise.race ordering rather than a private listener implementation (openclaw#127761/71473724074, synthetic lifecycle qualification). Shared work is not cancelled; synchronous pre-abort and effect authority stay intact.
- A private already-clamped timer no longer repeats the SDK maximum check (e8241d3; centralized by ca3aad3). The same canonical grace helper caps the result, with no timeout change.

Character-eval test callbacks were never supplied by its sole production CLI
caller (46ad8dd; openclaw#92606). Tests now mock the actual suite/manual-lane owners.
Six private pwAi projections had only test consumers; canonical session exports
remain. Port reservation accepts the actual node:net.Server instead of a mirror.

Full-branch production reduction: 610 net lines (+241/-851), excluding tests,
fixtures, test-support, generated files and declarations. No public/config/SDK,
storage, protocol or dependency contract changes. Phase E remains untouched.

* fix(qa-lab): drop unproven cleanup paths and type standalone restorer

Restore character-eval and CLI runtime byte-for-byte to the cleanup base after
exact-head CI found concurrent mock bypass and captured-taxonomy failures.
Keep every original behavioral assertion; no retry, timeout or skip changes.
The local character replay was inconclusive, so drop its whole cleanup cluster
instead of waiting for host capacity. Restore CLI snapshot capture as well.

Declare the imported credential-restorer's receiver-free function contract.
The canonical exported function never uses this; no runtime guard or credential
validation changes. This fixes the typed unbound-method lint finding.

Branch production reduction is now 568 net lines (+229/-797), tests/fixtures/
test-support/generated/declarations excluded. Prior full autoreview remains
valid for this strict restoration subset; independent repair review confirms
exact base blobs and the type-only correction. Source-graph types, focused
syntax-boundary lint, formatting and diff checks pass.

* refactor(qa-lab): split pending Telegram credential cleanup

Restore the two Telegram files to current main for openclaw#173065. Park their rewrite and receiver-free lint contract on deslop/y13-telegram-userbot-credential-20261015 pending Test Server userbot proof with Convex-leased credentials. Coordinator waives the floor for the remaining 474 net production lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: qa-lab merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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