Supervised Incident-to-Immunity System
ANTIBODY demonstrates how a production defect in sherlock_project/sites.py (Incident #104: unbounded outbound HTTP requests breaching canary latency thresholds) is converted into an AST-validated structural defense (DEF-104), discovering 6 latent sibling sites across 4 verbs, and deterministically halting held-out recurrence attacks in GitLab CI.
Stage 1 · Proof
PROVEN
RED → GREEN
Pre-fix: Exit 1 (2 failed)
Post-fix: Exit 0 (3 passed)
Post-fix: Exit 0 (3 passed)
Stage 2 · Siblings
6 SITES
6 Confirmed
Across 4 modules & 4 HTTP verbs
(8 safe counterparts preserved)
(8 safe counterparts preserved)
Stage 3 · Validation
7 / 7 MUTANTS
100% Class A
3/3 negative controls rejected
0 False Positives on clean code
0 False Positives on clean code
Stage 4 · Gate
BLOCKED
BLOCKED
Held-out recurrence attack halted
Hash-bound receipt emitted
Hash-bound receipt emitted
The Closed Immunity Loop (Incident to Defense)
Automated sequence turning ephemeral alerts into durable architectural defenses
Step 01
Production Defect
Unbounded HTTP call in
sites.py triggers latency breach.
Step 02
Regression Proof
Focused test proves defect before patch (RED) and resolves post-patch (GREEN).
Step 03
Sibling Discovery
AST & Semgrep sweep discovers 6 latent sibling sites across verbs & files.
Step 04
Structural Defense
Semgrep rule DEF-104 tested against 7 AST mutants and 3 negative controls.
Step 05
Recurrence Gate
Held-out recurrence attack is deterministically BLOCKED in GitLab CI.
Five Authoritative Lifecycle Stages
Interactive execution receipts, AST rules, and machine verificationsSystem Verification Matrix (Pipeline 2943123842)
Authoritative audit ledger distinguishing verified execution from honest boundaries| Job / Component | Stage | Status | Verification Evidence |
|---|---|---|---|
regression-proof |
verify |
PASS | RED on unpatched source → GREEN on patched source (REG-01, REG-02 verified) |
unit-test |
verify |
PASS | Full upstream Sherlock test suite passed on Python 3.12 |
validate-defense |
secure |
PASS | DEF-104 validated: 7/7 AST mutants caught, 3/3 negative controls rejected |
discover-siblings |
secure |
PASS | 6 confirmed sibling sites discovered across 4 files and 4 HTTP verbs |
recurrence-gate |
secure |
PASS | Held-out recurrence attack deterministically blocked; receipt emitted |
build-image |
package |
PASS (DinD) | Container built ephemeral in Docker-in-Docker runner (manual trigger; not published) |
static-analysis |
secure |
FAIL (ALLOWED) | Ruff reported legacy debt (104 errors); configured with allow_failure: true |
| GitLab Duo Platform Execution | agent |
UNVERIFIED | Flows authored per Flow Registry v1; simulated locally, unverified on remote Duo |
| Automated Canary Rollback | release |
UNVERIFIED | Declarative policy in canary-policy.yaml; CI release jobs unexecuted |
Platform Limitations & Non-Claims (Honest Engineering Boundaries)
No Live GitLab Duo Flow Claim
Custom flow configurations (
.gitlab/duo/flows/antibody-fix-prove.yaml and antibody-respond.yaml) are validated against official schemas and simulated offline via fix_prove_runner.py. We do not claim live remote Duo agent runner execution took place.
No Automated Canary Rollback Claim
Canary thresholds in
deploy/canary-policy.yaml are declarative specifications. The ci/release.yml and ci/monitor.yml jobs remain skeleton placeholders and were not executed during this deployment.
No Public Container Registry Publishing
The
build-image job in GitLab CI verified Docker packaging in an ephemeral DinD runner. The resulting image was not published to a public container registry.
Intra-Procedural AST Scope Limits
Structural defense
DEF-104 accurately catches intra-procedural calls and session wrappers. Complex inter-procedural taint flows (e.g. factory-instantiated sessions) are documented as known Class B boundary limits.
Direct Machine Evidence Files (JSON & YAML)
Download or view the raw cryptographic and structured evidence payloadsproof.json
Stage 1 · Regression Proof
siblings.json
Stage 2 · Sibling Sweep
validation.json
Stage 3 · Defense Validation
recurrence_receipt.json
Stage 4 · Recurrence Gate
e2e_evidence.json
Stage 5 · Consolidated Receipt
diagnosis.json
Incident #104 Root Cause
DEF-104.yaml
Semgrep AST Defense Rule