fix(ci): restore architecture limits and isolate package fixtures - #8310
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe change lowers three architecture budget thresholds, clarifies onboarding lifecycle ordering, and adds a shared temporary package-fixture helper for package-contract tests. ChangesOnboarding architecture and lifecycle contracts
Package-contract test fixtures
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit edf3652 in the TypeScript / code-coverage/cliThe overall coverage in commit edf3652 in the Show a code coverage summary of the most impacted files.
Updated |
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. 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>
|
Post-merge follow-up required on current main a82887e: test/package-contract/openshell-policy-boundary.test.ts now builds an isolated fixture with dist and schemas, but dist/lib/policy/merge.js requires ../../../nemoclaw/dist/shared/openshell-policy-boundary.cjs. The fixture must also copy nemoclaw/dist/shared. This reproduces locally and in required build/typecheck on both #8313 and #8324 as MODULE_NOT_FOUND. It is a shared test-fixture regression, not a failure introduced by either destroy-flow PR. |
<!-- markdownlint-disable MD041 --> ## Summary The isolated package-contract fixture now includes the `nemoclaw/dist` artifacts that the compiled CLI imports. This restores the packaged policy validator check on current main without changing production packaging or runtime behavior. ## Related Issue Follow-up to #8310. ## Changes - Copy the published `nemoclaw/dist` artifacts into the isolated npm pack fixture. - State that parallel package-contract workers read only the copied package inputs. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: This change affects only package-contract fixture inputs and one code comment. It does not change user-visible behavior. - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: Codex Desktop reviewed commit `cc27d79ef`; security review result: PASS for all nine categories. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Documentation Writer Review - [x] Documentation writer subagent reviewed the completed changes - Result: `no-docs-needed` - Evidence: Package-contract fixture inputs and one code comment changed. No user-visible API, CLI, configuration, workflow, default, or error changed. - Agent: Codex Desktop <!-- docs-review-head-sha: cc27d79 --> <!-- docs-review-agents-blob-sha: 3dd7c24 --> ## DGX Station Hardware Evidence - [ ] Tested on DGX Station - Tested commit: - Station profile/scenario: - Result: - Supporting evidence: ## Verification - [x] PR description includes a `Signed-off-by:` line and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run validate:pr` passed after refreshing `origin/main` when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: GitHub Actions CI / Pull Request run `30994889620` passed, including package contracts, for commit `cc27d79ef`. - [ ] Applicable broad gate passed — `npm test` for broad runtime/test-harness changes; `npm run check` for repo-wide validation/coverage changes — command/result: - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <cvillela@nvidia.com> Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Summary
Repair repository gates on current main. The source architecture limits match the values measured in the current PR commit, the onboarding lifecycle contract states the validated ordering, and package-contract tests use isolated fixtures so npm cannot rebuild
distwhile another worker reads it.Changes
src/lib/state/registry.ts,src/lib/onboard.ts, andsrc/lib/onboardsource architecture limits to their measured values: 98, 219, and 307.repair-and-recreateoccur only after complete intent validation.resume-provider-shim.tsfile-role comment.Type of Change
Quality Gates
preparefrom rewriting the repository build during parallel execution. Repository architecture checks enforce the three limits, and the sandbox-create-intent tests cover intent validation before repair or removal. GitHub Actions is the validation authority.src/lib/onboard/lifecycle-contracts.mdis internal architecture documentation.2ad33be96c805eb77dedff0473dd20d5fdf981aeagainst3a39ff352f98c4630ab8e18b83f4ec43ac56a2ccpassed all nine security categories. The change does not alter runtime, trust-boundary, dependency, credential, or policy behavior.Documentation Writer Review
docs-updatedsrc/lib/onboard/lifecycle-contracts.mdstates the ordering accurately; the redundant source comment was removed; the package fixture explanation follows the writing guide; and no user-facing documentation page needs an update.DGX Station Hardware Evidence
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 unavailable —pre-commitandcommit-msgpassed for both commits, andpre-pushpassed for2ad33be96c805eb77dedff0473dd20d5fdf981ae. The initial linked-worktree push lacked generateddistfiles; GitHub Actions validates the full PR diff.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — pending the GitHub Actions code matrix for the current PR commit.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
Documentation
Bug Fixes
Chores