Repository navigation
Agent MEMORY
Cross-session context for agents. Sections 1-6 are regenerated from the source tree with zero LLM tokens: declared rules are quoted verbatim with
file:line, measured baselines come from the scan. Section 7 is written by agents and humans and is preserved across rebuilds.
Generated from 589 files at commit cd87980b5eb5. Read this first, then readmenator-wiki/index.md, then readmenator . ask "<question>" for anything specific.
- What it is: I had some things programmed, a kernel, a C to ASM transpiler, compiler/linker, a browser, I had a beacon with an ELF loader which was basically the first prototype of CVM. (
README.md:10) - Domain vocabulary (term, files):
progs(319),free(241),any(239),without(231),program(221),can(219),under(212),see(192),doomgeneric(188),version(186),but(186),later(184),more(182),either(182),public(179) - Subsystem
headers: kernel: 137 files, coreheaders/kernel.h: The user-window memory layout (load base, stack, brk cap, graphics - Subsystem
progs/doomgeneric: d_englsh: 99 files, coreprogs/doomgeneric/d_englsh.h: Copyright(C) 1993-1996 Id Software, Inc. - Subsystem
progs/src: 86 files, coreprogs/vedit/vedit.c: vedit IDE build and run contract. - Subsystem
progs/doomgeneric: p_spec: 69 files, coreprogs/doomgeneric/p_spec.h: Copyright(C) 1993-1996 Id Software, Inc. - Subsystem
tools: tls_crypto: 43 files, corenet/tls_crypto.c: the crypto behind the kernel TLS 1.2 client. - Subsystem
headers: vga_fb: 17 files, corekernel/vga_fb.c: wm_geom_cfg: /** Docstring: Focus ids share one space across terminals and graphics.... - Subsystem
progs/doomgeneric: net_defs: 13 files, coreprogs/doomgeneric/net_defs.h: Copyright(C) 2005-2014 Simon Howard This program is free software; you can redistribute it... - Subsystem
headers: batch: 3 files, coreheaders/batch.h: Docstring: batch.h -- Batched synchronous syscall submission. - Business rules that the code cannot show live in section 7: record them there.
Detected commands:
-
python -m pytest -q(tests/ layout) -
make all(Makefile) -
make sources(Makefile) -
make sources-update(Makefile) -
make sources-status(Makefile) -
make update(Makefile) -
make update-status(Makefile) -
make update-list(Makefile) -
make update-rollback(Makefile) -
make addons(Makefile) -
make toolchain(Makefile) -
make doom1-wad-check(Makefile)
Session protocol:
- Start: read this file, then
readmenator . fresh(exit 1 means runreadmenator . --rebuild). - Orient:
readmenator-wiki/index.md; for a question usereadmenator . ask "<question>"(local = entities + sources,--global= community reports). - Before editing a file:
grep -n '<file>' readmenator-agent/GOTCHAS.md readmenator-agent/SECURITY.md. - After the change: run the tests above, then
readmenator . --rebuildso the maps, wiki, and this file stay true. - End: record decisions, business rules, and gotchas with
readmenator . remember "<note>" --kind decision.
Declared:
-
Sibling sources:
make update(ormake update <repo>) refreshes the (CLAUDE.md:50) -
Layout addresses live once in
progs/minios_abi.h; never hardcode one in (CLAUDE.md:54) -
Low 4 MB: user page-table zone stays at
0x10000; kernel image +.bss(CLAUDE.md:56) -
Kernel stacks: 16 KB per proc,
-Werror=frame-larger-than=2048; (CLAUDE.md:60) -
Syscalls take user pointers only through
SANITIZE_*(-EFAULTon (CLAUDE.md:62) -
SB16/DMA: never auto-init DMA; one single-cycle block per terminal-count (
CLAUDE.md:64) -
Build: per-object header deps live in the Makefile; a new
#include(CLAUDE.md:66) -
Graphics apps: present through
GFX_PRESENT; mouse via the origin the (CLAUDE.md:68) -
USB: PCI MMIO is mapped only through
kmm_map_uncached()(write-back (CLAUDE.md:71) -
Foreground processes: the shell's pid-0 exec frame has no fork/execve; (
CLAUDE.md:79) -
Heavy ring-3 overlap (two big glibc processes) is known-red until (
CLAUDE.md:84) - Every loader input is validated before use: ELF headers, section and (
CLAUDE.md:163) - Size arithmetic is overflow checked before allocation (
size * nincluded). (CLAUDE.md:165) - Failure paths report and release; no silent partial state. (
CLAUDE.md:166) - No function symbol is ever resolved to a null address. (
CLAUDE.md:167) - User stack setup validates that argv writes stay within bounds. (
CLAUDE.md:168)
Measured baseline:
- Security findings at medium or above: 0 (see
readmenator-agent/SECURITY.md); do not add new ones. - Dependency cycles: 1; layer violations: 3 (see
readmenator-agent/GOTCHAS.md).
Declared:
- none declared in instruction files (add them to AGENTS.md or record them in section 7)
Measured baseline:
- c: 288 files, 7097 symbols; docstrings on 22% of symbols; functions snake_case (76%); types PascalCase (18%); median file 259 lines, max 4902.
- h: 196 files, 4618 symbols; docstrings on 17% of symbols; functions snake_case (70%); types PascalCase (7%); median file 70 lines, max 1331.
- py: 67 files, 819 symbols; docstrings on 40% of symbols; functions snake_case (97%); types PascalCase (99%); median file 135 lines, max 957.
- sh: 17 files, 47 symbols; docstrings on 21% of symbols; functions snake_case (100%); median file 80 lines, max 2414.
- Tests: 70 files under mcp, progs/src, tests; follow the existing naming (e.g.
test_minios_mcp.py).
Declared:
- none declared in instruction files (add them to AGENTS.md or record them in section 7)
Measured baseline:
- Tests pass:
python -m pytest -q. - Docstring coverage stays at or above 21%.
- No new security findings at medium or above (current: 0).
- No new dependency cycles (current: 1).
- Files stay under 300 lines where possible (
readmenator . lint). - Docs refreshed:
readmenator . --rebuild, and decisions recorded in section 7.
- God nodes (changes ripple widely):
kernel/string.c,progs/doomgeneric/doomtype.h,progs/doomgeneric/doomdef.h,kernel/syscalls.c,progs/doomgeneric/doomstat.h - Hotspots (complex and central):
kernel/syscalls.c,kernel/string.c,progs/doomgeneric/d_main.c,kernel/shell.c,progs/doomgeneric/g_game.c - Cycle:
progs/doomgeneric/r_data.h->progs/doomgeneric/r_state.h->progs/doomgeneric/r_data.h - Full blast radius:
readmenator-agent/GOTCHAS.md; findings:readmenator-agent/SECURITY.md.
Append with readmenator . remember "<note>" --kind <kind> (kinds: business, decision, rule, workflow, style, deliverable, gotcha, todo, note) or the MCP tool readmenator.remember. Record business rules, decisions and their reasons, workflow changes, and anything the next session must not rediscover.
Generated offline by readmenator from commit cd87980b5eb5. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_headers_kernel
- community_10_orphans
- community_1_progs_doomgeneric_d_englsh
- community_2_progs_src
- community_3_progs_doomgeneric_p_spec
- community_4_tools_tls_crypto
- community_5_headers_vga_fb
- community_6_progs_doomgeneric_net_defs
- community_7_headers_batch
- community_8_headers_tick
- community_9_tools_doom_pwad
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- KB_asm
- KB_boot
- KB_doomgeneric
- KB_doomgeneric_p10
- KB_doomgeneric_p11
- KB_doomgeneric_p12
- KB_doomgeneric_p2
- KB_doomgeneric_p3
- KB_doomgeneric_p4
- KB_doomgeneric_p5
- KB_doomgeneric_p6
- KB_doomgeneric_p7
- KB_doomgeneric_p8
- KB_doomgeneric_p9
- KB_drivers
- KB_drivers_p2
- KB_file
- KB_freedomui
- KB_fs
- KB_headers
- KB_headers_arch_x86
- KB_headers_drivers
- KB_headers_kernel
- KB_headers_p2
- KB_headers_p3
- KB_headers_p4
- KB_headers_p5
- KB_headers_p6
- KB_kernel
- KB_kernel_p2
- KB_kernel_p3
- KB_kernel_p4
- KB_lib
- KB_lisp
- KB_lua
- KB_mcp
- KB_minios
- KB_misc
- KB_misc_p2
- KB_misc_p3
- KB_mm
- KB_net
- KB_nuklear
- KB_pokemon
- KB_progs
- KB_quake2generic
- KB_root
- KB_src
- KB_src_p2
- KB_src_p3
- KB_tests
- KB_tests_p2
- KB_tls_u
- KB_tools
- KB_tools_p2
- KB_wl
- KB_x86
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p3
- SYMBOLS_p4
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes