Skip to main content

The G-Brain Company Brain Primitive: continuously compiles Slack, Jira, and Gmail into an executable, conflict-resolved operational state for AI agents.

Project description

ain-state-compiler

The G-Brain Company Brain Primitive: continuously compiles Slack, Jira, and Gmail into an executable, conflict-resolved operational state for AI agents.

Overview

The ain-state-compiler operates 100% offline at the source level, parsing and aggregating enterprise communication and issue-tracking streams to produce internally consistent state representations. It prevents AI agents from executing against stale, fragmented, or conflicting corporate knowledge.

Key Outputs

  • Institutional Memory Modules (IMMs): Markdown-based, human- and machine-readable state snapshots.
  • Operational Execution Graphs (OEGs): Optimized YAML topologies representing resolution paths.
  • Active Conflict Reports: Discrepancy matrices identifying contradictions between engineering, marketing, and support data.

Installation

pip install ain-state-compiler

Usage

from ain_state_compiler.compiler import StateCompiler

# The project directory should contain a 'mock_data' folder with slack_history.json, jira_issues.json, and emails.json
compiler = StateCompiler(project_dir="/path/to/project")
summary = compiler.compile()

print(f"Processed {summary['processed_slack_events']} Slack events.")
print(f"Detected {summary['detected_conflicts']} active state conflicts.")

Core Architecture

"Ponytail" Lazy Gatekeepers

Internalizes the spirit of the "lazy senior dev" reductionist mindset directly into the core architecture:

  • LazyStateFilter: A strict deterministic "No-Op" filter that drops incoming data if it does not meaningfully mutate the operational state.
  • StateReuseEngine: Scans a historical cache of previously resolved conflicts. If a highly similar transformation exists, the compiler clones and adapts rather than generating from scratch.
  • StateCompilerEngine: Enforces rigid bounds (max_tokens, length limits) on LLM compilation passes, aborting cleanly to naive primitives if structural code bloat occurs.

Conflict Detection & Optimization

  • ConflictDetector: Runs rule-based, deterministic logic to spot discrepancies before invoking generation.
  • TokenOptimizer: Compresses verbose JSON state outputs into highly dense YAML representations, minimizing token footprint for downstream agent ingestion.

Changelog

v0.8.2

  • Rebranding: Updated GitHub URLs and package author metadata to That-Tech-Geek.

v0.8.1

  • Ponytail Architecture: Introduced LazyStateFilter, StateReuseEngine, and StateCompilerEngine programmatic gatekeepers.
  • State Minimization: Implemented deterministic noise filtering and semantic hash comparisons to prevent unnecessary compilation.
  • Token/Complexity Penalties: Set rigid metric constraints for generative compilation steps to minimize complexity.

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

ain_state_compiler-0.8.3.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

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

ain_state_compiler-0.8.3-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file ain_state_compiler-0.8.3.tar.gz.

File metadata

  • Download URL: ain_state_compiler-0.8.3.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ain_state_compiler-0.8.3.tar.gz
Algorithm Hash digest
SHA256 0de8d07dde49bc85b10f7a3784cecea9c665e66f3bf8e611a1f04ea71b7f3d24
MD5 b364c90e58f50e58b630d7d75b23531a
BLAKE2b-256 d91d6adfec70ad330bd2eda3db5a1f21914a7323434923887a1c74fcedd554a5

See more details on using hashes here.

File details

Details for the file ain_state_compiler-0.8.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ain_state_compiler-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5753d1f4ac43e73e3e1d6daaf12bae79e232404050a043df61abea9ab8824e5
MD5 af06583f315d5c96b771e7deecde308e
BLAKE2b-256 1421f10d6371902c83128acd0f903fe1408788d041abf972da234d4cd31cd979

See more details on using hashes here.

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