feat: Policy RFC Engine (proposal-only)#39
Open
Freeak88 wants to merge 1 commit intoopenclaw:mainfrom
Open
Conversation
Contributor
|
Thanks for the substantial proposal. I am not treating this as landable in the current queue. It adds a new product surface and about a thousand lines of new policy-generation code, while the latest visible checks only include the notify workflow and the PR body says full local testing was not run under this repo's required Node >=24 environment. Before this could move forward, it needs an explicit maintainer/product decision that ClawSweeper should own a Policy RFC Engine at all, plus a current rebase and full |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a conservative Policy RFC Engine that scans existing ClawSweeper durable records and generates reviewable RFC-style policy proposals from repeated operational patterns.
This is proposal-only infrastructure. It does not mutate GitHub, dispatch repairs, close issues, alter apply behavior, or change scheduler/automerge paths.
What changed
src/policy-rfc/with collector, scorer, synthesizer, types, and CLI runner.pnpm run policy-rfc.docs/policy-rfc-engine.md.How to try
Generates RFC proposals from local durable records without mutating GitHub.
Validation
Passed:
pnpm installpnpm run buildpnpm run build:allnode --test test/policy-rfc.test.tsFull
pnpm testreaches the build step successfully and then fails in this local Windows / Node 22.19.0 environment. The package requires Node >=24. Visible failures include path separator / CRLF assertions, Codex spawnEPERM,pnpm ENOENTin validation subprocesses, and one repair hydration assertion. The new Policy RFC tests pass.RFC and JSON outputs are deterministic for the same input records to ensure stable diffs and testability.
Safety
The first version is intentionally local-record only and proposal-only. It does not hook into scheduler lanes or GitHub mutation paths.
Non-Goals