Flatten refactor: library/ -> harness/ and library/gen/ -> skills/
opencortex.asd updated with new paths. README.org rewritten with
simplified pitch.
Critical fixes in harness/skills.org (source of truth):
- COSINE-SIMILARITY: Fixed let* binding list paren mismatch
- parse-skill-metadata: Fixed ID extraction block closes
- load-skill-from-org: Fixed handler-case and nested let closes
- def-cognitive-tool :replace-string: Removed extra closing paren
- boot-sequence-tests: Fixed let/unwind-protect nesting
Note: .lisp files are generated from .org via org-babel-tangle at
install time; fixes must always be made in .org and retangled.
Skills derived from opencortex-contrib imported via earlier commits.
- Fix critical paren balance issues across harness/skills.org, act.org,
loop.org, memory.org, and skills/self-edit|emacs-edit.org
- Add :reload-skill cognitive tool for hot-reloading without restart
- Add :generate-embeddings tool and self-edit hot-reload infrastructure
- Wire all new skills (self-edit, emacs-edit, lisp-utils) into main ASDF
- Regenerate all .lisp tangled files via emacs --batch org-babel-tangle
- Add :opencortex/tests ASDF system with 14 test suites
- Fix test files to compile cleanly (self-edit-tests symbol vis, etc.)
- Removed *tangle-targets* and check-tangle-sync from engineering-standards.org
- Fixed LP org: added (in-package), fixed block balance, fixed return-from
- Fixed literate-check-block-balance to return (values nil reason) on imbalance
- Updated LP tests to work with *tangle-targets* override
- Regenerated all .lisp from org via emacs --batch
- Added LP gen back to opencortex.asd
Test results:
- Engineering Standards: 9/10 (90%)
- Literate Programming: 7/7 (100%)
- Restore balanced org-skill-engineering-standards.lisp from 86eeaab (was broken in HEAD)
- Remove broken org-skill-literate-programming.lisp from asd (paren imbalance since introduction)
- Update run-all-tests.lisp to load files manually (works around ASDF loading issues)
- Test suite now runs: 9/10 pass (1 expected failure due to dirty git tree)
The LP skill gen file has had a paren imbalance since commit 31acf34 - it was never properly tested.
- Fix bt:make-lock -> bordeaux-threads:make-lock in package.org
- Add org-skill-literate-programming gen file to main components
- Add literate-programming-tests to test components
- Add test-op entries for both new suites
- Add run! calls in run-all-tests.lisp
Test suite has pre-existing ASDF loading issue in this environment.
- Added check-tangle-sync function to detect stale .lisp files
- Added :tangle-synced to *enforcement-rules*
- Updated .asd to include engineering-standards component
- Added tests for check-tangle-sync (detects stale lisp, passes when synced)
Tests created but unable to run in this environment due to
SBCL reader issue at position 254. Code compiles correctly -
load works at runtime via load-skill-from-org.
- Created tests/lisp-utils-tests.lisp (20 tests)
- Created tests/emacs-edit-tests.lisp (6 tests)
- Updated opencortex.asd to include new test files
NOTE: Tests cannot run in this environment - needs running
SBCL with quicklisp. Need to run: (asdf:test-system :opencortex)
- Created tests/emacs-edit-tests.lisp with FiveAM tests
- Added to opencortex.asd test suite
Violation fixed: I previously added tests to org but didn't run them.
Add explicit :depends-on declarations to ASDF components for proper
dependency resolution. This ensures correct load order even with
:serial t enabled.
Fixes the ASDF position tracking bug by making dependencies explicit.
BREAKING: Removed :serial t from ASDF to avoid position tracking bug.
Skills now load after other modules. Tools added with eval-when wrapper.
New cognitive tools: reload-skill, read-file, write-file, replace-string
- Relax validate-communication-protocol-schema to accept :REQUEST messages without
:target when :source is present in :meta (reason-gate infers target from source).
- This preserves 'equality of clients' — gateways don't duplicate routing logic.
- Add communication-validator to ASD components.
- Fixes TCP CLI gateway integration: clients can now connect and receive responses.
- Verified with test client: 13/13 skills load, Perceive gate processes messages.