Skip to content

Converge policy schema to 1.1.0 + migrate/parity/plugins#29

Merged
bb-connor merged 3 commits intomainfrom
codex/schema-convergence
Feb 4, 2026
Merged

Converge policy schema to 1.1.0 + migrate/parity/plugins#29
bb-connor merged 3 commits intomainfrom
codex/schema-convergence

Conversation

@bb-connor
Copy link
Copy Markdown
Collaborator

@bb-connor bb-connor commented Feb 4, 2026

Summary

  • Align docs + TS + Rust to policy schema v1.1.0
  • Add hush policy migrate (v1.0.0 + legacy OpenClaw) with JSON output
  • Add custom guard registry + placeholder handling + trusted plugin loader
  • Add parity harness + script for fixture-driven cross-SDK validation

Testing

  • cargo test -p hush-cli
  • cargo test -p clawdstrike
  • (packages/clawdstrike-policy) npm test; npm run typecheck
  • (packages/clawdstrike-openclaw) npm test
  • ./scripts/run-parity.sh

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c81c56b025

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +123 to +125
if (Array.isArray((child as any).custom_guards) && (child as any).custom_guards.length > 0) {
(out as any).custom_guards = (child as any).custom_guards;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow clearing inherited custom_guards in merge

When a policy uses extends with merge strategy merge, an explicit custom_guards: [] in the child does not override the base list because the override only happens when the array length is > 0. This means inherited custom guards continue to run even when the child policy tries to disable them by clearing the list. That can lead to unexpected guard execution in derived policies and makes it impossible to remove inherited custom guards without knowing their IDs. Consider treating a present-but-empty custom_guards as an intentional override.

Useful? React with 👍 / 👎.

@bb-connor
Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bb-connor bb-connor merged commit 3e6f40f into main Feb 4, 2026
22 checks passed
@bb-connor bb-connor deleted the codex/schema-convergence branch March 3, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant