Skip to content

Agent API_p21

grisun0 edited this page Oct 21, 2026 · 7 revisions

API (page 21 of 21)

Previous: API_p20.md

tools/kernel_feature_survey.py

tools/lisp_scoped.sh

tools/make_usb.sh

tools/minifs_dump.py

tools/minifs_fsck.py

tools/minifs_saves.py

tools/minios_cli.py

Depends on: kernel/time.c

tools/minios_gui.py

Depends on: kernel/time.c

tools/minios_hyper.py

Depends on: kernel/time.c

tools/mkcpyzip.py

  • build_zip (function) tools/mkcpyzip.py:22 def build_zip(lib_dir, out_zip, skip) -- Write out_zip with the Lib tree minus skip dirs; return file count.
  • main (function) tools/mkcpyzip.py:41 def main()

tools/mkfs.minifs.py

tools/mkpak1.py

tools/mkramdisk.py

tools/mkvocab.py

  • bytes_to_unicode (function) tools/mkvocab.py:18 def bytes_to_unicode() -- Reversible byte to unicode map used by the GPT-2 encoder.
  • main (function) tools/mkvocab.py:35 def main(encoder_path, vocab_path) -- Convert encoder.json to the VOCB binary vocabulary.

tools/mutate.sh

tools/probe_compute_vga.py

Depends on: kernel/time.c

tools/probe_minicraft.py

Depends on: kernel/time.c

tools/qga_client.py

Depends on: kernel/time.c

tools/repro_gui.py

Depends on: kernel/time.c

tools/sign_elf.py

  • sha512 (function) tools/sign_elf.py:61 def sha512(data) -- One-shot SHA-512.
  • encodepoint_raw (function) tools/sign_elf.py:66 def encodepoint_raw(x, y) -- Encode affine (x, y) to 32 bytes.
  • edwards_add (function) tools/sign_elf.py:71 def edwards_add(p, q) -- Add two extended points, all math mod field_p.
  • scalarmult (function) tools/sign_elf.py:88 def scalarmult(p, e) -- Multiply extended point p by scalar e.
  • base_point (function) tools/sign_elf.py:99 def base_point() -- Recompute the base point from y = 4/5.
  • publickey (function) tools/sign_elf.py:112 def publickey(seed) -- Derive the 32-byte public key from a 32-byte seed.
  • sign_digest (function) tools/sign_elf.py:121 def sign_digest(digest, seed) -- Sign a 64-byte canonical digest, returning 64 signature bytes.
  • pad_to (function) tools/sign_elf.py:135 def pad_to(blob, alignment) -- Pad blob with zero bytes up to alignment.
  • parse_ehdr (function) tools/sign_elf.py:143 def parse_ehdr(data) -- Unpack the ELF header, raising ValueError when truncated.
  • parse_phdrs (function) tools/sign_elf.py:158 def parse_phdrs(data, ehdr) -- Unpack the program headers, raising ValueError when out of range.
  • canonical_digest (function) tools/sign_elf.py:172 def canonical_digest(data, ehdr, phdrs) -- Build the kernel-agreed digest: entry plus PT_LOAD segments.
  • find_note_slots (function) tools/sign_elf.py:199 def find_note_slots(data, ehdr, phdrs) -- Locate patchable signature slots, returning file offsets of descs.
  • find_section_slot (function) tools/sign_elf.py:222 def find_section_slot(data, ehdr) -- Locate the .note.minios.sign section descriptor, else -1.
  • append_section (function) tools/sign_elf.py:257 def append_section(data, ehdr, desc) -- Append a .note.minios.sign section, returning the new image.
  • pub_for_key (function) tools/sign_elf.py:305 def pub_for_key(key_id) -- Resolve the trusted public key for checking without secrets.
  • key_material (function) tools/sign_elf.py:321 def key_material(key_id) -- Resolve the signing seed and public key for a key id.
  • process (function) tools/sign_elf.py:341 def process(path, key_id, check_only) -- Sign or verify one file, returning (action, detail).
  • verify_external (function) tools/sign_elf.py:395 def verify_external(sig, digest, pub) -- Verify with PyNaCl when present, else the local fallback.
  • fallback_verify (function) tools/sign_elf.py:408 def fallback_verify(sig, digest, pub) -- Pure-python Ed25519 verify for hosts without PyNaCl.
  • decode_point (function) tools/sign_elf.py:429 def decode_point(raw) -- Decode a point encoding to extended coordinates.
  • points_equal (function) tools/sign_elf.py:447 def points_equal(p, q) -- Compare extended points by cross-multiplied coordinates.
  • main (function) tools/sign_elf.py:454 def main(argv) -- Drive signing or checking over files and directory walks.

