architect/

Pattern Architect — turns verified finds into reusable detection artifacts.

  • static_checker.StaticChecker.check(dump_paths, offset, length) — per-offset equality across N dumps (check_regions(regions) for in-memory byte slices) → (static_mask, reference_bytes) + static_ratio helper.

  • pattern_generator.PatternGenerator — static-mask → wildcard substitution; find_anchors (contiguous static runs ≥ min_anchor_length=4) + infer_fields (variance-based segmentation into static / dynamic / key_material).

  • yara_exporter.YaraExporter — emits rule NAME { meta: ... strings: $key = { WILDCARD_HEX } condition: $key }.

  • json_exporter.JsonExporter — emits pattern_loader-compatible signatures (key_spec, applicable_to.libraries, applicable_to.protocol_versions, structural pattern.before / pattern.after).

  • vol3_recipe — the plugin generator: a recipe v2 (locators + decoder + oracle) rendered through templates/vol3_plugin_v2.py.tmpl. Locator kinds and pointer-path roots are declared once, in LOCATOR_SPECS / POINTER_PATH_ROOT_CHECKS (validation, key lengths, anchor role); a test keeps them equal to the template’s own dispatch. recipe_from_pattern turns a PatternGenerator pattern into a recipe; export --format volatility3, POST /api/architect/export, the experiment runner and emit-plugin all use it.

  • volatility3_exporter.Volatility3Exporter — deprecated v1 generator (DeprecationWarning). Still used for artifact-model STRUCTURE plugins (app.tools_semantic), which recipe v2 cannot express yet, and by emit_plugin_for_hit(template="v1").