Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(hooks): refuse malformed maintainer policy [C1,C7]
Corey Olsona508df955072
diff --git a/src/commit-signoff.js b/src/commit-signoff.jsindex 3ddbd182..99dc5cba 100644--- a/src/commit-signoff.js+++ b/src/commit-signoff.js@@ -33,6 +33,9 @@ function maintainersAt(root, commit, required) {if (error instanceof Refused) throw error;throw new Refused('BAD_CONFIG', 'Restore valid JSON in the committed pullboard.json before checking sign-offs.');}+ if (!config || typeof config !== 'object' || Array.isArray(config)) {+ throw new Refused('BAD_CONFIG', 'Restore an object in the trusted pullboard.json before checking sign-offs.');+ }if (config.maintainers === undefined && !required) return null;if (!Array.isArray(config.maintainers) || config.maintainers.some(email =>typeof email !== 'string' || !email || email.trim() !== email || /[<>\u0000-\u001f\u007f]/u.test(email))) {