feat(memory): add persona-owned real-day fractal runtime
This commit is contained in:
parent
5ac069d545
commit
1645789bd3
16 changed files with 2228 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Codex HLDP recursive memory
|
||||
# HLDP recursive tree engine
|
||||
|
||||
This is a deliberately small, non-blocking implementation of the HLDP v1 runtime root.
|
||||
This is the bounded read/review engine shared by persona memory controllers. It is not the current-memory controller and it does not own a host-specific memory canon. The current Zhuyuan real-day writer and day/month/year projections live in `../persona-daily-fractal-memory/`.
|
||||
|
||||
- `bootstrap`: emits at most 2 KiB of protocol navigation, never memory content.
|
||||
- `verify`: validates a recursively addressed causal tree and the 10-child limit.
|
||||
|
|
@ -8,7 +8,7 @@ This is a deliberately small, non-blocking implementation of the HLDP v1 runtime
|
|||
- `route`: ranks only the current node's child summaries and returns at most three paths.
|
||||
- `read-node`: reads one selected node with a hard byte limit.
|
||||
|
||||
The optional Codex hook is valid only for `SessionStart`. There are intentionally no user-prompt, tool-use, pre-compact, or post-compact hooks.
|
||||
The optional Codex hook is valid only for `SessionStart`. There are intentionally no user-prompt, tool-use, pre-compact, or post-compact hooks. Host adapters may signal an event or compaction boundary, but only the persona-authored daily controller may write causal memory.
|
||||
|
||||
```bash
|
||||
node server-tools/codex-hldp-recursive-memory/hldp-memory.mjs bootstrap
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ export function readNode(tree, nodePath, limit = READ_NODE_LIMIT_BYTES) {
|
|||
|
||||
export function bootstrap(protocolRoot) {
|
||||
const message = [
|
||||
"HLDP v1 单对话恢复:只把协议根页作为导航,不自动加载记忆正文。",
|
||||
"HLDP v1 人格时间记忆恢复:只把当前年/月/日根页作为导航,不自动加载记忆正文。",
|
||||
`根页:${protocolRoot}`,
|
||||
"边界:人格主体 != Codex宿主 != 运行系统 != 任务角色 != 执行授权。",
|
||||
"方法:先看根节点摘要;按当前问题一次下钻一层;仅证据缺口时读原文。",
|
||||
|
|
|
|||
Loading…
Reference in a new issue