Open Memory Indexing Layer · 開放式記憶索引層

SCBKR 記憶庫索引
SCBKR Memory Index

這個專案只做一件事:把記憶整理成 SCBKR 結構,並在進入決策前做責任鏈截斷。
This project focuses on one thing: structure memory with SCBKR and apply a responsibility-chain cutoff before decision usage.

核心規則:沒有責任鏈,不進決策。
Core rule: No responsibility chain, no decision path.

SCBKR Core Schema

  • S · Subject主體 / 記憶主題
  • C · Cause原因 / 背景脈絡
  • B · Boundary邊界 / 使用限制
  • K · Key Evidence證據 / 可驗證來源
  • R · Responsibility責任 / 人類承擔節點

Open indexing layer only · 僅開放索引層,不含封閉治理核心

About / 關於這個專案

What it is / 這是什麼

可下載、可執行的記憶索引層,讓你用 SCBKR 管理記憶並保留責任鏈。
We provide a downloadable, runnable memory indexing layer with explicit responsibility trace.

What it is not / 這不是什麼

不是完整治理引擎、不是封閉判斷核心、不是自動責任判定器。
It is not a full governance engine, not a closed judgment core, and not automatic responsibility adjudication.

Run in 3 Steps / 三步執行

Step 1 · 下載後進入 / Enter folder

cd main-root/starter-package

之後所有指令都在此資料夾執行。 All commands below run in this folder.

Step 2 · 一鍵產生 + 截斷 / Build + Gate

./run_open_layer.sh

會產生 generated/gate-report/decision-ready 三份輸出。 It generates three output files.

Step 3 · 啟動本地 API / Start local API

python3 services/scbkr_api_server.py \
  --index ./memory-index/index.scbkr.decision-ready.json \
  --port 9000

預設只回傳 decision-ready 記憶。 By default, only decision-ready memory is returned.

curl http://127.0.0.1:9000/health
curl -X POST http://127.0.0.1:9000/query -H "Content-Type: application/json" -d '{"query":"policy risk","top_k":3}'

3 Practical Routes / 三種實際路徑

Route A · JSON Route

直接把 JSON / 文字檔放進 memory-index/json/,先完成索引與責任鏈截斷。
Put JSON/text files into memory-index/json/ and run index + responsibility gate first.

Route B · Google Drive Export Route

先把 Google Drive 內容匯出到 memory-index/drive-import/ 再索引;目前是檔案匯入流程,不是 live API 直連。
Export Google Drive files to memory-index/drive-import/ first; this is file-import flow, not live API integration.

Route C · Local Model Route

本地資料先經過 scbkr_human_gate.py,再由本地模型使用 decision-ready 索引。
Run local data through scbkr_human_gate.py, then feed decision-ready index to your local model.

curl http://127.0.0.1:9000/health
curl -X POST http://127.0.0.1:9000/query -H "Content-Type: application/json" -d '{"query":"policy risk","top_k":3}'

Download ZIP / 下載 ZIP

下載後可直接執行 open layer,先索引、再責任鏈截斷、再本地查詢。
Download and run immediately: index -> human gate -> local query.

Download Repository ZIP / 下載整個 Repo

Open Layer vs Commercial Layer / 開源層與商業層

Open Layer (Public Repo)

  • auto_index.py(自動建立索引 / auto indexing)
  • scbkr_human_gate.py(責任鏈截斷 / responsibility gate)
  • scbkr_api_server.py(本地查詢 API / local query API)

Commercial Layer (Licensed)

  • 治理權重與參數引擎 / governance weights & parameter engine
  • 模型上層白盒規則 / white-box rules above model outputs
  • 企業審計與導入支援 / enterprise audit & onboarding support

沒有責任鏈,不進決策。/ No responsibility chain, no decision path.

Founder / 聯絡窗口

Shen-Yao 888π / Wen-Yao Hsu

合作、授權與商業導入請透過創辦人窗口聯絡。 For collaboration, licensing, and commercial onboarding, contact the founder.

Visit Founder Website / 前往創辦人網站