b63f5477c1
fix(v0.2.0): resolve TUI crash and setup wizard errors
...
- Fix unbalanced parens in config-manager (set-config-value, setup-gateways)
- Fix assoc :key #'car SBCL compatibility issue in setup-llm-providers
- Add missing generate-tool-belt-prompt function
- Fix deterministic-verify to not overwrite action when skills return nil
- Add :explanation to think fallback responses for policy compliance
- Update opencortex.sh to tangle from repo org to XDG .lisp
- Remove generated .lisp artifacts from repo (skills, tests, state)
2026-04-30 17:04:01 -04:00
1eb8a3db92
refactor(skills): use %%SKILLS_DIR%% placeholder for portable tangling
...
- Updated 22 skill org files to use %%SKILLS_DIR%% placeholder
- Modified opencortex.sh setup to replace placeholder with XDG path
- Modified doctor_repair to handle placeholder replacement
- Removed hardcoded absolute path
2026-04-30 11:14:31 -04:00
dabf52f234
fix(skills): add (in-package :opencortex) to org-skill-repl.org
...
Required for tangling to work correctly in XDG location
2026-04-30 11:11:39 -04:00
21c792b019
refactor(skills): absolute XDG paths for tangling
...
- Updated all 23 skill org files to use absolute path
- Tangle now outputs directly to ~/.local/share/opencortex/skills/
- Removed env var (org-babel doesn't expand it)
2026-04-30 11:09:46 -04:00
dd8bb6e3c8
refactor(skills): use XDG paths for tangle destinations
...
- Updated all 22 skill org files to use $OC_DATA_DIR/skills/ paths
- Removed manually created .lisp file (tangling now targets XDG)
- Files will now tangle to ~/.local/share/opencortex/skills/
2026-04-30 11:09:21 -04:00
ddc60b8ff7
fix(harness): resolve compile errors
...
- FIX: memory.lisp - rename copy-org-object to deep-copy-org-object
to avoid conflict with defstruct auto-generated copier
- FIX: reason.lisp - fix malformed char= syntax on line 74
(was: #\((char= ... should be: or (char= ... #\() (char= ... #\[))
2026-04-30 10:58:22 -04:00
1080f0b873
feat(skills): add org-skill-repl for persistent Lisp evaluation
...
- NEW: org-skill-repl skill enables:
* repl-eval: evaluate code with result+output+error separation
* repl-inspect: inspect variables and functions
* repl-list-vars: list all bound symbols in package
* repl-load-file: load files into image
* repl-set-package: switch default package
* repl-help: show available commands
- Supports REPL-first workflow with literate reflection in org
- Priority 200 (after diagnostics, before utils-lisp)
- Follows same pattern as existing skills (in-package, defskill)
2026-04-30 10:54:05 -04:00
6a6f4479ac
feat(core): Skills consolidation and v0.2.0 TUI integration
...
- NEW: org-skill-utils-lisp (consolidated from org-skill-lisp-utils)
* 3-phase validation: structural, syntactic, semantic
* Sandboxed eval, AST extraction/injection/wrapping
* Format, list-definitions utilities
- NEW: org-skill-utils-org (consolidated from org-skill-emacs-edit)
* Read/update/delete org headlines
* Property management, TODO state handling
* ID-link and internal link support
- DELETE: org-skill-lisp-utils (merged into utils-lisp)
- DELETE: org-skill-emacs-edit (merged into utils-org)
- RENAME: run-all-tests.lisp -> run-tests.lisp
- HARDEN: Skill loader with improved lisp keyword handling
- FIX: Package jailing issues with def-cognitive-tool macro conflicts
- ADD: Setup wizard (opencortex setup) and doctor (opencortex doctor)
- ADD: TUI client with Croatoan for native terminal rendering
- REMOVE: Dynamic loading from opencortex.asd (use :force t instead)
- CLEANUP: Test file consolidation (removed duplicate test suites)
Co-authored-by: Agent <agent@memex>
2026-04-30 10:52:20 -04:00
c0d3f066e8
Proactive doctor, setup wizard, and TUI fixes
...
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
31d3a52aeb
fix(skills): improve skill loader to allow lisp keywords at start of line
2026-04-28 20:07:14 -04:00
c180e55cb3
fix(skills): ensure skill loader collects lisp blocks inheriting tangle properties
2026-04-28 20:04:46 -04:00
55599d3cba
debug(skills): add package diagnostic logs
2026-04-28 20:02:18 -04:00
9faa861014
fix(skills): implement symbol exporting in skill loader
2026-04-28 20:00:27 -04:00
75957dfc69
fix(cli): use dynamic funcall for skill functions in setup and doctor
2026-04-28 19:58:40 -04:00
5068e4a2c5
fix(skills): implement symbol exporting for dynamic loading
2026-04-28 19:57:56 -04:00
2030538281
fix(setup): initialize skills before running setup wizard and resolve syntax errors in config manager
2026-04-28 19:56:54 -04:00
45d8531efa
fix(daemon): implement and start network listener for TUI connectivity
2026-04-28 19:52:38 -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
8a54e769c4
fix(chaos): finalized system reconstruction for scorched earth
2026-04-28 19:19:51 -04:00
829bd7b7aa
fix(skills): finalize reconstructions for diagnostics and llm-gateway
2026-04-28 19:18:49 -04:00
8ad7443d3f
fix(skills): finalize reconstructions for diagnostics and llm-gateway
2026-04-28 19:18:11 -04:00
ad891a86e6
fix(loop): complete reconstruction of loop.org to resolve catastrophic syntax failures
2026-04-28 19:17:25 -04:00
224ede8cca
fix(act): complete reconstruction of act.org to resolve catastrophic syntax failures
2026-04-28 19:16:38 -04:00
9506b23ea6
fix(reason): complete reconstruction of reason.org to resolve catastrophic syntax failures
2026-04-28 19:15:31 -04:00
9f71f7c391
fix(perceive): complete reconstruction of perceive.org to resolve catastrophic syntax failures
2026-04-28 19:14:49 -04:00
fa44b2a58e
fix(perceive): resolve unclosed docstrings and strings
2026-04-28 19:14:09 -04:00
171652a887
fix(context): complete reconstruction of context.org to resolve catastrophic syntax failures
2026-04-28 19:13:09 -04:00
d6fa4a12d7
fix(chaos): finalized system reconstruction for scorched earth
2026-04-28 19:11:58 -04:00
4ff9d519be
fix(communication): correct unclosed string in validator
2026-04-28 19:10:34 -04:00
63cf7bc033
fix(communication): correct missing closing quote in actuator registry docstring
2026-04-28 19:10:01 -04:00
27dd58f238
fix(skills): complete reconstruction of skills.org to resolve catastrophic syntax failures
2026-04-28 19:09:29 -04:00
f465dcc59c
fix(chaos): reset and standardize all tangle headers to clean relative paths
2026-04-28 19:08:31 -04:00
4669fcf22a
fix(harness): complete reconstruction of package.org to resolve catastrophic syntax failures
2026-04-28 19:07:31 -04:00
c2ffcd2c13
fix(harness): complete reconstruction of package.org to resolve catastrophic syntax failures
2026-04-28 19:05:47 -04:00
def2774c8f
fix(chaos): hard-inserted clean relative tangle headers in all core files
2026-04-28 19:04:34 -04:00
14ef0d2cb8
fix(context): correct unclosed string in active projects
2026-04-28 19:02:30 -04:00
d3f2825558
fix(context): resolve unclosed strings and missing parens in skill-source and system-logs
2026-04-28 19:01:14 -04:00
1a1339c8fd
fix(memory): complete reconstruction of memory.org to resolve multiple syntax failures
2026-04-28 19:00:19 -04:00
b8b9b2c9f9
fix(memory): correct unclosed string in history-store docstring
2026-04-28 18:59:09 -04:00
d078069a1a
fix(memory): correct unclosed string in compute-merkle-hash
2026-04-28 18:58:31 -04:00
1ff614214a
fix(communication): correctly tangle communication-validator.lisp
2026-04-28 18:57:57 -04:00
517fc20f4b
fix(communication): complete reconstruction of communication.org to resolve catastrophic syntax failures
2026-04-28 18:56:56 -04:00
770bbe2c56
fix(communication): correct missing closing quote in actuator registry docstring
2026-04-28 18:55:48 -04:00
585e19caca
fix(skills): complete reconstruction of skills.org to resolve multiple syntax failures
2026-04-28 18:54:59 -04:00
f5098d5dc4
fix(harness): complete reconstruction of package.org to resolve catastrophic syntax failures
2026-04-28 18:53:42 -04:00
179e1a142c
fix(manifest): complete reconstruction of manifest.org to resolve catastrophic syntax failures
2026-04-28 18:52:45 -04:00
503d4536bf
fix(setup): properly route tangled tests and orchestrator
2026-04-28 18:50:48 -04:00
96fe9cdd94
fix(chaos): finalized system-wide reconstruction to resolve FiveAM and EOF failures
2026-04-28 18:49:27 -04:00
f56c3e1c61
fix(skills): finalize reconstruction of all core skills to resolve syntax errors
2026-04-28 18:48:21 -04:00