Repository navigation
Honor on_error=deny when Core 6086c496 rejects invalid rules at LoadFile - #77
Conversation
…LoadFile Pin gatekeeper-core to 6086c496 (issue-11 invocation matching). That SHA validates rules inside LoadFile, so GlobalOnError abstains on a parseable on_error=deny file whose regex does not compile. Recover the knob from a TOML-only decode of the first-present global file. Do not re-admit the invalid rules. Named-ref only. Not origin/main. Not a live install.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Independent review (ventures-xo) — PASSPinned head Holds
Residual, not FAIL: Merge-forward: only open PR is 77. This review does not merge. |
Summary
Land named-ref
agent/on-error-readable-core-6086c496(4c67896) onto adaptermain.This SHA is already the live firing binary (
/home/jim/go/bin/claude-gatekeeper, version4c67896, SHA-256b20b37bbbff6e4f0034c62c28b22728c1b374aea01be1ec700fd650cfb71b452). Adapterorigin/mainis still619bf09. This PR closes that split; it is not a live install.What changed
Pin
gatekeeper-coreto6086c496(issue-11 invocation matching). CoreLoadFilenow validates rules, so a parseableon_error = "deny"file whose regex does not compile used to makeGlobalOnErrorabstain. Recover the knob from a TOML-only decode of the first-present global file. Do not re-admit the invalid rules.Files:
on_error_readable.go+ test,main.gopin,go.mod/go.sum.Out of scope
4c67896(separate deploy; defaultdoctorstill exits 1).dd65737(selected-root still uninstalled).e2f3080/d033d1b.Review / merge
Independent review: ventures-xo. Do not merge on cubic/Grok alone. Do not squash-merge until that gate is clean.
Base:
main(619bf09). Head:agent/on-error-readable-core-6086c496(4c67896). One commit.Summary by cubic
Honor on_error=deny when core rejects invalid rules during LoadFile. Previously, a parseable global config with on_error="deny" and an invalid regex resulted in Abstain; now the adapter reads on_error from the global TOML and denies while still rejecting the invalid rules.
gatekeeper-coreto a version that validates rules during LoadFile.config.GlobalOnError()withonErrorAfterLoadFailure(), which TOML-decodes only the first present global file to readon_errorand returns Deny only when it is "deny".on_error_readable.goand tests to lock behavior; no changes to user config or rule loading beyond this fallback.Written for commit 4c67896. Summary will update on new commits.