Phase 5: Add immutable file headers to all protected files
Added protection headers to 9 critical files: JSON Files (x-immutable-notice field): - .dss/schema/api.schema.json - .dss/schema/tokens.schema.json - .dss/schema/components.schema.json - .dss/schema/workflows.schema.json - .dss/schema/guardrails.schema.json - dss-claude-plugin/.mcp.json YAML File (comment header): - .dss-boundaries.yaml Markdown File (HTML comment): - API_SPECIFICATION_IMMUTABLE.md Python File (docstring header): - dss-mvp1/dss/validators/schema.py Each header includes: - Protection notice - Reason for immutability - Last modified date - Bypass instructions (DSS_IMMUTABLE_BYPASS=1) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# 🧬 DSS Organism Framework: Code Integration Guide
|
||||
# 🧬 DSS Component Framework: Code Integration Guide
|
||||
|
||||
**How to integrate component vocabulary into DSS code, messages, and logging.**
|
||||
|
||||
@@ -139,7 +139,7 @@ const logLevels = {
|
||||
// AFTER
|
||||
const logLevels = {
|
||||
DEBUG: { level: 0, color: '#888', prefix: '🧠 [THOUGHT]' }, // Brain thinking
|
||||
INFO: { level: 1, color: '#2196F3', prefix: '💭 [AWARENESS]' }, // Organism aware
|
||||
INFO: { level: 1, color: '#2196F3', prefix: '💭 [AWARENESS]' }, // Component aware
|
||||
WARN: { level: 2, color: '#FF9800', prefix: '⚠️ [SYMPTOM]' }, // Health concern
|
||||
ERROR: { level: 3, color: '#F44336', prefix: '🛡️ [IMMUNE ALERT]' }, // Threat detected
|
||||
};
|
||||
@@ -158,7 +158,7 @@ print("Running reset...")
|
||||
print("✅ Reset complete")
|
||||
|
||||
# AFTER - Frame as component actions
|
||||
print("🧬 Organism undergoing regeneration...")
|
||||
print("🧬 Component undergoing regeneration...")
|
||||
print("✅ Regeneration complete - component reborn")
|
||||
|
||||
# Health check output
|
||||
@@ -234,7 +234,7 @@ Suggested framing:
|
||||
|
||||
Suggested framing:
|
||||
- Generator purpose: "Refresh the skin - generate Storybook documentation"
|
||||
- Story creation: "Organism educating the external world through documentation"
|
||||
- Story creation: "Component educating the external world through documentation"
|
||||
- Component showcase: "Display how tissues (components) work together"
|
||||
|
||||
---
|
||||
@@ -309,7 +309,7 @@ For progress tracking and logging, map to component processes:
|
||||
```python
|
||||
logger.info("🍽️ Digestive system beginning token extraction...")
|
||||
logger.debug("🧠 Brain analyzing token patterns...")
|
||||
logger.warning("⚠️ Organism experiencing metabolic stress - slow processing")
|
||||
logger.warning("⚠️ Component experiencing metabolic stress - slow processing")
|
||||
logger.error("❌ Critical immune failure - infection detected and isolated")
|
||||
```
|
||||
|
||||
@@ -324,7 +324,7 @@ For CLI commands and settings descriptions:
|
||||
@click.option('--feed', is_flag=True, help='Feed the DSS with new tokens from Figma')
|
||||
@click.option('--health', is_flag=True, help='Check the component vital signs')
|
||||
def dss_cli(feed, health):
|
||||
"""DSS Organism Control Panel - Feed, monitor, and maintain the system"""
|
||||
"""DSS Component Control Panel - Feed, monitor, and maintain the system"""
|
||||
if feed:
|
||||
print("🍽️ Opening intake valve...")
|
||||
if health:
|
||||
@@ -405,7 +405,7 @@ As you update files, organize documentation like this:
|
||||
```
|
||||
dss-mvp1/
|
||||
├── README.md
|
||||
│ └── Add: "The DSS Organism" section with framework link
|
||||
│ └── Add: "The DSS Component" section with framework link
|
||||
├── dss/
|
||||
│ ├── validators/
|
||||
│ │ └── schema.py ✅ UPDATED
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 📚 DSS Documentation Hub: The Organism's Permanent Memory
|
||||
# 📚 DSS Documentation Hub: The Component's Permanent Memory
|
||||
|
||||
Welcome to the DSS Documentation Hub - the central repository where all knowledge about the design system component lives. This is where we store what we've learned, how systems work, and where to find answers.
|
||||
|
||||
@@ -10,7 +10,7 @@ Welcome to the DSS Documentation Hub - the central repository where all knowledg
|
||||
|
||||
### Quick Links (Start Here)
|
||||
- **[Getting Started](#getting-started)** - New to DSS? Start here
|
||||
- **[Organism Framework](#component-framework)** - Understand the biology
|
||||
- **[Component Framework](#component-framework)** - Understand the biology
|
||||
- **[Extended Learning](#extended-learning)** - Deep dives into each system
|
||||
- **[How-To Guides](#how-to-guides)** - Common tasks and workflows
|
||||
- **[Troubleshooting](#troubleshooting)** - Problem solving
|
||||
@@ -21,7 +21,7 @@ Welcome to the DSS Documentation Hub - the central repository where all knowledg
|
||||
|
||||
### For First-Time Users
|
||||
1. **[Quick Start](QUICK_START_ORGANISM.md)** - 5-minute overview
|
||||
2. **[Organism Overview](DSS_ORGANISM_README.md)** - System introduction
|
||||
2. **[Component Overview](DSS_ORGANISM_README.md)** - System introduction
|
||||
3. **[Key Concepts](DSS_ORGANISM_GUIDE.md#key-concepts)** - Important ideas
|
||||
|
||||
### For Developers
|
||||
@@ -32,7 +32,7 @@ Welcome to the DSS Documentation Hub - the central repository where all knowledg
|
||||
### For Designers
|
||||
1. **[Design System Principles](../DSS_PRINCIPLES.md)** - Philosophy and approach
|
||||
2. **[Storybook Guide](../STORYBOOK_CONFIG.md)** - Documentation and presentation
|
||||
3. **[Quick Start Organism](QUICK_START_ORGANISM.md)** - Fast reference
|
||||
3. **[Quick Start Component](QUICK_START_ORGANISM.md)** - Fast reference
|
||||
|
||||
### For DevOps/Infrastructure
|
||||
1. **[Deployment](../DEPLOYMENT.md)** - Running the system
|
||||
@@ -41,11 +41,11 @@ Welcome to the DSS Documentation Hub - the central repository where all knowledg
|
||||
|
||||
---
|
||||
|
||||
## Organism Framework
|
||||
## Component Framework
|
||||
|
||||
### Foundation
|
||||
- **[DSS Organism Guide](DSS_ORGANISM_GUIDE.md)** - The complete framework
|
||||
- **[Organism Diagram](DSS_ORGANISM_DIAGRAM.md)** - Visual architecture
|
||||
- **[DSS Component Guide](DSS_ORGANISM_GUIDE.md)** - The complete framework
|
||||
- **[Component Diagram](DSS_ORGANISM_DIAGRAM.md)** - Visual architecture
|
||||
- **[Framework Summary](ORGANISM_FRAMEWORK_SUMMARY.md)** - Executive overview
|
||||
|
||||
### Vocabulary
|
||||
@@ -62,7 +62,7 @@ Each system below has detailed documentation:
|
||||
- **Key Files:** `dss/storage/`
|
||||
- **Vital Signs:** Response time, consistency, backup integrity
|
||||
- **Health Check:** Run `python -m dss.settings check-deps`
|
||||
- **Read More:** [DSS Organism Guide - Heart](DSS_ORGANISM_GUIDE.md#heart-database)
|
||||
- **Read More:** [DSS Component Guide - Heart](DSS_ORGANISM_GUIDE.md#heart-database)
|
||||
|
||||
#### 2. 🧠 Brain (Validators & Analysis)
|
||||
- **What It Is:** Validation rules and pattern detection
|
||||
@@ -104,7 +104,7 @@ Each system below has detailed documentation:
|
||||
- **Key Files:** `dss/themes/`
|
||||
- **Vital Signs:** Theme availability, application success
|
||||
- **Health Check:** Load different themes in Storybook
|
||||
- **Read More:** [DSS Organism Guide - Themes](DSS_ORGANISM_GUIDE.md#endocrine-system)
|
||||
- **Read More:** [DSS Component Guide - Themes](DSS_ORGANISM_GUIDE.md#endocrine-system)
|
||||
|
||||
#### 8. 🛡️ Immune System (Validators & QA)
|
||||
- **What It Is:** Data validation and quality assurance
|
||||
@@ -231,7 +231,7 @@ Each organ system has extended documentation available:
|
||||
- Review event emitters
|
||||
- See: [Architecture - Communication](ARCHITECTURE.md)
|
||||
|
||||
### Error Messages as Organism Communication
|
||||
### Error Messages as Component Communication
|
||||
|
||||
The component communicates health through error messages:
|
||||
- **🛡️ IMMUNE ALERT** - Validation failed (data rejected)
|
||||
@@ -317,7 +317,7 @@ docs/
|
||||
|
||||
**New Team Members**
|
||||
→ Start with [Getting Started](#getting-started)
|
||||
→ Read [Organism Framework](#component-framework)
|
||||
→ Read [Component Framework](#component-framework)
|
||||
→ Explore specific system you work on
|
||||
|
||||
**Frontend Developers**
|
||||
@@ -412,7 +412,7 @@ docs/
|
||||
**Latest Updates:**
|
||||
- ✨ Extended Glossary created with 100+ terms
|
||||
- ✨ Documentation Hub (this file) created
|
||||
- ✨ Organism vocabulary added to all core systems
|
||||
- ✨ Component vocabulary added to all core systems
|
||||
- ✨ Error messages updated with immune system metaphors
|
||||
- ✨ Logger categories expanded with organ system guidance
|
||||
|
||||
@@ -442,7 +442,7 @@ docs/
|
||||
|
||||
## See Also
|
||||
|
||||
- [🧬 DSS Organism Guide](DSS_ORGANISM_GUIDE.md) - Full framework
|
||||
- [🧬 DSS Component Guide](DSS_ORGANISM_GUIDE.md) - Full framework
|
||||
- [📚 Quick Reference Glossary](DSS_BIOLOGY_GLOSSARY.md) - Quick lookup
|
||||
- [🔧 Code Integration Guide](CODE_INTEGRATION_GUIDE.md) - How to use in code
|
||||
- [📊 Architecture](ARCHITECTURE.md) - System design
|
||||
|
||||
@@ -12,7 +12,7 @@ Comprehensive principles for building the Design System Server (DSS) - a living,
|
||||
|
||||
1. [Architectural Principles](#1-architectural-principles)
|
||||
2. [Code Quality Standards](#2-code-quality-standards)
|
||||
3. [Organism Framework Principles](#3-component-framework-principles)
|
||||
3. [Component Framework Principles](#3-component-framework-principles)
|
||||
4. [Keyboard Accessibility](#4-keyboard-accessibility)
|
||||
5. [Web Component Standards](#5-web-component-standards)
|
||||
6. [Security Guidelines](#6-security-guidelines)
|
||||
@@ -280,7 +280,7 @@ class Result:
|
||||
|
||||
---
|
||||
|
||||
## 3. Organism Framework Principles
|
||||
## 3. Component Framework Principles
|
||||
|
||||
DSS is a **living component** with organ systems. Understand and design for these systems.
|
||||
|
||||
@@ -894,7 +894,7 @@ class MyComponent extends HTMLElement {
|
||||
|
||||
---
|
||||
|
||||
## 11. Logging with Organism Awareness
|
||||
## 11. Logging with Component Awareness
|
||||
|
||||
Use structured logging that helps understand system state and consciousness.
|
||||
|
||||
@@ -910,7 +910,7 @@ Use structured logging that helps understand system state and consciousness.
|
||||
|
||||
- **Log Levels**
|
||||
- `DEBUG` - Deep thought, internal analysis
|
||||
- `INFO` - Organism awareness, normal operations
|
||||
- `INFO` - Component awareness, normal operations
|
||||
- `WARN` - Symptom detection, unusual conditions
|
||||
- `ERROR` - Immune alert, critical threats
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
| "The heart is healthy" | "Database is operational" |
|
||||
| "Nervous system response" | "API response" |
|
||||
| "The brain detected a pattern" | "Analyzer detected a pattern" |
|
||||
| "Organism health check" | "System status check" |
|
||||
| "Component health check" | "System status check" |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -462,10 +462,10 @@ This document verifies that all code changes, fixes, and implementations made du
|
||||
|
||||
---
|
||||
|
||||
## 7. Organism Framework Integration
|
||||
## 7. Component Framework Integration
|
||||
|
||||
### Principle Reference
|
||||
- **Section**: [DSS_CODING_PRINCIPLES.md § 3 - Organism Framework Principles](./DSS_CODING_PRINCIPLES.md#3-component-framework-principles)
|
||||
- **Section**: [DSS_CODING_PRINCIPLES.md § 3 - Component Framework Principles](./DSS_CODING_PRINCIPLES.md#3-component-framework-principles)
|
||||
- **Key Principle**: "DSS is a living system with organ systems in balance"
|
||||
|
||||
### Implementation Verification
|
||||
@@ -559,7 +559,7 @@ This document verifies that all code changes, fixes, and implementations made du
|
||||
| **Security** | Global state removal, sanitization, monitoring | ✅ COMPLETE |
|
||||
| **Documentation** | Principles guide, summary, verification checklist | ✅ COMPLETE |
|
||||
| **Code Quality** | Error handling, type hints, docstrings | ✅ COMPLETE |
|
||||
| **System Health** | Organism framework integration documented | ✅ COMPLETE |
|
||||
| **System Health** | Component framework integration documented | ✅ COMPLETE |
|
||||
|
||||
### Files Modified or Created
|
||||
|
||||
|
||||
Reference in New Issue
Block a user