Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
82a0141
chore(deps)(deps): bump home from 0.5.11 to 0.5.12
dependabot[bot] Jan 21, 2026
6d00b89
fix(cli): use role with knowledge graph in integration tests
AlexMikhalev Jan 22, 2026
9db937b
fix(logging): suppress OpenDAL warnings for missing optional files
AlexMikhalev Jan 22, 2026
ff2fcf8
feat(persistence): add cache write-back for multi-profile configurations
AlexMikhalev Jan 23, 2026
8beadb3
fix(tests): replace silent test failures with proper assertions
AlexMikhalev Jan 23, 2026
2afdbf9
refactor(persistence): remove services-rocksdb feature entirely
AlexMikhalev Jan 23, 2026
863f340
fix(tests): use if-let instead of is_some + unwrap pattern
AlexMikhalev Jan 24, 2026
8fffe88
chore(fmt): run cargo fmt
AlexMikhalev Jan 24, 2026
9f11dbe
fix(cli): use role with knowledge graph in integration tests
AlexMikhalev Jan 24, 2026
218f94b
fix(clippy): remove needless borrows in terraphim_update
AlexMikhalev Jan 24, 2026
4a1cee1
fix(clippy): comment out disabled services-rocksdb code
AlexMikhalev Jan 24, 2026
bb422f9
fix(clippy): use if-let pattern in llm_proxy.rs
AlexMikhalev Jan 24, 2026
e7ab302
fix(clippy): use nested if-let pattern in terraphim_server
AlexMikhalev Jan 24, 2026
94c2597
fix(clippy): remove unnecessary Ok wrapper and wildcard pattern
AlexMikhalev Jan 24, 2026
7c87ce0
fix(clippy): allow dead_code in McpToolsHandler
AlexMikhalev Jan 24, 2026
4d9758c
chore(deps)(deps): bump handlebars from 5.1.2 to 6.3.2
dependabot[bot] Jan 26, 2026
cd0bf77
chore(deps)(deps): bump toml from 0.8.23 to 0.9.8
dependabot[bot] Jan 26, 2026
186995c
chore(deps)(deps): bump url from 2.5.7 to 2.5.8
dependabot[bot] Jan 26, 2026
260b530
chore(deps)(deps): bump flate2 from 1.1.5 to 1.1.8
dependabot[bot] Jan 26, 2026
8ac3fe7
chore(deps)(deps): bump clap_complete from 4.5.61 to 4.5.65
dependabot[bot] Jan 26, 2026
46790cc
chore(deps)(deps): bump zipsign-api from 0.1.5 to 0.2.0
dependabot[bot] Jan 26, 2026
3a03d60
chore(deps)(deps): bump @tiptap/starter-kit in /desktop
dependabot[bot] Jan 27, 2026
2df8035
chore(deps)(deps-dev): bump @testing-library/svelte in /desktop
dependabot[bot] Jan 27, 2026
9090ca0
chore(deps)(deps-dev): bump selenium-webdriver in /desktop
dependabot[bot] Jan 27, 2026
ea892cc
docs(handover): update session documentation for Quickwit work
AlexMikhalev Jan 27, 2026
71f0c16
feat(kg): add bun install knowledge graph definition
AlexMikhalev Jan 27, 2026
15fc3ac
feat: optimize builds for CI and reduce disk usage
AlexMikhalev Jan 27, 2026
d8ee3d9
fix(logging): suppress OpenDAL warnings for missing optional files
AlexMikhalev Jan 22, 2026
073126a
feat: add user-facing documentation pages
AlexMikhalev Jan 27, 2026
7cb098e
chore(docker)(deps): bump rust in /docker
dependabot[bot] Jan 28, 2026
d7b373d
fix(test): handle missing fixtures in CI for desktop test
AlexMikhalev Jan 28, 2026
f3b7ac3
fix: improve CI detection in desktop role functionality tests
AlexMikhalev Jan 28, 2026
56c7b7c
fix: add CI-awareness to thesaurus prewarm test
AlexMikhalev Jan 28, 2026
504ce92
fix: add CI-awareness to terraphim_cli integration tests
AlexMikhalev Jan 28, 2026
69d3db0
fix: handle middleware/IO errors in CLI integration tests CI
AlexMikhalev Jan 28, 2026
ad129cf
fix(tests): add CI-awareness to comprehensive_cli_tests
AlexMikhalev Jan 28, 2026
d029775
fix(tests): add CI-awareness to extract_functionality_validation
AlexMikhalev Jan 28, 2026
e2c8656
fix(tests): add CI-awareness to integration_tests.rs
AlexMikhalev Jan 28, 2026
b360c93
fix(tests): handle no-LLM-configured case in offline_mode_tests
AlexMikhalev Jan 28, 2026
22bc77f
feat(agent): add CLI onboarding wizard for first-time configuration
AlexMikhalev Jan 28, 2026
986730f
fix(tests): add CI-awareness to persistence_tests.rs
AlexMikhalev Jan 28, 2026
e3b928e
fix(tests): add CI-awareness to replace_feature_tests
AlexMikhalev Jan 28, 2026
8c44b3c
fix(tests): add IO error detection to CI-awareness
AlexMikhalev Jan 28, 2026
fb666bc
fix(tests): add CI-awareness to selected_role_tests
AlexMikhalev Jan 28, 2026
1e1e2aa
fix: remove unused is_ci_environment function from selected_role_tests
AlexMikhalev Jan 28, 2026
c0a6307
test(agent): add integration tests and verification reports for onboa…
AlexMikhalev Jan 28, 2026
9a8ef81
feat(middleware): add Quickwit haystack integration with hybrid index…
Jan 13, 2026
594d1e8
feat(quickwit): add integration tests, example configs, and documenta…
Jan 13, 2026
d35429e
docs: add validation framework research and plan approvals
Jan 17, 2026
0bff73a
chore(settings): reorder test settings profiles
Jan 17, 2026
e681e2a
chore(settings): normalize test settings ordering
Jan 17, 2026
408d48f
chore(settings): align test settings ordering
Jan 17, 2026
a9144af
chore(settings): normalize test settings ordering
Jan 17, 2026
5b11800
Add Tauri signing setup and improved build scripts
AlexMikhalev Dec 16, 2025
593c81c
feat(validation): add validation framework and performance benchmarks
AlexMikhalev Jan 6, 2026
97ff059
Update Cargo.lock and build artifacts after merge
AlexMikhalev Jan 6, 2026
0c9c7fa
Clean up merge artifacts and broken tests
AlexMikhalev Jan 6, 2026
1cb1cf3
chore(validation): remove backup test files
AlexMikhalev Jan 6, 2026
fe29316
fix(packaging): complete build-all-formats.sh with all format scripts
AlexMikhalev Jan 17, 2026
62b5b34
chore(deps): update Cargo.lock
Jan 18, 2026
ac4ab6b
test(validation): restore integration tests behind feature flags
Jan 18, 2026
d6e3312
docs: add validation framework reports and documentation
Jan 29, 2026
16a63ab
fix(tests): skip server mode tests in CI when server fails to start
AlexMikhalev Jan 29, 2026
55e7bcf
fix(tests): update unit_test.rs to use valid ConfigId enum value
AlexMikhalev Jan 29, 2026
3c586e4
style: fix formatting in terraphim_automata and terraphim_service
AlexMikhalev Jan 29, 2026
0e092e6
fix(tests): skip update tests when binary unavailable in CI
AlexMikhalev Jan 29, 2026
eb2579f
fix(tests): skip network-dependent test in CI environment
AlexMikhalev Jan 29, 2026
1a7eb37
fix(tests): fix agent and CLI test failures
Jan 29, 2026
6b3643d
fix(tests): correct web operations test expectations
AlexMikhalev Jan 29, 2026
0203049
fix(tests): update web_operations_tests to match implementation
AlexMikhalev Jan 29, 2026
d147f3c
fix(tests): skip atomic client test when env vars unavailable
AlexMikhalev Jan 29, 2026
7e225a0
fix(ci): add pre-checkout cleanup for self-hosted runners
AlexMikhalev Jan 29, 2026
76d6843
fix(clippy): resolve clippy warnings across workspace
Jan 29, 2026
3f189ab
feat(agent): make REPL default instead of TUI mode
AlexMikhalev Jan 29, 2026
c44de9b
fix(clippy): use if-let pattern for unnecessary_unwrap warning
Jan 29, 2026
0e22ea4
fix(clippy): use pattern matching for unnecessary_unwrap in server lib
Jan 29, 2026
43e5727
style: apply rustfmt to lib.rs
Jan 29, 2026
b6aa541
fix(ci): fix clippy warnings and remove deprecated rocksdb tests
AlexMikhalev Jan 29, 2026
4618cb6
fix(ci): add critical timeouts and disable redundant workflows
AlexMikhalev Jan 29, 2026
1ac3db3
fix(ci): remove claude-code-review.yml causing PR validation failure
AlexMikhalev Jan 29, 2026
029314b
Merge PR #496: fix(ci): add critical timeouts and disable redundant w…
Jan 29, 2026
4cb45d8
Merge PR #495: fix(ci): fix clippy warnings and remove deprecated roc…
Jan 29, 2026
eeffe30
Merge PR #494: fix(tests): fix agent and CLI test failures
Jan 29, 2026
d799833
Merge PR #492: feat(agent): add CLI onboarding wizard for first-time …
Jan 29, 2026
e5cc33f
docs: add right-side-of-V report for PR 492 (CLI onboarding wizard)
Jan 29, 2026
34bcd63
Refactor file listing and document indexing in axum_server function. …
Jan 29, 2026
cb65ffb
Merge PR #487: feat: optimize builds for CI and reduce disk usage
Jan 30, 2026
5414893
Merge PR #469: feat(persistence): add cache write-back with compressi…
Jan 30, 2026
088ea35
Merge PR #443: Validation framework 413
Jan 30, 2026
25a4dfc
Merge PR #488: dependency bump
Jan 30, 2026
8c69f1d
Merge PR #485: dependency bump
Jan 30, 2026
eeb9c99
Merge PR #482: dependency bump
Jan 30, 2026
377f7c7
Merge PR #481: dependency bump
Jan 30, 2026
484f390
Merge PR #479: dependency bump
Jan 30, 2026
94b878a
Merge PR #478: dependency bump
Jan 30, 2026
bb596fe
Merge PR #476: dependency bump
Jan 30, 2026
4da6909
Merge PR #475: dependency bump
Jan 30, 2026
6e21658
Merge PR #472: dependency bump
Jan 30, 2026
1fd0d0f
Merge PR #471: dependency bump
Jan 30, 2026
aa5cf07
Merge PR #445: dependency bump
Jan 30, 2026
a466bf4
chore: cherry-pick PR 498 stability fixes - exclude terraphim_rlm, st…
Jan 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .codex/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

````markdown
## UBS Quick Reference for AI Agents

UBS stands for "Ultimate Bug Scanner": **The AI Coding Agent's Secret Weapon: Flagging Likely Bugs for Fixing Early On**

**Install:** `curl -sSL https://raw.githubusercontent.com/Dicklesworthstone/ultimate_bug_scanner/master/install.sh | bash`

**Golden Rule:** `ubs <changed-files>` before every commit. Exit 0 = safe. Exit >0 = fix & re-run.

**Commands:**
```bash
ubs file.ts file2.py # Specific files (< 1s) — USE THIS
ubs $(git diff --name-only --cached) # Staged files — before commit
ubs --only=js,python src/ # Language filter (3-5x faster)
ubs --ci --fail-on-warning . # CI mode — before PR
ubs --help # Full command reference
ubs sessions --entries 1 # Tail the latest install session log
ubs . # Whole project (ignores things like .venv and node_modules automatically)
```

**Output Format:**
```
⚠️ Category (N errors)
file.ts:42:5 – Issue description
💡 Suggested fix
Exit code: 1
```
Parse: `file:line:col` → location | 💡 → how to fix | Exit 0/1 → pass/fail

**Fix Workflow:**
1. Read finding → category + fix suggestion
2. Navigate `file:line:col` → view context
3. Verify real issue (not false positive)
4. Fix root cause (not symptom)
5. Re-run `ubs <file>` → exit 0
6. Commit

**Speed Critical:** Scope to changed files. `ubs src/file.ts` (< 1s) vs `ubs .` (30s). Never full scan for small edits.

**Bug Severity:**
- **Critical** (always fix): Null safety, XSS/injection, async/await, memory leaks
- **Important** (production): Type narrowing, division-by-zero, resource leaks
- **Contextual** (judgment): TODO/FIXME, console logs

**Anti-Patterns:**
- ❌ Ignore findings → ✅ Investigate each
- ❌ Full scan per edit → ✅ Scope to file
- ❌ Fix symptom (`if (x) { x.y }`) → ✅ Root cause (`x?.y`)
````
50 changes: 50 additions & 0 deletions .cursor/rules/ubs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

````markdown
## UBS Quick Reference for AI Agents

UBS stands for "Ultimate Bug Scanner": **The AI Coding Agent's Secret Weapon: Flagging Likely Bugs for Fixing Early On**

**Install:** `curl -sSL https://raw.githubusercontent.com/Dicklesworthstone/ultimate_bug_scanner/master/install.sh | bash`

**Golden Rule:** `ubs <changed-files>` before every commit. Exit 0 = safe. Exit >0 = fix & re-run.

**Commands:**
```bash
ubs file.ts file2.py # Specific files (< 1s) — USE THIS
ubs $(git diff --name-only --cached) # Staged files — before commit
ubs --only=js,python src/ # Language filter (3-5x faster)
ubs --ci --fail-on-warning . # CI mode — before PR
ubs --help # Full command reference
ubs sessions --entries 1 # Tail the latest install session log
ubs . # Whole project (ignores things like .venv and node_modules automatically)
```

**Output Format:**
```
⚠️ Category (N errors)
file.ts:42:5 – Issue description
💡 Suggested fix
Exit code: 1
```
Parse: `file:line:col` → location | 💡 → how to fix | Exit 0/1 → pass/fail

**Fix Workflow:**
1. Read finding → category + fix suggestion
2. Navigate `file:line:col` → view context
3. Verify real issue (not false positive)
4. Fix root cause (not symptom)
5. Re-run `ubs <file>` → exit 0
6. Commit

**Speed Critical:** Scope to changed files. `ubs src/file.ts` (< 1s) vs `ubs .` (30s). Never full scan for small edits.

**Bug Severity:**
- **Critical** (always fix): Null safety, XSS/injection, async/await, memory leaks
- **Important** (production): Type narrowing, division-by-zero, resource leaks
- **Contextual** (judgment): TODO/FIXME, console logs

**Anti-Patterns:**
- ❌ Ignore findings → ✅ Investigate each
- ❌ Full scan per edit → ✅ Scope to file
- ❌ Fix symptom (`if (x) { x.y }`) → ✅ Root cause (`x?.y`)
````
257 changes: 257 additions & 0 deletions .docs/constraints-analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
# Terraphim AI Release Constraints Analysis

## Business Constraints

### Release Frequency and Cadence
- **Continuous Delivery Pressure**: Community expects regular updates with bug fixes
- **Feature Release Timeline**: New features need predictable release windows
- **Patch Release Speed**: Security fixes must be deployed rapidly
- **Backward Compatibility**: Must maintain API stability between major versions
- **Version Bumping Strategy**: Semantic versioning with clear breaking change policies

### Community and User Expectations
- **Zero-Downtime Updates**: Production deployments should not require service interruption
- **Rollback Capability**: Users need ability to revert problematic updates
- **Multi-Version Support**: Ability to run multiple versions concurrently for testing
- **Documentation同步**: Release notes must match actual changes
- **Transparent Roadmap**: Clear communication about future changes and deprecations

### License and Compliance Requirements
- **Open Source Compliance**: All licenses must be properly declared
- **Third-Party Dependencies**: SPDX compliance and vulnerability disclosure
- **Export Controls**: No restricted cryptographic components without compliance
- **Data Privacy**: GDPR and privacy law compliance for user data handling
- **Attribution Requirements**: Proper credit for open source dependencies

## Technical Constraints

### Multi-Platform Build Complexity

#### Architecture Support Matrix
| Architecture | Build Tool | Cross-Compilation | Testing Capability |
|--------------|------------|-------------------|--------------------|
| x86_64-linux | Native | Not needed | Full CI/CD |
| aarch64-linux | Cross | QEMU required | Limited testing |
| armv7-linux | Cross | QEMU required | Limited testing |
| x86_64-macos | Native (self-hosted) | Not needed | Partial testing |
| aarch64-macos | Native (self-hosted) | Not needed | Partial testing |
| x86_64-windows | Native | Not needed | Full CI/CD |

#### Toolchain Dependencies
- **Rust Version**: Consistent toolchain across all platforms
- **Cross-Compilation Tools**: QEMU, binutils for non-native builds
- **System Libraries**: Platform-specific dependency management
- **Certificate Signing**: Platform-specific code signing certificates
- **Package Building**: cargo-deb, cargo-rpm, Tauri bundler tools

### Dependency Management Constraints

#### System-Level Dependencies
```toml
# Example dependency constraints
[dependencies]
# Core dependencies with version ranges
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
clap = { version = "4.0", features = ["derive"] }

# Platform-specific dependencies
[target.'cfg(unix)'.dependencies]
nix = "0.27"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["winuser"] }

[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.9"
```

#### Package Manager Conflicts
- **APT (Debian/Ubuntu)**: Conflicts with existing packages, dependency versions
- **RPM (RHEL/CentOS/Fedora)**: Different naming conventions, requires explicit dependencies
- **Pacman (Arch)**: AUR package maintenance, user expectations for PKGBUILD standards
- **Homebrew**: Formula maintenance, bottle building for pre-compiled binaries

### Build Infrastructure Constraints

#### GitHub Actions Limitations
- **Runner Availability**: Limited self-hosted runners for macOS builds
- **Build Time Limits**: 6-hour job timeout for complex builds
- **Storage Limits**: Artifact storage and retention policies
- **Concurrency Limits**: Parallel job execution restrictions
- **Network Bandwidth**: Large binary upload/download constraints

#### Resource Requirements
- **Memory Usage**: Cross-compilation can be memory-intensive
- **CPU Time**: Multi-architecture builds require significant compute
- **Storage Space**: Build cache management across platforms
- **Network I/O**: Dependency downloads and artifact uploads

## User Experience Constraints

### Installation Simplicity

#### One-Command Installation Goals
```bash
# Ideal user experience
curl -fsSL https://install.terraphim.ai | sh

# Should handle automatically:
# - Platform detection
# - Architecture detection
# - Package manager selection
# - Dependency resolution
# - Service configuration
# - User setup
```

#### Package Manager Integration
- **Zero Configuration**: Default settings work out of the box
- **Service Management**: Automatic systemd/launchd service setup
- **User Permissions**: Appropriate file permissions and user groups
- **Path Integration**: Proper PATH and environment setup
- **Documentation**: Manual pages and help system integration

### Update Reliability

#### Auto-Updater Requirements
- **Atomic Updates**: Never leave system in broken state
- **Rollback Support**: Ability to revert to previous version
- **Configuration Preservation**: User settings survive updates
- **Service Continuity**: Minimal downtime during updates
- **Progress Indication**: Clear feedback during update process

#### Update Failure Scenarios
- **Network Interruption**: Handle partial downloads gracefully
- **Disk Space**: Verify adequate space before update
- **Permission Issues**: Handle permission denied scenarios
- **Service Conflicts**: Manage running services during update
- **Dependency Conflicts**: Resolve version incompatibilities

### Performance Expectations

#### Binary Size Constraints
| Component | Target Size | Current Size | Optimization Opportunities |
|----------|-------------|--------------|---------------------------|
| Server | < 15MB | 12.8MB | Strip symbols, optimize build |
| TUI | < 8MB | 7.2MB | Reduce dependencies |
| Desktop | < 50MB | 45.3MB | Asset optimization |
| Docker | < 200MB | 180MB | Multi-stage builds |

#### Startup Performance
- **Server Cold Start**: < 3 seconds to ready state
- **TUI Response**: < 500ms initial interface
- **Desktop Launch**: < 2 seconds to usable state
- **Container Startup**: < 5 seconds to service ready
- **Memory Usage**: Server < 100MB baseline, Desktop < 200MB

## Security Constraints

### Code Signing and Verification

#### Platform-Specific Requirements
- **macOS**: Apple Developer certificate, notarization required
- **Windows**: Authenticode certificate, SmartScreen compatibility
- **Linux**: GPG signatures for packages, repository trust
- **Docker**: Content trust, image signing support

#### Certificate Management
- **Certificate Renewal**: Automated renewal before expiration
- **Key Rotation**: Secure private key management practices
- **Trust Chain**: Maintain valid certificate chains
- **Revocation Handling**: Respond to certificate compromises

### Security Validation Requirements

#### Vulnerability Scanning
- **Dependency Scanning**: Automated scanning of all dependencies
- **Container Scanning**: Docker image vulnerability assessment
- **Static Analysis**: Code security analysis tools integration
- **Dynamic Analysis**: Runtime security testing

#### Integrity Verification
- **Checksum Validation**: SHA256 for all release artifacts
- **GPG Signatures**: Cryptographic verification of releases
- **Blockchain Integration**: Immutable release records (future)
- **Reproducible Builds**: Verifiable build process

## Performance Constraints

### Build Performance

#### Parallelization Limits
- **Matrix Strategy**: Optimal parallel job distribution
- **Dependency Caching**: Effective build cache utilization
- **Artifact Distribution**: Efficient artifact sharing between jobs
- **Resource Allocation**: Balanced resource usage across jobs

#### Build Time Targets
| Component | Current Time | Target Time | Optimization Strategy |
|-----------|--------------|-------------|----------------------|
| Server Binary | 8 min | 5 min | Better caching |
| Desktop App | 15 min | 10 min | Parallel builds |
| Docker Image | 12 min | 8 min | Layer optimization |
| Full Release | 45 min | 30 min | Pipeline optimization |

### Runtime Performance

#### Resource Utilization
- **CPU Usage**: Efficient multi-core utilization
- **Memory Management**: Minimal memory footprint
- **I/O Performance**: Optimized file operations
- **Network Efficiency**: Minimal bandwidth usage

#### Scalability Constraints
- **Concurrent Users**: Support for multiple simultaneous connections
- **Data Volume**: Handle growing index sizes efficiently
- **Search Performance**: Sub-second response times
- **Update Frequency**: Efficient incremental updates

## Compliance and Legal Constraints

### Open Source Compliance

#### License Requirements
- **MIT/Apache 2.0**: Dual license compatibility
- **Third-Party Licenses**: SPDX compliance for all dependencies
- **Attribution**: Proper license notices and acknowledgments
- **Source Availability**: Corresponding source code availability

#### Export Controls
- **Cryptography**: Export control compliance for encryption features
- **Country Restrictions**: Geographical distribution limitations
- **Entity List Screening**: Restricted party screening processes

### Privacy and Data Protection

#### Data Handling Requirements
- **User Data**: Minimal data collection and processing
- **Local Storage**: No unnecessary data transmission
- **Data Retention**: Appropriate data lifecycle management
- **User Consent**: Clear privacy policies and consent mechanisms

## Operational Constraints

### Monitoring and Observability

#### Release Monitoring
- **Download Metrics**: Track installation and update success rates
- **Error Reporting**: Automated error collection and analysis
- **Performance Metrics**: Real-time performance monitoring
- **User Feedback**: In-app feedback collection mechanisms

#### Support Infrastructure
- **Documentation**: Comprehensive installation and troubleshooting guides
- **Community Support**: Issue tracking and response processes
- **Knowledge Base**: Self-service support resources
- **Escalation Process**: Clear support escalation procedures

### Maintenance Constraints

#### Long-Term Support
- **Version Support**: Multi-version support strategy
- **Security Updates**: Backport security fixes to older versions
- **Deprecation Policy**: Clear component deprecation timelines
- **Migration Paths**: Smooth upgrade paths between versions

This constraints analysis provides the foundation for understanding the boundaries and requirements that the release validation system must operate within. Each constraint represents a potential failure point that must be monitored and validated during the release process.
Loading
Loading