tools/wl_scoped.sh

tools/wm_layout_sync.py

  • WmLayoutSyncConfig.__init__ (method) tools/wm_layout_sync.py:20 def __init__(self, root) -- Docstring: Bind all paths to one repository root.
  • WmLayoutSyncResult.__init__ (method) tools/wm_layout_sync.py:39 def __init__(self, modes, symbols, checks) -- Docstring: Store discovered modes, symbols and check count.
  • WmLayoutSync.__init__ (method) tools/wm_layout_sync.py:49 def __init__(self, config) -- Docstring: Hold config as the sole tunable source.
  • WmLayoutSync.discover (method) tools/wm_layout_sync.py:53 def discover(self) -- Docstring: Extract modes, symbols and test checks from sources.
  • WmLayoutSync.render (method) tools/wm_layout_sync.py:66 def render(self, result) -- Docstring: Build manifest markdown from discovery result.
  • WmLayoutSync.synchronize (method) tools/wm_layout_sync.py:101 def synchronize(self, write) -- Docstring: Discover, render and optionally write the manifest.
  • parse_args (function) tools/wm_layout_sync.py:151 def parse_args(argv) -- Docstring: Parse CLI flags for check or write modes.
  • main (function) tools/wm_layout_sync.py:159 def main(argv) -- Docstring: Run discovery and write or verify the manifest.

tools/wm_scoped.sh

vma.c

Depends on: headers/vma.h

  • vma_ctx_init (function) vma.c:37 void vma_ctx_init(vma_ctx_t *c, vma_node_t *pool)
  • vma_ctx_bind (function) vma.c:52 void vma_ctx_bind(vma_ctx_t *c)
  • vma_ctx_save (function) vma.c:64 void vma_ctx_save(vma_ctx_t *c)
  • vma_view_save (function) vma.c:74 void vma_view_save(vma_view_t *v)
  • vma_view_load (function) vma.c:86 void vma_view_load(const vma_view_t *v)
  • vma_tree_init (function) vma.c:98 void vma_tree_init(void)
  • vma_alloc_node (function) vma.c:113 static vma_node_t *vma_alloc_node(void)
  • vma_rotate_left (function) vma.c:124 static void vma_rotate_left(vma_node_t **root, vma_node_t *x)
  • vma_rotate_right (function) vma.c:136 static void vma_rotate_right(vma_node_t **root, vma_node_t *x)
  • vma_insert_fixup (function) vma.c:148 static void vma_insert_fixup(vma_node_t **root, vma_node_t *z)
  • vma_tree_insert (function) vma.c:187 vma_node_t *vma_tree_insert(vma_node_t **root, unsigned long base, unsigned long len)
  • vma_node_in_tree (function) vma.c:215 static int vma_node_in_tree(vma_node_t *root, vma_node_t *n) -- 1 when node n hangs in the tree rooted at root (live and free trees * share one pool and one cache, so a cached node...
  • vma_tree_find (function) vma.c:220 vma_node_t *vma_tree_find(vma_node_t *root, unsigned long base)
  • vma_tree_find_containing (function) vma.c:238 vma_node_t *vma_tree_find_containing(vma_node_t *root, unsigned long va) -- Docstring: Find the live node containing va (base <= va < base+len), or VMA_NIL.
  • vma_transplant (function) vma.c:252 static void vma_transplant(vma_node_t **root, vma_node_t *u, vma_node_t *v)
  • vma_tree_minimum (function) vma.c:259 static vma_node_t *vma_tree_minimum(vma_node_t *x)
  • vma_delete_fixup (function) vma.c:264 static void vma_delete_fixup(vma_node_t **root, vma_node_t *x)
  • vma_tree_delete (function) vma.c:319 int vma_tree_delete(vma_node_t **root, unsigned long base)

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally