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,7 +1,7 @@
|
||||
/**
|
||||
* DSS Error Handler - Immune System Antibodies
|
||||
*
|
||||
* The DSS Organism's immune system uses these antibodies to detect and report threats.
|
||||
* The DSS Component's immune system uses these antibodies to detect and report threats.
|
||||
* Converts technical errors into human-friendly, actionable treatment plans.
|
||||
* Integrates with the messaging system for structured error reporting.
|
||||
*
|
||||
@@ -16,7 +16,7 @@ import { notifyError, ErrorCode } from './messaging.js';
|
||||
/**
|
||||
* Error message templates with component metaphors
|
||||
*
|
||||
* These messages use biological language from the DSS Organism Framework.
|
||||
* These messages use biological language from the DSS Component Framework.
|
||||
* Each error is framed as a symptom the immune system detected, with
|
||||
* a diagnosis and treatment plan.
|
||||
*/
|
||||
@@ -62,7 +62,7 @@ const errorMessages = {
|
||||
code: ErrorCode.FIGMA_API_ERROR,
|
||||
},
|
||||
figma_500: {
|
||||
title: '🔌 EXTERNAL SYSTEM ALERT: Figma Organism Stressed',
|
||||
title: '🔌 EXTERNAL SYSTEM ALERT: Figma Component Stressed',
|
||||
message: 'Figma\'s servers are experiencing stress. This is external to DSS.',
|
||||
actions: [
|
||||
'Wait while the external component recovers',
|
||||
@@ -93,7 +93,7 @@ const errorMessages = {
|
||||
code: ErrorCode.SYSTEM_NETWORK,
|
||||
},
|
||||
api_timeout: {
|
||||
title: '⚡ METABOLISM ALERT: Organism Overloaded',
|
||||
title: '⚡ METABOLISM ALERT: Component Overloaded',
|
||||
message: 'The DSS component took too long to respond. The heart may be stressed or metabolism sluggish.',
|
||||
actions: [
|
||||
'Let the component rest and try again shortly',
|
||||
@@ -293,11 +293,11 @@ export function getStatusMessage(status) {
|
||||
404: '👻 Target Lost - sensory organs can\'t perceive the resource',
|
||||
429: '⚡ Metabolism Overloaded - component sensing too quickly',
|
||||
500: '🧠 Brain Error - critical neural processing failure',
|
||||
502: '💀 Organism Unresponsive - the heart has stopped beating',
|
||||
503: '🏥 Organism In Recovery - temporarily unable to metabolize requests',
|
||||
502: '💀 Component Unresponsive - the heart has stopped beating',
|
||||
503: '🏥 Component In Recovery - temporarily unable to metabolize requests',
|
||||
};
|
||||
|
||||
return messages[status] || `🔴 Unknown Organism State - HTTP ${status}`;
|
||||
return messages[status] || `🔴 Unknown Component State - HTTP ${status}`;
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* DSS Logger - Organism Brain Consciousness System
|
||||
* DSS Logger - Component Brain Consciousness System
|
||||
*
|
||||
* The DSS brain uses this logger to become conscious of what's happening.
|
||||
* Log levels represent the component's level of awareness and concern.
|
||||
*
|
||||
* Framework: DSS Organism Framework
|
||||
* Framework: DSS Component Framework
|
||||
* See: docs/DSS_ORGANISM_GUIDE.md#brain
|
||||
*
|
||||
* Log Categories (Organ Systems):
|
||||
@@ -23,7 +23,7 @@
|
||||
* Provides structured logging with biological awareness levels and optional remote logging.
|
||||
*/
|
||||
|
||||
// Organism awareness levels - how conscious is the system?
|
||||
// Component awareness levels - how conscious is the system?
|
||||
const LOG_LEVELS = {
|
||||
DEBUG: 0, // 🧠 Deep thought - brain analyzing internal processes
|
||||
INFO: 1, // 💭 Awareness - component knows what's happening
|
||||
@@ -79,7 +79,7 @@ class Logger {
|
||||
// Console output with component awareness emojis
|
||||
const levelEmojis = {
|
||||
DEBUG: '🧠', // Brain thinking deeply
|
||||
INFO: '💭', // Organism aware
|
||||
INFO: '💭', // Component aware
|
||||
WARN: '⚠️', // Symptom detected
|
||||
ERROR: '🛡️' // Immune alert - threat detected
|
||||
};
|
||||
@@ -128,7 +128,7 @@ class Logger {
|
||||
}
|
||||
|
||||
/**
|
||||
* 💭 INFO - Organism awareness
|
||||
* 💭 INFO - Component awareness
|
||||
* The system knows what's happening, stays informed
|
||||
*/
|
||||
info(category, message, data) {
|
||||
@@ -137,7 +137,7 @@ class Logger {
|
||||
|
||||
/**
|
||||
* ⚠️ WARN - Symptom detection
|
||||
* Organism detected something unusual but not critical
|
||||
* Component detected something unusual but not critical
|
||||
*/
|
||||
warn(category, message, data) {
|
||||
this._log('WARN', category, message, data);
|
||||
@@ -145,7 +145,7 @@ class Logger {
|
||||
|
||||
/**
|
||||
* 🛡️ ERROR - Immune alert
|
||||
* Organism detected a threat - critical consciousness
|
||||
* Component detected a threat - critical consciousness
|
||||
*/
|
||||
error(category, message, data) {
|
||||
this._log('ERROR', category, message, data);
|
||||
|
||||
Reference in New Issue
Block a user