v0.3.0 finish: TUI tests, embedding wiring, gateway :configured, focus commands, export cleanup
Some checks failed
Deploy (Gitea) / deploy (push) Failing after 2s

- TUI: Fix stale contract (remove handle-return/*incoming-msgs*), rewrite
  10->13 tests (38 checks, 100% pass). Export missing symbols from TUI
  package. Fix view-chat contract arity.
- Gateway messaging: Add :configured key to registry (boolean, nil default).
  Fix contract to match (vault-based, not env-var-based).
- Async Embedding Gateway: Add *embedding-backend* var, embeddings-compute
  function. Modify ingest-ast to populate vectors on new objects.
  Add EMBEDDING_PROVIDER env var support. Add Contract + 4 tests (8 checks).
- Context Manager: Add /focus, /scope, /unfocus commands to TUI on-key
  handler. Commands degrade gracefully when context-manager not loaded.
- Export hygiene: Remove 30+ ghost exports (undefined symbols). Remove
  duplicate/mismatched names. Exports now match actual definitions.
This commit is contained in:
2026-05-05 17:42:03 -04:00
parent 035aac45e3
commit cd86509e3a
13 changed files with 572 additions and 176 deletions

View File

@@ -30,15 +30,10 @@ The package definition. All public symbols are exported here.
#:read-framed-message
#:PROTO-GET
#:proto-get
#:LIST-OBJECTS-WITH-ATTRIBUTE
#:COSINE-SIMILARITY
#:VAULT-MASK-STRING
#:*VAULT-MEMORY*
#:parse-message
#:make-hello-message
#:validate-communication-protocol-schema
#:start-daemon
#:stop-daemon
#:log-message
#:main
#:diagnostics-run-all
@@ -48,17 +43,10 @@ The package definition. All public symbols are exported here.
#:register-provider
#:provider-openai-request
#:provider-config
#:system-ready-p
#:run-setup-wizard
#:skill-gateway-register
#:skill-gateway-link
#:gateway-manager-main
#:ingest-ast
#:memory-object-get
#:list-objects-by-type
#:org-id-new
#:*memory-store*
#:*history-store*
#:memory-object
#:make-memory-object
#:memory-object-id
@@ -74,14 +62,7 @@ The package definition. All public symbols are exported here.
#:memory-object-scope
#:snapshot-memory
#:rollback-memory
#:context-query-store
#:context-get-active-projects
#:context-get-recent-completed-tasks
#:context-list-all-skills
#:context-get-skill-source
#:context-get-system-logs
#:context-resolve-path
#:context-get-skill-telemetry
#:telemetry-track
#:context-assemble-global-awareness
#:context-awareness-assemble
@@ -90,15 +71,12 @@ The package definition. All public symbols are exported here.
#:loop-process
#:perceive-gate
#:loop-gate-perceive
#:probabilistic-gate
#:consensus-gate
#:act-gate
#:loop-gate-act
#:reason-gate
#:loop-gate-reason
#:cognitive-verify
#:backend-cascade-call
#:dispatch-gate
#:register-pre-reason-handler
#:inject-stimulus
#:stimulus-inject
@@ -113,13 +91,10 @@ The package definition. All public symbols are exported here.
#:dispatcher-gate
#:wildcard-match
#:actuator-initialize
#:dispatch-action
#:action-dispatch
#:register-actuator
#:load-skill-from-org
#:skill-initialize-all
#:load-skill-with-timeout
#:topological-sort-skills
#:lisp-syntax-validate
#:defskill
#:*skill-registry*
@@ -130,6 +105,7 @@ The package definition. All public symbols are exported here.
#:embed-queue-object
#:embed-object
#:embed-all-pending
#:embedding-backend-hashing
#:embeddings-compute
#:skill
#:skill-name
@@ -140,12 +116,6 @@ The package definition. All public symbols are exported here.
#:skill-deterministic-fn
#:def-cognitive-tool
#:*cognitive-tool-registry*
#:verify-git-clean-p
#:engineering-standards-verify-lisp
#:engineering-standards-format-lisp
#:literate-check-block-balance
#:check-tangle-sync
#:*tangle-targets*
#:org-read-file
#:org-write-file
#:org-headline-add
@@ -155,11 +125,8 @@ The package definition. All public symbols are exported here.
#:gateway-start
#:org-property-set
#:org-todo-set
#:org-find-headline-by-id
#:org-find-headline-by-title
#:org-id-generate
#:org-id-format
#:org-ast-to-org
#:org-modify
#:lisp-validate
#:lisp-structural-check
@@ -169,13 +136,9 @@ The package definition. All public symbols are exported here.
#:lisp-format
#:lisp-list-definitions
#:lisp-extract
#:lisp-structural-wrap
#:lisp-inject
#:lisp-slurp
#:lisp-register
#:get-oc-config-dir
#:prompt-for
#:save-secret
#:get-tool-permission
#:set-tool-permission
#:check-tool-permission-gate
@@ -187,13 +150,7 @@ The package definition. All public symbols are exported here.
#:cognitive-tool-parameters
#:cognitive-tool-guard
#:cognitive-tool-body
#:*emacs-clients*
#:*clients-lock*
#:register-emacs-client
#:unregister-emacs-client
#:ask-probabilistic
#:register-probabilistic-backend
#:distill-prompt
#:*probabilistic-backends*
#:*provider-cascade*
#:vault-get
@@ -201,7 +158,6 @@ The package definition. All public symbols are exported here.
#:vault-get-secret
#:vault-set-secret
#:memory-objects-by-attribute
#:find-headline-missing-id
#:gateway-cli-input
#:repl-eval
#:repl-inspect
@@ -215,8 +171,7 @@ The package definition. All public symbols are exported here.
#:gateway-registry-initialize
#:messaging-link
#:messaging-unlink
#:gateway-configured-p
#:dispatcher-flight-plan-create))
#:gateway-configured-p))
#+end_src
** Package Implementation