How devopsmaddog/security-context-builder works
This repository is an AppSec system design with a small runnable evidence-context prototype and a Pattern1 reference integration—not a complete autonomous agent. The concrete workflow is deployment and normalized scan evidence → canonical bundle assembly → validation and context generation → scoped SQLite fix retrieval. The design also specifies broader readers, adapters, repair, verification and knowledge capabilities, but those are not implemented here. Edges for those planned capabilities are limited to README-documented relationships; unsampled implementation details are not inferred.
Main entry points: context_compiler.py Bundle Compiler · build_bundle.py Bundle Assembly · APPSEC_SKILLS.md Repair and Test Workers · capture_deployment.py Deployment Capture
Components 18
Context Prototype
- Bundle Compiler
context_compiler.py - Scope and Freshness Checks
context_compiler.py - Context and Finding Packets
context_compiler.py - SQLite Snapshot
context_compiler.py - Fix Retrieval
context_compiler.py
Pattern1 Reference
- Deployment Capture
patterns/pattern1/vuln-app-infra/scripts/capture_deployment.py - Reference App
patterns/pattern1/vulnapp-app/src/server.js - Bundle Assembly
patterns/pattern1/scripts/build_bundle.py
Enterprise Design
- Application and Cloud Readers
ENTERPRISE_APPSEC_BLUEPRINT.md - Security Tool Adapters
INTEGRATIONS.md - Versioned Specifications
OPENSPEC_AND_ENTERPRISE_STANDARDS.md - Repair and Test Workers
APPSEC_SKILLS.md - Sandbox Verification
SANDBOX_AND_VERIFICATION.md
Knowledge Layer
- Experience Retrieval
KNOWLEDGE_AND_SMALL_MODELS.md
Other components
- AppSec Engineer
- Deployment Evidence
- Normalized Scan Evidence
- AWS Services
Connections 17
- AWS Services → Deployment Capture: supplies observations
patterns/pattern1/vuln-app-infra/scripts/capture_deployment.py - Deployment Capture → Deployment Evidence: writes manifest
patterns/pattern1/vuln-app-infra/scripts/capture_deployment.py - Deployment Evidence → Bundle Assembly: provides manifest
patterns/pattern1/scripts/build_bundle.py - Normalized Scan Evidence → Bundle Assembly: provides normalized scans
patterns/pattern1/scripts/build_bundle.py - Bundle Assembly → Bundle Compiler: imports and validates
patterns/pattern1/scripts/build_bundle.py - AppSec Engineer → Bundle Compiler: runs compile or query
README.md - Bundle Compiler → Scope and Freshness Checks: validates bundle
context_compiler.py - Bundle Compiler → Context and Finding Packets: renders outputs
context_compiler.py - Bundle Compiler → SQLite Snapshot: stores snapshot
context_compiler.py - Bundle Compiler → Fix Retrieval: queries fixes
context_compiler.py - Fix Retrieval → SQLite Snapshot: reads snapshot
context_compiler.py - Application and Cloud Readers → Security Tool Adapters: feeds evidence
README.md - Security Tool Adapters → Bundle Assembly: normalizes evidence
README.md - Versioned Specifications → Repair and Test Workers: guides workflows
README.md - Repair and Test Workers → Sandbox Verification: requires verification
README.md - Sandbox Verification → Experience Retrieval: informs experience
README.md - Experience Retrieval → Repair and Test Workers: supports retrieval
README.md