How tamanna456760-it/tamanna- works
1. This repository is a multi-project automation platform, not a single app. The dominant architectural theme is an AI-driven control plane that scans code, fixes issues, syncs repositories, monitors health, and triggers builds/deploys across many language stacks.
2. The repo-level automation layer is centered on the root runner scripts and the behavior described in the README. The main responsibilities are split into scan/detect, auto-fix, and system-monitor roles, with supporting entry points like run.py, monitor.py, lint_monitor.py, auto_fix_issues.py, and many tamanna_* shell/Python scripts.
3. GitHub Actions is a major orchestration boundary. .github/workflows contains many pipelines for auto-sync, auto-heal, lint/fix, security checks, build/deploy, APK builds, and AI-run workflows, while .github/scripts holds custom policy/decision utilities that shape those jobs.
4. The AI/runtime core is spread across several Python- and JavaScript-heavy subtrees such as ai/, Tamanna-AI-System/, ai system/, and large parts of bd-king-r7/IT/. These modules implement scanner, decision, learning, backup, code-generation, monitoring, and sync behaviors, usually with file-backed state rather than a centralized database.
5. A second important subsystem is repository and environment synchronization. This includes git_sync, backup managers, auto-sync scripts, device sync folders, timers/services, and orchestrator code under bd-king-r7/IT/.../powerhub and related sync folders. The data flow here is typically “local changes → sync/backup/orchestrate → remote repo or device target.”
6. The web/API layer is split into multiple independently deployable services. Examples include website/ (Node backend, React frontend, .NET Razor app, Nginx, Docker), server/ (Node backend with auth/chat routes and static pages), tamanna-server/, AI_CHAT/chat_server.py, and artifacts/api-server with its OpenAPI spec and DB schema.
7. There is also a mobile/client tier. tamanna-ai-app/, bd-king-r7/IT/tamannna-android/, and device/ contain Android/Kotlin/Java clients, WebView bridges, and local control panels, suggesting a remote-control or companion-app architecture that talks to the backend and sync/AI services.
8. Security and defense are first-class concerns, not an afterthought. Subsystems like face-detector/, deep_packet_inspection.py, bd-king-r7/IT/potocol/, security_* modules, and cybersecurity scripts provide scanning, auth, threat detection, rate limiting, logging, and blocking/response logic.
9. The repository uses many runtimes and infrastructure tools side by side: Python, Node.js/TypeScript, Bash, Kotlin/Java Android, .NET 8, and some PHP. Deployment and execution are mediated by Docker, Nginx, systemd services/timers, GitHub Actions, and in a few places Cloudflare Workers-style DNS/edge configuration.
10. State is mostly file-based and configuration-driven. Important stores include JSON/YAML config files, log files, SQLite databases like reports.db, schema files under artifacts/lib/db, and numerous project-specific memory/backup files; this means the architecture is closer to “many cooperating services with local persistence” than to a single centralized database app.
11. For an architecture diagram, the clearest top-level view is: a central AI automation/control plane at the repo root, GitHub Actions as the orchestration bus, and several satellite product stacks beneath it—web, mobile, API, security, sync/backup, and CV/auth—connected mostly through files, scripts, and CI jobs rather than a single shared service boundary.
Main entry points: ai_brain_core.py AI brain · run.py Run · tamanna_ai_system.py AI system · app.py Orchestrator
Components 29
Repo control
Root-level automation entry points and runner scripts.
- Run · Primary Python entry point for repo automation.
run.py - Monitor · Top-level monitoring and health loop.
monitor.py - Auto fix · Root issue-fixing automation entry point.
auto_fix_issues.py - Lint watch · Detects and tracks lint or quality problems.
lint_monitor.py
CI orchestration
GitHub Actions workflows and policy scripts.
- Actions · Main GitHub Actions orchestration surface.
.github/workflows/auto-sync.yml - Policy scripts · Workflow decision and fixer utilities.
.github/scripts/auto_code_fixer.py
AI core
Scanner, decision, learning, monitor, and generation logic.
- AI brain · Central AI control and coordination logic.
ai_brain_core.py - Scanner · Code and issue scanning layer.
ai_code_integrity_monitor.py - Defense · AI defense and response logic.
ai_defense_core.py - System watch · Repo and system health observation.
ai_system_monitor.py - Power hub · Coordination layer for AI-driven repo operations.
ai_powerhub_core.py
Sync plane
Repository sync, backup, and device/repo propagation.
- AI system · File-backed AI runtime and sync utilities.
Tamanna-AI-System/tamanna_ai_system.py - Git sync · Repository clone/update and sync operations.
Tamanna-AI-System/git_sync.py - Backup · Backup and restore manager for local state.
Tamanna-AI-System/backup_manager.py - Orchestrator · Hybrid PowerHub orchestrator spanning Python and .NET.
bd-king-r7/IT/bd-king-r7/powerhub/bd-king-r7 powerhub/orchestrator/app.py
Services
Web/API backends and deployable service stacks.
- API server · OpenAPI-backed API service boundary.
artifacts/api-server/src/app.ts - Web backend · Node backend for web-facing interactions.
bd-king-r7/website/backend/server.js - Web portal · Razor-based site and project UI.
bd-king-r7/website/bd-king-website/Program.cs
Clients
Mobile, desktop, and device-facing control surfaces.
- Mobile app · Android client and control shell.
tamanna-ai-app/app/src/main/java/com/tamanna/MainActivity.kt - Device panel · Local device control and sync UI.
device/MainActivity.kt - Android hub · Secondary Android companion app.
bd-king-r7/IT/tamannna-android/app/src/java/com/tamanna/app/mainactivity.java
Security
Detection, hardening, and defensive control logic.
- Face lock · Face-based authentication and detection stack.
face-detector/app.py - Packet inspect · Deep packet inspection and traffic analysis.
deep_packet_inspection.py - Defender · Server defense and blocking protocol.
bd-king-r7/IT/potocol/server defanding potocol/main.py - Cybersecurity · Security auditing and hardening scripts.
bd-king-r7/IT/Cybersecurity/cybersecurity.py
State
File-backed memory, config, schema, and logs.
- Memory · Persistent AI memory and learned state.
brain_memory.json - Configs · Central configuration and monitoring settings.
Tamanna-AI-System/config/config.json - DB schema · Shared database schema for service data.
artifacts/lib/db/src/schema/index.ts - Logs · Repository-wide operational log files.
ROOT/logs/tamanna_pro_cli.log
Connections 30
- Run → AI brain: drives · Root runner invokes the central AI control plane.
- Run → Monitor: starts · Runner hands off to monitoring when needed.
- Run → Auto fix: repairs · Root automation can trigger issue-fixing flows.
- Monitor → Lint watch: checks · Monitoring feeds lint/quality surveillance.
- Auto fix → Policy scripts: uses · Root repair logic relies on workflow fixer utilities.
- Actions → Policy scripts: orchestrates · Actions workflows call custom policy and fixer scripts.
- Actions → AI brain: triggers · CI workflows launch AI-run automation jobs.
- Policy scripts → Scanner: scores · Policy scripts evaluate scan results and build risk.
- AI brain → Scanner: scans · Core AI delegates code analysis and detection.
- AI brain → Defense: defends · Core AI routes threats to defense logic.
- AI brain → System watch: watches · Core AI keeps runtime health under observation.
- AI brain → Power hub: coordinates · PowerHub is the execution layer for AI actions.
- AI brain → Memory: persists · AI state is stored in file-backed memory.
- AI system → Git sync: syncs · AI system updates repositories through sync tooling.
- AI system → Backup: backs up · Local state is preserved through backup flows.
- Git sync → Configs: reads · Sync behavior is configuration-driven.
- Backup → Logs: records · Backup and restore operations write operational logs.
- Orchestrator → Git sync: orchestrates · PowerHub orchestrator coordinates repo sync operations.
- Orchestrator → DB schema: stores · Orchestrator has local structured persistence.
- API server → DB schema: reads/writes · API service uses shared database schema.
- Web backend → API server: calls · Web backend fronts API-style interactions.
- Web portal → DB schema: queries · Portal data is shaped by stored project records.
- Mobile app → Web backend: uses · Android app talks to backend services.
- Device panel → AI system: controls · Device UI acts as a local control surface for the AI system.
- Android hub → Orchestrator: monitors · Companion Android layer hooks into orchestration.
- Face lock → Web backend: auths · Face auth can gate web-facing access.
- Packet inspect → Defender: feeds · Packet inspection informs defensive protocol logic.
- Cybersecurity → Defender: hardens · Cybersecurity scripts backstop protocol defenses.
- Defense → Packet inspect: analyzes · AI defense consumes network inspection signals.
- System watch → Logs: emits · Monitoring writes operational traces.