Skip to content

Shattered - #6

Merged
mantisfury merged 4 commits into
mainfrom
shattered
Jan 15, 2026
Merged

Shattered#6
mantisfury merged 4 commits into
mainfrom
shattered

Conversation

@mantisfury

Copy link
Copy Markdown
Owner

Bringing main up to date with current Shattered development

mantisfury and others added 4 commits January 14, 2026 18:00
Group 1 Feature Parity Implementation:

1. Regex Search (Search Shard)
   - New RegexSearchEngine with PostgreSQL native regex (~, ~*) for scalability
   - Pattern presets for common patterns (email, phone, SSN, credit card, etc.)
   - Pattern validation with performance estimation (fast/moderate/slow/dangerous)
   - UI panel with detected patterns integration from Patterns shard
   - Fixed sentence chunking to preserve emails, URLs, and abbreviations

2. Document Deduplication (Documents Shard)
   - New DeduplicationService with exact hash and fuzzy similarity matching
   - SimHash-based near-duplicate detection with configurable thresholds
   - API endpoints for finding duplicates, grouping, and merging
   - UI panel in DocumentViewer for duplicate management

3. Graph Pathfinding (Graph Shard)
   - New PathfindingEngine with BFS, DFS, Dijkstra, and A* algorithms
   - Shortest path and all paths discovery
   - Path analysis with relationship type filtering
   - API endpoints for path queries

UI Improvements:
- RegexSearchPanel with dark theme CSS styling
- DeduplicationPanel with match highlighting
- Detected patterns section showing patterns from Patterns shard

Bug Fix:
- Fixed sentence chunking regex that was splitting on periods in email addresses
  (e.g., "agent.smith@cia.gov" was becoming "agent smith@cia gov")

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix frontend MergeRequest to match backend API schema:
  - source_ids -> duplicate_ids
  - target_id -> primary_id
  - strategy -> cleanup_action
- Add MERGED status to DocumentStatus enums in both frame and documents shard
- Update DeduplicationPanel dropdown options to match backend cleanup_action values

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Anomalies Shard - Hidden Content Detection:
- Add steganography detection with entropy analysis (Shannon entropy)
- Implement LSB (Least Significant Bit) pattern analysis with chi-square tests
- Add file type mismatch detection via magic bytes comparison
- Create HiddenContentTab UI component with scan controls and results display
- Add entropy region visualization with bar charts
- Display stego indicators with confidence scores

Provenance Shard - Metadata Forensics:
- Add EXIF metadata extraction for images
- Implement PDF metadata extraction (author, creator, dates, version)
- Add Office document metadata extraction (docx/xlsx/pptx)
- Create timeline reconstruction from document metadata
- Add document comparison feature with similarity scoring
- Create ForensicsTab UI component with comprehensive metadata display
- Add file hash computation (MD5, SHA256, SHA512)
- Display integrity status indicators

UI Components:
- Tab navigation for Anomalies (list view / hidden content detection)
- Tab navigation for Provenance (artifacts / chains / lineage / forensics)
- Stats grids, scan controls, and detailed results displays
- Responsive CSS with proper theming

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Credibility Shard - Deception Analysis Improvements:
- Increase default credibility_weight from 0.3 to 0.7 for meaningful impact
- Add severity override system: critical deception (>=80%) caps credibility at 15,
  high (>=60%) caps at 30, moderate (>=40%) caps at 50
- Auto-link deception assessments to existing credibility assessments
- Fix DeceptionPanel to pass linked_assessment_id when creating assessments
- Fix DeceptionPanel to reset state when switching between documents

Embed Shard - Statistics Fix:
- Replace in-memory cache stats with actual database metrics
- Show total embeddings, pending chunks, coverage rate, and document counts
- Stats now reflect real embedding coverage instead of always showing zeros
- Update UI labels: "Embeddings", "Pending", "Coverage", "Docs / Chunks"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mantisfury
mantisfury merged commit f779a2b into main Jan 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant