Commit Graph

29 Commits

Author SHA1 Message Date
c0d3f066e8 Proactive doctor, setup wizard, and TUI fixes
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s
BREAKING CHANGES / KNOWN ISSUES:
- 8 skills have syntax errors causing loader warnings:
  org-skill-bouncer, org-skill-config-manager, org-skill-credentials-vault,
  org-skill-engineering-standards, org-skill-gardener, org-skill-homoiconic-memory,
  org-skill-peripheral-vision, org-skill-policy
- These skills fail to load but don't block system operation
- TUI works despite these errors

FEATURES ADDED:

1. Proactive Doctor System
   - Doctor runs automatically on daemon startup
   - Health check runs before accepting connections
   - Adds /health endpoint for health status queries
   - *system-health* variable tracks: :healthy, :degraded, :unhealthy, :unknown

2. Error Handling (Option B - Debugger Hook)
   - TUI and CLI now run doctor diagnostics on errors
   - Shows "Run opencortex doctor" message on crash
   - Suggests repair commands after failures

3. Interactive Setup Wizard (org-skill-config-manager)
   - Full wizard implemented in config-manager skill:
     * LLM provider configuration (OpenAI, Anthropic, OpenRouter, Groq, Gemini, Ollama)
     * Gateway linking (Slack, Discord)
     * Memory settings (auto-save interval, history retention)
     * Network settings (timeout, proxy)
   - Saves to ~/.config/opencortex/.env (KEY=VALUE format)
   - CLI integration: opencortex setup, setup --add-provider, setup --link

4. CLI Enhancements
   - doctor --watch: Background health monitoring (60s interval)
   - doctor --fix: Interactive repair (falls back to full setup if core files missing)
   - setup command runs wizard or delegates to setup_system

5. TUI Fixes
   - Inlined message formatting to avoid dependency issues
   - Added error handling in handle-return
   - Cleaner error messages

6. Thin Harness Compliance
   - Removed doctor from harness (now in org-skill-diagnostics skill)
   - XDG directories: only .lisp in harness, .org kept in skills for loader
2026-04-29 12:58:09 -04:00
a616c509ca fix(chaos): standardize test tangle paths to ../tests/ for deployment 2026-04-28 19:42:45 -04:00
553c93e2c7 fix(tui): complete reconstruction of tui-client.org to resolve catastrophic syntax failures 2026-04-28 19:40:22 -04:00
def2774c8f fix(chaos): hard-inserted clean relative tangle headers in all core files 2026-04-28 19:04:34 -04:00
96fe9cdd94 fix(chaos): finalized system-wide reconstruction to resolve FiveAM and EOF failures 2026-04-28 18:49:27 -04:00
357efbdb59 fix(chaos): finalized absolute tangle paths via concat and INSTALL_DIR 2026-04-28 18:22:49 -04:00
d15225a453 fix(chaos): force absolute-relative tangle paths in harness 2026-04-28 18:00:49 -04:00
d55384fb65 fix(chaos): use standard getenv for absolute tangle paths 2026-04-28 17:57:57 -04:00
d787981d0d fix(chaos): force absolute tangle paths via concat to eliminate path resolution ambiguity 2026-04-28 17:57:31 -04:00
b7f6eb68e9 fix(chaos): stabilize tangle paths to absolute targets via concat for reliable bootstrap 2026-04-28 17:56:48 -04:00
fd5513057e fix(chaos): switch to definitive absolute paths via expand-file-name for reliable tangling 2026-04-28 17:55:58 -04:00
d6a7e83de4 fix(chaos): use robust (or INSTALL_DIR buffer-dir) for tangle paths 2026-04-28 17:55:08 -04:00
635db05d17 fix(chaos): standardize tangle paths to robust (identity (getenv ...)) 2026-04-28 17:54:12 -04:00
ae7d0a4ee8 fix(chaos): stabilize tangle paths for scorched earth 2026-04-28 17:49:47 -04:00
aee1c9fa36 fix(chaos): use robust emacs-lisp tangle paths to ensure correct artifact placement 2026-04-28 17:48:11 -04:00
545068e3c8 fix(tui): use uiop:getenv for portability 2026-04-28 17:40:29 -04:00
6d3cfc7bdc fix(chaos): harden Tier 2 tests with deep-copy snapshots and fixed TUI queue 2026-04-28 17:39:51 -04:00
609669b304 fix(chaos): resolve package and symbol issues in Tier 2 tests 2026-04-28 17:36:44 -04:00
e31222d6e3 feat(chaos): implement Tier 2 Integration Chaos for Memory, Networking, and LLM Gateway 2026-04-28 17:32:15 -04:00
38d8ec40e1 fix(tui): fix parentheses imbalance and correct color keywords 2026-04-28 14:33:07 -04:00
a717ab1d3a docs(milestone): complete v0.2.0 Interactive Refinement
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
2026-04-27 20:17:56 -04:00
215fe0eae7 fix(tui): correct vector-push-extend argument count
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
2026-04-27 19:07:07 -04:00
43986fda9c fix(tui): correct unknown event type specifier
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s
2026-04-27 19:05:57 -04:00
2e8e79a193 fix(v0.2.0): finalize structural integrity and clean boot
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
- Fixed memory.org source blocks to ensure persistence functions are tangled.
- Improved extract-tangle-target to handle complex Elisp expressions.
- Corrected opencortex.sh initialization paths to prevent setup loops.
- Reordered variable definitions in policy and standards skills to eliminate forward-reference warnings.
2026-04-27 18:54:18 -04:00
f940861921 build: dynamically tangle to INSTALL_DIR without copying .org files
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
- Updated all 150+ :tangle headers across harness/ and skills/ to use elisp (expand-file-name) to target INSTALL_DIR dynamically.
- Cleaned up environment/ directory depth by moving memory-image.lisp to state/.
- Moved test scripts to tests/ and deleted redundant chat scripts.
2026-04-27 12:51:29 -04:00
664ba8243d refactor: Flatten directory structure library->harness, library/gen->skills 2026-04-27 08:41:26 -04:00
ac14cb0708 Enhance TUI: command history, multi-line input, UI chrome
- Add command history with ↑↓ arrow navigation
- Add multi-line input support (Shift+Enter)
- Add UI chrome: borders, help bar, status bar
- Add slash commands: /help, /exit, /clear
- Style messages with emoji prefixes (🤔 💬 🔧 )
- Format incoming messages with format-incoming function
- Fix input rendering with conditional bold attributes
2026-04-23 13:54:21 -04:00
6c333af7aa ARCH: Finalize semantic reorganization, skill jailing, and unified CLI
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 4s
2026-04-22 11:38:13 -04:00
60f2c152e0 REORG: Apply semantic directory structure and documentation cleanup
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
2026-04-21 19:07:32 -04:00