Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
36bb454
feat: sovereign BitNet b1.58 attention + v4 doctrine landing (turns 1…
danielcamposramos Apr 18, 2026
8f69675
bench(sovereign-bitnet): first sovereign attention run results — 2026…
danielcamposramos Apr 18, 2026
d79fc35
fix(sovereign-bitnet): replace sham benchmark with real PTX-launching…
danielcamposramos Apr 18, 2026
4ec9025
fix(sovereign-loader): warm up lazy primary ctx + daemon boot init
danielcamposramos Apr 18, 2026
5aafdc7
chore(sovereign): enforce single-context invariant via CI gate + test…
danielcamposramos Apr 18, 2026
ae38571
refactor(sovereign): migrate 6 bindings to shared-context loader pattern
danielcamposramos Apr 18, 2026
40b9833
fix(sovereign-loader): unconditional 16-byte warmup + boot diagnostic
danielcamposramos Apr 18, 2026
8a9bb30
fix(sovereign-loader): ctx.value not int(ctx) in boot diagnostic
danielcamposramos Apr 18, 2026
3eaf2fc
fix(sovereign-ctx): stop galaxy_buffer from releasing loader's primar…
danielcamposramos Apr 18, 2026
8a2b711
fix(sovereign-loader): bind cuda v2 symbols consistently to fix cuMem…
danielcamposramos Apr 18, 2026
60adf71
fix(sovereign-loader): extend cuda v2 binding to module/stream/primar…
danielcamposramos Apr 18, 2026
724fe51
fix(bitnet-kernel): hoist __shfl_sync out of divergent branch to avoi…
danielcamposramos Apr 18, 2026
5ef2bd8
fix(bench-bitnet): scale synthetic scores into realistic dp4a magnitu…
danielcamposramos Apr 18, 2026
4157a6a
bench(sovereign-bitnet): first honest sovereign attention run — 20260…
danielcamposramos Apr 18, 2026
2221c44
B7 add cloud differentiation contract and web search
danielcamposramos Apr 19, 2026
7f6bb37
B7 add residual differentiation driver
danielcamposramos Apr 19, 2026
fc45655
B7 parallel differentiation driver (claim-based, no re-work, no overlap)
danielcamposramos Apr 19, 2026
afe3033
B7 fix merge shard publishing
danielcamposramos Apr 19, 2026
2def127
batch11: B7 workstream, sovereignty purge, paper track specs
danielcamposramos Apr 19, 2026
46637f4
B7 pivot to meaning resolution
danielcamposramos Apr 20, 2026
7460562
B7 reuse canonical meaning ids during merge
danielcamposramos Apr 20, 2026
aee9b41
B7 meaning-resolution: stop over-splitting language variants
danielcamposramos Apr 20, 2026
542cbb3
B7 meaning cascade: word_refs, retry envelope, scoped sources
danielcamposramos Apr 20, 2026
d2b1671
B7 pilot handoff: word_refs + retry envelope for Codex
danielcamposramos Apr 20, 2026
b19ccec
B7 retry envelope: opt-in, word_refs collision fix
danielcamposramos Apr 20, 2026
9f29291
docs: B7 meaning-resolution pilot completion report
danielcamposramos Apr 20, 2026
63facad
feat(codec): land sovereign A/V codec family — DotMap, JPEG, Audio FF…
danielcamposramos Apr 20, 2026
e030b22
feat(rpn): reserve Minecraft-for-Cognition opcode ranges + Document G…
danielcamposramos Apr 20, 2026
4c794cb
feat(bridges): Arc3ScreenBridge + codec dispatcher for 0x2A0-0x2A9
danielcamposramos Apr 20, 2026
f75fa31
fix(ingestion): canonicalize Layer 0 Drawing primitive IDs + extend r…
danielcamposramos Apr 20, 2026
f04b452
docs: Minecraft-for-Cognition handoff section in CODEX.md
danielcamposramos Apr 20, 2026
0e5aebe
fix(bridges): CUdeviceptr .value extraction + utf-8 header
danielcamposramos Apr 20, 2026
cc1a452
feat(ingestion): .npz->bin TRM checkpoint converter (ingestion-path n…
danielcamposramos Apr 20, 2026
48efd39
feat(sovereign): TRM init reads .bin via ctypes, numpy purged from ho…
danielcamposramos Apr 20, 2026
e12af67
feat(kernels): compile dotmap_codec.ptx + projection_screen.ptx
danielcamposramos Apr 20, 2026
e62ee7d
feat(bridges): DotMapBridge + ProjectionScreenBridge wire 0x2A2/0x2A3
danielcamposramos Apr 20, 2026
854dd8d
fix(cranium): graceful skip for purged adaptive_procedural_bridge
danielcamposramos Apr 20, 2026
6cc9af9
refactor(cache): gpu flat cache .npy→.bin, sovereign byte path
danielcamposramos Apr 20, 2026
58157e6
fix(ingestion): tag proceduralized benchmark galaxies as role=answer
danielcamposramos Apr 20, 2026
865191f
fix(offline-proof): clear blocker chain, GSM8K/MMLU/Math 3q run to su…
danielcamposramos Apr 20, 2026
7ce96f0
feat: wire answer materialization into TRM game-loop dispatch path
danielcamposramos Apr 20, 2026
a9c361e
docs: add GSM8K 10q baseline (1/10, 80% materialization)
danielcamposramos Apr 20, 2026
b4c1387
docs: add MMLU 10q + Math 10q baselines (20% / 10%)
danielcamposramos Apr 20, 2026
e94cc10
docs: ARC3 live blocker — arc3_episode_galaxy in Old_Attempts
danielcamposramos Apr 20, 2026
70c465c
feat: restore ARC3 episode galaxy with sovereign GPU ring + expand ma…
danielcamposramos Apr 20, 2026
265316c
docs: ARC3 unblock + math galaxy coverage report (04.20.2026)
danielcamposramos Apr 20, 2026
5ab2eac
docs: data-state diagnostic — audit claims corrected, priorities redi…
danielcamposramos Apr 20, 2026
bae1c8b
feat: live cognitive OS — wake+sleep lanes, in-line BitNet, first-cla…
danielcamposramos Apr 21, 2026
c782e33
Adjust PM-KR Community Group wording
danielcamposramos May 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ rpn_kernel_profile.*

# Runtime data (generated per session)
$ROOT/

# Ingestion staging — knowledge working state (lives in local folder, not repo)
scripts/ingestion/staging/

# Compiled binaries (rebuild locally)
scripts/ingestion/d3/build/

# Benchmark runtime outputs (regenerated per run)
data/benchmarks/sovereign_bitnet_attention_*.json

# Runtime dedup digests (regenerated per pipeline run)
TEMP/D3_duplicate_cluster_digest_*.jsonl

13 changes: 8 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ This repository uses AI partners (both external AI assistants and internal Synth

## MCP Infrastructure — USE THIS FIRST (All Agents)

**Two MCP servers run locally. Query them BEFORE reading spec files from disk — save your context.**
**Three MCP servers run locally. Query them BEFORE reading spec files from disk — save your context.**

- **`k3d-knowledge`** — Qdrant semantic search over all 35 `docs/vocabulary/*.md` specs (1319 chunked points). Tool: `mcp__k3d-knowledge__qdrant-find`. Pattern: `qdrant-find("What does the spec say about X?")` → returns relevant excerpts + source paths.
- **`ollama-specialists`** — Delegate implementation, planning, research, and multi-angle analysis to local Ollama models. Tools include `kimi_swarm`, `ask_coder`, `plan_task`, `flesh_out_code`, `extract_facts`, `summarize`, `web_search`, `route_specialist`, `ask_cloud`, `mvcic`, `memory_harvest`.
- **`k3d-knowledge`** — Qdrant semantic search over all 35 `docs/vocabulary/*.md` specs (1319 chunked points), served on `:8501`. Tool: `mcp__k3d-knowledge__qdrant-find`. Pattern: `qdrant-find("What does the spec say about X?")` → returns relevant excerpts + source paths.
- **`k3d-ptx`** — Qdrant semantic search over PTX ISA + CUDA C Guide + Inline PTX reference (11,298 points), served on `:8503`. Tool: `mcp__k3d-ptx__qdrant-find`. Use this before touching `.cu`, `.ptx`, or CUDA bridge code.
- **`ollama-specialists`** — Delegate implementation, planning, research, and multi-angle analysis to local Ollama models, served on `:8502`. Tools include `kimi_swarm`, `ask_coder`, `plan_task`, `flesh_out_code`, `extract_facts`, `summarize`, `web_search`, `route_specialist`, `ask_cloud`, `mvcic`, `memory_harvest`.
- **Standing directive from Daniel**: "Always dispatch ollama specialists instead of burning your tokens."

**Workflow**: `qdrant-find` spec lookups → `plan_task` / `ask_coder` for implementation → read full files only if MCP results are insufficient.
**Rule of three**: `qdrant-find` specs → `qdrant-find` PTX (if kernel-touching) → `plan_task`. Then code.

Both MCP servers are available to Claude Code, Codex, and Cline via streamable-http transport (ports 8501/8502). Config lives in `/home/daniel/.claude/settings.json`, `/home/daniel/.codex/config.toml`, and Cline's `cline_mcp_settings.json`. Launch script: `/home/daniel/.claude/launch_mcp_containers.sh`.
**Timeout rule**: for `kimi_swarm` and deep `ask_cloud`, use timeouts of at least `240000 ms`.

All three MCP servers are available to Claude Code, Codex, and Cline via streamable-http transport (ports `8501/8502/8503`). Config lives in `/home/daniel/.claude/settings.json`, `/home/daniel/.codex/config.toml`, and Cline's `cline_mcp_settings.json`. Launch script: `/home/daniel/.claude/launch_mcp_containers.sh`.

---

Expand Down
2,716 changes: 2,688 additions & 28 deletions ATTRIBUTIONS.md

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions CODEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,42 @@ def answer_query(query):

---

## Minecraft-for-Cognition Lanes (handoff 2026-04-20, Claude-pilot session)

**Context:** Codex was limit-locked; per memory [`Claude Runs Pilots When Codex Is Limit-Locked`](../../home/daniel/.claude/projects/-K3D-GitHub-Knowledge3D/memory/feedback_claude_pilots_when_codex_limit_locked.md), Claude piloted the Document-Galaxy-as-Symlinks + Texture Forge + Image→Procedural + Image→3D + ARC3 live-screen + Memory-as-Image architecture pass. Full spec: [TEMP/CLAUDE_TEXTURE_FORGE_IMAGE_TO_3D_ARC3_SCREEN_04.20.2026.md](TEMP/CLAUDE_TEXTURE_FORGE_IMAGE_TO_3D_ARC3_SCREEN_04.20.2026.md).

### What Claude-pilot landed

1. **Registry reservations** — [docs/vocabulary/RPN_DOMAIN_OPCODE_REGISTRY.md §11.2](docs/vocabulary/RPN_DOMAIN_OPCODE_REGISTRY.md) extended with 7 new reserved blocks: 0x280 (Texture Forge), 0x290 (Image→3D), 0x2A0 (ARC3 screen), 0x2B0 (Memory-as-Image), 0x2C0 (MVCIC extensions), 0x2D0 (Document Galaxy), 0x2E0 (headroom).
2. **73 opcode constants** — [knowledge3d/cranium/ptx_runtime/rpn_opcodes.py](knowledge3d/cranium/ptx_runtime/rpn_opcodes.py) + `__all__` export updated.
3. **Token registrations** — [knowledge3d/cranium/ptx_runtime/modular_rpn_engine.py](knowledge3d/cranium/ptx_runtime/modular_rpn_engine.py) OPCODES dict grew 277→398.
4. **ARC3 bridge kernel** — [knowledge3d/cranium/codecs/kernels/arc3_screen_bridge.cu](knowledge3d/cranium/codecs/kernels/arc3_screen_bridge.cu) compiled clean to PTX (sm_86, zero spills, 5 kernel entries).
5. **Document Galaxy vocab spec** — [docs/vocabulary/DOCUMENT_GALAXY_SYMLINK_SPECIFICATION.md](docs/vocabulary/DOCUMENT_GALAXY_SYMLINK_SPECIFICATION.md) (NEW, normative). Core principle: a document = star + ordered list of Word Galaxy symlinks; chars/glyphs/meanings stored once across corpus.
6. **§13 Collision Resolution** — documents the relocation from 0x1D0–0x1FF (already reserved for VIRTUAL_PAGE_*) to 0x280–0x2DF.

### Open P0 for Codex (ordered by critical path)

1. **ARC3 bridge Python launcher** — ctypes wrapper for [arc3_screen_bridge.cu](knowledge3d/cranium/codecs/kernels/arc3_screen_bridge.cu). Zero numpy. Palette upload via `cuMemcpyToSymbol(c_arc3_palette)`. Wire into `knowledge3d/tablet/wine/game2d_wine.py` replacing Python frame processing.
2. **Texture Forge kernel** — 0x280–0x28F (splat, kuwahara, voronoi, normal-from-height, …). Spec: [TEMP/CLAUDE_TEXTURE_FORGE_IMAGE_TO_3D_ARC3_SCREEN_04.20.2026.md §3.1](TEMP/CLAUDE_TEXTURE_FORGE_IMAGE_TO_3D_ARC3_SCREEN_04.20.2026.md).
3. **3D-opcode GPU promotion** — 0x29C/0x29D/0x29E replace the Python host-fallback path currently fronting 0x170–0x176.
4. **Inverse-fit Lane B kernel** — 0x28A/0x28B (RPN program inversion from raster target).
5. **Memory-as-Image kernel** — 0x2B0–0x2B5 (DotMap bake of reasoning trace → 4-way-addressable memory cells).
6. **Document Galaxy kernel** — 0x2D0–0x2DB per vocab spec §4 opcode surface table.
7. **Ingestion integration** — document stars emit via proceduralizer; text bytes never reach VRAM (only Word Galaxy symlinks).

### Sovereignty gates (MUST hold before merge)

- `grep -r "numpy\|cupy\|scipy" knowledge3d/cranium/codecs/` returns zero hits on hot-path files
- Every new opcode has a §11 registry row before minting (see §13.3 failure-mode note)
- `nvcc -arch=sm_86 -O3 -Xptxas -warn-spills` reports **zero spills** for every new kernel
- Document stars contain zero raw text bytes — only Word/Character/Meaning star IDs

### MVCIC failure-mode lesson (2026-04-20)

The 6-partner MVCIC chain recommended opcodes 0x1D0–0x1FF — **already reserved** since April 18 for VIRTUAL_PAGE_*. Caught via grep of §11 before minting; relocated to 0x280+. Same failure as the 2026-04-19 incident. **Rule:** always grep [RPN_DOMAIN_OPCODE_REGISTRY.md §11](docs/vocabulary/RPN_DOMAIN_OPCODE_REGISTRY.md) before minting anything from MVCIC output.

---

## Codex's Mandate

**Wire ALL GRE specialist kernels into the composed head pipeline. Expand benchmark coverage. Shrink Python orchestration toward ~200 lines. Keep ARC 10/10 and Math 20/20 pinned.**
Expand Down
Loading
Loading