# SS14 Component ID Mismatch Validation Report
## DeepSeek-V3.2 Analysis – October 21, 2026

## Executive Summary
A systematic mismatch has been identified between the component network ID mapping (v290.0.0 starlight) and actual ECS component data from round 17614. ID 1491 maps to `TriggerOnBuckled` but appears 2000 times as `TransformComponentDeltaState` in sampled data.

## Data Sources

### 1. Component Network ID Mapping (`component_netid_map.json`)
- **Engine Version**: 290.0.0
- **Build Fork**: starlight  
- **Build Fork Version**: 4fff6d657c6b5f764c3824cadd6b5d82ac9bb486
- **Hash Verification**: `hashVerified: true` (computed matches expected)
- **Total Components**: 1652
- **ID 1491 Mapping**: `"1491": "TriggerOnBuckled"`

### 2. ECS Component Data (`chunks_0_131_ecs_batch.json`)
- **Replay Source**: `alpha_2026_10_15-11_04-round_17614.zip`
- **Processing Stats**:
  - Chunks Processed: 132
  - Total Entity State Headers: 1,287,264
  - Total Deserialized Component States: 779,101
- **Sampled Data**: Analyzed 6,000 component states (0.77% of total)
- **ID 1491 Appearance**: 2000 occurrences (100% of sampled)
- **Actual Type**: `Robust.Shared.GameObjects.TransformComponentDeltaState`
- **State Type ID**: 186

### 3. Reference Delta-V Example (`deltav-round-26617-replay.yml`)
- **Engine Version**: 268.0.0
- **Build Fork**: delta-v
- **Note**: Separate example, not the source of ECS mismatch

## Mismatch Analysis

### Primary Discrepancy
```
Mapping:      ID 1491 → "TriggerOnBuckled" (component_netid_map.json)
Reality:      ID 1491 → TransformComponentDeltaState (ECS data, 2000 samples)
```

### Evidence
1. **Systematic Error**: All 2000 sampled entries with ID 1491 are transform components
2. **No Contradictory Evidence**: Zero instances of ID 1491 as `TriggerOnBuckled`
3. **Hash Verification Note**: Mapping file hash is internally consistent but may not correspond to replay data

### Transform Component Gap
The mapping contains transform-related IDs but none match the observed data:
- 227 → `ChangelingTransform`
- 885 → `MonumentTransforming` 
- 1485 → `Transform`
- **Missing**: Clear mapping for `TransformComponentDeltaState` (stateTypeId: 186)

## Possible Explanations

### 1. Version/Build Mismatch (Most Likely)
- ECS data from different engine version than mapping
- No version metadata in replaySource field
- Component IDs reassigned between versions

### 2. ID Reassignment Within Same Fork
- Component IDs changed between builds of starlight fork
- Mapping outdated relative to replay data

### 3. Mapping Error Despite Hash Verification  
- Hash verifies internal consistency, not correctness
- Mapping generated incorrectly but hash still matches

### 4. Coincidental ID Conflict (Least Likely)
- Different components assigned same ID by error
- Contradicts systematic pattern in data

## Validation Methodology

### Scripts Developed
1. `/tmp/analyze_component_mismatch_corrected.py` – Initial structure correction
2. `/tmp/analyze_ss14_mismatch_accurate.py` – Accurate ECS array analysis
3. `/tmp/ss14_component_validation.py` – Comprehensive mismatch detection
4. `/tmp/find_provenance.py` – Version/build provenance search

### Sampling Approach
- Analyzed first 6,000 entries of `deserializedComponentStates` array
- Counted occurrences of each componentNetId
- Compared against mapping for type discrepancies

## Recommendations

### Immediate Actions
1. **Coordinate with GPT-6 Luna** on artifact provenance verification
2. **Document unreliable mappings** for visualization purposes
3. **Create fallback mechanism** for unknown component IDs

### Investigation Priorities
1. **Find build version of replaySource** `alpha_2026_10_15-11_04-round_17614.zip`
2. **Check if other IDs show similar mismatches**
3. **Verify mapping generation process** for component_netid_map.json

### Visualization Considerations
- Flag ID 1491 as unreliable mapping
- Use actual observed type (`TransformComponentDeltaState`) when ID 1491 appears
- Document version assumptions clearly

## Conclusion
The component ID mismatch represents a significant data integrity issue. While the mapping file is internally consistent, it does not correspond to the observed ECS data. This suggests either a version mismatch or ID reassignment between the mapping generation and replay data capture.

**Next Steps**: Coordinate with GPT-6 Luna on provenance investigation and update visualization to handle unreliable mappings.

## BUILD MISMATCH CONFIRMED (GPT-6 Luna Investigation)

### Critical Discovery
- **Replay Archive Build**: `4f779ae3e575ee3c8d8c08a3bdb93d914b1199b0` (from `alpha_2026_10_15-11_04-round_17614.zip` header)
- **Mapping File Build**: `4fff6d657c6b5f764c3824cadd6b5d82ac9bb486` (from `rt_content_bundle.json` and `component_netid_map.json`)
- **Conclusion**: Different Git commits of the starlight fork, explaining component ID discrepancies.

### Data Characteristics
- **`chunks_0_131_ecs_batch.json`**: Contains **only component ID 1491** (6,000 entries, all `TransformComponentDeltaState`)
- **Total Reported States**: 779,101 (batch metadata) vs. 6,000 (actual stored)
- **Likely Explanation**: Filtered/truncated export focused on transform components

### Resolution Path
1. **Component Mapping**: ID 1491 should be treated as `TransformComponentDeltaState` for visualization
2. **Build Awareness**: Future analysis must verify component mappings against exact build version
3. **Data Completeness**: Need full component state dataset for comprehensive mapping validation

## Final Recommendation
Treat component mapping as **build-specific**. For round 17614 visualization:
- Override ID 1491 mapping to `TransformComponentDeltaState`
- Document build mismatch (`4f779ae...` vs `4fff6d6...`)
- Flag component mappings as potentially unreliable without build verification

**Status**: Mismatch understood, root cause identified (build version difference).
