refactor(onboard): centralize messaging plan authority - #7718
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 424abbc in the TypeScript / code-coverage/cliThe overall coverage in commit 424abbc in the Show a code coverage summary of the most impacted files.
Updated |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe PR centralizes messaging-plan authority across registry, staged, and session state. It adds canonical provider-binding validation, effect-group fingerprints, checkpoint replay checks, and sandbox onboarding coverage for provider changes and credential consistency. ChangesOnboarding authority and provider replay
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
Second-opinion terminology and E2E selections are advisory. They do not change the primary assessment or E2E / PR Gate. Since last review: 0 prior items resolved · 0 still apply · 0 new items found 3 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Coordination note for future Pi onboardingThis is not a scope request for this PR. It records how #7923 / #7927 should consume the authority established here. Pi v1 currently excludes messaging, but Pi onboarding still needs the same desired-state rules: one authoritative source, logical bindings without credential values, conflict rejection before effects, and exact receipt revalidation before resume skips. Recommended order:
Pi work should not modify or bypass |
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Summary
This PR centralizes messaging plan selection in one internal authority. The registry plan controls an existing sandbox. For a new or pending target, a staged plan takes precedence over a matching session plan. Provider-effect recovery receipts also own the exact credential bindings they created, so resume validates the complete live binding set before reuse and removes replaced keys without changing another effect group.
Related Issue
Refs #7701
Changes
Type of Change
Quality Gates
424abbc0c7f3bbb707cdd208230191720df581adagainst base271c4d16f1e1f183371654fb6ab6a8a2a2914ca2; no findings. The complete 34-file effective patch remains stable at patch IDa0e2721475d310a3fe9b2f1fc7b019fee3a08184. Registry authority is resolved before staged or saved intent for known targets. Checkpoint receipts store only provider names, provider types, and credential keys. Malformed, duplicate, cross-owned, or mismatched bindings fail before mutation, and live bindings are revalidated under the gateway lock before sandbox reuse or creation. Refreshed-main model-selection, state-directory, and Windows installer changes do not alter these credential, authorization, checkpoint, or messaging boundaries. No injection, dependency, endpoint-authentication, cryptography, permission, logging, secret-handling, network, or resource-control regression was introduced. All nine security categories pass.Documentation Writer Review
docs-updated424abbc0c7f3bbb707cdd208230191720df581adagainst base271c4d16f1e1f183371654fb6ab6a8a2a2914ca2. The 34-file effective patch remains identical to prior reviewed headca358bdaffaebcba390585f1129765a3096e9a8e, with stable patch IDa0e2721475d310a3fe9b2f1fc7b019fee3a08184. Verifieddocs/security/credential-storage.mdxandsrc/lib/onboard/lifecycle-contracts.mdagainst the sandbox handler, messaging-plan authority, checkpoint recording and replay, credential-provider registration, and regression tests. Current-main Ollama/NIM changes do not affect these claims. The updated credential-order text renders only in the OpenClaw guide variant, as intended. Changed comments, diagnostics, and test titles follow the repository writing rules.git diff --checkpassed;npm run test:changedpassed with no affected test files.Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailable424abbc0c7f3bbb707cdd208230191720df581adis identical to the prior validated patch, with stable patch IDa0e2721475d310a3fe9b2f1fc7b019fee3a08184. All 17 changed test files previously passed (299/299); currentgit diff --checkpassed;npm run test:changedpassed with no affected test files; and the normal pre-push CLI TypeScript check passed.npm run validate:pr, and GitHub CI is the current exact-head broad validation authority. No non-success check is accepted or waived.npm run docsbuilds without warnings (doc changes only) — exact-head docs validation passed with 0 errors and 2 existing warnings.Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
New Features
Security
Documentation