Transgenerational cognitive infrastructure — local-first agent system for co-creating and stewarding knowledge across six project domains
Find a file
codex a870092d09
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Reject generated-only commits / generated-commit-guard (push) Successful in 15s
Python Tests / pytest (push) Failing after 27s
NK48 coordinator review r6: re-freeze 1.3 at net-kingdom 1ed7953
F1 resolved, F2 resolved in source, F3 still open (type rollback text
unchanged; Apps inverse unimplemented), so r6 is rejected and the owner
re-check is not re-frozen. Descriptor digests are unchanged since r5;
type.yaml is now ef02ddae...684f. Records the T12 restart/readiness
placement recommendation (inside register-client, with the F3 re-freeze).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:01:20 +02:00
.claude/rules Task Wait Qualifiers v0.2: wait_until (time window) and blocked-without-wait rule (C-42) 2026-09-29 21:50:16 +02:00
.forgejo/workflows chore(consistency): sync task status from DB [auto] 2026-10-11 21:30:44 +02:00
.kaizen Close verified guardrail publication and retain phased sizing results 2026-10-19 15:40:49 +02:00
activity-definitions ops: pause stale-lineage consistency sweep 2026-08-21 13:36:25 +02:00
agents
canon Add CUST-WP-0079, build-mode change authorization standard, attended checklist; update assessment with follow-up and renewed goal 2026-10-11 20:54:29 +02:00
config Pass the composed release index into the weekly assessment. 2026-10-22 01:07:54 +02:00
contrib/upstream-prs
docs NK48 coordinator review r6: re-freeze 1.3 at net-kingdom 1ed7953 2026-10-23 07:01:20 +02:00
e2e-framework
eval
history Record final Custodian workplan review with automatically reconciled indexes 2026-10-12 00:22:20 +02:00
infra Close generator adoption and retain briefs as local orientation 2026-10-19 13:54:17 +02:00
memory Record completed P06 session and live policy evidence 2026-09-14 00:11:16 +02:00
ops
registry docs(reuse): establish reviewed NetKingdom security capabilities 2026-10-14 06:46:30 +02:00
research research: close the two gaps — erasure mechanism and noisy-neighbour evidence 2026-08-17 14:37:02 +02:00
roadmap/state-hub-v0.2
runtime
schemas
scripts Pass the composed release index into the weekly assessment. 2026-10-22 01:07:54 +02:00
specs
state-hub
tests Pass the composed release index into the weekly assessment. 2026-10-22 01:07:54 +02:00
tools Remove coulombcore Gitea package-push lockdown tooling (RAPPS-WP-0019-T05) 2026-10-21 23:49:37 +02:00
wiki
workplans Wave-2 right-sizing applied 2026-10-22 (CUST-WP-0071) 2026-10-22 01:05:32 +02:00
.generated-work-records.json Adopt staged generation and prepare weekly sizing and credential isolation 2026-10-19 12:42:11 +02:00
.generated-work-records.mk Adopt staged generation and prepare weekly sizing and credential isolation 2026-10-19 12:42:11 +02:00
.gitignore chore: ignore local kubectl cache; retain CUST-WP-0079 policy-publication execution logs 2026-10-21 12:27:42 +02:00
.mcp.json
.repo-classification.yaml CUST-WP-0050 T02: human review complete; close T02 2026-06-22 11:31:39 +02:00
AGENTS.md Wire supervised startup and publish corrected Secret guidance 2026-09-28 18:25:30 +02:00
CLAUDE.md
intake-legacy-suggestions-migration.md workplans: close stale intakes and start classification migration 2026-08-23 01:31:29 +02:00
intakes.md Complete NetKingdom review and verify all 70 hosted capabilities 2026-10-15 05:35:29 +02:00
INTENT.md
LICENSE
Makefile CUST-WP-0071-T05: hub delivery per weekly report and daily missed/failed-run check 2026-10-21 08:40:12 +02:00
README.md Publish federation governance interface and consistency residual 2026-09-06 01:03:22 +02:00
SCOPE.md SCOPE: CUST-WP-0079 finished; daily flow runs on the workstation timer 2026-10-21 00:14:42 +02:00
WORK-RECORDS.md CUST-WP-0071: wave 1 applied (except Forgejo server); evidence 2026-10-21 21:08:27 +02:00

Confidential and Proprietary. Authorized Use Only. Subject to NDA & Contractual Penalty.

The Custodian

Transgenerational Cognitive Infrastructure — a local-first, sovereignty-preserving agent system for co-creating and stewarding knowledge across a growing set of project domains.

The Custodian acts as co-creator and steward, not authority. Humans approve all irreversible decisions. The system is designed to still be coherent decades from now.


Architecture

the-custodian/
├── canon/              # Curated, reviewable knowledge substrate
│   ├── constitution/   # Governance rules (v0.1)
│   ├── values/         # Nine foundational principles
│   └── projects/       # Six founding domain charters, concept seeds, roadmaps
├── memory/             # Operational logs — append-only, never rewritten
│   ├── working/        # Session notes (scoped, time-bounded)
│   └── episodic/       # Immutable event archive
├── state-hub/          # Pointer only; service source lives at /home/worsch/state-hub
├── runtime/            # Agent runtime scaffolding (policies, prompts, adapters)
├── infra/              # Deployment, backups, encryption scaffolding
└── eval/               # Policy and regression test placeholders

