wip: paren balance fixes in policy blocks + engineering standards scaffolding
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 16s

- Fix unbalanced parens in org-skill-policy.org (8 blocks)
- Add org-skill-engineering-standards.lisp scaffolding
- Add org-skill-self-fix.lisp helper
- Add test runners and tool-permissions tests

Note: Some fixes may be over-corrections. Full structural audit needed.
This commit is contained in:
2026-04-25 12:05:23 -04:00
parent 249d537ca2
commit d177a12469
10 changed files with 191 additions and 46 deletions

View File

@@ -22,15 +22,11 @@
(def-cognitive-tool :get-embedding
"Generates vector embeddings via Ollama or llama.cpp API."
((text :type :string :description "Text to embed."))
((:text :type :string :description "Text to embed."))
:body (lambda (args)
(let* ((text (getf args :text))
(provider (or (uiop:getenv "EMBEDDING_PROVIDER") "ollama"))
(model (or (uiop:getenv "EMBEDDING_MODEL")
(case (intern (string-upcase provider) :keyword)
(:NOMIC-EMBED-TEXT "nomic-embed-text")
(:LLAMA-CPP "llama.cpp")
(t "nomic-embed-text"))))
(model (or (uiop:getenv "EMBEDDING_MODEL") "nomic-embed-text"))
(embedding nil))
(cond
((string= provider "ollama")
@@ -88,4 +84,4 @@
:trigger (lambda (c) (declare (ignore c)) nil)
:deterministic (lambda (a c)
(let ((tool (getf (getf a :payload) :tool)))
(when tool (check-tool-permission-gate tool c)))))
(when tool (check-tool-permission-gate tool c)))))