Skip to main content

Optional cfgit plugin for deterministic system-impact summaries and opt-in LLM narration of database record diffs

Project description

cfgit-impact

Optional system-impact analysis for cfgit.

This package is deliberately outside src/cfg/core/. The cfgit core stays LLM-free and provider-free; this plugin owns both deterministic impact analysis and optional LLM narration.

Install

Install cfgit with the database extras you use, then install the optional impact plugin from PyPI into the same Python environment:

pip install 'cfgit[mongo,postgres,mcp]'
pip install cfgit-impact

For pipx installs:

pipx install 'cfgit[mongo,postgres,mcp]'
pipx inject cfgit cfgit-impact

Boundary

  • src/cfg/core/ never imports this plugin.
  • src/cfg/core/ never imports vendor SDKs or provider clients.
  • The main action layer imports cfg_impact.overview only when cfg impact or the UI/MCP impact action is called.
  • Provider selection comes from [connections].ai_provider unless a caller passes provider.

Provider Pattern

The provider layer uses a small factory pattern:

  • cfg_impact.providers.base.BaseImpactProvider
  • cfg_impact.providers.factory.ImpactProviderFactory
  • cfg_impact.providers.claude.ClaudeProvider
  • cfg_impact.providers.openai_provider.OpenAIProvider
  • cfg_impact.providers.gemini.GeminiProvider

The impact engine calls narrate() or complete(). It never imports a vendor module directly.

Commands

Deterministic local analysis:

cfg impact agent_configs:agent_planner =HEAD =live --json

Opt-in LLM narration:

cfg impact agent_configs:agent_planner =HEAD =live --llm --json

Scope narration to selected records instead of the whole system:

cfg impact agent_configs:agent_planner --against agent_configs:critic --against modelgarden_models:openai/gpt-4o-mini --llm --json

LLM narration is refused unless the record is listed in [connections].share_with_ai. The payload sent to the provider is bounded and secret-stripped. It includes real before/after field diffs for the changed record, plus only allowlisted text from related records. In scoped mode, only selected records are included in the system map.

The plugin uses ANTHROPIC_API_KEY for claude, OPENAI_API_KEY for openai, and GEMINI_API_KEY or GOOGLE_API_KEY for gemini.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfgit_impact-0.2.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfgit_impact-0.2.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file cfgit_impact-0.2.0.tar.gz.

File metadata

  • Download URL: cfgit_impact-0.2.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cfgit_impact-0.2.0.tar.gz
Algorithm Hash digest
SHA256 630d55b609bc1979835b5523d6dff58b82e91b4b76d280c4e035e4d16dcd3f32
MD5 1bffe58a7cf2e2b9c16eab7bc271a8c8
BLAKE2b-256 887682b71eb5f3afbf99c72a9822eee1d4c920f222f67f37155ee3cf8425ac33

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfgit_impact-0.2.0.tar.gz:

Publisher: publish.yml on AusafMo/cfgit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cfgit_impact-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cfgit_impact-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cfgit_impact-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14b4085fefb868cb0473a5e8017a88095cd6f8cba35a8f9ae18381370e5e1225
MD5 6e5ab3283db90ae435afada313a8826d
BLAKE2b-256 e68d647cb653d64ece7fe3e73539cf03b975ef7104860939d6ea58430c0597e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cfgit_impact-0.2.0-py3-none-any.whl:

Publisher: publish.yml on AusafMo/cfgit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page