Skip to content

Commit 5bab14b

Browse files
SecAI-Hubclaude
andcommitted
Extract quarantine to standalone repo (SecAI-Hub/ai-quarantine)
- Build now clones from SecAI-Hub/ai-quarantine (local-copy-first, git clone fallback) instead of using monorepo services/quarantine - Remove quarantine lint lines from CI (standalone repo has own CI) - Remove test_pipeline.py from monorepo (96 tests now in standalone repo) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 92d082a commit 5bab14b

3 files changed

Lines changed: 14 additions & 1080 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ jobs:
6262

6363
- name: Lint (syntax check)
6464
run: |
65-
python -m py_compile services/quarantine/quarantine/pipeline.py
66-
python -m py_compile services/quarantine/quarantine/watcher.py
6765
python -m py_compile services/ui/ui/app.py
6866
python -m py_compile services/diffusion-worker/app.py
6967
python -m py_compile services/common/audit_chain.py

files/scripts/build-services.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,25 @@ echo " -> /usr/bin/llama-server"
8383

8484
# --- Python services (installed as wrapper scripts) ---
8585

86-
# Quarantine watcher
86+
# --- ai-quarantine (standalone: seven-stage artifact admission-control) ---
8787
echo "Building: quarantine-watcher"
88-
pip3 install --prefix=/usr --no-cache-dir /tmp/services/quarantine 2>/dev/null || \
89-
pip3 install --prefix=/usr --break-system-packages --no-cache-dir /tmp/services/quarantine
90-
cat > "${INSTALL_DIR}/quarantine-watcher" <<'WRAPPER'
88+
if [ -d "/tmp/ai-quarantine" ]; then
89+
cp -r /tmp/ai-quarantine "${SRC_DIR}/ai-quarantine"
90+
else
91+
git clone --depth 1 https://github.com/SecAI-Hub/ai-quarantine.git "${SRC_DIR}/ai-quarantine" 2>/dev/null || \
92+
echo "WARNING: ai-quarantine clone failed — quarantine pipeline will not be available"
93+
fi
94+
if [ -d "${SRC_DIR}/ai-quarantine" ]; then
95+
pip3 install --prefix=/usr --no-cache-dir "${SRC_DIR}/ai-quarantine" 2>/dev/null || \
96+
pip3 install --prefix=/usr --break-system-packages --no-cache-dir "${SRC_DIR}/ai-quarantine"
97+
cat > "${INSTALL_DIR}/quarantine-watcher" <<'WRAPPER'
9198
#!/usr/bin/env python3
9299
from quarantine.watcher import main
93100
main()
94101
WRAPPER
95-
chmod +x "${INSTALL_DIR}/quarantine-watcher"
96-
echo " -> ${INSTALL_DIR}/quarantine-watcher"
102+
chmod +x "${INSTALL_DIR}/quarantine-watcher"
103+
echo " -> ${INSTALL_DIR}/quarantine-watcher"
104+
fi
97105

98106
# Quarantine scanning tools (installed independently so one failure doesn't block others)
99107
echo "Installing: quarantine scanning tools"

0 commit comments

Comments
 (0)