Skip to content

v3.3.0 — engine contract and plug-ins

Latest

Choose a tag to compare

@core-claude-bot core-claude-bot released this 04 Dec 14:18
· 46 commits to main since this release
1e80f10

Minor release: the engine contract and plug-ins (#1339), and notice that the engines which do not audit code leave
CORE at 4.0 (ADR-178). Consumer: for external plug-ins. No database migration.

Added

  • Engine contract (#1339, ADR-176): CORE declares the engine interface version it implements as
    CORE_ENGINE_API = "1" (mind.logic.engines.base); BaseEngine.api_version defaults to "1", so existing
    engines need no change. Every engine enters the registry through one registration point. Two different engines
    with the same engine_id stop CORE from starting and are both named; an engine whose api_version differs is
    not registered and logs a warning, and its rules give the engine-missing finding. No explicit engine_id, an
    id outside lowercase letters, digits and underscores, an id equal to a passive alias, or a constructor that
    requires a parameter CORE does not inject produces a warning in 3.x and becomes a refusal in 4.0.
    EngineRegistry.engine_class(engine_id) returns an engine's class without building it.

  • Plug-ins (#1339, #1327, ADR-177): an installed package with an entry point in the group core.plugins
    brings engines, catalogs and governance packs. CORE finds every installed plug-in by itself, checks its
    manifest (plugin_manifest.schema.json) and its core_engine_api, and takes its engines, catalogs and packs
    through the same checks as its own. A broken plug-in is skipped with a warning; an engine, catalog or pack id
    shared with CORE or another plug-in stops CORE. The log has one line per plug-in with its version and a
    fingerprint, and code audit --format json lists the plug-ins a run used. mind.engine_api is the one public
    import path for engines; core-admin plugin list and core-admin plugin check <name> (a report to keep as
    validation evidence) are new. Example in examples/plugin-example/; guide in "Write a CORE plug-in".

Deprecated

  • Engines that do not audit code (ADR-175, ADR-178): CORE's scope is code auditing. grc_judge,
    attestation_gate, schema_gate and publication_gate (with its catalog), and the commands
    core-admin grc gap-analysis and core-admin record check, are frozen as shipped and leave CORE in 4.0. They
    return as external plug-ins under the same engine ids, so a catalog that names one needs no change; without the
    plug-in installed, such a rule gives the engine-missing finding, never a silent pass. The other 14 engines stay.

Fixed

  • knowledge_gate.verify was not async (ADR-176 D2): every caller awaits it; found by the new conformance
    check.
  • artifact_gate crashed on a model.yaml whose top level is not a mapping: it now reports a violation;
    found by the plug-in run check.
  • Full audit passed an llm_gate rule silently with no LLM (#1454): it now gives the "no LLM client" warning.
  • Unknown engine id (#1458): the full audit and gap analysis now give the engine-missing finding (the full
    audit reported a crash; gap analysis stopped).
  • Record engines built once (#1459): the record path built a new engine for every rule; it now builds each
    engine once per registry initialization, as file audits do.

Security

  • Dependencies (#1456): dnspython 2.9.2 and opentelemetry-api 1.45.2 (pip-audit findings).