Skip to content

test(e2e): select messaging and Shields runtime proofs - #10536

Merged
prekshivyas merged 2 commits into
mainfrom
codex/e2e-source-ownership
Sep 1, 2026
Merged

prekshivyas merged 2 commits into
mainfrom
codex/e2e-source-ownership

Conversation

@cjagwani

@cjagwani cjagwani commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Messaging and Shields runtime changes now select their focused branch E2E proof lanes. Production changes that leave the live test files untouched can no longer fall through to only the generic risk plan.

Reason

PR #10480 protects fast-test parity when a live E2E test changes, but recent regressions in #10153 and #10155 came from production runtime changes. The live test files did not change, so that guard could not select the missing messaging and Shields proof.

Related issues

Relates to #10153
Relates to #10155

Changes

  • Map shared messaging runtime inputs to channel lifecycle, provider, Hermes Discord, and OpenClaw pairing proofs.
  • Map Hermes and OpenClaw startup inputs to their agent-specific messaging and Shields proofs.
  • Map shared Shields runtime inputs to both Hermes and OpenClaw Shields proofs.
  • Bump the deterministic risk-plan version and add risk-plan plus rendered-workflow regression coverage.

The existing trusted risk planner is the current PR workflow consumer. Extending that source ownership directly is necessary because a live-test parity rule cannot observe production-only changes.

Verification

  • npm run build:cli — passed
  • npm run typecheck:cli — passed after rebasing onto current main
  • npx vitest run --project integration test/automation/pull-requests/pr-risk-plan.test.ts --testTimeout 60000 — 154 passed after rebasing onto current main
  • npx vitest run --project e2e-support test/e2e/support/workflow-plan.test.ts --testTimeout 60000 — 88 passed after rebasing onto current main
  • git diff --check — passed
  • Documentation writer review — no user-facing documentation change needed
  • GitHub commit verification — commit is Verified with a valid signature
  • Secret review — the diff contains no secrets, API keys, or credentials

Review notes

This changes the trusted E2E selection control plane, not production runtime behavior. Regression tests verify both the selected risk jobs and their resolved workflow lanes.

The default 5-second test timeout was too short for several subprocess-based workflow-plan cases under local machine load. Re-running the same full file with a 60-second timeout passed all 88 tests; required CI remains the merge gate.


Signed-off-by: Charan Jagwani [email protected]

Summary by CodeRabbit

  • Tests

    • Expanded automated coverage for messaging runtime, Hermes startup, OpenClaw pairing, and Shields runtime scenarios.
    • Added validation for managed-policy and shared runtime guard behavior.
    • Improved workflow checks to select the appropriate messaging and inference test lanes while excluding unrelated jobs.
  • Chores

    • Updated risk-based test planning to recognize new messaging, startup, and Shields changes and select matching verification jobs.
    • Advanced the risk-plan version to reflect the expanded coverage.

@cjagwani cjagwani self-assigned this Aug 28, 2026
@github-code-quality

github-code-quality Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit 5e27fd0 in the codex/e2e-source-own... branch remains at 96%, unchanged from commit fc353c8 in the main branch.


Updated September 01, 2026 20:30 UTC

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c618b33b-0935-440d-bbd3-ea74ef96cf86

📥 Commits

Reviewing files that changed from the base of the PR and between 8708e19 and 5e27fd0.

📒 Files selected for processing (3)
  • test/automation/pull-requests/pr-risk-plan.test.ts
  • test/e2e/support/workflow-plan.test.ts
  • tools/advisors/risk-plan.mts
🚧 Files skipped from review as they are similar to previous changes (3)
  • test/e2e/support/workflow-plan.test.ts
  • tools/advisors/risk-plan.mts
  • test/automation/pull-requests/pr-risk-plan.test.ts

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


📝 Walkthrough

Walkthrough

The risk plan now maps messaging, Hermes, OpenClaw, and Shields runtime changes to focused E2E jobs. Tests validate job selection, managed-policy expectations, runtime proofs, and the updated plan version.

