Update .gitignore to exclude Python-related files and directories. Enhance AGENTS.md and README.md with clarifications on documentation structure and product identity. Add technical architecture references and local setup instructions. Revise privacy guardrails and product identity documents for consistency. Remove obsolete memory and context documentation. Expand reflection spaces documentation to define context boundaries and lifecycle. Ensure all changes align with the ongoing development of the Kanshō project.
This commit is contained in:
1 parent
3a367b7bcc
commit
d62673e48b
89 files changed
+13463
-241
No files matched your search
@@ -0,0 +1,27 @@
|
||||
"""Registered derived-record kinds. No prompt templates, no domain heuristics."""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
KINDS_PATH = Path(__file__).resolve().parent / "config" / "derived_kinds.json"
|
||||
|
||||
|
||||
def load_kinds() -> dict[str, dict]:
|
||||
payload = json.loads(KINDS_PATH.read_text(encoding="utf-8"))
|
||||
return {item["id"]: item for item in payload.get("kinds", [])}
|
||||
|
||||
|
||||
def known_kind_ids() -> set[str]:
|
||||
return set(load_kinds())
|
||||
|
||||
|
||||
def require_kind(kind: str) -> dict:
|
||||
kinds = load_kinds()
|
||||
if kind not in kinds:
|
||||
raise ValueError(kind)
|
||||
return kinds[kind]
|
||||
|
||||
|
||||
def catalog() -> list[dict]:
|
||||
return sorted(load_kinds().values(), key=lambda item: item["id"])
|
||||
Reference in new issue
Block a user