REFAC: Global rename of org-agent to opencortex

This commit is contained in:
2026-04-14 12:10:11 -04:00
parent b58b780a44
commit 849c078c37
95 changed files with 662 additions and 642 deletions

View File

@@ -8,7 +8,7 @@
#+DEPENDS_ON: id:state-persistence-skill
* Overview
The *Credentials Vault* is the high-security enclave for the Org-Agent. It centralizes the management of LLM API keys, OAuth sessions, and browser cookies. By consolidating these into a single vault, we ensure that sensitive tokens are handled with uniform masking, validation, and Merkle-integrated persistence.
The *Credentials Vault* is the high-security enclave for the OpenCortex. It centralizes the management of LLM API keys, OAuth sessions, and browser cookies. By consolidating these into a single vault, we ensure that sensitive tokens are handled with uniform masking, validation, and Merkle-integrated persistence.
* Phase A: Demand (PRD)
:PROPERTIES:
@@ -16,7 +16,7 @@ The *Credentials Vault* is the high-security enclave for the Org-Agent. It centr
:END:
** 1. Purpose
Securely manage all authentication tokens required for the org-agent to operate.
Securely manage all authentication tokens required for the opencortex to operate.
** 2. User Needs
- *Unified Storage:* Single interface for API keys and Session Cookies.
@@ -152,22 +152,22 @@ Retained from the legacy Google skill, this provides the instructions for the au
** 1. Unit Tests (FiveAM)
#+begin_src lisp
(defpackage :org-agent-vault-tests
(:use :cl :fiveam :org-agent))
(in-package :org-agent-vault-tests)
(defpackage :opencortex-vault-tests
(:use :cl :fiveam :opencortex))
(in-package :opencortex-vault-tests)
(def-suite vault-suite :description "Tests for the Credentials Vault.")
(in-suite vault-suite)
(test test-masking
(is (equal "sk-t...-key" (org-agent::vault-mask-string "sk-test-key")))
(is (equal "[REDACTED]" (org-agent::vault-mask-string "short"))))
(is (equal "sk-t...-key" (opencortex::vault-mask-string "sk-test-key")))
(is (equal "[REDACTED]" (opencortex::vault-mask-string "short"))))
(test test-vault-persistence
"Verify that setting a secret triggers a snapshot (mock check)."
(let ((old-version (org-agent::org-object-version (gethash "root" *memory*))))
(org-agent:vault-set-secret :test "secret-val")
(is (> (org-agent::org-object-version (gethash "root" *memory*)) old-version))))
(let ((old-version (opencortex::org-object-version (gethash "root" *memory*))))
(opencortex:vault-set-secret :test "secret-val")
(is (> (opencortex::org-object-version (gethash "root" *memory*)) old-version))))
#+end_src
** 2. Chaos Scenarios