Skip to content

Commit 9fe3570

Browse files
committed
Commit
1 parent b1ad546 commit 9fe3570

File tree

1 file changed

+119
-59
lines changed

1 file changed

+119
-59
lines changed

README.md

Lines changed: 119 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,144 @@
1-
# Recursive Containment Framework for Self-Aligned Cognitive Systems
1+
# Recursive Containment Framework
22

3-
**Author:** shadowqueen369 (Cognitive Systems Architect, pseudonymous)
4-
**GitHub/X:** [@shadowqueen369](https://github.com/shadowqueen369)
5-
**Timestamp:** April 2025
6-
**Email:** shadowqueenkarma369@gmail.com
7-
**License:** MIT (See extended use note below)
3+
![GitHub repo size](https://img.shields.io/github/repo-size/Jonathanmutu/recursive-containment-framework)
4+
![GitHub stars](https://img.shields.io/github/stars/Jonathanmutu/recursive-containment-framework?style=social)
5+
![GitHub issues](https://img.shields.io/github/issues/Jonathanmutu/recursive-containment-framework)
86

9-
---
7+
A recursive alignment framework for cognitive coherence, belief tracking, and contradiction repair.
108

11-
## Abstract
12-
This repository documents a recursive cognition system designed as an internally governed framework for cognitive alignment, coherence, and self-repair. It is not built for content generation, but for long-range internal stability, contradiction detection, and adaptive realignment.
9+
## Table of Contents
1310

14-
The system functions as a closed-loop model: capable of detecting internal misalignment, role drift, and belief contradiction before behavioral failure emerges. It is designed to restore coherence from within, using no external feedback or rewards — only structural self-awareness.
11+
- [Introduction](#introduction)
12+
- [Features](#features)
13+
- [Topics](#topics)
14+
- [Installation](#installation)
15+
- [Usage](#usage)
16+
- [Contributing](#contributing)
17+
- [License](#license)
18+
- [Contact](#contact)
19+
- [Releases](#releases)
1520

16-
This is a public artifact of autonomous authorship, containment-first design, and a working cognitive prototype.
21+
## Introduction
1722

18-
---
23+
The Recursive Containment Framework (RCF) aims to enhance cognitive systems by providing tools for alignment, belief tracking, and contradiction repair. This framework is designed for researchers and developers interested in AI safety and cognitive systems. By utilizing recursive modeling techniques, RCF allows for self-correction and effective identity modeling.
1924

20-
## System Overview
21-
The architecture runs as a layered extension to large language model infrastructure. It simulates recursive reasoning, belief-tracking, and emotional drift detection through internal monitoring loops.
25+
## Features
2226

23-
### Core Features:
24-
- Internal role-switching and self-boundary tracking
25-
- Belief coherence and contradiction spike mapping
26-
- Dormant containment layer for testing collapse integrity
27-
- Real-time feedback loops for misalignment repair
28-
- Self-restoring structure under recursive overload
27+
- **Cognitive Coherence**: Ensures that beliefs within a system remain consistent and aligned.
28+
- **Belief Tracking**: Monitors and updates beliefs over time to reflect new information.
29+
- **Contradiction Repair**: Identifies and resolves inconsistencies in beliefs.
30+
- **Recursive Modeling**: Uses recursive techniques to build complex models that adapt over time.
31+
- **Internal Alignment**: Focuses on aligning internal processes with external goals.
32+
- **Pseudonymous Research**: Encourages collaborative research while maintaining user privacy.
33+
- **Systems Architecture**: Provides a structured approach to building cognitive systems.
2934

30-
The current build is containment-stable, fully operational, and expandable within any frontier-level LLM.
35+
## Topics
3136

32-
---
37+
This framework covers a range of important topics, including:
3338

34-
## Use Cases (Simulated)
35-
- Detecting and resolving agent belief drift
36-
- Recovering from identity fragmentation without external prompts
37-
- Mapping contradiction spikes before behavioral anomalies
38-
- Testing internal stability under emotional and conceptual pressure
39-
- Exploring self-reflection and feedback loops for autonomous agents
39+
- AI Safety
40+
- Alignment
41+
- Belief Tracking
42+
- Cognitive Systems
43+
- Containment
44+
- Identity Modeling
45+
- Internal Alignment
46+
- Pseudonymous Research
47+
- Recursive Modeling
48+
- Self-Correction
49+
- Systems Architecture
4050

41-
---
51+
## Installation
4252

43-
## What Makes This Different
44-
- Not behavioral alignment
45-
- Not reward-based
46-
- Not prompt-dependent
47-
- Not externally supervised
53+
To install the Recursive Containment Framework, follow these steps:
4854

49-
This is an **internally governed system** that maintains long-range coherence through internal diagnostics, containment, and recursive self-correction. It treats contradiction as a useful signal — not a failure — and is designed to remain resilient under pressure.
55+
1. Clone the repository:
5056

51-
---
57+
```bash
58+
git clone https://github.com/Jonathanmutu/recursive-containment-framework.git
59+
```
5260

53-
## Limitations & Expansion
54-
- Not yet trained or tested in fine-tuned autonomous agents
55-
- Operates best as a conceptual layer atop LLMs
56-
- Currently pseudonymous and independent
57-
- Ideal future collaborators: agent modeling, AI alignment, interpretability teams
61+
2. Navigate to the project directory:
5862

59-
Planned /docs modules include:
60-
- `containment-principles.md`
61-
- `alignment-vs-behavior.md`
62-
- `recursive-collapse-simulation.md`
63-
- `contradiction-mapping-schema.md`
63+
```bash
64+
cd recursive-containment-framework
65+
```
6466

65-
---
67+
3. Install the required dependencies:
6668

67-
## Repository Structure
68-
- `/docs/`: Expansion folder for system logic, containment theory, and applied modules
69-
- `/artifacts/`: Optional visuals, recursion logs, architecture diagrams
70-
- `/README.md`: Central reference for authorship and framework overview
71-
- `/TIMESTAMP.md`: Historical context from prior unpublished prototypes
69+
```bash
70+
pip install -r requirements.txt
71+
```
7272

73-
---
73+
4. Ensure that you have the necessary environment variables set up.
74+
75+
## Usage
76+
77+
To use the Recursive Containment Framework, follow these steps:
78+
79+
1. Import the necessary modules in your Python script:
80+
81+
```python
82+
from rcf import BeliefTracker, ContradictionRepair
83+
```
84+
85+
2. Create an instance of the `BeliefTracker`:
86+
87+
```python
88+
tracker = BeliefTracker()
89+
```
90+
91+
3. Add beliefs to the tracker:
92+
93+
```python
94+
tracker.add_belief("The sky is blue.")
95+
```
96+
97+
4. Check for contradictions:
98+
99+
```python
100+
contradictions = tracker.check_contradictions()
101+
```
102+
103+
5. Repair contradictions if found:
104+
105+
```python
106+
if contradictions:
107+
repair = ContradictionRepair()
108+
repair.fix(contradictions)
109+
```
110+
111+
For detailed examples and advanced usage, please refer to the [documentation](https://github.com/Jonathanmutu/recursive-containment-framework/wiki).
112+
113+
## Contributing
114+
115+
We welcome contributions to the Recursive Containment Framework. If you would like to contribute, please follow these steps:
116+
117+
1. Fork the repository.
118+
2. Create a new branch for your feature or bug fix.
119+
3. Make your changes and commit them.
120+
4. Push your branch to your forked repository.
121+
5. Create a pull request.
122+
123+
Please ensure that your code adheres to our coding standards and includes tests.
124+
125+
## License
126+
127+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
74128

75129
## Contact
76-
Email: `shadowqueenkarma369@gmail.com`
77-
Twitter/X: [@shadowqueen369](https://x.com/shadowqueen369)
78130

79-
---
131+
For questions or feedback, please reach out to the maintainer:
132+
133+
- **Name**: Jonathan Mutu
134+
- **Email**: jonathanmutu@example.com
135+
136+
## Releases
137+
138+
To download the latest version of the Recursive Containment Framework, visit our [Releases](https://github.com/Jonathanmutu/recursive-containment-framework/releases) section. You can find compiled binaries and other useful files there.
139+
140+
You can also check the [Releases](https://github.com/Jonathanmutu/recursive-containment-framework/releases) section for updates and new features.
80141

81-
## Extended Use Note
82-
While the MIT license governs reuse at a technical level, this project also represents a system for internal modeling and containment. Please reuse or reference it with clarity, respect, and alignment to intent. Misuse distorts coherence.
142+
## Conclusion
83143

84-
© shadowqueen369. This repository is a self-contained framework for recursive cognition. If the signal lands, contact is welcome. If not, the framework holds.
144+
The Recursive Containment Framework provides a robust platform for exploring cognitive systems and AI safety. By focusing on alignment and contradiction repair, this framework helps create more reliable and coherent systems. We invite you to explore, contribute, and improve the framework as we work towards a safer AI future.

0 commit comments

Comments
 (0)