-
Notifications
You must be signed in to change notification settings - Fork 1
Module stable diffusion Roadmap
Roadmap-Hinweis: Vage Bullets ohne Akzeptanzkriterien in Checkbox-Tasks überführen. Format:
- [ ] <Task> (Target: <Q/Jahr>).
Core pipeline is operational in stub mode and optional real-backend mode.
ControlNet request fields, LoRA request handling, perceptual hash metadata,
model SHA-256 integrity validation, and request dimension guards are implemented
in SDPlugin and covered by focused tests.
-
IImageGenerationBackendinterface +THEMIS_IMGGEN_PLUGIN()export macro -
SDPromptSanitizer— keyword blocklist (case-insensitive, file-loadable) -
ISDGeneratorstrategy interface -
SDStubGenerator(CI / no model) with img2img pass-through -
InMemorySDGeneratortest double (with img2img inspection helpers) -
SDPlugin— provenance stamps, blocked_count, DL entry points -
SDConfig::fromJson/toJsonwith clamping - Real PNG encoder with IDAT chunk (stored-deflate, CRC-32, Adler-32 — no external deps)
-
generateBatch(prompts, cfg)onIImageGenerationBackendandSDPlugin -
generateImg2Img(prompt, cfg)+Img2ImgConfigstruct -
ISDGenerator::generateImg2Img()default fallback -
SDStubGenerator::generateImg2Img()— input-image pass-through -
SDCppGenerator— real stable-diffusion.cpp wrapper (THEMIS_ENABLE_STABLE_DIFFUSIONguard) - Thread-safety:
generate_mutex_serialises all generate paths -
negative_promptcontent-policy enforcement (SECURITY.md gap SD-NP-01 resolved) - ControlNet request fields (
control_image_rgb,control_model_path,control_strength) - LoRA request application (
applyLoRA) with per-request scale validation - Perceptual hash metadata (
GeneratedImage::perceptual_hash) with non-fatal fallback - Model SHA-256 verification gate in
initialize()(model_sha256) - Dimension guards (
<=8192, overflow-safe, positive dimensions) - 62 unit tests (
SDPluginFocusedTests, groups A–Q) - Plugin manifest + CMake registration
-
SDCppGenerator— wrapsstable-diffusion.cppC API underTHEMIS_ENABLE_STABLE_DIFFUSIONguard (Issue: #4590) (2026-04-12) - Real PNG IDAT encoder —
encodeMinimalPng()produces valid IDAT block via stored-deflate + CRC32 + Adler32 (Issue: #4590) (2026-04-12) -
SDStubGenerator::generateImg2Img— returns input-image pass-through (Issue: #4590) (2026-04-12) - 51 unit tests (
SDPluginFocusedTests, groups A–Q) — 6 new tests groups P–Q for SDCppGenerator + real PNG encoder (Issue: #4590) (2026-04-12) -
SDPluginAdapter+SDPluginRegistrar—IThemisPluginadapter wrappingSDPlugin;createPlugin,createAdapter,defaultReloadCallback,enableHotPlug,disableHotPlug; 12 unit tests (SDPluginRegistrarTests, groups A–D) (2026-04-16)
(none)
- [~] Benchmark gate: stable_diffusion benchmark target added; baseline publication pending (Target: Q3 2026)
- [~] End-to-end real-model gate (
THEMIS_ENABLE_STABLE_DIFFUSION=ON) in CI (Target: Q3 2026) - [~] Dedicated parallel-call audit for
SDCppGeneratorbackend semantics (Target: Q4 2026)
-
IImageGenerationBackend,GeneratedImage,SDGenerationConfigdefined -
SDPromptSanitizerseparating content policy from inference
-
SDPluginwiring sanitizer → generator → provenance → PNG -
SDConfigwith JSON round-trip
- Blocked prompts:
success=false,blocked_count++, no generator call - Uninitialised state:
success=false,error_message - Generator exception isolation
- Focused coverage expanded to 62 tests across groups A–Q
- Added coverage for model SHA-256 gate, dimension guards, ControlNet+LoRA request flow, pHash behavior
- Thread-safe generate/generateBatch/generateImg2Img (v2.1.0)
-
negative_promptcontent-policy enforcement (v2.1.0) - Real PNG encoder — stored-deflate zlib with CRC-32 and Adler-32 (v2.2.0)
- Dimension guard enforcement for generation/img2img/control image paths
- Model SHA-256 verification gate at initialization
- [~] Benchmark: time-to-PNG target added (
bench_stable_diffusion_release_gates); real-model baseline pending - [~] Thread-safety audit for SDCppGenerator (parallel calls) — opt-in real-backend audit target added
- README, CHANGELOG, ROADMAP, ARCHITECTURE, FUTURE_ENHANCEMENTS, AUDIT, SECURITY
- Unit tests present (62 tests)
- Stub mode for CI without model file
- Injection constructor for test doubles
- Content-policy sanitizer before every generate call
- Provenance stamps on every result
- Thread-safe generate/generateBatch/generateImg2Img
-
negative_promptcontent-policy enforcement - Batch generation API
- Img2img interface with stub pass-through
- Real PNG encoder (IDAT chunk, CRC-32, Adler-32 — no external deps)
-
SDCppGenerator— real stable-diffusion.cpp integration (compiled whenTHEMIS_ENABLE_STABLE_DIFFUSION=ON) - [~] End-to-end integration test with a real GGUF model file — opt-in target present
- [~]
SDCppGeneratorthread-safety audit for parallel calls — opt-in target present
-
SDPluginAdapter : IThemisPlugin— wrapsSDPlugin, implementsinitialize(config_json),shutdown(),getType(),getCapabilities(),getInstance();PluginType::IMAGE_GENERATION -
SDPluginRegistrar—createPlugin(),createAdapter(),defaultReloadCallback(),enableHotPlug(),disableHotPlug() - 12 unit tests (
SDPluginRegistrarTests, groups A–D) insrc/stable_diffusion/tests/test_sd_plugin_registrar.cpp
-
SDCppGeneratorrequires thestable-diffusion.cppsubmodule andTHEMIS_ENABLE_STABLE_DIFFUSION=ON; without themSDStubGeneratoris used automatically. -
SDPluginthread-safety applies to individual method calls; external callers must not share anSDPlugininstance across threads without external synchronisation forinitialize()calls. -
SDCppGeneratorparallel-call safety depends on stable-diffusion.cpp's own thread model; a full audit is pending.
None (v2.0.0 is the initial release).
Stand: 2026-04-20 – Quelle: [[src/UNUSED_FUNCTIONS_REPORT.md|UNUSED-FUNCTIONS-REPORT]]
-
SDPlugin– Stable-Diffusion-Plugin-Implementierung; Tests + Plugin-Registrar vorhandenAktion: ROADMAP-Ticket für Produktions-Integration ergänzen oder als CANDIDATE_FOR_REMOVAL markieren.
-
samplerFromString– Parst Sampler-Namen (euler, ddim, …) zu Enum; Header-only HelperAktion: Für jedes Symbol entscheiden: (1) Verdrahten, (2) Testen oder (3) als CANDIDATE_FOR_REMOVAL einplanen.
This module is a contributing module in the program-level Wave A → B → C → D execution model.
It does not own a primary wave deliverable but must remain release_critical-green throughout all waves
and must deliver Wave D operability improvements in Q1 2027.
See [[../../ROADMAP.md|ROADMAP]] for the full wave model and exit criteria.
- Deliver or validate distributed tracing, high-cardinality stress coverage, exporter reliability, and operator remediation hints as applicable to this module (Target: Q1 2027)
- Contribute to or validate long-duration soak test coverage for this module's primary paths (Target: Q1 2027)
- Ensure runbook coverage for operator-critical scenarios in this module (Target: Q1 2027)
-
release_criticalCI must remain green ondevelopthroughout all waves (Target: ongoing) - p95/p99 benchmarks must be refreshed on representative hardware before Wave D sign-off (Target: Q1 2027)
- No behavioral regression may be introduced into modules in Wave A/B/C scope from changes in this module.
- This module's distributed/acceleration paths fail closed (Target: Q1 2027)
- Benchmark-backed p95/p99 baselines exist on representative hardware (Target: Q1 2027)
- Operator-critical paths have diagnostics, alerts, and runbooks (Target: Q1 2027)
- Architecture-ACCESS-MODEL-IMPLEMENTATION-SUMMARY
- Architecture-ADR-003-pg-dump-sql-parser
- Architecture-BASEENTITY-PRINCIPLE
- Architecture-CACHE-STORAGE-INTEGRATION
- Architecture-CMAKE-ARCHITECTURE
- Architecture-CMAKE-FLAGS-REFERENCE
- Architecture-CMAKE-MODULAR-ARCHITECTURE
- Architecture-CONCERNS-ARCHITECTURE-DIAGRAM
- Architecture-CONCERNS-IMPLEMENTATION-SUMMARY
- Architecture-CONTENT-MODEL
- Architecture-COPILOT-THEMISDB-GRAPH-RAG-BACKEND-ARCHITECTURE
- Architecture-CRYPTO-AND-KEYS
- Architecture-FEATURE-FLAGS-REFERENCE
- Architecture-GPU-ARCHITECTURE-REVIEW-TEMPLATE
- Architecture-HTTP-SHUTDOWN-HARDENING
- Architecture-MIGRATION-GUIDE-CONCERNS
- Architecture-MIGRATION-GUIDE-v13-v14
- Architecture-MODULARIZATION-GUIDE
- Architecture-MODULAR-ARCHITECTURE-ROADMAP
- Architecture-MODULE-ARCHITECTURE-INDEX
- Architecture-P1D01-ISSMPLUGIN-DESIGN-REVIEW
- Architecture-P1-D01-ISSMPLUGIN-DESIGN-REVIEW
- Architecture-P1-D08-MAMBA-GOVERNANCE-CONTRACT
- Architecture-P1-P2-IMPLEMENTATION-COMPLETION-INDEX
- Architecture-PHASE0-COMPLETION-ASSESSMENT
- Architecture-PHASE3-QUERYENGINE-DI-ARCHITECTURE
- Architecture-PHASE4-INDEX-MANAGER-DI
- Architecture-POSTGRESQL-WIRE-PROTOCOL
- Architecture-QUERYENGINE-IMPLEMENTATION-GUIDE
- Architecture-QUERY-SCHEDULING
- Architecture-RAFT-CONSENSUS-DESIGN
- Architecture-README
- Architecture-README-SSM-HYBRID-IMPLEMENTATION
- Architecture-REFACTORING-SUMMARY
- Architecture-RESOURCE-POOLING
- Architecture-SOURCE-DIRECTORY-GUIDE
- Architecture-THEMIS-CORE-GUIDE
- Architecture-UNIFIED-ACCESS-MODEL
- Architecture-WAL-GRPC-MTLS-CONFIGURATION
- Architecture-WIRE-PROTOCOL-RETRY
- Architecture-boltzmann-observability-draft
- Architecture-experimental-logarithmic-vector-storage
- Architecture-llm-wiki-mvp-adr
- Architecture-rewrite-engine-architecture
- Architecture-rope-api-architecture
- Architecture-ssm-gguf-mamba-status
- Architecture-ssm-hybrid-analysis
- Architecture-ssm-hybrid-rollout-plan
- Architecture-ssm-plugin-interface-design-review
- Architecture-transaction-coordinators
- Architecture-wiki-secondary-index
- Architecture-wire-protocol
- Governance-DISABLED-STUB-POLICY
- Governance-DOCS-PR-POLICY
- Governance-GA-PROMOTION-SIGN-OFF
- Governance-GITHUB-MILESTONES-SETUP
- Governance-MATURITY-CLAIM-VERIFICATION-CHECKLIST
- Governance-MATURITY-EVIDENCE-REGISTRY
- Governance-MERGE-GATE-BOT-CONFIG
- Governance-MERGE-GATE-STATUS-LIVE
- Governance-PHASE3-ENFORCEMENT-RUNBOOK
- Governance-PHASE-1-CLOSURE-REPORT
- Governance-PHASE-CLOSURE-POLICY
- Governance-PHASE-DEPENDENCY-GRAPH
- Governance-PLUGIN-SUBMODULE-ROLLBACK
- Governance-PRODUCTION-READY-2026-DELIVERY-PLAN
- Governance-PR-VERSION-TARGETING
- Governance-PR-VERSION-TARGETING-BACKFILL
- Governance-QUERY-MODULE-STATUS
- Governance-README
- Governance-RELEASE-PROMOTION-GATE-POLICY
- Governance-RELEASE-VALIDATION-CHECKLIST
- Governance-SECURITY-MODULE-5671-EVIDENCE-SUMMARY
- Governance-SHARDING-P6-RESIDUAL-RISK-ACCEPTANCE
- Governance-SOURCECODE-COMPLIANCE-GOVERNANCE
- Governance-UPDATES-DEVELOPMENT-STATUS-SIGN-OFF
- Governance-WAVE-C-IMPLEMENTATION-COMPLETE
- Module-acceleration-Roadmap
- Module-access-model-Roadmap
- Module-ai-Roadmap
- Module-analytics-Roadmap
- Module-api-Roadmap
- Module-aql-Roadmap
- Module-auth-Roadmap
- Module-base-Roadmap
- Module-cache-Roadmap
- Module-cdc-Roadmap
- Module-chaos-Roadmap
- Module-chimera-Roadmap
- Module-config-Roadmap
- Module-content-Roadmap
- Module-core-Roadmap
- Module-distributed-knowledge-Roadmap
- Module-distributed-tensor-Roadmap
- Module-document-Roadmap
- Module-ethics-ai-Roadmap
- Module-evaluation-Roadmap
- Module-execution-Roadmap
- Module-exporters-Roadmap
- Module-failover-Roadmap
- Module-geo-Roadmap
- Module-governance-Roadmap
- Module-gpu-Roadmap
- Module-graph-Roadmap
- Module-image-analysis-Roadmap
- Module-importers-Roadmap
- Module-index-Roadmap
- Module-ingestion-Roadmap
- Module-llama-cpp-Roadmap
- Module-llm-Roadmap
- Module-llm-streaming-Roadmap
- Module-llm-wiki-Roadmap
- Module-maintenance-Roadmap
- Module-metadata-Roadmap
- Module-network-Roadmap
- Module-observability-Roadmap
- Module-onnx-clip-Roadmap
- Module-performance-Roadmap
- Module-plugins-Roadmap
- Module-process-Roadmap
- Module-projects-Roadmap
- Module-prompt-engineering-Roadmap
- Module-query-Roadmap
- Module-rag-Roadmap
- Module-replication-Roadmap
- Module-retrieval-Roadmap
- Module-rpc-grpc-Roadmap
- Module-scheduler-Roadmap
- Module-scraper-Roadmap
- Module-search-Roadmap
- Module-security-Roadmap
- Module-server-Roadmap
- Module-sharding-Roadmap
- Module-stable-diffusion-Roadmap
- Module-storage-Roadmap
- Module-temporal-Roadmap
- Module-tensor-Roadmap
- Module-themis-Roadmap
- Module-timeseries-Roadmap
- Module-toolbox-Roadmap
- Module-training-Roadmap
- Module-transaction-Roadmap
- Module-updates-Roadmap
- Module-user-storage-encrypted-Roadmap
- Module-utils-Roadmap
- Module-vector-search-Roadmap
- Module-voice-Roadmap
- Module-whisper-Roadmap