The dependency chain across domains runs bottom-up:

Railiance → Markitect → Coulomb.social → Personhood / Capabilities → Custodian
(ops)        (canon)     (interaction)     (rights/agency)        (integration)

Project Domains

Domain Purpose Topic ID
Custodian Master agent system; integrates all layers cee7bedf-2b48-46ef-8601-006474f2ad7a
Railiance Sovereign DevOps and operational reliability ca369340-a64e-442e-98f1-a4fa7dc74a38
Markitect Knowledge artifact management: authoring, versioning, retrieval 5571d954-0d30-4950-980d-7bcaaad8e3e2
Coulomb.social Co-creation marketplace and governance experiment 36c7421b-c537-4723-bf75-42a3ebc6a1dc
Personhood Rights and obligations framework for mixed-intelligence societies 084430ab-c630-48dc-9e1d-d07d1e8fce3c
Capabilities Agency capability taxonomy (Foerster's Non-Trivial Machines); formerly Foerster Capabilities 64418556-3206-457a-ba29-6884b5b12cf3

These six are the founding domains with full canon charters. The State Hub now coordinates a larger, growing set (14 active as of 2026-06-21) — run list_domains() for the authoritative live list.

Each founding domain has three canon artifacts under canon/projects/<domain>/:

  • project_charter_v0.1.md — purpose, problem, scope, success criteria
  • concepts_seed_v0.1.md — ten foundational concepts
  • roadmap_v0.1.md — multi-phase implementation plan

State Hub — Quick Start

The State Hub is the live operational layer: a PostgreSQL database, a FastAPI REST service, an MCP server, and an Observable dashboard. Its authoritative implementation now lives in the standalone checkout at /home/worsch/state-hub.

Prerequisites

  • Docker Engine (WSL2: see CLAUDE.md → Docker Setup)
  • Python 3.12+ with uv (pip install uv)
  • Node.js 18+ (for dashboard only)

First-time setup

cd /home/worsch/state-hub

cp .env.example .env          # set POSTGRES_PASSWORD
make install                  # uv sync → Python deps + custodian CLI in .venv
make install-cli               # symlink custodian to ~/.local/bin
make db                       # start postgres on 127.0.0.1:5432
make migrate                  # alembic upgrade head
make seed                     # insert 6 canonical topics
make api                      # uvicorn on 127.0.0.1:8000

API docs: http://127.0.0.1:8000/docs Health check: make check

Shortcut

make api  # db + migrate + api (restarts if already running)

Dashboard

cd /home/worsch/state-hub
make dashboard    # Observable Framework dev server on :3000

Connecting a Project

Any repository can be registered as a Custodian project in one command:

cd /path/to/your-project
custodian register-project --domain railiance

This will:

  1. Verify the API is running
  2. Look up the topic ID for the domain
  3. Check that the MCP server is registered in ~/.claude.json
  4. Write a CLAUDE.md into the project root
  5. Post a progress event to the State Hub

Domain is auto-detected from project_charter_v*.md frontmatter if --domain is omitted.

custodian status              # health + summary totals + blocking decisions
custodian register-project    # full registration from cwd

Claude Code Integration

The state-hub MCP server is registered at user scope in ~/.claude.json. It exposes 11 tools and 5 resources directly in every Claude Code session.

Session protocol (enforced via ~/.claude/CLAUDE.md):

  • Start: get_state_summary() — orientation snapshot
  • End: add_progress_event() — append to the immutable log

Tool reference: /home/worsch/state-hub/mcp_server/TOOLS.md

If the MCP server is missing from a session: check ~/.claude/CLAUDE.md → MCP Server Registration.


Governance

The constitution (canon/constitution/custodian_constitution_v0.1.md) defines hard boundaries:

The Custodian may without approval:

  • Draft documents, plans, and structured artifacts
  • Read/search canon and approved repositories
  • Propose canon updates as PRs/patches (never direct writes)
  • Create working-memory notes and session summaries

Never permitted (v0.1):

  • Financial transactions or legal commitments
  • External publication under Bernd's identity
  • Storing secrets/credentials in plaintext
  • Writing directly to canon/ without a review gate

Must escalate when:

  • Actions affect money, legal status, security, or external reputation
  • Instructions conflict with values or the constitution
  • Consent is unclear, especially in family-scoped data

Canon Promotion Workflow

Custodian proposes → run gates (attribution, consistency, clarity, sensitivity, reversibility)
                   → human approves → merge

All canon changes carry provenance metadata. Episodic memory is append-only.


Roadmap

Phase Focus Status
0 Canon + constitution + State Hub v0.1 done
1 RAG over canon, drafting pipelines, consistency checks planned
2 Stewardship automation (health checks, drift detection) planned
3 Sovereign appliance (local inference on dedicated hardware) future
4 Family custodianship (consent model, vault, succession) future

Key Design Principles

  • Local-first, degrade-gracefully — no vendor lock-in; can operate offline
  • Auditability and reversibility — explicit gates; proposals precede changes
  • Safety by design — Custodian is co-creator, not authority; humans approve irreversible decisions
  • Targeted information processing — narrow, high-leverage work over general intelligence
  • Long timescale stewardship — designed for multi-year and eventual multi-generational continuity

Canon federation

Published interface card declares exports, imports, authority, source-of-truth boundaries and reciprocal canon references.