fix(hermes): initialize shields metadata explicitly - #6781
Conversation
Signed-off-by: Ho Lim <subhoya@gmail.com>
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe shields-target metadata configuration now validates the mode once, derives ownership and permission values from a locked-state flag, and preserves the existing sandbox parent metadata behavior. ChangesHermes runtime configuration
Estimated code review effort: 2 (Simple) | ~5 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
✨ Thanks for the fix, @HOYALIM. Explicit initialization of shields metadata should satisfy the CodeQL alerts while preserving existing behavior. Ready for maintainer review. Related open issues: Related open issues: |
E2E Target Results — ✅ All requested tests passedRun: 29281013000
|
cjagwani
left a comment
There was a problem hiding this comment.
Reviewed exact head 8f811b83f091ea242cfb51cab6667b526b00f7af: required checks are green; exact-head CodeRabbit has no actionable comments; both PR Advisor lanes recommend merge-as-is with high confidence and zero findings; targeted Hermes tests passed (38 passed, 2 platform skips); and the exact-head hermes-shields-config live E2E passed. No unresolved review threads.
Summary
Make the Hermes shields metadata target values visibly total after validating the transition mode. This preserves the existing locked and mutable ownership/mode behavior while giving Python CodeQL an explicit initialization proof for alerts 1218–1219 tracked in #6263.
Related Issue
Refs #6263
Changes
01775), mutable parent posture (0755), Hermes directory modes (0755/03770), and sealed file modes (0444/0640).Type of Change
Quality Gates
Verification
Verifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailablenpx vitest run --project integration test/hermes-runtime-config-guard.test.ts test/hermes-restart-config-seal-transition.test.ts test/hermes-restart-config-seal-recovery.test.ts(38 passed, 2 skipped)npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Signed-off-by: Ho Lim subhoya@gmail.com
Summary by CodeRabbit