Major Project for UMJDTT-502
Student: Adil Mahajan
Course: B. Tech (AI & MI) Semester 5
Cognition Breach is a conversational simulation and visual novel that implements a Finite Automaton (FA) to model complex narrative states. Unlike traditional linear chatbots, this project uses a state-machine approach to manage transitions between three distinct "Realities" (States), where user input serves as the alphabet triggering state changes.
The project demonstrates:
- Finite Automata Concepts: The entire narrative structure models a DFA (Deterministic Finite Automaton) where nodes are story states and edges are user choices.
- Rule-Based Chat System ("Cognet"): A simulated real-time messenger that connects three distinct personalities (Kaelen, IRIS-7, Lyra), each representing a different state of reality.
- State Transitions: Dynamic switching between Physical, Digital, and Spiritual layers based on user interaction.
The system is designed as a tuple
-
States (
$Q$ ): The set of active realities{"Kaelen" (Physical), "IRIS" (Digital), "Lyra" (Spiritual)}. -
Input Alphabet (
$\Sigma$ ): User choices in the Cognet chat interface and Truth Matrix. -
Transition Function (
$\delta$ ): The logic defining how a choice moves the narrative from one reality view to another (e.g.,Switch -> Digital). -
Start State (
$q_0$ ): The "White Noise" event (Initial Fracture). -
Final States (
$F$ ): The "Core" convergence sequence / Demo Conclusion.
- Rashomon Effect Implementation: The same "event" (input) produces different outputs depending on the current state (Reality Layer).
- Cognet Chat Interface: A visual representation of the rule-based dialogue system.
- Truth Matrix: A persistent data store that validates state consistency across transitions.
game/simple_chat.rpy: Implementation of the chat buffer and message handling logic.game/script.rpy: The main state machine definition (Labels and Menus).game/screens.rpy: UI definitions for the state visualization.
- Ensure you have Ren'Py 8.5.0 or later installed (or use the provided executable).
- Clone this repository.
- Launch the project using the Ren'Py launcher.
- Expansion of the alphabet (
$\Sigma$ ) to include Natural Language Processing (NLP) inputs. - Complex non-deterministic transitions based on probabilistic "glitches".
Created by Adil Mahajan for Skill Incubation Innovation Entrepreneurship Development Centre, University of Jammu.