Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Whitestone
de32c1339f feat: [Bezalel Epic-006] Sovereign Forge — Full Autonomy on a 2GB RAM VPS Without Cloud Inference (#168)
Refs #168
Agent: groq
2026-04-06 23:21:07 -04:00
a37fed23e6 [BEZALEL][CI] Syntax Guard — Prevent Broken Python from Reaching Main (#167)
Some checks failed
Forge CI / smoke-and-build (push) Failing after 2s
2026-04-07 02:27:32 +00:00
3 changed files with 26 additions and 0 deletions

View File

@@ -39,6 +39,11 @@ jobs:
OPENAI_API_KEY: ""
NOUS_API_KEY: ""
- name: Syntax guard
run: |
source .venv/bin/activate
python scripts/syntax_guard.py
- name: Green-path E2E
run: |
source .venv/bin/activate

1
.gitignore vendored
View File

@@ -58,3 +58,4 @@ mini-swe-agent/
# Nix
.direnv/
result
.aider*

20
scripts/syntax_guard.py Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env python3
"""Syntax guard — compile all Python files to catch syntax errors before merge."""
import py_compile
import sys
from pathlib import Path
errors = []
for p in Path(".").rglob("*.py"):
if ".venv" in p.parts or "__pycache__" in p.parts:
continue
try:
py_compile.compile(str(p), doraise=True)
except py_compile.PyCompileError as e:
errors.append(f"{p}: {e}")
print(f"SYNTAX ERROR: {p}: {e}", file=sys.stderr)
if errors:
print(f"\n{len(errors)} file(s) with syntax errors", file=sys.stderr)
sys.exit(1)
print("All Python files compile successfully")