Skip to content

sohamrajput98/Trace-Ability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

89 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Β Β  Β Β  Β Β 

Β Β 


🌐 LIVE NEURAL INTERFACE :



Important

Hackathon submission note: The first ~38 seconds of the demo video appear blank due to a recording/export issue. The actual demo begins at 00:38.

πŸŽ₯ SYSTEM TELEMETRY NOTE (DEMO VIDEO)

Technical reasoning, live logs, and the dashboard deep-dive begin at 00:38


TRACE-ABILITY SYSTEMS :

Trace-Ability acts as a Cognitive Black Box Recorder for software architecture. Instead of only storing code diffs, it captures the reasoning and architectural intent behind each developer commit. The system analyzes modified files, reconstructs the likely purpose of the change, and stores these insights as structured telemetry - creating a traceable record of how the system evolves.


THE "CONTEXT COLLAPSE" ANOMALY :

The Flaw The Catalyst The Reality
Git tracks what changed, but erases the why. AI accelerates code generation without capturing intent. Endless hours wasted reverse-engineering massive technical debt.

Six months later, developers cannot explain why a critical service dependency was introduced . Trace-Ability bridges this gap by generating living, evolving documentation natively through semantic analysis, avoiding reliance on misleading or incomplete human commit messages .


TRACE-ABILITY CORE CAPABILITIES :

Trace-Ability uses Amazon Nova Lite to analyze raw code diffs and reconstruct the architectural intent behind each commit .

  • Automated Intent Reconstruction: Performs semantic analysis on code diffs to generate living documentation of architectural decisions.
  • Immutable Telemetry Ledger: Stores project intelligence in a cryptographically verifiable log backed by Amazon DynamoDB.
  • Cognitive Value Add: Generates trust scores and risk signals, turning complex diffs into concise summaries to reduce code-review effort.

THE DETERMINISTIC TRUST MODEL :

To reduce the β€œblack-box” uncertainty common in AI tooling, Trace-Ability assigns a deterministic trust score to each generated output using three core signals.

$$Trust = Model\ Confidence \times Diff\ Consistency \times Change\ Locality$$


  • Model Confidence: The LLM confidence score for the generated architectural explanation.
  • Diff Consistency: Measures how well the commit message aligns with the actual code changes.
  • Change Locality: Checks whether modifications stay within a logical module or are scattered across the codebase.

SYSTEM ARCHITECTURE :

Trace-Ability operates on an event-driven CI pipeline built on GitHub Actions and powered by AWS Serverless technologies .

Trace-Ability System Architecture
Figure 1.0: End-to-End Serverless Intelligence Layer


βš™οΈ Architecture Components -

  • GitHub Repository: Entry point where commit and push events trigger the webhook.
  • AWS Lambda (Webhook Receiver & Processor): Processes GitHub events and extracts raw diffs and metadata.
  • Amazon Bedrock (Nova Lite): Performs semantic analysis to generate the architectural narrative.
  • Amazon DynamoDB (Telemetry Ledger): Stores commit intelligence and analysis results as an immutable record.
  • Next.js Dashboard: Frontend deployed on Vercel that retrieves data via Lambda Function URLs to display trust scores and real-time updates.

HIGH-LEVEL PROCESS FLOW :

High-Level Process Flow
Figure 1.1: Multi-Stage Telemetry Ingestion and Agentic Reasoning Flow


πŸ› οΈ The 5-Stage Pipeline -

  1. Developer Action: A developer commits and pushes code to the repository.
  2. Event Capture: Raw diff and commit metadata are intercepted and extracted.
  3. AI Analysis: The system determines intent and calculates risk and trust scores.
  4. Ledger Storage: The structured architectural narrative and scores are stored securely.
  5. Dashboard Visualization: Results are streamed to the dashboard for real-time review.

EVALUATION / RESULTS :

The intent-extraction pipeline runs on a fully serverless architecture, enabling efficient scale-to-zero operation.

  • Ultra-Low Deployment Cost: The entire system - development, testing, and deployment - ran on approximately $0.10 total cloud cost, demonstrating the efficiency of a serverless AI architecture.
  • Cost Optimization: The intelligence engine runs on Amazon Nova Lite, keeping the estimated MVP operating cost below $10/month.
  • Semantic Accuracy: Evaluated on a ground-truth dataset of 50 complex commits, achieving an 81.4% semantic match rate between the generated narrative and human intent.
  • Inference Latency: Average intent-extraction time < 3.5 seconds, enabling CI/CD integration without blocking workflows.
  • Scale & Complexity: Processed average diffs of 8–25 files per commit, with the largest test handling 42 files.

TECHNOLOGIES UTILIZED :

Category Stack
Cloud Compute & API AWS Lambda, Lambda Function URLs
Generative AI Amazon Bedrock (Amazon Nova Lite)
Database Amazon DynamoDB (with secured IAM least-privilege Scan/Query policies)
Frontend Framework Next.js 15 (App Router), React, Tailwind CSS
Animations & UI Framer Motion (Shared Layout Transitions, 3D Horizon Scrolling), Lucide Icons
DevOps & Deployment Vercel (Custom Root Directory configs), GitHub Actions

πŸ“Έ SYSTEM TELEMETRY (DASHBOARD) :




FIGURE 1:Operational Command Center: Real-time Cognitive Engineering HUD

Β Β Β Β 
FIGURE 2: Neural Narrative: Semantic Intent Reconstruction & Confidence Scoring


FIGURE 3: System Initialization: Bedrock-Enforced Telemetry Scanning



FIGURE 4: Trace-Ability Core: Cognitive Black Box Recorder Branding


🧱 SYSTEM STRUCTURE :

Repository structure overview.

.
β”œβ”€β”€ README.md
β”œβ”€β”€ PRODUCT_SPECS.md
β”œβ”€β”€ design.md
β”œβ”€β”€ requirements.txt

│── architecture.png
│── flowdiagram.png

β”œβ”€β”€ assets
β”‚   β”œβ”€β”€ icons
β”‚   β”‚   β”œβ”€β”€ DynamoDB.svg
β”‚   β”‚   β”œβ”€β”€ Lambda.svg
β”‚   β”‚   β”œβ”€β”€ ai.svg
β”‚   β”‚   β”œβ”€β”€ api.svg
β”‚   β”‚   β”œβ”€β”€ brain.svg
β”‚   β”‚   └── ...
β”‚   └── screenshots
β”‚       β”œβ”€β”€ screenshot_1.png
β”‚       β”œβ”€β”€ screenshot_2.png
β”‚       β”œβ”€β”€ screenshot_3.png
β”‚       β”œβ”€β”€ screenshot_4.png
β”‚       β”œβ”€β”€ screenshot_5.png
β”‚       └── screenshot_6.png

β”œβ”€β”€ backend
β”‚   └── lambda_handler.py

β”œβ”€β”€ dashboard
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ next.config.ts
β”‚   β”œβ”€β”€ tailwind.config.ts
β”‚   └── src
β”‚       β”œβ”€β”€ app
β”‚       └── components

β”œβ”€β”€ hooks
β”‚   └── pre-commit.py

β”œβ”€β”€ data
β”‚   └── schema.json

└── tests
    β”œβ”€β”€ github_api_test.py
    └── sample_diff.json


DEPLOYMENT & LOCAL SETUP :

Trace-Ability runs on AWS Lambda, so the pipeline executes only when a git push triggers it.

Bash
# 1. Clone the repository
git clone [https://github.com/sohamrajput98/Trace-Ability.git](https://github.com/sohamrajput98/Trace-Ability.git)
cd Trace-Ability

# 2. Configure Local Webhooks
chmod +x hooks/pre_commit.py
ln -sf ../../hooks/pre_commit.py .git/hooks/pre-commit

# 3. Environment Provisioning
pip install -r requirements.txt
# Ensure AWS CLI is configured with Bedrock (Nova Lite) permissions
# Deploy backend/lambda_handler.py to AWS Lambda


FUTURE IMPROVEMENTS :

  • Multi-Signal Context Aggregation: Expanding the pipeline to ingest Issue descriptions (Jira) , PR discussions, and Slack threads alongside the code diff to generate a complete 360-degree view of developer intent .

  • Pull Request Advisor: Injecting the Bedrock architectural narrative directly into GitHub PR comments as an automated reviewer before code merge .

  • Semantic "Why" Search: Allowing developers to query the DynamoDB intent-registry (e.g., "Why did we introduce Redis to the auth service in January?") .


𝐋𝐄𝐀𝐃 π„ππ†πˆππ„π„π‘- 𝕾𝖔𝖍𝖆𝖒 π•½π–†π–π–•π–šπ–™

Architected with

About

Trace-Ability: The "Black Box" for your IDE- Capturing the human intent behind every line of AI-assisted code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors