Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions bin/pre-publish-gate.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@ try {
console.log(`${GREEN}[pre-publish] Layer validation PASSED: ${validation.totalFiles} files, all L1.${NC}`);
}
} catch (err) {
// Layer validation is best-effort in pre-publish gate.
// If Python or audit_layers.py not available, WARN but don't block.
console.warn(`${YELLOW}[pre-publish] Layer validation skipped: ${err.message}${NC}`);
console.warn(`${YELLOW}[pre-publish] Run 'node bin/validate-package.js' manually to validate.${NC}`);
// L-12 SECURITY FIX: Layer validation is fail-CLOSED (consistent with gate design).
// If Python or audit_layers.py not available, BLOCK publish to prevent bypass.
console.error(`${RED}[BLOCKED] Layer validation failed: ${err.message}${NC}`);
console.error(`${RED}[BLOCKED] Install Python 3 and ensure core/intelligence/audit_layers.py exists.${NC}`);
console.error(`${YELLOW}[pre-publish] Run 'node bin/validate-package.js' to diagnose.${NC}`);
foundIssues++;
}

// === VERDICT ===
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading