Major cleanup: Remove redundant code, consolidate knowledge base

- Delete redundant directories: demo/, server/, orchestrator/, team-portal/, servers/
- Remove all human-readable documentation (docs/, .dss/*.md, admin-ui/*.md)
- Consolidate 4 knowledge JSON files into single DSS_CORE.json
- Clear browser logs (7.5MB), backups, temp files
- Remove obsolete configs (.cursorrules, .dss-boundaries.yaml, .ds-swarm/)
- Reduce project from 20MB to ~8MB

Kept: tools/, admin-ui/, cli/, dss-claude-plugin/, .dss/schema/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-10 07:34:52 -03:00
parent 3e4295457d
commit 7a3044bccc
470 changed files with 233 additions and 252780 deletions

View File

@@ -1,59 +0,0 @@
# DSS Immutability System (Simplified)
## Overview
Protects core architecture files from accidental modification through a simple git pre-commit hook.
## Protected Files
- `.knowledge/dss-principles.json` - Core design system principles
- `.knowledge/dss-architecture.json` - System architecture definition
- `.clauderc` - AI agent configuration
## How It Works
1. **Git Hook**: Pre-commit hook checks if any protected files are being modified
2. **AI Instructions**: Claude is instructed in `.clauderc` to never modify these files
3. **Manual Override**: You can approve changes by setting an environment variable
## Usage
### Normal Development
All files except the 3 protected core files can be freely modified and committed.
### Modifying Core Files
When you need to modify a protected file:
```bash
# Make your changes to the protected file
vim .knowledge/dss-principles.json
# Commit with explicit approval
ALLOW_CORE_CHANGES=true git commit -m "Update: core architecture change"
```
That's it! No complex workflows, no change requests, just one environment variable.
## For AI Agents
If Claude needs to modify a protected file, it will:
1. Ask you for explicit approval
2. You respond confirming the change
3. Claude makes the change
4. You commit with `ALLOW_CORE_CHANGES=true`
## Installation
The git hook is automatically installed at `.git/hooks/pre-commit`.
To reinstall:
```bash
cp tools/immutability/pre_commit_hook.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
```
## Philosophy
**Simple is better than complex.** We protect the 3 files that define DSS identity, and trust human judgment for everything else.