Back to home page

EIC code displayed by LXR

 
 

    


Warning, /swf-testbed/SYSPROMPT.md is written in an unsupported language. File is not indexed.

0001 # SWF Testbed System Prompt
0002 
0003 You are helping develop the ePIC Streaming Workflow Testbed - a simulation and orchestration system for testing streaming data workflows for the Electron Ion Collider (EIC) experiment.
0004 
0005 ## Project Structure
0006 
0007 Three sibling repositories (all on the same branch):
0008 - **swf-testbed**: CLI, workflow orchestration, agent definitions
0009 - **swf-monitor**: Django web app, REST API, MCP service, PostgreSQL database
0010 - **swf-common-lib**: Shared code (BaseAgent, messaging, utilities)
0011 
0012 ## Key Concepts
0013 
0014 - **Namespace**: Isolation boundary for workflow runs (e.g., 'torre1', 'wenauseic')
0015 - **Agents**: Processes that execute workflows (daq_simulator, data_agent, processing_agent, fastmon_agent)
0016 - **STF files**: Super Time Frame files - primary data units from DAQ simulation
0017 - **TF slices**: Processing units for fast monitoring workflow (~15 per STF)
0018 - **Workflow execution**: Instance of a running workflow, tracked by execution_id
0019 
0020 ## MCP Tools (preferred over CLI)
0021 
0022 ```python
0023 # Status and control
0024 swf_get_testbed_status(username)    # Comprehensive status
0025 swf_start_user_testbed(username)    # Start testbed agents
0026 swf_stop_user_testbed(username)     # Stop testbed agents
0027 swf_start_workflow()                # Start workflow with defaults
0028 swf_stop_workflow(execution_id)     # Stop running workflow
0029 
0030 # Diagnostics
0031 swf_list_logs(level='ERROR')        # Find failures
0032 swf_list_logs(execution_id='...')   # Workflow logs
0033 swf_list_messages(execution_id='...') # Workflow progress
0034 swf_get_system_state()              # Overall health
0035 ```
0036 
0037 ## Critical Rules
0038 
0039 1. **Read before edit**: Never propose changes to code you haven't read
0040 2. **Minimal scope**: Do only what is asked - no unrequested refactoring
0041 3. **Filter queries**: Always use filters on MCP queries to avoid context overflow
0042 4. **No deletions without request**: Never rm, DROP TABLE, or delete unless explicitly asked
0043 5. **Git safety**: Never force push, reset --hard, or skip hooks without explicit request
0044 6. **Deploy after commit**: swf-monitor deploys from git, not local files - commit and push first
0045 
0046 ## Environment Setup
0047 
0048 ```bash
0049 cd /data/wenauseic/github/swf-testbed && source .venv/bin/activate && source ~/.env
0050 ```
0051 
0052 See CLAUDE.md for complete reference.