Changes

Runtime risk-plan selection

Layer / File(s) Summary
Runtime categories and job selection
tools/advisors/risk-plan.mts
Increments the risk-plan version to 20. Adds runtime file inventories, job groups, focused matching, and required-job selection for messaging, Hermes, OpenClaw, and Shields changes.
Risk-plan and workflow selection tests
test/automation/pull-requests/pr-risk-plan.test.ts, test/e2e/support/workflow-plan.test.ts
Adds coverage for Hermes startup, messaging, OpenClaw pairing and restart, Shields, broad runtime selections, and exclusion of the aggregate channels-stop-start job.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 5e27f

This change updates E2E proof selection and its regression coverage without changing production runtime behavior. No actionable merge-blocking risk remains beyond normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant ChangedFiles
  participant RiskPlanMatcher
  participant RequiredJobSelection
  participant WorkflowPlanner
  ChangedFiles->>RiskPlanMatcher: provide changed runtime files
  RiskPlanMatcher->>RequiredJobSelection: return matched runtime categories
  RequiredJobSelection->>WorkflowPlanner: provide required E2E jobs and matched files
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: selecting messaging and Shields runtime proof jobs in E2E risk planning.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/e2e-source-ownership

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit b8f6227. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

All previous runs

@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance integration: discord Discord integration or channel behavior integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior labels Aug 28, 2026
@copy-pr-bot

copy-pr-bot Bot commented Aug 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@cv cv added the v0.0.119 label Sep 1, 2026

@rsliter rsliter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5e27fd0 against 8708e19. The risk planner now maps production messaging, startup, and Shields inputs to their focused live proof lanes, while the workflow tests verify the resolved target matrices and avoid treating the aggregate selector as a runnable job. Linked #10153 and #10155 establish the observed gaps, no competing open implementation exists, CodeRabbit and Advisor are clear, every required check passes, and the security review found no weakening of the trusted E2E selection boundary.

@prekshivyas
prekshivyas merged commit aeb6328 into main Sep 1, 2026
49 of 51 checks passed
@prekshivyas
prekshivyas deleted the codex/e2e-source-ownership branch September 1, 2026 20:40
cv added a commit that referenced this pull request Sep 2, 2026
## Outcome

Improve PR Review Advisor specialist investigation quality using
independently selected prompt variants from three model-backed
historical-PR A/B rounds.

## Reason

The clean benchmark showed that broad prompts could attribute inherited
defects to a PR, miss incomplete immutable-pin migrations, and conflate
producer or rejection tests with positive consumer proof.

## Changes

- Require changed-file, parent-state, consumer, and contract causality.
- Narrow architecture ownership and add migration-completion and
reduction-simplification specialists.
- Adopt independently selected delivery, documentation, and verification
prompts.
- Preserve tracked internal symlinks in local snapshots while removing
escaping links; direct patching could not preserve this security
boundary and valid transitions together.
- Protect snapshot behavior with internal-link and escaping-to-internal
retarget regression coverage.

## Verification

- CLI and plugin builds — passed.
- `npm run typecheck:cli` — passed.
- `npm run checks:repository` — passed.
- Focused integration tests — 47/47 passed.
- Diff whitespace check — passed.
- Independent documentation review — PASS.
- Three A/B rounds on #10659, #10536, and #10618 with
`azure/openai/gpt-5.6-terra` — completed.
- No secrets, API keys, or credentials are present in the diff.

## Review notes

This draft is stacked on #10813. Output length and finding count were
not selection criteria; prompts were selected independently for
factuality, recall, causality, calibration, and remedies.

---
Signed-off-by: Carlos Villela <[email protected]>

Signed-off-by: Carlos Villela <[email protected]>
@wscurran wscurran added area: messaging Messaging channels, bridges, manifests, or channel lifecycle area: security Security controls, permissions, secrets, or hardening labels Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure area: messaging Messaging channels, bridges, manifests, or channel lifecycle area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: discord Discord integration or channel behavior integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants