Commit 01d836b
Validation framework 413 (#443)
* feat(middleware): add Quickwit haystack integration with hybrid index discovery
Implements Phase 3 (Steps 1-10) of disciplined development plan for Quickwit
search engine integration. Adds comprehensive log and observability data search
capabilities to Terraphim AI.
Core Implementation:
- ServiceType::Quickwit enum variant for configuration
- QuickwitHaystackIndexer implementing IndexMiddleware trait
- Hybrid index selection (explicit configuration or auto-discovery)
- Dual authentication support (Bearer token and Basic Auth)
- Glob pattern filtering for auto-discovered indexes
- HTTP request construction with query parameters
- JSON response parsing with graceful error handling
- Document transformation from Quickwit hits to Terraphim Documents
- Sequential multi-index search with result merging
Technical Details:
- Follows QueryRsHaystackIndexer pattern for consistency
- 10-second HTTP timeout with graceful degradation
- Token redaction in logs (security)
- Empty Index return on errors (no crashes)
- 15 unit tests covering config parsing, filtering, auth
- Compatible with Quickwit 0.7+ REST API
Configuration from try_search reference:
- Production: https://logs.terraphim.cloud/api/
- Authentication: Basic Auth (cloudflare/password)
- Indexes: workers-logs, cadro-service-layer
Design Documents:
- .docs/research-quickwit-haystack-integration.md (Phase 1)
- .docs/design-quickwit-haystack-integration.md (Phase 2)
- .docs/quickwit-autodiscovery-tradeoffs.md (trade-off analysis)
Next: Integration tests, agent E2E tests, example configs, documentation
Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
* docs: add validation framework research and plan approvals
* Add Tauri signing setup and improved build scripts
- Add comprehensive Tauri signing setup script with 1Password integration
- Add temporary key generation for testing
- Update build-all-formats.sh to use Tauri signing configuration
- Add detailed setup instructions and security notes
- Support both 1Password integration and manual key setup
This enables proper code signing for Terraphim desktop packages
while maintaining security best practices with 1Password integration.
* feat(validation): add validation framework and performance benchmarks
* Update Cargo.lock and build artifacts after merge
* Clean up merge artifacts and broken tests
* chore(validation): remove backup test files
* fix(packaging): complete build-all-formats.sh with all format scripts
- Fix duplicate regex dependency in terraphim_automata/Cargo.toml
- Add individual build scripts for deb, rpm, arch, appimage, flatpak, snap
- Fix scope bug in build-all-formats.sh where format variable was out of scope
- Add proper artifact collection from multiple directories
- Add build result tracking and summary reporting
- Make scripts cross-platform compatible
Co-Authored-By: Terraphim AI <noreply@anthropic.com>
* chore(deps): update Cargo.lock
* test(validation): restore integration tests behind feature flags
* docs: add validation framework reports and documentation
- Add runtime-validation-hooks.md
- Add validation-report-validation-framework.md
- Add verification-report-validation-framework.md
- Add vmodel-final-report-validation-framework.md
- Update README with validation framework info
- Fix quickwit.rs borrow pattern
* fix: update Document constructors for new API
Update terraphim_validation test fixtures to include new Document fields:
- doc_type
- synonyms
- route
- priority
Fixes compilation errors after rebase onto main.
* ci: add workspace permission fix for self-hosted runners
Add 'Fix workspace permissions' step to all CI jobs running on self-hosted
runners. This prevents EACCES permission errors when the checkout action
tries to clean files created by Docker containers with different ownership.
The fix runs before Pre-checkout cleanup and ensures the runner user
owns all files in the workspace.
Fixes consistent permission issues on terraphim-ai self-hosted runners.
* ci: add disk cleanup step to prevent disk full errors
Add 'Disk cleanup' step to all Rust jobs that runs after checkout but
before Rust toolchain installation. Cleans up:
- ~/.rustup/tmp/* (temp files from previous installs)
- ~/.cargo/registry/cache/* (cached crate downloads)
- ~/.cargo/git/checkouts/* (git dependencies)
- Docker system prune (unused containers/images)
Also shows df -h output for debugging disk usage.
This prevents 'No space left on device' errors during Rust toolchain
installation on self-hosted runners.
* fix(spawner): remove needless borrow in spawn_process call
* fix: resolve clippy warnings across workspace
Fix multiple clippy errors preventing CI from passing:
- terraphim_spawner: Remove needless borrow in spawn_process call
- terraphim_middleware: Replace or_else/unwrap_or_else with or/unwrap_or
- terraphim_orchestrator: Remove .clone() from Copy type (ProcessId)
- terraphim_tinyclaw: Use std::hint::black_box instead of deprecated criterion::black_box
- terraphim_github_runner_server: Use slice indexing instead of deprecated as_slice()
- terraphim_validation: Remove unnecessary borrow in try_parse_from
- terraphim_agent: Add repl-web-advanced feature and allow unused imports in test
All changes are non-functional refactoring to satisfy clippy -D warnings.
* ci: add cargo clean before clippy to ensure fresh build
* ci: add verbose clippy error output for debugging
* ci: simplify clippy step and add RUST_BACKTRACE (trigger rebuild)
* fix(server): restore get_role_extra helper functions with proper doc comments
* fix(server): remove duplicate helper functions, use inline logic
* fix(server): fix doc_lazy_continuation clippy warnings
Add blank lines after first lines of doc comments to fix clippy
warnings about lazy continuation:
- Add blank line after '4. Hardcoded fallback (lowest priority)'
- Add blank line after 'Get a string value from Role.extra...'
- Add doc comment for resolve_llm_config function
Part of: #443
---------
Co-authored-by: Terraphim CI <alex@terraphim.ai>
Co-authored-by: Terraphim AI <noreply@terraphim.ai>
Co-authored-by: Terraphim AI <noreply@anthropic.com>1 parent 516edef commit 01d836b
52 files changed
Lines changed: 16428 additions & 1282 deletions
File tree
- .docs
- .github/workflows
- crates
- terraphim_agent
- tests
- terraphim_atomic_client/tests
- terraphim_github_runner_server/src/webhook
- terraphim_middleware/src/haystack
- terraphim_orchestrator/tests
- terraphim_spawner/src
- terraphim_tinyclaw/benches
- terraphim_validation
- crates/terraphim_settings/default
- src
- bin
- testing/server_api
- docker
- terraphim_server/src
- workflows
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
0 commit comments