Skip to content

fix(qa): attest realized profile executions - #119761

Merged
vincentkoc merged 4 commits into
mainfrom
fix/qa-profile-evidence-attestation-20260805
Aug 6, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
fix/qa-profile-evidence-attestation-20260805

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

QA profile evidence could prove neither the canonical membership partition nor the exact execution cells actually started. Worse, the suite launcher recorded cells before credential checks and adapter creation, so a blocked partition could appear fully observed.

Why This Change Was Made

QA Lab now owns one schema-v2 profile plan containing canonical membership, selected scenarios, reasoned exclusions, expected scheduler cells, producer-observed cells, explicit missing cells, matching counts, and a stable SHA-256 digest.

The scheduler and runtime share one execution-cell expansion helper. Observed cells now come only from the suite producer after adapter creation and scenario start:

  • standard runs record scenario-loop entry;
  • isolated runs aggregate child producer results;
  • runtime parity aggregates nested runtime-cell producer results;
  • credential-unavailable, adapter-failure, and synthetic partition-failure paths record no observed cell and infer no realized driver.

Generic schema-v2 evidence may omit profilePlan. QA profile and maturity workflows require and validate it, with an explicit rerun-required error for old artifacts.

Fixes #115753.

Related history:

User Impact

Operators and maturity automation can verify that selected and excluded scenarios exactly partition profile membership, successful evidence observed every required execution cell, allowed failures name missing cells, and unexpected cells invalidate evidence. Blocked credentials can no longer manufacture successful scheduling evidence.

Evidence

  • Exact head: 7f28c951cddd15e1d7ac88d0f4606aea6fa8b028
  • Branch base: 397a60582a109489d7dd4f1be1136251c10dc1b9
  • Focused QA Lab tests: 137 passed.
  • Post-CI-fix owner test: 47 passed.
  • Workflow guards: 101 passed, 2 skipped by platform contract.
  • Artifact round trip: the actual workflow producer and consumer accept complete and allowed-incomplete serialized plans, and reject a digest-mismatched plan.
  • Credential-unavailable regression: blocked live partitions omit observed cells and realized live-driver evidence.
  • Runtime parity regression: the parent reports a scenario only after a nested producer starts it.
  • Extension typecheck: passed.
  • Extension test typecheck: passed; this directly reproduces and clears the prior hosted check-test-types failure.
  • Formatting, git diff --check, dependency/plugin/dead-export/declaration guards: passed.
  • Autoreview: clean, no accepted/actionable findings.
  • Remote changed-file proof did not start: Blacksmith Testbox was unauthenticated and the routed fallback failed during sync-manifest creation. Trusted local fallback and exact-head hosted CI cover the branch before landing.
  • Codex contract inspected directly at openai/codex@bb1af235ea2822d7a40f75ef52e4d6a2cde84da2: codex-rs/app-server/src/message_processor.rs, codex-rs/app-server-protocol/src/protocol/v2/turn.rs, and codex-rs/app-server/src/thread_state.rs. Codex records a turn only after turn/start reaches TurnStarted; QA parity therefore consumes nested producer-start facts rather than parent scheduling.

LOC:

  • Production TypeScript: +500/-122, net +378.
  • Tests: +499/-47, net +452.
  • Workflow YAML: +32/-2, net +30.
  • The final repair commit itself is production net +69 and tests net +35.

The production growth is the persisted schema and validator, scheduler-owned expected-cell expansion, producer-owned realized execution/driver facts, CLI evidence attachment, and shared digest/success semantics imported by both workflows. The LOC audit reduced profile-evidence-plan.ts from 223 to 171 lines and removed environment-derived driver inference instead of duplicating policy in workflow JavaScript.

No changelog entry: this is QA evidence and CI attestation infrastructure.

Punchcard-Session: silver-meadow-lantern-vx

@vincentkoc vincentkoc self-assigned this Aug 5, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 5, 2026 22:15
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc force-pushed the fix/qa-profile-evidence-attestation-20260805 branch from 7291c32 to 2bff9cd Compare August 5, 2026 22:35
@openclaw-barnacle openclaw-barnacle Bot added size: L maintainer Maintainer-authored PR labels Aug 5, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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 Aug 5, 2026
Persist the canonical profile membership partition and scheduler-owned expected and observed execution cells in QA evidence. Validate successful evidence completeness and bind the canonical plan digest into workflow manifests.

Punchcard-Session: silver-meadow-lantern-vx
@vincentkoc
vincentkoc force-pushed the fix/qa-profile-evidence-attestation-20260805 branch from 2bff9cd to b7856e3 Compare August 5, 2026 22:46
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

Punchcard-Session: silver-meadow-lantern-vx
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: ruel225 <[email protected]>
Punchcard-Session: silver-meadow-lantern-vx
@vincentkoc vincentkoc changed the title fix(qa): attest profile execution plans fix(qa): attest realized profile executions Aug 5, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

Punchcard-Session: silver-meadow-lantern-vx
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer disposition for the exact-head ClawSweeper proof-sufficiency move:

  • Directly inspected openai/codex@bb1af235ea2822d7a40f75ef52e4d6a2cde84da2. turn/start submission and turn/started are distinct in codex-rs/app-server/src/request_processors/turn_processor.rs:474-617, codex-rs/app-server/src/bespoke_event_handling.rs:156-184, codex-rs/app-server/src/thread_state.rs:158-179, codex-rs/app-server-protocol/src/protocol/v2/turn.rs:71-168,390-393, and codex-rs/core/src/session/tests.rs:520-570.
  • The attested cell contract is (scenarioId, executionKind, channel), not a provider/runtime turn. QA Lab therefore owns realization at scenario start after lab, transport, provider, gateway, and transport readiness.
  • The standard runner records startedScenarioIds at scenario-loop entry; runtime parity propagates only child startedScenarioIds; the launcher records observed cells only from returned started IDs. A pre-producer or credential failure remains missing.
  • Requiring downstream Codex turn/started would conflate scheduling attestation with scenario outcome. A scenario that starts and then fails its provider turn must remain observed and failed, not unscheduled.

No code change is required. Scenario-loop entry is the intended QA execution-cell boundary, and the proof-sufficiency Rank-up move is satisfied.

@vincentkoc
vincentkoc merged commit 7dcb1ad into main Aug 6, 2026
129 checks passed
@vincentkoc
vincentkoc deleted the fix/qa-profile-evidence-attestation-20260805 branch August 6, 2026 00:33
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
* fix(qa): attest profile execution plans

Persist the canonical profile membership partition and scheduler-owned expected and observed execution cells in QA evidence. Validate successful evidence completeness and bind the canonical plan digest into workflow manifests.

Punchcard-Session: silver-meadow-lantern-vx

* test(ci): exercise QA evidence artifact round trips

Punchcard-Session: silver-meadow-lantern-vx

* fix(qa): record only realized profile executions

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: ruel225 <[email protected]>
Punchcard-Session: silver-meadow-lantern-vx

* test(qa): type realized channel evidence

Punchcard-Session: silver-meadow-lantern-vx

---------

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: ruel225 <[email protected]>
vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 6, 2026
…cope

* origin/main: (24 commits)
  fix(backup): skip transient gateway lock databases (openclaw#119782)
  test(agents): use canonical auth session fixtures (openclaw#119821)
  fix(memory): keep QMD file hints after stale docid misses (issue openclaw#113041) (openclaw#113515)
  test(doctor): align fast-path repair contracts (openclaw#119812)
  perf(agents): index subagent recovery ownership (openclaw#119793)
  fix(gateway): keep chat startup off catalog discovery (openclaw#119742)
  fix(test): keep TUI PTY suites in their owner lane (openclaw#119787)
  docs: correct dashboard auth precedence (openclaw#119785)
  docs: document control ui owner handoff
  fix: grant host-authorized control ui owner access
  fix(worktrees): preserve registered roots during orphan cleanup (openclaw#119709)
  fix(matrix): prevent shared client key collisions (openclaw#119667)
  fix(diagnostics-otel): propagate exported span context (openclaw#112283)
  fix(worker): isolate state observer failures (openclaw#117507)
  fix(qa): attest realized profile executions (openclaw#119761)
  fix(gateway): finish successful sessions after timestamp races (openclaw#119752)
  fix(agents): fence restart recovery lifecycle (openclaw#119776)
  fix(ui): preserve chat history and active run timing (openclaw#119729)
  improve(ollama): reduce inactive startup cost (openclaw#119745)
  improve(gateway): defer inactive plugin runtime imports (openclaw#119733)
  ...
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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: QA evidence reports requested channel driver instead of realized adapter

1 participant